@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,4 +1,31 @@
1
- (function(ir,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],M):(ir=typeof globalThis<"u"?globalThis:ir||self,M(ir.ZYZGroupCoreVue={},ir.Vue))})(this,function(ir,M){"use strict";var zY=Object.defineProperty;var GY=(ir,M,An)=>M in ir?zY(ir,M,{enumerable:!0,configurable:!0,writable:!0,value:An}):ir[M]=An;var jt=(ir,M,An)=>(GY(ir,typeof M!="symbol"?M+"":M,An),An);const An=/^[a-z0-9]+(-[a-z0-9]+)*$/,lc=(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 s=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:s};return t&&!cc(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!cc(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!cc(s,r)?null:s}return null},cc=(e,t)=>e?!!((e.provider===""||e.provider.match(An))&&(t&&e.prefix===""||e.prefix.match(An))&&e.name.match(An)):!1,ig=Object.freeze({left:0,top:0,width:16,height:16}),uc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),hc=Object.freeze({...ig,...uc}),bh=Object.freeze({...hc,body:"",hidden:!1});function X$(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 og(e,t){const r=X$(e,t);for(const n in bh)n in uc?n in e&&!(n in r)&&(r[n]=uc[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function W$(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,c=s&&o(s);c&&(i[a]=[s].concat(c))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function J$(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=og(n[s]||i[s],o)}return a(t),r.forEach(a),og(e,o)}function ag(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=W$(e);for(const i in n){const o=n[i];o&&(t(i,J$(e,i,o)),r.push(i))}return r}const Q$={provider:"",aliases:{},not_found:{},...ig};function wh(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function sg(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!wh(e,Q$))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(An)||typeof o.body!="string"||!wh(o,bh))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(An)||typeof a!="string"||!r[a]&&!n[a]||!wh(o,bh))return null}return t}const lg=Object.create(null);function Z$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function vo(e,t){const r=lg[e]||(lg[e]=Object.create(null));return r[t]||(r[t]=Z$(e,t))}function xh(e,t){return sg(t)?ag(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function t3(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Va=!1;function cg(e){return typeof e=="boolean"&&(Va=e),Va}function e3(e){const t=typeof e=="string"?lc(e,!0,Va):e;if(t){const r=vo(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function r3(e,t){const r=lc(e,!0,Va);if(!r)return!1;const n=vo(r.provider,r.prefix);return t3(n,r.name,t)}function n3(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Va&&!t&&!e.prefix){let i=!1;return sg(e)&&(e.prefix="",ag(e,(o,a)=>{a&&r3(o,a)&&(i=!0)})),i}const r=e.prefix;if(!cc({provider:t,prefix:r,name:"a"}))return!1;const n=vo(t,r);return!!xh(n,e)}const ug=Object.freeze({width:null,height:null}),hg=Object.freeze({...ug,...uc}),i3=/(-?[0-9.]*[0-9]+[0-9.]*)/g,o3=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function dg(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(i3);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=o3.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}function a3(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 a=e.indexOf(">",o);if(a===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:r,content:e}}function s3(e,t){return e?"<defs>"+e+"</defs>"+t:t}function l3(e,t,r){const n=a3(e);return s3(n.defs,t+n.content+r)}const c3=e=>e==="unset"||e==="undefined"||e==="none";function u3(e,t){const r={...hc,...e},n={...hg,...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=l3(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const a=n.width,s=n.height,c=i.width,l=i.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?l:s,u=dg(d,c/l)):(u=a==="auto"?c:a,d=s===null?dg(u,l/c):s==="auto"?l:s);const f={},h=(g,v)=>{c3(v)||(f[g]=v.toString())};h("width",u),h("height",d);const p=[i.left,i.top,c,l];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:o}}const h3=/\sid="(\S+)"/g,d3="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let f3=0;function p3(e,t=d3){const r=[];let n;for(;n=h3.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 a=typeof t=="function"?t(o):t+(f3++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Sh=Object.create(null);function m3(e,t){Sh[e]=t}function $h(e){return Sh[e]||Sh[""]}function kh(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 Eh=Object.create(null),Ba=["https://api.simplesvg.com","https://api.unisvg.com"],dc=[];for(;Ba.length>0;)Ba.length===1||Math.random()>.5?dc.push(Ba.shift()):dc.push(Ba.pop());Eh[""]=kh({resources:["https://api.iconify.design"].concat(dc)});function g3(e,t){const r=kh(t);return r===null?!1:(Eh[e]=r,!0)}function Ch(e){return Eh[e]}let fg=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function v3(e,t){const r=Ch(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function y3(e){return e===404}const _3=(e,t,r)=>{const n=[],i=v3(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((c,l)=>{s+=c.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),n.push(a),n};function b3(e){if(typeof e=="string"){const t=Ch(e);if(t)return t.path}return"/"}const w3={prepare:_3,send:(e,t,r)=>{if(!fg){r("abort",424);return}let n=b3(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});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;fg(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(y3(a)?"abort":"next",a)});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 x3(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,a=i.prefix,s=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[a]||(c[a]=vo(o,a));let u;s in l.icons?u=t.loaded:a===""||l.missing.has(s)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:s};u.push(d)}),t}function pg(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function S3(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 a=o.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||pg([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let $3=0;function k3(e,t,r){const n=$3++,i=pg.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function E3(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?lc(i,t,r):i;o&&n.push(o)}),n}var C3={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function P3(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let $=e.resources.slice(0);for(a=[];$.length>1;){const A=Math.floor(Math.random()*$.length);a.push($[A]),$=$.slice(0,A).concat($.slice(A+1))}a=a.concat($)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let c="pending",l=0,u,d=null,f=[],h=[];typeof n=="function"&&h.push(n);function p(){d&&(clearTimeout(d),d=null)}function g(){c==="pending"&&(c="aborted"),p(),f.forEach($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function v($,A){A&&(h=[]),typeof $=="function"&&h.push($)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:g}}function y(){c="failed",h.forEach($=>{$(void 0,u)})}function m(){f.forEach($=>{$.status==="pending"&&($.status="aborted")}),f=[]}function x($,A,R){const G=A!=="success";switch(f=f.filter(H=>H!==$),c){case"pending":break;case"failed":if(G||!e.dataAfterTimeout)return;break;default:return}if(A==="abort"){u=R,y();return}if(G){u=R,f.length||(a.length?N():y());return}if(p(),m(),!e.random){const H=e.resources.indexOf($.resource);H!==-1&&H!==e.index&&(e.index=H)}c="completed",h.forEach(H=>{H(R)})}function N(){if(c!=="pending")return;p();const $=a.shift();if($===void 0){if(f.length){d=setTimeout(()=>{p(),c==="pending"&&(m(),y())},e.timeout);return}y();return}const A={status:"pending",resource:$,callback:(R,G)=>{x(A,R,G)}};f.push(A),l++,d=setTimeout(N,e.rotate),r($,t,A.callback)}return setTimeout(N),_}function mg(e){const t={...C3,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,c,l){const u=P3(t,s,c,(d,f)=>{n(),l&&l(d,f)});return r.push(u),u}function o(s){return r.find(c=>s(c))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function gg(){}const Ph=Object.create(null);function T3(e){if(!Ph[e]){const t=Ch(e);if(!t)return;const r=mg(t),n={config:t,redundancy:r};Ph[e]=n}return Ph[e]}function O3(e,t,r){let n,i;if(typeof e=="string"){const o=$h(e);if(!o)return r(void 0,424),gg;i=o.send;const a=T3(e);a&&(n=a.redundancy)}else{const o=kh(e);if(o){n=mg(o);const a=e.resources?e.resources[0]:"",s=$h(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),gg):n.query(t,i,r)().abort}const vg="iconify2",Ha="iconify",yg=Ha+"-count",_g=Ha+"-version",bg=36e5,A3=168,N3=50;function Th(e,t){try{return e.getItem(t)}catch{}}function Oh(e,t,r){try{return e.setItem(t,r),!0}catch{}}function wg(e,t){try{e.removeItem(t)}catch{}}function Ah(e,t){return Oh(e,yg,t.toString())}function Nh(e){return parseInt(Th(e,yg))||0}const fc={local:!0,session:!0},xg={local:new Set,session:new Set};let Rh=!1;function R3(e){Rh=e}let pc=typeof window>"u"?{}:window;function Sg(e){const t=e+"Storage";try{if(pc&&pc[t]&&typeof pc[t].length=="number")return pc[t]}catch{}fc[e]=!1}function $g(e,t){const r=Sg(e);if(!r)return;const n=Th(r,_g);if(n!==vg){if(n){const s=Nh(r);for(let c=0;c<s;c++)wg(r,Ha+c.toString())}Oh(r,_g,vg),Ah(r,0);return}const i=Math.floor(Date.now()/bg)-A3,o=s=>{const c=Ha+s.toString(),l=Th(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,s))return!0}catch{}wg(r,c)}};let a=Nh(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Ah(r,a)):xg[e].add(s))}function kg(){if(!Rh){R3(!0);for(const e in fc)$g(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=vo(n,i);if(!xh(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function j3(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in fc)$g(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function I3(e,t){Rh||kg();function r(n){let i;if(!fc[n]||!(i=Sg(n)))return;const o=xg[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Nh(i),a>=N3||!Ah(i,a+1))return;const s={cached:Math.floor(Date.now()/bg),provider:e.provider,data:t};return Oh(i,Ha+a.toString(),JSON.stringify(s))}t.lastModified&&!j3(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Eg(){}function D3(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,S3(e)}))}function F3(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=$h(r)))return;o.prepare(r,n,i).forEach(s=>{O3(r,s,c=>{if(typeof c!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=xh(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),I3(e,c)}catch(l){console.error(l)}D3(e)})})}))}const M3=(e,t)=>{const r=E3(e,!0,cg()),n=x3(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,Eg)}),()=>{c=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===s&&l===a)return;a=l,s=u,o.push(vo(l,u));const d=i[l]||(i[l]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,f=vo(l,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[l][u].push(d))}),o.forEach(c=>{const{provider:l,prefix:u}=c;i[l][u].length&&F3(c,i[l][u])}),t?k3(t,n,o):Eg};function L3(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in ug?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const U3=/[\s,]+/;function z3(e,t){t.split(U3).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function G3(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 V3(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 B3(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function H3(e){return"data:image/svg+xml,"+B3(e)}function q3(e){return'url("'+H3(e)+'")'}const Cg={...hg,inline:!1},K3={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Y3={display:"inline-block"},jh={backgroundColor:"currentColor"},Pg={backgroundColor:"transparent"},Tg={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Og={webkitMask:jh,mask:jh,background:Pg};for(const e in Og){const t=Og[e];for(const r in Tg)t[e+r]=Tg[r]}const mc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";mc[e+"-flip"]=t,mc[e.slice(0,1)+"-flip"]=t,mc[e+"Flip"]=t});function Ag(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ng=(e,t)=>{const r=L3(Cg,t),n={...K3},i=t.mode||"svg",o={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};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"&&z3(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[g]=G3(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const _=mc[g];_?(v===!0||v==="true"||v===1)&&(r[_]=!0):Cg[g]===void 0&&(n[g]=v)}}}const c=u3(e,r),l=c.attributes;if(r.inline&&(o.verticalAlign="-0.125em"),i==="svg"){n.style={...o,...s},Object.assign(n,l);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=p3(c.body,v?()=>v+"ID"+g++:"iconifyVue"),M.h("svg",n)}const{body:u,width:d,height:f}=e,h=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=V3(u,{...l,width:d+"",height:f+""});return n.style={...o,"--svg":q3(p),width:Ag(l.width),height:Ag(l.height),...Y3,...h?jh:Pg,...s},M.h("span",n)};if(cg(!0),m3("",w3),typeof document<"u"&&typeof window<"u"){kg();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"||!n3(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;g3(r,i)||console.error(n)}catch{console.error(n)}}}}const X3={...hc,body:""},W3=M.defineComponent({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=lc(e,!1,!0))===null)return this.abortLoading(),null;const n=e3(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:M3([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 Ng(X3,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ng({...hc,...t.data},r)}});function Wt(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 Mt(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 gc=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const J3=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`
1
+ (function(Ft,Ei){typeof exports=="object"&&typeof module<"u"?Ei(exports):typeof define=="function"&&define.amd?define(["exports"],Ei):(Ft=typeof globalThis<"u"?globalThis:Ft||self,Ei(Ft.ZYZGroupCoreVue={}))})(this,function(Ft){"use strict";/**
2
+ * @vue/shared v3.4.25
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Ei(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const je={}.NODE_ENV!=="production"?Object.freeze({}):{},eu={}.NODE_ENV!=="production"?Object.freeze([]):[],Ci=()=>{},nu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Le=Object.assign,iu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ru=Object.prototype.hasOwnProperty,ne=(e,t)=>ru.call(e,t),Bt=Array.isArray,Rn=e=>Si(e)==="[object Map]",Bo=e=>Si(e)==="[object Set]",su=e=>Si(e)==="[object RegExp]",Qt=e=>typeof e=="function",ve=e=>typeof e=="string",Dn=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",ou=e=>(oe(e)||Qt(e))&&Qt(e.then)&&Qt(e.catch),Ho=Object.prototype.toString,Si=e=>Ho.call(e),Uo=e=>Si(e).slice(8,-1),Wo=e=>Si(e)==="[object Object]",cs=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},au=/-(\w)/g,sr=us(e=>e.replace(au,(t,n)=>n?n.toUpperCase():"")),ki=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),lu=us(e=>e?`on${ki(e)}`:""),yn=(e,t)=>!Object.is(e,t),qo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},cu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let Yo;const Xo=()=>Yo||(Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ot(e){if(Bt(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ve(i)?du(i):Ot(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(ve(e)||oe(e))return e}const uu=/;(?![^(]*\))/g,hu=/:([^]+)/,fu=/\/\*[^]*?\*\//g;function du(e){const t={};return e.replace(fu,"").split(uu).forEach(n=>{if(n){const i=n.split(hu);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Wt(e){let t="";if(ve(e))t=e;else if(Bt(e))for(let n=0;n<e.length;n++){const i=Wt(e[n]);i&&(t+=i+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const de=e=>ve(e)?e:e==null?"":Bt(e)||oe(e)&&(e.toString===Ho||!Qt(e.toString))?JSON.stringify(e,Ko,2):String(e),Ko=(e,t)=>t&&t.__v_isRef?Ko(e,t.value):Rn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[hs(i,s)+" =>"]=r,n),{})}:Bo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>hs(n))}:Dn(t)?hs(t):oe(t)&&!Bt(t)&&!Wo(t)?String(t):t,hs=(e,t="")=>{var n;return Dn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.4.25
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/function Jn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Zo;function pu(e,t=Zo){t&&t.active&&t.effects.push(e)}function mu(){return Zo}let Fn;class Qo{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,pu(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ti();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(gu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Pi()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=_n,n=Fn;try{return _n=!0,Fn=this,this._runnings++,Jo(this),this.fn()}finally{ta(this),this._runnings--,Fn=n,_n=t}}stop(){var t;this.active&&(Jo(this),ta(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gu(e){return e.value}function Jo(e){e._trackId++,e._depsLength=0}function ta(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ea(e.deps[t],e);e.deps.length=e._depsLength}}function ea(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let _n=!0,fs=0;const na=[];function Ti(){na.push(_n),_n=!1}function Pi(){const e=na.pop();_n=e===void 0?!0:e}function ds(){fs++}function ps(){for(fs--;!fs&&ms.length;)ms.shift()()}function ia(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&&ea(r,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((i=e.onTrack)==null||i.call(e,Le({effect:e},n)))}}const ms=[];function ra(e,t,n){var i;ds();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,Le({effect:r},n))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&ms.push(r.scheduler)))}ps()}const sa=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},gs=new WeakMap,Vn=Symbol({}.NODE_ENV!=="production"?"iterate":""),vs=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ue(e,t,n){if(_n&&Fn){let i=gs.get(e);i||gs.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=sa(()=>i.delete(n))),ia(Fn,r,{}.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function xn(e,t,n,i,r,s){const o=gs.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&Bt(e)){const u=Number(i);o.forEach((v,y)=>{(y==="length"||!Dn(y)&&y>=u)&&l.push(v)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":Bt(e)?cs(n)&&l.push(o.get("length")):(l.push(o.get(Vn)),Rn(e)&&l.push(o.get(vs)));break;case"delete":Bt(e)||(l.push(o.get(Vn)),Rn(e)&&l.push(o.get(vs)));break;case"set":Rn(e)&&l.push(o.get(Vn));break}ds();for(const u of l)u&&ra(u,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:i,oldValue:r,oldTarget:s}:void 0);ps()}const vu=Ei("__proto__,__v_isRef,__isVue"),oa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn)),aa=yu();function yu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Rt(this);for(let s=0,o=this.length;s<o;s++)ue(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(Rt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ti(),ds();const i=Rt(this)[t].apply(this,n);return ps(),Pi(),i}}),e}function _u(e){Dn(e)||(e=String(e));const t=Rt(this);return ue(t,"has",e),t.hasOwnProperty(e)}class la{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?va:ga:s?Mu:ma).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=Bt(t);if(!r){if(o&&ne(aa,n))return Reflect.get(aa,n,i);if(n==="hasOwnProperty")return _u}const l=Reflect.get(t,n,i);return(Dn(n)?oa.has(n):vu(n))||(r||ue(t,"get",n),s)?l:Ce(l)?o&&cs(n)?l:l.value:oe(l)?r?ya(l):en(l):l}}class xu extends la{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const u=$n(s);if(!zn(i)&&!$n(i)&&(s=Rt(s),i=Rt(i)),!Bt(t)&&Ce(s)&&!Ce(i))return u?!1:(s.value=i,!0)}const o=Bt(t)&&cs(n)?Number(n)<t.length:ne(t,n),l=Reflect.set(t,n,i,r);return t===Rt(r)&&(o?yn(i,s)&&xn(t,"set",n,i,s):xn(t,"add",n,i)),l}deleteProperty(t,n){const i=ne(t,n),r=t[n],s=Reflect.deleteProperty(t,n);return s&&i&&xn(t,"delete",n,void 0,r),s}has(t,n){const i=Reflect.has(t,n);return(!Dn(n)||!oa.has(n))&&ue(t,"has",n),i}ownKeys(t){return ue(t,"iterate",Bt(t)?"length":Vn),Reflect.ownKeys(t)}}class ca extends la{constructor(t=!1){super(!0,t)}set(t,n){return{}.NODE_ENV!=="production"&&Jn(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return{}.NODE_ENV!=="production"&&Jn(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const bu=new xu,wu=new ca,Eu=new ca(!0),ys=e=>e,or=e=>Reflect.getPrototypeOf(e);function ar(e,t,n=!1,i=!1){e=e.__v_raw;const r=Rt(e),s=Rt(t);n||(yn(t,s)&&ue(r,"get",t),ue(r,"get",s));const{has:o}=or(r),l=i?ys:n?ws:Ii;if(o.call(r,t))return l(e.get(t));if(o.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function lr(e,t=!1){const n=this.__v_raw,i=Rt(n),r=Rt(e);return t||(yn(e,r)&&ue(i,"has",e),ue(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function cr(e,t=!1){return e=e.__v_raw,!t&&ue(Rt(e),"iterate",Vn),Reflect.get(e,"size",e)}function ua(e){e=Rt(e);const t=Rt(this);return or(t).has.call(t,e)||(t.add(e),xn(t,"add",e,e)),this}function ha(e,t){t=Rt(t);const n=Rt(this),{has:i,get:r}=or(n);let s=i.call(n,e);s?{}.NODE_ENV!=="production"&&pa(n,i,e):(e=Rt(e),s=i.call(n,e));const o=r.call(n,e);return n.set(e,t),s?yn(t,o)&&xn(n,"set",e,t,o):xn(n,"add",e,t),this}function fa(e){const t=Rt(this),{has:n,get:i}=or(t);let r=n.call(t,e);r?{}.NODE_ENV!=="production"&&pa(t,n,e):(e=Rt(e),r=n.call(t,e));const s=i?i.call(t,e):void 0,o=t.delete(e);return r&&xn(t,"delete",e,void 0,s),o}function da(){const e=Rt(this),t=e.size!==0,n={}.NODE_ENV!=="production"?Rn(e)?new Map(e):new Set(e):void 0,i=e.clear();return t&&xn(e,"clear",void 0,void 0,n),i}function ur(e,t){return function(i,r){const s=this,o=s.__v_raw,l=Rt(o),u=t?ys:e?ws:Ii;return!e&&ue(l,"iterate",Vn),o.forEach((v,y)=>i.call(r,u(v),u(y),s))}}function hr(e,t,n){return function(...i){const r=this.__v_raw,s=Rt(r),o=Rn(s),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,v=r[e](...i),y=n?ys:t?ws:Ii;return!t&&ue(s,"iterate",u?vs:Vn),{next(){const{value:g,done:m}=v.next();return m?{value:g,done:m}:{value:l?[y(g[0]),y(g[1])]:y(g),done:m}},[Symbol.iterator](){return this}}}}function bn(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Jn(`${ki(e)} operation ${n}failed: target is readonly.`,Rt(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Cu(){const e={get(s){return ar(this,s)},get size(){return cr(this)},has:lr,add:ua,set:ha,delete:fa,clear:da,forEach:ur(!1,!1)},t={get(s){return ar(this,s,!1,!0)},get size(){return cr(this)},has:lr,add:ua,set:ha,delete:fa,clear:da,forEach:ur(!1,!0)},n={get(s){return ar(this,s,!0)},get size(){return cr(this,!0)},has(s){return lr.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:ur(!0,!1)},i={get(s){return ar(this,s,!0,!0)},get size(){return cr(this,!0)},has(s){return lr.call(this,s,!0)},add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear"),forEach:ur(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=hr(s,!1,!1),n[s]=hr(s,!0,!1),t[s]=hr(s,!1,!0),i[s]=hr(s,!0,!0)}),[e,n,t,i]}const[Su,ku,Tu,Pu]=Cu();function _s(e,t){const n=t?e?Pu:Tu:e?ku:Su;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 Iu={get:_s(!1,!1)},Nu={get:_s(!0,!1)},Ou={get:_s(!0,!0)};function pa(e,t,n){const i=Rt(n);if(i!==n&&t.call(e,i)){const r=Uo(e);Jn(`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 ma=new WeakMap,Mu=new WeakMap,ga=new WeakMap,va=new WeakMap;function Au(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lu(e){return e.__v_skip||!Object.isExtensible(e)?0:Au(Uo(e))}function en(e){return $n(e)?e:xs(e,!1,bu,Iu,ma)}function ya(e){return xs(e,!0,wu,Nu,ga)}function fr(e){return xs(e,!0,Eu,Ou,va)}function xs(e,t,n,i,r){if(!oe(e))return{}.NODE_ENV!=="production"&&Jn(`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=Lu(e);if(o===0)return e;const l=new Proxy(e,o===2?i:n);return r.set(e,l),l}function ti(e){return $n(e)?ti(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function zn(e){return!!(e&&e.__v_isShallow)}function bs(e){return e?!!e.__v_raw:!1}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}function Ru(e){return Object.isExtensible(e)&&cu(e,"__v_skip",!0),e}const Ii=e=>oe(e)?en(e):e,ws=e=>oe(e)?ya(e):e,Du="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 Fu{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 Qo(()=>t(this._value),()=>dr(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=Rt(this);return(!t._cacheable||t.effect.dirty)&&yn(t._value,t._value=t.effect.run())&&dr(t,4),_a(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Jn(Du,`
10
+
11
+ getter: `,this.getter),dr(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _a(e){var t;_n&&Fn&&(e=Rt(e),ia(Fn,(t=e.dep)!=null?t:e.dep=sa(()=>e.dep=void 0,e instanceof Fu?e:void 0),{}.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function dr(e,t=4,n){e=Rt(e);const i=e.dep;i&&ra(i,t,{}.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n}:void 0)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function vt(e){return Vu(e,!1)}function Vu(e,t){return Ce(e)?e:new $u(e,t)}class $u{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Rt(t),this._value=n?t:Ii(t)}get value(){return _a(this),this._value}set value(t){const n=this.__v_isShallow||zn(t)||$n(t);t=n?t:Rt(t),yn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ii(t),dr(this,4,t))}}function ae(e){return Ce(e)?e.value:e}const zu={get:(e,t,n)=>ae(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function ju(e){return ti(e)?e:new Proxy(e,zu)}/**
12
+ * @vue/runtime-core v3.4.25
13
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
+ * @license MIT
15
+ **/const jn=[];function Gu(e){jn.push(e)}function Bu(){jn.pop()}function Gt(e,...t){Ti();const n=jn.length?jn[jn.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=Hu();if(i)Gn(i,n,11,[e+t.map(s=>{var o,l;return(l=(o=s.toString)==null?void 0:o.call(s))!=null?l:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${el(n,s.type)}>`).join(`
16
+ `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
17
+ `,...Uu(r)),console.warn(...s)}Pi()}function Hu(){let e=jn[jn.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 Uu(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
18
+ `],...Wu(n))}),t}function Wu({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,r=` at <${el(e.component,e.type,i)}`,s=">"+n;return e.props?[r,...qu(e.props),s]:[r+s]}function qu(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(...xa(i,e[i]))}),n.length>3&&t.push(" ..."),t}function xa(e,t,n){return ve(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=xa(e,Rt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Qt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Rt(t),n?t:[`${e}=`,t])}const Es={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 Gn(e,t,n,i){try{return i?e(...i):e()}catch(r){Cs(r,t,n)}}function ei(e,t,n,i){if(Qt(e)){const r=Gn(e,t,n,i);return r&&ou(r)&&r.catch(s=>{Cs(s,t,n)}),r}if(Bt(e)){const r=[];for(let s=0;s<e.length;s++)r.push(ei(e[s],t,n,i));return r}else({}).NODE_ENV!=="production"&&Gt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Cs(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const o=t.proxy,l={}.NODE_ENV!=="production"?Es[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const v=s.ec;if(v){for(let y=0;y<v.length;y++)if(v[y](e,o,l)===!1)return}s=s.parent}const u=t.appContext.config.errorHandler;if(u){Ti(),Gn(u,null,10,[e,o,l]),Pi();return}}Yu(e,n,r,i)}function Yu(e,t,n,i=!0){if({}.NODE_ENV!=="production"){const r=Es[t];if(n&&Gu(n),Gt(`Unhandled error${r?` during execution of ${r}`:""}`),n&&Bu(),i)throw e;console.error(e)}else console.error(e)}let pr=!1,Ss=!1;const Ge=[];let wn=0;const ni=[];let nn=null,En=0;const ba=Promise.resolve();let ks=null;const Xu=100;function Ku(e){const t=ks||ba;return e?t.then(this?e.bind(this):e):t}function Zu(e){let t=wn+1,n=Ge.length;for(;t<n;){const i=t+n>>>1,r=Ge[i],s=Ni(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function Ts(e){(!Ge.length||!Ge.includes(e,pr&&e.allowRecurse?wn+1:wn))&&(e.id==null?Ge.push(e):Ge.splice(Zu(e.id),0,e),wa())}function wa(){!pr&&!Ss&&(Ss=!0,ks=ba.then(Ca))}function Ea(e){Bt(e)?ni.push(...e):(!nn||!nn.includes(e,e.allowRecurse?En+1:En))&&ni.push(e),wa()}function Qu(e){if(ni.length){const t=[...new Set(ni)].sort((n,i)=>Ni(n)-Ni(i));if(ni.length=0,nn){nn.push(...t);return}for(nn=t,{}.NODE_ENV!=="production"&&(e=e||new Map),En=0;En<nn.length;En++)({}).NODE_ENV!=="production"&&Sa(e,nn[En])||nn[En]();nn=null,En=0}}const Ni=e=>e.id==null?1/0:e.id,Ju=(e,t)=>{const n=Ni(e)-Ni(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ca(e){Ss=!1,pr=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),Ge.sort(Ju);const t={}.NODE_ENV!=="production"?n=>Sa(e,n):Ci;try{for(wn=0;wn<Ge.length;wn++){const n=Ge[wn];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;Gn(n,null,14)}}}finally{wn=0,Ge.length=0,Qu(e),pr=!1,ks=null,(Ge.length||ni.length)&&Ca(e)}}function Sa(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Xu){const i=t.ownerInstance,r=i&&$i(i.type);return Cs(`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)}}const ii=new Set;({}).NODE_ENV!=="production"&&(Xo().__VUE_HMR_RUNTIME__={createRecord:Ps(th),rerender:Ps(eh),reload:Ps(nh)});const mr=new Map;function th(e,t){return mr.has(e)?!1:(mr.set(e,{initialDef:Oi(t),instances:new Set}),!0)}function Oi(e){return nl(e)?e.__vccOpts:e}function eh(e,t){const n=mr.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(i=>{t&&(i.render=t,Oi(i.type).render=t),i.renderCache=[],i.effect.dirty=!0,i.update()}))}function nh(e,t){const n=mr.get(e);if(!n)return;t=Oi(t),ka(n.initialDef,t);const i=[...n.instances];for(const r of i){const s=Oi(r.type);ii.has(s)||(s!==n.initialDef&&ka(s,t),ii.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ii.add(s),r.ceReload(t.styles),ii.delete(s)):r.parent?(r.parent.effect.dirty=!0,Ts(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.")}Ea(()=>{for(const r of i)ii.delete(Oi(r.type))})}function ka(e,t){Le(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ps(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.")}}}function ih(e,...t){}const Ta=Pa("component:added"),rh=Pa("component:updated");/*! #__NO_SIDE_EFFECTS__ */function Pa(e){return t=>{ih(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let Jt=null,gr=null;function Ia(e){const t=Jt;return Jt=e,gr=e&&e.type.__scopeId||null,t}function Is(e){gr=e}function Ns(){gr=null}function ye(e,t=Jt,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Ua(-1);const s=Ia(t);let o;try{o=e(...r)}finally{Ia(s),i._d&&Ua(1)}return{}.NODE_ENV!=="production"&&rh(t),o};return i._n=!0,i._c=!0,i._d=!0,i}const vr="components";function sh(e,t){return Oa(vr,e,!0,t)||e}const Na=Symbol.for("v-ndc");function oh(e){return ve(e)?Oa(vr,e,!1)||e:e||Na}function Oa(e,t,n=!0,i=!1){const r=Jt||Sn;if(r){const s=r.type;if(e===vr){const l=$i(s,!1);if(l&&(l===t||l===sr(t)||l===ki(sr(t))))return s}const o=Ma(r[e]||s[e],t)||Ma(r.appContext[e],t);if(!o&&i)return s;if({}.NODE_ENV!=="production"&&n&&!o){const l=e===vr?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Gt(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else({}).NODE_ENV!=="production"&&Gt(`resolve${ki(e.slice(0,-1))} can only be used in render() or setup().`)}function Ma(e,t){return e&&(e[t]||e[sr(t)]||e[ki(sr(t))])}const Aa=e=>e.__isSuspense;function ah(e,t){t&&t.pendingBranch?Bt(e)?t.effects.push(...e):t.effects.push(e):Ea(e)}const lh=Symbol.for("v-scx"),ch=()=>{{const e=Ch(lh);return e||{}.NODE_ENV!=="production"&&Gt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},yr={};function te(e,t,n){return{}.NODE_ENV!=="production"&&!Qt(t)&&Gt("`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."),La(e,t,n)}function La(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:o,onTrigger:l}=je){if(t&&s){const R=t;t=(...rt)=>{R(...rt),U()}}({}).NODE_ENV!=="production"&&i!==void 0&&typeof i=="number"&&Gt('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&&Gt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Gt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Gt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const u=R=>{Gt("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=Sn,y=R=>i===!0?R:Bn(R,i===!1?1:void 0);let g,m=!1,x=!1;if(Ce(e)?(g=()=>e.value,m=zn(e)):ti(e)?(g=()=>y(e),m=!0):Bt(e)?(x=!0,m=e.some(R=>ti(R)||zn(R)),g=()=>e.map(R=>{if(Ce(R))return R.value;if(ti(R))return y(R);if(Qt(R))return Gn(R,v,2);({}).NODE_ENV!=="production"&&u(R)})):Qt(e)?t?g=()=>Gn(e,v,2):g=()=>(I&&I(),ei(e,v,3,[k])):(g=Ci,{}.NODE_ENV!=="production"&&u(e)),t&&i){const R=g;g=()=>Bn(R())}let I,k=R=>{I=D.onStop=()=>{Gn(R,v,4),I=D.onStop=void 0}},A;if($s)if(k=Ci,t?n&&ei(t,v,3,[g(),x?[]:void 0,k]):g(),r==="sync"){const R=ch();A=R.__watcherHandles||(R.__watcherHandles=[])}else return Ci;let $=x?new Array(e.length).fill(yr):yr;const P=()=>{if(!(!D.active||!D.dirty))if(t){const R=D.run();(i||m||(x?R.some((rt,ct)=>yn(rt,$[ct])):yn(R,$)))&&(I&&I(),ei(t,v,3,[R,$===yr?void 0:x&&$[0]===yr?[]:$,k]),$=R)}else D.run()};P.allowRecurse=!!t;let O;r==="sync"?O=P:r==="post"?O=()=>Ri(P,v&&v.suspense):(P.pre=!0,v&&(P.id=v.uid),O=()=>Ts(P));const D=new Qo(g,Ci,O),W=mu(),U=()=>{D.stop(),W&&iu(W.effects,D)};return{}.NODE_ENV!=="production"&&(D.onTrack=o,D.onTrigger=l),t?n?P():$=D.run():r==="post"?Ri(D.run.bind(D),v&&v.suspense):D.run(),A&&A.push(U),U}function uh(e,t,n){const i=this.proxy,r=ve(e)?e.includes(".")?hh(i,e):()=>i[e]:e.bind(i,i);let s;Qt(t)?s=t:(s=t.handler,n=t);const o=Qa(this),l=La(r,s.bind(i),n);return o(),l}function hh(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 Bn(e,t,n=0,i){if(!oe(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),Ce(e))Bn(e.value,t,n,i);else if(Bt(e))for(let r=0;r<e.length;r++)Bn(e[r],t,n,i);else if(Bo(e)||Rn(e))e.forEach(r=>{Bn(r,t,n,i)});else if(Wo(e))for(const r in e)Bn(e[r],t,n,i);return e}function Os(e,t){if(Jt===null)return{}.NODE_ENV!=="production"&&Gt("withDirectives can only be used inside render functions."),e;const n=tl(Jt)||Jt.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,o,l,u=je]=t[r];s&&(Qt(s)&&(s={mounted:s,updated:s}),s.deep&&Bn(o),i.push({dir:s,instance:n,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function Ra(e,t){e.shapeFlag&6&&e.component?Ra(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ut(e,t){return Qt(e)?(()=>Le({name:e.name},t,{setup:e}))():e}const Da=e=>!!e.type.__asyncLoader,fh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Za(),i=n.ctx;if(!i.renderer)return()=>{const P=t.default&&t.default();return P&&P.length===1?P[0]:P};const r=new Map,s=new Set;let o=null;({}).NODE_ENV!=="production"&&(n.__v_cache=r);const l=n.suspense,{renderer:{p:u,m:v,um:y,o:{createElement:g}}}=i,m=g("div");i.activate=(P,O,D,W,U)=>{const R=P.component;v(P,O,D,0,l),u(R.vnode,P,O,D,R,l,W,P.slotScopeIds,U),Ri(()=>{R.isDeactivated=!1,R.a&&qo(R.a);const rt=P.props&&P.props.onVnodeMounted;rt&&Ka(rt,R.parent,P)},l),{}.NODE_ENV!=="production"&&Ta(R)},i.deactivate=P=>{const O=P.component;v(P,m,null,1,l),Ri(()=>{O.da&&qo(O.da);const D=P.props&&P.props.onVnodeUnmounted;D&&Ka(D,O.parent,P),O.isDeactivated=!0},l),{}.NODE_ENV!=="production"&&Ta(O)};function x(P){Ms(P),y(P,n,l,!0)}function I(P){r.forEach((O,D)=>{const W=$i(O.type);W&&(!P||!P(W))&&k(D)})}function k(P){const O=r.get(P);!o||!Ih(O,o)?x(O):o&&Ms(o),r.delete(P),s.delete(P)}te(()=>[e.include,e.exclude],([P,O])=>{P&&I(D=>Mi(P,D)),O&&I(D=>!Mi(O,D))},{flush:"post",deep:!0});let A=null;const $=()=>{A!=null&&r.set(A,As(n.subTree))};return xr($),ph($),mh(()=>{r.forEach(P=>{const{subTree:O,suspense:D}=n,W=As(O);if(P.type===W.type&&P.key===W.key){Ms(W);const U=W.component.da;U&&Ri(U,D);return}x(P)})}),()=>{if(A=null,!t.default)return o=null;const P=t.default(),O=P[0];if(P.length>1)return{}.NODE_ENV!=="production"&&Gt("KeepAlive should contain exactly one component child."),o=null,P;if(!Fi(O)||!(O.shapeFlag&4)&&!(O.shapeFlag&128))return o=null,O;let D=As(O);const W=D.type,U=$i(Da(D)?D.type.__asyncResolved||{}:W),{include:R,exclude:rt,max:ct}=e;if(R&&(!U||!Mi(R,U))||rt&&U&&Mi(rt,U))return o=D,O;const mt=D.key==null?W:D.key,ht=r.get(mt);return D.el&&(D=Vi(D),O.shapeFlag&128&&(O.ssContent=D)),A=mt,ht?(D.el=ht.el,D.component=ht.component,D.transition&&Ra(D,D.transition),D.shapeFlag|=512,s.delete(mt),s.add(mt)):(s.add(mt),ct&&s.size>parseInt(ct,10)&&k(s.values().next().value)),D.shapeFlag|=256,o=D,Aa(O.type)?O:D}}};function Mi(e,t){return Bt(e)?e.some(n=>Mi(n,t)):ve(e)?e.split(",").includes(t):su(e)?e.test(t):!1}function Ms(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function As(e){return e.shapeFlag&128?e.ssContent:e}function dh(e,t,n=Sn,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ti();const l=Qa(n),u=ei(t,n,e,o);return l(),Pi(),u});return i?r.unshift(s):r.push(s),s}else if({}.NODE_ENV!=="production"){const r=lu(Es[e].replace(/ hook$/,""));Gt(`${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 _r=e=>(t,n=Sn)=>(!$s||e==="sp")&&dh(e,(...i)=>t(...i),n),xr=_r("m"),ph=_r("u"),mh=_r("bum"),Fa=_r("um");function Cn(e,t,n,i){let r;const s=n&&n[i];if(Bt(e)||ve(e)){r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(e[o],o,void 0,s&&s[o])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&Gt(`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(oe(e))if(e[Symbol.iterator])r=Array.from(e,(o,l)=>t(o,l,void 0,s&&s[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const v=o[l];r[l]=t(e[v],v,l,s&&s[l])}}else r=[];return n&&(n[i]=r),r}function ie(e,t,n={},i,r){if(Jt.isCE||Jt.parent&&Da(Jt.parent)&&Jt.parent.isCE)return t!=="default"&&(n.name=t),Kt("slot",n,i&&i());let s=e[t];({}).NODE_ENV!=="production"&&s&&s.length>1&&(Gt("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),dt();const o=s&&Va(s(n)),l=pe(xe,{key:n.key||o&&o.key||`_${t}`},o||(i?i():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Va(e){return e.some(t=>Fi(t)?!(t.type===wr||t.type===xe&&!Va(t.children)):!0)?e:null}const Ls=e=>e?Mh(e)?tl(e)||e.proxy:Ls(e.parent):null,Ai=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?fr(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?fr(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?fr(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?fr(e.refs):e.refs,$parent:e=>Ls(e.parent),$root:e=>Ls(e.root),$emit:e=>e.emit,$options:e=>xh(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ts(e.update)}),$nextTick:e=>e.n||(e.n=Ku.bind(e.proxy)),$watch:e=>uh.bind(e)}),gh=e=>e==="_"||e==="$",Rs=(e,t)=>e!==je&&!e.__isScriptSetup&&ne(e,t),vh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:o,type:l,appContext:u}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let v;if(t[0]!=="$"){const x=o[t];if(x!==void 0)switch(x){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Rs(i,t))return o[t]=1,i[t];if(r!==je&&ne(r,t))return o[t]=2,r[t];if((v=e.propsOptions[0])&&ne(v,t))return o[t]=3,s[t];if(n!==je&&ne(n,t))return o[t]=4,n[t];o[t]=0}}const y=Ai[t];let g,m;if(y)return t==="$attrs"?ue(e.attrs,"get",""):{}.NODE_ENV!=="production"&&t==="$slots"&&ue(e,"get",t),y(e);if((g=l.__cssModules)&&(g=g[t]))return g;if(n!==je&&ne(n,t))return o[t]=4,n[t];if(m=u.config.globalProperties,ne(m,t))return m[t];({}).NODE_ENV!=="production"&&Jt&&(!ve(t)||t.indexOf("__v")!==0)&&(r!==je&&gh(t[0])&&ne(r,t)?Gt(`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===Jt&&Gt(`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 Rs(r,t)?(r[t]=n,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&ne(r,t)?(Gt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==je&&ne(i,t)?(i[t]=n,!0):ne(e.props,t)?({}.NODE_ENV!=="production"&&Gt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&Gt(`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 l;return!!n[o]||e!==je&&ne(e,o)||Rs(t,o)||(l=s[0])&&ne(l,o)||ne(i,o)||ne(Ai,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"&&(vh.ownKeys=e=>(Gt("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 yh(){return _h().slots}function _h(){const e=Za();return{}.NODE_ENV!=="production"&&!e&&Gt("useContext() called without active instance."),e.setupContext||(e.setupContext=Lh(e))}function $a(e){return Bt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function xh(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,l=s.get(t);let u;return l?u=l:!r.length&&!n&&!i?u=t:(u={},r.length&&r.forEach(v=>br(u,v,o,!0)),br(u,t,o)),oe(t)&&s.set(t,u),u}function br(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&br(e,s,n,!0),r&&r.forEach(o=>br(e,o,n,!0));for(const o in t)if(i&&o==="expose")({}).NODE_ENV!=="production"&&Gt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=bh[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const bh={data:za,props:Ga,emits:Ga,methods:Li,computed:Li,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Li,directives:Li,watch:Eh,provide:za,inject:wh};function za(e,t){return t?e?function(){return Le(Qt(e)?e.call(this,this):e,Qt(t)?t.call(this,this):t)}:t:e}function wh(e,t){return Li(ja(e),ja(t))}function ja(e){if(Bt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function Li(e,t){return e?Le(Object.create(null),e,t):t}function Ga(e,t){return e?Bt(e)&&Bt(t)?[...new Set([...e,...t])]:Le(Object.create(null),$a(e),$a(t??{})):t}function Eh(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const i in t)n[i]=_e(e[i],t[i]);return n}let Ba=null;function Ch(e,t,n=!1){const i=Sn||Jt;if(i||Ba){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Ba._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Qt(t)?t.call(i&&i.proxy):t;({}).NODE_ENV!=="production"&&Gt(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&Gt("inject() can only be used inside setup() or functional components.")}const Sh={},Ha=e=>Object.getPrototypeOf(e)===Sh,Ri=ah,kh=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),Th=Symbol.for("v-txt"),wr=Symbol.for("v-cmt"),Er=[];let Be=null;function dt(e=!1){Er.push(Be=e?null:[])}function Ph(){Er.pop(),Be=Er[Er.length-1]||null}let Di=1;function Ua(e){Di+=e}function Wa(e){return e.dynamicChildren=Di>0?Be||eu:null,Ph(),Di>0&&Be&&Be.push(e),e}function _t(e,t,n,i,r,s){return Wa(B(e,t,n,i,r,s,!0))}function pe(e,t,n,i,r){return Wa(Kt(e,t,n,i,r,!0))}function Fi(e){return e?e.__v_isVNode===!0:!1}function Ih(e,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&ii.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}const Nh=(...e)=>Ya(...e),qa=({key:e})=>e??null,Cr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Ce(e)||Qt(e)?{i:Jt,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,i=0,r=null,s=e===xe?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qa(t),ref:t&&Cr(t),scopeId:gr,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:Jt};return l?(Ds(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ve(n)?8:16),{}.NODE_ENV!=="production"&&u.key!==u.key&&Gt("VNode created with invalid key (NaN). VNode type:",u.type),Di>0&&!o&&Be&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Be.push(u),u}const Kt={}.NODE_ENV!=="production"?Nh:Ya;function Ya(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Na)&&({}.NODE_ENV!=="production"&&!e&&Gt(`Invalid vnode type when creating vnode: ${e}.`),e=wr),Fi(e)){const l=Vi(e,t,!0);return n&&Ds(l,n),Di>0&&!s&&Be&&(l.shapeFlag&6?Be[Be.indexOf(e)]=l:Be.push(l)),l.patchFlag|=-2,l}if(nl(e)&&(e=e.__vccOpts),t){t=Oh(t);let{class:l,style:u}=t;l&&!ve(l)&&(t.class=Wt(l)),oe(u)&&(bs(u)&&!Bt(u)&&(u=Le({},u)),t.style=Ot(u))}const o=ve(e)?1:Aa(e)?128:kh(e)?64:oe(e)?4:Qt(e)?2:0;return{}.NODE_ENV!=="production"&&o&4&&bs(e)&&(e=Rt(e),Gt("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`.",`
20
+ Component that was made reactive: `,e)),B(e,t,n,i,r,o,s,!0)}function Oh(e){return e?bs(e)||Ha(e)?Le({},e):e:null}function Vi(e,t,n=!1){const{props:i,ref:r,patchFlag:s,children:o}=e,l=t?Fs(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qa(l),ref:t&&t.ref?n&&r?Bt(r)?r.concat(Cr(t)):[r,Cr(t)]:Cr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&s===-1&&Bt(o)?o.map(Xa):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?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&&Vi(e.ssContent),ssFallback:e.ssFallback&&Vi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xa(e){const t=Vi(e);return Bt(e.children)&&(t.children=e.children.map(Xa)),t}function rn(e=" ",t=0){return Kt(Th,null,e,t)}function he(e="",t=!1){return t?(dt(),pe(wr,null,e)):Kt(wr,null,e)}function Ds(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Bt(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Ds(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ha(t)?t._ctx=Jt:r===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qt(t)?(t={default:t,_ctx:Jt},n=32):(t=String(t),i&64?(n=16,t=[rn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fs(...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=Wt([t.class,i.class]));else if(r==="style")t.style=Ot([t.style,i.style]);else if(nu(r)){const s=t[r],o=i[r];o&&s!==o&&!(Bt(s)&&s.includes(o))&&(t[r]=s?[].concat(s,o):o)}else r!==""&&(t[r]=i[r])}return t}function Ka(e,t,n,i=null){ei(e,t,7,[n,i])}let Sn=null;const Za=()=>Sn||Jt;let Vs;{const e=Xo(),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)}};Vs=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),t("__VUE_SSR_SETTERS__",n=>$s=n)}const Qa=e=>{const t=Sn;return Vs(e),e.scope.on(),()=>{e.scope.off(),Vs(t)}};function Mh(e){return e.vnode.shapeFlag&4}let $s=!1;const Ja={}.NODE_ENV!=="production"?{get(e,t){return ue(e,"get",""),e[t]},set(){return Gt("setupContext.attrs is readonly."),!1},deleteProperty(){return Gt("setupContext.attrs is readonly."),!1}}:{get(e,t){return ue(e,"get",""),e[t]}};function Ah(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return ue(e,"get","$slots"),t[n]}}))}function Lh(e){const t=n=>{if({}.NODE_ENV!=="production"&&(e.exposed&&Gt("expose() should be called only once per setup()."),n!=null)){let i=typeof n;i==="object"&&(Bt(n)?i="array":Ce(n)&&(i="ref")),i!=="object"&&Gt(`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,Ja))},get slots(){return Ah(e)},get emit(){return(i,...r)=>e.emit(i,...r)},expose:t})}else return{attrs:new Proxy(e.attrs,Ja),slots:e.slots,emit:e.emit,expose:t}}function tl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ju(Ru(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ai)return Ai[n](e)},has(t,n){return n in t||n in Ai}}))}const Rh=/(?:^|[-_])(\w)/g,Dh=e=>e.replace(Rh,t=>t.toUpperCase()).replace(/[-_]/g,"");function $i(e,t=!0){return Qt(e)?e.displayName||e.name:e.name||t&&e.__name}function el(e,t,n=!1){let i=$i(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?Dh(i):n?"App":"Anonymous"}function nl(e){return Qt(e)&&"__vccOpts"in e}function il(e,t,n){const i=arguments.length;return i===2?oe(t)&&!Bt(t)?Fi(t)?Kt(e,null,[t]):Kt(e,t):Kt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Fi(n)&&(n=[n]),Kt(e,t,n))}function Fh(){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 oe(g)?g.__isVue?["div",e,"VueInstance"]:Ce(g)?["div",{},["span",e,y(g)],"<",l(g.value),">"]:ti(g)?["div",{},["span",e,zn(g)?"ShallowReactive":"Reactive"],"<",l(g),`>${$n(g)?" (readonly)":""}`]:$n(g)?["div",{},["span",e,zn(g)?"ShallowReadonly":"Readonly"],"<",l(g),">"]:null:null},hasBody(g){return g&&g.__isVue},body(g){if(g&&g.__isVue)return["div",{},...s(g.$)]}};function s(g){const m=[];g.type.props&&g.props&&m.push(o("props",Rt(g.props))),g.setupState!==je&&m.push(o("setup",g.setupState)),g.data!==je&&m.push(o("data",Rt(g.data)));const x=u(g,"computed");x&&m.push(o("computed",x));const I=u(g,"inject");return I&&m.push(o("injected",I)),m.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:g}]]),m}function o(g,m){return m=Le({},m),Object.keys(m).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},g],["div",{style:"padding-left:1.25em"},...Object.keys(m).map(x=>["div",{},["span",i,x+": "],l(m[x],!1)])]]:["span",{}]}function l(g,m=!0){return typeof g=="number"?["span",t,g]:typeof g=="string"?["span",n,JSON.stringify(g)]:typeof g=="boolean"?["span",i,g]:oe(g)?["object",{object:m?Rt(g):g}]:["span",n,String(g)]}function u(g,m){const x=g.type;if(Qt(x))return;const I={};for(const k in g.ctx)v(x,k,m)&&(I[k]=g.ctx[k]);return I}function v(g,m,x){const I=g[x];if(Bt(I)&&I.includes(m)||oe(I)&&m in I||g.extends&&v(g.extends,m,x)||g.mixins&&g.mixins.some(k=>v(k,m,x)))return!0}function y(g){return zn(g)?"ShallowRef":g.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}/**
21
+ * @vue/runtime-dom v3.4.25
22
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
+ * @license MIT
24
+ **/const rl=Symbol("_vod"),Vh=Symbol("_vsh"),Sr={beforeMount(e,{value:t},{transition:n}){e[rl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):zi(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),zi(e,!0),i.enter(e)):i.leave(e,()=>{zi(e,!1)}):zi(e,t))},beforeUnmount(e,{value:t}){zi(e,t)}};({}).NODE_ENV!=="production"&&(Sr.name="show");function zi(e,t){e.style.display=t?e[rl]:"none",e[Vh]=!t}/**
25
+ * vue v3.4.25
26
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
27
+ * @license MIT
28
+ **/function $h(){Fh()}({}).NODE_ENV!=="production"&&$h();const ji=/^[a-z0-9]+(-[a-z0-9]+)*$/,kr=(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 l=r.pop(),u=r.pop(),v={provider:r.length>0?r[0]:i,prefix:u,name:l};return t&&!Tr(v)?null:v}const s=r[0],o=s.split("-");if(o.length>1){const l={provider:i,prefix:o.shift(),name:o.join("-")};return t&&!Tr(l)?null:l}if(n&&i===""){const l={provider:i,prefix:"",name:s};return t&&!Tr(l,n)?null:l}return null},Tr=(e,t)=>e?!!((e.provider===""||e.provider.match(ji))&&(t&&e.prefix===""||e.prefix.match(ji))&&e.name.match(ji)):!1,sl=Object.freeze({left:0,top:0,width:16,height:16}),Pr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ir=Object.freeze({...sl,...Pr}),zs=Object.freeze({...Ir,body:"",hidden:!1});function zh(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 ol(e,t){const n=zh(e,t);for(const i in zs)i in Pr?i in e&&!(i in n)&&(n[i]=Pr[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function jh(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 l=i[o]&&i[o].parent,u=l&&s(l);u&&(r[o]=[l].concat(u))}return r[o]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(s),r}function Gh(e,t,n){const i=e.icons,r=e.aliases||Object.create(null);let s={};function o(l){s=ol(i[l]||r[l],s)}return o(t),n.forEach(o),ol(e,s)}function al(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=jh(e);for(const r in i){const s=i[r];s&&(t(r,Gh(e,r,s)),n.push(r))}return n}const Bh={provider:"",aliases:{},not_found:{},...sl};function js(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ll(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!js(e,Bh))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(ji)||typeof s.body!="string"||!js(s,zs))return null}const i=t.aliases||Object.create(null);for(const r in i){const s=i[r],o=s.parent;if(!r.match(ji)||typeof o!="string"||!n[o]&&!i[o]||!js(s,zs))return null}return t}const cl=Object.create(null);function Hh(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Hn(e,t){const n=cl[e]||(cl[e]=Object.create(null));return n[t]||(n[t]=Hh(e,t))}function Gs(e,t){return ll(t)?al(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function Uh(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Gi=!1;function ul(e){return typeof e=="boolean"&&(Gi=e),Gi}function Wh(e){const t=typeof e=="string"?kr(e,!0,Gi):e;if(t){const n=Hn(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function qh(e,t){const n=kr(e,!0,Gi);if(!n)return!1;const i=Hn(n.provider,n.prefix);return Uh(i,n.name,t)}function Yh(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Gi&&!t&&!e.prefix){let r=!1;return ll(e)&&(e.prefix="",al(e,(s,o)=>{o&&qh(s,o)&&(r=!0)})),r}const n=e.prefix;if(!Tr({provider:t,prefix:n,name:"a"}))return!1;const i=Hn(t,n);return!!Gs(i,e)}const hl=Object.freeze({width:null,height:null}),fl=Object.freeze({...hl,...Pr}),Xh=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Kh=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function dl(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(Xh);if(i===null||!i.length)return e;const r=[];let s=i.shift(),o=Kh.test(s);for(;;){if(o){const l=parseFloat(s);isNaN(l)?r.push(s):r.push(Math.ceil(l*t*n)/n)}else r.push(s);if(s=i.shift(),s===void 0)return r.join("");o=!o}}function Zh(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 Qh(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Jh(e,t,n){const i=Zh(e);return Qh(i.defs,t+i.content+n)}const tf=e=>e==="unset"||e==="undefined"||e==="none";function ef(e,t){const n={...Ir,...e},i={...fl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(k=>{const A=[],$=k.hFlip,P=k.vFlip;let O=k.rotate;$?P?O+=2:(A.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),A.push("scale(-1 1)"),r.top=r.left=0):P&&(A.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),A.push("scale(1 -1)"),r.top=r.left=0);let D;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:D=r.height/2+r.top,A.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:A.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:D=r.width/2+r.left,A.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}O%2===1&&(r.left!==r.top&&(D=r.left,r.left=r.top,r.top=D),r.width!==r.height&&(D=r.width,r.width=r.height,r.height=D)),A.length&&(s=Jh(s,'<g transform="'+A.join(" ")+'">',"</g>"))});const o=i.width,l=i.height,u=r.width,v=r.height;let y,g;o===null?(g=l===null?"1em":l==="auto"?v:l,y=dl(g,u/v)):(y=o==="auto"?u:o,g=l===null?dl(y,v/u):l==="auto"?v:l);const m={},x=(k,A)=>{tf(A)||(m[k]=A.toString())};x("width",y),x("height",g);const I=[r.left,r.top,u,v];return m.viewBox=I.join(" "),{attributes:m,viewBox:I,body:s}}const nf=/\sid="(\S+)"/g,rf="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let sf=0;function of(e,t=rf){const n=[];let i;for(;i=nf.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+(sf++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const Bs=Object.create(null);function af(e,t){Bs[e]=t}function Hs(e){return Bs[e]||Bs[""]}function Us(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 Ws=Object.create(null),Bi=["https://api.simplesvg.com","https://api.unisvg.com"],Nr=[];for(;Bi.length>0;)Bi.length===1||Math.random()>.5?Nr.push(Bi.shift()):Nr.push(Bi.pop());Ws[""]=Us({resources:["https://api.iconify.design"].concat(Nr)});function lf(e,t){const n=Us(t);return n===null?!1:(Ws[e]=n,!0)}function qs(e){return Ws[e]}let pl=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function cf(e,t){const n=qs(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 uf(e){return e===404}const hf=(e,t,n)=>{const i=[],r=cf(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},l=0;return n.forEach((u,v)=>{l+=u.length+1,l>=r&&v>0&&(i.push(o),o={type:s,provider:e,prefix:t,icons:[]},l=u.length),o.icons.push(u)}),i.push(o),i};function ff(e){if(typeof e=="string"){const t=qs(e);if(t)return t.path}return"/"}const df={prepare:hf,send:(e,t,n)=>{if(!pl){n("abort",424);return}let i=ff(t.provider);switch(t.type){case"icons":{const s=t.prefix,l=t.icons.join(","),u=new URLSearchParams({icons:l});i+=s+".json?"+u.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;pl(e+i).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(uf(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 pf(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,l=r.name,u=n[s]||(n[s]=Object.create(null)),v=u[o]||(u[o]=Hn(s,o));let y;l in v.icons?y=t.loaded:o===""||v.missing.has(l)?y=t.missing:y=t.pending;const g={provider:s,prefix:o,name:l};y.push(g)}),t}function ml(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(r=>r.id!==t))})}function mf(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,l=o.pending.length;o.pending=o.pending.filter(u=>{if(u.prefix!==r)return!0;const v=u.name;if(e.icons[v])o.loaded.push({provider:i,prefix:r,name:v});else if(e.missing.has(v))o.missing.push({provider:i,prefix:r,name:v});else return n=!0,!0;return!1}),o.pending.length!==l&&(n||ml([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let gf=0;function vf(e,t,n){const i=gf++,r=ml.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 yf(e,t=!0,n=!1){const i=[];return e.forEach(r=>{const s=typeof r=="string"?kr(r,t,n):r;s&&i.push(s)}),i}var _f={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function xf(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 U=e.resources.slice(0);for(o=[];U.length>1;){const R=Math.floor(Math.random()*U.length);o.push(U[R]),U=U.slice(0,R).concat(U.slice(R+1))}o=o.concat(U)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const l=Date.now();let u="pending",v=0,y,g=null,m=[],x=[];typeof i=="function"&&x.push(i);function I(){g&&(clearTimeout(g),g=null)}function k(){u==="pending"&&(u="aborted"),I(),m.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),m=[]}function A(U,R){R&&(x=[]),typeof U=="function"&&x.push(U)}function $(){return{startTime:l,payload:t,status:u,queriesSent:v,queriesPending:m.length,subscribe:A,abort:k}}function P(){u="failed",x.forEach(U=>{U(void 0,y)})}function O(){m.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),m=[]}function D(U,R,rt){const ct=R!=="success";switch(m=m.filter(mt=>mt!==U),u){case"pending":break;case"failed":if(ct||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){y=rt,P();return}if(ct){y=rt,m.length||(o.length?W():P());return}if(I(),O(),!e.random){const mt=e.resources.indexOf(U.resource);mt!==-1&&mt!==e.index&&(e.index=mt)}u="completed",x.forEach(mt=>{mt(rt)})}function W(){if(u!=="pending")return;I();const U=o.shift();if(U===void 0){if(m.length){g=setTimeout(()=>{I(),u==="pending"&&(O(),P())},e.timeout);return}P();return}const R={status:"pending",resource:U,callback:(rt,ct)=>{D(R,rt,ct)}};m.push(R),v++,g=setTimeout(W,e.rotate),n(U,t,R.callback)}return setTimeout(W),$}function gl(e){const t={..._f,...e};let n=[];function i(){n=n.filter(l=>l().status==="pending")}function r(l,u,v){const y=xf(t,l,u,(g,m)=>{i(),v&&v(g,m)});return n.push(y),y}function s(l){return n.find(u=>l(u))||null}return{query:r,find:s,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:i}}function vl(){}const Ys=Object.create(null);function bf(e){if(!Ys[e]){const t=qs(e);if(!t)return;const n=gl(t),i={config:t,redundancy:n};Ys[e]=i}return Ys[e]}function wf(e,t,n){let i,r;if(typeof e=="string"){const s=Hs(e);if(!s)return n(void 0,424),vl;r=s.send;const o=bf(e);o&&(i=o.redundancy)}else{const s=Us(e);if(s){i=gl(s);const o=e.resources?e.resources[0]:"",l=Hs(o);l&&(r=l.send)}}return!i||!r?(n(void 0,424),vl):i.query(t,r,n)().abort}const yl="iconify2",Hi="iconify",_l=Hi+"-count",xl=Hi+"-version",bl=36e5,Ef=168,Cf=50;function Xs(e,t){try{return e.getItem(t)}catch{}}function Ks(e,t,n){try{return e.setItem(t,n),!0}catch{}}function wl(e,t){try{e.removeItem(t)}catch{}}function Zs(e,t){return Ks(e,_l,t.toString())}function Qs(e){return parseInt(Xs(e,_l))||0}const Or={local:!0,session:!0},El={local:new Set,session:new Set};let Js=!1;function Sf(e){Js=e}let Mr=typeof window>"u"?{}:window;function Cl(e){const t=e+"Storage";try{if(Mr&&Mr[t]&&typeof Mr[t].length=="number")return Mr[t]}catch{}Or[e]=!1}function Sl(e,t){const n=Cl(e);if(!n)return;const i=Xs(n,xl);if(i!==yl){if(i){const l=Qs(n);for(let u=0;u<l;u++)wl(n,Hi+u.toString())}Ks(n,xl,yl),Zs(n,0);return}const r=Math.floor(Date.now()/bl)-Ef,s=l=>{const u=Hi+l.toString(),v=Xs(n,u);if(typeof v=="string"){try{const y=JSON.parse(v);if(typeof y=="object"&&typeof y.cached=="number"&&y.cached>r&&typeof y.provider=="string"&&typeof y.data=="object"&&typeof y.data.prefix=="string"&&t(y,l))return!0}catch{}wl(n,u)}};let o=Qs(n);for(let l=o-1;l>=0;l--)s(l)||(l===o-1?(o--,Zs(n,o)):El[e].add(l))}function kl(){if(!Js){Sf(!0);for(const e in Or)Sl(e,t=>{const n=t.data,i=t.provider,r=n.prefix,s=Hn(i,r);if(!Gs(s,n).length)return!1;const o=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,o):o,!0})}}function kf(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in Or)Sl(i,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Tf(e,t){Js||kl();function n(i){let r;if(!Or[i]||!(r=Cl(i)))return;const s=El[i];let o;if(s.size)s.delete(o=Array.from(s).shift());else if(o=Qs(r),o>=Cf||!Zs(r,o+1))return;const l={cached:Math.floor(Date.now()/bl),provider:e.provider,data:t};return Ks(r,Hi+o.toString(),JSON.stringify(l))}t.lastModified&&!kf(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Tl(){}function Pf(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mf(e)}))}function If(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=Hs(n)))return;s.prepare(n,i,r).forEach(l=>{wf(n,l,u=>{if(typeof u!="object")l.icons.forEach(v=>{e.missing.add(v)});else try{const v=Gs(e,u);if(!v.length)return;const y=e.pendingIcons;y&&v.forEach(g=>{y.delete(g)}),Tf(e,u)}catch(v){console.error(v)}Pf(e)})})}))}const Nf=(e,t)=>{const n=yf(e,!0,ul()),i=pf(n);if(!i.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(i.loaded,i.missing,i.pending,Tl)}),()=>{u=!1}}const r=Object.create(null),s=[];let o,l;return i.pending.forEach(u=>{const{provider:v,prefix:y}=u;if(y===l&&v===o)return;o=v,l=y,s.push(Hn(v,y));const g=r[v]||(r[v]=Object.create(null));g[y]||(g[y]=[])}),i.pending.forEach(u=>{const{provider:v,prefix:y,name:g}=u,m=Hn(v,y),x=m.pendingIcons||(m.pendingIcons=new Set);x.has(g)||(x.add(g),r[v][y].push(g))}),s.forEach(u=>{const{provider:v,prefix:y}=u;r[v][y].length&&If(u,r[v][y])}),t?vf(t,i,s):Tl};function Of(e,t){const n={...e};for(const i in t){const r=t[i],s=typeof r;i in hl?(r===null||r&&(s==="string"||s==="number"))&&(n[i]=r):s===typeof n[i]&&(n[i]=i==="rotate"?r%4:r)}return n}const Mf=/[\s,]+/;function Af(e,t){t.split(Mf).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Lf(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 Rf(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 Df(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ff(e){return"data:image/svg+xml,"+Df(e)}function Vf(e){return'url("'+Ff(e)+'")'}const Pl={...fl,inline:!1},$f={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zf={display:"inline-block"},to={backgroundColor:"currentColor"},Il={backgroundColor:"transparent"},Nl={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ol={webkitMask:to,mask:to,background:Il};for(const e in Ol){const t=Ol[e];for(const n in Nl)t[e+n]=Nl[n]}const Ar={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ar[e+"-flip"]=t,Ar[e.slice(0,1)+"-flip"]=t,Ar[e+"Flip"]=t});function Ml(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Al=(e,t)=>{const n=Of(Pl,t),i={...$f},r=t.mode||"svg",s={},o=t.style,l=typeof o=="object"&&!(o instanceof Array)?o:{};for(let k in t){const A=t[k];if(A!==void 0)switch(k){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[k]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Af(n,A);break;case"color":s.color=A;break;case"rotate":typeof A=="string"?n[k]=Lf(A):typeof A=="number"&&(n[k]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete i["aria-hidden"];break;default:{const $=Ar[k];$?(A===!0||A==="true"||A===1)&&(n[$]=!0):Pl[k]===void 0&&(i[k]=A)}}}const u=ef(e,n),v=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){i.style={...s,...l},Object.assign(i,v);let k=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),i.innerHTML=of(u.body,A?()=>A+"ID"+k++:"iconifyVue"),il("svg",i)}const{body:y,width:g,height:m}=e,x=r==="mask"||(r==="bg"?!1:y.indexOf("currentColor")!==-1),I=Rf(y,{...v,width:g+"",height:m+""});return i.style={...s,"--svg":Vf(I),width:Ml(v.width),height:Ml(v.height),...zf,...x?to:Il,...l},il("span",i)};if(ul(!0),af("",df),typeof document<"u"&&typeof window<"u"){kl();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"||!Yh(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;lf(n,r)||console.error(i)}catch{console.error(i)}}}}const jf={...Ir,body:""},Gf=Ut({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=kr(e,!1,!0))===null)return this.abortLoading(),null;const i=Wh(n);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:Nf([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 Al(jf,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Al({...Ir,...t.data},n)}}),Lr=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const Ll=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`
2
29
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
3
30
  |[\u{4E00}-\u{9FCC}]
4
31
  |[\u{3400}-\u{4DB5}]
@@ -7,62 +34,24 @@
7
34
  |[\u{2B740}-\u{2B81D}]
8
35
  |[\u{2B820}-\u{2CEAF}]
9
36
  |[\u{2CEB0}-\u{2EBEF}]
10
- `.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 Q3(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 Rg=(e,t)=>{typeof e=="string"&&(e=J3(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(Q3(i));return r};function Z3(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function tk(e){return Z3(e)==="object"}function jg(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]=tk(e[i])?jg(e[i],t):e[i];return n}function Ig(e,t=12){return+e.toPrecision(t)}function Dg(e,t){return function(){return e.apply(t,arguments)}}const{toString:ek}=Object.prototype,{getPrototypeOf:Ih}=Object,vc=(e=>t=>{const r=ek.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Jn=e=>(e=e.toLowerCase(),t=>vc(t)===e),yc=e=>t=>typeof t===e,{isArray:ia}=Array,qa=yc("undefined");function rk(e){return e!==null&&!qa(e)&&e.constructor!==null&&!qa(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fg=Jn("ArrayBuffer");function nk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fg(e.buffer),t}const ik=yc("string"),yn=yc("function"),Mg=yc("number"),_c=e=>e!==null&&typeof e=="object",ok=e=>e===!0||e===!1,bc=e=>{if(vc(e)!=="object")return!1;const t=Ih(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ak=Jn("Date"),sk=Jn("File"),lk=Jn("Blob"),ck=Jn("FileList"),uk=e=>_c(e)&&yn(e.pipe),hk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yn(e.append)&&((t=vc(e))==="formdata"||t==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"))},dk=Jn("URLSearchParams"),fk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ka(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ia(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),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Lg(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 Ug=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zg=e=>!qa(e)&&e!==Ug;function Dh(){const{caseless:e}=zg(this)&&this||{},t={},r=(n,i)=>{const o=e&&Lg(t,i)||i;bc(t[o])&&bc(n)?t[o]=Dh(t[o],n):bc(n)?t[o]=Dh({},n):ia(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ka(arguments[n],r);return t}const pk=(e,t,r,{allOwnKeys:n}={})=>(Ka(t,(i,o)=>{r&&yn(i)?e[o]=Dg(i,r):e[o]=i},{allOwnKeys:n}),e),mk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gk=(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)},vk=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Ih(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},yk=(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},_k=e=>{if(!e)return null;if(ia(e))return e;let t=e.length;if(!Mg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},bk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),wk=(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])}},xk=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Sk=Jn("HTMLFormElement"),$k=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Gg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),kk=Jn("RegExp"),Vg=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ka(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},Ek=e=>{Vg(e,(t,r)=>{if(yn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yn(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+"'")})}})},Ck=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ia(e)?n(e):n(String(e).split(t)),r},Pk=()=>{},Tk=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Fh="abcdefghijklmnopqrstuvwxyz",Bg="0123456789",Hg={DIGIT:Bg,ALPHA:Fh,ALPHA_DIGIT:Fh+Fh.toUpperCase()+Bg},Ok=(e=16,t=Hg.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ak(e){return!!(e&&yn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nk=e=>{const t=new Array(10),r=(n,i)=>{if(_c(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=ia(n)?[]:{};return Ka(n,(a,s)=>{const c=r(a,i+1);!qa(c)&&(o[s]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Rk=Jn("AsyncFunction"),jk=e=>e&&(_c(e)||yn(e))&&yn(e.then)&&yn(e.catch),mt={isArray:ia,isArrayBuffer:Fg,isBuffer:rk,isFormData:hk,isArrayBufferView:nk,isString:ik,isNumber:Mg,isBoolean:ok,isObject:_c,isPlainObject:bc,isUndefined:qa,isDate:ak,isFile:sk,isBlob:lk,isRegExp:kk,isFunction:yn,isStream:uk,isURLSearchParams:dk,isTypedArray:bk,isFileList:ck,forEach:Ka,merge:Dh,extend:pk,trim:fk,stripBOM:mk,inherits:gk,toFlatObject:vk,kindOf:vc,kindOfTest:Jn,endsWith:yk,toArray:_k,forEachEntry:wk,matchAll:xk,isHTMLForm:Sk,hasOwnProperty:Gg,hasOwnProp:Gg,reduceDescriptors:Vg,freezeMethods:Ek,toObjectSet:Ck,toCamelCase:$k,noop:Pk,toFiniteNumber:Tk,findKey:Lg,global:Ug,isContextDefined:zg,ALPHABET:Hg,generateString:Ok,isSpecCompliantForm:Ak,toJSONObject:Nk,isAsyncFn:Rk,isThenable:jk};function Ee(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)}mt.inherits(Ee,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:mt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qg=Ee.prototype,Kg={};["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=>{Kg[e]={value:e}}),Object.defineProperties(Ee,Kg),Object.defineProperty(qg,"isAxiosError",{value:!0}),Ee.from=(e,t,r,n,i,o)=>{const a=Object.create(qg);return mt.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Ee.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Ik=null;function Mh(e){return mt.isPlainObject(e)||mt.isArray(e)}function Yg(e){return mt.endsWith(e,"[]")?e.slice(0,-2):e}function Xg(e,t,r){return e?e.concat(t).map(function(n,i){return n=Yg(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Dk(e){return mt.isArray(e)&&!e.some(Mh)}const Fk=mt.toFlatObject(mt,{},null,function(e){return/^is[A-Z]/.test(e)});function wc(e,t,r){if(!mt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=mt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,p){return!mt.isUndefined(p[h])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&mt.isSpecCompliantForm(t);if(!mt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(mt.isDate(h))return h.toISOString();if(!s&&mt.isBlob(h))throw new Ee("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(h)||mt.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,p,g){let v=h;if(h&&!g&&typeof h=="object"){if(mt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),h=JSON.stringify(h);else if(mt.isArray(h)&&Dk(h)||(mt.isFileList(h)||mt.endsWith(p,"[]"))&&(v=mt.toArray(h)))return p=Yg(p),v.forEach(function(_,y){!(mt.isUndefined(_)||_===null)&&t.append(a===!0?Xg([p],y,o):a===null?p:p+"[]",c(_))}),!1}return Mh(h)?!0:(t.append(Xg(g,p,o),c(h)),!1)}const u=[],d=Object.assign(Fk,{defaultVisitor:l,convertValue:c,isVisitable:Mh});function f(h,p){if(!mt.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(h),mt.forEach(h,function(g,v){(!(mt.isUndefined(g)||g===null)&&i.call(t,g,mt.isString(v)?v.trim():v,p,d))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!mt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Wg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lh(e,t){this._pairs=[],e&&wc(e,this,t)}const Jg=Lh.prototype;Jg.append=function(e,t){this._pairs.push([e,t])},Jg.toString=function(e){const t=e?function(r){return e.call(this,r,Wg)}:Wg;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Mk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qg(e,t,r){if(!t)return e;const n=r&&r.encode||Mk,i=r&&r.serialize;let o;if(i?o=i(t,r):o=mt.isURLSearchParams(t)?t.toString():new Lh(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Lk{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){mt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zg=Lk,t1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uk=typeof URLSearchParams<"u"?URLSearchParams:Lh,zk=typeof FormData<"u"?FormData:null,Gk=typeof Blob<"u"?Blob:null,Vk=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Bk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qn={isBrowser:!0,classes:{URLSearchParams:Uk,FormData:zk,Blob:Gk},isStandardBrowserEnv:Vk,isStandardBrowserWebWorkerEnv:Bk,protocols:["http","https","file","blob","url","data"]};function Hk(e,t){return wc(e,new Qn.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Qn.isNode&&mt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function qk(e){return mt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Kk(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 e1(e){function t(r,n,i,o){let a=r[o++];const s=Number.isFinite(+a),c=o>=r.length;return a=!a&&mt.isArray(i)?i.length:a,c?(mt.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!mt.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&mt.isArray(i[a])&&(i[a]=Kk(i[a])),!s)}if(mt.isFormData(e)&&mt.isFunction(e.entries)){const r={};return mt.forEachEntry(e,(n,i)=>{t(qk(n),i,r,0)}),r}return null}function Yk(e,t,r){if(mt.isString(e))try{return(t||JSON.parse)(e),mt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Uh={transitional:t1,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=mt.isObject(e);if(i&&mt.isHTMLForm(e)&&(e=new FormData(e)),mt.isFormData(e))return n&&n?JSON.stringify(e1(e)):e;if(mt.isArrayBuffer(e)||mt.isBuffer(e)||mt.isStream(e)||mt.isFile(e)||mt.isBlob(e))return e;if(mt.isArrayBufferView(e))return e.buffer;if(mt.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 Hk(e,this.formSerializer).toString();if((o=mt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return wc(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Yk(e)):e}],transformResponse:[function(e){const t=this.transitional||Uh.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&mt.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"?Ee.from(o,Ee.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:Qn.classes.FormData,Blob:Qn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};mt.forEach(["delete","get","head","post","put","patch"],e=>{Uh.headers[e]={}});const zh=Uh,Xk=mt.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"]),Wk=e=>{const t={};let r,n,i;return e&&e.split(`
11
- `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Xk[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},r1=Symbol("internals");function Ya(e){return e&&String(e).trim().toLowerCase()}function xc(e){return e===!1||e==null?e:mt.isArray(e)?e.map(xc):String(e)}function Jk(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 Qk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gh(e,t,r,n,i){if(mt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!mt.isString(t)){if(mt.isString(n))return t.indexOf(n)!==-1;if(mt.isRegExp(n))return n.test(t)}}function Zk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function t4(e,t){const r=mt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}let Sc=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,c,l){const u=Ya(c);if(!u)throw new Error("header name must be a non-empty string");const d=mt.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=xc(s))}const a=(s,c)=>mt.forEach(s,(l,u)=>o(l,u,c));return mt.isPlainObject(t)||t instanceof this.constructor?a(t,r):mt.isString(t)&&(t=t.trim())&&!Qk(t)?a(Wk(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Ya(t),t){const n=mt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Jk(i);if(mt.isFunction(r))return r.call(this,i,n);if(mt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ya(t),t){const n=mt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Gh(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=Ya(a),a){const s=mt.findKey(n,a);s&&(!r||Gh(n,n[s],s,r))&&(delete n[s],i=!0)}}return mt.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||Gh(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return mt.forEach(this,(i,o)=>{const a=mt.findKey(n,o);if(a){r[a]=xc(i),delete r[o];return}const s=t?Zk(o):String(o).trim();s!==o&&delete r[o],r[s]=xc(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return mt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&mt.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(`
12
- `)}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[r1]=this[r1]={accessors:{}}).accessors,n=this.prototype;function i(o){const a=Ya(o);r[a]||(t4(n,o),r[a]=!0)}return mt.isArray(t)?t.forEach(i):i(t),this}};Sc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mt.reduceDescriptors(Sc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),mt.freezeMethods(Sc);const di=Sc;function Vh(e,t){const r=this||zh,n=t||r,i=di.from(n.headers);let o=n.data;return mt.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function n1(e){return!!(e&&e.__CANCEL__)}function Xa(e,t,r){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,r),this.name="CanceledError"}mt.inherits(Xa,Ee,{__CANCEL__:!0});function e4(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const r4=Qn.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),mt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),mt.isString(n)&&a.push("path="+n),mt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 n4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i4(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function i1(e,t){return e&&!n4(t)?i4(e,t):t}const o4=Qn.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=mt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function a4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function s4(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),l=n[o];a||(a=c),r[i]=s,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function o1(e,t){let r=0;const n=s4(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),l=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const l4=typeof XMLHttpRequest<"u",c4=l4&&function(e){return new Promise(function(t,r){let n=e.data;const i=di.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;mt.isFormData(n)&&(Qn.isStandardBrowserEnv||Qn.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?mt.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 h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=i1(e.baseURL,e.url);l.open(e.method.toUpperCase(),Qg(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=di.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};e4(function(g){t(g),s()},function(g){r(g),s()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Ee("Network Error",Ee.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||t1;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new Ee(h,p.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,l)),l=null},Qn.isStandardBrowserEnv){const h=(e.withCredentials||o4(u))&&e.xsrfCookieName&&r4.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&mt.forEach(i.toJSON(),function(h,p){l.setRequestHeader(p,h)}),mt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",o1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",o1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{l&&(r(!h||h.type?new Xa(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=a4(u);if(f&&Qn.protocols.indexOf(f)===-1){r(new Ee("Unsupported protocol "+f+":",Ee.ERR_BAD_REQUEST,e));return}l.send(n||null)})},Bh={http:Ik,xhr:c4};mt.forEach(Bh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a1=e=>`- ${e}`,u4=e=>mt.isFunction(e)||e===null||e===!1,s1={getAdapter:e=>{e=mt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let a;if(n=r,!u4(r)&&(n=Bh[(a=String(r)).toLowerCase()],n===void 0))throw new Ee(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
13
- `+o.map(a1).join(`
14
- `):" "+a1(o[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Bh};function Hh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xa(null,e)}function l1(e){return Hh(e),e.headers=di.from(e.headers),e.data=Vh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),s1.getAdapter(e.adapter||zh.adapter)(e).then(function(t){return Hh(e),t.data=Vh.call(e,e.transformResponse,t),t.headers=di.from(t.headers),t},function(t){return n1(t)||(Hh(e),t&&t.response&&(t.response.data=Vh.call(e,e.transformResponse,t.response),t.response.headers=di.from(t.response.headers))),Promise.reject(t)})}const c1=e=>e instanceof di?e.toJSON():e;function oa(e,t){t=t||{};const r={};function n(l,u,d){return mt.isPlainObject(l)&&mt.isPlainObject(u)?mt.merge.call({caseless:d},l,u):mt.isPlainObject(u)?mt.merge({},u):mt.isArray(u)?u.slice():u}function i(l,u,d){if(mt.isUndefined(u)){if(!mt.isUndefined(l))return n(void 0,l,d)}else return n(l,u,d)}function o(l,u){if(!mt.isUndefined(u))return n(void 0,u)}function a(l,u){if(mt.isUndefined(u)){if(!mt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in t)return n(l,u);if(d in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(c1(l),c1(u),!0)};return mt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,d=u(e[l],t[l],l);mt.isUndefined(d)&&u!==s||(r[l]=d)}),r}const u1="1.5.1",qh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const h1={};qh.transitional=function(e,t,r){function n(i,o){return"[Axios v"+u1+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new Ee(n(o," has been removed"+(t?" in "+t:"")),Ee.ERR_DEPRECATED);return t&&!h1[o]&&(h1[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function h4(e,t,r){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new Ee("option "+o+" must be "+c,Ee.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ee("Unknown option "+o,Ee.ERR_BAD_OPTION)}}const Kh={assertOptions:h4,validators:qh},Ui=Kh.validators;let $c=class{constructor(t){this.defaults=t,this.interceptors={request:new Zg,response:new Zg}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=oa(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Kh.assertOptions(n,{silentJSONParsing:Ui.transitional(Ui.boolean),forcedJSONParsing:Ui.transitional(Ui.boolean),clarifyTimeoutError:Ui.transitional(Ui.boolean)},!1),i!=null&&(mt.isFunction(i)?r.paramsSerializer={serialize:i}:Kh.assertOptions(i,{encode:Ui.function,serialize:Ui.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&mt.merge(o.common,o[r.method]);o&&mt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=di.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[l1.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=r;for(d=0;d<f;){const p=s[d++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=l1.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=oa(this.defaults,t);const r=i1(t.baseURL,t.url);return Qg(r,t.params,t.paramsSerializer)}};mt.forEach(["delete","get","head","options"],function(e){$c.prototype[e]=function(t,r){return this.request(oa(r||{},{method:e,url:t,data:(r||{}).data}))}}),mt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(oa(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}$c.prototype[e]=t(),$c.prototype[e+"Form"]=t(!0)});const kc=$c;class Yh{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 a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(i,o,a){n.reason||(n.reason=new Xa(i,o,a),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 Yh(function(r){t=r}),cancel:t}}}const d4=Yh;function f4(e){return function(t){return e.apply(null,t)}}function p4(e){return mt.isObject(e)&&e.isAxiosError===!0}const Xh={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(Xh).forEach(([e,t])=>{Xh[t]=e});const m4=Xh;function d1(e){const t=new kc(e),r=Dg(kc.prototype.request,t);return mt.extend(r,kc.prototype,t,{allOwnKeys:!0}),mt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return d1(oa(e,n))},r}const mr=d1(zh);mr.Axios=kc,mr.CanceledError=Xa,mr.CancelToken=d4,mr.isCancel=n1,mr.VERSION=u1,mr.toFormData=wc,mr.AxiosError=Ee,mr.Cancel=mr.CanceledError,mr.all=function(e){return Promise.all(e)},mr.spread=f4,mr.isAxiosError=p4,mr.mergeConfig=oa,mr.AxiosHeaders=di,mr.formToJSON=e=>e1(mt.isHTMLForm(e)?new FormData(e):e),mr.getAdapter=s1.getAdapter,mr.HttpStatusCode=m4,mr.default=mr;var Wh=function(e,t){return Wh=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])},Wh(e,t)};function zi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Jh(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 Wa(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Ja(e,t,r){if(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 fi(e){return typeof e=="function"}function Qh(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 Zh=Qh(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
15
- `+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Ec(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Qa=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Jh(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(fi(u))try{u()}catch(g){o=g instanceof Zh?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Jh(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{m1(p)}catch(g){o=o??[],g instanceof Zh?o=Ja(Ja([],Wa(o)),Wa(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new Zh(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)m1(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)&&Ec(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ec(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),f1=Qa.EMPTY;function p1(e){return e instanceof Qa||e&&"closed"in e&&fi(e.remove)&&fi(e.add)&&fi(e.unsubscribe)}function m1(e){fi(e)?e():e.unsubscribe()}var g1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g4={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Ja([e,t],Wa(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function v4(e){g4.setTimeout(function(){throw e})}function v1(){}function Cc(e){e()}var td=function(e){zi(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,p1(r)&&r.add(n)):n.destination=w4,n}return t.create=function(r,n,i){return new rd(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}(Qa),y4=Function.prototype.bind;function ed(e,t){return y4.call(e,t)}var _4=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){Pc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Pc(n)}else Pc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Pc(r)}},e}(),rd=function(e){zi(t,e);function t(r,n,i){var o=e.call(this)||this,a;if(fi(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&g1.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&ed(r.next,s),error:r.error&&ed(r.error,s),complete:r.complete&&ed(r.complete,s)}):a=r}return o.destination=new _4(a),o}return t}(td);function Pc(e){v4(e)}function b4(e){throw e}var w4={closed:!0,next:v1,error:b4,complete:v1},x4=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function S4(e){return e}function $4(e){return e.length===0?S4:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var y1=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=E4(t)?t:new rd(t,r,n);return Cc(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.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=_1(r),new r(function(i,o){var a=new rd({next:function(s){try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[x4]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return $4(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=_1(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function _1(e){var t;return(t=e??g1.Promise)!==null&&t!==void 0?t:Promise}function k4(e){return e&&fi(e.next)&&fi(e.error)&&fi(e.complete)}function E4(e){return e&&e instanceof td||k4(e)&&p1(e)}(function(e){zi(t,e);function t(r,n,i,o,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,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})(td);var C4=Qh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),P4=function(e){zi(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 b1(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new C4},t.prototype.next=function(r){var n=this;Cc(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Jh(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Cc(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;Cc(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,a=i.isStopped,s=i.observers;return o||a?f1:(this.currentObservers=null,s.push(r),new Qa(function(){n.currentObservers=null,Ec(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new y1;return r.source=this,r},t.create=function(r,n){return new b1(r,n)},t}(y1),b1=function(e){zi(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:f1},t}(P4),T4={now:function(){return Date.now()},delegate:void 0},O4=function(e){zi(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Qa),nd={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=nd.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Ja([e,t],Wa(r))):setInterval.apply(void 0,Ja([e,t],Wa(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},A4=function(e){zi(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,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),nd.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&&nd.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(a){i=!0,o=a||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,Ec(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(O4),w1=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=T4.now,e}(),N4=function(e){zi(t,e);function t(r,n){n===void 0&&(n=w1.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}(w1);new N4(A4);function R4(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 x1=Qh(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=R4(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return x1.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(x1.prototype),e})();var j4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lt(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 id={exports:{}},aa=typeof Reflect=="object"?Reflect:null,S1=aa&&typeof aa.apply=="function"?aa.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Tc;aa&&typeof aa.ownKeys=="function"?Tc=aa.ownKeys:Object.getOwnPropertySymbols?Tc=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Tc=function(e){return Object.getOwnPropertyNames(e)};function I4(e){console&&console.warn&&console.warn(e)}var $1=Number.isNaN||function(e){return e!==e};function ze(){ze.init.call(this)}id.exports=ze,id.exports.once=L4,ze.EventEmitter=ze,ze.prototype._events=void 0,ze.prototype._eventsCount=0,ze.prototype._maxListeners=void 0;var k1=10;function Oc(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ze,"defaultMaxListeners",{enumerable:!0,get:function(){return k1},set:function(e){if(typeof e!="number"||e<0||$1(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");k1=e}}),ze.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},ze.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||$1(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 E1(e){return e._maxListeners===void 0?ze.defaultMaxListeners:e._maxListeners}ze.prototype.getMaxListeners=function(){return E1(this)},ze.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 a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")S1(s,this,t);else for(var c=s.length,l=A1(s,c),r=0;r<c;++r)S1(l[r],this,t);return!0};function C1(e,t,r,n){var i,o,a;if(Oc(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),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=E1(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,I4(s)}return e}ze.prototype.addListener=function(e,t){return C1(this,e,t,!1)},ze.prototype.on=ze.prototype.addListener,ze.prototype.prependListener=function(e,t){return C1(this,e,t,!0)};function D4(){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 P1(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=D4.bind(n);return i.listener=r,n.wrapFn=i,i}ze.prototype.once=function(e,t){return Oc(t),this.on(e,P1(this,e,t)),this},ze.prototype.prependOnceListener=function(e,t){return Oc(t),this.prependListener(e,P1(this,e,t)),this},ze.prototype.removeListener=function(e,t){var r,n,i,o,a;if(Oc(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){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():F4(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},ze.prototype.off=ze.prototype.removeListener,ze.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 T1(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?M4(i):A1(i,i.length)}ze.prototype.listeners=function(e){return T1(this,e,!0)},ze.prototype.rawListeners=function(e){return T1(this,e,!1)},ze.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):O1.call(e,t)},ze.prototype.listenerCount=O1;function O1(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}ze.prototype.eventNames=function(){return this._eventsCount>0?Tc(this._events):[]};function A1(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function F4(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function M4(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function L4(e,t){return new Promise(function(r,n){function i(a){e.removeListener(t,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}N1(e,t,o,{once:!0}),t!=="error"&&U4(e,i,{once:!0})})}function U4(e,t,r){typeof e.on=="function"&&N1(e,"error",t,r)}function N1(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 z4=id.exports;class HY extends z4.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 R1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function G4(e,t={}){var r=1,n=1;function i(at){var X=at.match(/\n/g);X&&(r+=X.length);var T=at.lastIndexOf(`
17
- `);n=~T?at.length-T:n+at.length}function o(){var at={line:r,column:n};return function(X){return X.position=new a(at),p(),X}}function a(at){this.start=at,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;var s=[];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)s.push(X);else throw X}function l(){var at=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:at,parsingErrors:s}}}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function f(){var at,X=[];for(p(),g(X);e.length&&e.charAt(0)!="}"&&(at=Ct()||$t());)at!==!1&&(X.push(at),g(X));return X}function h(at){var X=at.exec(e);if(X){var T=X[0];return i(T),e=e.slice(T.length),X}}function p(){h(/^\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 T=e.slice(2,X-2);return n+=2,i(T),e=e.slice(X),n+=2,at({type:"comment",comment:T})}}function _(){var at=h(/^([^{]+)/);if(at)return pi(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=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(X){if(X=pi(X[0]),!h(/^:\s*/))return c("property missing ':'");var T=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),E=at({type:"declaration",property:X.replace(R1,""),value:T?pi(T[0]).replace(R1,""):""});return h(/^[;\s]*/),E}}function m(){var at=[];if(!u())return c("missing '{'");g(at);for(var X;X=y();)X!==!1&&(at.push(X),g(at));return d()?at:c("missing '}'")}function x(){for(var at,X=[],T=o();at=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)X.push(at[1]),h(/^,\s*/);if(X.length)return T({type:"keyframe",values:X,declarations:m()})}function N(){var at=o(),X=h(/^@([-\w]+)?keyframes\s*/);if(X){var T=X[1];if(X=h(/^([-\w]+)\s*/),!X)return c("@keyframes missing name");var E=X[1];if(!u())return c("@keyframes missing '{'");for(var k,b=g();k=x();)b.push(k),b=b.concat(g());return d()?at({type:"keyframes",name:E,vendor:T,keyframes:b}):c("@keyframes missing '}'")}}function $(){var at=o(),X=h(/^@supports *([^{]+)/);if(X){var T=pi(X[1]);if(!u())return c("@supports missing '{'");var E=g().concat(f());return d()?at({type:"supports",supports:T,rules:E}):c("@supports missing '}'")}}function A(){var at=o(),X=h(/^@host\s*/);if(X){if(!u())return c("@host missing '{'");var T=g().concat(f());return d()?at({type:"host",rules:T}):c("@host missing '}'")}}function R(){var at=o(),X=h(/^@media *([^{]+)/);if(X){var T=pi(X[1]);if(!u())return c("@media missing '{'");var E=g().concat(f());return d()?at({type:"media",media:T,rules:E}):c("@media missing '}'")}}function G(){var at=o(),X=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(X)return at({type:"custom-media",name:pi(X[1]),media:pi(X[2])})}function H(){var at=o(),X=h(/^@page */);if(X){var T=_()||[];if(!u())return c("@page missing '{'");for(var E=g(),k;k=y();)E.push(k),E=E.concat(g());return d()?at({type:"page",selectors:T,declarations:E}):c("@page missing '}'")}}function Y(){var at=o(),X=h(/^@([-\w]+)?document *([^{]+)/);if(X){var T=pi(X[1]),E=pi(X[2]);if(!u())return c("@document missing '{'");var k=g().concat(f());return d()?at({type:"document",document:E,vendor:T,rules:k}):c("@document missing '}'")}}function J(){var at=o(),X=h(/^@font-face\s*/);if(X){if(!u())return c("@font-face missing '{'");for(var T=g(),E;E=y();)T.push(E),T=T.concat(g());return d()?at({type:"font-face",declarations:T}):c("@font-face missing '}'")}}var nt=xt("import"),rt=xt("charset"),lt=xt("namespace");function xt(at){var X=new RegExp("^@"+at+"\\s*([^;]+);");return function(){var T=o(),E=h(X);if(E){var k={type:at};return k[at]=E[1].trim(),T(k)}}}function Ct(){if(e[0]=="@")return N()||R()||G()||$()||nt()||rt()||lt()||Y()||H()||A()||J()}function $t(){var at=o(),X=_();return X?(g(),at({type:"rule",selectors:X,declarations:m()})):c("selector missing")}return od(l())}function pi(e){return e?e.replace(/^\s+|\s+$/g,""):""}function od(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(a){od(a,n)}):o&&typeof o=="object"&&od(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var ad={exports:{}},sd={},mi={},yo={},ld={},cd={},ud={};(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;)s(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function a(_,...y){const m=[h(_[0])];let x=0;for(;x<y.length;)m.push(o),s(m,y[x]),m.push(o,h(_[++x]));return c(m),new n(m)}e.str=a;function s(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(d(y))}e.addCodeArg=s;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:a`${_}${y}`}e.strConcat=u;function d(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:h(Array.isArray(_)?_.join(","):_)}function f(_){return new n(h(_))}e.stringify=f;function h(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;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})(ud);const V4=Xr(ud),B4=Mt({__proto__:null,default:V4},[ud]),Za=Lt(B4);var hd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Za;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,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.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:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[h];if(g){const y=g.get(p);if(y)return y}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:h,itemIndex:_}),f}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(l,u,d={},f){let h=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=d[p]=d[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;h=(0,t._)`${h}${m} ${_} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(_))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return h}}e.ValueScope=s})(hd);const H4=Xr(hd),q4=Mt({__proto__:null,default:H4},[hd]),j1=Lt(q4);(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=Za,r=j1;var n=Za;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=j1;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,C){return this}}class a extends o{constructor(b,C,L){super(),this.varKind=b,this.name=C,this.rhs=L}render({es5:b,_n:C}){const L=b?r.varKinds.var:this.varKind,D=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${D};`+C}optimizeNames(b,C){if(b[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,b,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(b,C,L){super(),this.lhs=b,this.rhs=C,this.sideEffects=L}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,C){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,b,C),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(b,this.rhs)}}class c extends s{constructor(b,C,L,D){super(b,L,D),this.op=C}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 d 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,C){return this.code=rt(this.code,b,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((C,L)=>C+L.render(b),"")}optimizeNodes(){const{nodes:b}=this;let C=b.length;for(;C--;){const L=b[C].optimizeNodes();Array.isArray(L)?b.splice(C,1,...L):L?b[C]=L:b.splice(C,1)}return b.length>0?this:void 0}optimizeNames(b,C){const{nodes:L}=this;let D=L.length;for(;D--;){const V=L[D];V.optimizeNames(b,C)||(lt(b,V.names),L.splice(D,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((b,C)=>J(b,C.names),{})}}class p extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends h{}class v extends p{}v.kind="else";class _ extends p{constructor(b,C){super(C),this.condition=b}render(b){let C=`if(${this.condition})`+super.render(b);return this.else&&(C+="else "+this.else.render(b)),C}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let C=this.else;if(C){const L=C.optimizeNodes();C=this.else=Array.isArray(L)?new v(L):L}if(C)return b===!1?C instanceof _?C:C.nodes:this.nodes.length?this:new _(xt(b),C instanceof _?[C]:C.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,C){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(b,C),!!(super.optimizeNames(b,C)||this.else))return this.condition=rt(this.condition,b,C),this}get names(){const b=super.names;return nt(b,this.condition),this.else&&J(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,C){if(super.optimizeNames(b,C))return this.iteration=rt(this.iteration,b,C),this}get names(){return J(super.names,this.iteration.names)}}class x extends y{constructor(b,C,L,D){super(),this.varKind=b,this.name=C,this.from=L,this.to=D}render(b){const C=b.es5?r.varKinds.var:this.varKind,{name:L,from:D,to:V}=this;return`for(${C} ${L}=${D}; ${L}<${V}; ${L}++)`+super.render(b)}get names(){const b=nt(super.names,this.from);return nt(b,this.to)}}class N extends y{constructor(b,C,L,D){super(),this.loop=b,this.varKind=C,this.name=L,this.iterable=D}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iterable=rt(this.iterable,b,C),this}get names(){return J(super.names,this.iterable.names)}}class $ extends p{constructor(b,C,L){super(),this.name=b,this.args=C,this.async=L}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class A extends h{render(b){return"return "+super.render(b)}}A.kind="return";class R extends p{render(b){let C="try"+super.render(b);return this.catch&&(C+=this.catch.render(b)),this.finally&&(C+=this.finally.render(b)),C}optimizeNodes(){var b,C;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(b,C){var L,D;return super.optimizeNames(b,C),(L=this.catch)===null||L===void 0||L.optimizeNames(b,C),(D=this.finally)===null||D===void 0||D.optimizeNames(b,C),this}get names(){const b=super.names;return this.catch&&J(b,this.catch.names),this.finally&&J(b,this.finally.names),b}}class G extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}G.kind="catch";class H extends p{render(b){return"finally"+super.render(b)}}H.kind="finally";class Y{constructor(b,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
18
- `:""},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,C){const L=this._extScope.value(b,C);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(b,C){return this._extScope.getValue(b,C)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,C,L,D){const V=this._scope.toName(C);return L!==void 0&&D&&(this._constants[V.str]=L),this._leafNode(new a(b,V,L)),V}const(b,C,L){return this._def(r.varKinds.const,b,C,L)}let(b,C,L){return this._def(r.varKinds.let,b,C,L)}var(b,C,L){return this._def(r.varKinds.var,b,C,L)}assign(b,C,L){return this._leafNode(new s(b,C,L))}add(b,C){return this._leafNode(new c(b,e.operators.ADD,C))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const C=["{"];for(const[L,D]of b)C.length>1&&C.push(","),C.push(L),(L!==D||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,D));return C.push("}"),new t._Code(C)}if(b,C,L){if(this._blockNode(new _(b)),C&&L)this.code(C).else().code(L).endIf();else if(C)this.code(C).endIf();else if(L)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,C){return this._blockNode(b),C&&this.code(C).endFor(),this}for(b,C){return this._for(new m(b),C)}forRange(b,C,L,D,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(b);return this._for(new x(V,K,C,L),()=>D(K))}forOf(b,C,L,D=r.varKinds.const){const V=this._scope.toName(b);if(this.opts.es5){const K=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${K}.length`,et=>{this.var(V,(0,t._)`${K}[${et}]`),L(V)})}return this._for(new N("of",D,V,C),()=>L(V))}forIn(b,C,L,D=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${C})`,L);const V=this._scope.toName(b);return this._for(new N("in",D,V,C),()=>L(V))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const C=new A;if(this._blockNode(C),this.code(b),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(b,C,L){if(!C&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const D=new R;if(this._blockNode(D),this.code(b),C){const V=this.name("e");this._currNode=D.catch=new G(V),C(V)}return L&&(this._currNode=D.finally=new H,this.code(L)),this._endBlockNode(G,H)}throw(b){return this._leafNode(new d(b))}block(b,C){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(C),this}endBlock(b){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-C;if(L<0||b!==void 0&&L!==b)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${b} expected`);return this._nodes.length=C,this}func(b,C=t.nil,L,D){return this._blockNode(new $(b,C,L)),D&&this.code(D).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,C){const L=this._currNode;if(L instanceof b||C&&L instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${b.kind}/${C.kind}`:b.kind}"`)}_elseNode(b){const C=this._currNode;if(!(C instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const C=this._nodes;C[C.length-1]=b}}e.CodeGen=Y;function J(k,b){for(const C in b)k[C]=(k[C]||0)+(b[C]||0);return k}function nt(k,b){return b instanceof t._CodeOrName?J(k,b.names):k}function rt(k,b,C){if(k instanceof t.Name)return L(k);if(!D(k))return k;return new t._Code(k._items.reduce((V,K)=>(K instanceof t.Name&&(K=L(K)),K instanceof t._Code?V.push(...K._items):V.push(K),V),[]));function L(V){const K=C[V.str];return K===void 0||b[V.str]!==1?V:(delete b[V.str],K)}function D(V){return V instanceof t._Code&&V._items.some(K=>K instanceof t.Name&&b[K.str]===1&&C[K.str]!==void 0)}}function lt(k,b){for(const C in b)k[C]=(k[C]||0)-(b[C]||0)}function xt(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${E(k)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...k){return k.reduce(Ct)}e.and=$t;const at=T(e.operators.OR);function X(...k){return k.reduce(at)}e.or=X;function T(k){return(b,C)=>b===t.nil?C:C===t.nil?b:(0,t._)`${E(b)} ${k} ${E(C)}`}function E(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(cd);const K4=Xr(cd),Y4=Mt({__proto__:null,default:K4},[cd]),me=Lt(Y4);var dd={};(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=me,r=Za;function n($){const A={};for(const R of $)A[R]=!0;return A}e.toHash=n;function i($,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o($,A),!a(A,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,A=$.schema){const{opts:R,self:G}=$;if(!R.strictSchema||typeof A=="boolean")return;const H=G.RULES.keywords;for(const Y in A)H[Y]||N($,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function a($,A){if(typeof $=="boolean")return!$;for(const R in $)if(A[R])return!0;return!1}e.schemaHasRules=a;function s($,A){if(typeof $=="boolean")return!$;for(const R in $)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:$,schemaPath:A},R,G,H){if(!H){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${$}${A}${(0,t.getProperty)(G)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(d($))}e.escapeFragment=u;function d($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h($,A){if(Array.isArray($))for(const R of $)A(R);else A($)}e.eachItem=h;function p({mergeNames:$,mergeToName:A,mergeValues:R,resultToName:G}){return(H,Y,J,nt)=>{const rt=J===void 0?Y:J instanceof t.Name?(Y instanceof t.Name?$(H,Y,J):A(H,Y,J),J):Y instanceof t.Name?(A(H,J,Y),Y):R(Y,J);return nt===t.Name&&!(rt instanceof t.Name)?G(H,rt):rt}}e.mergeEvaluated={props:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{$.if((0,t._)`${A} === true`,()=>$.assign(R,!0),()=>$.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>{A===!0?$.assign(R,!0):($.assign(R,(0,t._)`${R} || {}`),v($,R,A))}),mergeValues:($,A)=>$===!0?!0:{...$,...A},resultToName:g}),items:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>$.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>$.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:($,A)=>$===!0?!0:Math.max($,A),resultToName:($,A)=>$.var("items",A)})};function g($,A){if(A===!0)return $.var("props",!0);const R=$.var("props",(0,t._)`{}`);return A!==void 0&&v($,R,A),R}e.evaluatedPropsToName=g;function v($,A,R){Object.keys(R).forEach(G=>$.assign((0,t._)`${A}${(0,t.getProperty)(G)}`,!0))}e.setEvaluated=v;const _={};function y($,A){return $.scopeValue("func",{ref:A,code:_[A.code]||(_[A.code]=new r._Code(A.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,A,R){if($ instanceof t.Name){const G=A===m.Num;return R?G?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:G?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)($).toString():"/"+d($)}e.getErrorPath=x;function N($,A,R=$.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);$.self.logger.warn(A)}}e.checkStrictMode=N})(dd);const X4=Xr(dd),W4=Mt({__proto__:null,default:X4},[dd]),Ae=Lt(W4);var fd={};Object.defineProperty(fd,"__esModule",{value:!0});const Ar=me,J4={data:new Ar.Name("data"),valCxt:new Ar.Name("valCxt"),instancePath:new Ar.Name("instancePath"),parentData:new Ar.Name("parentData"),parentDataProperty:new Ar.Name("parentDataProperty"),rootData:new Ar.Name("rootData"),dynamicAnchors:new Ar.Name("dynamicAnchors"),vErrors:new Ar.Name("vErrors"),errors:new Ar.Name("errors"),this:new Ar.Name("this"),self:new Ar.Name("self"),scope:new Ar.Name("scope"),json:new Ar.Name("json"),jsonPos:new Ar.Name("jsonPos"),jsonLen:new Ar.Name("jsonLen"),jsonPart:new Ar.Name("jsonPart")};var Q4=fd.default=J4;const Z4=Mt({__proto__:null,default:Q4},[fd]),gi=Lt(Z4);(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=me,r=Ae,n=gi;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:A}=x,R=d(v,_,y);m??($||A)?c(N,R):l(x,(0,t._)`[${R}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,A=d(v,_,y);c(x,A),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function a(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=a;function s({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,A=>{v.const($,(0,t._)`${n.default.vErrors}[${A}]`),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=s;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 d(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=[h(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function h({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:A}=v,{opts:R,propertyName:G,topSchemaRef:H,schemaPath:Y}=A;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof y=="function"?y(v):y]),R.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${H}${Y}`],[n.default.data,N]),G&&m.push([u.propertyName,G])}})(ld);const tE=Xr(ld),eE=Mt({__proto__:null,default:tE},[ld]),ts=Lt(eE);Object.defineProperty(yo,"__esModule",{value:!0});var I1=yo.boolOrEmptySchema=D1=yo.topBoolOrEmptySchema=void 0;const rE=ts,nE=me,iE=gi,oE={message:"boolean schema is false"};function aE(e){const{gen:t,schema:r,validateName:n}=e;r===!1?F1(e,!1):typeof r=="object"&&r.$async===!0?t.return(iE.default.data):(t.assign((0,nE._)`${n}.errors`,null),t.return(!0))}var D1=yo.topBoolOrEmptySchema=aE;function sE(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),F1(e)):r.var(t,!0)}I1=yo.boolOrEmptySchema=sE;function F1(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,rE.reportError)(i,oE,void 0,t)}const lE=Mt({__proto__:null,get boolOrEmptySchema(){return I1},default:yo,get topBoolOrEmptySchema(){return D1}},[yo]),cE=Lt(lE);var pd={},_o={};Object.defineProperty(_o,"__esModule",{value:!0});var M1=_o.getRules=L1=_o.isJSONType=void 0;const uE=["string","number","integer","boolean","null","object","array"],hE=new Set(uE);function dE(e){return typeof e=="string"&&hE.has(e)}var L1=_o.isJSONType=dE;function fE(){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:{}}}M1=_o.getRules=fE;const pE=Mt({__proto__:null,default:_o,get getRules(){return M1},get isJSONType(){return L1}},[_o]),U1=Lt(pE);var vi={};Object.defineProperty(vi,"__esModule",{value:!0});var z1=vi.shouldUseRule=B1=vi.shouldUseGroup=G1=vi.schemaHasRulesForType=void 0;function mE({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&V1(e,n)}var G1=vi.schemaHasRulesForType=mE;function V1(e,t){return t.rules.some(r=>H1(e,r))}var B1=vi.shouldUseGroup=V1;function H1(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))}z1=vi.shouldUseRule=H1;const gE=Mt({__proto__:null,default:vi,get schemaHasRulesForType(){return G1},get shouldUseGroup(){return B1},get shouldUseRule(){return z1}},[vi]),q1=Lt(gE);(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=U1,r=q1,n=ts,i=me,o=Ae;var a;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(a=e.DataType||(e.DataType={}));function s(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=s;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:A}=m,R=d(x,A.coerceTypes),G=x.length>0&&!(R.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(G){const H=g(x,$,A.strictNumbers,a.Wrong);N.if(H,()=>{R.length?f(m,x,R):_(m)})}return G}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:A,opts:R}=m,G=$.let("dataType",(0,i._)`typeof ${A}`),H=$.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&$.if((0,i._)`${G} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>$.assign(A,(0,i._)`${A}[0]`).assign(G,(0,i._)`typeof ${A}`).if(g(x,A,R.strictNumbers),()=>$.assign(H,A))),$.if((0,i._)`${H} !== undefined`);for(const J of N)(u.has(J)||J==="array"&&R.coerceTypes==="array")&&Y(J);$.else(),_(m),$.endIf(),$.if((0,i._)`${H} !== undefined`,()=>{$.assign(A,H),h(m,H)});function Y(J){switch(J){case"string":$.elseIf((0,i._)`${G} == "number" || ${G} == "boolean"`).assign(H,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(H,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${G} == "boolean" || ${A} === null
19
- || (${G} == "string" && ${A} && ${A} == +${A})`).assign(H,(0,i._)`+${A}`);return;case"integer":$.elseIf((0,i._)`${G} === "boolean" || ${A} === null
20
- || (${G} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(H,(0,i._)`+${A}`);return;case"boolean":$.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(H,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(H,!0);return;case"null":$.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),$.assign(H,null);return;case"array":$.elseIf((0,i._)`${G} === "string" || ${G} === "number"
21
- || ${G} === "boolean" || ${A} === null`).assign(H,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=a.Correct){const A=$===a.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${x} ${A} null`;case"array":R=(0,i._)`Array.isArray(${x})`;break;case"object":R=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":R=G((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":R=G();break;default:return(0,i._)`typeof ${x} ${A} ${m}`}return $===a.Correct?R:(0,i.not)(R);function G(H=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,H,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 A;const R=(0,o.toHash)(m);if(R.array&&R.object){const G=(0,i._)`typeof ${x} != "object"`;A=R.null?G:(0,i._)`!${x} || ${G}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const G in R)A=(0,i.and)(A,p(G,x,N,$));return A}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,A=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:A,schemaValue:A,parentSchema:$,params:{},it:m}}})(pd);const vE=Xr(pd),yE=Mt({__proto__:null,default:vE},[pd]),Ac=Lt(yE);var es={};Object.defineProperty(es,"__esModule",{value:!0});var K1=es.assignDefaults=void 0;const sa=me,_E=Ae;function bE(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)Y1(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Y1(e,o,i.default))}K1=es.assignDefaults=bE;function Y1(e,t,r){const{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;const s=(0,sa._)`${o}${(0,sa.getProperty)(t)}`;if(i){(0,_E.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,sa._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,sa._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,sa._)`${s} = ${(0,sa.stringify)(r)}`)}const wE=Mt({__proto__:null,get assignDefaults(){return K1},default:es},[es]),xE=Lt(wE);var Nn={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});var X1=Fe.validateUnion=cv=Fe.validateArray=lv=Fe.usePattern=sv=Fe.callValidateCode=av=Fe.schemaProperties=ov=Fe.allSchemaProperties=nv=Fe.noPropertyInData=rv=Fe.propertyInData=ev=Fe.isOwnProperty=tv=Fe.hasPropFunc=Q1=Fe.reportMissingProp=J1=Fe.checkMissingProp=W1=Fe.checkReportMissingProp=void 0;const We=me,md=Ae,Gi=gi,SE=Ae;function $E(e,t){const{gen:r,data:n,it:i}=e;r.if(vd(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,We._)`${t}`},!0),e.error()})}var W1=Fe.checkReportMissingProp=$E;function kE({gen:e,data:t,it:{opts:r}},n,i){return(0,We.or)(...n.map(o=>(0,We.and)(vd(e,t,o,r.ownProperties),(0,We._)`${i} = ${o}`)))}var J1=Fe.checkMissingProp=kE;function EE(e,t){e.setParams({missingProperty:t},!0),e.error()}var Q1=Fe.reportMissingProp=EE;function Z1(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,We._)`Object.prototype.hasOwnProperty`})}var tv=Fe.hasPropFunc=Z1;function gd(e,t,r){return(0,We._)`${Z1(e)}.call(${t}, ${r})`}var ev=Fe.isOwnProperty=gd;function CE(e,t,r,n){const i=(0,We._)`${t}${(0,We.getProperty)(r)} !== undefined`;return n?(0,We._)`${i} && ${gd(e,t,r)}`:i}var rv=Fe.propertyInData=CE;function vd(e,t,r,n){const i=(0,We._)`${t}${(0,We.getProperty)(r)} === undefined`;return n?(0,We.or)(i,(0,We.not)(gd(e,t,r))):i}var nv=Fe.noPropertyInData=vd;function iv(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var ov=Fe.allSchemaProperties=iv;function PE(e,t){return iv(t).filter(r=>!(0,md.alwaysValidSchema)(e,t[r]))}var av=Fe.schemaProperties=PE;function TE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},s,c,l){const u=l?(0,We._)`${e}, ${t}, ${n}${i}`:t,d=[[Gi.default.instancePath,(0,We.strConcat)(Gi.default.instancePath,o)],[Gi.default.parentData,a.parentData],[Gi.default.parentDataProperty,a.parentDataProperty],[Gi.default.rootData,Gi.default.rootData]];a.opts.dynamicRef&&d.push([Gi.default.dynamicAnchors,Gi.default.dynamicAnchors]);const f=(0,We._)`${u}, ${r.object(...d)}`;return c!==We.nil?(0,We._)`${s}.call(${c}, ${f})`:(0,We._)`${s}(${f})`}var sv=Fe.callValidateCode=TE;const OE=(0,We._)`new RegExp`;function AE({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,We._)`${i.code==="new RegExp"?OE:(0,SE.useFunc)(e,i)}(${r}, ${n})`})}var lv=Fe.usePattern=AE;function NE(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){const c=t.const("len",(0,We._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:md.Type.Num},o),t.if((0,We.not)(o),s)})}}var cv=Fe.validateArray=NE;function RE(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(s=>(0,md.alwaysValidSchema)(i,s))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((s,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);t.assign(o,(0,We._)`${o} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,We.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}X1=Fe.validateUnion=RE;const jE=Mt({__proto__:null,get allSchemaProperties(){return ov},get callValidateCode(){return sv},get checkMissingProp(){return J1},get checkReportMissingProp(){return W1},default:Fe,get hasPropFunc(){return tv},get isOwnProperty(){return ev},get noPropertyInData(){return nv},get propertyInData(){return rv},get reportMissingProp(){return Q1},get schemaProperties(){return av},get usePattern(){return lv},get validateArray(){return cv},get validateUnion(){return X1}},[Fe]),Rn=Lt(jE);Object.defineProperty(Nn,"__esModule",{value:!0});var uv=Nn.validateKeywordUsage=mv=Nn.validSchemaType=dv=Nn.funcKeywordCode=hv=Nn.macroKeywordCode=void 0;const Mr=me,bo=gi,IE=Rn,DE=ts;function FE(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,s=t.macro.call(a.self,i,o,a),c=pv(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);const l=r.name("valid");e.subschema({schema:s,schemaPath:Mr.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var hv=Nn.macroKeywordCode=FE;function ME(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:a,$data:s,it:c}=e;UE(c,t);const l=!s&&t.compile?t.compile.call(c.self,o,a,c):t.validate,u=pv(n,i,l),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)g(),t.modifying&&fv(e),v(()=>e.error());else{const _=t.async?h():p();t.modifying&&fv(e),v(()=>LE(e,_))}}function h(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,Mr._)`await `),y=>n.assign(d,!1).if((0,Mr._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,Mr._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,Mr._)`${u}.errors`;return n.assign(_,null),g(Mr.nil),_}function g(_=t.async?(0,Mr._)`await `:Mr.nil){const y=c.opts.passContext?bo.default.this:bo.default.self,m=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,Mr._)`${_}${(0,IE.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,Mr.not)((y=t.valid)!==null&&y!==void 0?y:d),_)}}var dv=Nn.funcKeywordCode=ME;function fv(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Mr._)`${n.parentData}[${n.parentDataProperty}]`))}function LE(e,t){const{gen:r}=e;r.if((0,Mr._)`Array.isArray(${t})`,()=>{r.assign(bo.default.vErrors,(0,Mr._)`${bo.default.vErrors} === null ? ${t} : ${bo.default.vErrors}.concat(${t})`).assign(bo.default.errors,(0,Mr._)`${bo.default.vErrors}.length`),(0,DE.extendErrors)(e)},()=>e.error())}function UE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function pv(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,Mr.stringify)(r)})}function zE(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 mv=Nn.validSchemaType=zE;function GE({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 a=i.dependencies;if(a!=null&&a.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const s=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(s);else throw new Error(s)}}uv=Nn.validateKeywordUsage=GE;const VE=Mt({__proto__:null,default:Nn,get funcKeywordCode(){return dv},get macroKeywordCode(){return hv},get validSchemaType(){return mv},get validateKeywordUsage(){return uv}},[Nn]),BE=Lt(VE);var yi={};Object.defineProperty(yi,"__esModule",{value:!0});var gv=yi.extendSubschemaMode=_v=yi.extendSubschemaData=yv=yi.getSubschema=void 0;const Zn=me,vv=Ae;function HE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,Zn._)`${e.schemaPath}${(0,Zn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,Zn._)`${e.schemaPath}${(0,Zn.getProperty)(t)}${(0,Zn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,vv.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var yv=yi.getSubschema=HE;function qE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=s.let("data",(0,Zn._)`${t.data}${(0,Zn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Zn.str)`${l}${(0,vv.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Zn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Zn.Name?i:s.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}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 _v=yi.extendSubschemaData=qE;function KE(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}gv=yi.extendSubschemaMode=KE;const YE=Mt({__proto__:null,default:yi,get extendSubschemaData(){return _v},get extendSubschemaMode(){return gv},get getSubschema(){return yv}},[yi]),XE=Lt(YE);var Lr={},bv=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 a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const WE=Xr(bv),JE=Mt({__proto__:null,default:WE},[bv]),wv=Lt(JE);var xv={exports:{}},Vi=xv.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(){};Nc(t,n,i,e,"",e)};Vi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},Vi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},Vi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},Vi.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 Nc(e,t,r,n,i,o,a,s,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,s,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in Vi.arrayKeywords)for(var f=0;f<d.length;f++)Nc(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in Vi.propsKeywords){if(d&&typeof d=="object")for(var h in d)Nc(e,t,r,d[h],i+"/"+u+"/"+QE(h),o,i,u,n,h)}else(u in Vi.keywords||e.allKeys&&!(u in Vi.skipKeywords))&&Nc(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}function QE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var Sv=xv.exports;const ZE=Xr(Sv),tC=Mt({__proto__:null,default:ZE},[Sv]),eC=Lt(tC);Object.defineProperty(Lr,"__esModule",{value:!0});var $v=Lr.getSchemaRefs=Nv=Lr.resolveUrl=Av=Lr.normalizeId=Ov=Lr._getFullPath=Pv=Lr.getFullPath=kv=Lr.inlineRef=void 0;const rC=Ae,nC=wv,iC=eC,oC=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aC(e,t=!0){return typeof e=="boolean"?!0:t===!0?!yd(e):t?Ev(e)<=t:!1}var kv=Lr.inlineRef=aC;const sC=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function yd(e){for(const t in e){if(sC.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(yd)||typeof r=="object"&&yd(r))return!0}return!1}function Ev(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!oC.has(r)&&(typeof e[r]=="object"&&(0,rC.eachItem)(e[r],n=>t+=Ev(n)),t===1/0)))return 1/0;return t}function Cv(e,t="",r){r!==!1&&(t=la(t));const n=e.parse(t);return Tv(e,n)}var Pv=Lr.getFullPath=Cv;function Tv(e,t){return e.serialize(t).split("#")[0]+"#"}var Ov=Lr._getFullPath=Tv;const lC=/#\/?$/;function la(e){return e?e.replace(lC,""):""}var Av=Lr.normalizeId=la;function cC(e,t,r){return r=la(r),e.resolve(t,r)}var Nv=Lr.resolveUrl=cC;const uC=/^[a-z_][-a-z0-9._]*$/i;function hC(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=la(e[r]||t),o={"":i},a=Cv(n,i,!1),s={},c=new Set;return iC(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=a+f;let v=o[p];typeof d[r]=="string"&&(v=_.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=la(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(d,N.schema,m):m!==la(g)&&(m[0]==="#"?(l(d,s[m],m),s[m]=d):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!uC.test(m))throw new Error(`invalid anchor "${m}"`);_.call(this,`#${m}`)}}}),s;function l(d,f,h){if(f!==void 0&&!nC(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}$v=Lr.getSchemaRefs=hC;const dC=Mt({__proto__:null,get _getFullPath(){return Ov},default:Lr,get getFullPath(){return Pv},get getSchemaRefs(){return $v},get inlineRef(){return kv},get normalizeId(){return Av},get resolveUrl(){return Nv}},[Lr]),Rc=Lt(dC);Object.defineProperty(mi,"__esModule",{value:!0});var Rv=mi.getData=Yv=mi.KeywordCxt=Dv=mi.validateFunctionCode=void 0;const jv=cE,Iv=Ac,_d=q1,jc=Ac,fC=xE,rs=BE,bd=XE,Kt=me,ne=gi,pC=Rc,_i=Ae,ns=ts;function mC(e){if(Uv(e)&&(zv(e),Lv(e))){yC(e);return}Fv(e,()=>(0,jv.topBoolOrEmptySchema)(e))}var Dv=mi.validateFunctionCode=mC;function Fv({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Kt._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,Kt._)`"use strict"; ${Mv(r,i)}`),vC(e,i),e.code(o)}):e.func(t,(0,Kt._)`${ne.default.data}, ${gC(i)}`,n.$async,()=>e.code(Mv(r,i)).code(o))}function gC(e){return(0,Kt._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,Kt._)`, ${ne.default.dynamicAnchors}={}`:Kt.nil}}={}`}function vC(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,Kt._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,Kt._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,Kt._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,Kt._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Kt._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,Kt._)`""`),e.var(ne.default.parentData,(0,Kt._)`undefined`),e.var(ne.default.parentDataProperty,(0,Kt._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Kt._)`{}`)})}function yC(e){const{schema:t,opts:r,gen:n}=e;Fv(e,()=>{r.$comment&&t.$comment&&Vv(e),SC(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&_C(e),Gv(e),EC(e)})}function _C(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Kt._)`${r}.evaluated`),t.if((0,Kt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Kt._)`${e.evaluated}.props`,(0,Kt._)`undefined`)),t.if((0,Kt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Kt._)`${e.evaluated}.items`,(0,Kt._)`undefined`))}function Mv(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Kt._)`/*# sourceURL=${r} */`:Kt.nil}function bC(e,t){if(Uv(e)&&(zv(e),Lv(e))){wC(e,t);return}(0,jv.boolOrEmptySchema)(e,t)}function Lv({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 Uv(e){return typeof e.schema!="boolean"}function wC(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Vv(e),$C(e),kC(e);const o=n.const("_errs",ne.default.errors);Gv(e,o),n.var(t,(0,Kt._)`${o} === ${ne.default.errors}`)}function zv(e){(0,_i.checkUnknownRules)(e),xC(e)}function Gv(e,t){if(e.opts.jtd)return Bv(e,[],!1,t);const r=(0,Iv.getSchemaTypes)(e.schema),n=(0,Iv.coerceAndCheckDataType)(e,r);Bv(e,r,!n,t)}function xC(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,_i.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function SC(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,_i.checkStrictMode)(e,"default is ignored in the schema root")}function $C(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,pC.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function kC(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Vv({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Kt._)`${ne.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const a=(0,Kt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Kt._)`${ne.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function EC(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Kt._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,Kt._)`new ${i}(${ne.default.vErrors})`)):(t.assign((0,Kt._)`${n}.errors`,ne.default.vErrors),o.unevaluated&&CC(e),t.return((0,Kt._)`${ne.default.errors} === 0`))}function CC({gen:e,evaluated:t,props:r,items:n}){r instanceof Kt.Name&&e.assign((0,Kt._)`${t}.props`,r),n instanceof Kt.Name&&e.assign((0,Kt._)`${t}.items`,n)}function Bv(e,t,r,n){const{gen:i,schema:o,data:a,allErrors:s,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,_i.schemaHasRulesButRef)(o,u))){i.block(()=>Xv(e,"$ref",u.all.$ref.definition));return}c.jtd||PC(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,_d.shouldUseGroup)(o,f)&&(f.type?(i.if((0,jc.checkDataType)(f.type,a,c.strictNumbers)),Hv(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,jc.reportTypeError)(e)),i.endIf()):Hv(e,f),s||i.if((0,Kt._)`${ne.default.errors} === ${n||0}`))}}function Hv(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,fC.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,_d.shouldUseRule)(n,o)&&Xv(e,o.keyword,o.definition,t.type)})}function PC(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(TC(e,t),e.opts.allowUnionTypes||OC(e,t),AC(e,e.dataTypes))}function TC(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{qv(e.dataTypes,r)||wd(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),RC(e,t)}}function OC(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&wd(e,"use allowUnionTypes to allow union type keyword")}function AC(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,_d.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(a=>NC(t,a))&&wd(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function NC(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function qv(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function RC(e,t){const r=[];for(const n of e.dataTypes)qv(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function wd(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,_i.checkStrictMode)(e,t,e.opts.strictTypes)}class Kv{constructor(t,r,n){if((0,rs.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,_i.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",Wv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,rs.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",ne.default.errors))}result(t,r,n){this.failResult((0,Kt.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,Kt.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,Kt._)`${r} !== undefined && (${(0,Kt.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?ns.reportExtraError:ns.reportError)(this,this.def.error,r)}$dataError(){(0,ns.reportError)(this,this.def.$dataError||ns.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ns.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=Kt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Kt.nil,r=Kt.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,Kt.or)((0,Kt._)`${i} === undefined`,r)),t!==Kt.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Kt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Kt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Kt.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,Kt._)`${(0,jc.checkDataTypes)(c,r,o.opts.strictNumbers,jc.DataType.Wrong)}`}return Kt.nil}function s(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Kt._)`!${c}(${r})`}return Kt.nil}}subschema(t,r){const n=(0,bd.getSubschema)(this.it,t);(0,bd.extendSubschemaData)(n,this.it,t),(0,bd.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return bC(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=_i.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=_i.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,Kt.Name)),!0}}var Yv=mi.KeywordCxt=Kv;function Xv(e,t,r,n){const i=new Kv(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,rs.funcKeywordCode)(i,r):"macro"in r?(0,rs.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,rs.funcKeywordCode)(i,r)}const jC=/^\/(?:[^~]|~0|~1)*$/,IC=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Wv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!jC.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{const l=IC.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 a=o;const s=i.split("/");for(const l of s)l&&(o=(0,Kt._)`${o}${(0,Kt.getProperty)((0,_i.unescapeJsonPointer)(l))}`,a=(0,Kt._)`${a} && ${o}`);return a;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}Rv=mi.getData=Wv;const DC=Mt({__proto__:null,get KeywordCxt(){return Yv},default:mi,get getData(){return Rv},get validateFunctionCode(){return Dv}},[mi]),is=Lt(DC);var xd={};Object.defineProperty(xd,"__esModule",{value:!0});class FC extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var MC=xd.default=FC;const LC=Mt({__proto__:null,default:MC},[xd]),Sd=Lt(LC);var $d={};Object.defineProperty($d,"__esModule",{value:!0});const kd=Rc;let UC=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,kd.resolveUrl)(t,r,n),this.missingSchema=(0,kd.normalizeId)((0,kd.getFullPath)(t,this.missingRef))}};var zC=$d.default=UC;const GC=Mt({__proto__:null,default:zC},[$d]),Ed=Lt(GC);var cn={};Object.defineProperty(cn,"__esModule",{value:!0});var Jv=cn.resolveSchema=ny=cn.getCompilingSchema=ey=cn.resolveRef=ty=cn.compileSchema=Zv=cn.SchemaEnv=void 0;const jn=me,VC=Sd,wo=gi,In=Rc,Qv=Ae,BC=is;let Ic=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,In.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};var Zv=cn.SchemaEnv=Ic;function Cd(e){const t=ry.call(this,e);if(t)return t;const r=(0,In.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new jn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let s;e.$async&&(s=a.scopeValue("Error",{ref:VC.default,code:(0,jn._)`require("ajv/dist/runtime/validation_error").default`}));const c=a.scopeName("validate");e.validateName=c;const l={gen:a,allErrors:this.opts.allErrors,data:wo.default.data,parentData:wo.default.parentData,parentDataProperty:wo.default.parentDataProperty,dataNames:[wo.default.data],dataPathArr:[jn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,jn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:jn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,jn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,BC.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const d=a.toString();u=`${a.scopeRefs(wo.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${wo.default.self}`,`${wo.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:d,scopeValues:a._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof jn.Name?void 0:h,items:p instanceof jn.Name?void 0:p,dynamicProps:h instanceof jn.Name,dynamicItems:p instanceof jn.Name},f.source&&(f.source.evaluated=(0,jn.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}var ty=cn.compileSchema=Cd;function HC(e,t,r){var n;r=(0,In.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=YC.call(this,e,r);if(o===void 0){const a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(o=new Ic({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=qC.call(this,o)}var ey=cn.resolveRef=HC;function qC(e){return(0,In.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Cd.call(this,e)}function ry(e){for(const t of this._compilations)if(KC(t,e))return t}var ny=cn.getCompilingSchema=ry;function KC(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function YC(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Dc.call(this,e,t)}function Dc(e,t){const r=this.opts.uriResolver.parse(t),n=(0,In._getFullPath)(this.opts.uriResolver,r);let i=(0,In.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Pd.call(this,r,e);const o=(0,In.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){const s=Dc.call(this,e,a);return typeof(s==null?void 0:s.schema)!="object"?void 0:Pd.call(this,r,s)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Cd.call(this,a),o===(0,In.normalizeId)(t)){const{schema:s}=a,{schemaId:c}=this.opts,l=s[c];return l&&(i=(0,In.resolveUrl)(this.opts.uriResolver,i,l)),new Ic({schema:s,schemaId:c,root:e,baseId:i})}return Pd.call(this,r,a)}}Jv=cn.resolveSchema=Dc;const XC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Pd(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Qv.unescapeFragment)(s)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!XC.has(s)&&l&&(t=(0,In.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Qv.schemaHasRulesButRef)(r,this.RULES)){const s=(0,In.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Dc.call(this,n,s)}const{schemaId:a}=this.opts;if(o=o||new Ic({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}const WC=Mt({__proto__:null,get SchemaEnv(){return Zv},get compileSchema(){return ty},default:cn,get getCompilingSchema(){return ny},get resolveRef(){return ey},get resolveSchema(){return Jv}},[cn]),Td=Lt(WC),JC="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",QC="Meta-schema for $data reference (JSON AnySchema extension proposal)",ZC="object",tP=["$data"],eP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},rP=!1,nP={$id:JC,description:QC,type:ZC,required:tP,properties:eP,additionalProperties:rP};var Od={},Ad={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)})(j4,function(r){function n(){for(var j=arguments.length,U=Array(j),z=0;z<j;z++)U[z]=arguments[z];if(U.length>1){U[0]=U[0].slice(0,-1);for(var Q=U.length-1,Z=1;Z<Q;++Z)U[Z]=U[Z].slice(1,-1);return U[Q]=U[Q].slice(1),U.join("")}else return U[0]}function i(j){return"(?:"+j+")"}function o(j){return j===void 0?"undefined":j===null?"null":Object.prototype.toString.call(j).split(" ").pop().split("]").shift().toLowerCase()}function a(j){return j.toUpperCase()}function s(j){return j!=null?j instanceof Array?j:typeof j.length!="number"||j.split||j.setInterval||j.call?[j]:Array.prototype.slice.call(j):[]}function c(j,U){var z=j;if(U)for(var Q in U)z[Q]=U[Q];return z}function l(j){var U="[A-Za-z]",z="[0-9]",Q=n(z,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",It=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(U,z,"[\\-\\.\\_\\~]",oe);i(U+n(U,z,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Te=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),fr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),pe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),De=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),qe=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Be=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),ke=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Te,fr,pe,De,qe,Be,ke,ce].join("|")),Ke=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Fr=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Fr+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",U,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ot,vt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ot,vt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ot,vt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ot,vt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]",Ht),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ot,vt),"g"),UNRESERVED:new RegExp(Ot,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ot,It),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+Ke+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(U,z){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var It=U[Symbol.iterator](),oe;!(Z=(oe=It.next()).done)&&(Q.push(oe.value),!(z&&Q.length===z));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&It.return&&It.return()}finally{if(yt)throw vt}}return Q}return function(U,z){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return j(U,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var U=0,z=Array(j.length);U<j.length;U++)z[U]=j[U];return z}else return Array.from(j)},p=2147483647,g=36,v=1,_=26,y=38,m=700,x=72,N=128,$="-",A=/^xn--/,R=/[^\0-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=g-v,J=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(H[j])}function lt(j,U){for(var z=[],Q=j.length;Q--;)z[Q]=U(j[Q]);return z}function xt(j,U){var z=j.split("@"),Q="";z.length>1&&(Q=z[0]+"@",j=z[1]),j=j.replace(G,".");var Z=j.split("."),yt=lt(Z,U).join(".");return Q+yt}function Ct(j){for(var U=[],z=0,Q=j.length;z<Q;){var Z=j.charCodeAt(z++);if(Z>=55296&&Z<=56319&&z<Q){var yt=j.charCodeAt(z++);(yt&64512)==56320?U.push(((Z&1023)<<10)+(yt&1023)+65536):(U.push(Z),z--)}else U.push(Z)}return U}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},at=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,U){return j+22+75*(j<26)-((U!=0)<<5)},T=function(j,U,z){var Q=0;for(j=z?J(j/m):j>>1,j+=J(j/U);j>Y*_>>1;Q+=g)j=J(j/Y);return J(Q+(Y+1)*j/(j+y))},E=function(j){var U=[],z=j.length,Q=0,Z=N,yt=x,vt=j.lastIndexOf($);vt<0&&(vt=0);for(var It=0;It<vt;++It)j.charCodeAt(It)>=128&&rt("not-basic"),U.push(j.charCodeAt(It));for(var oe=vt>0?vt+1:0;oe<z;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=z&&rt("invalid-input");var Zt=at(j.charCodeAt(oe++));(Zt>=g||Zt>J((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+_?_:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>J(p/At)&&rt("overflow"),Ot*=At}var Xt=U.length+1;yt=T(Q-Ht,Xt,Ht==0),J(Q/Xt)>p-Z&&rt("overflow"),Z+=J(Q/Xt),Q%=Xt,U.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,U)},k=function(j){var U=[];j=Ct(j);var z=j.length,Q=N,Z=0,yt=x,vt=!0,It=!1,oe=void 0;try{for(var Ht=j[Symbol.iterator](),Ot;!(vt=(Ot=Ht.next()).done);vt=!0){var Ft=Ot.value;Ft<128&&U.push(nt(Ft))}}catch(kr){It=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(It)throw oe}}var Zt=U.length,kt=Zt;for(Zt&&U.push($);kt<z;){var At=p,Xt=!0,Te=!1,fr=void 0;try{for(var pe=j[Symbol.iterator](),De;!(Xt=(De=pe.next()).done);Xt=!0){var qe=De.value;qe>=Q&&qe<At&&(At=qe)}}catch(kr){Te=!0,fr=kr}finally{try{!Xt&&pe.return&&pe.return()}finally{if(Te)throw fr}}var Be=kt+1;At-Q>J((p-Z)/Be)&&rt("overflow"),Z+=(At-Q)*Be,Q=At;var ke=!0,ce=!1,Bt=void 0;try{for(var Ke=j[Symbol.iterator](),Fr;!(ke=(Fr=Ke.next()).done);ke=!0){var an=Fr.value;if(an<Q&&++Z>p&&rt("overflow"),an==Q){for(var nr=Z,rr=g;;rr+=g){var yr=rr<=yt?v:rr>=yt+_?_:rr-yt;if(nr<yr)break;var Pn=nr-yr,Tn=g-yr;U.push(nt(X(yr+Pn%Tn,0))),nr=J(Pn/Tn)}U.push(nt(X(nr,0))),yt=T(Z,Be,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!ke&&Ke.return&&Ke.return()}finally{if(ce)throw Bt}}++Z,++Q}return U.join("")},b=function(j){return xt(j,function(U){return A.test(U)?E(U.slice(4).toLowerCase()):U})},C=function(j){return xt(j,function(U){return R.test(U)?"xn--"+k(U):U})},L={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:k,toASCII:C,toUnicode:b},D={};function V(j){var U=j.charCodeAt(0),z=void 0;return U<16?z="%0"+U.toString(16).toUpperCase():U<128?z="%"+U.toString(16).toUpperCase():U<2048?z="%"+(U>>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():z="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),z}function K(j){for(var U="",z=0,Q=j.length;z<Q;){var Z=parseInt(j.substr(z+1,2),16);if(Z<128)U+=String.fromCharCode(Z),z+=3;else if(Z>=194&&Z<224){if(Q-z>=6){var yt=parseInt(j.substr(z+4,2),16);U+=String.fromCharCode((Z&31)<<6|yt&63)}else U+=j.substr(z,6);z+=6}else if(Z>=224){if(Q-z>=9){var vt=parseInt(j.substr(z+4,2),16),It=parseInt(j.substr(z+7,2),16);U+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|It&63)}else U+=j.substr(z,9);z+=9}else U+=j.substr(z,3),z+=3}return U}function et(j,U){function z(Q){var Z=K(Q);return Z.match(U.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(U.PCT_ENCODED,z).replace(U.NOT_USERINFO,V).replace(U.PCT_ENCODED,a)),j.host!==void 0&&(j.host=String(j.host).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_HOST,V).replace(U.PCT_ENCODED,a)),j.path!==void 0&&(j.path=String(j.path).replace(U.PCT_ENCODED,z).replace(j.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,V).replace(U.PCT_ENCODED,a)),j.query!==void 0&&(j.query=String(j.query).replace(U.PCT_ENCODED,z).replace(U.NOT_QUERY,V).replace(U.PCT_ENCODED,a)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(U.PCT_ENCODED,z).replace(U.NOT_FRAGMENT,V).replace(U.PCT_ENCODED,a)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,U){var z=j.match(U.IPV4ADDRESS)||[],Q=f(z,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,U){var z=j.match(U.IPV6ADDRESS)||[],Q=f(z,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),It=f(vt,2),oe=It[0],Ht=It[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=U.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Te=0;Te<kt;++Te)Xt[Te]=Ot[Te]||Ft[At+Te]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],U));var fr=Xt.reduce(function(ke,ce,Bt){if(!ce||ce==="0"){var Ke=ke[ke.length-1];Ke&&Ke.index+Ke.length===Bt?Ke.length++:ke.push({index:Bt,length:1})}return ke},[]),pe=fr.sort(function(ke,ce){return ce.length-ke.length})[0],De=void 0;if(pe&&pe.length>1){var qe=Xt.slice(0,pe.index),Be=Xt.slice(pe.index+pe.length);De=qe.join(":")+"::"+Be.join(":")}else De=Xt.join(":");return yt&&(De+="%"+yt),De}else return j}var Gt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Q=U.iri!==!1?d:u;U.reference==="suffix"&&(j=(U.scheme?U.scheme+":":"")+"//"+j);var Z=j.match(Gt);if(Z){Pt?(z.scheme=Z[1],z.userinfo=Z[3],z.host=Z[4],z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=Z[7],z.fragment=Z[8],isNaN(z.port)&&(z.port=Z[5])):(z.scheme=Z[1]||void 0,z.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,z.host=j.indexOf("//")!==-1?Z[4]:void 0,z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=j.indexOf("?")!==-1?Z[7]:void 0,z.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(z.port)&&(z.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),z.host&&(z.host=Tt(ut(z.host,Q),Q)),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",U.reference&&U.reference!=="suffix"&&U.reference!==z.reference&&(z.error=z.error||"URI is not a "+U.reference+" reference.");var yt=D[(U.scheme||z.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(z.host&&(U.domainHost||yt&&yt.domainHost))try{z.host=L.toASCII(z.host.replace(Q.PCT_ENCODED,K).toLowerCase())}catch(vt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(z,u)}else et(z,Q);yt&&yt.parse&&yt.parse(z,U)}else z.error=z.error||"URI can not be parsed.";return z}function qt(j,U){var z=U.iri!==!1?d:u,Q=[];return j.userinfo!==void 0&&(Q.push(j.userinfo),Q.push("@")),j.host!==void 0&&Q.push(Tt(ut(String(j.host),z),z).replace(z.IPV6ADDRESS,function(Z,yt,vt){return"["+yt+(vt?"%25"+vt:"")+"]"})),(typeof j.port=="number"||typeof j.port=="string")&&(Q.push(":"),Q.push(String(j.port))),Q.length?Q.join(""):void 0}var Qt=/^\.\.?\//,Dt=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var U=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(Dt))j=j.replace(Dt,"/");else if(j.match(fe))j=j.replace(fe,"/"),U.pop();else if(j==="."||j==="..")j="";else{var z=j.match(re);if(z){var Q=z[0];j=j.slice(Q.length),U.push(Q)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Vt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=U.iri?d:u,Q=[],Z=D[(U.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,U),j.host&&!z.IPV6ADDRESS.test(j.host)&&(U.domainHost||Z&&Z.domainHost))try{j.host=U.iri?L.toUnicode(j.host):L.toASCII(j.host.replace(z.PCT_ENCODED,K).toLowerCase())}catch(It){j.error=j.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+It}et(j,z),U.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,U);if(yt!==void 0&&(U.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!U.absolutePath&&(!Z||!Z.absolutePath)&&(vt=he(vt)),yt===void 0&&(vt=vt.replace(/^\/\//,"/%2F")),Q.push(vt)}return j.query!==void 0&&(Q.push("?"),Q.push(j.query)),j.fragment!==void 0&&(Q.push("#"),Q.push(j.fragment)),Q.join("")}function Le(j,U){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,z),z),U=Nt(Vt(U,z),z)),z=z||{},!z.tolerant&&U.scheme?(Z.scheme=U.scheme,Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.path?(U.path.charAt(0)==="/"?Z.path=he(U.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+U.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+U.path:Z.path=U.path,Z.path=he(Z.path)),Z.query=U.query):(Z.path=j.path,U.query!==void 0?Z.query=U.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=U.fragment,Z}function Ue(j,U,z){var Q=c({scheme:"null"},z);return Vt(Le(Nt(j,Q),Nt(U,Q),Q,!0),Q)}function Xe(j,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Nt(Vt(j,U),U)),j}function pr(j,U,z){return typeof j=="string"?j=Vt(Nt(j,z),z):o(j)==="object"&&(j=Vt(j,z)),typeof U=="string"?U=Vt(Nt(U,z),z):o(U)==="object"&&(U=Vt(U,z)),j===U}function dr(j,U){return j&&j.toString().replace(!U||!U.iri?u.ESCAPE:d.ESCAPE,V)}function $e(j,U){return j&&j.toString().replace(!U||!U.iri?u.PCT_ENCODED:d.PCT_ENCODED,K)}var Ze={scheme:"http",domainHost:!0,parse:function(j,U){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,U){var z=String(j.scheme).toLowerCase()==="https";return(j.port===(z?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},jr={scheme:"https",domainHost:Ze.domainHost,parse:Ze.parse,serialize:Ze.serialize};function Ir(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,U){var z=j;return z.secure=Ir(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(j,U){if((j.port===(Ir(j)?443:80)||j.port==="")&&(j.port=void 0),typeof j.secure=="boolean"&&(j.scheme=j.secure?"wss":"ws",j.secure=void 0),j.resourceName){var z=j.resourceName.split("?"),Q=f(z,2),Z=Q[0],yt=Q[1];j.path=Z&&Z!=="/"?Z:void 0,j.query=yt,j.resourceName=void 0}return j.fragment=void 0,j}},er={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},rn={},nn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",xe="[0-9A-Fa-f]",Kr=i(i("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+i("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+i("%"+xe+xe)),Or="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Yn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mn=n(Yn,'[\\"\\\\]'),kn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(nn,"g"),Ie=new RegExp(Kr,"g"),mo=new RegExp(n("[^]",Or,"[\\.]",'[\\"]',mn),"g"),on=new RegExp(n("[^]",nn,kn),"g"),gn=on;function $r(j){var U=K(j);return U.match(Dr)?U:j}var En={scheme:"mailto",parse:function(j,U){var z=j,Q=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var Z=!1,yt={},vt=z.query.split("&"),It=0,oe=vt.length;It<oe;++It){var Ht=vt[It].split("=");switch(Ht[0]){case"to":for(var Ot=Ht[1].split(","),Ft=0,Zt=Ot.length;Ft<Zt;++Ft)Q.push(Ot[Ft]);break;case"subject":z.subject=$e(Ht[1],U);break;case"body":z.body=$e(Ht[1],U);break;default:Z=!0,yt[$e(Ht[0],U)]=$e(Ht[1],U);break}}Z&&(z.headers=yt)}z.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=$e(Xt[0]),U.unicodeSupport)Xt[1]=$e(Xt[1],U).toLowerCase();else try{Xt[1]=L.toASCII($e(Xt[1],U).toLowerCase())}catch(Te){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Te}Q[kt]=Xt.join("@")}return z},serialize:function(j,U){var z=j,Q=s(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),It=vt.lastIndexOf("@"),oe=vt.slice(0,It).replace(Ie,$r).replace(Ie,a).replace(mo,V),Ht=vt.slice(It+1);try{Ht=U.iri?L.toUnicode(Ht):L.toASCII($e(Ht,U).toLowerCase())}catch(kt){z.error=z.error||"Email address's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}z.path=Q.join(",")}var Ot=j.headers=j.headers||{};j.subject&&(Ot.subject=j.subject),j.body&&(Ot.body=j.body);var Ft=[];for(var Zt in Ot)Ot[Zt]!==rn[Zt]&&Ft.push(Zt.replace(Ie,$r).replace(Ie,a).replace(on,V)+"="+Ot[Zt].replace(Ie,$r).replace(Ie,a).replace(gn,V));return Ft.length&&(z.query=Ft.join("&")),z}},vn=/^([^\:]+)\:(.*)/,Yr={scheme:"urn",parse:function(j,U){var z=j.path&&j.path.match(vn),Q=j;if(z){var Z=U.scheme||Q.scheme||"urn",yt=z[1].toLowerCase(),vt=z[2],It=Z+":"+(U.nid||yt),oe=D[It];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,U))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,U){var z=U.scheme||j.scheme||"urn",Q=j.nid,Z=z+":"+(U.nid||Q),yt=D[Z];yt&&(j=yt.serialize(j,U));var vt=j,It=j.nss;return vt.path=(Q||U.nid)+":"+It,vt}},Xn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Cn={scheme:"urn:uuid",parse:function(j,U){var z=j;return z.uuid=z.nss,z.nss=void 0,!U.tolerant&&(!z.uuid||!z.uuid.match(Xn))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(j,U){var z=j;return z.nss=(j.uuid||"").toLowerCase(),z}};D[Ze.scheme]=Ze,D[jr.scheme]=jr,D[Sr.scheme]=Sr,D[er.scheme]=er,D[En.scheme]=En,D[Yr.scheme]=Yr,D[Cn.scheme]=Cn,r.SCHEMES=D,r.pctEncChar=V,r.pctDecChars=K,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Le,r.resolve=Ue,r.normalize=Xe,r.equal=pr,r.escapeComponent=dr,r.unescapeComponent=$e,Object.defineProperty(r,"__esModule",{value:!0})})})(Ad,Ad.exports);var iy=Ad.exports;const iP=Xr(iy),oP=Mt({__proto__:null,default:iP},[iy]),aP=Lt(oP);Object.defineProperty(Od,"__esModule",{value:!0});const oy=aP;oy.code='require("ajv/dist/runtime/uri").default';var sP=Od.default=oy;const lP=Mt({__proto__:null,default:sP},[Od]),cP=Lt(lP);(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=is;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=me;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=Sd,i=Ed,o=U1,a=Td,s=me,c=Rc,l=Ac,u=Ae,d=nP,f=cP,h=(X,T)=>new RegExp(X,T);h.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 T,E,k,b,C,L,D,V,K,et,it,ut,Tt,Gt,Pt,Nt,qt,Qt,Dt,fe,re,he,Vt,Le,Ue;const Xe=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,dr=pr===!0||pr===void 0?1:pr||0,$e=(k=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&k!==void 0?k:h,Ze=(b=X.uriResolver)!==null&&b!==void 0?b:f.default;return{strictSchema:(L=(C=X.strictSchema)!==null&&C!==void 0?C:Xe)!==null&&L!==void 0?L:!0,strictNumbers:(V=(D=X.strictNumbers)!==null&&D!==void 0?D:Xe)!==null&&V!==void 0?V:!0,strictTypes:(et=(K=X.strictTypes)!==null&&K!==void 0?K:Xe)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Xe)!==null&&ut!==void 0?ut:"log",strictRequired:(Gt=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Xe)!==null&&Gt!==void 0?Gt:!1,code:X.code?{...X.code,optimize:dr,regExp:$e}:{optimize:dr,regExp:$e},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:y,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:y,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(Dt=X.inlineRefs)!==null&&Dt!==void 0?Dt:!0,schemaId:(fe=X.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(re=X.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=X.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Vt=X.validateFormats)!==null&&Vt!==void 0?Vt:!0,unicodeRegExp:(Le=X.unicodeRegExp)!==null&&Le!==void 0?Le:!0,int32range:(Ue=X.int32range)!==null&&Ue!==void 0?Ue:!0,uriResolver:Ze}}class x{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...m(T)};const{es5:E,lines:k}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:E,lines:k}),this.logger=J(T.logger);const b=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,_,T,"DEPRECATED","warn"),this._metaOpts=H.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&G.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:k}=this.opts;let b=d;k==="id"&&(b={...d},b.id=b.$id,delete b.$id),E&&T&&this.addMetaSchema(b,b[k],!1)}defaultMeta(){const{meta:T,schemaId:E}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[E]||T:void 0}validate(T,E){let k;if(typeof T=="string"){if(k=this.getSchema(T),!k)throw new Error(`no schema with key or ref "${T}"`)}else k=this.compile(T);const b=k(E);return"$async"in k||(this.errors=k.errors),b}compile(T,E){const k=this._addSchema(T,E);return k.validate||this._compileSchemaEnv(k)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return b.call(this,T,E);async function b(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||L.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await b.call(this,{$ref:et},!0)}async function L(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return D.call(this,it),await V.call(this,it.missingSchema),L.call(this,et)}}function D({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function V(et){const it=await K.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function K(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=k(et))}finally{delete this._loading[et]}}}addSchema(T,E,k,b=this.opts.validateSchema){if(Array.isArray(T)){for(const L of T)this.addSchema(L,void 0,k,b);return this}let C;if(typeof T=="object"){const{schemaId:L}=this.opts;if(C=T[L],C!==void 0&&typeof C!="string")throw new Error(`schema ${L} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,k,E,b,!0),this}addMetaSchema(T,E,k=this.opts.validateSchema){return this.addSchema(T,E,!0,k),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let k;if(k=T.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(k,T);if(!b&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return b}getSchema(T){let E;for(;typeof(E=$.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:k}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:k});if(E=a.resolveSchema.call(this,b,T),!E)return;this.refs[T]=E}return E.validate||this._compileSchemaEnv(E)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const E=$.call(this,T);return typeof E=="object"&&this._cache.delete(E.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const E=T;this._cache.delete(E);let k=T[this.opts.schemaId];return k&&(k=(0,c.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const E of T)this.addKeyword(E);return this}addKeyword(T,E){let k;if(typeof T=="string")k=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=k);else if(typeof T=="object"&&E===void 0){if(E=T,k=E.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,k,E),!E)return(0,u.eachItem)(k,C=>lt.call(this,C)),this;Ct.call(this,E);const b={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)(k,b.type.length===0?C=>lt.call(this,C,b):C=>b.type.forEach(L=>lt.call(this,C,b,L))),this}getKeyword(T){const E=this.RULES.all[T];return typeof E=="object"?E.definition:!!E}removeKeyword(T){const{RULES:E}=this;delete E.keywords[T],delete E.all[T];for(const k of E.rules){const b=k.rules.findIndex(C=>C.keyword===T);b>=0&&k.rules.splice(b,1)}return this}addFormat(T,E){return typeof E=="string"&&(E=new RegExp(E)),this.formats[T]=E,this}errorsText(T=this.errors,{separator:E=", ",dataVar:k="data"}={}){return!T||T.length===0?"No errors":T.map(b=>`${k}${b.instancePath} ${b.message}`).reduce((b,C)=>b+E+C)}$dataMetaSchema(T,E){const k=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const b of E){const C=b.split("/").slice(1);let L=T;for(const D of C)L=L[D];for(const D in k){const V=k[D];if(typeof V!="object")continue;const{$data:K}=V.definition,et=L[D];K&&et&&(L[D]=at(et))}}return T}_removeAllSchemas(T,E){for(const k in T){const b=T[k];(!E||E.test(k))&&(typeof b=="string"?delete T[k]:b&&!b.meta&&(this._cache.delete(b.schema),delete T[k]))}}_addSchema(T,E,k,b=this.opts.validateSchema,C=this.opts.addUsedSchema){let L;const{schemaId:D}=this.opts;if(typeof T=="object")L=T[D];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let V=this._cache.get(T);if(V!==void 0)return V;k=(0,c.normalizeId)(L||k);const K=c.getSchemaRefs.call(this,T,k);return V=new a.SchemaEnv({schema:T,schemaId:D,meta:E,baseId:k,localRefs:K}),this._cache.set(V.schema,V),C&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=V),b&&this.validateSchema(T,!0),V}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):a.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const E=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function N(X,T,E,k="error"){for(const b in X){const C=b;C in T&&this.logger[k](`${E}: option ${b}. ${X[C]}`)}}function $(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function A(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const T in X)this.addSchema(X[T],T)}function R(){for(const X in this.opts.formats){const T=this.opts.formats[X];T&&this.addFormat(X,T)}}function G(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in X){const E=X[T];E.keyword||(E.keyword=T),this.addKeyword(E)}}function H(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function J(X){if(X===!1)return Y;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 nt=/^[a-z_$][a-z0-9_$:-]*$/i;function rt(X,T){const{RULES:E}=this;if((0,u.eachItem)(X,k=>{if(E.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!nt.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function lt(X,T,E){var k;const b=T==null?void 0:T.post;if(E&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let L=b?C.post:C.rules.find(({type:V})=>V===E);if(L||(L={type:E,rules:[]},C.rules.push(L)),C.keywords[X]=!0,!T)return;const D={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,L,D,T.before):L.rules.push(D),C.all[X]=D,(k=T.implements)===null||k===void 0||k.forEach(V=>this.addKeyword(V))}function xt(X,T,E){const k=X.rules.findIndex(b=>b.keyword===E);k>=0?X.rules.splice(k,0,T):(X.rules.push(T),this.logger.warn(`rule ${E} is not defined`))}function Ct(X){let{metaSchema:T}=X;T!==void 0&&(X.$data&&this.opts.$data&&(T=at(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,$t]}}})(sd);const uP=Xr(sd),hP=Mt({__proto__:null,default:uP},[sd]),dP=Lt(hP);var Nd={},Rd={},jd={};Object.defineProperty(jd,"__esModule",{value:!0});const fP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var pP=jd.default=fP;const mP=Mt({__proto__:null,default:pP},[jd]),gP=Lt(mP);var xo={};Object.defineProperty(xo,"__esModule",{value:!0});var ay=xo.callRef=uy=xo.getValidate=void 0;const vP=Ed,sy=Rn,Wr=me,ca=gi,ly=Td,Fc=Ae,yP={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:s,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=ly.resolveRef.call(c,l,i,r);if(u===void 0)throw new vP.default(n.opts.uriResolver,i,r);if(u instanceof ly.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return Mc(e,a,o,o.$async);const p=t.scopeValue("root",{ref:l});return Mc(e,(0,Wr._)`${p}.validate`,l,l.$async)}function f(p){const g=cy(e,p);Mc(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",s.code.source===!0?{ref:p,code:(0,Wr.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:Wr.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function cy(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Wr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var uy=xo.getValidate=cy;function Mc(e,t,r,n){const{gen:i,it:o}=e,{allErrors:a,schemaEnv:s,opts:c}=o,l=c.passContext?ca.default.this:Wr.nil;n?u():d();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Wr._)`await ${(0,sy.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},g=>{i.if((0,Wr._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),a||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,sy.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,Wr._)`${p}.errors`;i.assign(ca.default.vErrors,(0,Wr._)`${ca.default.vErrors} === null ? ${g} : ${ca.default.vErrors}.concat(${g})`),i.assign(ca.default.errors,(0,Wr._)`${ca.default.vErrors}.length`)}function h(p){var g;if(!o.opts.unevaluated)return;const v=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=Fc.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,Wr._)`${p}.evaluated.props`);o.props=Fc.mergeEvaluated.props(i,_,o.props,Wr.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Fc.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,Wr._)`${p}.evaluated.items`);o.items=Fc.mergeEvaluated.items(i,_,o.items,Wr.Name)}}}ay=xo.callRef=Mc;var _P=xo.default=yP;const bP=Mt({__proto__:null,get callRef(){return ay},default:_P,get getValidate(){return uy}},[xo]),wP=Lt(bP);Object.defineProperty(Rd,"__esModule",{value:!0});const xP=gP,SP=wP,$P=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",xP.default,SP.default];var kP=Rd.default=$P;const EP=Mt({__proto__:null,default:kP},[Rd]),CP=Lt(EP);var Id={},Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});const Lc=me,Bi=Lc.operators,Uc={maximum:{okStr:"<=",ok:Bi.LTE,fail:Bi.GT},minimum:{okStr:">=",ok:Bi.GTE,fail:Bi.LT},exclusiveMaximum:{okStr:"<",ok:Bi.LT,fail:Bi.GTE},exclusiveMinimum:{okStr:">",ok:Bi.GT,fail:Bi.LTE}},PP={message:({keyword:e,schemaCode:t})=>(0,Lc.str)`must be ${Uc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Lc._)`{comparison: ${Uc[e].okStr}, limit: ${t}}`},TP={keyword:Object.keys(Uc),type:"number",schemaType:"number",$data:!0,error:PP,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Lc._)`${r} ${Uc[t].fail} ${n} || isNaN(${r})`)}};var OP=Dd.default=TP;const AP=Mt({__proto__:null,default:OP},[Dd]),NP=Lt(AP);var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});const os=me,RP={message:({schemaCode:e})=>(0,os.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,os._)`{multipleOf: ${e}}`},jP={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:RP,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,os._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,os._)`${a} !== parseInt(${a})`;e.fail$data((0,os._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};var IP=Fd.default=jP;const DP=Mt({__proto__:null,default:IP},[Fd]),FP=Lt(DP);var Md={},Ld={};Object.defineProperty(Ld,"__esModule",{value:!0});function hy(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 MP=Ld.default=hy;hy.code='require("ajv/dist/runtime/ucs2length").default';const LP=Mt({__proto__:null,default:MP},[Ld]),UP=Lt(LP);Object.defineProperty(Md,"__esModule",{value:!0});const So=me,zP=Ae,GP=UP,VP={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,So.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,So._)`{limit: ${e}}`},BP={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:VP,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?So.operators.GT:So.operators.LT,a=i.opts.unicode===!1?(0,So._)`${r}.length`:(0,So._)`${(0,zP.useFunc)(e.gen,GP.default)}(${r})`;e.fail$data((0,So._)`${a} ${o} ${n}`)}};var HP=Md.default=BP;const qP=Mt({__proto__:null,default:HP},[Md]),KP=Lt(qP);var Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});const YP=Rn,zc=me,XP={message:({schemaCode:e})=>(0,zc.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,zc._)`{pattern: ${e}}`},WP={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:XP,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",s=r?(0,zc._)`(new RegExp(${i}, ${a}))`:(0,YP.usePattern)(e,n);e.fail$data((0,zc._)`!${s}.test(${t})`)}};var JP=Ud.default=WP;const QP=Mt({__proto__:null,default:JP},[Ud]),ZP=Lt(QP);var zd={};Object.defineProperty(zd,"__esModule",{value:!0});const as=me,t6={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,as.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,as._)`{limit: ${e}}`},e6={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:t6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?as.operators.GT:as.operators.LT;e.fail$data((0,as._)`Object.keys(${r}).length ${i} ${n}`)}};var r6=zd.default=e6;const n6=Mt({__proto__:null,default:r6},[zd]),i6=Lt(n6);var Gd={};Object.defineProperty(Gd,"__esModule",{value:!0});const ss=Rn,ls=me,o6=Ae,a6={message:({params:{missingProperty:e}})=>(0,ls.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ls._)`{missingProperty: ${e}}`},s6={keyword:"required",type:"object",schemaType:"array",$data:!0,error:a6,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;const c=r.length>=s.loopRequired;if(a.allErrors?l():u(),s.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if((h==null?void 0:h[g])===void 0&&!p.has(g)){const v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,o6.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ls.nil,d);else for(const h of r)(0,ss.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,ss.checkMissingProp)(e,r,h)),(0,ss.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ss.noPropertyInData)(t,i,h,s.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,ss.propertyInData)(t,i,h,s.ownProperties)),t.if((0,ls.not)(p),()=>{e.error(),t.break()})},ls.nil)}}};var l6=Gd.default=s6;const c6=Mt({__proto__:null,default:l6},[Gd]),u6=Lt(c6);var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});const cs=me,h6={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,cs.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,cs._)`{limit: ${e}}`},d6={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:h6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?cs.operators.GT:cs.operators.LT;e.fail$data((0,cs._)`${r}.length ${i} ${n}`)}};var f6=Vd.default=d6;const p6=Mt({__proto__:null,default:f6},[Vd]),m6=Lt(p6);var Bd={},Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});const dy=wv;dy.code='require("ajv/dist/runtime/equal").default';var g6=Hd.default=dy;const v6=Mt({__proto__:null,default:g6},[Hd]),qd=Lt(v6);Object.defineProperty(Bd,"__esModule",{value:!0});const Kd=Ac,Er=me,y6=Ae,_6=qd,b6={message:({params:{i:e,j:t}})=>(0,Er.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Er._)`{i: ${e}, j: ${t}}`},w6={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:b6,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:s}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,Kd.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Er._)`${a} === false`),e.ok(c);function u(){const p=t.let("i",(0,Er._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,Er._)`${p} > 1`,()=>(d()?f:h)(p,g))}function d(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),_=(0,Kd.checkDataTypes)(l,v,s.opts.strictNumbers,Kd.DataType.Wrong),y=t.const("indices",(0,Er._)`{}`);t.for((0,Er._)`;${p}--;`,()=>{t.let(v,(0,Er._)`${r}[${p}]`),t.if(_,(0,Er._)`continue`),l.length>1&&t.if((0,Er._)`typeof ${v} == "string"`,(0,Er._)`${v} += "_"`),t.if((0,Er._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,Er._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Er._)`${y}[${v}] = ${p}`)})}function h(p,g){const v=(0,y6.useFunc)(t,_6.default),_=t.name("outer");t.label(_).for((0,Er._)`;${p}--;`,()=>t.for((0,Er._)`${g} = ${p}; ${g}--;`,()=>t.if((0,Er._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}}};var x6=Bd.default=w6;const S6=Mt({__proto__:null,default:x6},[Bd]),$6=Lt(S6);var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});const Xd=me,k6=Ae,E6=qd,C6={message:"must be equal to constant",params:({schemaCode:e})=>(0,Xd._)`{allowedValue: ${e}}`},P6={keyword:"const",$data:!0,error:C6,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Xd._)`!${(0,k6.useFunc)(t,E6.default)}(${r}, ${i})`):e.fail((0,Xd._)`${o} !== ${r}`)}};var T6=Yd.default=P6;const O6=Mt({__proto__:null,default:T6},[Yd]),A6=Lt(O6);var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});const us=me,N6=Ae,R6=qd,j6={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,us._)`{allowedValues: ${e}}`},I6={keyword:"enum",schemaType:"array",$data:!0,error:j6,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const s=i.length>=a.opts.loopEnum;let c;const l=()=>c??(c=(0,N6.useFunc)(t,R6.default));let u;if(s||n)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",o);u=(0,us.or)(...i.map((p,g)=>f(h,g)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,h=>t.if((0,us._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,us._)`${l()}(${r}, ${h}[${p}])`:(0,us._)`${r} === ${g}`}}};var D6=Wd.default=I6;const F6=Mt({__proto__:null,default:D6},[Wd]),M6=Lt(F6);Object.defineProperty(Id,"__esModule",{value:!0});const L6=NP,U6=FP,z6=KP,G6=ZP,V6=i6,B6=u6,H6=m6,q6=$6,K6=A6,Y6=M6,X6=[L6.default,U6.default,z6.default,G6.default,V6.default,B6.default,H6.default,q6.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},K6.default,Y6.default];var W6=Id.default=X6;const J6=Mt({__proto__:null,default:W6},[Id]),Q6=Lt(J6);var Jd={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});var fy=hs.validateAdditionalItems=void 0;const $o=me,Qd=Ae,Z6={message:({params:{len:e}})=>(0,$o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,$o._)`{limit: ${e}}`},tT={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Z6,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Qd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}py(e,n)}};function py(e,t){const{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;const s=r.const("len",(0,$o._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$o._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,Qd.alwaysValidSchema)(a,n)){const l=r.var("valid",(0,$o._)`${s} <= ${t.length}`);r.if((0,$o.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,s,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Qd.Type.Num},l),a.allErrors||r.if((0,$o.not)(l),()=>r.break())})}}fy=hs.validateAdditionalItems=py;var eT=hs.default=tT;const rT=Mt({__proto__:null,default:eT,get validateAdditionalItems(){return fy}},[hs]),my=Lt(rT);var Zd={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});var gy=ds.validateTuple=void 0;const vy=me,Gc=Ae,nT=Rn,iT={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return yy(e,"additionalItems",t);r.items=!0,!(0,Gc.alwaysValidSchema)(r,t)&&e.ok((0,nT.validateArray)(e))}};function yy(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:a,it:s}=e;u(i),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=Gc.mergeEvaluated.items(n,r.length,s.items));const c=n.name("valid"),l=n.const("len",(0,vy._)`${o}.length`);r.forEach((d,f)=>{(0,Gc.alwaysValidSchema)(s,d)||(n.if((0,vy._)`${l} > ${f}`,()=>e.subschema({keyword:a,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=s,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Gc.checkStrictMode)(s,v,f.strictTuples)}}}gy=ds.validateTuple=yy;var oT=ds.default=iT;const aT=Mt({__proto__:null,default:oT,get validateTuple(){return gy}},[ds]),_y=Lt(aT);Object.defineProperty(Zd,"__esModule",{value:!0});const sT=_y,lT={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sT.validateTuple)(e,"items")};var cT=Zd.default=lT;const uT=Mt({__proto__:null,default:cT},[Zd]),hT=Lt(uT);var tf={};Object.defineProperty(tf,"__esModule",{value:!0});const by=me,dT=Ae,fT=Rn,pT=my,mT={message:({params:{len:e}})=>(0,by.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,by._)`{limit: ${e}}`},gT={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mT,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,dT.alwaysValidSchema)(n,t)&&(i?(0,pT.validateAdditionalItems)(e,i):e.ok((0,fT.validateArray)(e)))}};var vT=tf.default=gT;const yT=Mt({__proto__:null,default:vT},[tf]),_T=Lt(yT);var ef={};Object.defineProperty(ef,"__esModule",{value:!0});const _n=me,Vc=Ae,bT={message:({params:{min:e,max:t}})=>t===void 0?(0,_n.str)`must contain at least ${e} valid item(s)`:(0,_n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,_n._)`{minContains: ${e}}`:(0,_n._)`{minContains: ${e}, maxContains: ${t}}`},wT={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bT,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let a,s;const{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,s=l):a=1;const u=t.const("len",(0,_n._)`${i}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,Vc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,Vc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vc.alwaysValidSchema)(o,r)){let g=(0,_n._)`${u} >= ${a}`;s!==void 0&&(g=(0,_n._)`${g} && ${u} <= ${s}`),e.pass(g);return}o.items=!0;const d=t.name("valid");s===void 0&&a===1?h(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),s!==void 0&&t.if((0,_n._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>p(v)))}function h(g,v){t.forRange("i",0,u,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:Vc.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,_n._)`${g}++`),s===void 0?t.if((0,_n._)`${g} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,_n._)`${g} > ${s}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,_n._)`${g} >= ${a}`,()=>t.assign(d,!0)))}}};var xT=ef.default=wT;const ST=Mt({__proto__:null,default:xT},[ef]),$T=Lt(ST);var rf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=me,r=Ae,n=Rn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
22
- missingProperty: ${d},
23
- depsCount: ${l},
24
- deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);a(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?l:u;f[d]=c[d]}return[l,u]}function a(c,l=c.schema){const{gen:u,data:d,it:f}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,d,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,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=a;function s(c,l=c.schema){const{gen:u,data:d,keyword:f,it:h}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(h,l[g])||(u.if((0,n.propertyInData)(u,d,g,h.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=s,e.default=i})(rf);const kT=Xr(rf),ET=Mt({__proto__:null,default:kT},[rf]),CT=Lt(ET);var nf={};Object.defineProperty(nf,"__esModule",{value:!0});const wy=me,PT=Ae,TT={message:"property name must be valid",params:({params:e})=>(0,wy._)`{propertyName: ${e.propertyName}}`},OT={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:TT,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,PT.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,wy.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var AT=nf.default=OT;const NT=Mt({__proto__:null,default:AT},[nf]),RT=Lt(NT);var of={};Object.defineProperty(of,"__esModule",{value:!0});const Bc=Rn,Dn=me,jT=gi,Hc=Ae,IT={message:"must NOT have additional properties",params:({params:e})=>(0,Dn._)`{additionalProperty: ${e.additionalProperty}}`},DT={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:IT,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Hc.alwaysValidSchema)(a,r))return;const l=(0,Bc.allSchemaProperties)(n.properties),u=(0,Bc.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Dn._)`${o} === ${jT.default.errors}`);function d(){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,Hc.schemaRefOrVal)(a,n.properties,"properties");_=(0,Bc.isOwnProperty)(t,y,v)}else l.length?_=(0,Dn.or)(...l.map(y=>(0,Dn._)`${v} === ${y}`)):_=Dn.nil;return u.length&&(_=(0,Dn.or)(_,...u.map(y=>(0,Dn._)`${(0,Bc.usePattern)(e,y)}.test(${v})`))),(0,Dn.not)(_)}function h(v){t.code((0,Dn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,Hc.alwaysValidSchema)(a,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Dn.not)(_),()=>{e.reset(),h(v)})):(g(v,_),s||t.if((0,Dn.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:Hc.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var FT=of.default=DT;const MT=Mt({__proto__:null,default:FT},[of]),xy=Lt(MT);var af={};Object.defineProperty(af,"__esModule",{value:!0});const LT=is,Sy=Rn,sf=Ae,$y=xy,UT={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&&$y.default.code(new LT.KeywordCxt(o,$y.default,"additionalProperties"));const a=(0,Sy.allSchemaProperties)(r);for(const d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=sf.mergeEvaluated.props(t,(0,sf.toHash)(a),o.props));const s=a.filter(d=>!(0,sf.alwaysValidSchema)(o,r[d]));if(s.length===0)return;const c=t.name("valid");for(const d of s)l(d)?u(d):(t.if((0,Sy.propertyInData)(t,i,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};var zT=af.default=UT;const GT=Mt({__proto__:null,default:zT},[af]),VT=Lt(GT);var lf={};Object.defineProperty(lf,"__esModule",{value:!0});const ky=Rn,qc=me,Ey=Ae,Cy=Ae,BT={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,s=(0,ky.allSchemaProperties)(r),c=s.filter(g=>(0,Ey.alwaysValidSchema)(o,r[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof qc.Name)&&(o.props=(0,Cy.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of s)l&&h(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function h(g){for(const v in l)new RegExp(g).test(v)&&(0,Ey.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,qc._)`${(0,ky.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:Cy.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,qc._)`${d}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,qc.not)(u),()=>t.break())})})}}};var HT=lf.default=BT;const qT=Mt({__proto__:null,default:HT},[lf]),KT=Lt(qT);var cf={};Object.defineProperty(cf,"__esModule",{value:!0});const YT=Ae,XT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,YT.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 WT=cf.default=XT;const JT=Mt({__proto__:null,default:WT},[cf]),QT=Lt(JT);var uf={};Object.defineProperty(uf,"__esModule",{value:!0});const ZT=Rn,t8={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ZT.validateUnion,error:{message:"must match a schema in anyOf"}};var e8=uf.default=t8;const r8=Mt({__proto__:null,default:e8},[uf]),n8=Lt(r8);var hf={};Object.defineProperty(hf,"__esModule",{value:!0});const Kc=me,i8=Ae,o8={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Kc._)`{passingSchemas: ${e.passing}}`},a8={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:o8,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,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,i8.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,Kc._)`${c} && ${a}`).assign(a,!1).assign(s,(0,Kc._)`[${s}, ${d}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,d),f&&e.mergeEvaluated(f,Kc.Name)})})}}};var s8=hf.default=a8;const l8=Mt({__proto__:null,default:s8},[hf]),c8=Lt(l8);var df={};Object.defineProperty(df,"__esModule",{value:!0});const u8=Ae,h8={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,a)=>{if((0,u8.alwaysValidSchema)(n,o))return;const s=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(s)})}};var d8=df.default=h8;const f8=Mt({__proto__:null,default:d8},[df]),p8=Lt(f8);var ff={};Object.defineProperty(ff,"__esModule",{value:!0});const Yc=me,Py=Ae,m8={message:({params:e})=>(0,Yc.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Yc._)`{failingKeyword: ${e.ifClause}}`},g8={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:m8,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,Py.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Ty(n,"then"),o=Ty(n,"else");if(!i&&!o)return;const a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,l("then",u),l("else",u))}else i?t.if(s,l("then")):t.if((0,Yc.not)(s),l("else"));e.pass(a,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},s);t.assign(a,s),e.mergeValidEvaluated(f,a),d?t.assign(d,(0,Yc._)`${u}`):e.setParams({ifClause:u})}}}};function Ty(e,t){const r=e.schema[t];return r!==void 0&&!(0,Py.alwaysValidSchema)(e,r)}var v8=ff.default=g8;const y8=Mt({__proto__:null,default:v8},[ff]),_8=Lt(y8);var pf={};Object.defineProperty(pf,"__esModule",{value:!0});const b8=Ae,w8={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,b8.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var x8=pf.default=w8;const S8=Mt({__proto__:null,default:x8},[pf]),$8=Lt(S8);Object.defineProperty(Jd,"__esModule",{value:!0});const k8=my,E8=hT,C8=_y,P8=_T,T8=$T,O8=CT,A8=RT,N8=xy,R8=VT,j8=KT,I8=QT,D8=n8,F8=c8,M8=p8,L8=_8,U8=$8;function z8(e=!1){const t=[I8.default,D8.default,F8.default,M8.default,L8.default,U8.default,A8.default,N8.default,O8.default,R8.default,j8.default];return e?t.push(E8.default,P8.default):t.push(k8.default,C8.default),t.push(T8.default),t}var G8=Jd.default=z8;const V8=Mt({__proto__:null,default:G8},[Jd]),B8=Lt(V8);var mf={},gf={};Object.defineProperty(gf,"__esModule",{value:!0});const lr=me,H8={message:({schemaCode:e})=>(0,lr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,lr._)`{format: ${e}}`},q8={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:H8,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=s;if(!c.validateFormats)return;i?f():h();function f(){const p=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),g=r.const("fDef",(0,lr._)`${p}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,lr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,lr._)`${g}.type || "string"`).assign(_,(0,lr._)`${g}.validate`),()=>r.assign(v,(0,lr._)`"string"`).assign(_,g)),e.fail$data((0,lr.or)(y(),m()));function y(){return c.strictSchema===!1?lr.nil:(0,lr._)`${a} && !${_}`}function m(){const x=u.$async?(0,lr._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,lr._)`${_}(${n})`,N=(0,lr._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,lr._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.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){d.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,lr.regexpCode)(N):c.code.formats?(0,lr._)`${c.code.formats}${(0,lr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,lr._)`${A}.validate`]:["string",N,A]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,lr._)`await ${_}(${n})`}return typeof v=="function"?(0,lr._)`${_}(${n})`:(0,lr._)`${_}.test(${n})`}}}};var K8=gf.default=q8;const Y8=Mt({__proto__:null,default:K8},[gf]),X8=Lt(Y8);Object.defineProperty(mf,"__esModule",{value:!0});const W8=X8,J8=[W8.default];var Q8=mf.default=J8;const Z8=Mt({__proto__:null,default:Q8},[mf]),tO=Lt(Z8);var ko={};Object.defineProperty(ko,"__esModule",{value:!0});var Oy=ko.contentVocabulary=Ay=ko.metadataVocabulary=void 0,Ay=ko.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Oy=ko.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const eO=Mt({__proto__:null,get contentVocabulary(){return Oy},default:ko,get metadataVocabulary(){return Ay}},[ko]),rO=Lt(eO);Object.defineProperty(Nd,"__esModule",{value:!0});const nO=CP,iO=Q6,oO=B8,aO=tO,Ny=rO,sO=[nO.default,iO.default,(0,oO.default)(),aO.default,Ny.metadataVocabulary,Ny.contentVocabulary];var lO=Nd.default=sO;const cO=Mt({__proto__:null,default:lO},[Nd]),uO=Lt(cO);var vf={},yf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(yf);const hO=Xr(yf),dO=Mt({__proto__:null,default:hO},[yf]),fO=Lt(dO);Object.defineProperty(vf,"__esModule",{value:!0});const ua=me,_f=fO,Ry=Td,pO=Ae,mO={message:({params:{discrError:e,tagName:t}})=>e===_f.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ua._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},gO={keyword:"discriminator",type:"object",schemaType:"object",error:mO,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,ua._)`${r}${(0,ua.getProperty)(s)}`);t.if((0,ua._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:_f.DiscrError.Tag,tag:l,tagName:s})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,ua._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:_f.DiscrError.Mapping,tag:l,tagName:s}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,ua.Name),p}function f(){var h;const p={},g=_(i);let v=!0;for(let x=0;x<a.length;x++){let N=a[x];N!=null&&N.$ref&&!(0,pO.schemaHasRulesButRef)(N,o.self.RULES)&&(N=Ry.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof Ry.SchemaEnv&&(N=N.schema));const $=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[s];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${s}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(s)}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/${s}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${s}" values must be unique strings`);p[x]=N}}}};var vO=vf.default=gO;const yO=Mt({__proto__:null,default:vO},[vf]),_O=Lt(yO),bO="http://json-schema.org/draft-07/schema#",wO="http://json-schema.org/draft-07/schema#",xO="Core schema meta-schema",SO={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:[]}},$O=["object","boolean"],kO={$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:"#"}},EO={$schema:bO,$id:wO,title:xO,definitions:SO,type:$O,properties:kO,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=dP,n=uO,i=_O,o=EO,a=["/properties"],s="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,a):o;this.addMetaSchema(p,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=is;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=me;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 d=Sd;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=Ed;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(ad,ad.exports);var jy=ad.exports;const Iy=Xr(jy),CO=Mt({__proto__:null,default:Iy},[jy]);var bf={exports:{}};const PO=Lt(CO);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=PO,n=me,i=Za,o=is,a=ts,s=gi,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\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 A=x,R=n.strConcat(s.default.instancePath,$.errorPath);y.if(r._`${s.default.errors} > 0`,()=>{if(typeof A=="object"){const[k,b]=H(A);b&&Y(b),k&&J(k),nt(G(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function G({properties:E,items:k}){const b={};if(E){b.props={};for(const C in E)b.props[C]=[]}if(k){b.items={};for(let C=0;C<k.length;C++)b.items[C]=[]}return b}function H(E){let k,b;for(const C in E){if(C==="properties"||C==="items")continue;const L=E[C];if(typeof L=="object"){k||(k={});const D=k[C]={};for(const V in L)D[V]=[]}else b||(b={}),b[C]=[]}return[k,b]}function Y(E){const k=y.const("emErrors",r.stringify(E)),b=y.const("templates",at(E,x));y.forOf("err",s.default.vErrors,V=>y.if(xt(V,k),()=>y.code(r._`${k}[${V}.keyword].push(${V})`).assign(r._`${V}.${l}`,!0)));const{singleError:C}=v;if(C){const V=y.let("message",r._`""`),K=y.let("paramsErrors",r._`[]`);L(et=>{y.if(V,()=>y.code(r._`${V} += ${typeof C=="string"?C:";"}`)),y.code(r._`${V} += ${D(et)}`),y.assign(K,r._`${K}.concat(${k}[${et}])`)}),a.reportError(_,{message:V,params:r._`{errors: ${K}}`})}else L(V=>a.reportError(_,{message:D(V),params:r._`{errors: ${k}[${V}]}`}));function L(V){y.forIn("key",k,K=>y.if(r._`${k}[${K}].length`,()=>V(K)))}function D(V){return r._`${V} in ${b} ? ${b}[${V}]() : ${N}[${V}]`}}function J(E){const k=y.const("emErrors",r.stringify(E)),b=[];for(const K in E)b.push([K,at(E[K],x[K])]);const C=y.const("templates",y.object(...b)),L=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),D=y.let("emPropParams"),V=y.let("emParamsErrors");y.forOf("err",s.default.vErrors,K=>y.if(xt(K,k),()=>{y.assign(D,r._`${L}[${K}.keyword]`),y.assign(V,r._`${k}[${K}.keyword][${K}.params[${D}]]`),y.if(V,()=>y.code(r._`${V}.push(${K})`).assign(r._`${K}.${l}`,!0))})),y.forIn("key",k,K=>y.forIn("keyProp",r._`${k}[${K}]`,et=>{y.assign(V,r._`${k}[${K}][${et}]`),y.if(r._`${V}.length`,()=>{const it=y.const("tmpl",r._`${C}[${K}] && ${C}[${K}][${et}]`);a.reportError(_,{message:r._`${it} ? ${it}() : ${N}[${K}][${et}]`,params:r._`{errors: ${V}}`})})}))}function nt(E){const{props:k,items:b}=E;if(!k&&!b)return;const C=r._`typeof ${m} == "object"`,L=r._`Array.isArray(${m})`,D=y.let("emErrors");let V,K;const et=y.let("templates");k&&b?(V=y.let("emChildKwd"),y.if(C),y.if(L,()=>{it(b,x.items),y.assign(V,r.str`items`)},()=>{it(k,x.properties),y.assign(V,r.str`properties`)}),K=r._`[${V}]`):b?(y.if(L),it(b,x.items),K=r._`.items`):k&&(y.if(n.and(C,n.not(L))),it(k,x.properties),K=r._`.properties`),y.forOf("err",s.default.vErrors,ut=>Ct(ut,D,Tt=>y.code(r._`${D}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),y.forIn("key",D,ut=>y.if(r._`${D}[${ut}].length`,()=>{a.reportError(_,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${K}[${ut}]`,params:r._`{errors: ${D}[${ut}]}`}),y.assign(r._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function it(ut,Tt){y.assign(D,r.stringify(ut)),y.assign(et,at(ut,Tt))}}function rt(E){const k=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,b=>y.if($t(b),()=>y.code(r._`${k}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${k}.length`,()=>a.reportError(_,{message:X(E),params:r._`{errors: ${k}}`}))}function lt(){const E=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,k=>y.if(r._`!${k}.${l}`,()=>y.code(r._`${E}.push(${k})`))),y.assign(s.default.vErrors,E).assign(s.default.errors,r._`${E}.length`)}function xt(E,k){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${k}`,r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${$.errSchemaPath.length}))`)}function Ct(E,k,b){y.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),L=y.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),D=y.const("emChild",r._`${L} && ${L}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${D} !== undefined && ${D} in ${k}`,()=>b(D))})}function $t(E){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,n.or(r._`${E}.instancePath === ${R}`,n.and(r._`${E}.instancePath.indexOf(${R}) === 0`,r._`${E}.instancePath[${R}.length] === "/"`)),r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`${E}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(E,k){const b=[];for(const C in E){const L=k[C];d.test(L)&&b.push([C,T(L)])}return y.object(...b)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,(k,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).replace(h,"")):r.stringify(E)}function T(E){return r._`function(){return ${X(E)}}`}},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})(bf,bf.exports);var TO=bf.exports;const OO=Xr(TO),AO=new Iy({allErrors:!0});OO(AO);const Dy=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),NO=e=>new XMLSerializer().serializeToString(e),RO=(e,t="image/svg+xml",r="utf-8")=>Dy(NO(e),t,r),Fy=(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 My(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Ly(){const e=My();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function jO(){const e=My();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function IO(){const{clientWidth:e,clientHeight:t}=jO();return{width:window.innerWidth||e,height:window.innerHeight||t}}function DO(e){const{top:t,left:r}=e.getBoundingClientRect(),n=Ly();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function FO(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=Ly();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function Uy(e,t){const r=FO(t),n=DO(e);return{x:r.x-n.x,y:r.y-n.y}}function MO(){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}MO();function LO(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 ee{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 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){
37
+ `.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 Rl(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 Bf=(e,t)=>{typeof e=="string"&&(e=Ll(e)||new RegExp(e));const n=t.match(e);return Rl(n)},Dl=(e,t)=>{typeof e=="string"&&(e=Ll(e)||new RegExp(e));const n=[],i=t.matchAll(e);for(const r of i)n.push(Rl(r));return n};function Fl(e){return e.replace(/(^\w|[_-]\w)/g,function(t){return t.slice(-1).toUpperCase()})}function Hf(e){const t=typeof e;return t!=="object"?t:Object.prototype.toString.call(e).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Uf(e){return Hf(e)==="object"}function Vl(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]=Uf(e[r])?Vl(e[r],t):e[r];return i}function Ui(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 $l(e,t=12){return+e.toPrecision(t)}class zl{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 Wf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jl={exports:{}},ri=typeof Reflect=="object"?Reflect:null,Gl=ri&&typeof ri.apply=="function"?ri.apply:function(t,n,i){return Function.prototype.apply.call(t,n,i)},Rr;ri&&typeof ri.ownKeys=="function"?Rr=ri.ownKeys:Object.getOwnPropertySymbols?Rr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Rr=function(t){return Object.getOwnPropertyNames(t)};function qf(e){console&&console.warn&&console.warn(e)}var Bl=Number.isNaN||function(t){return t!==t};function qt(){qt.init.call(this)}jl.exports=qt,jl.exports.once=Zf,qt.EventEmitter=qt,qt.prototype._events=void 0,qt.prototype._eventsCount=0,qt.prototype._maxListeners=void 0;var Hl=10;function Dr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qt,"defaultMaxListeners",{enumerable:!0,get:function(){return Hl},set:function(e){if(typeof e!="number"||e<0||Bl(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Hl=e}}),qt.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},qt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Bl(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 Ul(e){return e._maxListeners===void 0?qt.defaultMaxListeners:e._maxListeners}qt.prototype.getMaxListeners=function(){return Ul(this)},qt.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 l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var u=s[t];if(u===void 0)return!1;if(typeof u=="function")Gl(u,this,n);else for(var v=u.length,y=Kl(u,v),i=0;i<v;++i)Gl(y[i],this,n);return!0};function Wl(e,t,n,i){var r,s,o;if(Dr(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=Ul(e),r>0&&o.length>r&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,qf(l)}return e}qt.prototype.addListener=function(t,n){return Wl(this,t,n,!1)},qt.prototype.on=qt.prototype.addListener,qt.prototype.prependListener=function(t,n){return Wl(this,t,n,!0)};function Yf(){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 ql(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=Yf.bind(i);return r.listener=n,i.wrapFn=r,r}qt.prototype.once=function(t,n){return Dr(n),this.on(t,ql(this,t,n)),this},qt.prototype.prependOnceListener=function(t,n){return Dr(n),this.prependListener(t,ql(this,t,n)),this},qt.prototype.removeListener=function(t,n){var i,r,s,o,l;if(Dr(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){l=i[o].listener,s=o;break}if(s<0)return this;s===0?i.shift():Xf(i,s),i.length===1&&(r[t]=i[0]),r.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},qt.prototype.off=qt.prototype.removeListener,qt.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 Yl(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?Kf(r):Kl(r,r.length)}qt.prototype.listeners=function(t){return Yl(this,t,!0)},qt.prototype.rawListeners=function(t){return Yl(this,t,!1)},qt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Xl.call(e,t)},qt.prototype.listenerCount=Xl;function Xl(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}qt.prototype.eventNames=function(){return this._eventsCount>0?Rr(this._events):[]};function Kl(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function Xf(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Kf(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function Zf(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))}Zl(e,t,s,{once:!0}),t!=="error"&&Qf(e,r,{once:!0})})}function Qf(e,t,n){typeof e.on=="function"&&Zl(e,"error",t,n)}function Zl(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 Jf{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 Ql=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function td(e,t={}){var n=1,i=1;function r(it){var st=it.match(/\n/g);st&&(n+=st.length);var S=it.lastIndexOf(`
38
+ `);i=~S?it.length-S:i+it.length}function s(){var it={line:n,column:i};return function(st){return st.position=new o(it),I(),st}}function o(it){this.start=it,this.end={line:n,column:i},this.source=t.source}o.prototype.content=e;var l=[];function u(it){var st=new Error(t.source+":"+n+":"+i+": "+it);if(st.reason=it,st.filename=t.source,st.line=n,st.column=i,st.source=e,t.silent)l.push(st);else throw st}function v(){var it=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:l}}}function y(){return x(/^{\s*/)}function g(){return x(/^}/)}function m(){var it,st=[];for(I(),k(st);e.length&&e.charAt(0)!="}"&&(it=jt()||Q());)it!==!1&&(st.push(it),k(st));return st}function x(it){var st=it.exec(e);if(st){var S=st[0];return r(S),e=e.slice(S.length),st}}function I(){x(/^\s*/)}function k(it){var st;for(it=it||[];st=A();)st!==!1&&it.push(st);return it}function A(){var it=s();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var st=2;e.charAt(st)!=""&&(e.charAt(st)!="*"||e.charAt(st+1)!="/");)++st;if(st+=2,e.charAt(st-1)==="")return u("End of comment missing");var S=e.slice(2,st-2);return i+=2,r(S),e=e.slice(st),i+=2,it({type:"comment",comment:S})}}function $(){var it=x(/^([^{]+)/);if(it)return sn(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(st){return st.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(st){return st.replace(/\u200C/g,",")})}function P(){var it=s(),st=x(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(st){if(st=sn(st[0]),!x(/^:\s*/))return u("property missing ':'");var S=x(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),E=it({type:"declaration",property:st.replace(Ql,""),value:S?sn(S[0]).replace(Ql,""):""});return x(/^[;\s]*/),E}}function O(){var it=[];if(!y())return u("missing '{'");k(it);for(var st;st=P();)st!==!1&&(it.push(st),k(it));return g()?it:u("missing '}'")}function D(){for(var it,st=[],S=s();it=x(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)st.push(it[1]),x(/^,\s*/);if(st.length)return S({type:"keyframe",values:st,declarations:O()})}function W(){var it=s(),st=x(/^@([-\w]+)?keyframes\s*/);if(st){var S=st[1];if(st=x(/^([-\w]+)\s*/),!st)return u("@keyframes missing name");var E=st[1];if(!y())return u("@keyframes missing '{'");for(var b,N=k();b=D();)N.push(b),N=N.concat(k());return g()?it({type:"keyframes",name:E,vendor:S,keyframes:N}):u("@keyframes missing '}'")}}function U(){var it=s(),st=x(/^@supports *([^{]+)/);if(st){var S=sn(st[1]);if(!y())return u("@supports missing '{'");var E=k().concat(m());return g()?it({type:"supports",supports:S,rules:E}):u("@supports missing '}'")}}function R(){var it=s(),st=x(/^@host\s*/);if(st){if(!y())return u("@host missing '{'");var S=k().concat(m());return g()?it({type:"host",rules:S}):u("@host missing '}'")}}function rt(){var it=s(),st=x(/^@media *([^{]+)/);if(st){var S=sn(st[1]);if(!y())return u("@media missing '{'");var E=k().concat(m());return g()?it({type:"media",media:S,rules:E}):u("@media missing '}'")}}function ct(){var it=s(),st=x(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(st)return it({type:"custom-media",name:sn(st[1]),media:sn(st[2])})}function mt(){var it=s(),st=x(/^@page */);if(st){var S=$()||[];if(!y())return u("@page missing '{'");for(var E=k(),b;b=P();)E.push(b),E=E.concat(k());return g()?it({type:"page",selectors:S,declarations:E}):u("@page missing '}'")}}function ht(){var it=s(),st=x(/^@([-\w]+)?document *([^{]+)/);if(st){var S=sn(st[1]),E=sn(st[2]);if(!y())return u("@document missing '{'");var b=k().concat(m());return g()?it({type:"document",document:E,vendor:S,rules:b}):u("@document missing '}'")}}function lt(){var it=s(),st=x(/^@font-face\s*/);if(st){if(!y())return u("@font-face missing '{'");for(var S=k(),E;E=P();)S.push(E),S=S.concat(k());return g()?it({type:"font-face",declarations:S}):u("@font-face missing '}'")}}var gt=Dt("import"),ft=Dt("charset"),At=Dt("namespace");function Dt(it){var st=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var S=s(),E=x(st);if(E){var b={type:it};return b[it]=E[1].trim(),S(b)}}}function jt(){if(e[0]=="@")return W()||rt()||ct()||U()||gt()||ft()||At()||ht()||mt()||R()||lt()}function Q(){var it=s(),st=$();return st?(k(),it({type:"rule",selectors:st,declarations:O()})):u("selector missing")}return no(v())}function sn(e){return e?e.replace(/^\s+|\s+$/g,""):""}function no(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){no(o,i)}):s&&typeof s=="object"&&no(s,i)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const Jl=(e,t="image/svg+xml",n="utf-8")=>new Blob([e],{type:`${t};charset=${n}`}),ed=e=>new XMLSerializer().serializeToString(e),nd=(e,t="image/svg+xml",n="utf-8")=>Jl(ed(e),t,n),tc=(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 ec(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function nc(){const e=ec();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function id(){const e=ec();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function ic(){const{clientWidth:e,clientHeight:t}=id();return{width:e,height:t}}function rd(e){const{top:t,left:n}=e.getBoundingClientRect(),i=nc();return{x:n+i.scrollLeft,y:t+i.scrollTop}}function sd(e){if("center"in e)return e.center;if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=nc();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function io(e,t){const n=sd(t),i=rd(e);return{x:n.x-i.x,y:n.y-i.y}}function rc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const od=()=>{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 ad(){return od()==="macos"}function ld(){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 ro=ld()!==-1;(()=>{const e=rc();return!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL)})(),function(){if(!rc().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 cd(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 sc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
39
+ * http://hammerjs.github.io/
40
+ *
41
+ * Copyright (c) 2016 Jorik Tangelder;
42
+ * Licensed under the MIT license */(function(e){(function(t,n,i,r){var s=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),l="function",u=Math.round,v=Math.abs,y=Date.now;function g(a,h,p){return setTimeout(O(a,p),h)}function m(a,h,p){return Array.isArray(a)?(x(a,p[h],p),!0):!1}function x(a,h,p){var _;if(a)if(a.forEach)a.forEach(h,p);else if(a.length!==r)for(_=0;_<a.length;)h.call(p,a[_],_,a),_++;else for(_ in a)a.hasOwnProperty(_)&&h.call(p,a[_],_,a)}function I(a,h,p){var _="DEPRECATED METHOD: "+h+`
43
+ `+p+` AT
44
+ `;return function(){var w=new Error("get-stack-trace"),C=w&&w.stack?w.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",M=t.console&&(t.console.warn||t.console.log);return M&&M.call(t.console,_,C),a.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(h){if(h===r||h===null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(h),_=1;_<arguments.length;_++){var w=arguments[_];if(w!==r&&w!==null)for(var C in w)w.hasOwnProperty(C)&&(p[C]=w[C])}return p}:k=Object.assign;var A=I(function(h,p,_){for(var w=Object.keys(p),C=0;C<w.length;)(!_||_&&h[w[C]]===r)&&(h[w[C]]=p[w[C]]),C++;return h},"extend","Use `assign`."),$=I(function(h,p){return A(h,p,!0)},"merge","Use `assign`.");function P(a,h,p){var _=h.prototype,w;w=a.prototype=Object.create(_),w.constructor=a,w._super=_,p&&k(w,p)}function O(a,h){return function(){return a.apply(h,arguments)}}function D(a,h){return typeof a==l?a.apply(h&&h[0]||r,h):a}function W(a,h){return a===r?h:a}function U(a,h,p){x(mt(h),function(_){a.addEventListener(_,p,!1)})}function R(a,h,p){x(mt(h),function(_){a.removeEventListener(_,p,!1)})}function rt(a,h){for(;a;){if(a==h)return!0;a=a.parentNode}return!1}function ct(a,h){return a.indexOf(h)>-1}function mt(a){return a.trim().split(/\s+/g)}function ht(a,h,p){if(a.indexOf&&!p)return a.indexOf(h);for(var _=0;_<a.length;){if(p&&a[_][p]==h||!p&&a[_]===h)return _;_++}return-1}function lt(a){return Array.prototype.slice.call(a,0)}function gt(a,h,p){for(var _=[],w=[],C=0;C<a.length;){var M=h?a[C][h]:a[C];ht(w,M)<0&&_.push(a[C]),w[C]=M,C++}return p&&(h?_=_.sort(function(Y,H){return Y[h]>H[h]}):_=_.sort()),_}function ft(a,h){for(var p,_,w=h[0].toUpperCase()+h.slice(1),C=0;C<s.length;){if(p=s[C],_=p?p+w:h,_ in a)return _;C++}return r}var At=1;function Dt(){return At++}function jt(a){var h=a.ownerDocument||a;return h.defaultView||h.parentWindow||t}var Q=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,st=ft(t,"PointerEvent")!==r,S=it&&Q.test(navigator.userAgent),E="touch",b="pen",N="mouse",L="kinect",V=25,F=1,X=2,z=4,Z=8,at=1,pt=2,wt=4,Pt=8,Et=16,Nt=pt|wt,Lt=Pt|Et,Vt=Nt|Lt,yt=["x","y"],Xt=["clientX","clientY"];function $t(a,h){var p=this;this.manager=a,this.callback=h,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(_){D(a.options.enable,[a])&&p.handler(_)},this.init()}$t.prototype={handler:function(){},init:function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(jt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(jt(this.element),this.evWin,this.domHandler)}};function ee(a){var h,p=a.options.inputClass;return p?h=p:st?h=Fe:S?h=hn:it?h=di:h=We,new h(a,Ht)}function Ht(a,h,p){var _=p.pointers.length,w=p.changedPointers.length,C=h&F&&_-w===0,M=h&(z|Z)&&_-w===0;p.isFirst=!!C,p.isFinal=!!M,C&&(a.session={}),p.eventType=h,Ee(a,p),a.emit("hammer.input",p),a.recognize(p),a.session.prevInput=p}function Ee(a,h){var p=a.session,_=h.pointers,w=_.length;p.firstInput||(p.firstInput=Tn(h)),w>1&&!p.firstMultiple?p.firstMultiple=Tn(h):w===1&&(p.firstMultiple=!1);var C=p.firstInput,M=p.firstMultiple,j=M?M.center:C.center,Y=h.center=Ue(_);h.timeStamp=y(),h.deltaTime=h.timeStamp-C.timeStamp,h.angle=Ke(j,Y),h.distance=Xe(j,Y),fe(p,h),h.offsetDirection=an(h.deltaX,h.deltaY);var H=on(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=H.x,h.overallVelocityY=H.y,h.overallVelocity=v(H.x)>v(H.y)?H.x:H.y,h.scale=M?ce(M.pointers,_):1,h.rotation=M?ui(M.pointers,_):0,h.maxPointers=p.prevInput?h.pointers.length>p.prevInput.maxPointers?h.pointers.length:p.prevInput.maxPointers:h.pointers.length,Ye(p,h);var G=a.element;rt(h.srcEvent.target,G)&&(G=h.srcEvent.target),h.target=G}function fe(a,h){var p=h.center,_=a.offsetDelta||{},w=a.prevDelta||{},C=a.prevInput||{};(h.eventType===F||C.eventType===z)&&(w=a.prevDelta={x:C.deltaX||0,y:C.deltaY||0},_=a.offsetDelta={x:p.x,y:p.y}),h.deltaX=w.x+(p.x-_.x),h.deltaY=w.y+(p.y-_.y)}function Ye(a,h){var p=a.lastInterval||h,_=h.timeStamp-p.timeStamp,w,C,M,j;if(h.eventType!=Z&&(_>V||p.velocity===r)){var Y=h.deltaX-p.deltaX,H=h.deltaY-p.deltaY,G=on(_,Y,H);C=G.x,M=G.y,w=v(G.x)>v(G.y)?G.x:G.y,j=an(Y,H),a.lastInterval=h}else w=p.velocity,C=p.velocityX,M=p.velocityY,j=p.direction;h.velocity=w,h.velocityX=C,h.velocityY=M,h.direction=j}function Tn(a){for(var h=[],p=0;p<a.pointers.length;)h[p]={clientX:u(a.pointers[p].clientX),clientY:u(a.pointers[p].clientY)},p++;return{timeStamp:y(),pointers:h,center:Ue(h),deltaX:a.deltaX,deltaY:a.deltaY}}function Ue(a){var h=a.length;if(h===1)return{x:u(a[0].clientX),y:u(a[0].clientY)};for(var p=0,_=0,w=0;w<h;)p+=a[w].clientX,_+=a[w].clientY,w++;return{x:u(p/h),y:u(_/h)}}function on(a,h,p){return{x:h/a||0,y:p/a||0}}function an(a,h){return a===h?at:v(a)>=v(h)?a<0?pt:wt:h<0?Pt:Et}function Xe(a,h,p){p||(p=yt);var _=h[p[0]]-a[p[0]],w=h[p[1]]-a[p[1]];return Math.sqrt(_*_+w*w)}function Ke(a,h,p){p||(p=yt);var _=h[p[0]]-a[p[0]],w=h[p[1]]-a[p[1]];return Math.atan2(w,_)*180/Math.PI}function ui(a,h){return Ke(h[1],h[0],Xt)+Ke(a[1],a[0],Xt)}function ce(a,h){return Xe(h[0],h[1],Xt)/Xe(a[0],a[1],Xt)}var Ze={mousedown:F,mousemove:X,mouseup:z},Pn="mousedown",Te="mousemove mouseup";function We(){this.evEl=Pn,this.evWin=Te,this.pressed=!1,$t.apply(this,arguments)}P(We,$t,{handler:function(h){var p=Ze[h.type];p&F&&h.button===0&&(this.pressed=!0),p&X&&h.which!==1&&(p=z),this.pressed&&(p&z&&(this.pressed=!1),this.callback(this.manager,p,{pointers:[h],changedPointers:[h],pointerType:N,srcEvent:h}))}});var Me={pointerdown:F,pointermove:X,pointerup:z,pointercancel:Z,pointerout:Z},qn={2:E,3:b,4:N,5:L},ln="pointerdown",In="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(ln="MSPointerDown",In="MSPointerMove MSPointerUp MSPointerCancel");function Fe(){this.evEl=ln,this.evWin=In,$t.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}P(Fe,$t,{handler:function(h){var p=this.store,_=!1,w=h.type.toLowerCase().replace("ms",""),C=Me[w],M=qn[h.pointerType]||h.pointerType,j=M==E,Y=ht(p,h.pointerId,"pointerId");C&F&&(h.button===0||j)?Y<0&&(p.push(h),Y=p.length-1):C&(z|Z)&&(_=!0),!(Y<0)&&(p[Y]=h,this.callback(this.manager,C,{pointers:p,changedPointers:[h],pointerType:M,srcEvent:h}),_&&p.splice(Y,1))}});var me={touchstart:F,touchmove:X,touchend:z,touchcancel:Z},Zr="touchstart",Nn="touchstart touchmove touchend touchcancel";function cn(){this.evTarget=Zr,this.evWin=Nn,this.started=!1,$t.apply(this,arguments)}P(cn,$t,{handler:function(h){var p=me[h.type];if(p===F&&(this.started=!0),!!this.started){var _=Qe.call(this,h,p);p&(z|Z)&&_[0].length-_[1].length===0&&(this.started=!1),this.callback(this.manager,p,{pointers:_[0],changedPointers:_[1],pointerType:E,srcEvent:h})}}});function Qe(a,h){var p=lt(a.touches),_=lt(a.changedTouches);return h&(z|Z)&&(p=gt(p.concat(_),"identifier",!0)),[p,_]}var hi={touchstart:F,touchmove:X,touchend:z,touchcancel:Z},un="touchstart touchmove touchend touchcancel";function hn(){this.evTarget=un,this.targetIds={},$t.apply(this,arguments)}P(hn,$t,{handler:function(h){var p=hi[h.type],_=Yn.call(this,h,p);_&&this.callback(this.manager,p,{pointers:_[0],changedPointers:_[1],pointerType:E,srcEvent:h})}});function Yn(a,h){var p=lt(a.touches),_=this.targetIds;if(h&(F|X)&&p.length===1)return _[p[0].identifier]=!0,[p,p];var w,C,M=lt(a.changedTouches),j=[],Y=this.target;if(C=p.filter(function(H){return rt(H.target,Y)}),h===F)for(w=0;w<C.length;)_[C[w].identifier]=!0,w++;for(w=0;w<M.length;)_[M[w].identifier]&&j.push(M[w]),h&(z|Z)&&delete _[M[w].identifier],w++;if(j.length)return[gt(C.concat(j),"identifier",!0),j]}var fi=2500,Qr=25;function di(){$t.apply(this,arguments);var a=O(this.handler,this);this.touch=new hn(this.manager,a),this.mouse=new We(this.manager,a),this.primaryTouch=null,this.lastTouches=[]}P(di,$t,{handler:function(h,p,_){var w=_.pointerType==E,C=_.pointerType==N;if(!(C&&_.sourceCapabilities&&_.sourceCapabilities.firesTouchEvents)){if(w)Jr.call(this,p,_);else if(C&&fn.call(this,_))return;this.callback(h,p,_)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Jr(a,h){a&F?(this.primaryTouch=h.changedPointers[0].identifier,ts.call(this,h)):a&(z|Z)&&ts.call(this,h)}function ts(a){var h=a.changedPointers[0];if(h.identifier===this.primaryTouch){var p={x:h.clientX,y:h.clientY};this.lastTouches.push(p);var _=this.lastTouches,w=function(){var C=_.indexOf(p);C>-1&&_.splice(C,1)};setTimeout(w,fi)}}function fn(a){for(var h=a.srcEvent.clientX,p=a.srcEvent.clientY,_=0;_<this.lastTouches.length;_++){var w=this.lastTouches[_],C=Math.abs(h-w.x),M=Math.abs(p-w.y);if(C<=Qr&&M<=Qr)return!0}return!1}var es=ft(o.style,"touchAction"),ns=es!==r,is="compute",rs="auto",pi="manipulation",dn="none",Pe="pan-x",pn="pan-y",On=Mn();function zt(a,h){this.manager=a,this.set(h)}zt.prototype={set:function(a){a==is&&(a=this.compute()),ns&&this.manager.element.style&&On[a]&&(this.manager.element.style[es]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return x(this.manager.recognizers,function(h){D(h.options.enable,[h])&&(a=a.concat(h.getTouchAction()))}),ss(a.join(" "))},preventDefaults:function(a){var h=a.srcEvent,p=a.offsetDirection;if(this.manager.session.prevented){h.preventDefault();return}var _=this.actions,w=ct(_,dn)&&!On[dn],C=ct(_,pn)&&!On[pn],M=ct(_,Pe)&&!On[Pe];if(w){var j=a.pointers.length===1,Y=a.distance<2,H=a.deltaTime<250;if(j&&Y&&H)return}if(!(M&&C)&&(w||C&&p&Nt||M&&p&Lt))return this.preventSrc(h)},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};function ss(a){if(ct(a,dn))return dn;var h=ct(a,Pe),p=ct(a,pn);return h&&p?dn:h||p?h?Pe:pn:ct(a,pi)?pi:rs}function Mn(){if(!ns)return!1;var a={},h=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(p){a[p]=h?t.CSS.supports("touch-action",p):!0}),a}var Xn=1,ge=2,Je=4,qe=8,Ve=qe,mn=16,Zt=32;function Ct(a){this.options=k({},this.defaults,a||{}),this.id=Dt(),this.manager=null,this.options.enable=W(this.options.enable,!0),this.state=Xn,this.simultaneous={},this.requireFail=[]}Ct.prototype={defaults:{},set:function(a){return k(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(m(a,"recognizeWith",this))return this;var h=this.simultaneous;return a=An(a,this),h[a.id]||(h[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return m(a,"dropRecognizeWith",this)?this:(a=An(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(m(a,"requireFailure",this))return this;var h=this.requireFail;return a=An(a,this),ht(h,a)===-1&&(h.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(m(a,"dropRequireFailure",this))return this;a=An(a,this);var h=ht(this.requireFail,a);return h>-1&&this.requireFail.splice(h,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){var h=this,p=this.state;function _(w){h.manager.emit(w,a)}p<qe&&_(h.options.event+ir(p)),_(h.options.event),a.additionalEvent&&_(a.additionalEvent),p>=qe&&_(h.options.event+ir(p))},tryEmit:function(a){if(this.canEmit())return this.emit(a);this.state=Zt},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(Zt|Xn)))return!1;a++}return!0},recognize:function(a){var h=k({},a);if(!D(this.options.enable,[this,h])){this.reset(),this.state=Zt;return}this.state&(Ve|mn|Zt)&&(this.state=Xn),this.state=this.process(h),this.state&(ge|Je|qe|mn)&&this.tryEmit(h)},process:function(a){},getTouchAction:function(){},reset:function(){}};function ir(a){return a&mn?"cancel":a&qe?"end":a&Je?"move":a&ge?"start":""}function mi(a){return a==Et?"down":a==Pt?"up":a==pt?"left":a==wt?"right":""}function An(a,h){var p=h.manager;return p?p.get(a):a}function Ae(){Ct.apply(this,arguments)}P(Ae,Ct,{defaults:{pointers:1},attrTest:function(a){var h=this.options.pointers;return h===0||a.pointers.length===h},process:function(a){var h=this.state,p=a.eventType,_=h&(ge|Je),w=this.attrTest(a);return _&&(p&Z||!w)?h|mn:_||w?p&z?h|qe:h&ge?h|Je:ge:Zt}});function Ie(){Ae.apply(this,arguments),this.pX=null,this.pY=null}P(Ie,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:Vt},getTouchAction:function(){var a=this.options.direction,h=[];return a&Nt&&h.push(pn),a&Lt&&h.push(Pe),h},directionTest:function(a){var h=this.options,p=!0,_=a.distance,w=a.direction,C=a.deltaX,M=a.deltaY;return w&h.direction||(h.direction&Nt?(w=C===0?at:C<0?pt:wt,p=C!=this.pX,_=Math.abs(a.deltaX)):(w=M===0?at:M<0?Pt:Et,p=M!=this.pY,_=Math.abs(a.deltaY))),a.direction=w,p&&_>h.threshold&&w&h.direction},attrTest:function(a){return Ae.prototype.attrTest.call(this,a)&&(this.state&ge||!(this.state&ge)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var h=mi(a.direction);h&&(a.additionalEvent=this.options.event+h),this._super.emit.call(this,a)}});function gn(){Ae.apply(this,arguments)}P(gn,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[dn]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&ge)},emit:function(a){if(a.scale!==1){var h=a.scale<1?"in":"out";a.additionalEvent=this.options.event+h}this._super.emit.call(this,a)}});function gi(){Ct.apply(this,arguments),this._timer=null,this._input=null}P(gi,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[rs]},process:function(a){var h=this.options,p=a.pointers.length===h.pointers,_=a.distance<h.threshold,w=a.deltaTime>h.time;if(this._input=a,!_||!p||a.eventType&(z|Z)&&!w)this.reset();else if(a.eventType&F)this.reset(),this._timer=g(function(){this.state=Ve,this.tryEmit()},h.time,this);else if(a.eventType&z)return Ve;return Zt},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===Ve&&(a&&a.eventType&z?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=y(),this.manager.emit(this.options.event,this._input)))}});function vi(){Ae.apply(this,arguments)}P(vi,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[dn]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&ge)}});function yi(){Ae.apply(this,arguments)}P(yi,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Lt,pointers:1},getTouchAction:function(){return Ie.prototype.getTouchAction.call(this)},attrTest:function(a){var h=this.options.direction,p;return h&(Nt|Lt)?p=a.overallVelocity:h&Nt?p=a.overallVelocityX:h&Lt&&(p=a.overallVelocityY),this._super.attrTest.call(this,a)&&h&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&v(p)>this.options.velocity&&a.eventType&z},emit:function(a){var h=mi(a.offsetDirection);h&&this.manager.emit(this.options.event+h,a),this.manager.emit(this.options.event,a)}});function $e(){Ct.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}P($e,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pi]},process:function(a){var h=this.options,p=a.pointers.length===h.pointers,_=a.distance<h.threshold,w=a.deltaTime<h.time;if(this.reset(),a.eventType&F&&this.count===0)return this.failTimeout();if(_&&w&&p){if(a.eventType!=z)return this.failTimeout();var C=this.pTime?a.timeStamp-this.pTime<h.interval:!0,M=!this.pCenter||Xe(this.pCenter,a.center)<h.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,!M||!C?this.count=1:this.count+=1,this._input=a;var j=this.count%h.taps;if(j===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Ve,this.tryEmit()},h.interval,this),ge):Ve}return Zt},failTimeout:function(){return this._timer=g(function(){this.state=Zt},this.options.interval,this),Zt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ze(a,h){return h=h||{},h.recognizers=W(h.recognizers,ze.defaults.preset),new Zn(a,h)}ze.VERSION="2.0.7",ze.defaults={domEvents:!1,touchAction:is,enable:!0,inputTarget:null,inputClass:null,preset:[[vi,{enable:!1}],[gn,{enable:!1},["rotate"]],[yi,{direction:Nt}],[Ie,{direction:Nt},["swipe"]],[$e],[$e,{event:"doubletap",taps:2},["tap"]],[gi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Kn=1,se=2;function Zn(a,h){this.options=k({},ze.defaults,h||{}),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=a,this.input=ee(this),this.touchAction=new zt(this,this.options.touchAction),c(this,!0),x(this.options.recognizers,function(p){var _=this.add(new p[0](p[1]));p[2]&&_.recognizeWith(p[2]),p[3]&&_.requireFailure(p[3])},this)}Zn.prototype={set:function(a){return k(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?se:Kn},recognize:function(a){var h=this.session;if(!h.stopped){this.touchAction.preventDefaults(a);var p,_=this.recognizers,w=h.curRecognizer;(!w||w&&w.state&Ve)&&(w=h.curRecognizer=null);for(var C=0;C<_.length;)p=_[C],h.stopped!==se&&(!w||p==w||p.canRecognizeWith(w))?p.recognize(a):p.reset(),!w&&p.state&(ge|Je|qe)&&(w=h.curRecognizer=p),C++}},get:function(a){if(a instanceof Ct)return a;for(var h=this.recognizers,p=0;p<h.length;p++)if(h[p].options.event==a)return h[p];return null},add:function(a){if(m(a,"add",this))return this;var h=this.get(a.options.event);return h&&this.remove(h),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(m(a,"remove",this))return this;if(a=this.get(a),a){var h=this.recognizers,p=ht(h,a);p!==-1&&(h.splice(p,1),this.touchAction.update())}return this},on:function(a,h){if(a!==r&&h!==r){var p=this.handlers;return x(mt(a),function(_){p[_]=p[_]||[],p[_].push(h)}),this}},off:function(a,h){if(a!==r){var p=this.handlers;return x(mt(a),function(_){h?p[_]&&p[_].splice(ht(p[_],h),1):delete p[_]}),this}},emit:function(a,h){this.options.domEvents&&f(a,h);var p=this.handlers[a]&&this.handlers[a].slice();if(!(!p||!p.length)){h.type=a,h.preventDefault=function(){h.srcEvent.preventDefault()};for(var _=0;_<p.length;)p[_](h),_++}},destroy:function(){this.element&&c(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function c(a,h){var p=a.element;if(p.style){var _;x(a.options.cssProps,function(w,C){_=ft(p.style,C),h?(a.oldCssProps[_]=p.style[_],p.style[_]=w):p.style[_]=a.oldCssProps[_]||""}),h||(a.oldCssProps={})}}function f(a,h){var p=n.createEvent("Event");p.initEvent(a,!0,!0),p.gesture=h,h.target.dispatchEvent(p)}k(ze,{INPUT_START:F,INPUT_MOVE:X,INPUT_END:z,INPUT_CANCEL:Z,STATE_POSSIBLE:Xn,STATE_BEGAN:ge,STATE_CHANGED:Je,STATE_ENDED:qe,STATE_RECOGNIZED:Ve,STATE_CANCELLED:mn,STATE_FAILED:Zt,DIRECTION_NONE:at,DIRECTION_LEFT:pt,DIRECTION_RIGHT:wt,DIRECTION_UP:Pt,DIRECTION_DOWN:Et,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Lt,DIRECTION_ALL:Vt,Manager:Zn,Input:$t,TouchAction:zt,TouchInput:hn,MouseInput:We,PointerEventInput:Fe,TouchMouseInput:di,SingleTouchInput:cn,Recognizer:Ct,AttrRecognizer:Ae,Tap:$e,Pan:Ie,Swipe:yi,Pinch:gn,Rotate:vi,Press:gi,on:U,off:R,each:x,merge:$,extend:A,assign:k,inherit:P,bindFn:O,prefixed:ft});var d=typeof t<"u"?t:typeof self<"u"?self:{};d.Hammer=ze,typeof r=="function"&&r.amd?r(function(){return ze}):e.exports?e.exports=ze:t[i]=ze})(window,document,"Hammer")})(sc);var ud=sc.exports;const hd=eo(ud);function so(e){return e*Math.PI/180}function fd(e){return e*180/Math.PI}function dd(e,t,n,i){const r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function pd(e,t,n,i){const r=n-e,s=i-t;return Math.atan2(s,r)}function oc(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}}function oo(e,t){return Math.sqrt(e*e+t*t)}function ac(e,t){const n=oo(e,t);return{x:e/=n,y:t/=n}}class Fr{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 dd(this.x,this.y,t.x,t.y)}angleTo(t){return pd(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}=oc(i,n);this.vx=r,this.vy=s,this.nextFrame()}followAccelerationTo(t,n=.05){const i=this.angleTo(t),{x:r,y:s}=oc(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,l=t.y-this.y;this.vx=o*s,this.vy=l*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(l=>{const u=l.x-this.x,v=l.y-this.y,y=u*s,g=v*s;this.vx+=y,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,l=this.angleTo(t);this.nextFrameSpringTo(new Fr({x:t.x-Math.cos(l)*o,y:t.y-Math.sin(l)*o}),{spring:s,friction:r,gravity:i})}}class md extends Fr{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 kn extends Fr{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 kn({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 md({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),l=Math.sin(o),u=Math.cos(o),v={x:0,y:0},y=s(n,i,l,u,!0),g=s(this.vx,this.vy,l,u,!0),m=s(t.vx,t.vy,l,u,!0),x=g.x-m.x;g.x=((this.mass-t.mass)*g.x+2*t.mass*m.x)/(this.mass+t.mass),m.x=x+g.x;const I=Math.abs(g.x)+Math.abs(m.x),k=this.radius+t.radius-Math.abs(v.x-y.x);v.x+=g.x/I*k,y.x+=m.x/I*k;const A=s(v.x,v.y,l,u,!1),$=s(y.x,y.y,l,u,!1);t.x=this.x+$.x,t.y=this.y+$.y,this.x=this.x+A.x,this.y=this.y+A.y;const P=s(g.x,g.y,l,u,!1),O=s(m.x,m.y,l,u,!1);this.vx=P.x,this.vy=P.y,t.vx=O.x,t.vy=O.y}function s(o,l,u,v,y=!1){return{x:y?o*v+l*u:o*v-l*u,y:y?l*v-o*u:l*v+o*u}}}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 gd{constructor(){}static getFormatKeyNames(t){const n=ad(),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(Fl(t.key)):Array.isArray(t.key)&&(t.key.map(r=>Fl(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(l=>l)}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=l=>{if(l.stopPropagation(),!r&&l.key!=="Control"&&l.key!=="Meta"&&l.key!=="Shift"&&l.key!=="Option"&&l.key!=="Alt"&&s.find(u=>u.toLowerCase()===l.key.toLowerCase())&&this.matchKeyScheme(t,l)){l.preventDefault();const u=n(l);if(typeof u!="function")return;const v=y=>{y.preventDefault(),u(y),i.removeEventListener("keyup",v)};i.addEventListener("keyup",v)}};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 lc=vd("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 vd(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 Vr(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 yd(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function _d(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const Wi={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 ao{__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 cc{__root;__ctx;constructor(t,n){this.__root=t,this.__ctx=n}}class $r{__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(Wi);for(let n=0,i=t.length;n<i;n++){const r=t[n];this[r]=Wi[r].canvas}}__getStyleState(){const t={},n=Object.keys(Wi);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 l=s[o];r.setAttribute(l,n[l])}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(Wi);for(let s=0;s<r.length;s++){const o=Wi[r[s]],l=this[r[s]];if(o.apply){if(l instanceof cc){if(l.__ctx)for(;l.__ctx.__SVGdefs.childNodes.length;){const u=l.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[u]=u,this.__SVGdefs.appendChild(l.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(o.apply,be("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof ao)n.setAttribute(o.apply,be("url(#{id})",{id:l.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==l)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&l.indexOf("rgba")!==-1){const v=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l);n.setAttribute(o.svgAttr,be("rgb({r},{g},{b})",{r:v[1],g:v[2],b:v[3]}));let y=parseFloat(v[4]);const g=this.globalAlpha;g!=null&&(y*=g),n.setAttribute(o.svgAttr+"-opacity",""+y)}else{let u=o.svgAttr;if(r[s]==="globalAlpha"&&(u=t+"-"+o.svgAttr,n.getAttribute(u)))continue;u&&n.setAttribute(u,l)}}}}__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(lc);for(let s=0,o=r.length;s<o;s++){const l=r[s],u=lc[l],v=new RegExp(l,"gi");v.test(n)&&(n=n.replace(v,u))}}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,l=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof l>"u")return;if(s<0)throw new Error("IndexSizeError: The radius provided ("+s+") is negative.");if(o===t&&l===n||t===i&&n===r||s===0){this.lineTo(t,n);return}const u=this.normalize([o-t,l-n]),v=this.normalize([i-t,r-n]);if(u[0]*v[1]===u[1]*v[0]){this.lineTo(t,n);return}const y=u[0]*v[0]+u[1]*v[1],g=Math.acos(Math.abs(y)),m=this.normalize([u[0]+v[0],u[1]+v[1]]),x=s/Math.sin(g/2),I=t+x*m[0],k=n+x*m[1],A=[-u[1],u[0]],$=[v[1],-v[0]],P=function(W){const U=W[0];return W[1]>=0?Math.acos(U):-Math.acos(U)},O=P(A),D=P($);this.lineTo(I+A[0]*s,k+A[1]*s),this.arc(I,k,s,O,D)}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:Vr(this.__ids),x1:t+"px",x2:i+"px",y1:n+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new ao(s,this)}createRadialGradient(t,n,i,r,s,o){const l=this.__createElement("radialGradient",{id:Vr(this.__ids),cx:r+"px",cy:s+"px",r:o+"px",fx:t+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(l),new ao(l,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(),l=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":yd(this.textAlign),"dominant-baseline":_d(this.textBaseline)},!0);l.appendChild(this.__document.createTextNode(t)),this.__currentElement=l,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(s,l))}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 l=t+i*Math.cos(s),u=n+i*Math.sin(s),v=t+i*Math.cos(r),y=n+i*Math.sin(r),g=o?0:1;let m=0,x=s-r;x<0&&(x+=2*Math.PI),o?m=x>Math.PI?0:1:m=x>Math.PI?1:0,this.lineTo(v,y),this.__addPathCommand(be("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:i,ry:i,xAxisRotation:0,largeArcFlag:m,sweepFlag:g,endX:l,endY:u})),this.__currentPosition={x:l,y:u}}clip(){const t=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),i=Vr(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,l=0,u=0,v,y,g,m,x,I,k,A;if(t.length===3)i=t[1],r=t[2],v=n.width,y=n.height,s=v,o=y;else if(t.length===5)i=t[1],r=t[2],s=t[3],o=t[4],v=n.width,y=n.height;else if(t.length===9)l=t[1],u=t[2],v=t[3],y=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 $=this.__closestGroupOrSvg();this.__currentElement;const P="translate("+i+", "+r+")";if(n instanceof $r){if(g=n.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(m=g.childNodes[0];m.childNodes.length;)A=m.childNodes[0].getAttribute("id"),this.__ids[A]=A,this.__SVGdefs.appendChild(m.childNodes[0]);if(x=g.childNodes[1],x){const O=x.getAttribute("transform");let D;O?D=O+" "+P:D=P,x.setAttribute("transform",D),$.appendChild(x)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(I=this.__createElement("image"),I.setAttribute("width",s),I.setAttribute("height",o),I.setAttribute("preserveAspectRatio","none"),(l||u||v!==n.width||y!==n.height)&&(k=this.__document.createElement("canvas"),k.width=s,k.height=o,k.getContext("2d")?.drawImage(n,l,u,v,y,0,0,s,o),n=k),I.setAttribute("transform",P),I.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),$.appendChild(I))}createPattern(t,n){const i=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=Vr(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 $r&&(i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(i)),new cc(i,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}function xd(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 uc={},lo={exports:{}},hc;function bd(){return hc||(hc=1,function(e){(function(t){var n="0.4.0",i="hasOwnProperty",r=/[\.\/]/,s="*",o=function(){},l=function(m,x){return m-x},u,v,y={n:{}},g=function(m,x){var I=v,k=Array.prototype.slice.call(arguments,2),A=g.listeners(m),$=0,P,O=[],D={},W=[];u=m,v=0;for(var U=0,R=A.length;U<R;U++)"zIndex"in A[U]&&(O.push(A[U].zIndex),A[U].zIndex<0&&(D[A[U].zIndex]=A[U]));for(O.sort(l);O[$]<0;)if(P=D[O[$++]],W.push(P.apply(x,k)),v)return v=I,W;for(U=0;U<R;U++)if(P=A[U],"zIndex"in P)if(P.zIndex==O[$]){if(W.push(P.apply(x,k)),v)return v=I,W;do if($++,P=D[O[$]],P&&W.push(P.apply(x,k)),v)return v=I,W;while(P)}else D[P.zIndex]=P;else if(W.push(P.apply(x,k)),v)return v=I,W;return v=I,W.length?W:null};g.listeners=function(m){var x=m.split(r),I=y,k,A,$,P,O,D,W,U,R=[I],rt=[];for(P=0,O=x.length;P<O;P++){for(U=[],D=0,W=R.length;D<W;D++)for(I=R[D].n,A=[I[x[P]],I[s]],$=2;$--;)k=A[$],k&&(U.push(k),rt=rt.concat(k.f||[]));R=U}return rt},g.on=function(m,x){for(var I=m.split(r),k=y,A=0,$=I.length;A<$;A++)k=k.n,!k[I[A]]&&(k[I[A]]={n:{}}),k=k[I[A]];for(k.f=k.f||[],A=0,$=k.f.length;A<$;A++)if(k.f[A]==x)return o;return k.f.push(x),function(P){+P==+P&&(x.zIndex=+P)}},g.stop=function(){v=1},g.nt=function(m){return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(u):u},g.unbind=function(m,x){var I=m.split(r),k,A,$,P,O,D,W,U=[y];for(P=0,O=I.length;P<O;P++)for(D=0;D<U.length;D+=$.length-2){if($=[D,1],k=U[D].n,I[P]!=s)k[I[P]]&&$.push(k[I[P]]);else for(A in k)k[i](A)&&$.push(k[A]);U.splice.apply(U,$)}for(P=0,O=U.length;P<O;P++)for(k=U[P];k.n;){if(x){if(k.f){for(D=0,W=k.f.length;D<W;D++)if(k.f[D]==x){k.f.splice(D,1);break}!k.f.length&&delete k.f}for(A in k.n)if(k.n[i](A)&&k.n[A].f){var R=k.n[A].f;for(D=0,W=R.length;D<W;D++)if(R[D]==x){R.splice(D,1);break}!R.length&&delete k.n[A].f}}else{delete k.f;for(A in k.n)k.n[i](A)&&k.n[A].f&&delete k.n[A].f}k=k.n}},g.once=function(m,x){var I=function(){x.apply(this,arguments),g.unbind(m,I)};return g.on(m,I)},g.version=n,g.toString=function(){return"You are running Eve "+n},e.exports?e.exports=g:t.eve=g})(Wf)}(lo)),lo.exports}(function(e){if(typeof xd=="function")var t=bd();(function(){function n(m){var x=function(I){x.parse(I)};return x.mode="text",x.type=String(m||"html").toLowerCase(),x.textchunk="",x.raw="",x.parse=u,x.on=o,x.event=s,x.end=r,x}function i(m,x,I){m==`
45
+ `&&this.event("newline"),g[this.mode].call(this,m,x,I)}function r(){i.call(this,"eof"),this.event("eof")}function s(m,x,I){typeof t=="function"&&t("elemental."+m+"."+x,null,x,I||"",this.raw);for(var k=this.events&&this.events[m],A=k&&k.length;A--;)try{this.events[m][A](x,I||"",this.raw)}catch{}this.raw=""}function o(m,x){this.events=this.events||{},this.events[m]=this.events[m]||[],this.events[m].push(x)}function l(m,x){return m&&(m.charAt?m.charAt(x):m[x])}function u(m){m=m||Object(m);for(var x=1,I=m.length+1,k,A,$=l(m,0);x<I;x++)k=A,A=$,$=l(m,x),this.raw+=A,i.call(this,A,$,k);this._beforeEnd=function(){i.call(this,"","",A)}}var v=/[\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]/,y=function(){for(var m in this.attr)this.attr.hasOwnProperty(m)&&this.event("attr",m,{value:this.attr[m],tagname:this.tagname,attr:this.attr})},g={text:function(m,x,I){switch(m){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+=m,this.textchunk="";break;default:this.textchunk+=m}},special:function(m,x,I){if(I=="!"&&m=="-"&&x=="-")this.mode="comment start";else{if(this.textchunk=="[CDATA"&&m=="["){this.mode="cdata",this.textchunk="";return}if(m==">"||m=="eof"){this.event("special",this.textchunk),this.mode="text",this.textchunk="";return}this.textchunk+=m}},cdata:function(m,x,I){I=="]"&&m=="]"&&x==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(m=="eof"&&g["cdata end"].call(this),this.textchunk+=m)},"cdata end":function(m,x,I){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(m,x,I){x==">"||m=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(m,x,I){this.mode="text"},comment:function(m,x,I){m=="-"&&I=="-"&&x==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):m=="eof"?this.event("comment",this.textchunk):this.textchunk+=m},"comment end":function(m,x,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(m,x,I){m=="?"&&x==">"?this.mode="declaration end":(m=="eof"&&this.event("comment",this.textchunk),this.textchunk+=m)},"declaration end":function(m,x,I){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(m,x,I){if(m=="eof")this.event("text","<");else if(!v.test(m)){if(this.mode="tag name",m=="/"){this.mode="close tag name start";return}if(m=="!"){this.mode="special",this.textchunk="";return}if(m=="?"){this.mode="declaration";return}g[this.mode].call(this,m,x,I)}},"close tag name start":function(m,x,I){v.test(m)||(this.mode="close tag name",this.tagname="",this.nodename="",g[this.mode].call(this,m,x,I))},"close tag name":function(m,x,I){if(v.test(m))this.tagname=this.nodename;else switch(m){case">":this.event("/tag",this.tagname||this.nodename),this.mode="text";break;default:!this.tagname&&(this.nodename+=m)}},"tag name":function(m,x,I){if(v.test(m))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(m){case">":this.event("tag",this.nodename),this.mode="text";break;default:this.nodename+=m}},"attr start":function(m,x,I){v.test(m)||(this.mode="attr",this.nodename="",g[this.mode].call(this,m,x,I))},attr:function(m,x,I){if(v.test(m)||m=="=")this.attr[this.nodename]="",this.mode="attr value start";else switch(m){case">":this.nodename=="/"?(delete this.attr["/"],this.event("tag",this.tagname,this.attr),y.call(this),this.event("/tag",this.tagname,!0)):(this.nodename&&(this.attr[this.nodename]=""),this.event("tag",this.tagname,this.attr),y.call(this)),this.mode="text";break;default:this.nodename+=m}},"attr value start":function(m,x,I){if(!v.test(m)){if(this.mode="attr value",this.quote=!1,m=="'"||m=='"'){this.quote=m;return}g[this.mode].call(this,m,x,I)}},"attr value":function(m,x,I){if(v.test(m)&&!this.quote)this.mode="attr start";else if(m==">"&&!this.quote)this.event("tag",this.tagname,this.attr),this.mode="text";else switch(m){case'"':case"'":this.quote==m&&I!="\\"&&(this.mode="attr start");break;default:this.attr[this.nodename]+=m}}};n.version="0.2.1",e.elemental=n,e.eve=t})()})(uc);const fc=eo(uc),dc=[1,0,0,1,0,0],pc=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class we{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(t=dc){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(dc),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=Dl("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 si(n)}offset(t=0,n=0){return[t-this.value[4],n-this.value[5]]}clone(){return new we(this.value)}multiply(t){const n=this.value;let i;t instanceof we?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],l=n[1]*i[2]+n[3]*i[3],u=n[0]*i[4]+n[2]*i[5]+n[4],v=n[1]*i[4]+n[3]*i[5]+n[5];return n[0]=r,n[1]=s,n[2]=o,n[3]=l,n[4]=u,n[5]=v,this}inverse(){const t=new we(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,l=n[0]*i,u=i*(n[2]*n[5]-n[3]*n[4]),v=i*(n[1]*n[4]-n[0]*n[5]);return n[0]=r,n[1]=s,n[2]=o,n[3]=l,n[4]=u,n[5]=v,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=so(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=oo(n[0][0],n[0][1]);let i=ac(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=oo(n[1][0],n[1][1]),i=ac(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=fd(Math.acos(s)),r<0&&(t.rotate=360-t.rotate)):t.rotate=so(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=>$l(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 si{value;constructor(t=pc){this.value=Array.from(t)}unit(){return this.value=Array.from(pc),this}fromString(t){const n=Dl("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 we(n)}multiplyMatrix(t){const n=this.value[0],i=this.value[1],r=this.value[2],s=this.value[3],o=this.value[4],l=this.value[5],u=this.value[6],v=this.value[7],y=this.value[8],g=this.value[9],m=this.value[10],x=this.value[11],I=this.value[12],k=this.value[13],A=this.value[14],$=this.value[15],P=t.value[0],O=t.value[1],D=t.value[2],W=t.value[3],U=P*n+O*o+D*y+W*I,R=P*i+O*l+D*g+W*k,rt=P*r+O*u+D*m+W*A,ct=P*s+O*v+D*x+W*$;return new we([U,R,rt,ct,0,0])}multiply(t){const n=new we([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),i=new we([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),r=new we([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),s=new we([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(n),l=this.multiplyMatrix(i),u=this.multiplyMatrix(r),v=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]=l.value[0],this.value[5]=l.value[1],this.value[6]=l.value[2],this.value[7]=l.value[3],this.value[8]=u.value[0],this.value[9]=u.value[1],this.value[10]=u.value[2],this.value[11]=u.value[3],this.value[12]=v.value[0],this.value[13]=v.value[1],this.value[14]=v.value[2],this.value[15]=v.value[3],this}translate(t=0,n=0,i=0){return this.multiply(new si([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 si([t,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1]))}rotate(t,n){const i=so(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 si(o))}toString(){return`matrix3d(${this.value.map(t=>$l(t,6)).join(",")})`}}function zr(e){const t=new we;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,l=r.length;o<l;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 si(s));break}return""}),t}function co(e,t,n,i,r,s){if(typeof r>"u"||typeof s>"u"){const o=e-n,l=t-i;return!o&&!l?0:(180+Math.atan2(-l,-o)*180/Math.PI+360)%360}else return co(e,t,r,s)-co(n,i,r,s)}const Tt=fc.eve,wd=fc.elemental,jr={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 uo(e,t,n){for(var i=(e+"").split(";"),r=/^\s+|\s+$/g,s,o=0,l=i.length;o<l;o++){var u=i[o].split(":");s=u[0].replace(r,"").replace(/[A-Z]/g,function(v){return"-"+v.toLowerCase()}),(!n||s in n)&&(t[s]=u[1].replace(r,""),n&&!n[s]&&(t[s]=parseFloat(t[s])))}}function Ed(e){const t=wd(),n=[],i=[],r={};let s,o,l;const u={};function v(y,g){return function(m,x){const I={type:g||y};n.push(I);for(let k in x)Object.prototype.hasOwnProperty.call(x,k)&&Tt("rappar."+y+".attr."+k,I,x[k],k);Tt("rappar."+y+".attrend",I,x)}}return Tt.on("rappar.polygon.attr.points",function(y){this.path="M"+y+"z",Tt.stop()}),Tt.on("rappar.image.attr.xlink:href",function(y){this.src=y,Tt.stop()}),Tt.on("rappar.path.attr.d",function(y){this.path=y,Tt.stop()}),Tt.on("rappar.*.attr.transform",function(y){this.transform=zr(y).toTransformString(),Tt.stop()}),Tt.on("rappar.*.attr.fill",function(y){var g=y.match(/url\(#([^)]+)\)/),m=this;g&&(g=g[1],r[g]?this.fill=r[g]:Tt.on("rappar.found."+g,function(x){m.fill=x}),Tt.stop())}),Tt.on("rappar.line.attrend",function(y){this.path="M"+[y.x1,y.y1,y.x2,y.y2]}),Tt.on("rappar.*.attrend",function(){for(var y=i.length;y--;)if(i[y]!=this){let m="",x="";for(var g in i[y])g=="transform"?m=i[y].transform:g=="class"&&u["."+i[y][g]]?x=u["."+i[y][g]].join(";")+";"+x:g=="id"&&u["#"+i[y][g]]?x=u["#"+i[y][g]].join(";")+";"+x:typeof this[g]>"u"&&(this[g]=i[y][g]);this.type&&(typeof this.transform>"u"?this.transform=m:this.transform+=m,typeof this.style>"u"?this.style=x:this.style=x+this.style,uo(this.style,this,jr))}}),Tt.on("rappar.*.attr.style",function(y){var g=function(){uo(y,this,jr),Tt.unbind("rappar.*.attrend",g)};Tt.on("rappar.*.attrend",g),Tt.stop()}),Tt.on("rappar.*.attr.*",function(y,g){g in jr&&(this[g]=jr[g]?y:parseFloat(y))}),Tt.on("elemental.tag.circle",v("circle")),Tt.on("elemental.tag.ellipse",v("ellipse")),Tt.on("elemental.tag.polygon",v("polygon","path")),Tt.on("elemental.tag.path",v("path")),Tt.on("elemental.tag.line",v("line","path")),Tt.on("elemental.tag.rect",v("rect")),Tt.on("elemental.tag.image",v("image")),Tt.on("elemental.tag.text",v("text")),Tt.on("elemental.text",function(y){try{const g=td(y);for(let m of g.stylesheet.rules){for(let x of m.selectors)u[x]=[];for(let x of m.declarations)for(let I of m.selectors)u[I].push(`${x.property}:${x.value}`)}}catch{}}),Tt.on("elemental.tag.svg",function(y,g){let m=g.width||0,x=g.height||0;if(!m||!x){const I=g.viewBox.split(/\s+/gi);m=parseFloat(I[2])-parseFloat(I[0]),x=parseFloat(I[3])-parseFloat(I[1])}n.push({type:"viewbox",width:m,height:x})}),Tt.on("rappar.text.attrend",function(){s="",o=this,this["text-anchor"]=this["text-anchor"]||"start"}),Tt.on("elemental.text",function(y,g,m){o&&(s+=m)}),Tt.on("elemental./tag.text",function(){o.text=s,o=null}),Tt.on("elemental.tag.g",function(y,g){var m={};i.push(m);for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(m[x]=g[x],Tt("rappar.g.attr."+x,m,g[x],x));Tt("rappar.g.attrend",m)}),Tt.on("elemental./tag.g",function(y,g){i.pop()}),Tt.on("elemental.tag.linearGradient",function(y,g){l={id:g.id,angle:+(360+co(g.x1,g.y1,g.x2,g.y2,g.x1+100,g.y1)).toFixed(2),stops:[]}}),Tt.on("elemental./tag.linearGradient",function(){for(var y=[l.angle],g,m=0,x=l.stops.length;m<x;m++)g=l.stops[m],m&&m!=x-1?y.push(g.color+":"+g.offset):y.push(g.color);r[l.id]=y.join("-"),Tt("rappar.found."+l.id,null,r[l.id])}),Tt.on("elemental.tag.radialGradient",function(y,g){l={id:g.id,stops:[]}}),Tt.on("elemental./tag.radialGradient",function(){for(var y=[],g,m=0,x=l.stops.length;m<x;m++)g=l.stops[m],m&&m!=x-1?y.push(g.color+":"+g.offset):y.push(g.color);r[l.id]="r"+y.join("-"),Tt("rappar.found."+l.id,null,r[l.id])}),Tt.on("elemental.tag.stop",function(y,g){var m={};g.style&&uo(g.style,m),m.offset=m.offset||g.offset,m.color=m["stop-color"]||g["stop-color"],m.opacity=m["stop-opacity"]||g["stop-opacity"],~(m.offset+"").indexOf("%")?m.offset=parseFloat(m.offset):m.offset=parseFloat(m.offset)*100,m.offset=+m.offset.toFixed(2),l.stops.push(m)}),t(e),t.end(),n}function Cd(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 ho={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Sd=/([astvzqmhlc])([^astvzqmhlc]*)/gi,kd=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Td(e){const t=e.match(kd);return t?t.map(Number):[]}function fo(e){const t=[];return e.replace(Sd,function(n,i,r){let s=i.toLowerCase();for(r=Td(r),s=="m"&&r.length>2&&(t.push([i].concat(r.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(r.length==ho[s])return r.unshift(i),t.push(r);if(r.length<ho[s])throw new Error("malformed path data");t.push([i].concat(r.splice(0,ho[s])))}}),t}function po(e){var t=0,n=0,i=0,r=0;return e.map(function(s){s=s.slice();var o=s[0],l=o.toUpperCase();if(o!=l)switch(s[0]=l,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 u=1;u<s.length;)s[u++]+=i,s[u++]+=r}switch(l){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 qi=Math.PI*2;function mc(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 Pd(e,t,n,i,r,s,o,l,u,v){const y=v*(e-n)/2+u*(t-i)/2,g=-u*(e-n)/2+v*(t-i)/2,m=o*o,x=l*l,I=y*y,k=g*g;let A=m*x-m*k-x*I;A<0&&(A=0),A/=m*k+x*I,A=Math.sqrt(A)*(r===s?-1:1);const $=A*o/l*g,P=A*-l/o*y,O=v*$-u*P+(e+n)/2,D=u*$+v*P+(t+i)/2,W=(y-$)/o,U=(g-P)/l,R=(-y-$)/o,rt=(-g-P)/l,ct=mc(1,0,W,U);let mt=mc(W,U,R,rt);return s===0&&mt>0&&(mt-=qi),s===1&&mt<0&&(mt+=qi),[O,D,ct,mt]}function Id(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 Nd(e,t,n,i,r,s,o,l,u){const v=Math.sin(u*qi/360),y=Math.cos(u*qi/360),g=y*(e-n)/2+v*(t-i)/2,m=-v*(e-n)/2+y*(t-i)/2;if(g===0&&m===0)return[];if(o===0||l===0)return[];o=Math.abs(o),l=Math.abs(l);const x=g*g/(o*o)+m*m/(l*l);x>1&&(o*=Math.sqrt(x),l*=Math.sqrt(x));const I=Pd(e,t,n,i,r,s,o,l,v,y),k=[];let A=I[2],$=I[3];const P=Math.max(Math.ceil(Math.abs($)/(qi/4)),1);$/=P;for(let O=0;O<P;O++)k.push(Id(A,$)),A+=$;return k.map(O=>{for(let D=0;D<O.length;D+=2){let W=O[D+0],U=O[D+1];W*=o,U*=l;const R=y*W-v*U,rt=v*W+y*U;O[D+0]=R+I[0],O[D+1]=rt+I[1]}return O})}function mo(e){for(var t,n=[],i=0,r=0,s=0,o=0,l=null,u=null,v=0,y=0,g=0,m=e.length;g<m;g++){var x=e[g],I=x[0];switch(I){case"M":s=x[1],o=x[2];break;case"A":var k=Nd(v,y,x[6],x[7],x[4],x[5],x[1],x[2],x[3]);if(!k.length)continue;k=k.map(D=>{const[W,U,R,rt,ct,mt,ht,lt]=D;return{x1:R,y1:rt,x2:ct,y2:mt,x:ht,y:lt}});for(var A=0,$;A<k.length;A++)$=k[A],x=["C",$.x1,$.y1,$.x2,$.y2,$.x,$.y],A<k.length-1&&n.push(x);break;case"S":var P=v,O=y;(t=="C"||t=="S")&&(P+=P-i,O+=O-r),x=["C",P,O,x[1],x[2],x[3],x[4]];break;case"T":t=="Q"||t=="T"?(l=v*2-l,u=y*2-u):(l=v,u=y),x=gc(v,y,l,u,x[1],x[2]);break;case"Q":l=x[1],u=x[2],x=gc(v,y,x[1],x[2],x[3],x[4]);break;case"L":x=Gr(v,y,x[1],x[2]);break;case"H":x=Gr(v,y,x[1],y);break;case"V":x=Gr(v,y,v,x[1]);break;case"Z":x=Gr(v,y,s,o);break}t=I,v=x[x.length-2],y=x[x.length-1],x.length>4?(i=x[x.length-4],r=x[x.length-3]):(i=v,r=y),n.push(x)}return n}function Gr(e,t,n,i){return["C",e,t,n,i,n,i]}function gc(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 Od=e=>Array.isArray(e);function oi(e){if(!(this instanceof oi))return new oi(e);this._path=Od(e)?e:fo(e),this._path=po(this._path),this._path=Ad(this._path),this._path=Md(this._path)}oi.prototype.at=function(e,t){return this._walk(e,t).pos},oi.prototype.length=function(){return this._walk(null).length},oi.prototype._walk=function(e,t){let n=[0,0],i=[0,0,0],r=[0,0],s=0;for(let y=0;y<this._path.length;y++){let g=this._path[y];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 m=100;for(let x=0;x<=m;x++){let I=x/m,k=o(g,I),A=l(g,I);if(s+=go(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let $=(s-e)/(s-i[2]),P=[n[0]*(1-$)+i[0]*$,n[1]*(1-$)+i[1]*$];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 m=100;for(let x=0;x<=m;x++){let I=x/m,k=u(g,I),A=v(g,I);if(s+=go(n[0],n[1],k,A),n[0]=k,n[1]=A,typeof e=="number"&&s>=e){let $=(s-e)/(s-i[2]),P=[n[0]*(1-$)+i[0]*$,n[1]*(1-$)+i[1]*$];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+=go(n[0],n[1],g[1],g[2]),n[0]=g[1],n[1]=g[2],typeof e=="number"&&s>=e){let m=(s-e)/(s-i[2]),x=[n[0]*(1-m)+i[0]*m,n[1]*(1-m)+i[1]*m];return{length:s,pos:x}}i[0]=n[0],i[1]=n[1],i[2]=s}}return{length:s,pos:n};function o(y,g){return Math.pow(1-g,3)*r[0]+3*Math.pow(1-g,2)*g*y[1]+3*(1-g)*Math.pow(g,2)*y[3]+Math.pow(g,3)*y[5]}function l(y,g){return Math.pow(1-g,3)*r[1]+3*Math.pow(1-g,2)*g*y[2]+3*(1-g)*Math.pow(g,2)*y[4]+Math.pow(g,3)*y[6]}function u(y,g){return Math.pow(1-g,2)*r[0]+2*(1-g)*g*y[1]+Math.pow(g,2)*y[3]}function v(y,g){return Math.pow(1-g,2)*r[1]+2*(1-g)*g*y[2]+Math.pow(g,2)*y[4]}};function go(e,t,n,i){let r=e-n,s=t-i;return Math.sqrt(r*r+s*s)}function Md(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 l=e[s],u=r[l[0]];u&&(l[0]=u.to,t&&(t[0]===u.to?(n=2*t[u.x+2]-t[u.x],i=2*t[u.x+3]-t[u.x+1]):(n=t[t.length-2],i=t[t.length-1])),l.splice(1,0,n,i)),t=l}return e}function Ad(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 vo=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]=vo(e[n]));return t};function yo(e){const t=yo.ps=yo.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 Yi(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:zd(e,t,n,i),vb:[e,t,n,i].join(" ")}}function vc(e,t,n,i,r,s,o,l,u){const v=1-u,y=v**3,g=v**2,m=u*u,x=m*u,I=y*e+g*3*u*n+v*3*u*u*r+x*o,k=y*t+g*3*u*i+v*3*u*u*s+x*l,A=e+2*u*(n-e)+m*(r-2*n+e),$=t+2*u*(i-t)+m*(s-2*i+t),P=n+2*u*(r-n)+m*(o-2*r+n),O=i+2*u*(s-i)+m*(l-2*s+i),D=v*e+u*n,W=v*t+u*i,U=v*r+u*o,R=v*s+u*l,rt=90-Math.atan2(A-P,$-O)*180/Math.PI;return{x:I,y:k,m:{x:A,y:$},n:{x:P,y:O},start:{x:D,y:W},end:{x:U,y:R},alpha:rt}}function yc(e,t,n,i,r,s,o,l){Array.isArray(e)||(e=[e,t,n,i,r,s,o,l]);const u=bc(...e);return Yi(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function Ld(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Rd(e,t){e=Yi(e),t=Yi(t);const{x:n,y:i,width:r,height:s}=e,{x:o,y:l,width:u,height:v}=t,y=n+r/2,g=i+s/2,m=o+u/2,x=l+v/2;return Math.abs(y-m)<=(r+u)/2||Math.abs(g-x)<=(s+v)/2}function _c(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 xc(e,t,n,i,r,s,o,l,u){u==null&&(u=1),u=Math.max(0,Math.min(u,1));const v=u/2,y=12,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let x=0;for(let I=0;I<y;I++){const k=v*g[I]+v,A=_c(k,e,n,r,o),$=_c(k,t,i,s,l),P=A*A+$*$;x+=m[I]*Math.sqrt(P)}return v*x}function Dd(e,t,n,i,r,s,o,l){if(Math.max(e,n)<Math.min(r,o)||Math.min(e,n)>Math.max(r,o)||Math.max(t,i)<Math.min(s,l)||Math.min(t,i)>Math.max(s,l))return;const u=(e*i-t*n)*(r-o)-(e-n)*(r*l-s*o),v=(e*i-t*n)*(s-l)-(t-i)*(r*l-s*o),y=(e-n)*(s-l)-(t-i)*(r-o);if(!y)return;const g=u/y,m=v/y,x=Number(g.toFixed(2)),I=Number(m.toFixed(2));if(!(x<Number(Math.min(e,n).toFixed(2))||x>Number(Math.max(e,n).toFixed(2))||x<Number(Math.min(r,o).toFixed(2))||x>Number(Math.max(r,o).toFixed(2))||I<Number(Math.min(t,i).toFixed(2))||I>Number(Math.max(t,i).toFixed(2))||I<Number(Math.min(s,l).toFixed(2))||I>Number(Math.max(s,l).toFixed(2))))return{x:g,y:m}}function Fd(e,t,n){const i=yc(e),r=yc(t);if(!Rd(i,r))return n?0:[];const s=xc.apply(0,e),o=xc.apply(0,t),l=Math.ceil(s/8),u=Math.ceil(o/8),v=[],y=[],g={};let m=n?0:[];for(let x=0;x<l+1;x++){const I=vc.apply(0,e.concat(x/l));v.push({x:I.x,y:I.y,t:x/l})}for(let x=0;x<u+1;x++){const I=vc.apply(0,t.concat(x/u));y.push({x:I.x,y:I.y,t:x/u})}for(let x=0;x<l;x++)for(let I=0;I<u;I++){const k=v[x],A=v[x+1],$=y[I],P=y[I+1],O=Math.abs(A.x-k.x)<.001?"y":"x",D=Math.abs(P.x-$.x)<.001?"y":"x",W=Dd(k.x,k.y,A.x,A.y,$.x,$.y,P.x,P.y);if(W&&g[W.x.toFixed(4)]!==W.y.toFixed(4)){g[W.x.toFixed(4)]=W.y.toFixed(4);const U=k.t+Math.abs((W[O]-k[O])/(A[O]-k[O]))*(A.t-k.t),R=$.t+Math.abs((W[D]-$[D])/(P[D]-$[D]))*(P.t-$.t);U>=0&&U<=1&&R>=0&&R<=1&&(n?m++:m.push({x:W.x,y:W.y,t1:U,t2:R}))}}return m}function Vd(e,t,n){let i,r,s,o,l,u,v,y,g,m,x=n?0:[];for(let I=0,k=e.length;I<k;I++){const A=e[I];if(A[0]==="M")i=l=A[1],r=u=A[2];else{A[0]==="C"?(g=[i,r].concat(A.slice(1)),i=g[6],r=g[7]):(g=[i,r,i,r,l,u,l,u],i=l,r=u);for(let $=0,P=t.length;$<P;$++){const O=t[$];if(O[0]==="M")s=v=O[1],o=y=O[2];else{O[0]==="C"?(m=[s,o].concat(O.slice(1)),s=m[6],o=m[7]):(m=[s,o,s,o,v,y,v,y],s=v,o=y);const D=Fd(g,m,n);if(n)x+=D;else{for(let W=0,U=D.length;W<U;W++)D[W].segment1=I,D[W].segment2=$,D[W].bez1=g,D[W].bez2=m;x=x.concat(D)}}}}}return x}function $d(e){const t=yo(e);if(t.bbox)return vo(t.bbox);if(!e)return Yi();let n=0,i=0,r=[],s=[],o=[];for(let m=0,x=e.length;m<x;m++)if(o=e[m],o[0]==="M")n=o[1],i=o[2],r.push(n),s.push(i);else{const I=bc(n,i,o[1],o[2],o[3],o[4],o[5],o[6]);r=r.concat(I.min.x,I.max.x),s=s.concat(I.min.y,I.max.y),n=o[5],i=o[6]}const l=Math.min.apply(0,r),u=Math.min.apply(0,s),v=Math.max.apply(0,r),y=Math.max.apply(0,s),g=Yi(l,u,v-l,y-u);return t.bbox=vo(g),g}function zd(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 bc(e,t,n,i,r,s,o,l){const u=[],v=[[],[]];let y,g,m,x,I,k,A,$;for(let W=0;W<2;++W){if(W===0?(g=6*e-12*n+6*r,y=-3*e+9*n-9*r+3*o,m=3*n-3*e):(g=6*t-12*i+6*s,y=-3*t+9*i-9*s+3*l,m=3*i-3*t),Math.abs(y)<1e-12){if(Math.abs(g)<1e-12)continue;x=-m/g,x>0&&x<1&&u.push(x);continue}A=g*g-4*m*y,$=Math.sqrt(A),!(A<0)&&(I=(-g+$)/(2*y),I>0&&I<1&&u.push(I),k=(-g-$)/(2*y),k>0&&k<1&&u.push(k))}let P=u.length,O;const D=P;for(;P--;)x=u[P],O=1-x,v[0][P]=O*O*O*e+3*O*O*x*n+3*O*x*x*r+x*x*x*o,v[1][P]=O*O*O*t+3*O*O*x*i+3*O*x*x*s+x*x*x*l;return v[0][D]=e,v[1][D]=t,v[0][D+1]=o,v[1][D+1]=l,v[0].length=v[1].length=D+2,{min:{x:Math.min.apply(0,v[0]),y:Math.min.apply(0,v[1])},max:{x:Math.max.apply(0,v[0]),y:Math.max.apply(0,v[1])}}}function jd(e,t,n){const i=$d(e);return!(!Ld(i,t,n)||Vd(e,mo([["M",t,n],["H",i.x2+10]]),1)%2!==1)}const _o=new Map;function wc(e){if(_o.has(e))return _o.get(e);const t=oi(e);return _o.set(e,t),t}function Ec(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function Gd(e,t){return Lr?Ec(e).getTotalLength(t):wc(e).length()}function Bd(e,t){if(Lr)return Ec(e).getPointAtLength(t);{const n=wc(e),[i,r]=n.at(t);return{x:i,y:r}}}let Re=null;function Hd(e,t,n){if(Lr){Re||(Re=document.createElement("canvas").getContext("2d"));const i=new Path2D(e);return Re.isPointInPath(i,t,n)}else return jd(e,t,n)}function Ud(e,t,n,{lineWidth:i=1,lineCap:r="butt",lineJoin:s="miter"}){if(Lr){if(Re||(Re=document.createElement("canvas").getContext("2d")),Re.isPointInStroke){Re.save(),Re.lineWidth=i,Re.lineCap=r,Re.lineJoin=s;const o=new Path2D(e),l=Re.isPointInStroke(o,t,n);return Re.restore(),l}}else return null}class xo{point;constructor(t){this.point=new kn(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new xo({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}}const Cc=xo;class bo extends Cc{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 bo({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 Sc=bo;class wo extends Cc{ctrlPoints=[];constructor(t){super(t),this.ctrlPoints.push(new kn({x:t.c1x,y:t.c1y})),this.ctrlPoints.push(new kn({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 wo({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 Eo=wo;class Xi{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 kn({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=mo(po(fo(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(Eo.fromSVGPathData(s))}return this}static fromSVGPathD(t,n){if(!Cd(t))throw new Error("Not an SVG path!");const i=mo(po(fo(t)));return Xi.fromSVGPathData(i,n)}static fromSVGPathData(t,n){const i=new Xi;for(let s=0,o=t.length;s<o;s++){const l=t[s],u=l[0];if(s==0&&u=="M"){i.setStartPoint(l[1],l[2]);continue}if(s==o-1&&u=="Z"){i.isClosed=!0;continue}i.addLine(new Eo({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}i.normalize();const r=zr(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 l=s[o].x,u=s[o].y;l<t[0]&&(t[0]=l),u<t[1]&&(t[1]=u),l>t[2]&&(t[2]=l),u>t[3]&&(t[3]=u)}}}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 Gd(this.toSVGPathD())}getPointAtLength(t){return Bd(this.toSVGPathD(),t)}isPointInPath(t,n){return Hd(this.toSVGPathD(),t,n)}isPointInStroke(t,n,i={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return Ud(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,l=r.length;o<l;o+=2){const u=r[o],v=r[o+1],[y,g]=t.transformPoint(u,v);s.push(y,g)}return Eo.fromSVGPathData(s)}),this}translate(t,n){const i=new we().translate(t,n);return this.transform(i)}rotate(t,n=0,i=0){const r=new we().rotate(t,n,i);return this.transform(r)}scale(t,n=t,i=0,r=0){const s=new we().scale(t,n,i,r);return this.transform(s)}skew(t,n=0){const i=new we().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 Xi;o.setStartPoint(t,n);const l=360/s;for(let u=0;u<s;u+=1){const v=l*u*Math.PI/180,y=t+2*i*Math.cos(v),g=n+2*i*Math.sin(v);o.addLine(new Sc({x:y,y:g,rx:i,ry:r,xAxisRotate:l*u,largeArcFlag:1,sweepFlag:1})),o.addLine(new Sc({x:t,y:n,rx:i,ry:r,xAxisRotate:l*u,largeArcFlag:1,sweepFlag:1}))}return o.normalize(),o}}const kc=Xi;var Tc={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,l){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},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 l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var u in s)r.d(l,u,function(v){return s[v]}.bind(null,u));return l},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(l){function u(c){if(u.is(c,"function"))return v?c():l.on("raphael.DOMload",c);if(u.is(c,it))return u._engine.create[P](u,c.splice(0,3+u.is(c[0],Q))).add(c);var f=Array.prototype.slice.call(arguments,0);if(u.is(f[f.length-1],"function")){var d=f.pop();return v?d.call(u._engine.create[P](u,f)):l.on("raphael.DOMload",function(){d.call(u._engine.create[P](u,f))})}return u._engine.create[P](u,arguments)}u.version="2.3.0",u.eve=l;var v,y,g=/[, ]+/,m={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},x=/\{(\d+)\}/g,I="hasOwnProperty",k={doc:document,win:window},A={was:Object.prototype[I].call(k.win,"Raphael"),is:k.win.Raphael},$=function(){this.ca=this.customAttributes={}},P="apply",O="concat",D="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,W="",U=" ",R=String,rt="split",ct="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[rt](U),mt={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},ht=R.prototype.toLowerCase,lt=Math,gt=lt.max,ft=lt.min,At=lt.abs,Dt=lt.pow,jt=lt.PI,Q="number",it="array",st=Object.prototype.toString,S=(u._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),E={NaN:1,Infinity:1,"-Infinity":1},b=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,N=lt.round,L=parseFloat,V=parseInt,F=R.prototype.toUpperCase,X=u._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:""},z=u._availableAnimAttrs={blur:Q,"clip-rect":"csv",cx:Q,cy:Q,fill:"colour","fill-opacity":Q,"font-size":Q,height:Q,opacity:Q,path:"path",r:Q,rx:Q,ry:Q,stroke:"colour","stroke-opacity":Q,"stroke-width":Q,transform:"transform",width:Q,x:Q,y:Q},Z=/[\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]*/,at={hs:1,rg:1},pt=/,?([achlmqrstvxz]),?/gi,wt=/([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,Pt=/([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,Et=/(-?\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,Nt=(u._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(c,f){return L(c)-L(f)},Vt=function(c){return c},yt=u._rectPath=function(c,f,d,a,h){return h?[["M",c+h,f],["l",d-2*h,0],["a",h,h,0,0,1,h,h],["l",0,a-2*h],["a",h,h,0,0,1,-h,h],["l",2*h-d,0],["a",h,h,0,0,1,-h,-h],["l",0,2*h-a],["a",h,h,0,0,1,h,-h],["z"]]:[["M",c,f],["l",d,0],["l",0,a],["l",-d,0],["z"]]},Xt=function(c,f,d,a){return a==null&&(a=d),[["M",c,f],["m",0,-a],["a",d,a,0,1,1,0,2*a],["a",d,a,0,1,1,0,-2*a],["z"]]},$t=u._getPath={path:function(c){return c.attr("path")},circle:function(c){var f=c.attrs;return Xt(f.cx,f.cy,f.r)},ellipse:function(c){var f=c.attrs;return Xt(f.cx,f.cy,f.rx,f.ry)},rect:function(c){var f=c.attrs;return yt(f.x,f.y,f.width,f.height,f.r)},image:function(c){var f=c.attrs;return yt(f.x,f.y,f.width,f.height)},text:function(c){var f=c._getBBox();return yt(f.x,f.y,f.width,f.height)},set:function(c){var f=c._getBBox();return yt(f.x,f.y,f.width,f.height)}},ee=u.mapPath=function(c,f){if(!f)return c;var d,a,h,p,_,w,C;for(h=0,_=(c=Yn(c)).length;h<_;h++)for(p=1,w=(C=c[h]).length;p<w;p+=2)d=f.x(C[p],C[p+1]),a=f.y(C[p],C[p+1]),C[p]=d,C[p+1]=a;return c};if(u._g=k,u.type=k.win.SVGAngle||k.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",u.type=="VML"){var Ht,Ee=k.doc.createElement("div");if(Ee.innerHTML='<v:shape adj="1"/>',(Ht=Ee.firstChild).style.behavior="url(#default#VML)",!Ht||typeof Ht.adj!="object")return u.type=W;Ee=null}function fe(c){if(typeof c=="function"||Object(c)!==c)return c;var f=new c.constructor;for(var d in c)c[I](d)&&(f[d]=fe(c[d]));return f}u.svg=!(u.vml=u.type=="VML"),u._Paper=$,u.fn=y=$.prototype=u.prototype,u._id=0,u.is=function(c,f){return(f=ht.call(f))=="finite"?!E[I](+c):f=="array"?c instanceof Array:f=="null"&&c===null||f==typeof c&&c!==null||f=="object"&&c===Object(c)||f=="array"&&Array.isArray&&Array.isArray(c)||st.call(c).slice(8,-1).toLowerCase()==f},u.angle=function(c,f,d,a,h,p){if(h==null){var _=c-d,w=f-a;return _||w?(180+180*lt.atan2(-w,-_)/jt+360)%360:0}return u.angle(c,f,h,p)-u.angle(d,a,h,p)},u.rad=function(c){return c%360*jt/180},u.deg=function(c){return Math.round(180*c/jt%360*1e3)/1e3},u.snapTo=function(c,f,d){if(d=u.is(d,"finite")?d:10,u.is(c,it)){for(var a=c.length;a--;)if(At(c[a]-f)<=d)return c[a]}else{var h=f%(c=+c);if(h<d)return f-h;if(h>c-d)return f-h+c}return f};var Ye,Tn;u.createUUID=(Ye=/[xy]/g,Tn=function(c){var f=16*lt.random()|0;return(c=="x"?f:3&f|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ye,Tn).toUpperCase()}),u.setWindow=function(c){l("raphael.setWindow",u,k.win,c),k.win=c,k.doc=k.win.document,u._engine.initWin&&u._engine.initWin(k.win)};var Ue=function(c){if(u.vml){var f,d=/^\s+|\s+$/g;try{var a=new ActiveXObject("htmlfile");a.write("<body>"),a.close(),f=a.body}catch{f=createPopup().document.body}var h=f.createTextRange();Ue=ce(function(_){try{f.style.color=R(_).replace(d,W);var w=h.queryCommandValue("ForeColor");return"#"+("000000"+(w=(255&w)<<16|65280&w|(16711680&w)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var p=k.doc.createElement("i");p.title="Raphaël Colour Picker",p.style.display="none",k.doc.body.appendChild(p),Ue=ce(function(_){return p.style.color=_,k.doc.defaultView.getComputedStyle(p,W).getPropertyValue("color")})}return Ue(c)},on=function(){return"hsb("+[this.h,this.s,this.b]+")"},an=function(){return"hsl("+[this.h,this.s,this.l]+")"},Xe=function(){return this.hex},Ke=function(c,f,d){if(f==null&&u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c&&(d=c.b,f=c.g,c=c.r),f==null&&u.is(c,"string")){var a=u.getRGB(c);c=a.r,f=a.g,d=a.b}return(c>1||f>1||d>1)&&(c/=255,f/=255,d/=255),[c,f,d]},ui=function(c,f,d,a){var h={r:c*=255,g:f*=255,b:d*=255,hex:u.rgb(c,f,d),toString:Xe};return u.is(a,"finite")&&(h.opacity=a),h};function ce(c,f,d){return function a(){var h=Array.prototype.slice.call(arguments,0),p=h.join("␀"),_=a.cache=a.cache||{},w=a.count=a.count||[];return _[I](p)?(function(C,M){for(var j=0,Y=C.length;j<Y;j++)if(C[j]===M)return C.push(C.splice(j,1)[0])}(w,p),d?d(_[p]):_[p]):(w.length>=1e3&&delete _[w.shift()],w.push(p),_[p]=c[P](f,h),d?d(_[p]):_[p])}}u.color=function(c){var f;return u.is(c,"object")&&"h"in c&&"s"in c&&"b"in c?(f=u.hsb2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):u.is(c,"object")&&"h"in c&&"s"in c&&"l"in c?(f=u.hsl2rgb(c),c.r=f.r,c.g=f.g,c.b=f.b,c.hex=f.hex):(u.is(c,"string")&&(c=u.getRGB(c)),u.is(c,"object")&&"r"in c&&"g"in c&&"b"in c?(f=u.rgb2hsl(c),c.h=f.h,c.s=f.s,c.l=f.l,f=u.rgb2hsb(c),c.v=f.b):(c={hex:"none"}).r=c.g=c.b=c.h=c.s=c.v=c.l=-1),c.toString=Xe,c},u.hsb2rgb=function(c,f,d,a){var h,p,_,w,C;return this.is(c,"object")&&"h"in c&&"s"in c&&"b"in c&&(d=c.b,f=c.s,a=c.o,c=c.h),w=(C=d*f)*(1-At((c=(c*=360)%360/60)%2-1)),h=p=_=d-C,ui(h+=[C,w,0,0,w,C][c=~~c],p+=[w,C,C,w,0,0][c],_+=[0,0,w,C,C,w][c],a)},u.hsl2rgb=function(c,f,d,a){var h,p,_,w,C;return this.is(c,"object")&&"h"in c&&"s"in c&&"l"in c&&(d=c.l,f=c.s,c=c.h),(c>1||f>1||d>1)&&(c/=360,f/=100,d/=100),w=(C=2*f*(d<.5?d:1-d))*(1-At((c=(c*=360)%360/60)%2-1)),h=p=_=d-C/2,ui(h+=[C,w,0,0,w,C][c=~~c],p+=[w,C,C,w,0,0][c],_+=[0,0,w,C,C,w][c],a)},u.rgb2hsb=function(c,f,d){var a,h;return c=(d=Ke(c,f,d))[0],f=d[1],d=d[2],{h:(((h=(a=gt(c,f,d))-ft(c,f,d))==0?null:a==c?(f-d)/h:a==f?(d-c)/h+2:(c-f)/h+4)+360)%6*60/360,s:h==0?0:h/a,b:a,toString:on}},u.rgb2hsl=function(c,f,d){var a,h,p,_;return c=(d=Ke(c,f,d))[0],f=d[1],d=d[2],a=((h=gt(c,f,d))+(p=ft(c,f,d)))/2,{h:(((_=h-p)==0?null:h==c?(f-d)/_:h==f?(d-c)/_+2:(c-f)/_+4)+360)%6*60/360,s:_==0?0:a<.5?_/(2*a):_/(2-2*a),l:a,toString:an}},u._path2string=function(){return this.join(",").replace(pt,"$1")},u._preload=function(c,f){var d=k.doc.createElement("img");d.style.cssText="position:absolute;left:-9999em;top:-9999em",d.onload=function(){f.call(this),this.onload=null,k.doc.body.removeChild(this)},d.onerror=function(){k.doc.body.removeChild(this)},k.doc.body.appendChild(d),d.src=c};function Ze(){return this.hex}function Pn(c,f){for(var d=[],a=0,h=c.length;h-2*!f>a;a+=2){var p=[{x:+c[a-2],y:+c[a-1]},{x:+c[a],y:+c[a+1]},{x:+c[a+2],y:+c[a+3]},{x:+c[a+4],y:+c[a+5]}];f?a?h-4==a?p[3]={x:+c[0],y:+c[1]}:h-2==a&&(p[2]={x:+c[0],y:+c[1]},p[3]={x:+c[2],y:+c[3]}):p[0]={x:+c[h-2],y:+c[h-1]}:h-4==a?p[3]=p[2]:a||(p[0]={x:+c[a],y:+c[a+1]}),d.push(["C",(-p[0].x+6*p[1].x+p[2].x)/6,(-p[0].y+6*p[1].y+p[2].y)/6,(p[1].x+6*p[2].x-p[3].x)/6,(p[1].y+6*p[2].y-p[3].y)/6,p[2].x,p[2].y])}return d}u.getRGB=ce(function(c){if(!c||(c=R(c)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ze};if(c=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Ze};!at[I](c.toLowerCase().substring(0,2))&&c.charAt()!="#"&&(c=Ue(c));var f,d,a,h,p,_,w=c.match(S);return w?(w[2]&&(a=V(w[2].substring(5),16),d=V(w[2].substring(3,5),16),f=V(w[2].substring(1,3),16)),w[3]&&(a=V((p=w[3].charAt(3))+p,16),d=V((p=w[3].charAt(2))+p,16),f=V((p=w[3].charAt(1))+p,16)),w[4]&&(_=w[4][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),w[1].toLowerCase().slice(0,4)=="rgba"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100)),w[5]?(_=w[5][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),(_[0].slice(-3)=="deg"||_[0].slice(-1)=="°")&&(f/=360),w[1].toLowerCase().slice(0,4)=="hsba"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100),u.hsb2rgb(f,d,a,h)):w[6]?(_=w[6][rt](Z),f=L(_[0]),_[0].slice(-1)=="%"&&(f*=2.55),d=L(_[1]),_[1].slice(-1)=="%"&&(d*=2.55),a=L(_[2]),_[2].slice(-1)=="%"&&(a*=2.55),(_[0].slice(-3)=="deg"||_[0].slice(-1)=="°")&&(f/=360),w[1].toLowerCase().slice(0,4)=="hsla"&&(h=L(_[3])),_[3]&&_[3].slice(-1)=="%"&&(h/=100),u.hsl2rgb(f,d,a,h)):((w={r:f,g:d,b:a,toString:Ze}).hex="#"+(16777216|a|d<<8|f<<16).toString(16).slice(1),u.is(h,"finite")&&(w.opacity=h),w)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Ze}},u),u.hsb=ce(function(c,f,d){return u.hsb2rgb(c,f,d).hex}),u.hsl=ce(function(c,f,d){return u.hsl2rgb(c,f,d).hex}),u.rgb=ce(function(c,f,d){function a(h){return h+.5|0}return"#"+(16777216|a(d)|a(f)<<8|a(c)<<16).toString(16).slice(1)}),u.getColor=function(c){var f=this.getColor.start=this.getColor.start||{h:0,s:1,b:c||.75},d=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})),d.hex},u.getColor.reset=function(){delete this.start},u.parsePathString=function(c){if(!c)return null;var f=Te(c);if(f.arr)return me(f.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},a=[];return u.is(c,it)&&u.is(c[0],it)&&(a=me(c)),a.length||R(c).replace(wt,function(h,p,_){var w=[],C=p.toLowerCase();if(_.replace(Et,function(M,j){j&&w.push(+j)}),C=="m"&&w.length>2&&(a.push([p][O](w.splice(0,2))),C="l",p=p=="m"?"l":"L"),C=="r")a.push([p][O](w));else for(;w.length>=d[C]&&(a.push([p][O](w.splice(0,d[C]))),d[C]););}),a.toString=u._path2string,f.arr=me(a),a},u.parseTransformString=ce(function(c){if(!c)return null;var f=[];return u.is(c,it)&&u.is(c[0],it)&&(f=me(c)),f.length||R(c).replace(Pt,function(d,a,h){var p=[];ht.call(a),h.replace(Et,function(_,w){w&&p.push(+w)}),f.push([a][O](p))}),f.toString=u._path2string,f},this,function(c){if(!c)return c;for(var f=[],d=0;d<c.length;d++){for(var a=[],h=0;h<c[d].length;h++)a.push(c[d][h]);f.push(a)}return f});var Te=function(c){var f=Te.ps=Te.ps||{};return f[c]?f[c].sleep=100:f[c]={sleep:100},setTimeout(function(){for(var d in f)f[I](d)&&d!=c&&(f[d].sleep--,!f[d].sleep&&delete f[d])}),f[c]};function We(c,f,d,a,h){return c*(c*(-3*f+9*d-9*a+3*h)+6*f-12*d+6*a)-3*f+3*d}function Me(c,f,d,a,h,p,_,w,C){C==null&&(C=1);for(var M=(C=C>1?1:C<0?0:C)/2,j=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Y=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],H=0,G=0;G<12;G++){var K=M*j[G]+M,tt=We(K,c,d,h,_),J=We(K,f,a,p,w),q=tt*tt+J*J;H+=Y[G]*lt.sqrt(q)}return M*H}function qn(c,f,d,a,h,p,_,w){if(!(gt(c,d)<ft(h,_)||ft(c,d)>gt(h,_)||gt(f,a)<ft(p,w)||ft(f,a)>gt(p,w))){var C=(c-d)*(p-w)-(f-a)*(h-_);if(C){var M=((c*a-f*d)*(h-_)-(c-d)*(h*w-p*_))/C,j=((c*a-f*d)*(p-w)-(f-a)*(h*w-p*_))/C,Y=+M.toFixed(2),H=+j.toFixed(2);if(!(Y<+ft(c,d).toFixed(2)||Y>+gt(c,d).toFixed(2)||Y<+ft(h,_).toFixed(2)||Y>+gt(h,_).toFixed(2)||H<+ft(f,a).toFixed(2)||H>+gt(f,a).toFixed(2)||H<+ft(p,w).toFixed(2)||H>+gt(p,w).toFixed(2)))return{x:M,y:j}}}}function ln(c,f,d){var a=u.bezierBBox(c),h=u.bezierBBox(f);if(!u.isBBoxIntersect(a,h))return d?0:[];for(var p=Me.apply(0,c),_=Me.apply(0,f),w=gt(~~(p/5),1),C=gt(~~(_/5),1),M=[],j=[],Y={},H=d?0:[],G=0;G<w+1;G++){var K=u.findDotsAtSegment.apply(u,c.concat(G/w));M.push({x:K.x,y:K.y,t:G/w})}for(G=0;G<C+1;G++)K=u.findDotsAtSegment.apply(u,f.concat(G/C)),j.push({x:K.x,y:K.y,t:G/C});for(G=0;G<w;G++)for(var tt=0;tt<C;tt++){var J=M[G],q=M[G+1],ut=j[tt],et=j[tt+1],ot=At(q.x-J.x)<.001?"y":"x",nt=At(et.x-ut.x)<.001?"y":"x",St=qn(J.x,J.y,q.x,q.y,ut.x,ut.y,et.x,et.y);if(St){if(Y[St.x.toFixed(4)]==St.y.toFixed(4))continue;Y[St.x.toFixed(4)]=St.y.toFixed(4);var bt=J.t+At((St[ot]-J[ot])/(q[ot]-J[ot]))*(q.t-J.t),kt=ut.t+At((St[nt]-ut[nt])/(et[nt]-ut[nt]))*(et.t-ut.t);bt>=0&&bt<=1.001&&kt>=0&&kt<=1.001&&(d?H++:H.push({x:St.x,y:St.y,t1:ft(bt,1),t2:ft(kt,1)}))}}return H}function In(c,f,d){c=u._path2curve(c),f=u._path2curve(f);for(var a,h,p,_,w,C,M,j,Y,H,G=d?0:[],K=0,tt=c.length;K<tt;K++){var J=c[K];if(J[0]=="M")a=w=J[1],h=C=J[2];else{J[0]=="C"?(Y=[a,h].concat(J.slice(1)),a=Y[6],h=Y[7]):(Y=[a,h,a,h,w,C,w,C],a=w,h=C);for(var q=0,ut=f.length;q<ut;q++){var et=f[q];if(et[0]=="M")p=M=et[1],_=j=et[2];else{et[0]=="C"?(H=[p,_].concat(et.slice(1)),p=H[6],_=H[7]):(H=[p,_,p,_,M,j,M,j],p=M,_=j);var ot=ln(Y,H,d);if(d)G+=ot;else{for(var nt=0,St=ot.length;nt<St;nt++)ot[nt].segment1=K,ot[nt].segment2=q,ot[nt].bez1=Y,ot[nt].bez2=H;G=G.concat(ot)}}}}}return G}u.findDotsAtSegment=function(c,f,d,a,h,p,_,w,C){var M=1-C,j=Dt(M,3),Y=Dt(M,2),H=C*C,G=H*C,K=j*c+3*Y*C*d+3*M*C*C*h+G*_,tt=j*f+3*Y*C*a+3*M*C*C*p+G*w,J=c+2*C*(d-c)+H*(h-2*d+c),q=f+2*C*(a-f)+H*(p-2*a+f),ut=d+2*C*(h-d)+H*(_-2*h+d),et=a+2*C*(p-a)+H*(w-2*p+a),ot=M*c+C*d,nt=M*f+C*a,St=M*h+C*_,bt=M*p+C*w,kt=90-180*lt.atan2(J-ut,q-et)/jt;return(J>ut||q<et)&&(kt+=180),{x:K,y:tt,m:{x:J,y:q},n:{x:ut,y:et},start:{x:ot,y:nt},end:{x:St,y:bt},alpha:kt}},u.bezierBBox=function(c,f,d,a,h,p,_,w){u.is(c,"array")||(c=[c,f,d,a,h,p,_,w]);var C=hn.apply(null,c);return{x:C.min.x,y:C.min.y,x2:C.max.x,y2:C.max.y,width:C.max.x-C.min.x,height:C.max.y-C.min.y}},u.isPointInsideBBox=function(c,f,d){return f>=c.x&&f<=c.x2&&d>=c.y&&d<=c.y2},u.isBBoxIntersect=function(c,f){var d=u.isPointInsideBBox;return d(f,c.x,c.y)||d(f,c.x2,c.y)||d(f,c.x,c.y2)||d(f,c.x2,c.y2)||d(c,f.x,f.y)||d(c,f.x2,f.y)||d(c,f.x,f.y2)||d(c,f.x2,f.y2)||(c.x<f.x2&&c.x>f.x||f.x<c.x2&&f.x>c.x)&&(c.y<f.y2&&c.y>f.y||f.y<c.y2&&f.y>c.y)},u.pathIntersection=function(c,f){return In(c,f)},u.pathIntersectionNumber=function(c,f){return In(c,f,1)},u.isPointInsidePath=function(c,f,d){var a=u.pathBBox(c);return u.isPointInsideBBox(a,f,d)&&In(c,[["M",f,d],["H",a.x2+10]],1)%2==1},u._removedFactory=function(c){return function(){l("raphael.log",null,"Raphaël: you are calling to method “"+c+"” of removed object",c)}};var Fe=u.pathBBox=function(c){var f=Te(c);if(f.bbox)return fe(f.bbox);if(!c)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var d,a=0,h=0,p=[],_=[],w=0,C=(c=Yn(c)).length;w<C;w++)if((d=c[w])[0]=="M")a=d[1],h=d[2],p.push(a),_.push(h);else{var M=hn(a,h,d[1],d[2],d[3],d[4],d[5],d[6]);p=p[O](M.min.x,M.max.x),_=_[O](M.min.y,M.max.y),a=d[5],h=d[6]}var j=ft[P](0,p),Y=ft[P](0,_),H=gt[P](0,p),G=gt[P](0,_),K=H-j,tt=G-Y,J={x:j,y:Y,x2:H,y2:G,width:K,height:tt,cx:j+K/2,cy:Y+tt/2};return f.bbox=fe(J),J},me=function(c){var f=fe(c);return f.toString=u._path2string,f},Zr=u._pathToRelative=function(c){var f=Te(c);if(f.rel)return me(f.rel);u.is(c,it)&&u.is(c&&c[0],it)||(c=u.parsePathString(c));var d=[],a=0,h=0,p=0,_=0,w=0;c[0][0]=="M"&&(p=a=c[0][1],_=h=c[0][2],w++,d.push(["M",a,h]));for(var C=w,M=c.length;C<M;C++){var j=d[C]=[],Y=c[C];if(Y[0]!=ht.call(Y[0]))switch(j[0]=ht.call(Y[0]),j[0]){case"a":j[1]=Y[1],j[2]=Y[2],j[3]=Y[3],j[4]=Y[4],j[5]=Y[5],j[6]=+(Y[6]-a).toFixed(3),j[7]=+(Y[7]-h).toFixed(3);break;case"v":j[1]=+(Y[1]-h).toFixed(3);break;case"m":p=Y[1],_=Y[2];default:for(var H=1,G=Y.length;H<G;H++)j[H]=+(Y[H]-(H%2?a:h)).toFixed(3)}else{j=d[C]=[],Y[0]=="m"&&(p=Y[1]+a,_=Y[2]+h);for(var K=0,tt=Y.length;K<tt;K++)d[C][K]=Y[K]}var J=d[C].length;switch(d[C][0]){case"z":a=p,h=_;break;case"h":a+=+d[C][J-1];break;case"v":h+=+d[C][J-1];break;default:a+=+d[C][J-2],h+=+d[C][J-1]}}return d.toString=u._path2string,f.rel=me(d),d},Nn=u._pathToAbsolute=function(c){var f=Te(c);if(f.abs)return me(f.abs);if(u.is(c,it)&&u.is(c&&c[0],it)||(c=u.parsePathString(c)),!c||!c.length)return[["M",0,0]];var d=[],a=0,h=0,p=0,_=0,w=0;c[0][0]=="M"&&(p=a=+c[0][1],_=h=+c[0][2],w++,d[0]=["M",a,h]);for(var C,M,j=c.length==3&&c[0][0]=="M"&&c[1][0].toUpperCase()=="R"&&c[2][0].toUpperCase()=="Z",Y=w,H=c.length;Y<H;Y++){if(d.push(C=[]),(M=c[Y])[0]!=F.call(M[0]))switch(C[0]=F.call(M[0]),C[0]){case"A":C[1]=M[1],C[2]=M[2],C[3]=M[3],C[4]=M[4],C[5]=M[5],C[6]=+(M[6]+a),C[7]=+(M[7]+h);break;case"V":C[1]=+M[1]+h;break;case"H":C[1]=+M[1]+a;break;case"R":for(var G=[a,h][O](M.slice(1)),K=2,tt=G.length;K<tt;K++)G[K]=+G[K]+a,G[++K]=+G[K]+h;d.pop(),d=d[O](Pn(G,j));break;case"M":p=+M[1]+a,_=+M[2]+h;default:for(K=1,tt=M.length;K<tt;K++)C[K]=+M[K]+(K%2?a:h)}else if(M[0]=="R")G=[a,h][O](M.slice(1)),d.pop(),d=d[O](Pn(G,j)),C=["R"][O](M.slice(-2));else for(var J=0,q=M.length;J<q;J++)C[J]=M[J];switch(C[0]){case"Z":a=p,h=_;break;case"H":a=C[1];break;case"V":h=C[1];break;case"M":p=C[C.length-2],_=C[C.length-1];default:a=C[C.length-2],h=C[C.length-1]}}return d.toString=u._path2string,f.abs=me(d),d},cn=function(c,f,d,a){return[c,f,d,a,d,a]},Qe=function(c,f,d,a,h,p){return[1/3*c+2/3*d,1/3*f+2/3*a,1/3*h+2/3*d,1/3*p+2/3*a,h,p]},hi=function(c,f,d,a,h,p,_,w,C,M){var j,Y=120*jt/180,H=jt/180*(+h||0),G=[],K=ce(function(Jc,tu,ls){return{x:Jc*lt.cos(ls)-tu*lt.sin(ls),y:Jc*lt.sin(ls)+tu*lt.cos(ls)}});if(M)bt=M[0],kt=M[1],nt=M[2],St=M[3];else{c=(j=K(c,f,-H)).x,f=j.y,w=(j=K(w,C,-H)).x,C=j.y;var tt=(c-w)/2,J=(f-C)/2,q=tt*tt/(d*d)+J*J/(a*a);q>1&&(d*=q=lt.sqrt(q),a*=q);var ut=d*d,et=a*a,ot=(p==_?-1:1)*lt.sqrt(At((ut*et-ut*J*J-et*tt*tt)/(ut*J*J+et*tt*tt))),nt=ot*d*J/a+(c+w)/2,St=ot*-a*tt/d+(f+C)/2,bt=lt.asin(((f-St)/a).toFixed(9)),kt=lt.asin(((C-St)/a).toFixed(9));(bt=c<nt?jt-bt:bt)<0&&(bt=2*jt+bt),(kt=w<nt?jt-kt:kt)<0&&(kt=2*jt+kt),_&&bt>kt&&(bt-=2*jt),!_&&kt>bt&&(kt-=2*jt)}var _i=kt-bt;if(At(_i)>Y){var rr=kt,Ne=w,tn=C;kt=bt+Y*(_&&kt>bt?1:-1),w=nt+d*lt.cos(kt),C=St+a*lt.sin(kt),G=hi(w,C,d,a,h,0,_,Ne,tn,[kt,rr,nt,St])}_i=kt-bt;var xi=lt.cos(bt),bi=lt.sin(bt),os=lt.cos(kt),vn=lt.sin(kt),Qn=lt.tan(_i/4),as=4/3*d*Qn,Yc=4/3*a*Qn,Xc=[c,f],wi=[c+as*bi,f-Yc*xi],Kc=[w+as*vn,C-Yc*os],Zc=[w,C];if(wi[0]=2*Xc[0]-wi[0],wi[1]=2*Xc[1]-wi[1],M)return[wi,Kc,Zc][O](G);for(var Qc=[],Ln=0,R0=(G=[wi,Kc,Zc][O](G).join()[rt](",")).length;Ln<R0;Ln++)Qc[Ln]=Ln%2?K(G[Ln-1],G[Ln],H).y:K(G[Ln],G[Ln+1],H).x;return Qc},un=function(c,f,d,a,h,p,_,w,C){var M=1-C;return{x:Dt(M,3)*c+3*Dt(M,2)*C*d+3*M*C*C*h+Dt(C,3)*_,y:Dt(M,3)*f+3*Dt(M,2)*C*a+3*M*C*C*p+Dt(C,3)*w}},hn=ce(function(c,f,d,a,h,p,_,w){var C,M=h-2*d+c-(_-2*h+d),j=2*(d-c)-2*(h-d),Y=c-d,H=(-j+lt.sqrt(j*j-4*M*Y))/2/M,G=(-j-lt.sqrt(j*j-4*M*Y))/2/M,K=[f,w],tt=[c,_];return At(H)>"1e12"&&(H=.5),At(G)>"1e12"&&(G=.5),H>0&&H<1&&(C=un(c,f,d,a,h,p,_,w,H),tt.push(C.x),K.push(C.y)),G>0&&G<1&&(C=un(c,f,d,a,h,p,_,w,G),tt.push(C.x),K.push(C.y)),M=p-2*a+f-(w-2*p+a),Y=f-a,H=(-(j=2*(a-f)-2*(p-a))+lt.sqrt(j*j-4*M*Y))/2/M,G=(-j-lt.sqrt(j*j-4*M*Y))/2/M,At(H)>"1e12"&&(H=.5),At(G)>"1e12"&&(G=.5),H>0&&H<1&&(C=un(c,f,d,a,h,p,_,w,H),tt.push(C.x),K.push(C.y)),G>0&&G<1&&(C=un(c,f,d,a,h,p,_,w,G),tt.push(C.x),K.push(C.y)),{min:{x:ft[P](0,tt),y:ft[P](0,K)},max:{x:gt[P](0,tt),y:gt[P](0,K)}}}),Yn=u._path2curve=ce(function(c,f){var d=!f&&Te(c);if(!f&&d.curve)return me(d.curve);for(var a=Nn(c),h=f&&Nn(f),p={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},_={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w=function(ot,nt,St){var bt,kt;if(!ot)return["C",nt.x,nt.y,nt.x,nt.y,nt.x,nt.y];switch(!(ot[0]in{T:1,Q:1})&&(nt.qx=nt.qy=null),ot[0]){case"M":nt.X=ot[1],nt.Y=ot[2];break;case"A":ot=["C"][O](hi[P](0,[nt.x,nt.y][O](ot.slice(1))));break;case"S":St=="C"||St=="S"?(bt=2*nt.x-nt.bx,kt=2*nt.y-nt.by):(bt=nt.x,kt=nt.y),ot=["C",bt,kt][O](ot.slice(1));break;case"T":St=="Q"||St=="T"?(nt.qx=2*nt.x-nt.qx,nt.qy=2*nt.y-nt.qy):(nt.qx=nt.x,nt.qy=nt.y),ot=["C"][O](Qe(nt.x,nt.y,nt.qx,nt.qy,ot[1],ot[2]));break;case"Q":nt.qx=ot[1],nt.qy=ot[2],ot=["C"][O](Qe(nt.x,nt.y,ot[1],ot[2],ot[3],ot[4]));break;case"L":ot=["C"][O](cn(nt.x,nt.y,ot[1],ot[2]));break;case"H":ot=["C"][O](cn(nt.x,nt.y,ot[1],nt.y));break;case"V":ot=["C"][O](cn(nt.x,nt.y,nt.x,ot[1]));break;case"Z":ot=["C"][O](cn(nt.x,nt.y,nt.X,nt.Y))}return ot},C=function(ot,nt){if(ot[nt].length>7){ot[nt].shift();for(var St=ot[nt];St.length;)j[nt]="A",h&&(Y[nt]="A"),ot.splice(nt++,0,["C"][O](St.splice(0,6)));ot.splice(nt,1),tt=gt(a.length,h&&h.length||0)}},M=function(ot,nt,St,bt,kt){ot&&nt&&ot[kt][0]=="M"&&nt[kt][0]!="M"&&(nt.splice(kt,0,["M",bt.x,bt.y]),St.bx=0,St.by=0,St.x=ot[kt][1],St.y=ot[kt][2],tt=gt(a.length,h&&h.length||0))},j=[],Y=[],H="",G="",K=0,tt=gt(a.length,h&&h.length||0);K<tt;K++){a[K]&&(H=a[K][0]),H!="C"&&(j[K]=H,K&&(G=j[K-1])),a[K]=w(a[K],p,G),j[K]!="A"&&H=="C"&&(j[K]="C"),C(a,K),h&&(h[K]&&(H=h[K][0]),H!="C"&&(Y[K]=H,K&&(G=Y[K-1])),h[K]=w(h[K],_,G),Y[K]!="A"&&H=="C"&&(Y[K]="C"),C(h,K)),M(a,h,p,_,K),M(h,a,_,p,K);var J=a[K],q=h&&h[K],ut=J.length,et=h&&q.length;p.x=J[ut-2],p.y=J[ut-1],p.bx=L(J[ut-4])||p.x,p.by=L(J[ut-3])||p.y,_.bx=h&&(L(q[et-4])||_.x),_.by=h&&(L(q[et-3])||_.y),_.x=h&&q[et-2],_.y=h&&q[et-1]}return h||(d.curve=me(a)),h?[a,h]:a},null,me),fi=(u._parseDots=ce(function(c){for(var f=[],d=0,a=c.length;d<a;d++){var h={},p=c[d].match(/^([^:]*):?([\d\.]*)/);if(h.color=u.getRGB(p[1]),h.color.error)return null;h.opacity=h.color.opacity,h.color=h.color.hex,p[2]&&(h.offset=p[2]+"%"),f.push(h)}for(d=1,a=f.length-1;d<a;d++)if(!f[d].offset){for(var _=L(f[d-1].offset||0),w=0,C=d+1;C<a;C++)if(f[C].offset){w=f[C].offset;break}w||(w=100,C=a);for(var M=((w=L(w))-_)/(C-d+1);d<C;d++)_+=M,f[d].offset=_+"%"}return f}),u._tear=function(c,f){c==f.top&&(f.top=c.prev),c==f.bottom&&(f.bottom=c.next),c.next&&(c.next.prev=c.prev),c.prev&&(c.prev.next=c.next)}),Qr=(u._tofront=function(c,f){f.top!==c&&(fi(c,f),c.next=null,c.prev=f.top,f.top.next=c,f.top=c)},u._toback=function(c,f){f.bottom!==c&&(fi(c,f),c.next=f.bottom,c.prev=null,f.bottom.prev=c,f.bottom=c)},u._insertafter=function(c,f,d){fi(c,d),f==d.top&&(d.top=c),f.next&&(f.next.prev=c),c.next=f.next,c.prev=f,f.next=c},u._insertbefore=function(c,f,d){fi(c,d),f==d.bottom&&(d.bottom=c),f.prev&&(f.prev.next=c),c.prev=f.prev,f.prev=c,c.next=f},u.toMatrix=function(c,f){var d=Fe(c),a={_:{transform:W},getBBox:function(){return d}};return di(a,f),a.matrix}),di=(u.transformPath=function(c,f){return ee(c,Qr(c,f))},u._extractTransform=function(c,f){if(f==null)return c._.transform;f=R(f).replace(/\.{3}|\u2026/g,c._.transform||W);var d,a,h=u.parseTransformString(f),p=0,_=1,w=1,C=c._,M=new fn;if(C.transform=h||[],h)for(var j=0,Y=h.length;j<Y;j++){var H,G,K,tt,J,q=h[j],ut=q.length,et=R(q[0]).toLowerCase(),ot=q[0]!=et,nt=ot?M.invert():0;et=="t"&&ut==3?ot?(H=nt.x(0,0),G=nt.y(0,0),K=nt.x(q[1],q[2]),tt=nt.y(q[1],q[2]),M.translate(K-H,tt-G)):M.translate(q[1],q[2]):et=="r"?ut==2?(J=J||c.getBBox(1),M.rotate(q[1],J.x+J.width/2,J.y+J.height/2),p+=q[1]):ut==4&&(ot?(K=nt.x(q[2],q[3]),tt=nt.y(q[2],q[3]),M.rotate(q[1],K,tt)):M.rotate(q[1],q[2],q[3]),p+=q[1]):et=="s"?ut==2||ut==3?(J=J||c.getBBox(1),M.scale(q[1],q[ut-1],J.x+J.width/2,J.y+J.height/2),_*=q[1],w*=q[ut-1]):ut==5&&(ot?(K=nt.x(q[3],q[4]),tt=nt.y(q[3],q[4]),M.scale(q[1],q[2],K,tt)):M.scale(q[1],q[2],q[3],q[4]),_*=q[1],w*=q[2]):et=="m"&&ut==7&&M.add(q[1],q[2],q[3],q[4],q[5],q[6]),C.dirtyT=1,c.matrix=M}c.matrix=M,C.sx=_,C.sy=w,C.deg=p,C.dx=d=M.e,C.dy=a=M.f,_==1&&w==1&&!p&&C.bbox?(C.bbox.x+=+d,C.bbox.y+=+a):C.dirtyT=1}),Jr=function(c){var f=c[0];switch(f.toLowerCase()){case"t":return[f,0,0];case"m":return[f,1,0,0,1,0,0];case"r":return c.length==4?[f,0,c[2],c[3]]:[f,0];case"s":return c.length==5?[f,1,1,c[3],c[4]]:c.length==3?[f,1,1]:[f,1]}},ts=u._equaliseTransform=function(c,f){f=R(f).replace(/\.{3}|\u2026/g,c),c=u.parseTransformString(c)||[],f=u.parseTransformString(f)||[];for(var d,a,h,p,_=gt(c.length,f.length),w=[],C=[],M=0;M<_;M++){if(h=c[M]||Jr(f[M]),p=f[M]||Jr(h),h[0]!=p[0]||h[0].toLowerCase()=="r"&&(h[2]!=p[2]||h[3]!=p[3])||h[0].toLowerCase()=="s"&&(h[3]!=p[3]||h[4]!=p[4]))return;for(w[M]=[],C[M]=[],d=0,a=gt(h.length,p.length);d<a;d++)d in h&&(w[M][d]=h[d]),d in p&&(C[M][d]=p[d])}return{from:w,to:C}};function fn(c,f,d,a,h,p){c!=null?(this.a=+c,this.b=+f,this.c=+d,this.d=+a,this.e=+h,this.f=+p):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}u._getContainer=function(c,f,d,a){var h;if((h=a!=null||u.is(c,"object")?c:k.doc.getElementById(c))!=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:d}:{container:1,x:c,y:f,width:d,height:a}},u.pathToRelative=Zr,u._engine={},u.path2curve=Yn,u.matrix=function(c,f,d,a,h,p){return new fn(c,f,d,a,h,p)},function(c){function f(a){return a[0]*a[0]+a[1]*a[1]}function d(a){var h=lt.sqrt(f(a));a[0]&&(a[0]/=h),a[1]&&(a[1]/=h)}c.add=function(a,h,p,_,w,C){var M,j,Y,H,G=[[],[],[]],K=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],tt=[[a,p,w],[h,_,C],[0,0,1]];for(a&&a instanceof fn&&(tt=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]),M=0;M<3;M++)for(j=0;j<3;j++){for(H=0,Y=0;Y<3;Y++)H+=K[M][Y]*tt[Y][j];G[M][j]=H}this.a=G[0][0],this.b=G[1][0],this.c=G[0][1],this.d=G[1][1],this.e=G[0][2],this.f=G[1][2]},c.invert=function(){var a=this,h=a.a*a.d-a.b*a.c;return new fn(a.d/h,-a.b/h,-a.c/h,a.a/h,(a.c*a.f-a.d*a.e)/h,(a.b*a.e-a.a*a.f)/h)},c.clone=function(){return new fn(this.a,this.b,this.c,this.d,this.e,this.f)},c.translate=function(a,h){this.add(1,0,0,1,a,h)},c.scale=function(a,h,p,_){h==null&&(h=a),(p||_)&&this.add(1,0,0,1,p,_),this.add(a,0,0,h,0,0),(p||_)&&this.add(1,0,0,1,-p,-_)},c.rotate=function(a,h,p){a=u.rad(a),h=h||0,p=p||0;var _=+lt.cos(a).toFixed(9),w=+lt.sin(a).toFixed(9);this.add(_,w,-w,_,h,p),this.add(1,0,0,1,-h,-p)},c.x=function(a,h){return a*this.a+h*this.c+this.e},c.y=function(a,h){return a*this.b+h*this.d+this.f},c.get=function(a){return+this[R.fromCharCode(97+a)].toFixed(4)},c.toString=function(){return u.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()},c.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')"},c.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},c.split=function(){var a={};a.dx=this.e,a.dy=this.f;var h=[[this.a,this.c],[this.b,this.d]];a.scalex=lt.sqrt(f(h[0])),d(h[0]),a.shear=h[0][0]*h[1][0]+h[0][1]*h[1][1],h[1]=[h[1][0]-h[0][0]*a.shear,h[1][1]-h[0][1]*a.shear],a.scaley=lt.sqrt(f(h[1])),d(h[1]),a.shear/=a.scaley;var p=-h[0][1],_=h[1][1];return _<0?(a.rotate=u.deg(lt.acos(_)),p<0&&(a.rotate=360-a.rotate)):a.rotate=u.deg(lt.asin(p)),a.isSimple=!(+a.shear.toFixed(9)||a.scalex.toFixed(9)!=a.scaley.toFixed(9)&&a.rotate),a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate,a.noRotation=!+a.shear.toFixed(9)&&!a.rotate,a},c.toTransformString=function(a){var h=a||this[rt]();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]:W)+(h.scalex!=1||h.scaley!=1?"s"+[h.scalex,h.scaley,0,0]:W)+(h.rotate?"r"+[h.rotate,0,0]:W)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(fn.prototype);for(var es=function(){this.returnValue=!1},ns=function(){return this.originalEvent.preventDefault()},is=function(){this.cancelBubble=!0},rs=function(){return this.originalEvent.stopPropagation()},pi=function(c){var f=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,d=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;return{x:c.clientX+d,y:c.clientY+f}},dn=k.doc.addEventListener?function(c,f,d,a){var h=function(_){var w=pi(_);return d.call(a,_,w.x,w.y)};if(c.addEventListener(f,h,!1),D&&mt[f]){var p=function(_){for(var w=pi(_),C=_,M=0,j=_.targetTouches&&_.targetTouches.length;M<j;M++)if(_.targetTouches[M].target==c){(_=_.targetTouches[M]).originalEvent=C,_.preventDefault=ns,_.stopPropagation=rs;break}return d.call(a,_,w.x,w.y)};c.addEventListener(mt[f],p,!1)}return function(){return c.removeEventListener(f,h,!1),D&&mt[f]&&c.removeEventListener(mt[f],p,!1),!0}}:k.doc.attachEvent?function(c,f,d,a){var h=function(p){p=p||k.win.event;var _=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,w=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,C=p.clientX+w,M=p.clientY+_;return p.preventDefault=p.preventDefault||es,p.stopPropagation=p.stopPropagation||is,d.call(a,p,C,M)};return c.attachEvent("on"+f,h),function(){return c.detachEvent("on"+f,h),!0}}:void 0,Pe=[],pn=function(c){for(var f,d=c.clientX,a=c.clientY,h=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,p=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft,_=Pe.length;_--;){if(f=Pe[_],D&&c.touches){for(var w,C=c.touches.length;C--;)if((w=c.touches[C]).identifier==f.el._drag.id){d=w.clientX,a=w.clientY,(c.originalEvent?c.originalEvent:c).preventDefault();break}}else c.preventDefault();var M,j=f.el.node,Y=j.nextSibling,H=j.parentNode,G=j.style.display;k.win.opera&&H.removeChild(j),j.style.display="none",M=f.el.paper.getElementByPoint(d,a),j.style.display=G,k.win.opera&&(Y?H.insertBefore(j,Y):H.appendChild(j)),M&&l("raphael.drag.over."+f.el.id,f.el,M),d+=p,a+=h,l("raphael.drag.move."+f.el.id,f.move_scope||f.el,d-f.el._drag.x,a-f.el._drag.y,d,a,c)}},On=function(c){u.unmousemove(pn).unmouseup(On);for(var f,d=Pe.length;d--;)(f=Pe[d]).el._drag={},l("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,c);Pe=[]},zt=u.el={},ss=ct.length;ss--;)(function(c){u[c]=zt[c]=function(f,d){return u.is(f,"function")&&(this.events=this.events||[],this.events.push({name:c,f,unbind:dn(this.shape||this.node||k.doc,c,f,d||this)})),this},u["un"+c]=zt["un"+c]=function(f){for(var d=this.events||[],a=d.length;a--;)d[a].name!=c||!u.is(f,"undefined")&&d[a].f!=f||(d[a].unbind(),d.splice(a,1),!d.length&&delete this.events);return this}})(ct[ss]);zt.data=function(c,f){var d=Nt[this.id]=Nt[this.id]||{};if(arguments.length==0)return d;if(arguments.length==1){if(u.is(c,"object")){for(var a in c)c[I](a)&&this.data(a,c[a]);return this}return l("raphael.data.get."+this.id,this,d[c],c),d[c]}return d[c]=f,l("raphael.data.set."+this.id,this,f,c),this},zt.removeData=function(c){return c==null?delete Nt[this.id]:Nt[this.id]&&delete Nt[this.id][c],this},zt.getData=function(){return fe(Nt[this.id]||{})},zt.hover=function(c,f,d,a){return this.mouseover(c,d).mouseout(f,a||d)},zt.unhover=function(c,f){return this.unmouseover(c).unmouseout(f)};var Mn=[];zt.drag=function(c,f,d,a,h,p){function _(w){(w.originalEvent||w).preventDefault();var C=w.clientX,M=w.clientY,j=k.doc.documentElement.scrollTop||k.doc.body.scrollTop,Y=k.doc.documentElement.scrollLeft||k.doc.body.scrollLeft;if(this._drag.id=w.identifier,D&&w.touches){for(var H,G=w.touches.length;G--;)if(H=w.touches[G],this._drag.id=H.identifier,H.identifier==this._drag.id){C=H.clientX,M=H.clientY;break}}this._drag.x=C+Y,this._drag.y=M+j,!Pe.length&&u.mousemove(pn).mouseup(On),Pe.push({el:this,move_scope:a,start_scope:h,end_scope:p}),f&&l.on("raphael.drag.start."+this.id,f),c&&l.on("raphael.drag.move."+this.id,c),d&&l.on("raphael.drag.end."+this.id,d),l("raphael.drag.start."+this.id,h||a||this,this._drag.x,this._drag.y,w)}return this._drag={},Mn.push({el:this,start:_}),this.mousedown(_),this},zt.onDragOver=function(c){c?l.on("raphael.drag.over."+this.id,c):l.unbind("raphael.drag.over."+this.id)},zt.undrag=function(){for(var c=Mn.length;c--;)Mn[c].el==this&&(this.unmousedown(Mn[c].start),Mn.splice(c,1),l.unbind("raphael.drag.*."+this.id));!Mn.length&&u.unmousemove(pn).unmouseup(On),Pe=[]},y.circle=function(c,f,d){var a=u._engine.circle(this,c||0,f||0,d||0);return this.__set__&&this.__set__.push(a),a},y.rect=function(c,f,d,a,h){var p=u._engine.rect(this,c||0,f||0,d||0,a||0,h||0);return this.__set__&&this.__set__.push(p),p},y.ellipse=function(c,f,d,a){var h=u._engine.ellipse(this,c||0,f||0,d||0,a||0);return this.__set__&&this.__set__.push(h),h},y.path=function(c){c&&!u.is(c,"string")&&!u.is(c[0],it)&&(c+=W);var f=u._engine.path(u.format[P](u,arguments),this);return this.__set__&&this.__set__.push(f),f},y.image=function(c,f,d,a,h){var p=u._engine.image(this,c||"about:blank",f||0,d||0,a||0,h||0);return this.__set__&&this.__set__.push(p),p},y.text=function(c,f,d){var a=u._engine.text(this,c||0,f||0,R(d));return this.__set__&&this.__set__.push(a),a},y.set=function(c){!u.is(c,"array")&&(c=Array.prototype.splice.call(arguments,0,arguments.length));var f=new Kn(c);return this.__set__&&this.__set__.push(f),f.paper=this,f.type="set",f},y.setStart=function(c){this.__set__=c||this.set()},y.setFinish=function(c){var f=this.__set__;return delete this.__set__,f},y.getSize=function(){var c=this.canvas.parentNode;return{width:c.offsetWidth,height:c.offsetHeight}},y.setSize=function(c,f){return u._engine.setSize.call(this,c,f)},y.setViewBox=function(c,f,d,a,h){return u._engine.setViewBox.call(this,c,f,d,a,h)},y.top=y.bottom=null,y.raphael=u;function Xn(){return this.x+U+this.y+U+this.width+" × "+this.height}y.getElementByPoint=function(c,f){var d,a,h,p,_,w,C,M=this.canvas,j=k.doc.elementFromPoint(c,f);if(k.win.opera&&j.tagName=="svg"){var Y=(a=(d=M).getBoundingClientRect(),h=d.ownerDocument,p=h.body,_=h.documentElement,w=_.clientTop||p.clientTop||0,C=_.clientLeft||p.clientLeft||0,{y:a.top+(k.win.pageYOffset||_.scrollTop||p.scrollTop)-w,x:a.left+(k.win.pageXOffset||_.scrollLeft||p.scrollLeft)-C}),H=M.createSVGRect();H.x=c-Y.x,H.y=f-Y.y,H.width=H.height=1;var G=M.getIntersectionList(H,null);G.length&&(j=G[G.length-1])}if(!j)return null;for(;j.parentNode&&j!=M.parentNode&&!j.raphael;)j=j.parentNode;return j==this.canvas.parentNode&&(j=M),j=j&&j.raphael?this.getById(j.raphaelid):null},y.getElementsByBBox=function(c){var f=this.set();return this.forEach(function(d){u.isBBoxIntersect(d.getBBox(),c)&&f.push(d)}),f},y.getById=function(c){for(var f=this.bottom;f;){if(f.id==c)return f;f=f.next}return null},y.forEach=function(c,f){for(var d=this.bottom;d;){if(c.call(f,d)===!1)return this;d=d.next}return this},y.getElementsByPoint=function(c,f){var d=this.set();return this.forEach(function(a){a.isPointInside(c,f)&&d.push(a)}),d},zt.isPointInside=function(c,f){var d=this.realPath=$t[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(d=u.transformPath(d,this.attr("transform"))),u.isPointInsidePath(d,c,f)},zt.getBBox=function(c){if(this.removed)return{};var f=this._;return c?(!f.dirty&&f.bboxwt||(this.realPath=$t[this.type](this),f.bboxwt=Fe(this.realPath),f.bboxwt.toString=Xn,f.dirty=0),f.bboxwt):((f.dirty||f.dirtyT||!f.bbox)&&(!f.dirty&&this.realPath||(f.bboxwt=0,this.realPath=$t[this.type](this)),f.bbox=Fe(ee(this.realPath,this.matrix)),f.bbox.toString=Xn,f.dirty=f.dirtyT=0),f.bbox)},zt.clone=function(){if(this.removed)return null;var c=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(c),c},zt.glow=function(c){if(this.type=="text")return null;var f={width:((c=c||{}).width||10)+(+this.attr("stroke-width")||1),fill:c.fill||!1,opacity:c.opacity==null?.5:c.opacity,offsetx:c.offsetx||0,offsety:c.offsety||0,color:c.color||"#000"},d=f.width/2,a=this.paper,h=a.set(),p=this.realPath||$t[this.type](this);p=this.matrix?ee(p,this.matrix):p;for(var _=1;_<d+1;_++)h.push(a.path(p).attr({stroke:f.color,fill:f.fill?f.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(f.width/d*_).toFixed(3),opacity:+(f.opacity/d).toFixed(3)}));return h.insertBefore(this).translate(f.offsetx,f.offsety)};var ge=function(c,f,d,a,h,p,_,w,C){return C==null?Me(c,f,d,a,h,p,_,w):u.findDotsAtSegment(c,f,d,a,h,p,_,w,function(M,j,Y,H,G,K,tt,J,q){if(!(q<0||Me(M,j,Y,H,G,K,tt,J)<q)){var ut,et=.5,ot=1-et;for(ut=Me(M,j,Y,H,G,K,tt,J,ot);At(ut-q)>.01;)ut=Me(M,j,Y,H,G,K,tt,J,ot+=(ut<q?1:-1)*(et/=2));return ot}}(c,f,d,a,h,p,_,w,C))},Je=function(c,f){return function(d,a,h){for(var p,_,w,C,M,j="",Y={},H=0,G=0,K=(d=Yn(d)).length;G<K;G++){if((w=d[G])[0]=="M")p=+w[1],_=+w[2];else{if(H+(C=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6]))>a){if(f&&!Y.start){if(j+=["C"+(M=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6],a-H)).start.x,M.start.y,M.m.x,M.m.y,M.x,M.y],h)return j;Y.start=j,j=["M"+M.x,M.y+"C"+M.n.x,M.n.y,M.end.x,M.end.y,w[5],w[6]].join(),H+=C,p=+w[5],_=+w[6];continue}if(!c&&!f)return{x:(M=ge(p,_,w[1],w[2],w[3],w[4],w[5],w[6],a-H)).x,y:M.y,alpha:M.alpha}}H+=C,p=+w[5],_=+w[6]}j+=w.shift()+w}return Y.end=j,(M=c?H:f?Y:u.findDotsAtSegment(p,_,w[0],w[1],w[2],w[3],w[4],w[5],1)).alpha&&(M={x:M.x,y:M.y,alpha:M.alpha}),M}},qe=Je(1),Ve=Je(),mn=Je(0,1);u.getTotalLength=qe,u.getPointAtLength=Ve,u.getSubpath=function(c,f,d){if(this.getTotalLength(c)-d<1e-6)return mn(c,f).end;var a=mn(c,d,1);return f?mn(a,f).end:a},zt.getTotalLength=function(){var c=this.getPath();if(c)return this.node.getTotalLength?this.node.getTotalLength():qe(c)},zt.getPointAtLength=function(c){var f=this.getPath();if(f)return Ve(f,c)},zt.getPath=function(){var c,f=u._getPath[this.type];if(this.type!="text"&&this.type!="set")return f&&(c=f(this)),c},zt.getSubpath=function(c,f){var d=this.getPath();if(d)return u.getSubpath(d,c,f)};var Zt=u.easing_formulas={linear:function(c){return c},"<":function(c){return Dt(c,1.7)},">":function(c){return Dt(c,.48)},"<>":function(c){var f=.48-c/1.04,d=lt.sqrt(.1734+f*f),a=d-f,h=-d-f,p=Dt(At(a),1/3)*(a<0?-1:1)+Dt(At(h),1/3)*(h<0?-1:1)+.5;return 3*(1-p)*p*p+p*p*p},backIn:function(c){var f=1.70158;return c*c*((f+1)*c-f)},backOut:function(c){var f=1.70158;return(c-=1)*c*((f+1)*c+f)+1},elastic:function(c){return c==!!c?c:Dt(2,-10*c)*lt.sin(2*jt*(c-.075)/.3)+1},bounce:function(c){var f=7.5625,d=2.75;return c<1/d?f*c*c:c<2/d?f*(c-=1.5/d)*c+.75:c<2.5/d?f*(c-=2.25/d)*c+.9375:f*(c-=2.625/d)*c+.984375}};Zt.easeIn=Zt["ease-in"]=Zt["<"],Zt.easeOut=Zt["ease-out"]=Zt[">"],Zt.easeInOut=Zt["ease-in-out"]=Zt["<>"],Zt["back-in"]=Zt.backIn,Zt["back-out"]=Zt.backOut;var Ct=[],ir=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){setTimeout(c,16)},mi=function(){for(var c=+new Date,f=0;f<Ct.length;f++){var d=Ct[f];if(!d.el.removed&&!d.paused){var a,h,p=c-d.start,_=d.ms,w=d.easing,C=d.from,M=d.diff,j=d.to,Y=(d.t,d.el),H={},G={};if(d.initstatus?(p=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*_,d.status=d.initstatus,delete d.initstatus,d.stop&&Ct.splice(f--,1)):d.status=(d.prev+(d.percent-d.prev)*(p/_))/d.anim.top,!(p<0))if(p<_){var K=w(p/_);for(var tt in C)if(C[I](tt)){switch(z[tt]){case Q:a=+C[tt]+K*_*M[tt];break;case"colour":a="rgb("+[An(N(C[tt].r+K*_*M[tt].r)),An(N(C[tt].g+K*_*M[tt].g)),An(N(C[tt].b+K*_*M[tt].b))].join(",")+")";break;case"path":a=[];for(var J=0,q=C[tt].length;J<q;J++){a[J]=[C[tt][J][0]];for(var ut=1,et=C[tt][J].length;ut<et;ut++)a[J][ut]=+C[tt][J][ut]+K*_*M[tt][J][ut];a[J]=a[J].join(U)}a=a.join(U);break;case"transform":if(M[tt].real)for(a=[],J=0,q=C[tt].length;J<q;J++)for(a[J]=[C[tt][J][0]],ut=1,et=C[tt][J].length;ut<et;ut++)a[J][ut]=C[tt][J][ut]+K*_*M[tt][J][ut];else{var ot=function(St){return+C[tt][St]+K*_*M[tt][St]};a=[["m",ot(0),ot(1),ot(2),ot(3),ot(4),ot(5)]]}break;case"csv":if(tt=="clip-rect")for(a=[],J=4;J--;)a[J]=+C[tt][J]+K*_*M[tt][J];break;default:var nt=[][O](C[tt]);for(a=[],J=Y.paper.customAttributes[tt].length;J--;)a[J]=+nt[J]+K*_*M[tt][J]}H[tt]=a}Y.attr(H),function(St,bt,kt){setTimeout(function(){l("raphael.anim.frame."+St,bt,kt)})}(Y.id,Y,d.anim)}else{if(function(St,bt,kt){setTimeout(function(){l("raphael.anim.frame."+bt.id,bt,kt),l("raphael.anim.finish."+bt.id,bt,kt),u.is(St,"function")&&St.call(bt)})}(d.callback,Y,d.anim),Y.attr(j),Ct.splice(f--,1),d.repeat>1&&!d.next){for(h in j)j[I](h)&&(G[h]=d.totalOrigin[h]);d.el.attr(G),gn(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&gn(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}}Ct.length&&ir(mi)},An=function(c){return c>255?255:c<0?0:c};function Ae(c,f,d,a,h,p){var _=3*f,w=3*(a-f)-_,C=1-_-w,M=3*d,j=3*(h-d)-M,Y=1-M-j;function H(G){return((C*G+w)*G+_)*G}return function(G,K){var tt=function(J,q){var ut,et,ot,nt,St,bt;for(ot=J,bt=0;bt<8;bt++){if(nt=H(ot)-J,At(nt)<q)return ot;if(At(St=(3*C*ot+2*w)*ot+_)<1e-6)break;ot-=nt/St}if(et=1,(ot=J)<(ut=0))return ut;if(ot>et)return et;for(;ut<et;){if(nt=H(ot),At(nt-J)<q)return ot;J>nt?ut=ot:et=ot,ot=(et-ut)/2+ut}return ot}(G,K);return((Y*tt+j)*tt+M)*tt}(c,1/(200*p))}function Ie(c,f){var d=[],a={};if(this.ms=f,this.times=1,c){for(var h in c)c[I](h)&&(a[L(h)]=c[h],d.push(L(h)));d.sort(Lt)}this.anim=a,this.top=d[d.length-1],this.percents=d}function gn(c,f,d,a,h,p){d=L(d);var _,w,C,M,j,Y,H=c.ms,G={},K={},tt={};if(a)for(q=0,ut=Ct.length;q<ut;q++){var J=Ct[q];if(J.el.id==f.id&&J.anim==c){J.percent!=d?(Ct.splice(q,1),C=1):w=J,f.attr(J.totalOrigin);break}}else a=+K;for(var q=0,ut=c.percents.length;q<ut;q++){if(c.percents[q]==d||c.percents[q]>a*c.top){d=c.percents[q],j=c.percents[q-1]||0,H=H/c.top*(d-j),M=c.percents[q+1],_=c.anim[d];break}a&&f.attr(c.anim[c.percents[q]])}if(_){if(w)w.initstatus=a,w.start=new Date-w.ms*a;else{for(var et in _)if(_[I](et)&&(z[I](et)||f.paper.customAttributes[I](et)))switch(G[et]=f.attr(et),G[et]==null&&(G[et]=X[et]),K[et]=_[et],z[et]){case Q:tt[et]=(K[et]-G[et])/H;break;case"colour":G[et]=u.getRGB(G[et]);var ot=u.getRGB(K[et]);tt[et]={r:(ot.r-G[et].r)/H,g:(ot.g-G[et].g)/H,b:(ot.b-G[et].b)/H};break;case"path":var nt=Yn(G[et],K[et]),St=nt[1];for(G[et]=nt[0],tt[et]=[],q=0,ut=G[et].length;q<ut;q++){tt[et][q]=[0];for(var bt=1,kt=G[et][q].length;bt<kt;bt++)tt[et][q][bt]=(St[q][bt]-G[et][q][bt])/H}break;case"transform":var _i=f._,rr=ts(_i[et],K[et]);if(rr)for(G[et]=rr.from,K[et]=rr.to,tt[et]=[],tt[et].real=!0,q=0,ut=G[et].length;q<ut;q++)for(tt[et][q]=[G[et][q][0]],bt=1,kt=G[et][q].length;bt<kt;bt++)tt[et][q][bt]=(K[et][q][bt]-G[et][q][bt])/H;else{var Ne=f.matrix||new fn,tn={_:{transform:_i.transform},getBBox:function(){return f.getBBox(1)}};G[et]=[Ne.a,Ne.b,Ne.c,Ne.d,Ne.e,Ne.f],di(tn,K[et]),K[et]=tn._.transform,tt[et]=[(tn.matrix.a-Ne.a)/H,(tn.matrix.b-Ne.b)/H,(tn.matrix.c-Ne.c)/H,(tn.matrix.d-Ne.d)/H,(tn.matrix.e-Ne.e)/H,(tn.matrix.f-Ne.f)/H]}break;case"csv":var xi=R(_[et])[rt](g),bi=R(G[et])[rt](g);if(et=="clip-rect")for(G[et]=bi,tt[et]=[],q=bi.length;q--;)tt[et][q]=(xi[q]-G[et][q])/H;K[et]=xi;break;default:for(xi=[][O](_[et]),bi=[][O](G[et]),tt[et]=[],q=f.paper.customAttributes[et].length;q--;)tt[et][q]=((xi[q]||0)-(bi[q]||0))/H}var os=_.easing,vn=u.easing_formulas[os];if(!vn)if((vn=R(os).match(b))&&vn.length==5){var Qn=vn;vn=function(as){return Ae(as,+Qn[1],+Qn[2],+Qn[3],+Qn[4],H)}}else vn=Vt;if(J={anim:c,percent:d,timestamp:Y=_.start||c.start||+new Date,start:Y+(c.del||0),status:0,initstatus:a||0,stop:!1,ms:H,easing:vn,from:G,diff:tt,to:K,el:f,callback:_.callback,prev:j,next:M,repeat:p||c.times,origin:f.attr(),totalOrigin:h},Ct.push(J),a&&!w&&!C&&(J.stop=!0,J.start=new Date-H*a,Ct.length==1))return mi();C&&(J.start=new Date-J.ms*a),Ct.length==1&&ir(mi)}l("raphael.anim.start."+f.id,f,c)}}function gi(c){for(var f=0;f<Ct.length;f++)Ct[f].el.paper==c&&Ct.splice(f--,1)}zt.animateWith=function(c,f,d,a,h,p){if(this.removed)return p&&p.call(this),this;var _=d instanceof Ie?d:u.animation(d,a,h,p);gn(_,this,_.percents[0],null,this.attr());for(var w=0,C=Ct.length;w<C;w++)if(Ct[w].anim==f&&Ct[w].el==c){Ct[C-1].start=Ct[w].start;break}return this},zt.onAnimation=function(c){return c?l.on("raphael.anim.frame."+this.id,c):l.unbind("raphael.anim.frame."+this.id),this},Ie.prototype.delay=function(c){var f=new Ie(this.anim,this.ms);return f.times=this.times,f.del=+c||0,f},Ie.prototype.repeat=function(c){var f=new Ie(this.anim,this.ms);return f.del=this.del,f.times=lt.floor(gt(c,0))||1,f},u.animation=function(c,f,d,a){if(c instanceof Ie)return c;!u.is(d,"function")&&d||(a=a||d||null,d=null),c=Object(c),f=+f||0;var h,p,_={};for(p in c)c[I](p)&&L(p)!=p&&L(p)+"%"!=p&&(h=!0,_[p]=c[p]);if(h)return d&&(_.easing=d),a&&(_.callback=a),new Ie({100:_},f);if(a){var w=0;for(var C in c){var M=V(C);c[I](C)&&M>w&&(w=M)}!c[w+="%"].callback&&(c[w].callback=a)}return new Ie(c,f)},zt.animate=function(c,f,d,a){if(this.removed)return a&&a.call(this),this;var h=c instanceof Ie?c:u.animation(c,f,d,a);return gn(h,this,h.percents[0],null,this.attr()),this},zt.setTime=function(c,f){return c&&f!=null&&this.status(c,ft(f,c.ms)/c.ms),this},zt.status=function(c,f){var d,a,h=[],p=0;if(f!=null)return gn(c,this,-1,ft(f,1)),this;for(d=Ct.length;p<d;p++)if((a=Ct[p]).el.id==this.id&&(!c||a.anim==c)){if(c)return a.status;h.push({anim:a.anim,status:a.status})}return c?0:h},zt.pause=function(c){for(var f=0;f<Ct.length;f++)Ct[f].el.id!=this.id||c&&Ct[f].anim!=c||l("raphael.anim.pause."+this.id,this,Ct[f].anim)!==!1&&(Ct[f].paused=!0);return this},zt.resume=function(c){for(var f=0;f<Ct.length;f++)if(Ct[f].el.id==this.id&&(!c||Ct[f].anim==c)){var d=Ct[f];l("raphael.anim.resume."+this.id,this,d.anim)!==!1&&(delete d.paused,this.status(d.anim,d.status))}return this},zt.stop=function(c){for(var f=0;f<Ct.length;f++)Ct[f].el.id!=this.id||c&&Ct[f].anim!=c||l("raphael.anim.stop."+this.id,this,Ct[f].anim)!==!1&&Ct.splice(f--,1);return this},l.on("raphael.remove",gi),l.on("raphael.clear",gi),zt.toString=function(){return"Raphaël’s object"};var vi,yi,$e,ze,Kn=function(c){if(this.items=[],this.length=0,this.type="set",c)for(var f=0,d=c.length;f<d;f++)!c[f]||c[f].constructor!=zt.constructor&&c[f].constructor!=Kn||(this[this.items.length]=this.items[this.items.length]=c[f],this.length++)},se=Kn.prototype;for(var Zn in se.push=function(){for(var c,f,d=0,a=arguments.length;d<a;d++)!(c=arguments[d])||c.constructor!=zt.constructor&&c.constructor!=Kn||(this[f=this.items.length]=this.items[f]=c,this.length++);return this},se.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},se.forEach=function(c,f){for(var d=0,a=this.items.length;d<a;d++)if(c.call(f,this.items[d],d)===!1)return this;return this},zt)zt[I](Zn)&&(se[Zn]=function(c){return function(){var f=arguments;return this.forEach(function(d){d[c][P](d,f)})}}(Zn));return se.attr=function(c,f){if(c&&u.is(c,it)&&u.is(c[0],"object"))for(var d=0,a=c.length;d<a;d++)this.items[d].attr(c[d]);else for(var h=0,p=this.items.length;h<p;h++)this.items[h].attr(c,f);return this},se.clear=function(){for(;this.length;)this.pop()},se.splice=function(c,f,d){c=c<0?gt(this.length+c,0):c,f=gt(0,ft(this.length-c,f));var a,h=[],p=[],_=[];for(a=2;a<arguments.length;a++)_.push(arguments[a]);for(a=0;a<f;a++)p.push(this[c+a]);for(;a<this.length-c;a++)h.push(this[c+a]);var w=_.length;for(a=0;a<w+h.length;a++)this.items[c+a]=this[c+a]=a<w?_[a]:h[a-w];for(a=this.items.length=this.length-=f-w;this[a];)delete this[a++];return new Kn(p)},se.exclude=function(c){for(var f=0,d=this.length;f<d;f++)if(this[f]==c)return this.splice(f,1),!0},se.animate=function(c,f,d,a){(u.is(d,"function")||!d)&&(a=d||null);var h,p,_=this.items.length,w=_,C=this;if(!_)return this;a&&(p=function(){!--_&&a.call(C)}),d=u.is(d,"string")?d:p;var M=u.animation(c,f,d,p);for(h=this.items[--w].animate(M);w--;)this.items[w]&&!this.items[w].removed&&this.items[w].animateWith(h,M,M),this.items[w]&&!this.items[w].removed||_--;return this},se.insertAfter=function(c){for(var f=this.items.length;f--;)this.items[f].insertAfter(c);return this},se.getBBox=function(){for(var c=[],f=[],d=[],a=[],h=this.items.length;h--;)if(!this.items[h].removed){var p=this.items[h].getBBox();c.push(p.x),f.push(p.y),d.push(p.x+p.width),a.push(p.y+p.height)}return{x:c=ft[P](0,c),y:f=ft[P](0,f),x2:d=gt[P](0,d),y2:a=gt[P](0,a),width:d-c,height:a-f}},se.clone=function(c){c=this.paper.set();for(var f=0,d=this.items.length;f<d;f++)c.push(this.items[f].clone());return c},se.toString=function(){return"Raphaël‘s set"},se.glow=function(c){var f=this.paper.set();return this.forEach(function(d,a){var h=d.glow(c);h?.forEach(function(p,_){f.push(p)})}),f},se.isPointInside=function(c,f){var d=!1;return this.forEach(function(a){if(a.isPointInside(c,f))return d=!0,!1}),d},u.registerFont=function(c){if(!c.face)return c;this.fonts=this.fonts||{};var f={w:c.w,face:{},glyphs:{}},d=c.face["font-family"];for(var a in c.face)c.face[I](a)&&(f.face[a]=c.face[a]);if(this.fonts[d]?this.fonts[d].push(f):this.fonts[d]=[f],!c.svg){for(var h in f.face["units-per-em"]=V(c.face["units-per-em"],10),c.glyphs)if(c.glyphs[I](h)){var p=c.glyphs[h];if(f.glyphs[h]={w:p.w,k:{},d:p.d&&"M"+p.d.replace(/[mlcxtrv]/g,function(w){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[w]||"M"})+"z"},p.k)for(var _ in p.k)p[I](_)&&(f.glyphs[h].k[_]=p.k[_])}}return c},y.getFont=function(c,f,d,a){if(a=a||"normal",d=d||"normal",f=+f||{normal:400,bold:700,lighter:300,bolder:800}[f]||400,u.fonts){var h,p=u.fonts[c];if(!p){var _=new RegExp("(^|\\s)"+c.replace(/[^\w\d\s+!~.:_-]/g,W)+"(\\s|$)","i");for(var w in u.fonts)if(u.fonts[I](w)&&_.test(w)){p=u.fonts[w];break}}if(p)for(var C=0,M=p.length;C<M&&((h=p[C]).face["font-weight"]!=f||h.face["font-style"]!=d&&h.face["font-style"]||h.face["font-stretch"]!=a);C++);return h}},y.print=function(c,f,d,a,h,p,_,w){p=p||"middle",_=gt(ft(_||0,1),-1),w=gt(ft(w||1,3),1);var C,M=R(d)[rt](W),j=0,Y=0,H=W;if(u.is(a,"string")&&(a=this.getFont(a)),a){C=(h||16)/a.face["units-per-em"];for(var G=a.face.bbox[rt](g),K=+G[0],tt=G[3]-G[1],J=0,q=+G[1]+(p=="baseline"?tt+ +a.face.descent:tt/2),ut=0,et=M.length;ut<et;ut++){if(M[ut]==`
46
+ `)j=0,nt=0,Y=0,J+=tt*w;else{var ot=Y&&a.glyphs[M[ut-1]]||{},nt=a.glyphs[M[ut]];j+=Y?(ot.w||a.w)+(ot.k&&ot.k[M[ut]]||0)+a.w*_:0,Y=1}nt&&nt.d&&(H+=u.transformPath(nt.d,["t",j*C,J*C,"s",C,C,K,q,"t",(c-K)/C,(f-q)/C]))}}return this.path(H).attr({fill:"#000",stroke:"none"})},y.add=function(c){if(u.is(c,"array"))for(var f,d=this.set(),a=0,h=c.length;a<h;a++)f=c[a]||{},m[I](f.type)&&d.push(this[f.type]().attr(f));return d},u.format=function(c,f){var d=u.is(f,it)?[0][O](f):arguments;return c&&u.is(c,"string")&&d.length-1&&(c=c.replace(x,function(a,h){return d[++h]==null?W:d[h]})),c||W},u.fullfill=(vi=/\{([^\}]+)\}/g,yi=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(c,f){return String(c).replace(vi,function(d,a){return function(h,p,_){var w=_;return p.replace(yi,function(C,M,j,Y,H){M=M||Y,w&&(M in w&&(w=w[M]),typeof w=="function"&&H&&(w=w()))}),w=(w==null||w==_?h:w)+""}(d,a,f)})}),u.ninja=function(){if(A.was)k.win.Raphael=A.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return u},u.st=se,l.on("raphael.DOMload",function(){v=!0}),($e=document).readyState==null&&$e.addEventListener&&($e.addEventListener("DOMContentLoaded",ze=function(){$e.removeEventListener("DOMContentLoaded",ze,!1),$e.readyState="complete"},!1),$e.readyState="loading"),function c(){/in/.test($e.readyState)?setTimeout(c,9):u.eve("raphael.DOMload")}(),u}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0),r(3),r(4)],(o=function(l){return l}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o,l,u,v,y,g,m,x,I,k,A,$,P;u="hasOwnProperty",v=/[\.\/]/,y=/\s*,\s*/,g=function(O,D){return O-D},m={n:{}},x=function(){for(var O=0,D=this.length;O<D;O++)if(this[O]!==void 0)return this[O]},I=function(){for(var O=this.length;--O;)if(this[O]!==void 0)return this[O]},k=Object.prototype.toString,A=String,$=Array.isArray||function(O){return O instanceof Array||k.call(O)=="[object Array]"},(P=function(O,D){var W,U=l,R=Array.prototype.slice.call(arguments,2),rt=P.listeners(O),ct=0,mt=[],ht={},lt=[],gt=o;lt.firstDefined=x,lt.lastDefined=I,o=O,l=0;for(var ft=0,At=rt.length;ft<At;ft++)"zIndex"in rt[ft]&&(mt.push(rt[ft].zIndex),rt[ft].zIndex<0&&(ht[rt[ft].zIndex]=rt[ft]));for(mt.sort(g);mt[ct]<0;)if(W=ht[mt[ct++]],lt.push(W.apply(D,R)),l)return l=U,lt;for(ft=0;ft<At;ft++)if("zIndex"in(W=rt[ft]))if(W.zIndex==mt[ct]){if(lt.push(W.apply(D,R)),l)break;do if((W=ht[mt[++ct]])&&lt.push(W.apply(D,R)),l)break;while(W)}else ht[W.zIndex]=W;else if(lt.push(W.apply(D,R)),l)break;return l=U,o=gt,lt})._events=m,P.listeners=function(O){var D,W,U,R,rt,ct,mt,ht,lt=$(O)?O:O.split(v),gt=m,ft=[gt],At=[];for(R=0,rt=lt.length;R<rt;R++){for(ht=[],ct=0,mt=ft.length;ct<mt;ct++)for(W=[(gt=ft[ct].n)[lt[R]],gt["*"]],U=2;U--;)(D=W[U])&&(ht.push(D),At=At.concat(D.f||[]));ft=ht}return At},P.separator=function(O){O?(O="["+(O=A(O).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",v=new RegExp(O)):v=/[\.\/]/},P.on=function(O,D){if(typeof D!="function")return function(){};for(var W=$(O)?$(O[0])?O:[O]:A(O).split(y),U=0,R=W.length;U<R;U++)(function(rt){for(var ct,mt=$(rt)?rt:A(rt).split(v),ht=m,lt=0,gt=mt.length;lt<gt;lt++)ht=(ht=ht.n).hasOwnProperty(mt[lt])&&ht[mt[lt]]||(ht[mt[lt]]={n:{}});for(ht.f=ht.f||[],lt=0,gt=ht.f.length;lt<gt;lt++)if(ht.f[lt]==D){ct=!0;break}!ct&&ht.f.push(D)})(W[U]);return function(rt){+rt==+rt&&(D.zIndex=+rt)}},P.f=function(O){var D=[].slice.call(arguments,1);return function(){P.apply(null,[O,null].concat(D).concat([].slice.call(arguments,0)))}},P.stop=function(){l=1},P.nt=function(O){var D=$(o)?o.join("."):o;return O?new RegExp("(?:\\.|\\/|^)"+O+"(?:\\.|\\/|$)").test(D):D},P.nts=function(){return $(o)?o:o.split(v)},P.off=P.unbind=function(O,D){if(O){var W=$(O)?$(O[0])?O:[O]:A(O).split(y);if(W.length>1)for(var U=0,R=W.length;U<R;U++)P.off(W[U],D);else{W=$(O)?O:A(O).split(v);var rt,ct,mt,ht,lt,gt=[m];for(U=0,R=W.length;U<R;U++)for(ht=0;ht<gt.length;ht+=mt.length-2){if(mt=[ht,1],rt=gt[ht].n,W[U]!="*")rt[W[U]]&&mt.push(rt[W[U]]);else for(ct in rt)rt[u](ct)&&mt.push(rt[ct]);gt.splice.apply(gt,mt)}for(U=0,R=gt.length;U<R;U++)for(rt=gt[U];rt.n;){if(D){if(rt.f){for(ht=0,lt=rt.f.length;ht<lt;ht++)if(rt.f[ht]==D){rt.f.splice(ht,1);break}!rt.f.length&&delete rt.f}for(ct in rt.n)if(rt.n[u](ct)&&rt.n[ct].f){var ft=rt.n[ct].f;for(ht=0,lt=ft.length;ht<lt;ht++)if(ft[ht]==D){ft.splice(ht,1);break}!ft.length&&delete rt.n[ct].f}}else for(ct in delete rt.f,rt.n)rt.n[u](ct)&&rt.n[ct].f&&delete rt.n[ct].f;rt=rt.n}}}else P._events=m={n:{}}},P.once=function(O,D){var W=function(){return P.off(O,W),D.apply(this,arguments)};return P.on(O,W)},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(l){if(!l||l.svg){var u="hasOwnProperty",v=String,y=parseFloat,g=parseInt,m=Math,x=m.max,I=m.abs,k=m.pow,A=/[, ]+/,$=l.eve,P="",O=" ",D="http://www.w3.org/1999/xlink",W={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"},U={};l.toString=function(){return`Your browser supports SVG.
47
+ You are running Raphaël `+this.version};var R=function(S,E){if(E)for(var b in typeof S=="string"&&(S=R(S)),E)E[u](b)&&(b.substring(0,6)=="xlink:"?S.setAttributeNS(D,b.substring(6),v(E[b])):S.setAttribute(b,v(E[b])));else(S=l._g.doc.createElementNS("http://www.w3.org/2000/svg",S)).style&&(S.style.webkitTapHighlightColor="rgba(0,0,0,0)");return S},rt=function(S,E){var b="linear",N=S.id+E,L=.5,V=.5,F=S.node,X=S.paper,z=F.style,Z=l._g.doc.getElementById(N);if(!Z){if(E=(E=v(E).replace(l._radial_gradient,function(Lt,Vt,yt){if(b="radial",Vt&&yt){L=y(Vt);var Xt=2*((V=y(yt))>.5)-1;k(L-.5,2)+k(V-.5,2)>.25&&(V=m.sqrt(.25-k(L-.5,2))*Xt+.5)&&V!=.5&&(V=V.toFixed(5)-1e-5*Xt)}return P})).split(/\s*\-\s*/),b=="linear"){var at=E.shift();if(at=-y(at),isNaN(at))return null;var pt=[0,0,m.cos(l.rad(at)),m.sin(l.rad(at))],wt=1/(x(I(pt[2]),I(pt[3]))||1);pt[2]*=wt,pt[3]*=wt,pt[2]<0&&(pt[0]=-pt[2],pt[2]=0),pt[3]<0&&(pt[1]=-pt[3],pt[3]=0)}var Pt=l._parseDots(E);if(!Pt)return null;if(N=N.replace(/[\(\)\s,\xb0#]/g,"_"),S.gradient&&N!=S.gradient.id&&(X.defs.removeChild(S.gradient),delete S.gradient),!S.gradient){Z=R(b+"Gradient",{id:N}),S.gradient=Z,R(Z,b=="radial"?{fx:L,fy:V}:{x1:pt[0],y1:pt[1],x2:pt[2],y2:pt[3],gradientTransform:S.matrix.invert()}),X.defs.appendChild(Z);for(var Et=0,Nt=Pt.length;Et<Nt;Et++)Z.appendChild(R("stop",{offset:Pt[Et].offset?Pt[Et].offset:Et?"100%":"0%","stop-color":Pt[Et].color||"#fff","stop-opacity":isFinite(Pt[Et].opacity)?Pt[Et].opacity:1}))}}return R(F,{fill:ct(N),opacity:1,"fill-opacity":1}),z.fill=P,z.opacity=1,z.fillOpacity=1,1},ct=function(S){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+S+"')";var E,b=document.location;return"url('"+(b.protocol+"//"+b.host+b.pathname+b.search)+"#"+S+"')"},mt=function(S){var E=S.getBBox(1);R(S.pattern,{patternTransform:S.matrix.invert()+" translate("+E.x+","+E.y+")"})},ht=function(S,E,b){if(S.type=="path"){for(var N,L,V,F,X,z=v(E).toLowerCase().split("-"),Z=S.paper,at=b?"end":"start",pt=S.node,wt=S.attrs,Pt=wt["stroke-width"],Et=z.length,Nt="classic",Lt=3,Vt=3,yt=5;Et--;)switch(z[Et]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Nt=z[Et];break;case"wide":Vt=5;break;case"narrow":Vt=2;break;case"long":Lt=5;break;case"short":Lt=2}if(Nt=="open"?(Lt+=2,Vt+=2,yt+=2,V=1,F=b?4:1,X={fill:"none",stroke:wt.stroke}):(F=V=Lt/2,X={fill:wt.stroke,stroke:"none"}),S._.arrows?b?(S._.arrows.endPath&&U[S._.arrows.endPath]--,S._.arrows.endMarker&&U[S._.arrows.endMarker]--):(S._.arrows.startPath&&U[S._.arrows.startPath]--,S._.arrows.startMarker&&U[S._.arrows.startMarker]--):S._.arrows={},Nt!="none"){var Xt="raphael-marker-"+Nt,$t="raphael-marker-"+at+Nt+Lt+Vt+"-obj"+S.id;l._g.doc.getElementById(Xt)?U[Xt]++:(Z.defs.appendChild(R(R("path"),{"stroke-linecap":"round",d:W[Nt],id:Xt})),U[Xt]=1);var ee,Ht=l._g.doc.getElementById($t);Ht?(U[$t]++,ee=Ht.getElementsByTagName("use")[0]):(Ht=R(R("marker"),{id:$t,markerHeight:Vt,markerWidth:Lt,orient:"auto",refX:F,refY:Vt/2}),ee=R(R("use"),{"xlink:href":"#"+Xt,transform:(b?"rotate(180 "+Lt/2+" "+Vt/2+") ":P)+"scale("+Lt/yt+","+Vt/yt+")","stroke-width":(1/((Lt/yt+Vt/yt)/2)).toFixed(4)}),Ht.appendChild(ee),Z.defs.appendChild(Ht),U[$t]=1),R(ee,X);var Ee=V*(Nt!="diamond"&&Nt!="oval");b?(N=S._.arrows.startdx*Pt||0,L=l.getTotalLength(wt.path)-Ee*Pt):(N=Ee*Pt,L=l.getTotalLength(wt.path)-(S._.arrows.enddx*Pt||0)),(X={})["marker-"+at]="url(#"+$t+")",(L||N)&&(X.d=l.getSubpath(wt.path,N,L)),R(pt,X),S._.arrows[at+"Path"]=Xt,S._.arrows[at+"Marker"]=$t,S._.arrows[at+"dx"]=Ee,S._.arrows[at+"Type"]=Nt,S._.arrows[at+"String"]=E}else b?(N=S._.arrows.startdx*Pt||0,L=l.getTotalLength(wt.path)-N):(N=0,L=l.getTotalLength(wt.path)-(S._.arrows.enddx*Pt||0)),S._.arrows[at+"Path"]&&R(pt,{d:l.getSubpath(wt.path,N,L)}),delete S._.arrows[at+"Path"],delete S._.arrows[at+"Marker"],delete S._.arrows[at+"dx"],delete S._.arrows[at+"Type"],delete S._.arrows[at+"String"];for(X in U)if(U[u](X)&&!U[X]){var fe=l._g.doc.getElementById(X);fe&&fe.parentNode.removeChild(fe)}}},lt={"-":[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]},gt=function(S,E,b){if(E=lt[v(E).toLowerCase()]){for(var N=S.attrs["stroke-width"]||"1",L={round:N,square:N,butt:0}[S.attrs["stroke-linecap"]||b["stroke-linecap"]]||0,V=[],F=E.length;F--;)V[F]=E[F]*N+(F%2?1:-1)*L;R(S.node,{"stroke-dasharray":V.join(",")})}else R(S.node,{"stroke-dasharray":"none"})},ft=function(S,E){var b=S.node,N=S.attrs,L=b.style.visibility;for(var V in b.style.visibility="hidden",E)if(E[u](V)){if(!l._availableAttrs[u](V))continue;var F=E[V];switch(N[V]=F,V){case"blur":S.blur(F);break;case"title":var X=b.getElementsByTagName("title");if(X.length&&(X=X[0]))X.firstChild.nodeValue=F;else{X=R("title");var z=l._g.doc.createTextNode(F);X.appendChild(z),b.appendChild(X)}break;case"href":case"target":var Z=b.parentNode;if(Z.tagName.toLowerCase()!="a"){var at=R("a");Z.insertBefore(at,b),at.appendChild(b),Z=at}V=="target"?Z.setAttributeNS(D,"show",F=="blank"?"new":F):Z.setAttributeNS(D,V,F);break;case"cursor":b.style.cursor=F;break;case"transform":S.transform(F);break;case"arrow-start":ht(S,F);break;case"arrow-end":ht(S,F,1);break;case"clip-rect":var pt=v(F).split(A);if(pt.length==4){S.clip&&S.clip.parentNode.parentNode.removeChild(S.clip.parentNode);var wt=R("clipPath"),Pt=R("rect");wt.id=l.createUUID(),R(Pt,{x:pt[0],y:pt[1],width:pt[2],height:pt[3]}),wt.appendChild(Pt),S.paper.defs.appendChild(wt),R(b,{"clip-path":"url(#"+wt.id+")"}),S.clip=Pt}if(!F){var Et=b.getAttribute("clip-path");if(Et){var Nt=l._g.doc.getElementById(Et.replace(/(^url\(#|\)$)/g,P));Nt&&Nt.parentNode.removeChild(Nt),R(b,{"clip-path":P}),delete S.clip}}break;case"path":S.type=="path"&&(R(b,{d:F?N.path=l._pathToAbsolute(F):"M0,0"}),S._.dirty=1,S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1)));break;case"width":if(b.setAttribute(V,F),S._.dirty=1,!N.fx)break;V="x",F=N.x;case"x":N.fx&&(F=-N.x-(N.width||0));case"rx":if(V=="rx"&&S.type=="rect")break;case"cx":b.setAttribute(V,F),S.pattern&&mt(S),S._.dirty=1;break;case"height":if(b.setAttribute(V,F),S._.dirty=1,!N.fy)break;V="y",F=N.y;case"y":N.fy&&(F=-N.y-(N.height||0));case"ry":if(V=="ry"&&S.type=="rect")break;case"cy":b.setAttribute(V,F),S.pattern&&mt(S),S._.dirty=1;break;case"r":S.type=="rect"?R(b,{rx:F,ry:F}):b.setAttribute(V,F),S._.dirty=1;break;case"src":S.type=="image"&&b.setAttributeNS(D,"href",F);break;case"stroke-width":S._.sx==1&&S._.sy==1||(F/=x(I(S._.sx),I(S._.sy))||1),b.setAttribute(V,F),N["stroke-dasharray"]&&gt(S,N["stroke-dasharray"],E),S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1));break;case"stroke-dasharray":gt(S,F,E);break;case"fill":var Lt=v(F).match(l._ISURL);if(Lt){wt=R("pattern");var Vt=R("image");wt.id=l.createUUID(),R(wt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),R(Vt,{x:0,y:0,"xlink:href":Lt[1]}),wt.appendChild(Vt),function(Ht){l._preload(Lt[1],function(){var Ee=this.offsetWidth,fe=this.offsetHeight;R(Ht,{width:Ee,height:fe}),R(Vt,{width:Ee,height:fe})})}(wt),S.paper.defs.appendChild(wt),R(b,{fill:"url(#"+wt.id+")"}),S.pattern=wt,S.pattern&&mt(S);break}var yt=l.getRGB(F);if(yt.error){if((S.type=="circle"||S.type=="ellipse"||v(F).charAt()!="r")&&rt(S,F)){if("opacity"in N||"fill-opacity"in N){var Xt=l._g.doc.getElementById(b.getAttribute("fill").replace(/^url\(#|\)$/g,P));if(Xt){var $t=Xt.getElementsByTagName("stop");R($t[$t.length-1],{"stop-opacity":("opacity"in N?N.opacity:1)*("fill-opacity"in N?N["fill-opacity"]:1)})}}N.gradient=F,N.fill="none";break}}else delete E.gradient,delete N.gradient,!l.is(N.opacity,"undefined")&&l.is(E.opacity,"undefined")&&R(b,{opacity:N.opacity}),!l.is(N["fill-opacity"],"undefined")&&l.is(E["fill-opacity"],"undefined")&&R(b,{"fill-opacity":N["fill-opacity"]});yt[u]("opacity")&&R(b,{"fill-opacity":yt.opacity>1?yt.opacity/100:yt.opacity});case"stroke":yt=l.getRGB(F),b.setAttribute(V,yt.hex),V=="stroke"&&yt[u]("opacity")&&R(b,{"stroke-opacity":yt.opacity>1?yt.opacity/100:yt.opacity}),V=="stroke"&&S._.arrows&&("startString"in S._.arrows&&ht(S,S._.arrows.startString),"endString"in S._.arrows&&ht(S,S._.arrows.endString,1));break;case"gradient":(S.type=="circle"||S.type=="ellipse"||v(F).charAt()!="r")&&rt(S,F);break;case"opacity":N.gradient&&!N[u]("stroke-opacity")&&R(b,{"stroke-opacity":F>1?F/100:F});case"fill-opacity":if(N.gradient){(Xt=l._g.doc.getElementById(b.getAttribute("fill").replace(/^url\(#|\)$/g,P)))&&($t=Xt.getElementsByTagName("stop"),R($t[$t.length-1],{"stop-opacity":F}));break}default:V=="font-size"&&(F=g(F,10)+"px");var ee=V.replace(/(\-.)/g,function(Ht){return Ht.substring(1).toUpperCase()});b.style[ee]=F,S._.dirty=1,b.setAttribute(V,F)}}At(S,E),b.style.visibility=L},At=function(S,E){if(S.type=="text"&&(E[u]("text")||E[u]("font")||E[u]("font-size")||E[u]("x")||E[u]("y"))){var b=S.attrs,N=S.node,L=N.firstChild?g(l._g.doc.defaultView.getComputedStyle(N.firstChild,P).getPropertyValue("font-size"),10):10;if(E[u]("text")){for(b.text=E.text;N.firstChild;)N.removeChild(N.firstChild);for(var V,F=v(E.text).split(`
48
+ `),X=[],z=0,Z=F.length;z<Z;z++)V=R("tspan"),z&&R(V,{dy:1.2*L,x:b.x}),V.appendChild(l._g.doc.createTextNode(F[z])),N.appendChild(V),X[z]=V}else for(z=0,Z=(X=N.getElementsByTagName("tspan")).length;z<Z;z++)z?R(X[z],{dy:1.2*L,x:b.x}):R(X[0],{dy:0});R(N,{x:b.x,y:b.y}),S._.dirty=1;var at=S._getBBox(),pt=b.y-(at.y+at.height/2);pt&&l.is(pt,"finite")&&R(X[0],{dy:pt})}},Dt=function(S){return S.parentNode&&S.parentNode.tagName.toLowerCase()==="a"?S.parentNode:S},jt=function(S,E){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=l.matrix(),this.realPath=null,this.paper=E,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.top=this,this.next=null},Q=l.el;jt.prototype=Q,Q.constructor=jt,l._engine.path=function(S,E){var b=R("path");E.canvas&&E.canvas.appendChild(b);var N=new jt(b,E);return N.type="path",ft(N,{fill:"none",stroke:"#000",path:S}),N},Q.rotate=function(S,E,b){if(this.removed)return this;if((S=v(S).split(A)).length-1&&(E=y(S[1]),b=y(S[2])),S=y(S[0]),b==null&&(E=b),E==null||b==null){var N=this.getBBox(1);E=N.x+N.width/2,b=N.y+N.height/2}return this.transform(this._.transform.concat([["r",S,E,b]])),this},Q.scale=function(S,E,b,N){if(this.removed)return this;if((S=v(S).split(A)).length-1&&(E=y(S[1]),b=y(S[2]),N=y(S[3])),S=y(S[0]),E==null&&(E=S),N==null&&(b=N),b==null||N==null)var L=this.getBBox(1);return b=b??L.x+L.width/2,N=N??L.y+L.height/2,this.transform(this._.transform.concat([["s",S,E,b,N]])),this},Q.translate=function(S,E){return this.removed?this:((S=v(S).split(A)).length-1&&(E=y(S[1])),S=y(S[0])||0,E=+E||0,this.transform(this._.transform.concat([["t",S,E]])),this)},Q.transform=function(S){var E=this._;if(S==null)return E.transform;if(l._extractTransform(this,S),this.clip&&R(this.clip,{transform:this.matrix.invert()}),this.pattern&&mt(this),this.node&&R(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var b=this.attrs[u]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":b})}return this},Q.hide=function(){return this.removed||(this.node.style.display="none"),this},Q.show=function(){return this.removed||(this.node.style.display=""),this},Q.remove=function(){var S=Dt(this.node);if(!this.removed&&S.parentNode){var E=this.paper;for(var b in E.__set__&&E.__set__.exclude(this),$.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),l._tear(this,E),S.parentNode.removeChild(S),this.removeData(),this)this[b]=typeof this[b]=="function"?l._removedFactory(b):null;this.removed=!0}},Q._getBBox=function(){if(this.node.style.display=="none"){this.show();var S=!0}var E,b=!1;this.paper.canvas.parentElement?E=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(E=this.paper.canvas.parentNode.style),E&&E.display=="none"&&(b=!0,E.display="");var N={};try{N=this.node.getBBox()}catch{N={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{N=N||{},b&&(E.display="none")}return S&&this.hide(),N},Q.attr=function(S,E){if(this.removed)return this;if(S==null){var b={};for(var N in this.attrs)this.attrs[u](N)&&(b[N]=this.attrs[N]);return b.gradient&&b.fill=="none"&&(b.fill=b.gradient)&&delete b.gradient,b.transform=this._.transform,b}if(E==null&&l.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 L=S.split(A),V={},F=0,X=L.length;F<X;F++)(S=L[F])in this.attrs?V[S]=this.attrs[S]:l.is(this.paper.customAttributes[S],"function")?V[S]=this.paper.customAttributes[S].def:V[S]=l._availableAttrs[S];return X-1?V:V[L[0]]}if(E==null&&l.is(S,"array")){for(V={},F=0,X=S.length;F<X;F++)V[S[F]]=this.attr(S[F]);return V}if(E!=null){var z={};z[S]=E}else S!=null&&l.is(S,"object")&&(z=S);for(var Z in z)$("raphael.attr."+Z+"."+this.id,this,z[Z]);for(Z in this.paper.customAttributes)if(this.paper.customAttributes[u](Z)&&z[u](Z)&&l.is(this.paper.customAttributes[Z],"function")){var at=this.paper.customAttributes[Z].apply(this,[].concat(z[Z]));for(var pt in this.attrs[Z]=z[Z],at)at[u](pt)&&(z[pt]=at[pt])}return ft(this,z),this},Q.toFront=function(){if(this.removed)return this;var S=Dt(this.node);S.parentNode.appendChild(S);var E=this.paper;return E.top!=this&&l._tofront(this,E),this},Q.toBack=function(){if(this.removed)return this;var S=Dt(this.node),E=S.parentNode;return E.insertBefore(S,E.firstChild),l._toback(this,this.paper),this.paper,this},Q.insertAfter=function(S){if(this.removed||!S)return this;var E=Dt(this.node),b=Dt(S.node||S[S.length-1].node);return b.nextSibling?b.parentNode.insertBefore(E,b.nextSibling):b.parentNode.appendChild(E),l._insertafter(this,S,this.paper),this},Q.insertBefore=function(S){if(this.removed||!S)return this;var E=Dt(this.node),b=Dt(S.node||S[0].node);return b.parentNode.insertBefore(E,b),l._insertbefore(this,S,this.paper),this},Q.blur=function(S){var E=this;if(+S!=0){var b=R("filter"),N=R("feGaussianBlur");E.attrs.blur=S,b.id=l.createUUID(),R(N,{stdDeviation:+S||1.5}),b.appendChild(N),E.paper.defs.appendChild(b),E._blur=b,R(E.node,{filter:"url(#"+b.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},l._engine.circle=function(S,E,b,N){var L=R("circle");S.canvas&&S.canvas.appendChild(L);var V=new jt(L,S);return V.attrs={cx:E,cy:b,r:N,fill:"none",stroke:"#000"},V.type="circle",R(L,V.attrs),V},l._engine.rect=function(S,E,b,N,L,V){var F=R("rect");S.canvas&&S.canvas.appendChild(F);var X=new jt(F,S);return X.attrs={x:E,y:b,width:N,height:L,rx:V||0,ry:V||0,fill:"none",stroke:"#000"},X.type="rect",R(F,X.attrs),X},l._engine.ellipse=function(S,E,b,N,L){var V=R("ellipse");S.canvas&&S.canvas.appendChild(V);var F=new jt(V,S);return F.attrs={cx:E,cy:b,rx:N,ry:L,fill:"none",stroke:"#000"},F.type="ellipse",R(V,F.attrs),F},l._engine.image=function(S,E,b,N,L,V){var F=R("image");R(F,{x:b,y:N,width:L,height:V,preserveAspectRatio:"none"}),F.setAttributeNS(D,"href",E),S.canvas&&S.canvas.appendChild(F);var X=new jt(F,S);return X.attrs={x:b,y:N,width:L,height:V,src:E},X.type="image",X},l._engine.text=function(S,E,b,N){var L=R("text");S.canvas&&S.canvas.appendChild(L);var V=new jt(L,S);return V.attrs={x:E,y:b,"text-anchor":"middle",text:N,"font-family":l._availableAttrs["font-family"],"font-size":l._availableAttrs["font-size"],stroke:"none",fill:"#000"},V.type="text",ft(V,V.attrs),V},l._engine.setSize=function(S,E){return this.width=S||this.width,this.height=E||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},l._engine.create=function(){var S=l._getContainer.apply(0,arguments),E=S&&S.container;if(!E)throw new Error("SVG container not found.");var b,N=S.x,L=S.y,V=S.width,F=S.height,X=R("svg"),z="overflow:hidden;";return N=N||0,L=L||0,R(X,{height:F=F||342,version:1.1,width:V=V||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(X.style.cssText=z+"position:absolute;left:"+N+"px;top:"+L+"px",l._g.doc.body.appendChild(X),b=1):(X.style.cssText=z+"position:relative",E.firstChild?E.insertBefore(X,E.firstChild):E.appendChild(X)),(E=new l._Paper).width=V,E.height=F,E.canvas=X,E.clear(),E._left=E._top=0,b&&(E.renderfix=function(){}),E.renderfix(),E},l._engine.setViewBox=function(S,E,b,N,L){$("raphael.setViewBox",this,this._viewBox,[S,E,b,N,L]);var V,F,X=this.getSize(),z=x(b/X.width,N/X.height),Z=this.top,at=L?"xMidYMid meet":"xMinYMin";for(S==null?(this._vbSize&&(z=1),delete this._vbSize,V="0 0 "+this.width+O+this.height):(this._vbSize=z,V=S+O+E+O+b+O+N),R(this.canvas,{viewBox:V,preserveAspectRatio:at});z&&Z;)F="stroke-width"in Z.attrs?Z.attrs["stroke-width"]:1,Z.attr({"stroke-width":F}),Z._.dirty=1,Z._.dirtyT=1,Z=Z.prev;return this._viewBox=[S,E,b,N,!!L],this},l.prototype.renderfix=function(){var S,E=this.canvas,b=E.style;try{S=E.getScreenCTM()||E.createSVGMatrix()}catch{S=E.createSVGMatrix()}var N=-S.e%1,L=-S.f%1;(N||L)&&(N&&(this._left=(this._left+N)%1,b.left=this._left+"px"),L&&(this._top=(this._top+L)%1,b.top=this._top+"px"))},l.prototype.clear=function(){l.eve("raphael.clear",this);for(var S=this.canvas;S.firstChild;)S.removeChild(S.firstChild);this.bottom=this.top=null,(this.desc=R("desc")).appendChild(l._g.doc.createTextNode("Created with Raphaël "+l.version)),S.appendChild(this.desc),S.appendChild(this.defs=R("defs"))},l.prototype.remove=function(){for(var S in $("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[S]=typeof this[S]=="function"?l._removedFactory(S):null};var it=l.st;for(var st in Q)Q[u](st)&&!it[u](st)&&(it[st]=function(S){return function(){var E=arguments;return this.forEach(function(b){b[S].apply(b,E)})}}(st))}}.apply(i,s))===void 0||(n.exports=o)},function(n,i,r){var s,o;s=[r(0)],(o=function(l){if(!l||l.vml){var u="hasOwnProperty",v=String,y=parseFloat,g=Math,m=g.round,x=g.max,I=g.min,k=g.abs,A=/[, ]+/,$=l.eve,P=" ",O="",D={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},W=/([clmz]),?([^clmz]*)/gi,U=/ progid:\S+Blur\([^\)]+\)/g,R=/-?[^,\s-]+/g,rt="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",ct=21600,mt={path:1,rect:1,image:1},ht={circle:1,ellipse:1},lt=function(E,b,N){var L=l.matrix();return L.rotate(-E,.5,.5),{dx:L.x(b,N),dy:L.y(b,N)}},gt=function(E,b,N,L,V,F){var X=E._,z=E.matrix,Z=X.fillpos,at=E.node,pt=at.style,wt=1,Pt="",Et=ct/b,Nt=ct/N;if(pt.visibility="hidden",b&&N){if(at.coordsize=k(Et)+P+k(Nt),pt.rotation=F*(b*N<0?-1:1),F){var Lt=lt(F,L,V);L=Lt.dx,V=Lt.dy}if(b<0&&(Pt+="x"),N<0&&(Pt+=" y")&&(wt=-1),pt.flip=Pt,at.coordorigin=L*-Et+P+V*-Nt,Z||X.fillsize){var Vt=at.getElementsByTagName("fill");Vt=Vt&&Vt[0],at.removeChild(Vt),Z&&(Lt=lt(F,z.x(Z[0],Z[1]),z.y(Z[0],Z[1])),Vt.position=Lt.dx*wt+P+Lt.dy*wt),X.fillsize&&(Vt.size=X.fillsize[0]*k(b)+P+X.fillsize[1]*k(N)),at.appendChild(Vt)}pt.visibility="visible"}};l.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
49
+ You are running Raphaël `+this.version};var ft,At=function(E,b,N){for(var L=v(b).toLowerCase().split("-"),V=N?"end":"start",F=L.length,X="classic",z="medium",Z="medium";F--;)switch(L[F]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":X=L[F];break;case"wide":case"narrow":Z=L[F];break;case"long":case"short":z=L[F]}var at=E.node.getElementsByTagName("stroke")[0];at[V+"arrow"]=X,at[V+"arrowlength"]=z,at[V+"arrowwidth"]=Z},Dt=function(E,b){E.attrs=E.attrs||{};var N=E.node,L=E.attrs,V=N.style,F=mt[E.type]&&(b.x!=L.x||b.y!=L.y||b.width!=L.width||b.height!=L.height||b.cx!=L.cx||b.cy!=L.cy||b.rx!=L.rx||b.ry!=L.ry||b.r!=L.r),X=ht[E.type]&&(L.cx!=b.cx||L.cy!=b.cy||L.r!=b.r||L.rx!=b.rx||L.ry!=b.ry),z=E;for(var Z in b)b[u](Z)&&(L[Z]=b[Z]);if(F&&(L.path=l._getPath[E.type](E),E._.dirty=1),b.href&&(N.href=b.href),b.title&&(N.title=b.title),b.target&&(N.target=b.target),b.cursor&&(V.cursor=b.cursor),"blur"in b&&E.blur(b.blur),(b.path&&E.type=="path"||F)&&(N.path=function(ce){var Ze=/[ahqstv]/gi,Pn=l._pathToAbsolute;if(v(ce).match(Ze)&&(Pn=l._path2curve),Ze=/[clmz]/g,Pn==l._pathToAbsolute&&!v(ce).match(Ze)){var Te=v(ce).replace(W,function(Zr,Nn,cn){var Qe=[],hi=Nn.toLowerCase()=="m",un=D[Nn];return cn.replace(R,function(hn){hi&&Qe.length==2&&(un+=Qe+D[Nn=="m"?"l":"L"],Qe=[]),Qe.push(m(hn*ct))}),un+Qe});return Te}var We,Me,qn=Pn(ce);Te=[];for(var ln=0,In=qn.length;ln<In;ln++){We=qn[ln],(Me=qn[ln][0].toLowerCase())=="z"&&(Me="x");for(var Fe=1,me=We.length;Fe<me;Fe++)Me+=m(We[Fe]*ct)+(Fe!=me-1?",":O);Te.push(Me)}return Te.join(P)}(~v(L.path).toLowerCase().indexOf("r")?l._pathToAbsolute(L.path):L.path),E._.dirty=1,E.type=="image"&&(E._.fillpos=[L.x,L.y],E._.fillsize=[L.width,L.height],gt(E,1,1,0,0,0))),"transform"in b&&E.transform(b.transform),X){var at=+L.cx,pt=+L.cy,wt=+L.rx||+L.r||0,Pt=+L.ry||+L.r||0;N.path=l.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",m((at-wt)*ct),m((pt-Pt)*ct),m((at+wt)*ct),m((pt+Pt)*ct),m(at*ct)),E._.dirty=1}if("clip-rect"in b){var Et=v(b["clip-rect"]).split(A);if(Et.length==4){Et[2]=+Et[2]+ +Et[0],Et[3]=+Et[3]+ +Et[1];var Nt=N.clipRect||l._g.doc.createElement("div"),Lt=Nt.style;Lt.clip=l.format("rect({1}px {2}px {3}px {0}px)",Et),N.clipRect||(Lt.position="absolute",Lt.top=0,Lt.left=0,Lt.width=E.paper.width+"px",Lt.height=E.paper.height+"px",N.parentNode.insertBefore(Nt,N),Nt.appendChild(N),N.clipRect=Nt)}b["clip-rect"]||N.clipRect&&(N.clipRect.style.clip="auto")}if(E.textpath){var Vt=E.textpath.style;b.font&&(Vt.font=b.font),b["font-family"]&&(Vt.fontFamily='"'+b["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,O)+'"'),b["font-size"]&&(Vt.fontSize=b["font-size"]),b["font-weight"]&&(Vt.fontWeight=b["font-weight"]),b["font-style"]&&(Vt.fontStyle=b["font-style"])}if("arrow-start"in b&&At(z,b["arrow-start"]),"arrow-end"in b&&At(z,b["arrow-end"],1),b.opacity!=null||b.fill!=null||b.src!=null||b.stroke!=null||b["stroke-width"]!=null||b["stroke-opacity"]!=null||b["fill-opacity"]!=null||b["stroke-dasharray"]!=null||b["stroke-miterlimit"]!=null||b["stroke-linejoin"]!=null||b["stroke-linecap"]!=null){var yt=N.getElementsByTagName("fill");if(!(yt=yt&&yt[0])&&(yt=ft("fill")),E.type=="image"&&b.src&&(yt.src=b.src),b.fill&&(yt.on=!0),yt.on!=null&&b.fill!="none"&&b.fill!==null||(yt.on=!1),yt.on&&b.fill){var Xt=v(b.fill).match(l._ISURL);if(Xt){yt.parentNode==N&&N.removeChild(yt),yt.rotate=!0,yt.src=Xt[1],yt.type="tile";var $t=E.getBBox(1);yt.position=$t.x+P+$t.y,E._.fillpos=[$t.x,$t.y],l._preload(Xt[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else yt.color=l.getRGB(b.fill).hex,yt.src=O,yt.type="solid",l.getRGB(b.fill).error&&(z.type in{circle:1,ellipse:1}||v(b.fill).charAt()!="r")&&jt(z,b.fill,yt)&&(L.fill="none",L.gradient=b.fill,yt.rotate=!1)}if("fill-opacity"in b||"opacity"in b){var ee=((+L["fill-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+l.getRGB(b.fill).o+1||2)-1);ee=I(x(ee,0),1),yt.opacity=ee,yt.src&&(yt.color="none")}N.appendChild(yt);var Ht=N.getElementsByTagName("stroke")&&N.getElementsByTagName("stroke")[0],Ee=!1;!Ht&&(Ee=Ht=ft("stroke")),(b.stroke&&b.stroke!="none"||b["stroke-width"]||b["stroke-opacity"]!=null||b["stroke-dasharray"]||b["stroke-miterlimit"]||b["stroke-linejoin"]||b["stroke-linecap"])&&(Ht.on=!0),(b.stroke=="none"||b.stroke===null||Ht.on==null||b.stroke==0||b["stroke-width"]==0)&&(Ht.on=!1);var fe=l.getRGB(b.stroke);Ht.on&&b.stroke&&(Ht.color=fe.hex),ee=((+L["stroke-opacity"]+1||2)-1)*((+L.opacity+1||2)-1)*((+fe.o+1||2)-1);var Ye=.75*(y(b["stroke-width"])||1);if(ee=I(x(ee,0),1),b["stroke-width"]==null&&(Ye=L["stroke-width"]),b["stroke-width"]&&(Ht.weight=Ye),Ye&&Ye<1&&(ee*=Ye)&&(Ht.weight=1),Ht.opacity=ee,b["stroke-linejoin"]&&(Ht.joinstyle=b["stroke-linejoin"]||"miter"),Ht.miterlimit=b["stroke-miterlimit"]||8,b["stroke-linecap"]&&(Ht.endcap=b["stroke-linecap"]=="butt"?"flat":b["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in b){var Tn={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Ht.dashstyle=Tn[u](b["stroke-dasharray"])?Tn[b["stroke-dasharray"]]:O}Ee&&N.appendChild(Ht)}if(z.type=="text"){z.paper.canvas.style.display=O;var Ue=z.paper.span,on=L.font&&L.font.match(/\d+(?:\.\d*)?(?=px)/);V=Ue.style,L.font&&(V.font=L.font),L["font-family"]&&(V.fontFamily=L["font-family"]),L["font-weight"]&&(V.fontWeight=L["font-weight"]),L["font-style"]&&(V.fontStyle=L["font-style"]),on=y(L["font-size"]||on&&on[0])||10,V.fontSize=100*on+"px",z.textpath.string&&(Ue.innerHTML=v(z.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var an=Ue.getBoundingClientRect();z.W=L.w=(an.right-an.left)/100,z.H=L.h=(an.bottom-an.top)/100,z.X=L.x,z.Y=L.y+z.H/2,("x"in b||"y"in b)&&(z.path.v=l.format("m{0},{1}l{2},{1}",m(L.x*ct),m(L.y*ct),m(L.x*ct)+1));for(var Xe=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ke=0,ui=Xe.length;Ke<ui;Ke++)if(Xe[Ke]in b){z._.dirty=1;break}switch(L["text-anchor"]){case"start":z.textpath.style["v-text-align"]="left",z.bbx=z.W/2;break;case"end":z.textpath.style["v-text-align"]="right",z.bbx=-z.W/2;break;default:z.textpath.style["v-text-align"]="center",z.bbx=0}z.textpath.style["v-text-kern"]=!0}},jt=function(E,b,N){E.attrs=E.attrs||{},E.attrs;var L=Math.pow,V="linear",F=".5 .5";if(E.attrs.gradient=b,b=(b=v(b).replace(l._radial_gradient,function(wt,Pt,Et){return V="radial",Pt&&Et&&(Pt=y(Pt),Et=y(Et),L(Pt-.5,2)+L(Et-.5,2)>.25&&(Et=g.sqrt(.25-L(Pt-.5,2))*(2*(Et>.5)-1)+.5),F=Pt+P+Et),O})).split(/\s*\-\s*/),V=="linear"){var X=b.shift();if(X=-y(X),isNaN(X))return null}var z=l._parseDots(b);if(!z)return null;if(E=E.shape||E.node,z.length){E.removeChild(N),N.on=!0,N.method="none",N.color=z[0].color,N.color2=z[z.length-1].color;for(var Z=[],at=0,pt=z.length;at<pt;at++)z[at].offset&&Z.push(z[at].offset+P+z[at].color);N.colors=Z.length?Z.join():"0% "+N.color,V=="radial"?(N.type="gradientTitle",N.focus="100%",N.focussize="0 0",N.focusposition=F,N.angle=0):(N.type="gradient",N.angle=(270-X)%360),E.appendChild(N)}return 1},Q=function(E,b){this[0]=this.node=E,E.raphael=!0,this.id=l._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=b,this.matrix=l.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!b.bottom&&(b.bottom=this),this.prev=b.top,b.top&&(b.top.next=this),b.top=this,this.next=null},it=l.el;Q.prototype=it,it.constructor=Q,it.transform=function(E){if(E==null)return this._.transform;var b,N=this.paper._viewBoxShift,L=N?"s"+[N.scale,N.scale]+"-1-1t"+[N.dx,N.dy]:O;N&&(b=E=v(E).replace(/\.{3}|\u2026/g,this._.transform||O)),l._extractTransform(this,L+E);var V,F=this.matrix.clone(),X=this.skew,z=this.node,Z=~v(this.attrs.fill).indexOf("-"),at=!v(this.attrs.fill).indexOf("url(");if(F.translate(1,1),at||Z||this.type=="image")if(X.matrix="1 0 0 1",X.offset="0 0",V=F.split(),Z&&V.noRotation||!V.isSimple){z.style.filter=F.toFilter();var pt=this.getBBox(),wt=this.getBBox(1),Pt=pt.x-wt.x,Et=pt.y-wt.y;z.coordorigin=Pt*-ct+P+Et*-ct,gt(this,1,1,Pt,Et,0)}else z.style.filter=O,gt(this,V.scalex,V.scaley,V.dx,V.dy,V.rotate);else z.style.filter=O,X.matrix=v(F),X.offset=F.offset();return b!==null&&(this._.transform=b,l._extractTransform(this,b)),this},it.rotate=function(E,b,N){if(this.removed)return this;if(E!=null){if((E=v(E).split(A)).length-1&&(b=y(E[1]),N=y(E[2])),E=y(E[0]),N==null&&(b=N),b==null||N==null){var L=this.getBBox(1);b=L.x+L.width/2,N=L.y+L.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,b,N]])),this}},it.translate=function(E,b){return this.removed?this:((E=v(E).split(A)).length-1&&(b=y(E[1])),E=y(E[0])||0,b=+b||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=b),this.transform(this._.transform.concat([["t",E,b]])),this)},it.scale=function(E,b,N,L){if(this.removed)return this;if((E=v(E).split(A)).length-1&&(b=y(E[1]),N=y(E[2]),L=y(E[3]),isNaN(N)&&(N=null),isNaN(L)&&(L=null)),E=y(E[0]),b==null&&(b=E),L==null&&(N=L),N==null||L==null)var V=this.getBBox(1);return N=N??V.x+V.width/2,L=L??V.y+V.height/2,this.transform(this._.transform.concat([["s",E,b,N,L]])),this._.dirtyT=1,this},it.hide=function(){return!this.removed&&(this.node.style.display="none"),this},it.show=function(){return!this.removed&&(this.node.style.display=O),this},it.auxGetBBox=l.el.getBBox,it.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var b={},N=1/this.paper._viewBoxShift.scale;return b.x=E.x-this.paper._viewBoxShift.dx,b.x*=N,b.y=E.y-this.paper._viewBoxShift.dy,b.y*=N,b.width=E.width*N,b.height=E.height*N,b.x2=b.x+b.width,b.y2=b.y+b.height,b}return E},it._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}},it.remove=function(){if(!this.removed&&this.node.parentNode){for(var E in this.paper.__set__&&this.paper.__set__.exclude(this),l.eve.unbind("raphael.*.*."+this.id),l._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?l._removedFactory(E):null;this.removed=!0}},it.attr=function(E,b){if(this.removed)return this;if(E==null){var N={};for(var L in this.attrs)this.attrs[u](L)&&(N[L]=this.attrs[L]);return N.gradient&&N.fill=="none"&&(N.fill=N.gradient)&&delete N.gradient,N.transform=this._.transform,N}if(b==null&&l.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var V=E.split(A),F={},X=0,z=V.length;X<z;X++)(E=V[X])in this.attrs?F[E]=this.attrs[E]:l.is(this.paper.customAttributes[E],"function")?F[E]=this.paper.customAttributes[E].def:F[E]=l._availableAttrs[E];return z-1?F:F[V[0]]}if(this.attrs&&b==null&&l.is(E,"array")){for(F={},X=0,z=E.length;X<z;X++)F[E[X]]=this.attr(E[X]);return F}var Z;for(var at in b!=null&&((Z={})[E]=b),b==null&&l.is(E,"object")&&(Z=E),Z)$("raphael.attr."+at+"."+this.id,this,Z[at]);if(Z){for(at in this.paper.customAttributes)if(this.paper.customAttributes[u](at)&&Z[u](at)&&l.is(this.paper.customAttributes[at],"function")){var pt=this.paper.customAttributes[at].apply(this,[].concat(Z[at]));for(var wt in this.attrs[at]=Z[at],pt)pt[u](wt)&&(Z[wt]=pt[wt])}Z.text&&this.type=="text"&&(this.textpath.string=Z.text),Dt(this,Z)}return this},it.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&l._tofront(this,this.paper),this},it.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),l._toback(this,this.paper)),this)},it.insertAfter=function(E){return this.removed?this:(E.constructor==l.st.constructor&&(E=E[E.length-1]),E.node.nextSibling?E.node.parentNode.insertBefore(this.node,E.node.nextSibling):E.node.parentNode.appendChild(this.node),l._insertafter(this,E,this.paper),this)},it.insertBefore=function(E){return this.removed?this:(E.constructor==l.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),l._insertbefore(this,E,this.paper),this)},it.blur=function(E){var b=this.node.runtimeStyle,N=b.filter;return N=N.replace(U,O),+E!=0?(this.attrs.blur=E,b.filter=N+P+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",b.margin=l.format("-{0}px 0 0 -{0}px",m(+E||1.5))):(b.filter=N,b.margin=0,delete this.attrs.blur),this},l._engine.path=function(E,b){var N=ft("shape");N.style.cssText=rt,N.coordsize=ct+P+ct,N.coordorigin=b.coordorigin;var L=new Q(N,b),V={fill:"none",stroke:"#000"};E&&(V.path=E),L.type="path",L.path=[],L.Path=O,Dt(L,V),b.canvas&&b.canvas.appendChild(N);var F=ft("skew");return F.on=!0,N.appendChild(F),L.skew=F,L.transform(O),L},l._engine.rect=function(E,b,N,L,V,F){var X=l._rectPath(b,N,L,V,F),z=E.path(X),Z=z.attrs;return z.X=Z.x=b,z.Y=Z.y=N,z.W=Z.width=L,z.H=Z.height=V,Z.r=F,Z.path=X,z.type="rect",z},l._engine.ellipse=function(E,b,N,L,V){var F=E.path();return F.attrs,F.X=b-L,F.Y=N-V,F.W=2*L,F.H=2*V,F.type="ellipse",Dt(F,{cx:b,cy:N,rx:L,ry:V}),F},l._engine.circle=function(E,b,N,L){var V=E.path();return V.attrs,V.X=b-L,V.Y=N-L,V.W=V.H=2*L,V.type="circle",Dt(V,{cx:b,cy:N,r:L}),V},l._engine.image=function(E,b,N,L,V,F){var X=l._rectPath(N,L,V,F),z=E.path(X).attr({stroke:"none"}),Z=z.attrs,at=z.node,pt=at.getElementsByTagName("fill")[0];return Z.src=b,z.X=Z.x=N,z.Y=Z.y=L,z.W=Z.width=V,z.H=Z.height=F,Z.path=X,z.type="image",pt.parentNode==at&&at.removeChild(pt),pt.rotate=!0,pt.src=b,pt.type="tile",z._.fillpos=[N,L],z._.fillsize=[V,F],at.appendChild(pt),gt(z,1,1,0,0,0),z},l._engine.text=function(E,b,N,L){var V=ft("shape"),F=ft("path"),X=ft("textpath");b=b||0,N=N||0,L=L||"",F.v=l.format("m{0},{1}l{2},{1}",m(b*ct),m(N*ct),m(b*ct)+1),F.textpathok=!0,X.string=v(L),X.on=!0,V.style.cssText=rt,V.coordsize=ct+P+ct,V.coordorigin="0 0";var z=new Q(V,E),Z={fill:"#000",stroke:"none",font:l._availableAttrs.font,text:L};z.shape=V,z.path=F,z.textpath=X,z.type="text",z.attrs.text=v(L),z.attrs.x=b,z.attrs.y=N,z.attrs.w=1,z.attrs.h=1,Dt(z,Z),V.appendChild(X),V.appendChild(F),E.canvas.appendChild(V);var at=ft("skew");return at.on=!0,V.appendChild(at),z.skew=at,z.transform(O),z},l._engine.setSize=function(E,b){var N=this.canvas.style;return this.width=E,this.height=b,E==+E&&(E+="px"),b==+b&&(b+="px"),N.width=E,N.height=b,N.clip="rect(0 "+E+" "+b+" 0)",this._viewBox&&l._engine.setViewBox.apply(this,this._viewBox),this},l._engine.setViewBox=function(E,b,N,L,V){l.eve("raphael.setViewBox",this,this._viewBox,[E,b,N,L,V]);var F,X,z=this.getSize(),Z=z.width,at=z.height;return V&&(N*(F=at/L)<Z&&(E-=(Z-N*F)/2/F),L*(X=Z/N)<at&&(b-=(at-L*X)/2/X)),this._viewBox=[E,b,N,L,!!V],this._viewBoxShift={dx:-E,dy:-b,scale:z},this.forEach(function(pt){pt.transform("...")}),this},l._engine.initWin=function(E){var b=E.document;b.styleSheets.length<31?b.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):b.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!b.namespaces.rvml&&b.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),ft=function(N){return b.createElement("<rvml:"+N+' class="rvml">')}}catch{ft=function(L){return b.createElement("<"+L+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},l._engine.initWin(l._g.win),l._engine.create=function(){var E=l._getContainer.apply(0,arguments),b=E.container,N=E.height,L=E.width,V=E.x,F=E.y;if(!b)throw new Error("VML container not found.");var X=new l._Paper,z=X.canvas=l._g.doc.createElement("div"),Z=z.style;return V=V||0,F=F||0,L=L||512,N=N||342,X.width=L,X.height=N,L==+L&&(L+="px"),N==+N&&(N+="px"),X.coordsize=216e5+P+216e5,X.coordorigin="0 0",X.span=l._g.doc.createElement("span"),X.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",z.appendChild(X.span),Z.cssText=l.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",L,N),b==1?(l._g.doc.body.appendChild(z),Z.left=V+"px",Z.top=F+"px",Z.position="absolute"):b.firstChild?b.insertBefore(z,b.firstChild):b.appendChild(z),X.renderfix=function(){},X},l.prototype.clear=function(){l.eve("raphael.clear",this),this.canvas.innerHTML=O,this.span=l._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},l.prototype.remove=function(){for(var E in l.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?l._removedFactory(E):null;return!0};var st=l.st;for(var S in it)it[u](S)&&!st[u](S)&&(st[S]=function(E){return function(){var b=arguments;return this.forEach(function(N){N[E].apply(N,b)})}}(S))}}.apply(i,s))===void 0||(n.exports=o)}])})})(Tc);var Wd=Tc.exports;const Se=eo(Wd);class Co{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 l=0,u=r-1;l<r;u=l,l++){const v=this.points[l].x,y=this.points[l].y,g=this.points[u].x,m=this.points[u].y;if(v===n&&y===i||g===n&&m===i||i===y&&i===m)return!0;if(i>=y&&i<m||i<y&&i>=m){const x=(g-v)/(m-y),I=v+x*(i-y);if(I===n||Math.abs(I-n)<o)return!0;I>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 Co;for(let l=0;l<=s*i;l+=1){const u=Math.floor(l/s)/i*2*Math.PI,v=t+Math.cos(u)*r,y=n+Math.sin(u)*r;o.addPoint(new kn({x:v,y}))}return o}}const Pc=Co;Se.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Se.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Se.fn.importSVG=function(e,t){const n=Un.fromRawSVG(e);return n.toRaphael(this,(i,r)=>{n.save(),t&&t(i),r(),n.restore()}),this},Se.fn.NPolygonPath=function(e,t,n,i,r=2){return{shape:this.path(Pc.generateInMultiplePoint(e,t,n,i,r).toSVGPathD()),afterPath:Pc.generateInMultiplePoint(e,t,n*r,i,1).toSVGPathD()}},Se.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Se.fn.brickwall=function(e,t,n,i,r){for(var s=i/r,o=n/3,l={fill:"firebrick",stroke:"#CCC"},u=0;u<r;u+=1){var v=this.rect(0,0,o,s).attr(l),y=this.rect(0,0,2*o,s).attr(l);u%2?(v.transform("T"+e+","+(t+u*s)),y.transform("T"+(e+o)+","+(t+u*s))):(y.transform("T"+e+","+(t+u*s)),v.transform("T"+(e+2*o)+","+(t+u*s)))}},Se.fn.rosetta=function(e,t,n,i,r){const s=kc.generateRosetta(e,t,n,i,r);return s.center,this.path(s.toSVGPathD())},Se.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))}}},Se.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),l=t+n*Math.sin(s*Math.PI/180);i+="L"+o+","+l}return this.path(i).attr("stroke-width",0).attr("fill","red")},Se.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")},Se.el.redder=function(){const e=Se.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Se.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(),l=n.getPointAtLength(t*o);return s&&s.attr("path",n.getSubpath(0,t*o)),{transform:"t"+(l.x+r.x)+","+(l.y+r.y)+"r"+l.alpha}}};const Ic=Se;class Un{pgs=[];history=[];save(){this.history.push(Vl(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,l,u]=r.bounds,[v,y]=r.size;t=Math.max(t,s,s+v,l),n=Math.max(n,o,o+y,u)}}),[Math.ceil(t),Math.ceil(n)]}static fromRawSVG(t){return Un.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const n=new Un,i=Ed(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 l={attrs:{}};for(const u in o)u==="type"||u==="path"||u==="transform"||(l.attrs[u]=o[u]);switch(o.type){case"path":l.d=o.path,l.pg=kc.fromSVGPathD(o.path,o.transform);break}n.pgs.push(l)}return n}toRaphael(t,n){let i;t instanceof HTMLElement?i=Ic(HTMLElement):typeof t=="string"?i=Ic(document.getElementById(t)):i=t;const[r,s]=this.size;i.setSize(r,s);const o=(l=!1)=>{for(let u=0,v=this.pgs.length;u<v;u++){const y=this.pgs[u];if(y.pg&&(y.raphaelPath?y.raphaelPath.attr("path",y.pg.toSVGPathD()):y.raphaelPath=i.path(y.pg.toSVGPathD()),y.raphaelPath.attr(y.attrs)),l&&n){const g=m=>{const{x,y:I}=io(i.canvas,m),k=this.pgs.find(A=>A.raphaelPath?.isPointInside(x,I));k&&n?.(k,o)};y.raphaelPath?.unclick(g),y.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 Br(i),l=()=>{o.clearRect(0,0,r,s);for(let v=0,y=this.pgs.length;v<y;v++){const g=this.pgs[v];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())}};l();const u=v=>{const{x:y,y:g}=io(o.canvas,v),m=this.pgs.find(x=>x.pg?.isPointInPath(y,g));m&&n?.(m,l)};return i.removeEventListener("click",u),i.addEventListener("click",u),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"){tc(nd(t),`${n}.svg`)}toDownloadSVGElement(t,n="shape"){return Un.toDownloadSVGElement(t,n),this}static toDownloadSVGString(t,n="shape"){tc(Jl(t),`${n}.svg`)}toDownloadSVGString(t,n="shape"){return Un.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 Br{canvas;context;customContext;constructor(t){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new $r({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),l=this.customContext.createLinearGradient(t,n,i,r);return s&&Object.keys(s).forEach(u=>{const v=parseFloat(u);o.addColorStop(v,s[v]),l.addColorStop(v,s[v])}),{gradient:o,gradientCustom:l}}createRadialGradient(t,n,i,r,s,o,l){const u=this.context.createRadialGradient(t,n,i,r,s,o),v=this.customContext.createRadialGradient(t,n,i,r,s,o);return l&&Object.keys(l).forEach(y=>{const g=parseFloat(y);u.addColorStop(g,l[g]),v.addColorStop(g,l[g])}),{gradient:u,gradientCustom:v}}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 Un.fromRawSVG(t)}}class Nc extends Jf{container;hammer;mousePoint;ctx;removeEventListeners=[];constructor(t=document.documentElement){super(),this.container=t,this.hammer=new hd(this.container),this.mousePoint=new kn({x:0,y:0}),this.container instanceof HTMLCanvasElement&&(this.ctx=new Br(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=io(this.container,t);this.mousePoint.x=n.x,this.mousePoint.y=n.y}initEventListeners(){const t=new ResizeObserver(Q=>{const{width:it,height:st}=Q[0].contentRect;this.emit("resize",it,st)}),n=Q=>{this.emit("mouseDown",Q),this.container.style.userSelect="none"},i=Q=>{this.emit("mouseUp",Q),this.container.style.userSelect=""},r=Q=>{this.emit("mouseMove",Q)},s=Q=>{this.emit("mouseOver",Q)},o=Q=>{this.emit("mouseOut",Q),this.container.style.userSelect=""},l=Q=>{this.emit("mouseClick",Q)},u=Q=>{this.emit("mouseDoubleClick",Q)},v=Q=>{this.emit("mouseWheel",Q)},y=Q=>{this.emit("mouseContextMenu",Q)},g=Q=>{this.emit("touchStart",Q),this.container.style.userSelect="none"},m=Q=>{this.emit("touchEnd",Q),this.container.style.userSelect=""},x=Q=>{this.emit("touchCancel",Q),this.container.style.userSelect=""},I=Q=>{this.emit("touchMove",Q)},k=Q=>{this.emit("pointerDown",Q),this.container.style.userSelect="none"},A=Q=>{this.emit("pointerUp",Q),this.container.style.userSelect=""},$=Q=>{this.emit("pointerCancel",Q),this.container.style.userSelect=""},P=Q=>{this.emit("pointerMove",Q)},O=Q=>{this.emit("pan",Q)},D=Q=>{this.emit("panStart",Q),this.container.style.userSelect="none"},W=Q=>{this.emit("panMove",Q)},U=Q=>{this.emit("panEnd",Q),this.container.style.userSelect=""},R=Q=>{this.emit("panCancel",Q),this.container.style.userSelect=""},rt=Q=>{this.emit("panLeft",Q)},ct=Q=>{this.emit("panRight",Q)},mt=Q=>{this.emit("panUp",Q),this.container.style.userSelect=""},ht=Q=>{this.emit("panDown",Q),this.container.style.userSelect="none"},lt=Q=>{this.emit("pinch",Q)},gt=Q=>{this.emit("press",Q)},ft=Q=>{this.emit("rotate",Q)},At=Q=>{this.emit("swipe",Q)},Dt=Q=>{this.emit("tap",Q)},jt=Q=>{!Q.target||this.container==Q.target||this.container.contains(Q.target)||this.emit("tapOutSide",Q)};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",l),this.container.addEventListener("dblclick",u),this.container.addEventListener("wheel",v),this.container.addEventListener("contextmenu",y),this.container.addEventListener("touchstart",g),this.container.addEventListener("touchend",m),this.container.addEventListener("touchcancel",x),this.container.addEventListener("touchmove",I),this.container.addEventListener("pointerdown",k),this.container.addEventListener("pointerup",A),this.container.addEventListener("pointercancel",$),this.container.addEventListener("pointermove",P),this.hammer.on("pan",O),this.hammer.on("panstart",D),this.hammer.on("panmove",W),this.hammer.on("panend",U),this.hammer.on("pancancel",R),this.hammer.on("panleft",rt),this.hammer.on("panright",ct),this.hammer.on("panup",mt),this.hammer.on("pandown",ht),this.hammer.on("pinch",lt),this.hammer.on("press",gt),this.hammer.on("rotate",ft),this.hammer.on("swipe",At),this.hammer.on("tap",Dt),document.addEventListener("pointerdown",jt,!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",l),this.container.removeEventListener("dblclick",u),this.container.removeEventListener("wheel",v),this.container.removeEventListener("contextmenu",y),this.container.removeEventListener("touchstart",g),this.container.removeEventListener("touchend",m),this.container.removeEventListener("touchcancel",x),this.container.removeEventListener("touchmove",I),this.container.removeEventListener("pointerdown",k),this.container.removeEventListener("pointerup",A),this.container.removeEventListener("pointercancel",$),this.container.removeEventListener("pointermove",P),this.hammer.off("pan",O),this.hammer.off("panstart",D),this.hammer.off("panmove",W),this.hammer.off("panend",U),this.hammer.off("pancancel",R),this.hammer.off("panleft",rt),this.hammer.off("panright",ct),this.hammer.off("panup",mt),this.hammer.off("pandown",ht),this.hammer.off("pinch",lt),this.hammer.off("press",gt),this.hammer.off("rotate",ft),this.hammer.off("swipe",At),this.hammer.off("tap",Dt),document.removeEventListener("pointerdown",jt,!1),document.removeEventListener("touchstart",jt,!1),document.removeEventListener("mousedown",jt,!1)}}registerKeyDown(t,n,i){const r=gd.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",l=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),u=l.data,v=Oc(o);this.captureMove({start:()=>{i=!0},end:()=>{i=!1},move:()=>{if(i){for(let y=0;y<s;y++){const g=Math.random()*Math.PI*2,m=Math.random()*r,x=this.mousePoint.x+Math.cos(g)*m|0,I=this.mousePoint.y+Math.sin(g)*m|0,k=(x+I*l.width)*4;u[k]=v>>16&255,u[k+1]=v>>8&255,u[k+2]=v&255,u[k+3]=255}this.ctx.putImageData(l)}}});break;case"line":default:this.captureMove({start:y=>{i=!0,this.ctx.beginPath(),this.setMousePoint(y),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 It{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){
25
50
  let output = "";
26
51
  function echo(html){
27
52
  output += html;
28
53
  }
29
54
  ${t}
30
55
  return output;
31
- })`}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 lazyloadImages(){const t=document.getElementsByTagName("img"),r=IO().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(){var i;(i=n.contentWindow)==null||i.postMessage(t,r)},4e3),setTimeout(function(){n.remove()},6e3)}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.")}}jt(ee,"dom",new Proxy({},{get(t,r){return function(n={},...i){const o=document.createElement(r);for(const a of Object.keys(n))o.setAttribute(a,n[a]);for(const a of i)typeof a=="string"?o.appendChild(document.createTextNode(a)):o.appendChild(a);return o}}})),jt(ee,"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()}})})),jt(ee,"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}),jt(ee,"getFixedWidthText",(t,r,n=12,i=400,o=!0)=>{let a="",s="",c="";if(!t||r<n||typeof t!="string")return a;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 d=0,f=l.length;d<f;d++){const h=l[d];if(s=c,c+=h,a=c,u.innerText=c,u.offsetWidth>r){o?a=s+"...":a=s;break}}return document.body.removeChild(u),a}),jt(ee,"copyToClipboard",t=>navigator.clipboard.writeText(t)),jt(ee,"getSelectedText",()=>{var t;return(t=window.getSelection())==null?void 0:t.toString()}),jt(ee,"siblings",t=>{var r;return Array.prototype.slice.call((r=t.parentNode)==null?void 0:r.children).filter(n=>n!==t)}),jt(ee,"isElementFocus",t=>t===document.activeElement),jt(ee,"isTabInView",()=>!document.hidden),jt(ee,"navigateBack",()=>history.back()),jt(ee,"navigateBack2",()=>history.go(-1));function bi(e,t=document){return new UO(e,t)}let UO=class br{constructor(t,r=document){jt(this,"context");jt(this,"nodes");jt(this,"prefixs",["moz","o","ms","webkit"]);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 br(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(a=>{a.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=br._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 a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};return t.tagName=="SCRIPT"&&(t=r(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{var i;(i=n.parentNode)==null||i.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 br.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 a=br._fragment(r);i.push(...a.children),o[t](a)});else if(r instanceof HTMLElement)this.each(o=>{const a=n===1?r:br._fragment(r.outerHTML);i.push(...n===1?[r]:a.children),o[t](a)}),n>1&&r.remove();else if(r instanceof br){const o=n==1;r.each(a=>{this.each(s=>{const c=o?a:a.cloneNode(!0);i.push(c),s[t](c),br._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){var r;(r=t.parentElement)==null||r.removeChild(t)}find(t){const r=[];return this.nodes.forEach(n=>{r.push(...Array.from(n.querySelectorAll(t)))}),new br(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 br(r,this.context)}next(){const t=[];return this.nodes.forEach(r=>{const n=r.nextElementSibling;n&&t.push(n)}),new br(t,this.context)}prev(){const t=[];return this.nodes.forEach(r=>{const n=r.previousElementSibling;n&&t.push(n)}),new br(t,this.context)}closest(t){const r=[];return this.nodes.forEach(n=>{const i=n.closest(t);i&&r.push(i)}),new br(r,this.context)}shadow(t){const r=[];this.nodes.forEach(i=>{i.shadowRoot&&r.push(i.shadowRoot)});const n=new br(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=a=>{if(n.indexOf(a)==-1&&n.push(a),!r&&a.parentElement)return i(a.parentElement)};this.nodes.forEach(a=>{a.parentElement&&i(a.parentElement)});const o=new br(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:""):br.getComputedStyle(this.nodes[0],t)}else{const i=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(o=>!!o).map(o=>o.split(":").map(a=>a.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 a=String(n[o]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(o,String(n[o]).replace(/!important/i,""),a)})}),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 a="toggle";r!==void 0&&(a=r?"add":"remove"),i.classList[a](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,a])=>{i.setAttribute(o,a)})}),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,a])=>{const s=br._fixProp(o);i[s]=a,s=="innerHTML"&&br._scriptConvert(i)})}),this}}removeProp(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n[br._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=>{var o,a;if((o=n[i])!=null&&o.startsWith("[")||(a=n[i])!=null&&a.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,a])=>{a!=null?i.dataset[o]=a instanceof Object?JSON.stringify(a):a: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=>{var a;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=((a=r._mQuery)==null?void 0:a.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 wf(e){return e*Math.PI/180}function zO(e){return e*180/Math.PI}function GO(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function VO(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function xf(e){return e[0]*e[0]+e[1]*e[1]}function zy(e){const t=Math.sqrt(xf(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}let Gy=class eg{constructor(t){jt(this,"x");jt(this,"y");jt(this,"vx");jt(this,"vy");jt(this,"ax");jt(this,"ay");jt(this,"mass");this.x=t.x,this.y=t.y,this.vx=(t==null?void 0:t.vx)||0,this.vy=(t==null?void 0:t.vy)||0,this.ax=(t==null?void 0:t.ax)||0,this.ay=(t==null?void 0:t.ay)||0,this.mass=(t==null?void 0:t.mass)||0}fromAngleAndLength(t,r){return new eg({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return GO(this.x,this.y,t.x,t.y)}angleTo(t){return VO(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==null?void 0:t.gravity)??0,n=(t==null?void 0: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==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??1,o=(r==null?void 0:r.easing)??.05,a=t.x-this.x,s=t.y-this.y;this.vx=a*o,this.vy=s*o,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,r){const n=(r==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??.95,o=(r==null?void 0:r.spring)??.03;(Array.isArray(t)?t:[t]).forEach(a=>{const s=a.x-this.x,c=a.y-this.y,l=s*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==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??.95,o=(r==null?void 0:r.spring)??.03,a=(r==null?void 0:r.springLength)??100,s=this.angleTo(t);this.nextFrameSpringTo(new eg({x:t.x-Math.cos(s)*a,y:t.y-Math.sin(s)*a}),{spring:o,friction:i,gravity:n})}},BO=class extends Gy{constructor(r){super(r);jt(this,"width");jt(this,"height");this.width=r.width,this.height=r.height}eq(r){return this.x===r.x&&this.y===r.y&&this.width===r.width&&this.height===r.height}isIntersectRect(r){return!(this.x+this.width<r.x||r.x+r.width<this.x||this.y+this.height<r.y||r.y+r.height<this.y)}isContainPoint(r){return!(r.x<this.x||r.x>this.x+this.width||r.y<this.y||r.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(r){this.x=r.x,this.y=r.y,this.width=r.width,this.height=r.height}},fs=class V$ extends Gy{constructor(r){super(r);jt(this,"radius");this.radius=(r==null?void 0:r.radius)??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(r){this.x=r}setY(r){this.y=r}setXY(r,n){this.x=r,this.y=n}eq(r){return this.x===r.x&&this.y===r.y}midPointBtw(r){return new V$({x:this.x+(r.x-this.x)/2,y:this.y+(r.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(r){this.setXY(r.x,r.y)}getBounds(){return new BO({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(r){const n=r.x-this.x,i=r.y-this.y;if(Math.sqrt(n*n+i*i)<this.radius+r.radius){const a=Math.atan2(i,n),s=Math.sin(a),c=Math.cos(a),l={x:0,y:0},u=o(n,i,s,c,!0),d=o(this.vx,this.vy,s,c,!0),f=o(r.vx,r.vy,s,c,!0),h=d.x-f.x;d.x=((this.mass-r.mass)*d.x+2*r.mass*f.x)/(this.mass+r.mass),f.x=h+d.x;const p=Math.abs(d.x)+Math.abs(f.x),g=this.radius+r.radius-Math.abs(l.x-u.x);l.x+=d.x/p*g,u.x+=f.x/p*g;const v=o(l.x,l.y,s,c,!1),_=o(u.x,u.y,s,c,!1);r.x=this.x+_.x,r.y=this.y+_.y,this.x=this.x+v.x,this.y=this.y+v.y;const y=o(d.x,d.y,s,c,!1),m=o(f.x,f.y,s,c,!1);this.vx=y.x,this.vy=y.y,r.vx=m.x,r.vy=m.y}function o(a,s,c,l,u=!1){return{x:u?a*l+s*c:a*l-s*c,y:u?s*l-a*c:s*l+a*c}}}nextFrameBounce(r){const n=r.left,i=r.top,o=r.right,a=r.bottom,s=(r==null?void 0:r.bounce)??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=s):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=s),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=s):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=s)}};var Sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var HO={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
32
- * http://hammerjs.github.io/
33
- *
34
- * Copyright (c) 2016 Jorik Tangelder;
35
- * Licensed under the MIT license */(function(e){(function(t,r,n,i){var o=["","webkit","Moz","MS","ms","o"],a=r.createElement("div"),s="function",c=Math.round,l=Math.abs,u=Date.now;function d(w,P,F){return setTimeout(m(w,F),P)}function f(w,P,F){return Array.isArray(w)?(h(w,F[P],F),!0):!1}function h(w,P,F){var B;if(w)if(w.forEach)w.forEach(P,F);else if(w.length!==i)for(B=0;B<w.length;)P.call(F,w[B],B,w),B++;else for(B in w)w.hasOwnProperty(B)&&P.call(F,w[B],B,w)}function p(w,P,F){var B="DEPRECATED METHOD: "+P+`
36
- `+F+` AT
37
- `;return function(){var q=new Error("get-stack-trace"),W=q&&q.stack?q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",tt=t.console&&(t.console.warn||t.console.log);return tt&&tt.call(t.console,B,W),w.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=function(w){if(w===i||w===null)throw new TypeError("Cannot convert undefined or null to object");for(var P=Object(w),F=1;F<arguments.length;F++){var B=arguments[F];if(B!==i&&B!==null)for(var q in B)B.hasOwnProperty(q)&&(P[q]=B[q])}return P}:g=Object.assign;var v=p(function(w,P,F){for(var B=Object.keys(P),q=0;q<B.length;)(!F||F&&w[B[q]]===i)&&(w[B[q]]=P[B[q]]),q++;return w},"extend","Use `assign`."),_=p(function(w,P){return v(w,P,!0)},"merge","Use `assign`.");function y(w,P,F){var B=P.prototype,q;q=w.prototype=Object.create(B),q.constructor=w,q._super=B,F&&g(q,F)}function m(w,P){return function(){return w.apply(P,arguments)}}function x(w,P){return typeof w==s?w.apply(P&&P[0]||i,P):w}function N(w,P){return w===i?P:w}function $(w,P,F){h(H(P),function(B){w.addEventListener(B,F,!1)})}function A(w,P,F){h(H(P),function(B){w.removeEventListener(B,F,!1)})}function R(w,P){for(;w;){if(w==P)return!0;w=w.parentNode}return!1}function G(w,P){return w.indexOf(P)>-1}function H(w){return w.trim().split(/\s+/g)}function Y(w,P,F){if(w.indexOf&&!F)return w.indexOf(P);for(var B=0;B<w.length;){if(F&&w[B][F]==P||!F&&w[B]===P)return B;B++}return-1}function J(w){return Array.prototype.slice.call(w,0)}function nt(w,P,F){for(var B=[],q=[],W=0;W<w.length;){var tt=w[W][P];Y(q,tt)<0&&B.push(w[W]),q[W]=tt,W++}return B=B.sort(function(ot,dt){return ot[P]>dt[P]}),B}function rt(w,P){for(var F,B,q=P[0].toUpperCase()+P.slice(1),W=0;W<o.length;){if(F=o[W],B=F?F+q:P,B in w)return B;W++}return i}var lt=1;function xt(){return lt++}function Ct(w){var P=w.ownerDocument||w;return P.defaultView||P.parentWindow||t}var $t=/mobile|tablet|ip(ad|hone|od)|android/i,at="ontouchstart"in t,X=rt(t,"PointerEvent")!==i,T=at&&$t.test(navigator.userAgent),E="touch",k="pen",b="mouse",C="kinect",L=25,D=1,V=2,K=4,et=8,it=1,ut=2,Tt=4,Gt=8,Pt=16,Nt=ut|Tt,qt=Gt|Pt,Qt=Nt|qt,Dt=["x","y"],fe=["clientX","clientY"];function re(w,P){var F=this;this.manager=w,this.callback=P,this.element=w.element,this.target=w.options.inputTarget,this.domHandler=function(B){x(w.options.enable,[w])&&F.handler(B)},this.init()}re.prototype={handler:function(){},init:function(){this.evEl&&$(this.element,this.evEl,this.domHandler),this.evTarget&&$(this.target,this.evTarget,this.domHandler),this.evWin&&$(Ct(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(Ct(this.element),this.evWin,this.domHandler)}};function he(w){var P,F=w.options.inputClass;return F?P=F:X?P=Dr:T?P=Yr:at?P=U:P=Kr,new P(w,Vt)}function Vt(w,P,F){var B=F.pointers.length,q=F.changedPointers.length,W=P&D&&B-q===0,tt=P&(K|et)&&B-q===0;F.isFirst=!!W,F.isFinal=!!tt,W&&(w.session={}),F.eventType=P,Le(w,F),w.emit("hammer.input",F),w.recognize(F),w.session.prevInput=F}function Le(w,P){var F=w.session,B=P.pointers,q=B.length;F.firstInput||(F.firstInput=pr(P)),q>1&&!F.firstMultiple?F.firstMultiple=pr(P):q===1&&(F.firstMultiple=!1);var W=F.firstInput,tt=F.firstMultiple,ot=tt?tt.center:W.center,dt=P.center=dr(B);P.timeStamp=u(),P.deltaTime=P.timeStamp-W.timeStamp,P.angle=Ir(ot,dt),P.distance=jr(ot,dt),Ue(F,P),P.offsetDirection=Ze(P.deltaX,P.deltaY);var ct=$e(P.deltaTime,P.deltaX,P.deltaY);P.overallVelocityX=ct.x,P.overallVelocityY=ct.y,P.overallVelocity=l(ct.x)>l(ct.y)?ct.x:ct.y,P.scale=tt?er(tt.pointers,B):1,P.rotation=tt?Sr(tt.pointers,B):0,P.maxPointers=F.prevInput?P.pointers.length>F.prevInput.maxPointers?P.pointers.length:F.prevInput.maxPointers:P.pointers.length,Xe(F,P);var st=w.element;R(P.srcEvent.target,st)&&(st=P.srcEvent.target),P.target=st}function Ue(w,P){var F=P.center,B=w.offsetDelta||{},q=w.prevDelta||{},W=w.prevInput||{};(P.eventType===D||W.eventType===K)&&(q=w.prevDelta={x:W.deltaX||0,y:W.deltaY||0},B=w.offsetDelta={x:F.x,y:F.y}),P.deltaX=q.x+(F.x-B.x),P.deltaY=q.y+(F.y-B.y)}function Xe(w,P){var F=w.lastInterval||P,B=P.timeStamp-F.timeStamp,q,W,tt,ot;if(P.eventType!=et&&(B>L||F.velocity===i)){var dt=P.deltaX-F.deltaX,ct=P.deltaY-F.deltaY,st=$e(B,dt,ct);W=st.x,tt=st.y,q=l(st.x)>l(st.y)?st.x:st.y,ot=Ze(dt,ct),w.lastInterval=P}else q=F.velocity,W=F.velocityX,tt=F.velocityY,ot=F.direction;P.velocity=q,P.velocityX=W,P.velocityY=tt,P.direction=ot}function pr(w){for(var P=[],F=0;F<w.pointers.length;)P[F]={clientX:c(w.pointers[F].clientX),clientY:c(w.pointers[F].clientY)},F++;return{timeStamp:u(),pointers:P,center:dr(P),deltaX:w.deltaX,deltaY:w.deltaY}}function dr(w){var P=w.length;if(P===1)return{x:c(w[0].clientX),y:c(w[0].clientY)};for(var F=0,B=0,q=0;q<P;)F+=w[q].clientX,B+=w[q].clientY,q++;return{x:c(F/P),y:c(B/P)}}function $e(w,P,F){return{x:P/w||0,y:F/w||0}}function Ze(w,P){return w===P?it:l(w)>=l(P)?w<0?ut:Tt:P<0?Gt:Pt}function jr(w,P,F){F||(F=Dt);var B=P[F[0]]-w[F[0]],q=P[F[1]]-w[F[1]];return Math.sqrt(B*B+q*q)}function Ir(w,P,F){F||(F=Dt);var B=P[F[0]]-w[F[0]],q=P[F[1]]-w[F[1]];return Math.atan2(q,B)*180/Math.PI}function Sr(w,P){return Ir(P[1],P[0],fe)+Ir(w[1],w[0],fe)}function er(w,P){return jr(P[0],P[1],fe)/jr(w[0],w[1],fe)}var rn={mousedown:D,mousemove:V,mouseup:K},nn="mousedown",xe="mousemove mouseup";function Kr(){this.evEl=nn,this.evWin=xe,this.pressed=!1,re.apply(this,arguments)}y(Kr,re,{handler:function(w){var P=rn[w.type];P&D&&w.button===0&&(this.pressed=!0),P&V&&w.which!==1&&(P=K),this.pressed&&(P&K&&(this.pressed=!1),this.callback(this.manager,P,{pointers:[w],changedPointers:[w],pointerType:b,srcEvent:w}))}});var Or={pointerdown:D,pointermove:V,pointerup:K,pointercancel:et,pointerout:et},Yn={2:E,3:k,4:b,5:C},mn="pointerdown",kn="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(mn="MSPointerDown",kn="MSPointerMove MSPointerUp MSPointerCancel");function Dr(){this.evEl=mn,this.evWin=kn,re.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(Dr,re,{handler:function(w){var P=this.store,F=!1,B=w.type.toLowerCase().replace("ms",""),q=Or[B],W=Yn[w.pointerType]||w.pointerType,tt=W==E,ot=Y(P,w.pointerId,"pointerId");q&D&&(w.button===0||tt)?ot<0&&(P.push(w),ot=P.length-1):q&(K|et)&&(F=!0),!(ot<0)&&(P[ot]=w,this.callback(this.manager,q,{pointers:P,changedPointers:[w],pointerType:W,srcEvent:w}),F&&P.splice(ot,1))}});var Ie={touchstart:D,touchmove:V,touchend:K,touchcancel:et},mo="touchstart",on="touchstart touchmove touchend touchcancel";function gn(){this.evTarget=mo,this.evWin=on,this.started=!1,re.apply(this,arguments)}y(gn,re,{handler:function(w){var P=Ie[w.type];if(P===D&&(this.started=!0),!!this.started){var F=$r.call(this,w,P);P&(K|et)&&F[0].length-F[1].length===0&&(this.started=!1),this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:E,srcEvent:w})}}});function $r(w,P){var F=J(w.touches),B=J(w.changedTouches);return P&(K|et)&&(F=nt(F.concat(B),"identifier")),[F,B]}var En={touchstart:D,touchmove:V,touchend:K,touchcancel:et},vn="touchstart touchmove touchend touchcancel";function Yr(){this.evTarget=vn,this.targetIds={},re.apply(this,arguments)}y(Yr,re,{handler:function(w){var P=En[w.type],F=Xn.call(this,w,P);F&&this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:E,srcEvent:w})}});function Xn(w,P){var F=J(w.touches),B=this.targetIds;if(P&(D|V)&&F.length===1)return B[F[0].identifier]=!0,[F,F];var q,W,tt=J(w.changedTouches),ot=[],dt=this.target;if(W=F.filter(function(ct){return R(ct.target,dt)}),P===D)for(q=0;q<W.length;)B[W[q].identifier]=!0,q++;for(q=0;q<tt.length;)B[tt[q].identifier]&&ot.push(tt[q]),P&(K|et)&&delete B[tt[q].identifier],q++;if(ot.length)return[nt(W.concat(ot),"identifier"),ot]}var Cn=2500,j=25;function U(){re.apply(this,arguments);var w=m(this.handler,this);this.touch=new Yr(this.manager,w),this.mouse=new Kr(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}y(U,re,{handler:function(w,P,F){var B=F.pointerType==E,q=F.pointerType==b;if(!(q&&F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents)){if(B)z.call(this,P,F);else if(q&&Z.call(this,F))return;this.callback(w,P,F)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function z(w,P){w&D?(this.primaryTouch=P.changedPointers[0].identifier,Q.call(this,P)):w&(K|et)&&Q.call(this,P)}function Q(w){var P=w.changedPointers[0];if(P.identifier===this.primaryTouch){var F={x:P.clientX,y:P.clientY};this.lastTouches.push(F);var B=this.lastTouches,q=function(){var W=B.indexOf(F);W>-1&&B.splice(W,1)};setTimeout(q,Cn)}}function Z(w){for(var P=w.srcEvent.clientX,F=w.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var q=this.lastTouches[B],W=Math.abs(P-q.x),tt=Math.abs(F-q.y);if(W<=j&&tt<=j)return!0}return!1}var yt=rt(a.style,"touchAction"),vt=yt!==i,It="compute",oe="auto",Ht="manipulation",Ot="none",Ft="pan-x",Zt="pan-y",kt=Te();function At(w,P){this.manager=w,this.set(P)}At.prototype={set:function(w){w==It&&(w=this.compute()),vt&&this.manager.element.style&&kt[w]&&(this.manager.element.style[yt]=w),this.actions=w.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var w=[];return h(this.manager.recognizers,function(P){x(P.options.enable,[P])&&(w=w.concat(P.getTouchAction()))}),Xt(w.join(" "))},preventDefaults:function(w){var P=w.srcEvent,F=w.offsetDirection;if(this.manager.session.prevented){P.preventDefault();return}var B=this.actions,q=G(B,Ot)&&!kt[Ot],W=G(B,Zt)&&!kt[Zt],tt=G(B,Ft)&&!kt[Ft];if(q){var ot=w.pointers.length===1,dt=w.distance<2,ct=w.deltaTime<250;if(ot&&dt&&ct)return}if(!(tt&&W)&&(q||W&&F&Nt||tt&&F&qt))return this.preventSrc(P)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function Xt(w){if(G(w,Ot))return Ot;var P=G(w,Ft),F=G(w,Zt);return P&&F?Ot:P||F?P?Ft:Zt:G(w,Ht)?Ht:oe}function Te(){if(!vt)return!1;var w={},P=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(F){w[F]=P?t.CSS.supports("touch-action",F):!0}),w}var fr=1,pe=2,De=4,qe=8,Be=qe,ke=16,ce=32;function Bt(w){this.options=g({},this.defaults,w||{}),this.id=xt(),this.manager=null,this.options.enable=N(this.options.enable,!0),this.state=fr,this.simultaneous={},this.requireFail=[]}Bt.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 P=this.simultaneous;return w=an(w,this),P[w.id]||(P[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=an(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var P=this.requireFail;return w=an(w,this),Y(P,w)===-1&&(P.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=an(w,this);var P=Y(this.requireFail,w);return P>-1&&this.requireFail.splice(P,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(w){return!!this.simultaneous[w.id]},emit:function(w){var P=this,F=this.state;function B(q){P.manager.emit(q,w)}F<qe&&B(P.options.event+Ke(F)),B(P.options.event),w.additionalEvent&&B(w.additionalEvent),F>=qe&&B(P.options.event+Ke(F))},tryEmit:function(w){if(this.canEmit())return this.emit(w);this.state=ce},canEmit:function(){for(var w=0;w<this.requireFail.length;){if(!(this.requireFail[w].state&(ce|fr)))return!1;w++}return!0},recognize:function(w){var P=g({},w);if(!x(this.options.enable,[this,P])){this.reset(),this.state=ce;return}this.state&(Be|ke|ce)&&(this.state=fr),this.state=this.process(P),this.state&(pe|De|qe|ke)&&this.tryEmit(P)},process:function(w){},getTouchAction:function(){},reset:function(){}};function Ke(w){return w&ke?"cancel":w&qe?"end":w&De?"move":w&pe?"start":""}function Fr(w){return w==Pt?"down":w==Gt?"up":w==ut?"left":w==Tt?"right":""}function an(w,P){var F=P.manager;return F?F.get(w):w}function nr(){Bt.apply(this,arguments)}y(nr,Bt,{defaults:{pointers:1},attrTest:function(w){var P=this.options.pointers;return P===0||w.pointers.length===P},process:function(w){var P=this.state,F=w.eventType,B=P&(pe|De),q=this.attrTest(w);return B&&(F&et||!q)?P|ke:B||q?F&K?P|qe:P&pe?P|De:pe:ce}});function rr(){nr.apply(this,arguments),this.pX=null,this.pY=null}y(rr,nr,{defaults:{event:"pan",threshold:10,pointers:1,direction:Qt},getTouchAction:function(){var w=this.options.direction,P=[];return w&Nt&&P.push(Zt),w&qt&&P.push(Ft),P},directionTest:function(w){var P=this.options,F=!0,B=w.distance,q=w.direction,W=w.deltaX,tt=w.deltaY;return q&P.direction||(P.direction&Nt?(q=W===0?it:W<0?ut:Tt,F=W!=this.pX,B=Math.abs(w.deltaX)):(q=tt===0?it:tt<0?Gt:Pt,F=tt!=this.pY,B=Math.abs(w.deltaY))),w.direction=q,F&&B>P.threshold&&q&P.direction},attrTest:function(w){return nr.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 P=Fr(w.direction);P&&(w.additionalEvent=this.options.event+P),this._super.emit.call(this,w)}});function yr(){nr.apply(this,arguments)}y(yr,nr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},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 P=w.scale<1?"in":"out";w.additionalEvent=this.options.event+P}this._super.emit.call(this,w)}});function Pn(){Bt.apply(this,arguments),this._timer=null,this._input=null}y(Pn,Bt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,q=w.deltaTime>P.time;if(this._input=w,!B||!F||w.eventType&(K|et)&&!q)this.reset();else if(w.eventType&D)this.reset(),this._timer=d(function(){this.state=Be,this.tryEmit()},P.time,this);else if(w.eventType&K)return Be;return ce},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===Be&&(w&&w.eventType&K?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Tn(){nr.apply(this,arguments)}y(Tn,nr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(w){return this._super.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&pe)}});function kr(){nr.apply(this,arguments)}y(kr,nr,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|qt,pointers:1},getTouchAction:function(){return rr.prototype.getTouchAction.call(this)},attrTest:function(w){var P=this.options.direction,F;return P&(Nt|qt)?F=w.overallVelocity:P&Nt?F=w.overallVelocityX:P&qt&&(F=w.overallVelocityY),this._super.attrTest.call(this,w)&&P&w.offsetDirection&&w.distance>this.options.threshold&&w.maxPointers==this.options.pointers&&l(F)>this.options.velocity&&w.eventType&K},emit:function(w){var P=Fr(w.offsetDirection);P&&this.manager.emit(this.options.event+P,w),this.manager.emit(this.options.event,w)}});function On(){Bt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(On,Bt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ht]},process:function(w){var P=this.options,F=w.pointers.length===P.pointers,B=w.distance<P.threshold,q=w.deltaTime<P.time;if(this.reset(),w.eventType&D&&this.count===0)return this.failTimeout();if(B&&q&&F){if(w.eventType!=K)return this.failTimeout();var W=this.pTime?w.timeStamp-this.pTime<P.interval:!0,tt=!this.pCenter||jr(this.pCenter,w.center)<P.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!tt||!W?this.count=1:this.count+=1,this._input=w;var ot=this.count%P.taps;if(ot===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Be,this.tryEmit()},P.interval,this),pe):Be}return ce},failTimeout:function(){return this._timer=d(function(){this.state=ce},this.options.interval,this),ce},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Be&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Wn(w,P){return P=P||{},P.recognizers=N(P.recognizers,Wn.defaults.preset),new ra(w,P)}Wn.VERSION="2.0.7",Wn.defaults={domEvents:!1,touchAction:It,enable:!0,inputTarget:null,inputClass:null,preset:[[Tn,{enable:!1}],[yr,{enable:!1},["rotate"]],[kr,{direction:Nt}],[rr,{direction:Nt},["swipe"]],[On],[On,{event:"doubletap",taps:2},["tap"]],[Pn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ea=1,_r=2;function ra(w,P){this.options=g({},Wn.defaults,P||{}),this.options.inputTarget=this.options.inputTarget||w,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=w,this.input=he(this),this.touchAction=new At(this,this.options.touchAction),S(this,!0),h(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)}ra.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?_r:ea},recognize:function(w){var P=this.session;if(!P.stopped){this.touchAction.preventDefaults(w);var F,B=this.recognizers,q=P.curRecognizer;(!q||q&&q.state&Be)&&(q=P.curRecognizer=null);for(var W=0;W<B.length;)F=B[W],P.stopped!==_r&&(!q||F==q||F.canRecognizeWith(q))?F.recognize(w):F.reset(),!q&&F.state&(pe|De|qe)&&(q=P.curRecognizer=F),W++}},get:function(w){if(w instanceof Bt)return w;for(var P=this.recognizers,F=0;F<P.length;F++)if(P[F].options.event==w)return P[F];return null},add:function(w){if(f(w,"add",this))return this;var P=this.get(w.options.event);return P&&this.remove(P),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 P=this.recognizers,F=Y(P,w);F!==-1&&(P.splice(F,1),this.touchAction.update())}return this},on:function(w,P){if(w!==i&&P!==i){var F=this.handlers;return h(H(w),function(B){F[B]=F[B]||[],F[B].push(P)}),this}},off:function(w,P){if(w!==i){var F=this.handlers;return h(H(w),function(B){P?F[B]&&F[B].splice(Y(F[B],P),1):delete F[B]}),this}},emit:function(w,P){this.options.domEvents&&O(w,P);var F=this.handlers[w]&&this.handlers[w].slice();if(!(!F||!F.length)){P.type=w,P.preventDefault=function(){P.srcEvent.preventDefault()};for(var B=0;B<F.length;)F[B](P),B++}},destroy:function(){this.element&&S(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function S(w,P){var F=w.element;if(F.style){var B;h(w.options.cssProps,function(q,W){B=rt(F.style,W),P?(w.oldCssProps[B]=F.style[B],F.style[B]=q):F.style[B]=w.oldCssProps[B]||""}),P||(w.oldCssProps={})}}function O(w,P){var F=r.createEvent("Event");F.initEvent(w,!0,!0),F.gesture=P,P.target.dispatchEvent(F)}g(Wn,{INPUT_START:D,INPUT_MOVE:V,INPUT_END:K,INPUT_CANCEL:et,STATE_POSSIBLE:fr,STATE_BEGAN:pe,STATE_CHANGED:De,STATE_ENDED:qe,STATE_RECOGNIZED:Be,STATE_CANCELLED:ke,STATE_FAILED:ce,DIRECTION_NONE:it,DIRECTION_LEFT:ut,DIRECTION_RIGHT:Tt,DIRECTION_UP:Gt,DIRECTION_DOWN:Pt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:qt,DIRECTION_ALL:Qt,Manager:ra,Input:re,TouchAction:At,TouchInput:Yr,MouseInput:Kr,PointerEventInput:Dr,TouchMouseInput:U,SingleTouchInput:gn,Recognizer:Bt,AttrRecognizer:nr,Tap:On,Pan:rr,Swipe:kr,Pinch:yr,Rotate:Tn,Press:Pn,on:$,off:A,each:h,merge:_,extend:v,assign:g,inherit:y,bindFn:m,prefixed:rt});var I=typeof t<"u"?t:typeof self<"u"?self:{};I.Hammer=Wn,e.exports?e.exports=Wn:t[n]=Wn})(window,document,"Hammer")})(HO);const Vy=[1,0,0,1,0,0],By=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];let Fn=class _h{constructor(t=Vy){jt(this,"value");jt(this,"matrix3d");jt(this,"isEverTo3d",!1);jt(this,"_prev_rotatex",0);jt(this,"_prev_rotatey",0);this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Vy),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,r,n=0,i=0){const o=t-n,a=r-i;return t=o*this.value[0]+a*this.value[2]+this.value[4],r=o*this.value[1]+a*this.value[3]+this.value[5],[t+n,r+i]}fromString(t){const r=Rg("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 ha(r)}offset(t=0,r=0){return[t-this.value[4],r-this.value[5]]}clone(){return new _h(this.value)}multiply(t){const r=this.value;let n;t instanceof _h?n=t.value:n=t;const i=r[0]*n[0]+r[2]*n[1],o=r[1]*n[0]+r[3]*n[1],a=r[0]*n[2]+r[2]*n[3],s=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]=a,r[3]=s,r[4]=c,r[5]=l,this}inverse(){const t=new _h(this.value),r=t.value,n=1/(r[0]*r[3]-r[1]*r[2]),i=r[3]*n,o=-r[1]*n,a=-r[2]*n,s=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]=a,r[3]=s,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=wf(t),o=+Math.cos(i).toFixed(9),a=+Math.sin(i).toFixed(9);return this.multiply([o,a,-a,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),a=Math.tan(i);return this.multiply([1,a,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(xf(r[0])),zy(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(xf(r[1])),zy(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=zO(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=wf(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=>Ig(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 ha{constructor(t=By){jt(this,"value");this.value=Array.from(t)}unit(){return this.value=Array.from(By),this}fromString(t){const r=Rg("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 Fn(r)}multiplyMatrix(t){const r=this.value[0],n=this.value[1],i=this.value[2],o=this.value[3],a=this.value[4],s=this.value[5],c=this.value[6],l=this.value[7],u=this.value[8],d=this.value[9],f=this.value[10],h=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*a+x*u+N*p,A=y*n+m*s+x*d+N*g,R=y*i+m*c+x*f+N*v,G=y*o+m*l+x*h+N*_;return new Fn([$,A,R,G,0,0])}multiply(t){const r=new Fn([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new Fn([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new Fn([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new Fn([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),a=this.multiplyMatrix(r),s=this.multiplyMatrix(n),c=this.multiplyMatrix(i),l=this.multiplyMatrix(o);return this.value[0]=a.value[0],this.value[1]=a.value[1],this.value[2]=a.value[2],this.value[3]=a.value[3],this.value[4]=s.value[0],this.value[5]=s.value[1],this.value[6]=s.value[2],this.value[7]=s.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 ha([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 ha([t,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1]))}rotate(t,r){const n=wf(r),i=Math.sin,o=Math.cos;let a;switch(t){case"x":a=[1,0,0,0,0,o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1];break;case"y":a=[o(n),0,-i(n),0,0,1,0,0,i(n),0,o(n),0,0,0,0,1];break;case"z":a=[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 ha(a))}toString(){return`matrix3d(${this.value.map(t=>Ig(t,6)).join(",")})`}}function Xc(e){const t=new Fn;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 a=0,s=i.length;a<s;a++)i[a].trim()&&o.push(parseFloat(""+i[a]));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 ha(o));break}return""}),t}function qO(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 $f={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},KO=/([astvzqmhlc])([^astvzqmhlc]*)/gi,YO=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function XO(e){const t=e.match(YO);return t?t.map(Number):[]}function kf(e){const t=[];return e.replace(KO,function(r,n,i){let o=n.toLowerCase();for(i=XO(i),o=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(i.length==$f[o])return i.unshift(n),t.push(i);if(i.length<$f[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,$f[o])))}}),t}function Ef(e){var t=0,r=0,n=0,i=0;return e.map(function(o){o=o.slice();var a=o[0],s=a.toUpperCase();if(a!=s)switch(o[0]=s,a){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(s){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 ps=Math.PI*2;function Hy(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 WO(e,t,r,n,i,o,a,s,c,l){const u=l*(e-r)/2+c*(t-n)/2,d=-c*(e-r)/2+l*(t-n)/2,f=a*a,h=s*s,p=u*u,g=d*d;let v=f*h-f*g-h*p;v<0&&(v=0),v/=f*g+h*p,v=Math.sqrt(v)*(i===o?-1:1);const _=v*a/s*d,y=v*-s/a*u,m=l*_-c*y+(e+r)/2,x=c*_+l*y+(t+n)/2,N=(u-_)/a,$=(d-y)/s,A=(-u-_)/a,R=(-d-y)/s,G=Hy(1,0,N,$);let H=Hy(N,$,A,R);return o===0&&H>0&&(H-=ps),o===1&&H<0&&(H+=ps),[m,x,G,H]}function JO(e,t){const r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),a=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}function QO(e,t,r,n,i,o,a,s,c){const l=Math.sin(c*ps/360),u=Math.cos(c*ps/360),d=u*(e-r)/2+l*(t-n)/2,f=-l*(e-r)/2+u*(t-n)/2;if(d===0&&f===0)return[];if(a===0||s===0)return[];a=Math.abs(a),s=Math.abs(s);const h=d*d/(a*a)+f*f/(s*s);h>1&&(a*=Math.sqrt(h),s*=Math.sqrt(h));const p=WO(e,t,r,n,i,o,a,s,l,u),g=[];let v=p[2],_=p[3];const y=Math.max(Math.ceil(Math.abs(_)/(ps/4)),1);_/=y;for(let m=0;m<y;m++)g.push(JO(v,_)),v+=_;return g.map(m=>{for(let x=0;x<m.length;x+=2){let N=m[x+0],$=m[x+1];N*=a,$*=s;const A=u*N-l*$,R=l*N+u*$;m[x+0]=A+p[0],m[x+1]=R+p[1]}return m})}function Cf(e){for(var t,r=[],n=0,i=0,o=0,a=0,s=null,c=null,l=0,u=0,d=0,f=e.length;d<f;d++){var h=e[d],p=h[0];switch(p){case"M":o=h[1],a=h[2];break;case"A":var g=QO(l,u,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!g.length)continue;g=g.map(x=>{const[N,$,A,R,G,H,Y,J]=x;return{x1:A,y1:R,x2:G,y2:H,x:Y,y:J}});for(var v=0,_;v<g.length;v++)_=g[v],h=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],v<g.length-1&&r.push(h);break;case"S":var y=l,m=u;(t=="C"||t=="S")&&(y+=y-n,m+=m-i),h=["C",y,m,h[1],h[2],h[3],h[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,c=u*2-c):(s=l,c=u),h=qy(l,u,s,c,h[1],h[2]);break;case"Q":s=h[1],c=h[2],h=qy(l,u,h[1],h[2],h[3],h[4]);break;case"L":h=Wc(l,u,h[1],h[2]);break;case"H":h=Wc(l,u,h[1],u);break;case"V":h=Wc(l,u,l,h[1]);break;case"Z":h=Wc(l,u,o,a);break}t=p,l=h[h.length-2],u=h[h.length-1],h.length>4?(n=h[h.length-4],i=h[h.length-3]):(n=l,i=u),r.push(h)}return r}function Wc(e,t,r,n){return["C",e,t,r,n,r,n]}function qy(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 ZO=e=>Array.isArray(e);function da(e){if(!(this instanceof da))return new da(e);this._path=ZO(e)?e:kf(e),this._path=Ef(this._path),this._path=eA(this._path),this._path=tA(this._path)}da.prototype.at=function(e,t){return this._walk(e,t).pos},da.prototype.length=function(){return this._walk(null).length},da.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 d=this._path[u];if(d[0]==="M"){if(r[0]=d[1],r[1]=d[2],e===0)return{length:o,pos:r}}else if(d[0]==="C"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let h=0;h<=f;h++){let p=h/f,g=a(d,p),v=s(d,p);if(o+=Pf(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(d[0]==="Q"){n[0]=i[0]=r[0],n[1]=i[1]=r[1],n[2]=o;let f=100;for(let h=0;h<=f;h++){let p=h/f,g=c(d,p),v=l(d,p);if(o+=Pf(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(d[0]==="L"){if(n[0]=r[0],n[1]=r[1],n[2]=o,o+=Pf(r[0],r[1],d[1],d[2]),r[0]=d[1],r[1]=d[2],typeof e=="number"&&o>=e){let f=(o-e)/(o-n[2]),h=[r[0]*(1-f)+n[0]*f,r[1]*(1-f)+n[1]*f];return{length:o,pos:h}}n[0]=r[0],n[1]=r[1],n[2]=o}}return{length:o,pos:r};function a(u,d){return Math.pow(1-d,3)*i[0]+3*Math.pow(1-d,2)*d*u[1]+3*(1-d)*Math.pow(d,2)*u[3]+Math.pow(d,3)*u[5]}function s(u,d){return Math.pow(1-d,3)*i[1]+3*Math.pow(1-d,2)*d*u[2]+3*(1-d)*Math.pow(d,2)*u[4]+Math.pow(d,3)*u[6]}function c(u,d){return Math.pow(1-d,2)*i[0]+2*(1-d)*d*u[1]+Math.pow(d,2)*u[3]}function l(u,d){return Math.pow(1-d,2)*i[1]+2*(1-d)*d*u[2]+Math.pow(d,2)*u[4]}};function Pf(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function tA(e){let t,r=0,n=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let o=0,a=e.length;o<a;o++){let s=e[o],c=i[s[0]];c&&(s[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])),s.splice(1,0,r,n)),t=s}return e}function eA(e){let t=[],r=["L",0,0],n;for(let i=0,o=e.length;i<o;i++){let a=e[i];switch(a[0]){case"M":r=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(r);break;case"H":n=t[t.length-1]||["L",0,0],t.push(["L",a[1],n[n.length-1]]);break;case"V":n=t[t.length-1]||["L",0,0],t.push(["L",n[n.length-2],a[1]]);break;default:t.push(a)}}return t}const Tf=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]=Tf(e[r]));return t};function Of(e){const t=Of.ps=Of.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 ms(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:lA(e,t,r,n),vb:[e,t,r,n].join(" ")}}function Ky(e,t,r,n,i,o,a,s,c){const l=1-c,u=l**3,d=l**2,f=c*c,h=f*c,p=u*e+d*3*c*r+l*3*c*c*i+h*a,g=u*t+d*3*c*n+l*3*c*c*o+h*s,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*(a-2*i+r),m=n+2*c*(o-n)+f*(s-2*o+n),x=l*e+c*r,N=l*t+c*n,$=l*i+c*a,A=l*o+c*s,R=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:A},alpha:R}}function Yy(e,t,r,n,i,o,a,s){Array.isArray(e)||(e=[e,t,r,n,i,o,a,s]);const c=Jy(...e);return ms(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function rA(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function nA(e,t){e=ms(e),t=ms(t);const{x:r,y:n,width:i,height:o}=e,{x:a,y:s,width:c,height:l}=t,u=r+i/2,d=n+o/2,f=a+c/2,h=s+l/2;return Math.abs(u-f)<=(i+c)/2||Math.abs(d-h)<=(o+l)/2}function Xy(e,t,r,n,i){const o=-3*t+9*r-9*n+3*i,a=e*o+6*t-12*r+6*n;return e*a-3*t+3*r}function Wy(e,t,r,n,i,o,a,s,c){c==null&&(c=1),c=Math.max(0,Math.min(c,1));const l=c/2,u=12,d=[-.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 h=0;for(let p=0;p<u;p++){const g=l*d[p]+l,v=Xy(g,e,r,i,a),_=Xy(g,t,n,o,s),y=v*v+_*_;h+=f[p]*Math.sqrt(y)}return l*h}function iA(e,t,r,n,i,o,a,s){if(Math.max(e,r)<Math.min(i,a)||Math.min(e,r)>Math.max(i,a)||Math.max(t,n)<Math.min(o,s)||Math.min(t,n)>Math.max(o,s))return;const c=(e*n-t*r)*(i-a)-(e-r)*(i*s-o*a),l=(e*n-t*r)*(o-s)-(t-n)*(i*s-o*a),u=(e-r)*(o-s)-(t-n)*(i-a);if(!u)return;const d=c/u,f=l/u,h=Number(d.toFixed(2)),p=Number(f.toFixed(2));if(!(h<Number(Math.min(e,r).toFixed(2))||h>Number(Math.max(e,r).toFixed(2))||h<Number(Math.min(i,a).toFixed(2))||h>Number(Math.max(i,a).toFixed(2))||p<Number(Math.min(t,n).toFixed(2))||p>Number(Math.max(t,n).toFixed(2))||p<Number(Math.min(o,s).toFixed(2))||p>Number(Math.max(o,s).toFixed(2))))return{x:d,y:f}}function oA(e,t,r){const n=Yy(e),i=Yy(t);if(!nA(n,i))return r?0:[];const o=Wy.apply(0,e),a=Wy.apply(0,t),s=Math.ceil(o/8),c=Math.ceil(a/8),l=[],u=[],d={};let f=r?0:[];for(let h=0;h<s+1;h++){const p=Ky.apply(0,e.concat(h/s));l.push({x:p.x,y:p.y,t:h/s})}for(let h=0;h<c+1;h++){const p=Ky.apply(0,t.concat(h/c));u.push({x:p.x,y:p.y,t:h/c})}for(let h=0;h<s;h++)for(let p=0;p<c;p++){const g=l[h],v=l[h+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=iA(g.x,g.y,v.x,v.y,_.x,_.y,y.x,y.y);if(N&&d[N.x.toFixed(4)]!==N.y.toFixed(4)){d[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),A=_.t+Math.abs((N[x]-_[x])/(y[x]-_[x]))*(y.t-_.t);$>=0&&$<=1&&A>=0&&A<=1&&(r?f++:f.push({x:N.x,y:N.y,t1:$,t2:A}))}}return f}function aA(e,t,r){let n,i,o,a,s,c,l,u,d,f,h=r?0:[];for(let p=0,g=e.length;p<g;p++){const v=e[p];if(v[0]==="M")n=s=v[1],i=c=v[2];else{v[0]==="C"?(d=[n,i].concat(v.slice(1)),n=d[6],i=d[7]):(d=[n,i,n,i,s,c,s,c],n=s,i=c);for(let _=0,y=t.length;_<y;_++){const m=t[_];if(m[0]==="M")o=l=m[1],a=u=m[2];else{m[0]==="C"?(f=[o,a].concat(m.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,l,u,l,u],o=l,a=u);const x=oA(d,f,r);if(r)h+=x;else{for(let N=0,$=x.length;N<$;N++)x[N].segment1=p,x[N].segment2=_,x[N].bez1=d,x[N].bez2=f;h=h.concat(x)}}}}}return h}function sA(e){const t=Of(e);if(t.bbox)return Tf(t.bbox);if(!e)return ms();let r=0,n=0,i=[],o=[],a=[];for(let f=0,h=e.length;f<h;f++)if(a=e[f],a[0]==="M")r=a[1],n=a[2],i.push(r),o.push(n);else{const p=Jy(r,n,a[1],a[2],a[3],a[4],a[5],a[6]);i=i.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),r=a[5],n=a[6]}const s=Math.min.apply(0,i),c=Math.min.apply(0,o),l=Math.max.apply(0,i),u=Math.max.apply(0,o),d=ms(s,c,l-s,u-c);return t.bbox=Tf(d),d}function lA(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 Jy(e,t,r,n,i,o,a,s){const c=[],l=[[],[]];let u,d,f,h,p,g,v,_;for(let N=0;N<2;++N){if(N===0?(d=6*e-12*r+6*i,u=-3*e+9*r-9*i+3*a,f=3*r-3*e):(d=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*s,f=3*n-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-f/d,h>0&&h<1&&c.push(h);continue}v=d*d-4*f*u,_=Math.sqrt(v),!(v<0)&&(p=(-d+_)/(2*u),p>0&&p<1&&c.push(p),g=(-d-_)/(2*u),g>0&&g<1&&c.push(g))}let y=c.length,m;const x=y;for(;y--;)h=c[y],m=1-h,l[0][y]=m*m*m*e+3*m*m*h*r+3*m*h*h*i+h*h*h*a,l[1][y]=m*m*m*t+3*m*m*h*n+3*m*h*h*o+h*h*h*s;return l[0][x]=e,l[1][x]=t,l[0][x+1]=a,l[1][x+1]=s,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 cA(e,t,r){const n=sA(e);return!(!rA(n,t,r)||aA(e,Cf([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const Af=new Map;function Qy(e){if(Af.has(e))return Af.get(e);const t=da(e);return Af.set(e,t),t}function Zy(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function uA(e,t){return gc?Zy(e).getTotalLength(t):Qy(e).length()}function hA(e,t){if(gc)return Zy(e).getPointAtLength(t);{const r=Qy(e),[n,i]=r.at(t);return{x:n,y:i}}}let bn=null;function dA(e,t,r){if(gc){bn||(bn=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return bn.isPointInPath(n,t,r)}else return cA(e,t,r)}function fA(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(gc){if(bn||(bn=document.createElement("canvas").getContext("2d")),bn.isPointInStroke){bn.save(),bn.lineWidth=n,bn.lineCap=i,bn.lineJoin=o;const a=new Path2D(e),s=bn.isPointInStroke(a,t,r);return bn.restore(),s}}else return null}function pA(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 t_={},e_={exports:{}},r_;function mA(){return r_||(r_=1,function(e){(function(t){var r="0.4.0",n="hasOwnProperty",i=/[\.\/]/,o="*",a=function(){},s=function(f,h){return f-h},c,l,u={n:{}},d=function(f,h){var p=l,g=Array.prototype.slice.call(arguments,2),v=d.listeners(f),_=0,y,m=[],x={},N=[];c=f,l=0;for(var $=0,A=v.length;$<A;$++)"zIndex"in v[$]&&(m.push(v[$].zIndex),v[$].zIndex<0&&(x[v[$].zIndex]=v[$]));for(m.sort(s);m[_]<0;)if(y=x[m[_++]],N.push(y.apply(h,g)),l)return l=p,N;for($=0;$<A;$++)if(y=v[$],"zIndex"in y)if(y.zIndex==m[_]){if(N.push(y.apply(h,g)),l)return l=p,N;do if(_++,y=x[m[_]],y&&N.push(y.apply(h,g)),l)return l=p,N;while(y)}else x[y.zIndex]=y;else if(N.push(y.apply(h,g)),l)return l=p,N;return l=p,N.length?N:null};d.listeners=function(f){var h=f.split(i),p=u,g,v,_,y,m,x,N,$,A=[p],R=[];for(y=0,m=h.length;y<m;y++){for($=[],x=0,N=A.length;x<N;x++)for(p=A[x].n,v=[p[h[y]],p[o]],_=2;_--;)g=v[_],g&&($.push(g),R=R.concat(g.f||[]));A=$}return R},d.on=function(f,h){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]==h)return a;return g.f.push(h),function(y){+y==+y&&(h.zIndex=+y)}},d.stop=function(){l=1},d.nt=function(f){return f?new RegExp("(?:\\.|\\/|^)"+f+"(?:\\.|\\/|$)").test(c):c},d.unbind=function(f,h){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(h){if(g.f){for(x=0,N=g.f.length;x<N;x++)if(g.f[x]==h){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 A=g.n[v].f;for(x=0,N=A.length;x<N;x++)if(A[x]==h){A.splice(x,1);break}!A.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}},d.once=function(f,h){var p=function(){h.apply(this,arguments),d.unbind(f,p)};return d.on(f,p)},d.version=r,d.toString=function(){return"You are running Eve "+r},e.exports?e.exports=d:t.eve=d})(Sf)}(e_)),e_.exports}(function(e){if(typeof pA=="function")var t=mA();(function(){function r(f){var h=function(p){h.parse(p)};return h.mode="text",h.type=String(f||"html").toLowerCase(),h.textchunk="",h.raw="",h.parse=c,h.on=a,h.event=o,h.end=i,h}function n(f,h,p){f==`
38
- `&&this.event("newline"),d[this.mode].call(this,f,h,p)}function i(){n.call(this,"eof"),this.event("eof")}function o(f,h,p){typeof t=="function"&&t("elemental."+f+"."+h,null,h,p||"",this.raw);for(var g=this.events&&this.events[f],v=g&&g.length;v--;)try{this.events[f][v](h,p||"",this.raw)}catch{}this.raw=""}function a(f,h){this.events=this.events||{},this.events[f]=this.events[f]||[],this.events[f].push(h)}function s(f,h){return f&&(f.charAt?f.charAt(h):f[h])}function c(f){f=f||Object(f);for(var h=1,p=f.length+1,g,v,_=s(f,0);h<p;h++)g=v,v=_,_=s(f,h),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})},d={text:function(f,h,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,h,p){if(p=="!"&&f=="-"&&h=="-")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,h,p){p=="]"&&f=="]"&&h==">"?(this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1)):(f=="eof"&&d["cdata end"].call(this),this.textchunk+=f)},"cdata end":function(f,h,p){this.event("cdata",this.textchunk),this.textchunk="",this.mode="text"},"comment start":function(f,h,p){h==">"||f=="eof"?(this.event("comment",""),this.mode="comment instant end"):this.mode="comment"},"comment instant end":function(f,h,p){this.mode="text"},comment:function(f,h,p){f=="-"&&p=="-"&&h==">"?(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,h,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},declaration:function(f,h,p){f=="?"&&h==">"?this.mode="declaration end":(f=="eof"&&this.event("comment",this.textchunk),this.textchunk+=f)},"declaration end":function(f,h,p){this.event("comment",this.textchunk),this.textchunk="",this.mode="text"},"tag name start":function(f,h,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}d[this.mode].call(this,f,h,p)}},"close tag name start":function(f,h,p){l.test(f)||(this.mode="close tag name",this.tagname="",this.nodename="",d[this.mode].call(this,f,h,p))},"close tag name":function(f,h,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,h,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,h,p){l.test(f)||(this.mode="attr",this.nodename="",d[this.mode].call(this,f,h,p))},attr:function(f,h,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,h,p){if(!l.test(f)){if(this.mode="attr value",this.quote=!1,f=="'"||f=='"'){this.quote=f;return}d[this.mode].call(this,f,h,p)}},"attr value":function(f,h,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})()})(t_);const n_=un(t_);function Nf(e,t,r,n,i,o){if(typeof i>"u"||typeof o>"u"){const a=e-r,s=t-n;return!a&&!s?0:(180+Math.atan2(-s,-a)*180/Math.PI+360)%360}else return Nf(e,t,i,o)-Nf(r,n,i,o)}const le=n_.eve,gA=n_.elemental,Jc={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 Rf(e,t,r){for(var n=(e+"").split(";"),i=/^\s+|\s+$/g,o,a=0,s=n.length;a<s;a++){var c=n[a].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 vA(e){const t=gA(),r=[],n=[],i={};let o,a,s;const c={};function l(u,d){return function(f,h){const p={type:d||u};r.push(p);for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&le("rappar."+u+".attr."+g,p,h[g],g);le("rappar."+u+".attrend",p,h)}}return le.on("rappar.polygon.attr.points",function(u){this.path="M"+u+"z",le.stop()}),le.on("rappar.image.attr.xlink:href",function(u){this.src=u,le.stop()}),le.on("rappar.path.attr.d",function(u){this.path=u,le.stop()}),le.on("rappar.*.attr.transform",function(u){this.transform=Xc(u).toTransformString(),le.stop()}),le.on("rappar.*.attr.fill",function(u){var d=u.match(/url\(#([^)]+)\)/),f=this;d&&(d=d[1],i[d]?this.fill=i[d]:le.on("rappar.found."+d,function(h){f.fill=h}),le.stop())}),le.on("rappar.line.attrend",function(u){this.path="M"+[u.x1,u.y1,u.x2,u.y2]}),le.on("rappar.*.attrend",function(){for(var u=n.length;u--;)if(n[u]!=this){let f="",h="";for(var d in n[u])d=="transform"?f=n[u].transform:d=="class"&&c["."+n[u][d]]?h=c["."+n[u][d]].join(";")+";"+h:d=="id"&&c["#"+n[u][d]]?h=c["#"+n[u][d]].join(";")+";"+h:typeof this[d]>"u"&&(this[d]=n[u][d]);this.type&&(typeof this.transform>"u"?this.transform=f:this.transform+=f,typeof this.style>"u"?this.style=h:this.style=h+this.style,Rf(this.style,this,Jc))}}),le.on("rappar.*.attr.style",function(u){var d=function(){Rf(u,this,Jc),le.unbind("rappar.*.attrend",d)};le.on("rappar.*.attrend",d),le.stop()}),le.on("rappar.*.attr.*",function(u,d){d in Jc&&(this[d]=Jc[d]?u:parseFloat(u))}),le.on("elemental.tag.circle",l("circle")),le.on("elemental.tag.ellipse",l("ellipse")),le.on("elemental.tag.polygon",l("polygon","path")),le.on("elemental.tag.path",l("path")),le.on("elemental.tag.line",l("line","path")),le.on("elemental.tag.rect",l("rect")),le.on("elemental.tag.image",l("image")),le.on("elemental.tag.text",l("text")),le.on("elemental.text",function(u){try{const d=G4(u);for(let f of d.stylesheet.rules){for(let h of f.selectors)c[h]=[];for(let h of f.declarations)for(let p of f.selectors)c[p].push(`${h.property}:${h.value}`)}}catch{}}),le.on("elemental.tag.svg",function(u,d){let f=d.width||0,h=d.height||0;if(!f||!h){const p=d.viewBox.split(/\s+/gi);f=parseFloat(p[2])-parseFloat(p[0]),h=parseFloat(p[3])-parseFloat(p[1])}r.push({type:"viewbox",width:f,height:h})}),le.on("rappar.text.attrend",function(){o="",a=this,this["text-anchor"]=this["text-anchor"]||"start"}),le.on("elemental.text",function(u,d,f){a&&(o+=f)}),le.on("elemental./tag.text",function(){a.text=o,a=null}),le.on("elemental.tag.g",function(u,d){var f={};n.push(f);for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h],le("rappar.g.attr."+h,f,d[h],h));le("rappar.g.attrend",f)}),le.on("elemental./tag.g",function(u,d){n.pop()}),le.on("elemental.tag.linearGradient",function(u,d){s={id:d.id,angle:+(360+Nf(d.x1,d.y1,d.x2,d.y2,d.x1+100,d.y1)).toFixed(2),stops:[]}}),le.on("elemental./tag.linearGradient",function(){for(var u=[s.angle],d,f=0,h=s.stops.length;f<h;f++)d=s.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[s.id]=u.join("-"),le("rappar.found."+s.id,null,i[s.id])}),le.on("elemental.tag.radialGradient",function(u,d){s={id:d.id,stops:[]}}),le.on("elemental./tag.radialGradient",function(){for(var u=[],d,f=0,h=s.stops.length;f<h;f++)d=s.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[s.id]="r"+u.join("-"),le("rappar.found."+s.id,null,i[s.id])}),le.on("elemental.tag.stop",function(u,d){var f={};d.style&&Rf(d.style,f),f.offset=f.offset||d.offset,f.color=f["stop-color"]||d["stop-color"],f.opacity=f["stop-opacity"]||d["stop-opacity"],~(f.offset+"").indexOf("%")?f.offset=parseFloat(f.offset):f.offset=parseFloat(f.offset)*100,f.offset=+f.offset.toFixed(2),s.stops.push(f)}),t(e),t.end(),r}const i_=yA("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 yA(e,t=10){const r={},n=e.split(",");for(let i=0;i<n.length;i+=2){const o="&"+n[i+1]+";",a=parseInt(n[i],t);r[o]="&#"+a+";"}return r["\\xa0"]="&#160;",r}function Ur(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 Qc(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 _A(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function bA(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const gs={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 jf{constructor(t,r){jt(this,"__root");jt(this,"__ctx");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",Ur("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 o_{constructor(t,r){jt(this,"__root");jt(this,"__ctx");this.__root=t,this.__ctx=r}}let wA=class rg{constructor({canvas:t,width:r=500,height:n=500,enableMirroring:i=!1}){jt(this,"__document",document);jt(this,"__canvas");jt(this,"__ctx");jt(this,"width");jt(this,"height");jt(this,"__styleStack");jt(this,"__groupStack");jt(this,"__rootSVG");jt(this,"__ids");jt(this,"__SVGdefs");jt(this,"__currentElement");jt(this,"__currentElementsToStyle",null);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(gs);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=gs[i].canvas}}__getStyleState(){const t={},r=Object.keys(gs);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 a=0;a<o.length;a++){const s=o[a];i.setAttribute(s,r[s])}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(gs);for(let o=0;o<i.length;o++){const a=gs[i[o]],s=this[i[o]];if(a.apply){if(s instanceof o_){if(s.__ctx)for(;s.__ctx.__SVGdefs.childNodes.length;){const c=s.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(s.__ctx.__SVGdefs.childNodes[0])}r.setAttribute(a.apply,Ur("url(#{id})",{id:s.__root.getAttribute("id")}))}else if(s instanceof jf)r.setAttribute(a.apply,Ur("url(#{id})",{id:s.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==s)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&s.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(s);r.setAttribute(a.svgAttr,Ur("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(a.svgAttr+"-opacity",""+l)}else{let c=a.svgAttr;if(i[o]==="globalAlpha"&&(c=t+"-"+a.svgAttr,r.getAttribute(c)))continue;c&&r.setAttribute(c,s)}}}}__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(i_);for(let i=0,o=n.length;i<o;i++){const a=n[i],s=i_[a],c=new RegExp(a,"gi");c.test(r)&&(r=r.replace(c,s))}}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(Ur("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(Ur("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(Ur("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,a){this.__addTransform(Ur("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:r,c:n,d:i,e:o,f:a}))}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(Ur("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(Ur("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ur("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,a){this.__currentPosition={x:o,y:a},this.__addPathCommand(Ur("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:r,cp2x:n,cp2y:i,x:o,y:a}))}quadraticCurveTo(t,r,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Ur("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 a=this.__currentPosition&&this.__currentPosition.x,s=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof s>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(a===t&&s===r||t===n&&r===i||o===0){this.lineTo(t,r);return}const c=this.normalize([a-t,s-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],d=Math.acos(Math.abs(u)),f=this.normalize([c[0]+l[0],c[1]+l[1]]),h=o/Math.sin(d/2),p=t+h*f[0],g=r+h*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(),a=this.__createElement("rect",{x:t,y:r,width:n,height:i,fill:"#FFFFFF"},!0);o.appendChild(a)}createLinearGradient(t,r,n,i){const o=this.__createElement("linearGradient",{id:Qc(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new jf(o,this)}createRadialGradient(t,r,n,i,o,a){const s=this.__createElement("radialGradient",{id:Qc(this.__ids),cx:i+"px",cy:o+"px",r:a+"px",fx:t+"px",fy:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(s),new jf(s,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(),a=this.__closestGroupOrSvg(),s=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":_A(this.textAlign),"dominant-baseline":bA(this.textBaseline)},!0);s.appendChild(this.__document.createTextNode(t)),this.__currentElement=s,this.__applyStyleToCurrentElement(i),a.appendChild(this.__wrapTextLink(o,s))}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,a){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const s=t+n*Math.cos(o),c=r+n*Math.sin(o),l=t+n*Math.cos(i),u=r+n*Math.sin(i),d=a?0:1;let f=0,h=o-i;h<0&&(h+=2*Math.PI),a?f=h>Math.PI?0:1:f=h>Math.PI?1:0,this.lineTo(l,u),this.__addPathCommand(Ur("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:d,endX:s,endY:c})),this.__currentPosition={x:s,y:c}}clip(){const t=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),n=Qc(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",Ur("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){var m;let r=t[0],n,i,o,a,s=0,c=0,l,u,d,f,h,p,g,v;if(t.length===3)n=t[1],i=t[2],l=r.width,u=r.height,o=l,a=u;else if(t.length===5)n=t[1],i=t[2],o=t[3],a=t[4],l=r.width,u=r.height;else if(t.length===9)s=t[1],c=t[2],l=t[3],u=t[4],n=t[5],i=t[6],o=t[7],a=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 rg){if(d=r.getSvg().cloneNode(!0),d.childNodes&&d.childNodes.length>1){for(f=d.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(h=d.childNodes[1],h){const x=h.getAttribute("transform");let N;x?N=x+" "+y:N=y,h.setAttribute("transform",N),_.appendChild(h)}}}else(r.nodeName==="CANVAS"||r.nodeName==="IMG")&&(p=this.__createElement("image"),p.setAttribute("width",o),p.setAttribute("height",a),p.setAttribute("preserveAspectRatio","none"),(s||c||l!==r.width||u!==r.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=a,(m=g.getContext("2d"))==null||m.drawImage(r,s,c,l,u,0,0,o,a),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=Qc(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 rg&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new o_(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}},a_=class B${constructor(t){jt(this,"point");this.point=new fs(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new B$({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},s_=class H$ extends a_{constructor(r){super(r);jt(this,"rx");jt(this,"ry");jt(this,"xAxisRotate");jt(this,"largeArcFlag");jt(this,"sweepFlag");this.rx=r.rx,this.ry=r.ry,this.xAxisRotate=(r==null?void 0:r.xAxisRotate)??0,this.largeArcFlag=(r==null?void 0:r.largeArcFlag)??1,this.sweepFlag=(r==null?void 0:r.sweepFlag)??1}static fromSVGPathData(r){if(r.length<8)throw new Error("Arc 参数个数错误");if(r[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new H$({x:r[6],y:r[7],rx:r[1],ry:r[2],xAxisRotate:r[3],largeArcFlag:r[4],sweepFlag:r[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()}`}},If=class q$ extends a_{constructor(r){super(r);jt(this,"ctrlPoints",[]);this.ctrlPoints.push(new fs({x:r.c1x,y:r.c1y})),this.ctrlPoints.push(new fs({x:r.c2x,y:r.c2y}))}static fromSVGPathData(r){if(r.length<7)throw new Error("CubicBezier 参数个数错误");if(r[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new q$({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[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(r=>r.toSVGPathD()).join(" ")} ${this.point.toSVGPathD()}`}};class fa{constructor(t){jt(this,"startPoint");jt(this,"isClosed",!1);jt(this,"lines",[]);jt(this,"normalizedLines",[]);var r;this.startPoint=(t==null?void 0:t.startPoint)??null,this.isClosed=(t==null?void 0:t.isClosed)??!1,(r=t==null?void 0:t.lines)==null||r.forEach(this.addLine),this.normalize()}setStartPoint(t,r){return this.startPoint=new fs({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=Cf(Ef(kf(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(If.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!qO(t))throw new Error("Not an SVG path!");const n=Cf(Ef(kf(t)));return fa.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new fa;for(let o=0,a=t.length;o<a;o++){const s=t[o],c=s[0];if(o==0&&c=="M"){n.setStartPoint(s[1],s[2]);continue}if(o==a-1&&c=="Z"){n.isClosed=!0;continue}n.addLine(new If({c1x:s[1],c1y:s[2],c2x:s[3],c2y:s[4],x:s[5],y:s[6]}))}n.normalize();const i=Xc(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 a=0;a<o.length;a++){const s=o[a].x,c=o[a].y;s<t[0]&&(t[0]=s),c<t[1]&&(t[1]=c),s>t[2]&&(t[2]=s),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 uA(this.toSVGPathD())}getPointAtLength(t){return hA(this.toSVGPathD(),t)}isPointInPath(t,r){return dA(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return fA(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 a=0,s=i.length;a<s;a+=2){const c=i[a],l=i[a+1],[u,d]=t.transformPoint(c,l);o.push(u,d)}return If.fromSVGPathData(o)}),this}translate(t,r){const n=new Fn().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new Fn().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new Fn().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new Fn().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 a=new fa;a.setStartPoint(t,r);const s=360/o;for(let c=0;c<o;c+=1){const l=s*c*Math.PI/180,u=t+2*n*Math.cos(l),d=r+2*n*Math.sin(l);a.addLine(new s_({x:u,y:d,rx:n,ry:i,xAxisRotate:s*c,largeArcFlag:1,sweepFlag:1})),a.addLine(new s_({x:t,y:r,rx:n,ry:i,xAxisRotate:s*c,largeArcFlag:1,sweepFlag:1}))}return a.normalize(),a}}var l_={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 a=n[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=r,i.c=n,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:s})},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,a){if(1&a&&(o=i(o)),8&a||4&a&&typeof o=="object"&&o&&o.__esModule)return o;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:o}),2&a&&typeof o!="string")for(var c in o)i.d(s,c,(function(l){return o[l]}).bind(null,c));return s},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=1)}([function(r,n,i){var o,a;o=[i(2)],(a=(function(s){function c(S){if(c.is(S,"function"))return l?S():s.on("raphael.DOMload",S);if(c.is(S,at))return c._engine.create[y](c,S.splice(0,3+c.is(S[0],$t))).add(S);var O=Array.prototype.slice.call(arguments,0);if(c.is(O[O.length-1],"function")){var I=O.pop();return l?I.call(c._engine.create[y](c,O)):s.on("raphael.DOMload",function(){I.call(c._engine.create[y](c,O))})}return c._engine.create[y](c,arguments)}c.version="2.3.0",c.eve=s;var l,u,d=/[, ]+/,f={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},h=/\{(\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="",$=" ",A=String,R="split",G="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[R]($),H={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},Y=A.prototype.toLowerCase,J=Math,nt=J.max,rt=J.min,lt=J.abs,xt=J.pow,Ct=J.PI,$t="number",at="array",X=Object.prototype.toString,T=(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),E={NaN:1,Infinity:1,"-Infinity":1},k=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,b=J.round,C=parseFloat,L=parseInt,D=A.prototype.toUpperCase,V=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:""},K=c._availableAnimAttrs={blur:$t,"clip-rect":"csv",cx:$t,cy:$t,fill:"colour","fill-opacity":$t,"font-size":$t,height:$t,opacity:$t,path:"path",r:$t,rx:$t,ry:$t,stroke:"colour","stroke-opacity":$t,"stroke-width":$t,transform:"transform",width:$t,x:$t,y:$t},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]*/,it={hs:1,rg:1},ut=/,?([achlmqrstvxz]),?/gi,Tt=/([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,Gt=/([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,Pt=/(-?\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,Nt=(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]*([^\)]+?)\))?/,{}),qt=function(S,O){return C(S)-C(O)},Qt=function(S){return S},Dt=c._rectPath=function(S,O,I,w,P){return P?[["M",S+P,O],["l",I-2*P,0],["a",P,P,0,0,1,P,P],["l",0,w-2*P],["a",P,P,0,0,1,-P,P],["l",2*P-I,0],["a",P,P,0,0,1,-P,-P],["l",0,2*P-w],["a",P,P,0,0,1,P,-P],["z"]]:[["M",S,O],["l",I,0],["l",0,w],["l",-I,0],["z"]]},fe=function(S,O,I,w){return w==null&&(w=I),[["M",S,O],["m",0,-w],["a",I,w,0,1,1,0,2*w],["a",I,w,0,1,1,0,-2*w],["z"]]},re=c._getPath={path:function(S){return S.attr("path")},circle:function(S){var O=S.attrs;return fe(O.cx,O.cy,O.r)},ellipse:function(S){var O=S.attrs;return fe(O.cx,O.cy,O.rx,O.ry)},rect:function(S){var O=S.attrs;return Dt(O.x,O.y,O.width,O.height,O.r)},image:function(S){var O=S.attrs;return Dt(O.x,O.y,O.width,O.height)},text:function(S){var O=S._getBBox();return Dt(O.x,O.y,O.width,O.height)},set:function(S){var O=S._getBBox();return Dt(O.x,O.y,O.width,O.height)}},he=c.mapPath=function(S,O){if(!O)return S;var I,w,P,F,B,q,W;for(P=0,B=(S=Xn(S)).length;P<B;P++)for(F=1,q=(W=S[P]).length;F<q;F+=2)I=O.x(W[F],W[F+1]),w=O.y(W[F],W[F+1]),W[F]=I,W[F+1]=w;return S};if(c._g=g,c.type=g.win.SVGAngle||g.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.type=="VML"){var Vt,Le=g.doc.createElement("div");if(Le.innerHTML='<v:shape adj="1"/>',(Vt=Le.firstChild).style.behavior="url(#default#VML)",!Vt||typeof Vt.adj!="object")return c.type=N;Le=null}function Ue(S){if(typeof S=="function"||Object(S)!==S)return S;var O=new S.constructor;for(var I in S)S[p](I)&&(O[I]=Ue(S[I]));return O}c.svg=!(c.vml=c.type=="VML"),c._Paper=_,c.fn=u=_.prototype=c.prototype,c._id=0,c.is=function(S,O){return(O=Y.call(O))=="finite"?!E[p](+S):O=="array"?S instanceof Array:O=="null"&&S===null||O==typeof S&&S!==null||O=="object"&&S===Object(S)||O=="array"&&Array.isArray&&Array.isArray(S)||X.call(S).slice(8,-1).toLowerCase()==O},c.angle=function(S,O,I,w,P,F){if(P==null){var B=S-I,q=O-w;return B||q?(180+180*J.atan2(-q,-B)/Ct+360)%360:0}return c.angle(S,O,P,F)-c.angle(I,w,P,F)},c.rad=function(S){return S%360*Ct/180},c.deg=function(S){return Math.round(180*S/Ct%360*1e3)/1e3},c.snapTo=function(S,O,I){if(I=c.is(I,"finite")?I:10,c.is(S,at)){for(var w=S.length;w--;)if(lt(S[w]-O)<=I)return S[w]}else{var P=O%(S=+S);if(P<I)return O-P;if(P>S-I)return O-P+S}return O};var Xe,pr;c.createUUID=(Xe=/[xy]/g,pr=function(S){var O=16*J.random()|0;return(S=="x"?O:3&O|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Xe,pr).toUpperCase()}),c.setWindow=function(S){s("raphael.setWindow",c,g.win,S),g.win=S,g.doc=g.win.document,c._engine.initWin&&c._engine.initWin(g.win)};var dr=function(S){if(c.vml){var O,I=/^\s+|\s+$/g;try{var w=new ActiveXObject("htmlfile");w.write("<body>"),w.close(),O=w.body}catch{O=createPopup().document.body}var P=O.createTextRange();dr=er(function(B){try{O.style.color=A(B).replace(I,N);var q=P.queryCommandValue("ForeColor");return"#"+("000000"+(q=(255&q)<<16|65280&q|(16711680&q)>>>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),dr=er(function(B){return F.style.color=B,g.doc.defaultView.getComputedStyle(F,N).getPropertyValue("color")})}return dr(S)},$e=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ze=function(){return"hsl("+[this.h,this.s,this.l]+")"},jr=function(){return this.hex},Ir=function(S,O,I){if(O==null&&c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S&&(I=S.b,O=S.g,S=S.r),O==null&&c.is(S,"string")){var w=c.getRGB(S);S=w.r,O=w.g,I=w.b}return(S>1||O>1||I>1)&&(S/=255,O/=255,I/=255),[S,O,I]},Sr=function(S,O,I,w){var P={r:S*=255,g:O*=255,b:I*=255,hex:c.rgb(S,O,I),toString:jr};return c.is(w,"finite")&&(P.opacity=w),P};function er(S,O,I){return function w(){var P=Array.prototype.slice.call(arguments,0),F=P.join("␀"),B=w.cache=w.cache||{},q=w.count=w.count||[];return B[p](F)?(function(W,tt){for(var ot=0,dt=W.length;ot<dt;ot++)if(W[ot]===tt)return W.push(W.splice(ot,1)[0])}(q,F),I?I(B[F]):B[F]):(q.length>=1e3&&delete B[q.shift()],q.push(F),B[F]=S[y](O,P),I?I(B[F]):B[F])}}c.color=function(S){var O;return c.is(S,"object")&&"h"in S&&"s"in S&&"b"in S?(O=c.hsb2rgb(S),S.r=O.r,S.g=O.g,S.b=O.b,S.hex=O.hex):c.is(S,"object")&&"h"in S&&"s"in S&&"l"in S?(O=c.hsl2rgb(S),S.r=O.r,S.g=O.g,S.b=O.b,S.hex=O.hex):(c.is(S,"string")&&(S=c.getRGB(S)),c.is(S,"object")&&"r"in S&&"g"in S&&"b"in S?(O=c.rgb2hsl(S),S.h=O.h,S.s=O.s,S.l=O.l,O=c.rgb2hsb(S),S.v=O.b):(S={hex:"none"}).r=S.g=S.b=S.h=S.s=S.v=S.l=-1),S.toString=jr,S},c.hsb2rgb=function(S,O,I,w){var P,F,B,q,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"b"in S&&(I=S.b,O=S.s,w=S.o,S=S.h),q=(W=I*O)*(1-lt((S=(S*=360)%360/60)%2-1)),P=F=B=I-W,Sr(P+=[W,q,0,0,q,W][S=~~S],F+=[q,W,W,q,0,0][S],B+=[0,0,q,W,W,q][S],w)},c.hsl2rgb=function(S,O,I,w){var P,F,B,q,W;return this.is(S,"object")&&"h"in S&&"s"in S&&"l"in S&&(I=S.l,O=S.s,S=S.h),(S>1||O>1||I>1)&&(S/=360,O/=100,I/=100),q=(W=2*O*(I<.5?I:1-I))*(1-lt((S=(S*=360)%360/60)%2-1)),P=F=B=I-W/2,Sr(P+=[W,q,0,0,q,W][S=~~S],F+=[q,W,W,q,0,0][S],B+=[0,0,q,W,W,q][S],w)},c.rgb2hsb=function(S,O,I){var w,P;return S=(I=Ir(S,O,I))[0],O=I[1],I=I[2],{h:(((P=(w=nt(S,O,I))-rt(S,O,I))==0?null:w==S?(O-I)/P:w==O?(I-S)/P+2:(S-O)/P+4)+360)%6*60/360,s:P==0?0:P/w,b:w,toString:$e}},c.rgb2hsl=function(S,O,I){var w,P,F,B;return S=(I=Ir(S,O,I))[0],O=I[1],I=I[2],w=((P=nt(S,O,I))+(F=rt(S,O,I)))/2,{h:(((B=P-F)==0?null:P==S?(O-I)/B:P==O?(I-S)/B+2:(S-O)/B+4)+360)%6*60/360,s:B==0?0:w<.5?B/(2*w):B/(2-2*w),l:w,toString:Ze}},c._path2string=function(){return this.join(",").replace(ut,"$1")},c._preload=function(S,O){var I=g.doc.createElement("img");I.style.cssText="position:absolute;left:-9999em;top:-9999em",I.onload=function(){O.call(this),this.onload=null,g.doc.body.removeChild(this)},I.onerror=function(){g.doc.body.removeChild(this)},g.doc.body.appendChild(I),I.src=S};function rn(){return this.hex}function nn(S,O){for(var I=[],w=0,P=S.length;P-2*!O>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]}];O?w?P-4==w?F[3]={x:+S[0],y:+S[1]}:P-2==w&&(F[2]={x:+S[0],y:+S[1]},F[3]={x:+S[2],y:+S[3]}):F[0]={x:+S[P-2],y:+S[P-1]}:P-4==w?F[3]=F[2]:w||(F[0]={x:+S[w],y:+S[w+1]}),I.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 I}c.getRGB=er(function(S){if(!S||(S=A(S)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:rn};if(S=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:rn};!it[p](S.toLowerCase().substring(0,2))&&S.charAt()!="#"&&(S=dr(S));var O,I,w,P,F,B,q=S.match(T);return q?(q[2]&&(w=L(q[2].substring(5),16),I=L(q[2].substring(3,5),16),O=L(q[2].substring(1,3),16)),q[3]&&(w=L((F=q[3].charAt(3))+F,16),I=L((F=q[3].charAt(2))+F,16),O=L((F=q[3].charAt(1))+F,16)),q[4]&&(B=q[4][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),q[1].toLowerCase().slice(0,4)=="rgba"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100)),q[5]?(B=q[5][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),q[1].toLowerCase().slice(0,4)=="hsba"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsb2rgb(O,I,w,P)):q[6]?(B=q[6][R](et),O=C(B[0]),B[0].slice(-1)=="%"&&(O*=2.55),I=C(B[1]),B[1].slice(-1)=="%"&&(I*=2.55),w=C(B[2]),B[2].slice(-1)=="%"&&(w*=2.55),(B[0].slice(-3)=="deg"||B[0].slice(-1)=="°")&&(O/=360),q[1].toLowerCase().slice(0,4)=="hsla"&&(P=C(B[3])),B[3]&&B[3].slice(-1)=="%"&&(P/=100),c.hsl2rgb(O,I,w,P)):((q={r:O,g:I,b:w,toString:rn}).hex="#"+(16777216|w|I<<8|O<<16).toString(16).slice(1),c.is(P,"finite")&&(q.opacity=P),q)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:rn}},c),c.hsb=er(function(S,O,I){return c.hsb2rgb(S,O,I).hex}),c.hsl=er(function(S,O,I){return c.hsl2rgb(S,O,I).hex}),c.rgb=er(function(S,O,I){function w(P){return P+.5|0}return"#"+(16777216|w(I)|w(O)<<8|w(S)<<16).toString(16).slice(1)}),c.getColor=function(S){var O=this.getColor.start=this.getColor.start||{h:0,s:1,b:S||.75},I=this.hsb2rgb(O.h,O.s,O.b);return O.h+=.075,O.h>1&&(O.h=0,O.s-=.2,O.s<=0&&(this.getColor.start={h:0,s:1,b:O.b})),I.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(S){if(!S)return null;var O=xe(S);if(O.arr)return Ie(O.arr);var I={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=Ie(S)),w.length||A(S).replace(Tt,function(P,F,B){var q=[],W=F.toLowerCase();if(B.replace(Pt,function(tt,ot){ot&&q.push(+ot)}),W=="m"&&q.length>2&&(w.push([F][m](q.splice(0,2))),W="l",F=F=="m"?"l":"L"),W=="r")w.push([F][m](q));else for(;q.length>=I[W]&&(w.push([F][m](q.splice(0,I[W]))),I[W]););}),w.toString=c._path2string,O.arr=Ie(w),w},c.parseTransformString=er(function(S){if(!S)return null;var O=[];return c.is(S,at)&&c.is(S[0],at)&&(O=Ie(S)),O.length||A(S).replace(Gt,function(I,w,P){var F=[];Y.call(w),P.replace(Pt,function(B,q){q&&F.push(+q)}),O.push([w][m](F))}),O.toString=c._path2string,O},this,function(S){if(!S)return S;for(var O=[],I=0;I<S.length;I++){for(var w=[],P=0;P<S[I].length;P++)w.push(S[I][P]);O.push(w)}return O});var xe=function(S){var O=xe.ps=xe.ps||{};return O[S]?O[S].sleep=100:O[S]={sleep:100},setTimeout(function(){for(var I in O)O[p](I)&&I!=S&&(O[I].sleep--,!O[I].sleep&&delete O[I])}),O[S]};function Kr(S,O,I,w,P){return S*(S*(-3*O+9*I-9*w+3*P)+6*O-12*I+6*w)-3*O+3*I}function Or(S,O,I,w,P,F,B,q,W){W==null&&(W=1);for(var tt=(W=W>1?1:W<0?0:W)/2,ot=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],dt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],ct=0,st=0;st<12;st++){var ft=tt*ot[st]+tt,_t=Kr(ft,S,I,P,B),pt=Kr(ft,O,w,F,q),ht=_t*_t+pt*pt;ct+=dt[st]*J.sqrt(ht)}return tt*ct}function Yn(S,O,I,w,P,F,B,q){if(!(nt(S,I)<rt(P,B)||rt(S,I)>nt(P,B)||nt(O,w)<rt(F,q)||rt(O,w)>nt(F,q))){var W=(S-I)*(F-q)-(O-w)*(P-B);if(W){var tt=((S*w-O*I)*(P-B)-(S-I)*(P*q-F*B))/W,ot=((S*w-O*I)*(F-q)-(O-w)*(P*q-F*B))/W,dt=+tt.toFixed(2),ct=+ot.toFixed(2);if(!(dt<+rt(S,I).toFixed(2)||dt>+nt(S,I).toFixed(2)||dt<+rt(P,B).toFixed(2)||dt>+nt(P,B).toFixed(2)||ct<+rt(O,w).toFixed(2)||ct>+nt(O,w).toFixed(2)||ct<+rt(F,q).toFixed(2)||ct>+nt(F,q).toFixed(2)))return{x:tt,y:ot}}}}function mn(S,O,I){var w=c.bezierBBox(S),P=c.bezierBBox(O);if(!c.isBBoxIntersect(w,P))return I?0:[];for(var F=Or.apply(0,S),B=Or.apply(0,O),q=nt(~~(F/5),1),W=nt(~~(B/5),1),tt=[],ot=[],dt={},ct=I?0:[],st=0;st<q+1;st++){var ft=c.findDotsAtSegment.apply(c,S.concat(st/q));tt.push({x:ft.x,y:ft.y,t:st/q})}for(st=0;st<W+1;st++)ft=c.findDotsAtSegment.apply(c,O.concat(st/W)),ot.push({x:ft.x,y:ft.y,t:st/W});for(st=0;st<q;st++)for(var _t=0;_t<W;_t++){var pt=tt[st],ht=tt[st+1],Rt=ot[_t],bt=ot[_t+1],Et=lt(ht.x-pt.x)<.001?"y":"x",wt=lt(bt.x-Rt.x)<.001?"y":"x",ae=Yn(pt.x,pt.y,ht.x,ht.y,Rt.x,Rt.y,bt.x,bt.y);if(ae){if(dt[ae.x.toFixed(4)]==ae.y.toFixed(4))continue;dt[ae.x.toFixed(4)]=ae.y.toFixed(4);var te=pt.t+lt((ae[Et]-pt[Et])/(ht[Et]-pt[Et]))*(ht.t-pt.t),se=Rt.t+lt((ae[wt]-Rt[wt])/(bt[wt]-Rt[wt]))*(bt.t-Rt.t);te>=0&&te<=1.001&&se>=0&&se<=1.001&&(I?ct++:ct.push({x:ae.x,y:ae.y,t1:rt(te,1),t2:rt(se,1)}))}}return ct}function kn(S,O,I){S=c._path2curve(S),O=c._path2curve(O);for(var w,P,F,B,q,W,tt,ot,dt,ct,st=I?0:[],ft=0,_t=S.length;ft<_t;ft++){var pt=S[ft];if(pt[0]=="M")w=q=pt[1],P=W=pt[2];else{pt[0]=="C"?(dt=[w,P].concat(pt.slice(1)),w=dt[6],P=dt[7]):(dt=[w,P,w,P,q,W,q,W],w=q,P=W);for(var ht=0,Rt=O.length;ht<Rt;ht++){var bt=O[ht];if(bt[0]=="M")F=tt=bt[1],B=ot=bt[2];else{bt[0]=="C"?(ct=[F,B].concat(bt.slice(1)),F=ct[6],B=ct[7]):(ct=[F,B,F,B,tt,ot,tt,ot],F=tt,B=ot);var Et=mn(dt,ct,I);if(I)st+=Et;else{for(var wt=0,ae=Et.length;wt<ae;wt++)Et[wt].segment1=ft,Et[wt].segment2=ht,Et[wt].bez1=dt,Et[wt].bez2=ct;st=st.concat(Et)}}}}}return st}c.findDotsAtSegment=function(S,O,I,w,P,F,B,q,W){var tt=1-W,ot=xt(tt,3),dt=xt(tt,2),ct=W*W,st=ct*W,ft=ot*S+3*dt*W*I+3*tt*W*W*P+st*B,_t=ot*O+3*dt*W*w+3*tt*W*W*F+st*q,pt=S+2*W*(I-S)+ct*(P-2*I+S),ht=O+2*W*(w-O)+ct*(F-2*w+O),Rt=I+2*W*(P-I)+ct*(B-2*P+I),bt=w+2*W*(F-w)+ct*(q-2*F+w),Et=tt*S+W*I,wt=tt*O+W*w,ae=tt*P+W*B,te=tt*F+W*q,se=90-180*J.atan2(pt-Rt,ht-bt)/Ct;return(pt>Rt||ht<bt)&&(se+=180),{x:ft,y:_t,m:{x:pt,y:ht},n:{x:Rt,y:bt},start:{x:Et,y:wt},end:{x:ae,y:te},alpha:se}},c.bezierBBox=function(S,O,I,w,P,F,B,q){c.is(S,"array")||(S=[S,O,I,w,P,F,B,q]);var W=Yr.apply(null,S);return{x:W.min.x,y:W.min.y,x2:W.max.x,y2:W.max.y,width:W.max.x-W.min.x,height:W.max.y-W.min.y}},c.isPointInsideBBox=function(S,O,I){return O>=S.x&&O<=S.x2&&I>=S.y&&I<=S.y2},c.isBBoxIntersect=function(S,O){var I=c.isPointInsideBBox;return I(O,S.x,S.y)||I(O,S.x2,S.y)||I(O,S.x,S.y2)||I(O,S.x2,S.y2)||I(S,O.x,O.y)||I(S,O.x2,O.y)||I(S,O.x,O.y2)||I(S,O.x2,O.y2)||(S.x<O.x2&&S.x>O.x||O.x<S.x2&&O.x>S.x)&&(S.y<O.y2&&S.y>O.y||O.y<S.y2&&O.y>S.y)},c.pathIntersection=function(S,O){return kn(S,O)},c.pathIntersectionNumber=function(S,O){return kn(S,O,1)},c.isPointInsidePath=function(S,O,I){var w=c.pathBBox(S);return c.isPointInsideBBox(w,O,I)&&kn(S,[["M",O,I],["H",w.x2+10]],1)%2==1},c._removedFactory=function(S){return function(){s("raphael.log",null,"Raphaël: you are calling to method “"+S+"” of removed object",S)}};var Dr=c.pathBBox=function(S){var O=xe(S);if(O.bbox)return Ue(O.bbox);if(!S)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var I,w=0,P=0,F=[],B=[],q=0,W=(S=Xn(S)).length;q<W;q++)if((I=S[q])[0]=="M")w=I[1],P=I[2],F.push(w),B.push(P);else{var tt=Yr(w,P,I[1],I[2],I[3],I[4],I[5],I[6]);F=F[m](tt.min.x,tt.max.x),B=B[m](tt.min.y,tt.max.y),w=I[5],P=I[6]}var ot=rt[y](0,F),dt=rt[y](0,B),ct=nt[y](0,F),st=nt[y](0,B),ft=ct-ot,_t=st-dt,pt={x:ot,y:dt,x2:ct,y2:st,width:ft,height:_t,cx:ot+ft/2,cy:dt+_t/2};return O.bbox=Ue(pt),pt},Ie=function(S){var O=Ue(S);return O.toString=c._path2string,O},mo=c._pathToRelative=function(S){var O=xe(S);if(O.rel)return Ie(O.rel);c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S));var I=[],w=0,P=0,F=0,B=0,q=0;S[0][0]=="M"&&(F=w=S[0][1],B=P=S[0][2],q++,I.push(["M",w,P]));for(var W=q,tt=S.length;W<tt;W++){var ot=I[W]=[],dt=S[W];if(dt[0]!=Y.call(dt[0]))switch(ot[0]=Y.call(dt[0]),ot[0]){case"a":ot[1]=dt[1],ot[2]=dt[2],ot[3]=dt[3],ot[4]=dt[4],ot[5]=dt[5],ot[6]=+(dt[6]-w).toFixed(3),ot[7]=+(dt[7]-P).toFixed(3);break;case"v":ot[1]=+(dt[1]-P).toFixed(3);break;case"m":F=dt[1],B=dt[2];default:for(var ct=1,st=dt.length;ct<st;ct++)ot[ct]=+(dt[ct]-(ct%2?w:P)).toFixed(3)}else{ot=I[W]=[],dt[0]=="m"&&(F=dt[1]+w,B=dt[2]+P);for(var ft=0,_t=dt.length;ft<_t;ft++)I[W][ft]=dt[ft]}var pt=I[W].length;switch(I[W][0]){case"z":w=F,P=B;break;case"h":w+=+I[W][pt-1];break;case"v":P+=+I[W][pt-1];break;default:w+=+I[W][pt-2],P+=+I[W][pt-1]}}return I.toString=c._path2string,O.rel=Ie(I),I},on=c._pathToAbsolute=function(S){var O=xe(S);if(O.abs)return Ie(O.abs);if(c.is(S,at)&&c.is(S&&S[0],at)||(S=c.parsePathString(S)),!S||!S.length)return[["M",0,0]];var I=[],w=0,P=0,F=0,B=0,q=0;S[0][0]=="M"&&(F=w=+S[0][1],B=P=+S[0][2],q++,I[0]=["M",w,P]);for(var W,tt,ot=S.length==3&&S[0][0]=="M"&&S[1][0].toUpperCase()=="R"&&S[2][0].toUpperCase()=="Z",dt=q,ct=S.length;dt<ct;dt++){if(I.push(W=[]),(tt=S[dt])[0]!=D.call(tt[0]))switch(W[0]=D.call(tt[0]),W[0]){case"A":W[1]=tt[1],W[2]=tt[2],W[3]=tt[3],W[4]=tt[4],W[5]=tt[5],W[6]=+(tt[6]+w),W[7]=+(tt[7]+P);break;case"V":W[1]=+tt[1]+P;break;case"H":W[1]=+tt[1]+w;break;case"R":for(var st=[w,P][m](tt.slice(1)),ft=2,_t=st.length;ft<_t;ft++)st[ft]=+st[ft]+w,st[++ft]=+st[ft]+P;I.pop(),I=I[m](nn(st,ot));break;case"M":F=+tt[1]+w,B=+tt[2]+P;default:for(ft=1,_t=tt.length;ft<_t;ft++)W[ft]=+tt[ft]+(ft%2?w:P)}else if(tt[0]=="R")st=[w,P][m](tt.slice(1)),I.pop(),I=I[m](nn(st,ot)),W=["R"][m](tt.slice(-2));else for(var pt=0,ht=tt.length;pt<ht;pt++)W[pt]=tt[pt];switch(W[0]){case"Z":w=F,P=B;break;case"H":w=W[1];break;case"V":P=W[1];break;case"M":F=W[W.length-2],B=W[W.length-1];default:w=W[W.length-2],P=W[W.length-1]}}return I.toString=c._path2string,O.abs=Ie(I),I},gn=function(S,O,I,w){return[S,O,I,w,I,w]},$r=function(S,O,I,w,P,F){return[1/3*S+2/3*I,1/3*O+2/3*w,1/3*P+2/3*I,1/3*F+2/3*w,P,F]},En=function(S,O,I,w,P,F,B,q,W,tt){var ot,dt=120*Ct/180,ct=Ct/180*(+P||0),st=[],ft=er(function(z$,G$,yh){return{x:z$*J.cos(yh)-G$*J.sin(yh),y:z$*J.sin(yh)+G$*J.cos(yh)}});if(tt)te=tt[0],se=tt[1],wt=tt[2],ae=tt[3];else{S=(ot=ft(S,O,-ct)).x,O=ot.y,q=(ot=ft(q,W,-ct)).x,W=ot.y;var _t=(S-q)/2,pt=(O-W)/2,ht=_t*_t/(I*I)+pt*pt/(w*w);ht>1&&(I*=ht=J.sqrt(ht),w*=ht);var Rt=I*I,bt=w*w,Et=(F==B?-1:1)*J.sqrt(lt((Rt*bt-Rt*pt*pt-bt*_t*_t)/(Rt*pt*pt+bt*_t*_t))),wt=Et*I*pt/w+(S+q)/2,ae=Et*-w*_t/I+(O+W)/2,te=J.asin(((O-ae)/w).toFixed(9)),se=J.asin(((W-ae)/w).toFixed(9));(te=S<wt?Ct-te:te)<0&&(te=2*Ct+te),(se=q<wt?Ct-se:se)<0&&(se=2*Ct+se),B&&te>se&&(te-=2*Ct),!B&&se>te&&(se-=2*Ct)}var Ma=se-te;if(lt(Ma)>dt){var ac=se,sn=q,hi=W;se=te+dt*(B&&se>te?1:-1),q=wt+I*J.cos(se),W=ae+w*J.sin(se),st=En(q,W,I,w,P,0,B,sn,hi,[se,ac,wt,ae])}Ma=se-te;var La=J.cos(te),Ua=J.sin(te),gh=J.cos(se),Li=J.sin(se),na=J.tan(Ma/4),vh=4/3*I*na,D$=4/3*w*na,F$=[S,O],za=[S+vh*Ua,O-D$*La],M$=[q+vh*Li,W-D$*gh],L$=[q,W];if(za[0]=2*F$[0]-za[0],za[1]=2*F$[1]-za[1],tt)return[za,M$,L$][m](st);for(var U$=[],go=0,UY=(st=[za,M$,L$][m](st).join()[R](",")).length;go<UY;go++)U$[go]=go%2?ft(st[go-1],st[go],ct).y:ft(st[go],st[go+1],ct).x;return U$},vn=function(S,O,I,w,P,F,B,q,W){var tt=1-W;return{x:xt(tt,3)*S+3*xt(tt,2)*W*I+3*tt*W*W*P+xt(W,3)*B,y:xt(tt,3)*O+3*xt(tt,2)*W*w+3*tt*W*W*F+xt(W,3)*q}},Yr=er(function(S,O,I,w,P,F,B,q){var W,tt=P-2*I+S-(B-2*P+I),ot=2*(I-S)-2*(P-I),dt=S-I,ct=(-ot+J.sqrt(ot*ot-4*tt*dt))/2/tt,st=(-ot-J.sqrt(ot*ot-4*tt*dt))/2/tt,ft=[O,q],_t=[S,B];return lt(ct)>"1e12"&&(ct=.5),lt(st)>"1e12"&&(st=.5),ct>0&&ct<1&&(W=vn(S,O,I,w,P,F,B,q,ct),_t.push(W.x),ft.push(W.y)),st>0&&st<1&&(W=vn(S,O,I,w,P,F,B,q,st),_t.push(W.x),ft.push(W.y)),tt=F-2*w+O-(q-2*F+w),dt=O-w,ct=(-(ot=2*(w-O)-2*(F-w))+J.sqrt(ot*ot-4*tt*dt))/2/tt,st=(-ot-J.sqrt(ot*ot-4*tt*dt))/2/tt,lt(ct)>"1e12"&&(ct=.5),lt(st)>"1e12"&&(st=.5),ct>0&&ct<1&&(W=vn(S,O,I,w,P,F,B,q,ct),_t.push(W.x),ft.push(W.y)),st>0&&st<1&&(W=vn(S,O,I,w,P,F,B,q,st),_t.push(W.x),ft.push(W.y)),{min:{x:rt[y](0,_t),y:rt[y](0,ft)},max:{x:nt[y](0,_t),y:nt[y](0,ft)}}}),Xn=c._path2curve=er(function(S,O){var I=!O&&xe(S);if(!O&&I.curve)return Ie(I.curve);for(var w=on(S),P=O&&on(O),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},q=function(Et,wt,ae){var te,se;if(!Et)return["C",wt.x,wt.y,wt.x,wt.y,wt.x,wt.y];switch(!(Et[0]in{T:1,Q:1})&&(wt.qx=wt.qy=null),Et[0]){case"M":wt.X=Et[1],wt.Y=Et[2];break;case"A":Et=["C"][m](En[y](0,[wt.x,wt.y][m](Et.slice(1))));break;case"S":ae=="C"||ae=="S"?(te=2*wt.x-wt.bx,se=2*wt.y-wt.by):(te=wt.x,se=wt.y),Et=["C",te,se][m](Et.slice(1));break;case"T":ae=="Q"||ae=="T"?(wt.qx=2*wt.x-wt.qx,wt.qy=2*wt.y-wt.qy):(wt.qx=wt.x,wt.qy=wt.y),Et=["C"][m]($r(wt.x,wt.y,wt.qx,wt.qy,Et[1],Et[2]));break;case"Q":wt.qx=Et[1],wt.qy=Et[2],Et=["C"][m]($r(wt.x,wt.y,Et[1],Et[2],Et[3],Et[4]));break;case"L":Et=["C"][m](gn(wt.x,wt.y,Et[1],Et[2]));break;case"H":Et=["C"][m](gn(wt.x,wt.y,Et[1],wt.y));break;case"V":Et=["C"][m](gn(wt.x,wt.y,wt.x,Et[1]));break;case"Z":Et=["C"][m](gn(wt.x,wt.y,wt.X,wt.Y))}return Et},W=function(Et,wt){if(Et[wt].length>7){Et[wt].shift();for(var ae=Et[wt];ae.length;)ot[wt]="A",P&&(dt[wt]="A"),Et.splice(wt++,0,["C"][m](ae.splice(0,6)));Et.splice(wt,1),_t=nt(w.length,P&&P.length||0)}},tt=function(Et,wt,ae,te,se){Et&&wt&&Et[se][0]=="M"&&wt[se][0]!="M"&&(wt.splice(se,0,["M",te.x,te.y]),ae.bx=0,ae.by=0,ae.x=Et[se][1],ae.y=Et[se][2],_t=nt(w.length,P&&P.length||0))},ot=[],dt=[],ct="",st="",ft=0,_t=nt(w.length,P&&P.length||0);ft<_t;ft++){w[ft]&&(ct=w[ft][0]),ct!="C"&&(ot[ft]=ct,ft&&(st=ot[ft-1])),w[ft]=q(w[ft],F,st),ot[ft]!="A"&&ct=="C"&&(ot[ft]="C"),W(w,ft),P&&(P[ft]&&(ct=P[ft][0]),ct!="C"&&(dt[ft]=ct,ft&&(st=dt[ft-1])),P[ft]=q(P[ft],B,st),dt[ft]!="A"&&ct=="C"&&(dt[ft]="C"),W(P,ft)),tt(w,P,F,B,ft),tt(P,w,B,F,ft);var pt=w[ft],ht=P&&P[ft],Rt=pt.length,bt=P&&ht.length;F.x=pt[Rt-2],F.y=pt[Rt-1],F.bx=C(pt[Rt-4])||F.x,F.by=C(pt[Rt-3])||F.y,B.bx=P&&(C(ht[bt-4])||B.x),B.by=P&&(C(ht[bt-3])||B.y),B.x=P&&ht[bt-2],B.y=P&&ht[bt-1]}return P||(I.curve=Ie(w)),P?[w,P]:w},null,Ie),Cn=(c._parseDots=er(function(S){for(var O=[],I=0,w=S.length;I<w;I++){var P={},F=S[I].match(/^([^:]*):?([\d\.]*)/);if(P.color=c.getRGB(F[1]),P.color.error)return null;P.opacity=P.color.opacity,P.color=P.color.hex,F[2]&&(P.offset=F[2]+"%"),O.push(P)}for(I=1,w=O.length-1;I<w;I++)if(!O[I].offset){for(var B=C(O[I-1].offset||0),q=0,W=I+1;W<w;W++)if(O[W].offset){q=O[W].offset;break}q||(q=100,W=w);for(var tt=((q=C(q))-B)/(W-I+1);I<W;I++)B+=tt,O[I].offset=B+"%"}return O}),c._tear=function(S,O){S==O.top&&(O.top=S.prev),S==O.bottom&&(O.bottom=S.next),S.next&&(S.next.prev=S.prev),S.prev&&(S.prev.next=S.next)}),j=(c._tofront=function(S,O){O.top!==S&&(Cn(S,O),S.next=null,S.prev=O.top,O.top.next=S,O.top=S)},c._toback=function(S,O){O.bottom!==S&&(Cn(S,O),S.next=O.bottom,S.prev=null,O.bottom.prev=S,O.bottom=S)},c._insertafter=function(S,O,I){Cn(S,I),O==I.top&&(I.top=S),O.next&&(O.next.prev=S),S.next=O.next,S.prev=O,O.next=S},c._insertbefore=function(S,O,I){Cn(S,I),O==I.bottom&&(I.bottom=S),O.prev&&(O.prev.next=S),S.prev=O.prev,O.prev=S,S.next=O},c.toMatrix=function(S,O){var I=Dr(S),w={_:{transform:N},getBBox:function(){return I}};return U(w,O),w.matrix}),U=(c.transformPath=function(S,O){return he(S,j(S,O))},c._extractTransform=function(S,O){if(O==null)return S._.transform;O=A(O).replace(/\.{3}|\u2026/g,S._.transform||N);var I,w,P=c.parseTransformString(O),F=0,B=1,q=1,W=S._,tt=new Z;if(W.transform=P||[],P)for(var ot=0,dt=P.length;ot<dt;ot++){var ct,st,ft,_t,pt,ht=P[ot],Rt=ht.length,bt=A(ht[0]).toLowerCase(),Et=ht[0]!=bt,wt=Et?tt.invert():0;bt=="t"&&Rt==3?Et?(ct=wt.x(0,0),st=wt.y(0,0),ft=wt.x(ht[1],ht[2]),_t=wt.y(ht[1],ht[2]),tt.translate(ft-ct,_t-st)):tt.translate(ht[1],ht[2]):bt=="r"?Rt==2?(pt=pt||S.getBBox(1),tt.rotate(ht[1],pt.x+pt.width/2,pt.y+pt.height/2),F+=ht[1]):Rt==4&&(Et?(ft=wt.x(ht[2],ht[3]),_t=wt.y(ht[2],ht[3]),tt.rotate(ht[1],ft,_t)):tt.rotate(ht[1],ht[2],ht[3]),F+=ht[1]):bt=="s"?Rt==2||Rt==3?(pt=pt||S.getBBox(1),tt.scale(ht[1],ht[Rt-1],pt.x+pt.width/2,pt.y+pt.height/2),B*=ht[1],q*=ht[Rt-1]):Rt==5&&(Et?(ft=wt.x(ht[3],ht[4]),_t=wt.y(ht[3],ht[4]),tt.scale(ht[1],ht[2],ft,_t)):tt.scale(ht[1],ht[2],ht[3],ht[4]),B*=ht[1],q*=ht[2]):bt=="m"&&Rt==7&&tt.add(ht[1],ht[2],ht[3],ht[4],ht[5],ht[6]),W.dirtyT=1,S.matrix=tt}S.matrix=tt,W.sx=B,W.sy=q,W.deg=F,W.dx=I=tt.e,W.dy=w=tt.f,B==1&&q==1&&!F&&W.bbox?(W.bbox.x+=+I,W.bbox.y+=+w):W.dirtyT=1}),z=function(S){var O=S[0];switch(O.toLowerCase()){case"t":return[O,0,0];case"m":return[O,1,0,0,1,0,0];case"r":return S.length==4?[O,0,S[2],S[3]]:[O,0];case"s":return S.length==5?[O,1,1,S[3],S[4]]:S.length==3?[O,1,1]:[O,1]}},Q=c._equaliseTransform=function(S,O){O=A(O).replace(/\.{3}|\u2026/g,S),S=c.parseTransformString(S)||[],O=c.parseTransformString(O)||[];for(var I,w,P,F,B=nt(S.length,O.length),q=[],W=[],tt=0;tt<B;tt++){if(P=S[tt]||z(O[tt]),F=O[tt]||z(P),P[0]!=F[0]||P[0].toLowerCase()=="r"&&(P[2]!=F[2]||P[3]!=F[3])||P[0].toLowerCase()=="s"&&(P[3]!=F[3]||P[4]!=F[4]))return;for(q[tt]=[],W[tt]=[],I=0,w=nt(P.length,F.length);I<w;I++)I in P&&(q[tt][I]=P[I]),I in F&&(W[tt][I]=F[I])}return{from:q,to:W}};function Z(S,O,I,w,P,F){S!=null?(this.a=+S,this.b=+O,this.c=+I,this.d=+w,this.e=+P,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,O,I,w){var P;if((P=w!=null||c.is(S,"object")?S:g.doc.getElementById(S))!=null)return P.tagName?O==null?{container:P,width:P.style.pixelWidth||P.offsetWidth,height:P.style.pixelHeight||P.offsetHeight}:{container:P,width:O,height:I}:{container:1,x:S,y:O,width:I,height:w}},c.pathToRelative=mo,c._engine={},c.path2curve=Xn,c.matrix=function(S,O,I,w,P,F){return new Z(S,O,I,w,P,F)},function(S){function O(w){return w[0]*w[0]+w[1]*w[1]}function I(w){var P=J.sqrt(O(w));w[0]&&(w[0]/=P),w[1]&&(w[1]/=P)}S.add=function(w,P,F,B,q,W){var tt,ot,dt,ct,st=[[],[],[]],ft=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],_t=[[w,F,q],[P,B,W],[0,0,1]];for(w&&w instanceof Z&&(_t=[[w.a,w.c,w.e],[w.b,w.d,w.f],[0,0,1]]),tt=0;tt<3;tt++)for(ot=0;ot<3;ot++){for(ct=0,dt=0;dt<3;dt++)ct+=ft[tt][dt]*_t[dt][ot];st[tt][ot]=ct}this.a=st[0][0],this.b=st[1][0],this.c=st[0][1],this.d=st[1][1],this.e=st[0][2],this.f=st[1][2]},S.invert=function(){var w=this,P=w.a*w.d-w.b*w.c;return new Z(w.d/P,-w.b/P,-w.c/P,w.a/P,(w.c*w.f-w.d*w.e)/P,(w.b*w.e-w.a*w.f)/P)},S.clone=function(){return new Z(this.a,this.b,this.c,this.d,this.e,this.f)},S.translate=function(w,P){this.add(1,0,0,1,w,P)},S.scale=function(w,P,F,B){P==null&&(P=w),(F||B)&&this.add(1,0,0,1,F,B),this.add(w,0,0,P,0,0),(F||B)&&this.add(1,0,0,1,-F,-B)},S.rotate=function(w,P,F){w=c.rad(w),P=P||0,F=F||0;var B=+J.cos(w).toFixed(9),q=+J.sin(w).toFixed(9);this.add(B,q,-q,B,P,F),this.add(1,0,0,1,-P,-F)},S.x=function(w,P){return w*this.a+P*this.c+this.e},S.y=function(w,P){return w*this.b+P*this.d+this.f},S.get=function(w){return+this[A.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 P=[[this.a,this.c],[this.b,this.d]];w.scalex=J.sqrt(O(P[0])),I(P[0]),w.shear=P[0][0]*P[1][0]+P[0][1]*P[1][1],P[1]=[P[1][0]-P[0][0]*w.shear,P[1][1]-P[0][1]*w.shear],w.scaley=J.sqrt(O(P[1])),I(P[1]),w.shear/=w.scaley;var F=-P[0][1],B=P[1][1];return B<0?(w.rotate=c.deg(J.acos(B)),F<0&&(w.rotate=360-w.rotate)):w.rotate=c.deg(J.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 P=w||this[R]();return P.isSimple?(P.scalex=+P.scalex.toFixed(4),P.scaley=+P.scaley.toFixed(4),P.rotate=+P.rotate.toFixed(4),(P.dx||P.dy?"t"+[P.dx,P.dy]:N)+(P.scalex!=1||P.scaley!=1?"s"+[P.scalex,P.scaley,0,0]:N)+(P.rotate?"r"+[P.rotate,0,0]:N)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Z.prototype);for(var yt=function(){this.returnValue=!1},vt=function(){return this.originalEvent.preventDefault()},It=function(){this.cancelBubble=!0},oe=function(){return this.originalEvent.stopPropagation()},Ht=function(S){var O=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,I=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:S.clientX+I,y:S.clientY+O}},Ot=g.doc.addEventListener?function(S,O,I,w){var P=function(B){var q=Ht(B);return I.call(w,B,q.x,q.y)};if(S.addEventListener(O,P,!1),x&&H[O]){var F=function(B){for(var q=Ht(B),W=B,tt=0,ot=B.targetTouches&&B.targetTouches.length;tt<ot;tt++)if(B.targetTouches[tt].target==S){(B=B.targetTouches[tt]).originalEvent=W,B.preventDefault=vt,B.stopPropagation=oe;break}return I.call(w,B,q.x,q.y)};S.addEventListener(H[O],F,!1)}return function(){return S.removeEventListener(O,P,!1),x&&H[O]&&S.removeEventListener(H[O],F,!1),!0}}:g.doc.attachEvent?function(S,O,I,w){var P=function(F){F=F||g.win.event;var B=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,q=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,W=F.clientX+q,tt=F.clientY+B;return F.preventDefault=F.preventDefault||yt,F.stopPropagation=F.stopPropagation||It,I.call(w,F,W,tt)};return S.attachEvent("on"+O,P),function(){return S.detachEvent("on"+O,P),!0}}:void 0,Ft=[],Zt=function(S){for(var O,I=S.clientX,w=S.clientY,P=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,F=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,B=Ft.length;B--;){if(O=Ft[B],x&&S.touches){for(var q,W=S.touches.length;W--;)if((q=S.touches[W]).identifier==O.el._drag.id){I=q.clientX,w=q.clientY,(S.originalEvent?S.originalEvent:S).preventDefault();break}}else S.preventDefault();var tt,ot=O.el.node,dt=ot.nextSibling,ct=ot.parentNode,st=ot.style.display;g.win.opera&&ct.removeChild(ot),ot.style.display="none",tt=O.el.paper.getElementByPoint(I,w),ot.style.display=st,g.win.opera&&(dt?ct.insertBefore(ot,dt):ct.appendChild(ot)),tt&&s("raphael.drag.over."+O.el.id,O.el,tt),I+=F,w+=P,s("raphael.drag.move."+O.el.id,O.move_scope||O.el,I-O.el._drag.x,w-O.el._drag.y,I,w,S)}},kt=function(S){c.unmousemove(Zt).unmouseup(kt);for(var O,I=Ft.length;I--;)(O=Ft[I]).el._drag={},s("raphael.drag.end."+O.el.id,O.end_scope||O.start_scope||O.move_scope||O.el,S);Ft=[]},At=c.el={},Xt=G.length;Xt--;)(function(S){c[S]=At[S]=function(O,I){return c.is(O,"function")&&(this.events=this.events||[],this.events.push({name:S,f:O,unbind:Ot(this.shape||this.node||g.doc,S,O,I||this)})),this},c["un"+S]=At["un"+S]=function(O){for(var I=this.events||[],w=I.length;w--;)I[w].name!=S||!c.is(O,"undefined")&&I[w].f!=O||(I[w].unbind(),I.splice(w,1),!I.length&&delete this.events);return this}})(G[Xt]);At.data=function(S,O){var I=Nt[this.id]=Nt[this.id]||{};if(arguments.length==0)return I;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 s("raphael.data.get."+this.id,this,I[S],S),I[S]}return I[S]=O,s("raphael.data.set."+this.id,this,O,S),this},At.removeData=function(S){return S==null?delete Nt[this.id]:Nt[this.id]&&delete Nt[this.id][S],this},At.getData=function(){return Ue(Nt[this.id]||{})},At.hover=function(S,O,I,w){return this.mouseover(S,I).mouseout(O,w||I)},At.unhover=function(S,O){return this.unmouseover(S).unmouseout(O)};var Te=[];At.drag=function(S,O,I,w,P,F){function B(q){(q.originalEvent||q).preventDefault();var W=q.clientX,tt=q.clientY,ot=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,dt=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;if(this._drag.id=q.identifier,x&&q.touches){for(var ct,st=q.touches.length;st--;)if(ct=q.touches[st],this._drag.id=ct.identifier,ct.identifier==this._drag.id){W=ct.clientX,tt=ct.clientY;break}}this._drag.x=W+dt,this._drag.y=tt+ot,!Ft.length&&c.mousemove(Zt).mouseup(kt),Ft.push({el:this,move_scope:w,start_scope:P,end_scope:F}),O&&s.on("raphael.drag.start."+this.id,O),S&&s.on("raphael.drag.move."+this.id,S),I&&s.on("raphael.drag.end."+this.id,I),s("raphael.drag.start."+this.id,P||w||this,this._drag.x,this._drag.y,q)}return this._drag={},Te.push({el:this,start:B}),this.mousedown(B),this},At.onDragOver=function(S){S?s.on("raphael.drag.over."+this.id,S):s.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var S=Te.length;S--;)Te[S].el==this&&(this.unmousedown(Te[S].start),Te.splice(S,1),s.unbind("raphael.drag.*."+this.id));!Te.length&&c.unmousemove(Zt).unmouseup(kt),Ft=[]},u.circle=function(S,O,I){var w=c._engine.circle(this,S||0,O||0,I||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(S,O,I,w,P){var F=c._engine.rect(this,S||0,O||0,I||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(S,O,I,w){var P=c._engine.ellipse(this,S||0,O||0,I||0,w||0);return this.__set__&&this.__set__.push(P),P},u.path=function(S){S&&!c.is(S,"string")&&!c.is(S[0],at)&&(S+=N);var O=c._engine.path(c.format[y](c,arguments),this);return this.__set__&&this.__set__.push(O),O},u.image=function(S,O,I,w,P){var F=c._engine.image(this,S||"about:blank",O||0,I||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.text=function(S,O,I){var w=c._engine.text(this,S||0,O||0,A(I));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 O=new ea(S);return this.__set__&&this.__set__.push(O),O.paper=this,O.type="set",O},u.setStart=function(S){this.__set__=S||this.set()},u.setFinish=function(S){var O=this.__set__;return delete this.__set__,O},u.getSize=function(){var S=this.canvas.parentNode;return{width:S.offsetWidth,height:S.offsetHeight}},u.setSize=function(S,O){return c._engine.setSize.call(this,S,O)},u.setViewBox=function(S,O,I,w,P){return c._engine.setViewBox.call(this,S,O,I,w,P)},u.top=u.bottom=null,u.raphael=c;function fr(){return this.x+$+this.y+$+this.width+" × "+this.height}u.getElementByPoint=function(S,O){var I,w,P,F,B,q,W,tt=this.canvas,ot=g.doc.elementFromPoint(S,O);if(g.win.opera&&ot.tagName=="svg"){var dt=(w=(I=tt).getBoundingClientRect(),P=I.ownerDocument,F=P.body,B=P.documentElement,q=B.clientTop||F.clientTop||0,W=B.clientLeft||F.clientLeft||0,{y:w.top+(g.win.pageYOffset||B.scrollTop||F.scrollTop)-q,x:w.left+(g.win.pageXOffset||B.scrollLeft||F.scrollLeft)-W}),ct=tt.createSVGRect();ct.x=S-dt.x,ct.y=O-dt.y,ct.width=ct.height=1;var st=tt.getIntersectionList(ct,null);st.length&&(ot=st[st.length-1])}if(!ot)return null;for(;ot.parentNode&&ot!=tt.parentNode&&!ot.raphael;)ot=ot.parentNode;return ot==this.canvas.parentNode&&(ot=tt),ot=ot&&ot.raphael?this.getById(ot.raphaelid):null},u.getElementsByBBox=function(S){var O=this.set();return this.forEach(function(I){c.isBBoxIntersect(I.getBBox(),S)&&O.push(I)}),O},u.getById=function(S){for(var O=this.bottom;O;){if(O.id==S)return O;O=O.next}return null},u.forEach=function(S,O){for(var I=this.bottom;I;){if(S.call(O,I)===!1)return this;I=I.next}return this},u.getElementsByPoint=function(S,O){var I=this.set();return this.forEach(function(w){w.isPointInside(S,O)&&I.push(w)}),I},At.isPointInside=function(S,O){var I=this.realPath=re[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(I=c.transformPath(I,this.attr("transform"))),c.isPointInsidePath(I,S,O)},At.getBBox=function(S){if(this.removed)return{};var O=this._;return S?(!O.dirty&&O.bboxwt||(this.realPath=re[this.type](this),O.bboxwt=Dr(this.realPath),O.bboxwt.toString=fr,O.dirty=0),O.bboxwt):((O.dirty||O.dirtyT||!O.bbox)&&(!O.dirty&&this.realPath||(O.bboxwt=0,this.realPath=re[this.type](this)),O.bbox=Dr(he(this.realPath,this.matrix)),O.bbox.toString=fr,O.dirty=O.dirtyT=0),O.bbox)},At.clone=function(){if(this.removed)return null;var S=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(S),S},At.glow=function(S){if(this.type=="text")return null;var O={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"},I=O.width/2,w=this.paper,P=w.set(),F=this.realPath||re[this.type](this);F=this.matrix?he(F,this.matrix):F;for(var B=1;B<I+1;B++)P.push(w.path(F).attr({stroke:O.color,fill:O.fill?O.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(O.width/I*B).toFixed(3),opacity:+(O.opacity/I).toFixed(3)}));return P.insertBefore(this).translate(O.offsetx,O.offsety)};var pe=function(S,O,I,w,P,F,B,q,W){return W==null?Or(S,O,I,w,P,F,B,q):c.findDotsAtSegment(S,O,I,w,P,F,B,q,function(tt,ot,dt,ct,st,ft,_t,pt,ht){if(!(ht<0||Or(tt,ot,dt,ct,st,ft,_t,pt)<ht)){var Rt,bt=.5,Et=1-bt;for(Rt=Or(tt,ot,dt,ct,st,ft,_t,pt,Et);lt(Rt-ht)>.01;)Rt=Or(tt,ot,dt,ct,st,ft,_t,pt,Et+=(Rt<ht?1:-1)*(bt/=2));return Et}}(S,O,I,w,P,F,B,q,W))},De=function(S,O){return function(I,w,P){for(var F,B,q,W,tt,ot="",dt={},ct=0,st=0,ft=(I=Xn(I)).length;st<ft;st++){if((q=I[st])[0]=="M")F=+q[1],B=+q[2];else{if(ct+(W=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6]))>w){if(O&&!dt.start){if(ot+=["C"+(tt=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6],w-ct)).start.x,tt.start.y,tt.m.x,tt.m.y,tt.x,tt.y],P)return ot;dt.start=ot,ot=["M"+tt.x,tt.y+"C"+tt.n.x,tt.n.y,tt.end.x,tt.end.y,q[5],q[6]].join(),ct+=W,F=+q[5],B=+q[6];continue}if(!S&&!O)return{x:(tt=pe(F,B,q[1],q[2],q[3],q[4],q[5],q[6],w-ct)).x,y:tt.y,alpha:tt.alpha}}ct+=W,F=+q[5],B=+q[6]}ot+=q.shift()+q}return dt.end=ot,(tt=S?ct:O?dt:c.findDotsAtSegment(F,B,q[0],q[1],q[2],q[3],q[4],q[5],1)).alpha&&(tt={x:tt.x,y:tt.y,alpha:tt.alpha}),tt}},qe=De(1),Be=De(),ke=De(0,1);c.getTotalLength=qe,c.getPointAtLength=Be,c.getSubpath=function(S,O,I){if(this.getTotalLength(S)-I<1e-6)return ke(S,O).end;var w=ke(S,I,1);return O?ke(w,O).end:w},At.getTotalLength=function(){var S=this.getPath();if(S)return this.node.getTotalLength?this.node.getTotalLength():qe(S)},At.getPointAtLength=function(S){var O=this.getPath();if(O)return Be(O,S)},At.getPath=function(){var S,O=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return O&&(S=O(this)),S},At.getSubpath=function(S,O){var I=this.getPath();if(I)return c.getSubpath(I,S,O)};var ce=c.easing_formulas={linear:function(S){return S},"<":function(S){return xt(S,1.7)},">":function(S){return xt(S,.48)},"<>":function(S){var O=.48-S/1.04,I=J.sqrt(.1734+O*O),w=I-O,P=-I-O,F=xt(lt(w),1/3)*(w<0?-1:1)+xt(lt(P),1/3)*(P<0?-1:1)+.5;return 3*(1-F)*F*F+F*F*F},backIn:function(S){var O=1.70158;return S*S*((O+1)*S-O)},backOut:function(S){var O=1.70158;return(S-=1)*S*((O+1)*S+O)+1},elastic:function(S){return S==!!S?S:xt(2,-10*S)*J.sin(2*Ct*(S-.075)/.3)+1},bounce:function(S){var O=7.5625,I=2.75;return S<1/I?O*S*S:S<2/I?O*(S-=1.5/I)*S+.75:S<2.5/I?O*(S-=2.25/I)*S+.9375:O*(S-=2.625/I)*S+.984375}};ce.easeIn=ce["ease-in"]=ce["<"],ce.easeOut=ce["ease-out"]=ce[">"],ce.easeInOut=ce["ease-in-out"]=ce["<>"],ce["back-in"]=ce.backIn,ce["back-out"]=ce.backOut;var Bt=[],Ke=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(S){setTimeout(S,16)},Fr=function(){for(var S=+new Date,O=0;O<Bt.length;O++){var I=Bt[O];if(!I.el.removed&&!I.paused){var w,P,F=S-I.start,B=I.ms,q=I.easing,W=I.from,tt=I.diff,ot=I.to,dt=(I.t,I.el),ct={},st={};if(I.initstatus?(F=(I.initstatus*I.anim.top-I.prev)/(I.percent-I.prev)*B,I.status=I.initstatus,delete I.initstatus,I.stop&&Bt.splice(O--,1)):I.status=(I.prev+(I.percent-I.prev)*(F/B))/I.anim.top,!(F<0))if(F<B){var ft=q(F/B);for(var _t in W)if(W[p](_t)){switch(K[_t]){case $t:w=+W[_t]+ft*B*tt[_t];break;case"colour":w="rgb("+[an(b(W[_t].r+ft*B*tt[_t].r)),an(b(W[_t].g+ft*B*tt[_t].g)),an(b(W[_t].b+ft*B*tt[_t].b))].join(",")+")";break;case"path":w=[];for(var pt=0,ht=W[_t].length;pt<ht;pt++){w[pt]=[W[_t][pt][0]];for(var Rt=1,bt=W[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=+W[_t][pt][Rt]+ft*B*tt[_t][pt][Rt];w[pt]=w[pt].join($)}w=w.join($);break;case"transform":if(tt[_t].real)for(w=[],pt=0,ht=W[_t].length;pt<ht;pt++)for(w[pt]=[W[_t][pt][0]],Rt=1,bt=W[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=W[_t][pt][Rt]+ft*B*tt[_t][pt][Rt];else{var Et=function(ae){return+W[_t][ae]+ft*B*tt[_t][ae]};w=[["m",Et(0),Et(1),Et(2),Et(3),Et(4),Et(5)]]}break;case"csv":if(_t=="clip-rect")for(w=[],pt=4;pt--;)w[pt]=+W[_t][pt]+ft*B*tt[_t][pt];break;default:var wt=[][m](W[_t]);for(w=[],pt=dt.paper.customAttributes[_t].length;pt--;)w[pt]=+wt[pt]+ft*B*tt[_t][pt]}ct[_t]=w}dt.attr(ct),function(ae,te,se){setTimeout(function(){s("raphael.anim.frame."+ae,te,se)})}(dt.id,dt,I.anim)}else{if(function(ae,te,se){setTimeout(function(){s("raphael.anim.frame."+te.id,te,se),s("raphael.anim.finish."+te.id,te,se),c.is(ae,"function")&&ae.call(te)})}(I.callback,dt,I.anim),dt.attr(ot),Bt.splice(O--,1),I.repeat>1&&!I.next){for(P in ot)ot[p](P)&&(st[P]=I.totalOrigin[P]);I.el.attr(st),yr(I.anim,I.el,I.anim.percents[0],null,I.totalOrigin,I.repeat-1)}I.next&&!I.stop&&yr(I.anim,I.el,I.next,null,I.totalOrigin,I.repeat)}}}Bt.length&&Ke(Fr)},an=function(S){return S>255?255:S<0?0:S};function nr(S,O,I,w,P,F){var B=3*O,q=3*(w-O)-B,W=1-B-q,tt=3*I,ot=3*(P-I)-tt,dt=1-tt-ot;function ct(st){return((W*st+q)*st+B)*st}return function(st,ft){var _t=function(pt,ht){var Rt,bt,Et,wt,ae,te;for(Et=pt,te=0;te<8;te++){if(wt=ct(Et)-pt,lt(wt)<ht)return Et;if(lt(ae=(3*W*Et+2*q)*Et+B)<1e-6)break;Et-=wt/ae}if(bt=1,(Et=pt)<(Rt=0))return Rt;if(Et>bt)return bt;for(;Rt<bt;){if(wt=ct(Et),lt(wt-pt)<ht)return Et;pt>wt?Rt=Et:bt=Et,Et=(bt-Rt)/2+Rt}return Et}(st,ft);return((dt*_t+ot)*_t+tt)*_t}(S,1/(200*F))}function rr(S,O){var I=[],w={};if(this.ms=O,this.times=1,S){for(var P in S)S[p](P)&&(w[C(P)]=S[P],I.push(C(P)));I.sort(qt)}this.anim=w,this.top=I[I.length-1],this.percents=I}function yr(S,O,I,w,P,F){I=C(I);var B,q,W,tt,ot,dt,ct=S.ms,st={},ft={},_t={};if(w)for(ht=0,Rt=Bt.length;ht<Rt;ht++){var pt=Bt[ht];if(pt.el.id==O.id&&pt.anim==S){pt.percent!=I?(Bt.splice(ht,1),W=1):q=pt,O.attr(pt.totalOrigin);break}}else w=+ft;for(var ht=0,Rt=S.percents.length;ht<Rt;ht++){if(S.percents[ht]==I||S.percents[ht]>w*S.top){I=S.percents[ht],ot=S.percents[ht-1]||0,ct=ct/S.top*(I-ot),tt=S.percents[ht+1],B=S.anim[I];break}w&&O.attr(S.anim[S.percents[ht]])}if(B){if(q)q.initstatus=w,q.start=new Date-q.ms*w;else{for(var bt in B)if(B[p](bt)&&(K[p](bt)||O.paper.customAttributes[p](bt)))switch(st[bt]=O.attr(bt),st[bt]==null&&(st[bt]=V[bt]),ft[bt]=B[bt],K[bt]){case $t:_t[bt]=(ft[bt]-st[bt])/ct;break;case"colour":st[bt]=c.getRGB(st[bt]);var Et=c.getRGB(ft[bt]);_t[bt]={r:(Et.r-st[bt].r)/ct,g:(Et.g-st[bt].g)/ct,b:(Et.b-st[bt].b)/ct};break;case"path":var wt=Xn(st[bt],ft[bt]),ae=wt[1];for(st[bt]=wt[0],_t[bt]=[],ht=0,Rt=st[bt].length;ht<Rt;ht++){_t[bt][ht]=[0];for(var te=1,se=st[bt][ht].length;te<se;te++)_t[bt][ht][te]=(ae[ht][te]-st[bt][ht][te])/ct}break;case"transform":var Ma=O._,ac=Q(Ma[bt],ft[bt]);if(ac)for(st[bt]=ac.from,ft[bt]=ac.to,_t[bt]=[],_t[bt].real=!0,ht=0,Rt=st[bt].length;ht<Rt;ht++)for(_t[bt][ht]=[st[bt][ht][0]],te=1,se=st[bt][ht].length;te<se;te++)_t[bt][ht][te]=(ft[bt][ht][te]-st[bt][ht][te])/ct;else{var sn=O.matrix||new Z,hi={_:{transform:Ma.transform},getBBox:function(){return O.getBBox(1)}};st[bt]=[sn.a,sn.b,sn.c,sn.d,sn.e,sn.f],U(hi,ft[bt]),ft[bt]=hi._.transform,_t[bt]=[(hi.matrix.a-sn.a)/ct,(hi.matrix.b-sn.b)/ct,(hi.matrix.c-sn.c)/ct,(hi.matrix.d-sn.d)/ct,(hi.matrix.e-sn.e)/ct,(hi.matrix.f-sn.f)/ct]}break;case"csv":var La=A(B[bt])[R](d),Ua=A(st[bt])[R](d);if(bt=="clip-rect")for(st[bt]=Ua,_t[bt]=[],ht=Ua.length;ht--;)_t[bt][ht]=(La[ht]-st[bt][ht])/ct;ft[bt]=La;break;default:for(La=[][m](B[bt]),Ua=[][m](st[bt]),_t[bt]=[],ht=O.paper.customAttributes[bt].length;ht--;)_t[bt][ht]=((La[ht]||0)-(Ua[ht]||0))/ct}var gh=B.easing,Li=c.easing_formulas[gh];if(!Li)if((Li=A(gh).match(k))&&Li.length==5){var na=Li;Li=function(vh){return nr(vh,+na[1],+na[2],+na[3],+na[4],ct)}}else Li=Qt;if(pt={anim:S,percent:I,timestamp:dt=B.start||S.start||+new Date,start:dt+(S.del||0),status:0,initstatus:w||0,stop:!1,ms:ct,easing:Li,from:st,diff:_t,to:ft,el:O,callback:B.callback,prev:ot,next:tt,repeat:F||S.times,origin:O.attr(),totalOrigin:P},Bt.push(pt),w&&!q&&!W&&(pt.stop=!0,pt.start=new Date-ct*w,Bt.length==1))return Fr();W&&(pt.start=new Date-pt.ms*w),Bt.length==1&&Ke(Fr)}s("raphael.anim.start."+O.id,O,S)}}function Pn(S){for(var O=0;O<Bt.length;O++)Bt[O].el.paper==S&&Bt.splice(O--,1)}At.animateWith=function(S,O,I,w,P,F){if(this.removed)return F&&F.call(this),this;var B=I instanceof rr?I:c.animation(I,w,P,F);yr(B,this,B.percents[0],null,this.attr());for(var q=0,W=Bt.length;q<W;q++)if(Bt[q].anim==O&&Bt[q].el==S){Bt[W-1].start=Bt[q].start;break}return this},At.onAnimation=function(S){return S?s.on("raphael.anim.frame."+this.id,S):s.unbind("raphael.anim.frame."+this.id),this},rr.prototype.delay=function(S){var O=new rr(this.anim,this.ms);return O.times=this.times,O.del=+S||0,O},rr.prototype.repeat=function(S){var O=new rr(this.anim,this.ms);return O.del=this.del,O.times=J.floor(nt(S,0))||1,O},c.animation=function(S,O,I,w){if(S instanceof rr)return S;!c.is(I,"function")&&I||(w=w||I||null,I=null),S=Object(S),O=+O||0;var P,F,B={};for(F in S)S[p](F)&&C(F)!=F&&C(F)+"%"!=F&&(P=!0,B[F]=S[F]);if(P)return I&&(B.easing=I),w&&(B.callback=w),new rr({100:B},O);if(w){var q=0;for(var W in S){var tt=L(W);S[p](W)&&tt>q&&(q=tt)}!S[q+="%"].callback&&(S[q].callback=w)}return new rr(S,O)},At.animate=function(S,O,I,w){if(this.removed)return w&&w.call(this),this;var P=S instanceof rr?S:c.animation(S,O,I,w);return yr(P,this,P.percents[0],null,this.attr()),this},At.setTime=function(S,O){return S&&O!=null&&this.status(S,rt(O,S.ms)/S.ms),this},At.status=function(S,O){var I,w,P=[],F=0;if(O!=null)return yr(S,this,-1,rt(O,1)),this;for(I=Bt.length;F<I;F++)if((w=Bt[F]).el.id==this.id&&(!S||w.anim==S)){if(S)return w.status;P.push({anim:w.anim,status:w.status})}return S?0:P},At.pause=function(S){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||S&&Bt[O].anim!=S||s("raphael.anim.pause."+this.id,this,Bt[O].anim)!==!1&&(Bt[O].paused=!0);return this},At.resume=function(S){for(var O=0;O<Bt.length;O++)if(Bt[O].el.id==this.id&&(!S||Bt[O].anim==S)){var I=Bt[O];s("raphael.anim.resume."+this.id,this,I.anim)!==!1&&(delete I.paused,this.status(I.anim,I.status))}return this},At.stop=function(S){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||S&&Bt[O].anim!=S||s("raphael.anim.stop."+this.id,this,Bt[O].anim)!==!1&&Bt.splice(O--,1);return this},s.on("raphael.remove",Pn),s.on("raphael.clear",Pn),At.toString=function(){return"Raphaël’s object"};var Tn,kr,On,Wn,ea=function(S){if(this.items=[],this.length=0,this.type="set",S)for(var O=0,I=S.length;O<I;O++)!S[O]||S[O].constructor!=At.constructor&&S[O].constructor!=ea||(this[this.items.length]=this.items[this.items.length]=S[O],this.length++)},_r=ea.prototype;for(var ra in _r.push=function(){for(var S,O,I=0,w=arguments.length;I<w;I++)!(S=arguments[I])||S.constructor!=At.constructor&&S.constructor!=ea||(this[O=this.items.length]=this.items[O]=S,this.length++);return this},_r.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},_r.forEach=function(S,O){for(var I=0,w=this.items.length;I<w;I++)if(S.call(O,this.items[I],I)===!1)return this;return this},At)At[p](ra)&&(_r[ra]=function(S){return function(){var O=arguments;return this.forEach(function(I){I[S][y](I,O)})}}(ra));return _r.attr=function(S,O){if(S&&c.is(S,at)&&c.is(S[0],"object"))for(var I=0,w=S.length;I<w;I++)this.items[I].attr(S[I]);else for(var P=0,F=this.items.length;P<F;P++)this.items[P].attr(S,O);return this},_r.clear=function(){for(;this.length;)this.pop()},_r.splice=function(S,O,I){S=S<0?nt(this.length+S,0):S,O=nt(0,rt(this.length-S,O));var w,P=[],F=[],B=[];for(w=2;w<arguments.length;w++)B.push(arguments[w]);for(w=0;w<O;w++)F.push(this[S+w]);for(;w<this.length-S;w++)P.push(this[S+w]);var q=B.length;for(w=0;w<q+P.length;w++)this.items[S+w]=this[S+w]=w<q?B[w]:P[w-q];for(w=this.items.length=this.length-=O-q;this[w];)delete this[w++];return new ea(F)},_r.exclude=function(S){for(var O=0,I=this.length;O<I;O++)if(this[O]==S)return this.splice(O,1),!0},_r.animate=function(S,O,I,w){(c.is(I,"function")||!I)&&(w=I||null);var P,F,B=this.items.length,q=B,W=this;if(!B)return this;w&&(F=function(){!--B&&w.call(W)}),I=c.is(I,"string")?I:F;var tt=c.animation(S,O,I,F);for(P=this.items[--q].animate(tt);q--;)this.items[q]&&!this.items[q].removed&&this.items[q].animateWith(P,tt,tt),this.items[q]&&!this.items[q].removed||B--;return this},_r.insertAfter=function(S){for(var O=this.items.length;O--;)this.items[O].insertAfter(S);return this},_r.getBBox=function(){for(var S=[],O=[],I=[],w=[],P=this.items.length;P--;)if(!this.items[P].removed){var F=this.items[P].getBBox();S.push(F.x),O.push(F.y),I.push(F.x+F.width),w.push(F.y+F.height)}return{x:S=rt[y](0,S),y:O=rt[y](0,O),x2:I=nt[y](0,I),y2:w=nt[y](0,w),width:I-S,height:w-O}},_r.clone=function(S){S=this.paper.set();for(var O=0,I=this.items.length;O<I;O++)S.push(this.items[O].clone());return S},_r.toString=function(){return"Raphaël‘s set"},_r.glow=function(S){var O=this.paper.set();return this.forEach(function(I,w){var P=I.glow(S);P==null||P.forEach(function(F,B){O.push(F)})}),O},_r.isPointInside=function(S,O){var I=!1;return this.forEach(function(w){if(w.isPointInside(S,O))return I=!0,!1}),I},c.registerFont=function(S){if(!S.face)return S;this.fonts=this.fonts||{};var O={w:S.w,face:{},glyphs:{}},I=S.face["font-family"];for(var w in S.face)S.face[p](w)&&(O.face[w]=S.face[w]);if(this.fonts[I]?this.fonts[I].push(O):this.fonts[I]=[O],!S.svg){for(var P in O.face["units-per-em"]=L(S.face["units-per-em"],10),S.glyphs)if(S.glyphs[p](P)){var F=S.glyphs[P];if(O.glyphs[P]={w:F.w,k:{},d:F.d&&"M"+F.d.replace(/[mlcxtrv]/g,function(q){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[q]||"M"})+"z"},F.k)for(var B in F.k)F[p](B)&&(O.glyphs[P].k[B]=F.k[B])}}return S},u.getFont=function(S,O,I,w){if(w=w||"normal",I=I||"normal",O=+O||{normal:400,bold:700,lighter:300,bolder:800}[O]||400,c.fonts){var P,F=c.fonts[S];if(!F){var B=new RegExp("(^|\\s)"+S.replace(/[^\w\d\s+!~.:_-]/g,N)+"(\\s|$)","i");for(var q in c.fonts)if(c.fonts[p](q)&&B.test(q)){F=c.fonts[q];break}}if(F)for(var W=0,tt=F.length;W<tt&&((P=F[W]).face["font-weight"]!=O||P.face["font-style"]!=I&&P.face["font-style"]||P.face["font-stretch"]!=w);W++);return P}},u.print=function(S,O,I,w,P,F,B,q){F=F||"middle",B=nt(rt(B||0,1),-1),q=nt(rt(q||1,3),1);var W,tt=A(I)[R](N),ot=0,dt=0,ct=N;if(c.is(w,"string")&&(w=this.getFont(w)),w){W=(P||16)/w.face["units-per-em"];for(var st=w.face.bbox[R](d),ft=+st[0],_t=st[3]-st[1],pt=0,ht=+st[1]+(F=="baseline"?_t+ +w.face.descent:_t/2),Rt=0,bt=tt.length;Rt<bt;Rt++){if(tt[Rt]==`
39
- `)ot=0,wt=0,dt=0,pt+=_t*q;else{var Et=dt&&w.glyphs[tt[Rt-1]]||{},wt=w.glyphs[tt[Rt]];ot+=dt?(Et.w||w.w)+(Et.k&&Et.k[tt[Rt]]||0)+w.w*B:0,dt=1}wt&&wt.d&&(ct+=c.transformPath(wt.d,["t",ot*W,pt*W,"s",W,W,ft,ht,"t",(S-ft)/W,(O-ht)/W]))}}return this.path(ct).attr({fill:"#000",stroke:"none"})},u.add=function(S){if(c.is(S,"array"))for(var O,I=this.set(),w=0,P=S.length;w<P;w++)O=S[w]||{},f[p](O.type)&&I.push(this[O.type]().attr(O));return I},c.format=function(S,O){var I=c.is(O,at)?[0][m](O):arguments;return S&&c.is(S,"string")&&I.length-1&&(S=S.replace(h,function(w,P){return I[++P]==null?N:I[P]})),S||N},c.fullfill=(Tn=/\{([^\}]+)\}/g,kr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(S,O){return String(S).replace(Tn,function(I,w){return function(P,F,B){var q=B;return F.replace(kr,function(W,tt,ot,dt,ct){tt=tt||dt,q&&(tt in q&&(q=q[tt]),typeof q=="function"&&ct&&(q=q()))}),q=(q==null||q==B?P:q)+""}(I,w,O)})}),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=_r,s.on("raphael.DOMload",function(){l=!0}),(On=document).readyState==null&&On.addEventListener&&(On.addEventListener("DOMContentLoaded",Wn=function(){On.removeEventListener("DOMContentLoaded",Wn,!1),On.readyState="complete"},!1),On.readyState="loading"),function S(){/in/.test(On.readyState)?setTimeout(S,9):c.eve("raphael.DOMload")}(),c}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a;o=[i(0),i(3),i(4)],(a=(function(s){return s}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a,s,c,l,u,d,f,h,p,g,v,_,y;c="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,d=function(m,x){return m-x},f={n:{}},h=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,$=s,A=Array.prototype.slice.call(arguments,2),R=y.listeners(m),G=0,H=[],Y={},J=[],nt=a;J.firstDefined=h,J.lastDefined=p,a=m,s=0;for(var rt=0,lt=R.length;rt<lt;rt++)"zIndex"in R[rt]&&(H.push(R[rt].zIndex),R[rt].zIndex<0&&(Y[R[rt].zIndex]=R[rt]));for(H.sort(d);H[G]<0;)if(N=Y[H[G++]],J.push(N.apply(x,A)),s)return s=$,J;for(rt=0;rt<lt;rt++)if("zIndex"in(N=R[rt]))if(N.zIndex==H[G]){if(J.push(N.apply(x,A)),s)break;do if((N=Y[H[++G]])&&J.push(N.apply(x,A)),s)break;while(N)}else Y[N.zIndex]=N;else if(J.push(N.apply(x,A)),s)break;return s=$,a=nt,J})._events=f,y.listeners=function(m){var x,N,$,A,R,G,H,Y,J=_(m)?m:m.split(l),nt=f,rt=[nt],lt=[];for(A=0,R=J.length;A<R;A++){for(Y=[],G=0,H=rt.length;G<H;G++)for(N=[(nt=rt[G].n)[J[A]],nt["*"]],$=2;$--;)(x=N[$])&&(Y.push(x),lt=lt.concat(x.f||[]));rt=Y}return lt},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,A=N.length;$<A;$++)(function(R){for(var G,H=_(R)?R:v(R).split(l),Y=f,J=0,nt=H.length;J<nt;J++)Y=(Y=Y.n).hasOwnProperty(H[J])&&Y[H[J]]||(Y[H[J]]={n:{}});for(Y.f=Y.f||[],J=0,nt=Y.f.length;J<nt;J++)if(Y.f[J]==x){G=!0;break}!G&&Y.f.push(x)})(N[$]);return function(R){+R==+R&&(x.zIndex=+R)}},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(){s=1},y.nt=function(m){var x=_(a)?a.join("."):a;return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(x):x},y.nts=function(){return _(a)?a:a.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,A=N.length;$<A;$++)y.off(N[$],x);else{N=_(m)?m:v(m).split(l);var R,G,H,Y,J,nt=[f];for($=0,A=N.length;$<A;$++)for(Y=0;Y<nt.length;Y+=H.length-2){if(H=[Y,1],R=nt[Y].n,N[$]!="*")R[N[$]]&&H.push(R[N[$]]);else for(G in R)R[c](G)&&H.push(R[G]);nt.splice.apply(nt,H)}for($=0,A=nt.length;$<A;$++)for(R=nt[$];R.n;){if(x){if(R.f){for(Y=0,J=R.f.length;Y<J;Y++)if(R.f[Y]==x){R.f.splice(Y,1);break}!R.f.length&&delete R.f}for(G in R.n)if(R.n[c](G)&&R.n[G].f){var rt=R.n[G].f;for(Y=0,J=rt.length;Y<J;Y++)if(rt[Y]==x){rt.splice(Y,1);break}!rt.length&&delete R.n[G].f}}else for(G in delete R.f,R.n)R.n[c](G)&&R.n[G].f&&delete R.n[G].f;R=R.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,a;o=[i(0)],(a=(function(s){if(!s||s.svg){var c="hasOwnProperty",l=String,u=parseFloat,d=parseInt,f=Math,h=f.max,p=f.abs,g=f.pow,v=/[, ]+/,_=s.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"},$={};s.toString=function(){return`Your browser supports SVG.
40
- You are running Raphaël `+this.version};var A=function(T,E){if(E)for(var k in typeof T=="string"&&(T=A(T)),E)E[c](k)&&(k.substring(0,6)=="xlink:"?T.setAttributeNS(x,k.substring(6),l(E[k])):T.setAttribute(k,l(E[k])));else(T=s._g.doc.createElementNS("http://www.w3.org/2000/svg",T)).style&&(T.style.webkitTapHighlightColor="rgba(0,0,0,0)");return T},R=function(T,E){var k="linear",b=T.id+E,C=.5,L=.5,D=T.node,V=T.paper,K=D.style,et=s._g.doc.getElementById(b);if(!et){if(E=(E=l(E).replace(s._radial_gradient,function(qt,Qt,Dt){if(k="radial",Qt&&Dt){C=u(Qt);var fe=2*((L=u(Dt))>.5)-1;g(C-.5,2)+g(L-.5,2)>.25&&(L=f.sqrt(.25-g(C-.5,2))*fe+.5)&&L!=.5&&(L=L.toFixed(5)-1e-5*fe)}return y})).split(/\s*\-\s*/),k=="linear"){var it=E.shift();if(it=-u(it),isNaN(it))return null;var ut=[0,0,f.cos(s.rad(it)),f.sin(s.rad(it))],Tt=1/(h(p(ut[2]),p(ut[3]))||1);ut[2]*=Tt,ut[3]*=Tt,ut[2]<0&&(ut[0]=-ut[2],ut[2]=0),ut[3]<0&&(ut[1]=-ut[3],ut[3]=0)}var Gt=s._parseDots(E);if(!Gt)return null;if(b=b.replace(/[\(\)\s,\xb0#]/g,"_"),T.gradient&&b!=T.gradient.id&&(V.defs.removeChild(T.gradient),delete T.gradient),!T.gradient){et=A(k+"Gradient",{id:b}),T.gradient=et,A(et,k=="radial"?{fx:C,fy:L}:{x1:ut[0],y1:ut[1],x2:ut[2],y2:ut[3],gradientTransform:T.matrix.invert()}),V.defs.appendChild(et);for(var Pt=0,Nt=Gt.length;Pt<Nt;Pt++)et.appendChild(A("stop",{offset:Gt[Pt].offset?Gt[Pt].offset:Pt?"100%":"0%","stop-color":Gt[Pt].color||"#fff","stop-opacity":isFinite(Gt[Pt].opacity)?Gt[Pt].opacity:1}))}}return A(D,{fill:G(b),opacity:1,"fill-opacity":1}),K.fill=y,K.opacity=1,K.fillOpacity=1,1},G=function(T){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+T+"')";var E,k=document.location;return"url('"+(k.protocol+"//"+k.host+k.pathname+k.search)+"#"+T+"')"},H=function(T){var E=T.getBBox(1);A(T.pattern,{patternTransform:T.matrix.invert()+" translate("+E.x+","+E.y+")"})},Y=function(T,E,k){if(T.type=="path"){for(var b,C,L,D,V,K=l(E).toLowerCase().split("-"),et=T.paper,it=k?"end":"start",ut=T.node,Tt=T.attrs,Gt=Tt["stroke-width"],Pt=K.length,Nt="classic",qt=3,Qt=3,Dt=5;Pt--;)switch(K[Pt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Nt=K[Pt];break;case"wide":Qt=5;break;case"narrow":Qt=2;break;case"long":qt=5;break;case"short":qt=2}if(Nt=="open"?(qt+=2,Qt+=2,Dt+=2,L=1,D=k?4:1,V={fill:"none",stroke:Tt.stroke}):(D=L=qt/2,V={fill:Tt.stroke,stroke:"none"}),T._.arrows?k?(T._.arrows.endPath&&$[T._.arrows.endPath]--,T._.arrows.endMarker&&$[T._.arrows.endMarker]--):(T._.arrows.startPath&&$[T._.arrows.startPath]--,T._.arrows.startMarker&&$[T._.arrows.startMarker]--):T._.arrows={},Nt!="none"){var fe="raphael-marker-"+Nt,re="raphael-marker-"+it+Nt+qt+Qt+"-obj"+T.id;s._g.doc.getElementById(fe)?$[fe]++:(et.defs.appendChild(A(A("path"),{"stroke-linecap":"round",d:N[Nt],id:fe})),$[fe]=1);var he,Vt=s._g.doc.getElementById(re);Vt?($[re]++,he=Vt.getElementsByTagName("use")[0]):(Vt=A(A("marker"),{id:re,markerHeight:Qt,markerWidth:qt,orient:"auto",refX:D,refY:Qt/2}),he=A(A("use"),{"xlink:href":"#"+fe,transform:(k?"rotate(180 "+qt/2+" "+Qt/2+") ":y)+"scale("+qt/Dt+","+Qt/Dt+")","stroke-width":(1/((qt/Dt+Qt/Dt)/2)).toFixed(4)}),Vt.appendChild(he),et.defs.appendChild(Vt),$[re]=1),A(he,V);var Le=L*(Nt!="diamond"&&Nt!="oval");k?(b=T._.arrows.startdx*Gt||0,C=s.getTotalLength(Tt.path)-Le*Gt):(b=Le*Gt,C=s.getTotalLength(Tt.path)-(T._.arrows.enddx*Gt||0)),(V={})["marker-"+it]="url(#"+re+")",(C||b)&&(V.d=s.getSubpath(Tt.path,b,C)),A(ut,V),T._.arrows[it+"Path"]=fe,T._.arrows[it+"Marker"]=re,T._.arrows[it+"dx"]=Le,T._.arrows[it+"Type"]=Nt,T._.arrows[it+"String"]=E}else k?(b=T._.arrows.startdx*Gt||0,C=s.getTotalLength(Tt.path)-b):(b=0,C=s.getTotalLength(Tt.path)-(T._.arrows.enddx*Gt||0)),T._.arrows[it+"Path"]&&A(ut,{d:s.getSubpath(Tt.path,b,C)}),delete T._.arrows[it+"Path"],delete T._.arrows[it+"Marker"],delete T._.arrows[it+"dx"],delete T._.arrows[it+"Type"],delete T._.arrows[it+"String"];for(V in $)if($[c](V)&&!$[V]){var Ue=s._g.doc.getElementById(V);Ue&&Ue.parentNode.removeChild(Ue)}}},J={"-":[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]},nt=function(T,E,k){if(E=J[l(E).toLowerCase()]){for(var b=T.attrs["stroke-width"]||"1",C={round:b,square:b,butt:0}[T.attrs["stroke-linecap"]||k["stroke-linecap"]]||0,L=[],D=E.length;D--;)L[D]=E[D]*b+(D%2?1:-1)*C;A(T.node,{"stroke-dasharray":L.join(",")})}else A(T.node,{"stroke-dasharray":"none"})},rt=function(T,E){var k=T.node,b=T.attrs,C=k.style.visibility;for(var L in k.style.visibility="hidden",E)if(E[c](L)){if(!s._availableAttrs[c](L))continue;var D=E[L];switch(b[L]=D,L){case"blur":T.blur(D);break;case"title":var V=k.getElementsByTagName("title");if(V.length&&(V=V[0]))V.firstChild.nodeValue=D;else{V=A("title");var K=s._g.doc.createTextNode(D);V.appendChild(K),k.appendChild(V)}break;case"href":case"target":var et=k.parentNode;if(et.tagName.toLowerCase()!="a"){var it=A("a");et.insertBefore(it,k),it.appendChild(k),et=it}L=="target"?et.setAttributeNS(x,"show",D=="blank"?"new":D):et.setAttributeNS(x,L,D);break;case"cursor":k.style.cursor=D;break;case"transform":T.transform(D);break;case"arrow-start":Y(T,D);break;case"arrow-end":Y(T,D,1);break;case"clip-rect":var ut=l(D).split(v);if(ut.length==4){T.clip&&T.clip.parentNode.parentNode.removeChild(T.clip.parentNode);var Tt=A("clipPath"),Gt=A("rect");Tt.id=s.createUUID(),A(Gt,{x:ut[0],y:ut[1],width:ut[2],height:ut[3]}),Tt.appendChild(Gt),T.paper.defs.appendChild(Tt),A(k,{"clip-path":"url(#"+Tt.id+")"}),T.clip=Gt}if(!D){var Pt=k.getAttribute("clip-path");if(Pt){var Nt=s._g.doc.getElementById(Pt.replace(/(^url\(#|\)$)/g,y));Nt&&Nt.parentNode.removeChild(Nt),A(k,{"clip-path":y}),delete T.clip}}break;case"path":T.type=="path"&&(A(k,{d:D?b.path=s._pathToAbsolute(D):"M0,0"}),T._.dirty=1,T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1)));break;case"width":if(k.setAttribute(L,D),T._.dirty=1,!b.fx)break;L="x",D=b.x;case"x":b.fx&&(D=-b.x-(b.width||0));case"rx":if(L=="rx"&&T.type=="rect")break;case"cx":k.setAttribute(L,D),T.pattern&&H(T),T._.dirty=1;break;case"height":if(k.setAttribute(L,D),T._.dirty=1,!b.fy)break;L="y",D=b.y;case"y":b.fy&&(D=-b.y-(b.height||0));case"ry":if(L=="ry"&&T.type=="rect")break;case"cy":k.setAttribute(L,D),T.pattern&&H(T),T._.dirty=1;break;case"r":T.type=="rect"?A(k,{rx:D,ry:D}):k.setAttribute(L,D),T._.dirty=1;break;case"src":T.type=="image"&&k.setAttributeNS(x,"href",D);break;case"stroke-width":T._.sx==1&&T._.sy==1||(D/=h(p(T._.sx),p(T._.sy))||1),k.setAttribute(L,D),b["stroke-dasharray"]&&nt(T,b["stroke-dasharray"],E),T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1));break;case"stroke-dasharray":nt(T,D,E);break;case"fill":var qt=l(D).match(s._ISURL);if(qt){Tt=A("pattern");var Qt=A("image");Tt.id=s.createUUID(),A(Tt,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),A(Qt,{x:0,y:0,"xlink:href":qt[1]}),Tt.appendChild(Qt),function(Vt){s._preload(qt[1],function(){var Le=this.offsetWidth,Ue=this.offsetHeight;A(Vt,{width:Le,height:Ue}),A(Qt,{width:Le,height:Ue})})}(Tt),T.paper.defs.appendChild(Tt),A(k,{fill:"url(#"+Tt.id+")"}),T.pattern=Tt,T.pattern&&H(T);break}var Dt=s.getRGB(D);if(Dt.error){if((T.type=="circle"||T.type=="ellipse"||l(D).charAt()!="r")&&R(T,D)){if("opacity"in b||"fill-opacity"in b){var fe=s._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,y));if(fe){var re=fe.getElementsByTagName("stop");A(re[re.length-1],{"stop-opacity":("opacity"in b?b.opacity:1)*("fill-opacity"in b?b["fill-opacity"]:1)})}}b.gradient=D,b.fill="none";break}}else delete E.gradient,delete b.gradient,!s.is(b.opacity,"undefined")&&s.is(E.opacity,"undefined")&&A(k,{opacity:b.opacity}),!s.is(b["fill-opacity"],"undefined")&&s.is(E["fill-opacity"],"undefined")&&A(k,{"fill-opacity":b["fill-opacity"]});Dt[c]("opacity")&&A(k,{"fill-opacity":Dt.opacity>1?Dt.opacity/100:Dt.opacity});case"stroke":Dt=s.getRGB(D),k.setAttribute(L,Dt.hex),L=="stroke"&&Dt[c]("opacity")&&A(k,{"stroke-opacity":Dt.opacity>1?Dt.opacity/100:Dt.opacity}),L=="stroke"&&T._.arrows&&("startString"in T._.arrows&&Y(T,T._.arrows.startString),"endString"in T._.arrows&&Y(T,T._.arrows.endString,1));break;case"gradient":(T.type=="circle"||T.type=="ellipse"||l(D).charAt()!="r")&&R(T,D);break;case"opacity":b.gradient&&!b[c]("stroke-opacity")&&A(k,{"stroke-opacity":D>1?D/100:D});case"fill-opacity":if(b.gradient){(fe=s._g.doc.getElementById(k.getAttribute("fill").replace(/^url\(#|\)$/g,y)))&&(re=fe.getElementsByTagName("stop"),A(re[re.length-1],{"stop-opacity":D}));break}default:L=="font-size"&&(D=d(D,10)+"px");var he=L.replace(/(\-.)/g,function(Vt){return Vt.substring(1).toUpperCase()});k.style[he]=D,T._.dirty=1,k.setAttribute(L,D)}}lt(T,E),k.style.visibility=C},lt=function(T,E){if(T.type=="text"&&(E[c]("text")||E[c]("font")||E[c]("font-size")||E[c]("x")||E[c]("y"))){var k=T.attrs,b=T.node,C=b.firstChild?d(s._g.doc.defaultView.getComputedStyle(b.firstChild,y).getPropertyValue("font-size"),10):10;if(E[c]("text")){for(k.text=E.text;b.firstChild;)b.removeChild(b.firstChild);for(var L,D=l(E.text).split(`
41
- `),V=[],K=0,et=D.length;K<et;K++)L=A("tspan"),K&&A(L,{dy:1.2*C,x:k.x}),L.appendChild(s._g.doc.createTextNode(D[K])),b.appendChild(L),V[K]=L}else for(K=0,et=(V=b.getElementsByTagName("tspan")).length;K<et;K++)K?A(V[K],{dy:1.2*C,x:k.x}):A(V[0],{dy:0});A(b,{x:k.x,y:k.y}),T._.dirty=1;var it=T._getBBox(),ut=k.y-(it.y+it.height/2);ut&&s.is(ut,"finite")&&A(V[0],{dy:ut})}},xt=function(T){return T.parentNode&&T.parentNode.tagName.toLowerCase()==="a"?T.parentNode:T},Ct=function(T,E){this[0]=this.node=T,T.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),T.raphaelid=this.id,this.matrix=s.matrix(),this.realPath=null,this.paper=E,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.top=this,this.next=null},$t=s.el;Ct.prototype=$t,$t.constructor=Ct,s._engine.path=function(T,E){var k=A("path");E.canvas&&E.canvas.appendChild(k);var b=new Ct(k,E);return b.type="path",rt(b,{fill:"none",stroke:"#000",path:T}),b},$t.rotate=function(T,E,k){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),k=u(T[2])),T=u(T[0]),k==null&&(E=k),E==null||k==null){var b=this.getBBox(1);E=b.x+b.width/2,k=b.y+b.height/2}return this.transform(this._.transform.concat([["r",T,E,k]])),this},$t.scale=function(T,E,k,b){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),k=u(T[2]),b=u(T[3])),T=u(T[0]),E==null&&(E=T),b==null&&(k=b),k==null||b==null)var C=this.getBBox(1);return k=k??C.x+C.width/2,b=b??C.y+C.height/2,this.transform(this._.transform.concat([["s",T,E,k,b]])),this},$t.translate=function(T,E){return this.removed?this:((T=l(T).split(v)).length-1&&(E=u(T[1])),T=u(T[0])||0,E=+E||0,this.transform(this._.transform.concat([["t",T,E]])),this)},$t.transform=function(T){var E=this._;if(T==null)return E.transform;if(s._extractTransform(this,T),this.clip&&A(this.clip,{transform:this.matrix.invert()}),this.pattern&&H(this),this.node&&A(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var k=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":k})}return this},$t.hide=function(){return this.removed||(this.node.style.display="none"),this},$t.show=function(){return this.removed||(this.node.style.display=""),this},$t.remove=function(){var T=xt(this.node);if(!this.removed&&T.parentNode){var E=this.paper;for(var k in E.__set__&&E.__set__.exclude(this),_.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),s._tear(this,E),T.parentNode.removeChild(T),this.removeData(),this)this[k]=typeof this[k]=="function"?s._removedFactory(k):null;this.removed=!0}},$t._getBBox=function(){if(this.node.style.display=="none"){this.show();var T=!0}var E,k=!1;this.paper.canvas.parentElement?E=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(E=this.paper.canvas.parentNode.style),E&&E.display=="none"&&(k=!0,E.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||{},k&&(E.display="none")}return T&&this.hide(),b},$t.attr=function(T,E){if(this.removed)return this;if(T==null){var k={};for(var b in this.attrs)this.attrs[c](b)&&(k[b]=this.attrs[b]);return k.gradient&&k.fill=="none"&&(k.fill=k.gradient)&&delete k.gradient,k.transform=this._.transform,k}if(E==null&&s.is(T,"string")){if(T=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(T=="transform")return this._.transform;for(var C=T.split(v),L={},D=0,V=C.length;D<V;D++)(T=C[D])in this.attrs?L[T]=this.attrs[T]:s.is(this.paper.customAttributes[T],"function")?L[T]=this.paper.customAttributes[T].def:L[T]=s._availableAttrs[T];return V-1?L:L[C[0]]}if(E==null&&s.is(T,"array")){for(L={},D=0,V=T.length;D<V;D++)L[T[D]]=this.attr(T[D]);return L}if(E!=null){var K={};K[T]=E}else T!=null&&s.is(T,"object")&&(K=T);for(var et in K)_("raphael.attr."+et+"."+this.id,this,K[et]);for(et in this.paper.customAttributes)if(this.paper.customAttributes[c](et)&&K[c](et)&&s.is(this.paper.customAttributes[et],"function")){var it=this.paper.customAttributes[et].apply(this,[].concat(K[et]));for(var ut in this.attrs[et]=K[et],it)it[c](ut)&&(K[ut]=it[ut])}return rt(this,K),this},$t.toFront=function(){if(this.removed)return this;var T=xt(this.node);T.parentNode.appendChild(T);var E=this.paper;return E.top!=this&&s._tofront(this,E),this},$t.toBack=function(){if(this.removed)return this;var T=xt(this.node),E=T.parentNode;return E.insertBefore(T,E.firstChild),s._toback(this,this.paper),this.paper,this},$t.insertAfter=function(T){if(this.removed||!T)return this;var E=xt(this.node),k=xt(T.node||T[T.length-1].node);return k.nextSibling?k.parentNode.insertBefore(E,k.nextSibling):k.parentNode.appendChild(E),s._insertafter(this,T,this.paper),this},$t.insertBefore=function(T){if(this.removed||!T)return this;var E=xt(this.node),k=xt(T.node||T[0].node);return k.parentNode.insertBefore(E,k),s._insertbefore(this,T,this.paper),this},$t.blur=function(T){var E=this;if(+T!=0){var k=A("filter"),b=A("feGaussianBlur");E.attrs.blur=T,k.id=s.createUUID(),A(b,{stdDeviation:+T||1.5}),k.appendChild(b),E.paper.defs.appendChild(k),E._blur=k,A(E.node,{filter:"url(#"+k.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},s._engine.circle=function(T,E,k,b){var C=A("circle");T.canvas&&T.canvas.appendChild(C);var L=new Ct(C,T);return L.attrs={cx:E,cy:k,r:b,fill:"none",stroke:"#000"},L.type="circle",A(C,L.attrs),L},s._engine.rect=function(T,E,k,b,C,L){var D=A("rect");T.canvas&&T.canvas.appendChild(D);var V=new Ct(D,T);return V.attrs={x:E,y:k,width:b,height:C,rx:L||0,ry:L||0,fill:"none",stroke:"#000"},V.type="rect",A(D,V.attrs),V},s._engine.ellipse=function(T,E,k,b,C){var L=A("ellipse");T.canvas&&T.canvas.appendChild(L);var D=new Ct(L,T);return D.attrs={cx:E,cy:k,rx:b,ry:C,fill:"none",stroke:"#000"},D.type="ellipse",A(L,D.attrs),D},s._engine.image=function(T,E,k,b,C,L){var D=A("image");A(D,{x:k,y:b,width:C,height:L,preserveAspectRatio:"none"}),D.setAttributeNS(x,"href",E),T.canvas&&T.canvas.appendChild(D);var V=new Ct(D,T);return V.attrs={x:k,y:b,width:C,height:L,src:E},V.type="image",V},s._engine.text=function(T,E,k,b){var C=A("text");T.canvas&&T.canvas.appendChild(C);var L=new Ct(C,T);return L.attrs={x:E,y:k,"text-anchor":"middle",text:b,"font-family":s._availableAttrs["font-family"],"font-size":s._availableAttrs["font-size"],stroke:"none",fill:"#000"},L.type="text",rt(L,L.attrs),L},s._engine.setSize=function(T,E){return this.width=T||this.width,this.height=E||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},s._engine.create=function(){var T=s._getContainer.apply(0,arguments),E=T&&T.container;if(!E)throw new Error("SVG container not found.");var k,b=T.x,C=T.y,L=T.width,D=T.height,V=A("svg"),K="overflow:hidden;";return b=b||0,C=C||0,A(V,{height:D=D||342,version:1.1,width:L=L||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(V.style.cssText=K+"position:absolute;left:"+b+"px;top:"+C+"px",s._g.doc.body.appendChild(V),k=1):(V.style.cssText=K+"position:relative",E.firstChild?E.insertBefore(V,E.firstChild):E.appendChild(V)),(E=new s._Paper).width=L,E.height=D,E.canvas=V,E.clear(),E._left=E._top=0,k&&(E.renderfix=function(){}),E.renderfix(),E},s._engine.setViewBox=function(T,E,k,b,C){_("raphael.setViewBox",this,this._viewBox,[T,E,k,b,C]);var L,D,V=this.getSize(),K=h(k/V.width,b/V.height),et=this.top,it=C?"xMidYMid meet":"xMinYMin";for(T==null?(this._vbSize&&(K=1),delete this._vbSize,L="0 0 "+this.width+m+this.height):(this._vbSize=K,L=T+m+E+m+k+m+b),A(this.canvas,{viewBox:L,preserveAspectRatio:it});K&&et;)D="stroke-width"in et.attrs?et.attrs["stroke-width"]:1,et.attr({"stroke-width":D}),et._.dirty=1,et._.dirtyT=1,et=et.prev;return this._viewBox=[T,E,k,b,!!C],this},s.prototype.renderfix=function(){var T,E=this.canvas,k=E.style;try{T=E.getScreenCTM()||E.createSVGMatrix()}catch{T=E.createSVGMatrix()}var b=-T.e%1,C=-T.f%1;(b||C)&&(b&&(this._left=(this._left+b)%1,k.left=this._left+"px"),C&&(this._top=(this._top+C)%1,k.top=this._top+"px"))},s.prototype.clear=function(){s.eve("raphael.clear",this);for(var T=this.canvas;T.firstChild;)T.removeChild(T.firstChild);this.bottom=this.top=null,(this.desc=A("desc")).appendChild(s._g.doc.createTextNode("Created with Raphaël "+s.version)),T.appendChild(this.desc),T.appendChild(this.defs=A("defs"))},s.prototype.remove=function(){for(var T in _("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[T]=typeof this[T]=="function"?s._removedFactory(T):null};var at=s.st;for(var X in $t)$t[c](X)&&!at[c](X)&&(at[X]=function(T){return function(){var E=arguments;return this.forEach(function(k){k[T].apply(k,E)})}}(X))}}).apply(n,o))===void 0||(r.exports=a)},function(r,n,i){var o,a;o=[i(0)],(a=(function(s){if(!s||s.vml){var c="hasOwnProperty",l=String,u=parseFloat,d=Math,f=d.round,h=d.max,p=d.min,g=d.abs,v=/[, ]+/,_=s.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,A=/-?[^,\s-]+/g,R="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",G=21600,H={path:1,rect:1,image:1},Y={circle:1,ellipse:1},J=function(E,k,b){var C=s.matrix();return C.rotate(-E,.5,.5),{dx:C.x(k,b),dy:C.y(k,b)}},nt=function(E,k,b,C,L,D){var V=E._,K=E.matrix,et=V.fillpos,it=E.node,ut=it.style,Tt=1,Gt="",Pt=G/k,Nt=G/b;if(ut.visibility="hidden",k&&b){if(it.coordsize=g(Pt)+y+g(Nt),ut.rotation=D*(k*b<0?-1:1),D){var qt=J(D,C,L);C=qt.dx,L=qt.dy}if(k<0&&(Gt+="x"),b<0&&(Gt+=" y")&&(Tt=-1),ut.flip=Gt,it.coordorigin=C*-Pt+y+L*-Nt,et||V.fillsize){var Qt=it.getElementsByTagName("fill");Qt=Qt&&Qt[0],it.removeChild(Qt),et&&(qt=J(D,K.x(et[0],et[1]),K.y(et[0],et[1])),Qt.position=qt.dx*Tt+y+qt.dy*Tt),V.fillsize&&(Qt.size=V.fillsize[0]*g(k)+y+V.fillsize[1]*g(b)),it.appendChild(Qt)}ut.visibility="visible"}};s.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
42
- You are running Raphaël `+this.version};var rt,lt=function(E,k,b){for(var C=l(k).toLowerCase().split("-"),L=b?"end":"start",D=C.length,V="classic",K="medium",et="medium";D--;)switch(C[D]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":V=C[D];break;case"wide":case"narrow":et=C[D];break;case"long":case"short":K=C[D]}var it=E.node.getElementsByTagName("stroke")[0];it[L+"arrow"]=V,it[L+"arrowlength"]=K,it[L+"arrowwidth"]=et},xt=function(E,k){E.attrs=E.attrs||{};var b=E.node,C=E.attrs,L=b.style,D=H[E.type]&&(k.x!=C.x||k.y!=C.y||k.width!=C.width||k.height!=C.height||k.cx!=C.cx||k.cy!=C.cy||k.rx!=C.rx||k.ry!=C.ry||k.r!=C.r),V=Y[E.type]&&(C.cx!=k.cx||C.cy!=k.cy||C.r!=k.r||C.rx!=k.rx||C.ry!=k.ry),K=E;for(var et in k)k[c](et)&&(C[et]=k[et]);if(D&&(C.path=s._getPath[E.type](E),E._.dirty=1),k.href&&(b.href=k.href),k.title&&(b.title=k.title),k.target&&(b.target=k.target),k.cursor&&(L.cursor=k.cursor),"blur"in k&&E.blur(k.blur),(k.path&&E.type=="path"||D)&&(b.path=function(er){var rn=/[ahqstv]/gi,nn=s._pathToAbsolute;if(l(er).match(rn)&&(nn=s._path2curve),rn=/[clmz]/g,nn==s._pathToAbsolute&&!l(er).match(rn)){var xe=l(er).replace(N,function(mo,on,gn){var $r=[],En=on.toLowerCase()=="m",vn=x[on];return gn.replace(A,function(Yr){En&&$r.length==2&&(vn+=$r+x[on=="m"?"l":"L"],$r=[]),$r.push(f(Yr*G))}),vn+$r});return xe}var Kr,Or,Yn=nn(er);xe=[];for(var mn=0,kn=Yn.length;mn<kn;mn++){Kr=Yn[mn],(Or=Yn[mn][0].toLowerCase())=="z"&&(Or="x");for(var Dr=1,Ie=Kr.length;Dr<Ie;Dr++)Or+=f(Kr[Dr]*G)+(Dr!=Ie-1?",":m);xe.push(Or)}return xe.join(y)}(~l(C.path).toLowerCase().indexOf("r")?s._pathToAbsolute(C.path):C.path),E._.dirty=1,E.type=="image"&&(E._.fillpos=[C.x,C.y],E._.fillsize=[C.width,C.height],nt(E,1,1,0,0,0))),"transform"in k&&E.transform(k.transform),V){var it=+C.cx,ut=+C.cy,Tt=+C.rx||+C.r||0,Gt=+C.ry||+C.r||0;b.path=s.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((it-Tt)*G),f((ut-Gt)*G),f((it+Tt)*G),f((ut+Gt)*G),f(it*G)),E._.dirty=1}if("clip-rect"in k){var Pt=l(k["clip-rect"]).split(v);if(Pt.length==4){Pt[2]=+Pt[2]+ +Pt[0],Pt[3]=+Pt[3]+ +Pt[1];var Nt=b.clipRect||s._g.doc.createElement("div"),qt=Nt.style;qt.clip=s.format("rect({1}px {2}px {3}px {0}px)",Pt),b.clipRect||(qt.position="absolute",qt.top=0,qt.left=0,qt.width=E.paper.width+"px",qt.height=E.paper.height+"px",b.parentNode.insertBefore(Nt,b),Nt.appendChild(b),b.clipRect=Nt)}k["clip-rect"]||b.clipRect&&(b.clipRect.style.clip="auto")}if(E.textpath){var Qt=E.textpath.style;k.font&&(Qt.font=k.font),k["font-family"]&&(Qt.fontFamily='"'+k["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),k["font-size"]&&(Qt.fontSize=k["font-size"]),k["font-weight"]&&(Qt.fontWeight=k["font-weight"]),k["font-style"]&&(Qt.fontStyle=k["font-style"])}if("arrow-start"in k&&lt(K,k["arrow-start"]),"arrow-end"in k&&lt(K,k["arrow-end"],1),k.opacity!=null||k.fill!=null||k.src!=null||k.stroke!=null||k["stroke-width"]!=null||k["stroke-opacity"]!=null||k["fill-opacity"]!=null||k["stroke-dasharray"]!=null||k["stroke-miterlimit"]!=null||k["stroke-linejoin"]!=null||k["stroke-linecap"]!=null){var Dt=b.getElementsByTagName("fill");if(!(Dt=Dt&&Dt[0])&&(Dt=rt("fill")),E.type=="image"&&k.src&&(Dt.src=k.src),k.fill&&(Dt.on=!0),Dt.on!=null&&k.fill!="none"&&k.fill!==null||(Dt.on=!1),Dt.on&&k.fill){var fe=l(k.fill).match(s._ISURL);if(fe){Dt.parentNode==b&&b.removeChild(Dt),Dt.rotate=!0,Dt.src=fe[1],Dt.type="tile";var re=E.getBBox(1);Dt.position=re.x+y+re.y,E._.fillpos=[re.x,re.y],s._preload(fe[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else Dt.color=s.getRGB(k.fill).hex,Dt.src=m,Dt.type="solid",s.getRGB(k.fill).error&&(K.type in{circle:1,ellipse:1}||l(k.fill).charAt()!="r")&&Ct(K,k.fill,Dt)&&(C.fill="none",C.gradient=k.fill,Dt.rotate=!1)}if("fill-opacity"in k||"opacity"in k){var he=((+C["fill-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+s.getRGB(k.fill).o+1||2)-1);he=p(h(he,0),1),Dt.opacity=he,Dt.src&&(Dt.color="none")}b.appendChild(Dt);var Vt=b.getElementsByTagName("stroke")&&b.getElementsByTagName("stroke")[0],Le=!1;!Vt&&(Le=Vt=rt("stroke")),(k.stroke&&k.stroke!="none"||k["stroke-width"]||k["stroke-opacity"]!=null||k["stroke-dasharray"]||k["stroke-miterlimit"]||k["stroke-linejoin"]||k["stroke-linecap"])&&(Vt.on=!0),(k.stroke=="none"||k.stroke===null||Vt.on==null||k.stroke==0||k["stroke-width"]==0)&&(Vt.on=!1);var Ue=s.getRGB(k.stroke);Vt.on&&k.stroke&&(Vt.color=Ue.hex),he=((+C["stroke-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+Ue.o+1||2)-1);var Xe=.75*(u(k["stroke-width"])||1);if(he=p(h(he,0),1),k["stroke-width"]==null&&(Xe=C["stroke-width"]),k["stroke-width"]&&(Vt.weight=Xe),Xe&&Xe<1&&(he*=Xe)&&(Vt.weight=1),Vt.opacity=he,k["stroke-linejoin"]&&(Vt.joinstyle=k["stroke-linejoin"]||"miter"),Vt.miterlimit=k["stroke-miterlimit"]||8,k["stroke-linecap"]&&(Vt.endcap=k["stroke-linecap"]=="butt"?"flat":k["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in k){var pr={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Vt.dashstyle=pr[c](k["stroke-dasharray"])?pr[k["stroke-dasharray"]]:m}Le&&b.appendChild(Vt)}if(K.type=="text"){K.paper.canvas.style.display=m;var dr=K.paper.span,$e=C.font&&C.font.match(/\d+(?:\.\d*)?(?=px)/);L=dr.style,C.font&&(L.font=C.font),C["font-family"]&&(L.fontFamily=C["font-family"]),C["font-weight"]&&(L.fontWeight=C["font-weight"]),C["font-style"]&&(L.fontStyle=C["font-style"]),$e=u(C["font-size"]||$e&&$e[0])||10,L.fontSize=100*$e+"px",K.textpath.string&&(dr.innerHTML=l(K.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Ze=dr.getBoundingClientRect();K.W=C.w=(Ze.right-Ze.left)/100,K.H=C.h=(Ze.bottom-Ze.top)/100,K.X=C.x,K.Y=C.y+K.H/2,("x"in k||"y"in k)&&(K.path.v=s.format("m{0},{1}l{2},{1}",f(C.x*G),f(C.y*G),f(C.x*G)+1));for(var jr=["x","y","text","font","font-family","font-weight","font-style","font-size"],Ir=0,Sr=jr.length;Ir<Sr;Ir++)if(jr[Ir]in k){K._.dirty=1;break}switch(C["text-anchor"]){case"start":K.textpath.style["v-text-align"]="left",K.bbx=K.W/2;break;case"end":K.textpath.style["v-text-align"]="right",K.bbx=-K.W/2;break;default:K.textpath.style["v-text-align"]="center",K.bbx=0}K.textpath.style["v-text-kern"]=!0}},Ct=function(E,k,b){E.attrs=E.attrs||{},E.attrs;var C=Math.pow,L="linear",D=".5 .5";if(E.attrs.gradient=k,k=(k=l(k).replace(s._radial_gradient,function(Tt,Gt,Pt){return L="radial",Gt&&Pt&&(Gt=u(Gt),Pt=u(Pt),C(Gt-.5,2)+C(Pt-.5,2)>.25&&(Pt=d.sqrt(.25-C(Gt-.5,2))*(2*(Pt>.5)-1)+.5),D=Gt+y+Pt),m})).split(/\s*\-\s*/),L=="linear"){var V=k.shift();if(V=-u(V),isNaN(V))return null}var K=s._parseDots(k);if(!K)return null;if(E=E.shape||E.node,K.length){E.removeChild(b),b.on=!0,b.method="none",b.color=K[0].color,b.color2=K[K.length-1].color;for(var et=[],it=0,ut=K.length;it<ut;it++)K[it].offset&&et.push(K[it].offset+y+K[it].color);b.colors=et.length?et.join():"0% "+b.color,L=="radial"?(b.type="gradientTitle",b.focus="100%",b.focussize="0 0",b.focusposition=D,b.angle=0):(b.type="gradient",b.angle=(270-V)%360),E.appendChild(b)}return 1},$t=function(E,k){this[0]=this.node=E,E.raphael=!0,this.id=s._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=k,this.matrix=s.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!k.bottom&&(k.bottom=this),this.prev=k.top,k.top&&(k.top.next=this),k.top=this,this.next=null},at=s.el;$t.prototype=at,at.constructor=$t,at.transform=function(E){if(E==null)return this._.transform;var k,b=this.paper._viewBoxShift,C=b?"s"+[b.scale,b.scale]+"-1-1t"+[b.dx,b.dy]:m;b&&(k=E=l(E).replace(/\.{3}|\u2026/g,this._.transform||m)),s._extractTransform(this,C+E);var L,D=this.matrix.clone(),V=this.skew,K=this.node,et=~l(this.attrs.fill).indexOf("-"),it=!l(this.attrs.fill).indexOf("url(");if(D.translate(1,1),it||et||this.type=="image")if(V.matrix="1 0 0 1",V.offset="0 0",L=D.split(),et&&L.noRotation||!L.isSimple){K.style.filter=D.toFilter();var ut=this.getBBox(),Tt=this.getBBox(1),Gt=ut.x-Tt.x,Pt=ut.y-Tt.y;K.coordorigin=Gt*-G+y+Pt*-G,nt(this,1,1,Gt,Pt,0)}else K.style.filter=m,nt(this,L.scalex,L.scaley,L.dx,L.dy,L.rotate);else K.style.filter=m,V.matrix=l(D),V.offset=D.offset();return k!==null&&(this._.transform=k,s._extractTransform(this,k)),this},at.rotate=function(E,k,b){if(this.removed)return this;if(E!=null){if((E=l(E).split(v)).length-1&&(k=u(E[1]),b=u(E[2])),E=u(E[0]),b==null&&(k=b),k==null||b==null){var C=this.getBBox(1);k=C.x+C.width/2,b=C.y+C.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,k,b]])),this}},at.translate=function(E,k){return this.removed?this:((E=l(E).split(v)).length-1&&(k=u(E[1])),E=u(E[0])||0,k=+k||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=k),this.transform(this._.transform.concat([["t",E,k]])),this)},at.scale=function(E,k,b,C){if(this.removed)return this;if((E=l(E).split(v)).length-1&&(k=u(E[1]),b=u(E[2]),C=u(E[3]),isNaN(b)&&(b=null),isNaN(C)&&(C=null)),E=u(E[0]),k==null&&(k=E),C==null&&(b=C),b==null||C==null)var L=this.getBBox(1);return b=b??L.x+L.width/2,C=C??L.y+L.height/2,this.transform(this._.transform.concat([["s",E,k,b,C]])),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=s.el.getBBox,at.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var k={},b=1/this.paper._viewBoxShift.scale;return k.x=E.x-this.paper._viewBoxShift.dx,k.x*=b,k.y=E.y-this.paper._viewBoxShift.dy,k.y*=b,k.width=E.width*b,k.height=E.height*b,k.x2=k.x+k.width,k.y2=k.y+k.height,k}return E},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 E in this.paper.__set__&&this.paper.__set__.exclude(this),s.eve.unbind("raphael.*.*."+this.id),s._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?s._removedFactory(E):null;this.removed=!0}},at.attr=function(E,k){if(this.removed)return this;if(E==null){var b={};for(var C in this.attrs)this.attrs[c](C)&&(b[C]=this.attrs[C]);return b.gradient&&b.fill=="none"&&(b.fill=b.gradient)&&delete b.gradient,b.transform=this._.transform,b}if(k==null&&s.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var L=E.split(v),D={},V=0,K=L.length;V<K;V++)(E=L[V])in this.attrs?D[E]=this.attrs[E]:s.is(this.paper.customAttributes[E],"function")?D[E]=this.paper.customAttributes[E].def:D[E]=s._availableAttrs[E];return K-1?D:D[L[0]]}if(this.attrs&&k==null&&s.is(E,"array")){for(D={},V=0,K=E.length;V<K;V++)D[E[V]]=this.attr(E[V]);return D}var et;for(var it in k!=null&&((et={})[E]=k),k==null&&s.is(E,"object")&&(et=E),et)_("raphael.attr."+it+"."+this.id,this,et[it]);if(et){for(it in this.paper.customAttributes)if(this.paper.customAttributes[c](it)&&et[c](it)&&s.is(this.paper.customAttributes[it],"function")){var ut=this.paper.customAttributes[it].apply(this,[].concat(et[it]));for(var Tt in this.attrs[it]=et[it],ut)ut[c](Tt)&&(et[Tt]=ut[Tt])}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&&s._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),s._toback(this,this.paper)),this)},at.insertAfter=function(E){return this.removed?this:(E.constructor==s.st.constructor&&(E=E[E.length-1]),E.node.nextSibling?E.node.parentNode.insertBefore(this.node,E.node.nextSibling):E.node.parentNode.appendChild(this.node),s._insertafter(this,E,this.paper),this)},at.insertBefore=function(E){return this.removed?this:(E.constructor==s.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),s._insertbefore(this,E,this.paper),this)},at.blur=function(E){var k=this.node.runtimeStyle,b=k.filter;return b=b.replace($,m),+E!=0?(this.attrs.blur=E,k.filter=b+y+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",k.margin=s.format("-{0}px 0 0 -{0}px",f(+E||1.5))):(k.filter=b,k.margin=0,delete this.attrs.blur),this},s._engine.path=function(E,k){var b=rt("shape");b.style.cssText=R,b.coordsize=G+y+G,b.coordorigin=k.coordorigin;var C=new $t(b,k),L={fill:"none",stroke:"#000"};E&&(L.path=E),C.type="path",C.path=[],C.Path=m,xt(C,L),k.canvas&&k.canvas.appendChild(b);var D=rt("skew");return D.on=!0,b.appendChild(D),C.skew=D,C.transform(m),C},s._engine.rect=function(E,k,b,C,L,D){var V=s._rectPath(k,b,C,L,D),K=E.path(V),et=K.attrs;return K.X=et.x=k,K.Y=et.y=b,K.W=et.width=C,K.H=et.height=L,et.r=D,et.path=V,K.type="rect",K},s._engine.ellipse=function(E,k,b,C,L){var D=E.path();return D.attrs,D.X=k-C,D.Y=b-L,D.W=2*C,D.H=2*L,D.type="ellipse",xt(D,{cx:k,cy:b,rx:C,ry:L}),D},s._engine.circle=function(E,k,b,C){var L=E.path();return L.attrs,L.X=k-C,L.Y=b-C,L.W=L.H=2*C,L.type="circle",xt(L,{cx:k,cy:b,r:C}),L},s._engine.image=function(E,k,b,C,L,D){var V=s._rectPath(b,C,L,D),K=E.path(V).attr({stroke:"none"}),et=K.attrs,it=K.node,ut=it.getElementsByTagName("fill")[0];return et.src=k,K.X=et.x=b,K.Y=et.y=C,K.W=et.width=L,K.H=et.height=D,et.path=V,K.type="image",ut.parentNode==it&&it.removeChild(ut),ut.rotate=!0,ut.src=k,ut.type="tile",K._.fillpos=[b,C],K._.fillsize=[L,D],it.appendChild(ut),nt(K,1,1,0,0,0),K},s._engine.text=function(E,k,b,C){var L=rt("shape"),D=rt("path"),V=rt("textpath");k=k||0,b=b||0,C=C||"",D.v=s.format("m{0},{1}l{2},{1}",f(k*G),f(b*G),f(k*G)+1),D.textpathok=!0,V.string=l(C),V.on=!0,L.style.cssText=R,L.coordsize=G+y+G,L.coordorigin="0 0";var K=new $t(L,E),et={fill:"#000",stroke:"none",font:s._availableAttrs.font,text:C};K.shape=L,K.path=D,K.textpath=V,K.type="text",K.attrs.text=l(C),K.attrs.x=k,K.attrs.y=b,K.attrs.w=1,K.attrs.h=1,xt(K,et),L.appendChild(V),L.appendChild(D),E.canvas.appendChild(L);var it=rt("skew");return it.on=!0,L.appendChild(it),K.skew=it,K.transform(m),K},s._engine.setSize=function(E,k){var b=this.canvas.style;return this.width=E,this.height=k,E==+E&&(E+="px"),k==+k&&(k+="px"),b.width=E,b.height=k,b.clip="rect(0 "+E+" "+k+" 0)",this._viewBox&&s._engine.setViewBox.apply(this,this._viewBox),this},s._engine.setViewBox=function(E,k,b,C,L){s.eve("raphael.setViewBox",this,this._viewBox,[E,k,b,C,L]);var D,V,K=this.getSize(),et=K.width,it=K.height;return L&&(b*(D=it/C)<et&&(E-=(et-b*D)/2/D),C*(V=et/b)<it&&(k-=(it-C*V)/2/V)),this._viewBox=[E,k,b,C,!!L],this._viewBoxShift={dx:-E,dy:-k,scale:K},this.forEach(function(ut){ut.transform("...")}),this},s._engine.initWin=function(E){var k=E.document;k.styleSheets.length<31?k.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):k.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!k.namespaces.rvml&&k.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),rt=function(b){return k.createElement("<rvml:"+b+' class="rvml">')}}catch{rt=function(b){return k.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},s._engine.initWin(s._g.win),s._engine.create=function(){var E=s._getContainer.apply(0,arguments),k=E.container,b=E.height,C=E.width,L=E.x,D=E.y;if(!k)throw new Error("VML container not found.");var V=new s._Paper,K=V.canvas=s._g.doc.createElement("div"),et=K.style;return L=L||0,D=D||0,C=C||512,b=b||342,V.width=C,V.height=b,C==+C&&(C+="px"),b==+b&&(b+="px"),V.coordsize=216e5+y+216e5,V.coordorigin="0 0",V.span=s._g.doc.createElement("span"),V.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",K.appendChild(V.span),et.cssText=s.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",C,b),k==1?(s._g.doc.body.appendChild(K),et.left=L+"px",et.top=D+"px",et.position="absolute"):k.firstChild?k.insertBefore(K,k.firstChild):k.appendChild(K),V.renderfix=function(){},V},s.prototype.clear=function(){s.eve("raphael.clear",this),this.canvas.innerHTML=m,this.span=s._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},s.prototype.remove=function(){for(var E in s.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?s._removedFactory(E):null;return!0};var X=s.st;for(var T in at)at[c](T)&&!X[c](T)&&(X[T]=function(E){return function(){var k=arguments;return this.forEach(function(b){b[E].apply(b,k)})}}(T))}}).apply(n,o))===void 0||(r.exports=a)}])})})(l_);var xA=l_.exports;const Jr=un(xA);let c_=class K${constructor(t=[]){jt(this,"points");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 a=2e-10;for(let s=0,c=i-1;s<i;c=s,s++){const l=this.points[s].x,u=this.points[s].y,d=this.points[c].x,f=this.points[c].y;if(l===r&&u===n||d===r&&f===n||n===u&&n===f)return!0;if(n>=u&&n<f||n<u&&n>=f){const h=(d-l)/(f-u),p=l+h*(n-u);if(p===r||Math.abs(p-r)<a)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 a=new K$;for(let s=0;s<=o*n;s+=1){const c=Math.floor(s/o)/n*2*Math.PI,l=t+Math.cos(c)*i,u=r+Math.sin(c)*i;a.addPoint(new fs({x:l,y:u}))}return a}};Jr.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Jr.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Jr.fn.importSVG=function(e,t){const r=SA.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},Jr.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(c_.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:c_.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},Jr.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Jr.fn.brickwall=function(e,t,r,n,i){for(var o=n/i,a=r/3,s={fill:"firebrick",stroke:"#CCC"},c=0;c<i;c+=1){var l=this.rect(0,0,a,o).attr(s),u=this.rect(0,0,2*a,o).attr(s);c%2?(l.transform("T"+e+","+(t+c*o)),u.transform("T"+(e+a)+","+(t+c*o))):(u.transform("T"+e+","+(t+c*o)),l.transform("T"+(e+2*a)+","+(t+c*o)))}},Jr.fn.rosetta=function(e,t,r,n,i){const o=fa.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},Jr.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))}}},Jr.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,a=e+r*Math.cos(o*Math.PI/180),s=t+r*Math.sin(o*Math.PI/180);n+="L"+a+","+s}return this.path(n).attr("stroke-width",0).attr("fill","red")},Jr.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")},Jr.el.redder=function(){const e=Jr.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Jr.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 a=r.getTotalLength(),s=r.getPointAtLength(t*a);return o&&o.attr("path",r.getSubpath(0,t*a)),{transform:"t"+(s.x+i.x)+","+(s.y+i.y)+"r"+s.alpha}}};const u_=Jr;let h_=class sc{constructor(){jt(this,"pgs",[]);jt(this,"history",[])}save(){this.history.push(jg(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,a,s,c]=i.bounds,[l,u]=i.size;t=Math.max(t,o,o+l,s),r=Math.max(r,a,a+u,c)}}),[Math.ceil(t),Math.ceil(r)]}static fromRawSVG(t){return sc.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new sc,n=vA(t);for(let i=0,o=n.length;i<o;i++){const a=n[i];if(a.type=="viewbox"&&a.width&&a.height)continue;const s={attrs:{}};for(const c in a)c==="type"||c==="path"||c==="transform"||(s.attrs[c]=a[c]);switch(a.type){case"path":s.d=a.path,s.pg=fa.fromSVGPathD(a.path,a.transform);break}r.pgs.push(s)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=u_(HTMLElement):typeof t=="string"?n=u_(document.getElementById(t)):n=t;const[i,o]=this.size;n.setSize(i,o);const a=(s=!1)=>{var c,l;for(let u=0,d=this.pgs.length;u<d;u++){const f=this.pgs[u];if(f.pg&&(f.raphaelPath?f.raphaelPath.attr("path",f.pg.toSVGPathD()):f.raphaelPath=n.path(f.pg.toSVGPathD()),f.raphaelPath.attr(f.attrs)),s&&r){const h=p=>{const{x:g,y:v}=Uy(n.canvas,p),_=this.pgs.find(y=>{var m;return(m=y.raphaelPath)==null?void 0:m.isPointInside(g,v)});_&&(r==null||r(_,a))};(c=f.raphaelPath)==null||c.unclick(h),(l=f.raphaelPath)==null||l.click(h)}}};return a(!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 a=new $A(n),s=()=>{a.clearRect(0,0,i,o);for(let l=0,u=this.pgs.length;l<u;l++){const d=this.pgs[l];d.pg&&(a.save(),this.toCanvasAttrs(a,d.attrs),d.pg.toCanvas(a),d.attrs.stroke!=="none"&&a.stroke(),d.attrs.fill!=="none"&&a.fill(),a.restore())}};s();const c=l=>{const{x:u,y:d}=Uy(a.canvas,l),f=this.pgs.find(h=>{var p;return(p=h.pg)==null?void 0:p.isPointInPath(u,d)});f&&(r==null||r(f,s))};return n.removeEventListener("click",c),n.addEventListener("click",c),a}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"){Fy(RO(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return sc.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){Fy(Dy(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return sc.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 SA=h_;let $A=class{constructor(t){jt(this,"canvas");jt(this,"context");jt(this,"customContext");this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new wA({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,a){return this.context.arc(t,r,n,i,o,a),this.customContext.arc(t,r,n,i,o,a?-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,a){return this.context.bezierCurveTo(t,r,n,i,o,a),this.customContext.bezierCurveTo(t,r,n,i,o,a),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 a=this.context.createLinearGradient(t,r,n,i),s=this.customContext.createLinearGradient(t,r,n,i);return o&&Object.keys(o).forEach(c=>{const l=parseFloat(c);a.addColorStop(l,o[l]),s.addColorStop(l,o[l])}),{gradient:a,gradientCustom:s}}createRadialGradient(t,r,n,i,o,a,s){const c=this.context.createRadialGradient(t,r,n,i,o,a),l=this.customContext.createRadialGradient(t,r,n,i,o,a);return s&&Object.keys(s).forEach(u=>{const d=parseFloat(u);c.addColorStop(d,s[d]),l.addColorStop(d,s[d])}),{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 h_.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 Ce={colorPrimary:ee.getCSSVar("--color-primary"),colorRed:ee.getCSSVar("--color-red"),colorOrange:ee.getCSSVar("--color-orange"),colorYellow:ee.getCSSVar("--color-yellow"),colorGreen:ee.getCSSVar("--color-green"),colorBlue:ee.getCSSVar("--color-blue"),colorPurple:ee.getCSSVar("--color-purple"),colorBlack:ee.getCSSVar("--color-black"),colorGray0:ee.getCSSVar("--color-gray-0"),colorGray3:ee.getCSSVar("--color-gray-3"),colorGray6:ee.getCSSVar("--color-gray-6"),colorGray9:ee.getCSSVar("--color-gray-9"),colorGrayCC:ee.getCSSVar("--color-gray-cc"),colorGrayDD:ee.getCSSVar("--color-gray-dd"),colorGrayE6:ee.getCSSVar("--color-gray-e6"),colorGrayEE:ee.getCSSVar("--color-gray-ee"),colorGrayEF:ee.getCSSVar("--color-gray-ef"),colorGrayF5:ee.getCSSVar("--color-gray-f5"),colorGrayFF:ee.getCSSVar("--color-gray-ff"),fontLineHeight:ee.getCSSVar("--font-line-height"),fontSize32:ee.getCSSVar("--font-size-32"),fontSize24:ee.getCSSVar("--font-size-24"),fontSize18:ee.getCSSVar("--font-size-18"),fontSize16:ee.getCSSVar("--font-size-16"),fontSize14:ee.getCSSVar("--font-size-14"),fontSize12:ee.getCSSVar("--font-size-12"),fontSize11:ee.getCSSVar("--font-size-11"),gap4:ee.getCSSVar("--gap-4"),gap8:ee.getCSSVar("--gap-8"),gap12:ee.getCSSVar("--gap-12"),gap16:ee.getCSSVar("--gap-16"),gap20:ee.getCSSVar("--gap-20"),gap40:ee.getCSSVar("--gap-40"),height44:ee.getCSSVar("--height-44"),height32:ee.getCSSVar("--height-32"),borderRadius:ee.getCSSVar("--border-radius")},kA=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},EA=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+")"},CA=function(e,t=1){const r=kA(e);return EA(r,t)};function vs(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),a=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),s=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+a+s}var d_={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,a={},s=new Uint8Array(r),c=s.length-4;o(s,c)!=101010256;)c--;var l=c;l+=4,l+=4;var u=i(s,l);l+=2,i(s,l),l+=2;var d=o(s,l);l+=4;var f=o(s,l);l+=4,l=f;for(var h=0;h<u;h++){o(s,l),l+=4,l+=4,l+=4,l+=4,o(s,l),l+=4;var d=o(s,l);l+=4;var p=o(s,l);l+=4;var g=i(s,l),v=i(s,l+2),_=i(s,l+4);l+=6,l+=8;var y=o(s,l);l+=4,l+=g+v+_,t._readLocal(s,y,a,d,p,n)}return a},t._readLocal=function(r,n,i,o,a,s){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 d=c(r,n);n+=2;var f=c(r,n);n+=2;var h=t.bin.readUTF8(r,n,d);if(n+=d,n+=f,s){i[h]={size:a,csize:o};return}var p=new Uint8Array(r.buffer,n);if(u==0)i[h]=new Uint8Array(p.buffer.slice(n,n+o));else if(u==8){var g=new Uint8Array(a);t.inflateRaw(p,g),i[h]=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 a=t.adler(r,0,r.length);return o[i+0]=a>>>24&255,o[i+1]=a>>>16&255,o[i+2]=a>>>8&255,o[i+3]=a>>>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,a=t.bin.writeUshort,s={};for(var c in r){var l=!t._noNeed(c)&&!n,u=r[c],d=t.crc.crc(u,0,u.length);s[c]={cpr:l,usize:u.length,crc:d,file:l?t.deflateRaw(u):u}}for(var c in s)i+=s[c].file.length+30+46+2*t.bin.sizeUTF8(c);i+=22;var f=new Uint8Array(i),h=0,p=[];for(var c in s){var g=s[c];p.push(h),h=t._writeHeader(f,h,c,g,0)}var v=0,_=h;for(var c in s){var g=s[c];p.push(h),h=t._writeHeader(f,h,c,g,1,p[v++])}var y=h-_;return o(f,h,101010256),h+=4,h+=4,a(f,h,v),h+=2,a(f,h,v),h+=2,o(f,h,y),h+=4,o(f,h,_),h+=4,h+=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,a,s){var c=t.bin.writeUint,l=t.bin.writeUshort,u=o.file;c(r,n,a==0?67324752:33639248),n+=4,a==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,a==1&&(n+=2,n+=2,n+=6,c(r,n,s),n+=4);var d=t.bin.writeUTF8(r,n,i);return n+=d,a==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 a=0;a<o;a++)r=t.crc.table[(r^n[i+a])&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,a=0,s=n,c=n+i;s<c;){for(var l=Math.min(s+5552,c);s<l;)o+=r[s++],a+=o;o=o%65521,a=a%65521}return a<<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="",a=0;a<i;a++)o+=String.fromCharCode(r[n+a]);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="",a,s=0;s<i;s++)o+="%"+t.bin.pad(r[n+s].toString(16));try{a=decodeURIComponent(o)}catch{return t.bin.readASCII(r,n,i)}return a},writeUTF8:function(r,n,i){for(var o=i.length,a=0,s=0;s<o;s++){var c=i.charCodeAt(s);if(!(c&4294967168))r[n+a]=c,a++;else if(!(c&4294965248))r[n+a]=192|c>>6,r[n+a+1]=128|c>>0&63,a+=2;else if(!(c&4294901760))r[n+a]=224|c>>12,r[n+a+1]=128|c>>6&63,r[n+a+2]=128|c>>0&63,a+=3;else if(!(c&4294967295-(1<<21)+1))r[n+a]=240|c>>18,r[n+a+1]=128|c>>12&63,r[n+a+2]=128|c>>6&63,r[n+a+3]=128|c>>0&63,a+=4;else throw"e"}return a},sizeUTF8:function(r){for(var n=r.length,i=0,o=0;o<n;o++){var a=r.charCodeAt(o);if(!(a&4294967168))i++;else if(!(a&4294965248))i+=2;else if(!(a&4294901760))i+=3;else if(!(a&4294967295-(1<<21)+1))i+=4;else throw"e"}return i}},t.F={},t.F.deflateRaw=function(r,n,i,o){var a=[[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]],s=a[o],c=t.F.U,l=t.F._goodIndex;t.F._hash;var u=t.F._putsE,d=0,f=i<<3,h=0,p=r.length;if(o==0){for(;d<p;){var g=Math.min(65535,p-d);u(n,f,d+g==p?1:0),f=t.F._copyExact(r,d,g,n,f+8),d+=g}return f>>>3}var v=c.lits,_=c.strt,y=c.prev,m=0,x=0,N=0,$=0,A=0,R=0;for(p>2&&(R=t.F._hash(r,0),_[R]=0),d=0;d<p;d++){if(A=R,d+1<p-2){R=t.F._hash(r,d+1);var G=d+1&32767;y[G]=_[R],_[R]=G}if(h<=d){(m>14e3||x>26697)&&p-d>100&&(h<d&&(v[m]=d-h,m+=2,h=d),f=t.F._writeBlock(d==p-1||h==p?1:0,v,m,$,r,N,d-N,n,f),m=x=$=0,N=d);var H=0;d<p-2&&(H=t.F._bestMatch(r,d,y,A,Math.min(s[2],p-d),s[3]));var g=H>>>16,Y=H&65535;if(H!=0){var g=H>>>16,Y=H&65535,J=l(g,c.of0);c.lhst[257+J]++;var nt=l(Y,c.df0);c.dhst[nt]++,$+=c.exb[J]+c.dxb[nt],v[m]=g<<23|d-h,v[m+1]=Y<<16|J<<8|nt,m+=2,h=d+g}else c.lhst[r[d]]++;x++}}for((N!=d||r.length==0)&&(h<d&&(v[m]=d-h,m+=2,h=d),f=t.F._writeBlock(1,v,m,$,r,N,d-N,n,f),m=0,x=0,m=x=$=0,N=d);f&7;)f++;return f>>>3},t.F._bestMatch=function(r,n,i,o,a,s){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 d=0,f=0,h=Math.min(32767,n);u<=h&&--s!=0&&l!=c;){if(d==0||r[n+d]==r[n+d-u]){var p=t.F._howLong(r,n,u);if(p>d){if(d=p,f=u,d>=a)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 d<<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,a=Math.min(r.length,n+258);for(n+=3;n<a&&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,a,s,c,l,u){var d=t.F.U,f=t.F._putsF,h=t.F._putsE,p,g,v,_,y,m,x,N,$;d.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 A=(u+3&7?8-(u+3&7):0)+32+(c<<3),R=o+t.F.contSize(d.fltree,d.lhst)+t.F.contSize(d.fdtree,d.dhst),G=o+t.F.contSize(d.ltree,d.lhst)+t.F.contSize(d.dtree,d.dhst);G+=14+3*x+t.F.contSize(d.itree,d.ihst)+(d.ihst[16]*2+d.ihst[17]*3+d.ihst[18]*7);for(var H=0;H<286;H++)d.lhst[H]=0;for(var H=0;H<30;H++)d.dhst[H]=0;for(var H=0;H<19;H++)d.ihst[H]=0;var Y=A<R&&A<G?0:R<G?1:2;if(f(l,u,r),f(l,u+1,Y),u+=3,Y==0){for(;u&7;)u++;u=t.F._copyExact(a,s,c,l,u)}else{var J,nt;if(Y==1&&(J=d.fltree,nt=d.fdtree),Y==2){t.F.makeCodes(d.ltree,g),t.F.revCodes(d.ltree,g),t.F.makeCodes(d.dtree,v),t.F.revCodes(d.dtree,v),t.F.makeCodes(d.itree,_),t.F.revCodes(d.itree,_),J=d.ltree,nt=d.dtree,h(l,u,y-257),u+=5,h(l,u,m-1),u+=5,h(l,u,x-4),u+=4;for(var rt=0;rt<x;rt++)h(l,u+rt*3,d.itree[(d.ordr[rt]<<1)+1]);u+=3*x,u=t.F._codeTiny(N,d.itree,l,u),u=t.F._codeTiny($,d.itree,l,u)}for(var lt=s,xt=0;xt<i;xt+=2){for(var Ct=n[xt],$t=Ct>>>23,at=lt+(Ct&(1<<23)-1);lt<at;)u=t.F._writeLit(a[lt++],J,l,u);if($t!=0){var X=n[xt+1],T=X>>16,E=X>>8&255,k=X&255;u=t.F._writeLit(257+E,J,l,u),h(l,u,$t-d.of0[E]),u+=d.exb[E],u=t.F._writeLit(k,nt,l,u),f(l,u,T-d.df0[k]),u+=d.dxb[k],lt+=$t}}u=t.F._writeLit(256,J,l,u)}return u},t.F._copyExact=function(r,n,i,o,a){var s=a>>>3;return o[s]=i,o[s+1]=i>>>8,o[s+2]=255-o[s],o[s+3]=255-o[s+1],s+=4,o.set(new Uint8Array(r.buffer,n,i),s),a+(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=[],a=t.F._lenCodes(r.ltree,o),s=[],c=t.F._lenCodes(r.dtree,s),l=0;l<o.length;l+=2)r.ihst[o[l]]++;for(var l=0;l<s.length;l+=2)r.ihst[s[l]]++;for(var u=t.F._hufTree(r.ihst,r.itree,7),d=19;d>4&&r.itree[(r.ordr[d-1]<<1)+1]==0;)d--;return[n,i,u,a,c,d,o,s]},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 a=0;a<r.length;a+=2){var s=r[a],c=r[a+1];o=t.F._writeLit(s,n,i,o);var l=s==16?2:s==17?3:7;s>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 a=r[o+1],s=o+3<i?r[o+3]:-1,c=o+5<i?r[o+5]:-1,l=o==0?-1:r[o-1];if(a==0&&s==a&&c==a){for(var u=o+5;u+2<i&&r[u+2]==a;)u+=2;var d=Math.min(u+1-o>>>1,138);d<11?n.push(17,d-3):n.push(18,d-11),o+=d*2-2}else if(a==l&&s==a&&c==a){for(var u=o+5;u+2<i&&r[u+2]==a;)u+=2;var d=Math.min(u+1-o>>>1,6);n.push(16,d-3),o+=d*2-2}else n.push(a,0)}return i>>>1},t.F._hufTree=function(r,n,i){var o=[],a=r.length,s=n.length,c=0;for(c=0;c<s;c+=2)n[c]=0,n[c+1]=0;for(c=0;c<a;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 d=o[0].lit,u=d==0?1:0;return n[(d<<1)+1]=1,n[(u<<1)+1]=1,1}o.sort(function(y,m){return y.f-m.f});var f=o[0],h=o[1],p=0,g=1,v=2;for(o[0]={lit:-1,f:f.f+h.f,l:f,r:h,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)?h=o[p++]:h=o[v++],o[g++]={lit:-1,f:f.f+h.f,l:f,r:h};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,a=1<<i-n,s=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,s+=a-(1<<i-c)}for(s=s>>>i-n;s>0;){var c=r[o].d;c<n?(r[o].d++,s-=1<<n-c-1):o++}for(;o>=0;o--)r[o].d==n&&s<0&&(r[o].d--,s++);s!=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,a=o._bitsF,s=o._bitsE,c=o._decodeTiny,l=o.makeCodes,u=o.codes2map,d=o._get17,f=o.U,h=n==null;h&&(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,A,R;p==0;){if(p=a(r,$,1),g=a(r,$+1,2),$+=3,g==0){$&7&&($+=8-($&7));var G=($>>>3)+4,H=r[G-4]|r[G-3]<<8;h&&(n=t.F._check(n,N+H)),n.set(new i(r.buffer,r.byteOffset+G,H),N),$=G+H<<3,N+=H;continue}if(h&&(n=t.F._check(n,N+(1<<17))),g==1&&(A=f.flmap,R=f.fdmap,m=511,x=31),g==2){v=s(r,$,5)+257,_=s(r,$+5,5)+1,y=s(r,$+10,4)+4,$+=14;for(var Y=0;Y<38;Y+=2)f.itree[Y]=0,f.itree[Y+1]=0;for(var J=1,Y=0;Y<y;Y++){var nt=s(r,$+Y*3,3);f.itree[(f.ordr[Y]<<1)+1]=nt,nt>J&&(J=nt)}$+=3*y,l(f.itree,J),u(f.itree,J,f.imap),A=f.lmap,R=f.dmap,$=c(f.imap,(1<<J)-1,v+_,r,$,f.ttree);var rt=o._copyOut(f.ttree,0,v,f.ltree);m=(1<<rt)-1;var lt=o._copyOut(f.ttree,v,_,f.dtree);x=(1<<lt)-1,l(f.ltree,rt),u(f.ltree,rt,A),l(f.dtree,lt),u(f.dtree,lt,R)}for(;;){var xt=A[d(r,$)&m];$+=xt&15;var Ct=xt>>>4;if(!(Ct>>>8))n[N++]=Ct;else{if(Ct==256)break;var $t=N+Ct-254;if(Ct>264){var at=f.ldef[Ct-257];$t=N+(at>>>3)+s(r,$,at&7),$+=at&7}var X=R[d(r,$)&x];$+=X&15;var T=X>>>4,E=f.ddef[T],k=(E>>>4)+a(r,$,E&15);for($+=E&15,h&&(n=t.F._check(n,N+(1<<17)));N<$t;)n[N]=n[N++-k],n[N]=n[N++-k],n[N]=n[N++-k],n[N]=n[N++-k];N=$t}}}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,a,s){for(var c=t.F._bitsE,l=t.F._get17,u=0;u<i;){var d=r[l(o,a)&n];a+=d&15;var f=d>>>4;if(f<=15)s[u]=f,u++;else{var h=0,p=0;f==16?(p=3+c(o,a,2),a+=2,h=s[u-1]):f==17?(p=3+c(o,a,3),a+=3):f==18&&(p=11+c(o,a,7),a+=7);for(var g=u+p;u<g;)s[u]=h,u++}}return a},t.F._copyOut=function(r,n,i,o){for(var a=0,s=0,c=o.length>>>1;s<i;){var l=r[s+n];o[s<<1]=0,o[(s<<1)+1]=l,l>a&&(a=l),s++}for(;s<c;)o[s<<1]=0,o[(s<<1)+1]=0,s++;return a},t.F.makeCodes=function(r,n){for(var i=t.F.U,o=r.length,a,s,c,d,l,u=i.bl_count,d=0;d<=n;d++)u[d]=0;for(d=1;d<o;d+=2)u[r[d]]++;var f=i.next_code;for(a=0,u[0]=0,s=1;s<=n;s++)a=a+u[s-1]<<1,f[s]=a;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,a=t.F.U,s=a.rev15,c=0;c<o;c+=2)if(r[c+1]!=0)for(var l=c>>1,u=r[c+1],d=l<<4|u,f=n-u,h=r[c]<<f,p=h+(1<<f);h!=p;){var g=s[h]>>>15-n;i[g]=d,h++}},t.F.revCodes=function(r,n){for(var i=t.F.U.rev15,o=15-n,a=0;a<r.length;a+=2){var s=r[a]<<n-r[a+1];r[a]=i[s]>>>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 a(s,c,l){for(;c--!=0;)s.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];a(r.fltree,144,8),a(r.fltree,112,9),a(r.fltree,24,7),a(r.fltree,8,8),t.F.makeCodes(r.fltree,9),t.F.codes2map(r.fltree,9,r.flmap),t.F.revCodes(r.fltree,9),a(r.fdtree,32,5),t.F.makeCodes(r.fdtree,5),t.F.codes2map(r.fdtree,5,r.fdmap),t.F.revCodes(r.fdtree,5),a(r.itree,19,0),a(r.ltree,286,0),a(r.dtree,30,0),a(r.ttree,320,0)}()})(d_);var PA=d_.exports;const f_=un(PA);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const TA=4,p_=0,m_=1,OA=2;function pa(e){let t=e.length;for(;--t>=0;)e[t]=0}const AA=0,g_=1,NA=2,RA=3,jA=258,Df=29,ys=256,_s=ys+1+Df,ma=30,Ff=19,v_=2*_s+1,Eo=15,Mf=16,IA=7,Lf=256,y_=16,__=17,b_=18,Uf=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]),Zc=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]),DA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),w_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),FA=512,wi=new Array((_s+2)*2);pa(wi);const bs=new Array(ma*2);pa(bs);const ws=new Array(FA);pa(ws);const xs=new Array(jA-RA+1);pa(xs);const zf=new Array(Df);pa(zf);const tu=new Array(ma);pa(tu);function Gf(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 x_,S_,$_;function Vf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const k_=e=>e<256?ws[e]:ws[256+(e>>>7)],Ss=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Qr=(e,t,r)=>{e.bi_valid>Mf-r?(e.bi_buf|=t<<e.bi_valid&65535,Ss(e,e.bi_buf),e.bi_buf=t>>Mf-e.bi_valid,e.bi_valid+=r-Mf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},ti=(e,t,r)=>{Qr(e,r[t*2],r[t*2+1])},E_=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},MA=e=>{e.bi_valid===16?(Ss(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)},LA=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,f,h,p,g=0;for(f=0;f<=Eo;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<v_;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]++,h=0,u>=s&&(h=a[u-s]),p=r[u*2],e.opt_len+=p*(f+h),o&&(e.static_len+=p*(i[u*2+1]+h)));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;)d=e.heap[--l],!(d>n)&&(r[d*2+1]!==f&&(e.opt_len+=(f-r[d*2+1])*r[d*2],r[d*2+1]=f),u--)}},C_=(e,t,r)=>{const n=new Array(Eo+1);let i=0,o,a;for(o=1;o<=Eo;o++)i=i+r[o-1]<<1,n[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=E_(n[s]++,s))}},UA=()=>{let e,t,r,n,i;const o=new Array(Eo+1);for(r=0,n=0;n<Df-1;n++)for(zf[n]=r,e=0;e<1<<Uf[n];e++)xs[r++]=n;for(xs[r-1]=n,i=0,n=0;n<16;n++)for(tu[n]=i,e=0;e<1<<Zc[n];e++)ws[i++]=n;for(i>>=7;n<ma;n++)for(tu[n]=i<<7,e=0;e<1<<Zc[n]-7;e++)ws[256+i++]=n;for(t=0;t<=Eo;t++)o[t]=0;for(e=0;e<=143;)wi[e*2+1]=8,e++,o[8]++;for(;e<=255;)wi[e*2+1]=9,e++,o[9]++;for(;e<=279;)wi[e*2+1]=7,e++,o[7]++;for(;e<=287;)wi[e*2+1]=8,e++,o[8]++;for(C_(wi,_s+1,o),e=0;e<ma;e++)bs[e*2+1]=5,bs[e*2]=E_(e,5);x_=new Gf(wi,Uf,ys+1,_s,Eo),S_=new Gf(bs,Zc,0,ma,Eo),$_=new Gf(new Array(0),DA,0,Ff,IA)},P_=e=>{let t;for(t=0;t<_s;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ma;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ff;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Lf*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},T_=e=>{e.bi_valid>8?Ss(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},O_=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},Bf=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&O_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!O_(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},A_=(e,t,r)=>{let n,i,o=0,a,s;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?ti(e,i,t):(a=xs[i],ti(e,a+ys+1,t),s=Uf[a],s!==0&&(i-=zf[a],Qr(e,i,s)),n--,a=k_(n),ti(e,a,r),s=Zc[a],s!==0&&(n-=tu[a],Qr(e,n,s)));while(o<e.sym_next);ti(e,Lf,t)},Hf=(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 a,s,c=-1,l;for(e.heap_len=0,e.heap_max=v_,a=0;a<o;a++)r[a*2]!==0?(e.heap[++e.heap_len]=c=a,e.depth[a]=0):r[a*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,a=e.heap_len>>1;a>=1;a--)Bf(e,r,a);l=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Bf(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,r[l*2]=r[a*2]+r[s*2],e.depth[l]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,r[a*2+1]=r[s*2+1]=l,e.heap[1]=l++,Bf(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],LA(e,t),C_(r,c,e.bl_count)},N_=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,c=7,l=4;for(a===0&&(c=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=a,a=t[(n+1)*2+1],!(++s<c&&o===a)&&(s<l?e.bl_tree[o*2]+=s:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[y_*2]++):s<=10?e.bl_tree[__*2]++:e.bl_tree[b_*2]++,s=0,i=o,a===0?(c=138,l=3):o===a?(c=6,l=3):(c=7,l=4))},R_=(e,t,r)=>{let n,i=-1,o,a=t[0*2+1],s=0,c=7,l=4;for(a===0&&(c=138,l=3),n=0;n<=r;n++)if(o=a,a=t[(n+1)*2+1],!(++s<c&&o===a)){if(s<l)do ti(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==i&&(ti(e,o,e.bl_tree),s--),ti(e,y_,e.bl_tree),Qr(e,s-3,2)):s<=10?(ti(e,__,e.bl_tree),Qr(e,s-3,3)):(ti(e,b_,e.bl_tree),Qr(e,s-11,7));s=0,i=o,a===0?(c=138,l=3):o===a?(c=6,l=3):(c=7,l=4)}},zA=e=>{let t;for(N_(e,e.dyn_ltree,e.l_desc.max_code),N_(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=Ff-1;t>=3&&e.bl_tree[w_[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},GA=(e,t,r,n)=>{let i;for(Qr(e,t-257,5),Qr(e,r-1,5),Qr(e,n-4,4),i=0;i<n;i++)Qr(e,e.bl_tree[w_[i]*2+1],3);R_(e,e.dyn_ltree,t-1),R_(e,e.dyn_dtree,r-1)},VA=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return p_;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return m_;for(r=32;r<ys;r++)if(e.dyn_ltree[r*2]!==0)return m_;return p_};let j_=!1;const BA=e=>{j_||(UA(),j_=!0),e.l_desc=new Vf(e.dyn_ltree,x_),e.d_desc=new Vf(e.dyn_dtree,S_),e.bl_desc=new Vf(e.bl_tree,$_),e.bi_buf=0,e.bi_valid=0,P_(e)},I_=(e,t,r,n)=>{Qr(e,(AA<<1)+(n?1:0),3),T_(e),Ss(e,r),Ss(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},HA=e=>{Qr(e,g_<<1,3),ti(e,Lf,wi),MA(e)},qA=(e,t,r,n)=>{let i,o,a=0;e.level>0?(e.strm.data_type===OA&&(e.strm.data_type=VA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),a=zA(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?I_(e,t,r,n):e.strategy===TA||o===i?(Qr(e,(g_<<1)+(n?1:0),3),A_(e,wi,bs)):(Qr(e,(NA<<1)+(n?1:0),3),GA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),A_(e,e.dyn_ltree,e.dyn_dtree)),P_(e),n&&T_(e)},KA=(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[(xs[r]+ys+1)*2]++,e.dyn_dtree[k_(t)*2]++),e.sym_next===e.sym_end);var YA=BA,XA=I_,WA=qA,JA=KA,QA=HA,ZA={_tr_init:YA,_tr_stored_block:XA,_tr_flush_block:WA,_tr_tally:JA,_tr_align:QA},$s=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;r!==0;){a=r>2e3?2e3:r,r-=a;do i=i+t[n++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0};const t9=()=>{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},e9=new Uint32Array(t9());var wr=(e,t,r,n)=>{const i=e9,o=n+r;e^=-1;for(let a=n;a<o;a++)e=e>>>8^i[(e^t[a])&255];return e^-1},Co={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"},Po={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:r9,_tr_stored_block:qf,_tr_flush_block:n9,_tr_tally:Hi,_tr_align:i9}=ZA,{Z_NO_FLUSH:qi,Z_PARTIAL_FLUSH:o9,Z_FULL_FLUSH:a9,Z_FINISH:wn,Z_BLOCK:D_,Z_OK:Cr,Z_STREAM_END:F_,Z_STREAM_ERROR:ei,Z_DATA_ERROR:s9,Z_BUF_ERROR:Kf,Z_DEFAULT_COMPRESSION:l9,Z_FILTERED:c9,Z_HUFFMAN_ONLY:eu,Z_RLE:u9,Z_FIXED:h9,Z_DEFAULT_STRATEGY:d9,Z_UNKNOWN:f9,Z_DEFLATED:ru}=Po,p9=9,m9=15,g9=8,v9=29,y9=256,Yf=y9+1+v9,_9=30,b9=19,w9=2*Yf+1,x9=15,Se=3,Ki=258,ri=Ki+Se+1,S9=32,ga=42,Xf=57,Wf=69,Jf=73,Qf=91,Zf=103,To=113,ks=666,zr=1,va=2,Oo=3,ya=4,$9=3,Ao=(e,t)=>(e.msg=Co[t],t),M_=e=>e*2-(e>4?9:0),Yi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},k9=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 E9=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,Xi=E9;const hn=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))},dn=(e,t)=>{n9(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,hn(e.strm)},Re=(e,t)=>{e.pending_buf[e.pending++]=t},Es=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},tp=(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=$s(e.adler,t,i,r):e.state.wrap===2&&(e.adler=wr(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},L_=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-ri?e.strstart-(e.w_size-ri):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+Ki;let h=l[n+a-1],p=l[n+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(l[i+a]!==p||l[i+a-1]!==h||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=Ki-(f-n),n=f-Ki,o>a){if(e.match_start=t,a=o,o>=s)break;h=l[n+a-1],p=l[n+a]}}while((t=d[t&u])>c&&--r!==0);return a<=e.lookahead?a:e.lookahead},_a=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ri)&&(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),k9(e),n+=t),e.strm.avail_in===0)break;if(r=tp(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=Se)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Xi(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Xi(e,e.ins_h,e.window[i+Se-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<Se)););}while(e.lookahead<ri&&e.strm.avail_in!==0)},U_=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,a=0,s=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!==wn||t===qi||n!==i+e.strm.avail_in)))break;a=t===wn&&n===i+e.strm.avail_in?1:0,qf(e,0,0,a),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,hn(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&&(tp(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(a===0);return s-=e.strm.avail_in,s&&(s>=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<=s&&(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-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?ya:t!==qi&&t!==wn&&e.strm.avail_in===0&&e.strstart===e.block_start?va:(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&&(tp(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===wn)&&t!==qi&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,a=t===wn&&e.strm.avail_in===0&&n===i?1:0,qf(e,e.block_start,n,a),e.block_start+=n,hn(e.strm)),a?Oo:zr)},ep=(e,t)=>{let r,n;for(;;){if(e.lookahead<ri){if(_a(e),e.lookahead<ri&&t===qi)return zr;if(e.lookahead===0)break}if(r=0,e.lookahead>=Se&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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-ri&&(e.match_length=L_(e,r)),e.match_length>=Se)if(n=Hi(e,e.strstart-e.match_start,e.match_length-Se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Se){e.match_length--;do e.strstart++,e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Xi(e,e.ins_h,e.window[e.strstart+1]);else n=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=e.strstart<Se-1?e.strstart:Se-1,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},ba=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<ri){if(_a(e),e.lookahead<ri&&t===qi)return zr;if(e.lookahead===0)break}if(r=0,e.lookahead>=Se&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Se-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-ri&&(e.match_length=L_(e,r),e.match_length<=5&&(e.strategy===c9||e.match_length===Se&&e.strstart-e.match_start>4096)&&(e.match_length=Se-1)),e.prev_length>=Se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Se,n=Hi(e,e.strstart-1-e.prev_match,e.prev_length-Se),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Xi(e,e.ins_h,e.window[e.strstart+Se-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=Se-1,e.strstart++,n&&(dn(e,!1),e.strm.avail_out===0))return zr}else if(e.match_available){if(n=Hi(e,0,e.window[e.strstart-1]),n&&dn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return zr}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Hi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Se-1?e.strstart:Se-1,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},C9=(e,t)=>{let r,n,i,o;const a=e.window;for(;;){if(e.lookahead<=Ki){if(_a(e),e.lookahead<=Ki&&t===qi)return zr;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Se&&e.strstart>0&&(i=e.strstart-1,n=a[i],n===a[++i]&&n===a[++i]&&n===a[++i])){o=e.strstart+Ki;do;while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);e.match_length=Ki-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Se?(r=Hi(e,1,e.match_length-Se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=0,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va},P9=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(_a(e),e.lookahead===0)){if(t===qi)return zr;break}if(e.match_length=0,r=Hi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(dn(e,!1),e.strm.avail_out===0))return zr}return e.insert=0,t===wn?(dn(e,!0),e.strm.avail_out===0?Oo:ya):e.sym_next&&(dn(e,!1),e.strm.avail_out===0)?zr:va};function ni(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 Cs=[new ni(0,0,0,0,U_),new ni(4,4,8,4,ep),new ni(4,5,16,8,ep),new ni(4,6,32,32,ep),new ni(4,4,16,16,ba),new ni(8,16,32,32,ba),new ni(8,16,128,128,ba),new ni(8,32,128,256,ba),new ni(32,128,258,1024,ba),new ni(32,258,258,4096,ba)],T9=e=>{e.window_size=2*e.w_size,Yi(e.head),e.max_lazy_match=Cs[e.level].max_lazy,e.good_match=Cs[e.level].good_length,e.nice_match=Cs[e.level].nice_length,e.max_chain_length=Cs[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Se-1,e.match_available=0,e.ins_h=0};function O9(){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=ru,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(w9*2),this.dyn_dtree=new Uint16Array((2*_9+1)*2),this.bl_tree=new Uint16Array((2*b9+1)*2),Yi(this.dyn_ltree),Yi(this.dyn_dtree),Yi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(x9+1),this.heap=new Uint16Array(2*Yf+1),Yi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Yf+1),Yi(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 Ps=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ga&&t.status!==Xf&&t.status!==Wf&&t.status!==Jf&&t.status!==Qf&&t.status!==Zf&&t.status!==To&&t.status!==ks?1:0},z_=e=>{if(Ps(e))return Ao(e,ei);e.total_in=e.total_out=0,e.data_type=f9;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Xf:t.wrap?ga:To,e.adler=t.wrap===2?0:1,t.last_flush=-2,r9(t),Cr},G_=e=>{const t=z_(e);return t===Cr&&T9(e.state),t},A9=(e,t)=>Ps(e)||e.state.wrap!==2?ei:(e.state.gzhead=t,Cr),V_=(e,t,r,n,i,o)=>{if(!e)return ei;let a=1;if(t===l9&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>p9||r!==ru||n<8||n>15||t<0||t>9||o<0||o>h9||n===8&&a!==1)return Ao(e,ei);n===8&&(n=9);const s=new O9;return e.state=s,s.strm=e,s.status=ga,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+Se-1)/Se),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=o,s.method=r,G_(e)},N9=(e,t)=>V_(e,t,ru,m9,g9,d9),R9=(e,t)=>{if(Ps(e)||t>D_||t<0)return e?Ao(e,ei):ei;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===ks&&t!==wn)return Ao(e,e.avail_out===0?Kf:ei);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(hn(e),e.avail_out===0)return r.last_flush=-1,Cr}else if(e.avail_in===0&&M_(t)<=M_(n)&&t!==wn)return Ao(e,Kf);if(r.status===ks&&e.avail_in!==0)return Ao(e,Kf);if(r.status===ga&&r.wrap===0&&(r.status=To),r.status===ga){let i=ru+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=eu||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=S9),i+=31-i%31,Es(r,i),r.strstart!==0&&(Es(r,e.adler>>>16),Es(r,e.adler&65535)),e.adler=1,r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===Xf){if(e.adler=0,Re(r,31),Re(r,139),Re(r,8),r.gzhead)Re(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)),Re(r,r.gzhead.time&255),Re(r,r.gzhead.time>>8&255),Re(r,r.gzhead.time>>16&255),Re(r,r.gzhead.time>>24&255),Re(r,r.level===9?2:r.strategy>=eu||r.level<2?4:0),Re(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Re(r,r.gzhead.extra.length&255),Re(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=wr(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Wf;else if(Re(r,0),Re(r,0),Re(r,0),Re(r,0),Re(r,0),Re(r,r.level===9?2:r.strategy>=eu||r.level<2?4:0),Re(r,$9),r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===Wf){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 s=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=s,hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0,o-=s}let a=new Uint8Array(r.gzhead.extra);r.pending_buf.set(a.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Jf}if(r.status===Jf){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=wr(e.adler,r.pending_buf,r.pending-i,i)),hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0}r.gzindex<r.gzhead.name.length?o=r.gzhead.name.charCodeAt(r.gzindex++)&255:o=0,Re(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Qf}if(r.status===Qf){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=wr(e.adler,r.pending_buf,r.pending-i,i)),hn(e),r.pending!==0)return r.last_flush=-1,Cr;i=0}r.gzindex<r.gzhead.comment.length?o=r.gzhead.comment.charCodeAt(r.gzindex++)&255:o=0,Re(r,o)}while(o!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i))}r.status=Zf}if(r.status===Zf){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(hn(e),r.pending!==0))return r.last_flush=-1,Cr;Re(r,e.adler&255),Re(r,e.adler>>8&255),e.adler=0}if(r.status=To,hn(e),r.pending!==0)return r.last_flush=-1,Cr}if(e.avail_in!==0||r.lookahead!==0||t!==qi&&r.status!==ks){let i=r.level===0?U_(r,t):r.strategy===eu?P9(r,t):r.strategy===u9?C9(r,t):Cs[r.level].func(r,t);if((i===Oo||i===ya)&&(r.status=ks),i===zr||i===Oo)return e.avail_out===0&&(r.last_flush=-1),Cr;if(i===va&&(t===o9?i9(r):t!==D_&&(qf(r,0,0,!1),t===a9&&(Yi(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),hn(e),e.avail_out===0))return r.last_flush=-1,Cr}return t!==wn?Cr:r.wrap<=0?F_:(r.wrap===2?(Re(r,e.adler&255),Re(r,e.adler>>8&255),Re(r,e.adler>>16&255),Re(r,e.adler>>24&255),Re(r,e.total_in&255),Re(r,e.total_in>>8&255),Re(r,e.total_in>>16&255),Re(r,e.total_in>>24&255)):(Es(r,e.adler>>>16),Es(r,e.adler&65535)),hn(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Cr:F_)},j9=e=>{if(Ps(e))return ei;const t=e.state.status;return e.state=null,t===To?Ao(e,s9):Cr},I9=(e,t)=>{let r=t.length;if(Ps(e))return ei;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==ga||n.lookahead)return ei;if(i===1&&(e.adler=$s(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(Yi(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,a=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,_a(n);n.lookahead>=Se;){let c=n.strstart,l=n.lookahead-(Se-1);do n.ins_h=Xi(n,n.ins_h,n.window[c+Se-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=Se-1,_a(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Se-1,n.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,n.wrap=i,Cr};var D9=N9,F9=V_,M9=G_,L9=z_,U9=A9,z9=R9,G9=j9,V9=I9,B9="pako deflate (from Nodeca project)",Ts={deflateInit:D9,deflateInit2:F9,deflateReset:M9,deflateResetKeep:L9,deflateSetHeader:U9,deflate:z9,deflateEnd:G9,deflateSetDictionary:V9,deflateInfo:B9};const H9=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var q9=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)H9(r,n)&&(e[n]=r[n])}}return e},K9=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 a=e[n];r.set(a,i),i+=a.length}return r},nu={assign:q9,flattenChunks:K9};let B_=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{B_=!1}const Os=new Uint8Array(256);for(let e=0;e<256;e++)Os[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Os[254]=Os[254]=1;var Y9=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,a=e.length,s=0;for(i=0;i<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<a&&(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 X9=(e,t)=>{if(t<65534&&e.subarray&&B_)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 W9=(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 a=e[n++];if(a<128){o[i++]=a;continue}let s=Os[a];if(s>4){o[i++]=65533,n+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&n<r;)a=a<<6|e[n++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return X9(o,i)},J9=(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+Os[e[r]]>t?r:t},As={string2buf:Y9,buf2string:W9,utf8border:J9};function Q9(){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 H_=Q9;const q_=Object.prototype.toString,{Z_NO_FLUSH:Z9,Z_SYNC_FLUSH:tN,Z_FULL_FLUSH:eN,Z_FINISH:rN,Z_OK:iu,Z_STREAM_END:nN,Z_DEFAULT_COMPRESSION:iN,Z_DEFAULT_STRATEGY:oN,Z_DEFLATED:aN}=Po;function Ns(e){this.options=nu.assign({level:iN,method:aN,chunkSize:16384,windowBits:15,memLevel:8,strategy:oN},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 H_,this.strm.avail_out=0;let r=Ts.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==iu)throw new Error(Co[r]);if(t.header&&Ts.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=As.string2buf(t.dictionary):q_.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=Ts.deflateSetDictionary(this.strm,n),r!==iu)throw new Error(Co[r]);this._dict_set=!0}}Ns.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?rN:Z9,typeof e=="string"?r.input=As.string2buf(e):q_.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===tN||o===eN)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=Ts.deflate(r,o),i===nN)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Ts.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===iu;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},Ns.prototype.onData=function(e){this.chunks.push(e)},Ns.prototype.onEnd=function(e){e===iu&&(this.result=nu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rp(e,t){const r=new Ns(t);if(r.push(e,!0),r.err)throw r.msg||Co[r.err];return r.result}function sN(e,t){return t=t||{},t.raw=!0,rp(e,t)}function lN(e,t){return t=t||{},t.gzip=!0,rp(e,t)}var cN=Ns,uN=rp,hN=sN,dN=lN,fN=Po,pN={Deflate:cN,deflate:uN,deflateRaw:hN,gzip:dN,constants:fN};const ou=16209,mN=16191;var gN=function(e,t){let r,n,i,o,a,s,c,l,u,d,f,h,p,g,v,_,y,m,x,N,$,A,R,G;const H=e.state;r=e.next_in,R=e.input,n=r+(e.avail_in-5),i=e.next_out,G=e.output,o=i-(t-e.avail_out),a=i+(e.avail_out-257),s=H.dmax,c=H.wsize,l=H.whave,u=H.wnext,d=H.window,f=H.hold,h=H.bits,p=H.lencode,g=H.distcode,v=(1<<H.lenbits)-1,_=(1<<H.distbits)-1;t:do{h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),y=p[f&v];e:for(;;){if(m=y>>>24,f>>>=m,h-=m,m=y>>>16&255,m===0)G[i++]=y&65535;else if(m&16){x=y&65535,m&=15,m&&(h<m&&(f+=R[r++]<<h,h+=8),x+=f&(1<<m)-1,f>>>=m,h-=m),h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),y=g[f&_];r:for(;;){if(m=y>>>24,f>>>=m,h-=m,m=y>>>16&255,m&16){if(N=y&65535,m&=15,h<m&&(f+=R[r++]<<h,h+=8,h<m&&(f+=R[r++]<<h,h+=8)),N+=f&(1<<m)-1,N>s){e.msg="invalid distance too far back",H.mode=ou;break t}if(f>>>=m,h-=m,m=i-o,N>m){if(m=N-m,m>l&&H.sane){e.msg="invalid distance too far back",H.mode=ou;break t}if($=0,A=d,u===0){if($+=c-m,m<x){x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}}else if(u<m){if($+=c+u-m,m-=u,m<x){x-=m;do G[i++]=d[$++];while(--m);if($=0,u<x){m=u,x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}}}else if($+=u-m,m<x){x-=m;do G[i++]=d[$++];while(--m);$=i-N,A=G}for(;x>2;)G[i++]=A[$++],G[i++]=A[$++],G[i++]=A[$++],x-=3;x&&(G[i++]=A[$++],x>1&&(G[i++]=A[$++]))}else{$=i-N;do G[i++]=G[$++],G[i++]=G[$++],G[i++]=G[$++],x-=3;while(x>2);x&&(G[i++]=G[$++],x>1&&(G[i++]=G[$++]))}}else if(m&64){e.msg="invalid distance code",H.mode=ou;break t}else{y=g[(y&65535)+(f&(1<<m)-1)];continue r}break}}else if(m&64)if(m&32){H.mode=mN;break t}else{e.msg="invalid literal/length code",H.mode=ou;break t}else{y=p[(y&65535)+(f&(1<<m)-1)];continue e}break}}while(r<n&&i<a);x=h>>3,r-=x,h-=x<<3,f&=(1<<h)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<a?257+(a-i):257-(i-a),H.hold=f,H.bits=h};const wa=15,K_=852,Y_=592,X_=0,np=1,W_=2,vN=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]),yN=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]),_N=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]),bN=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 Rs=(e,t,r,n,i,o,a,s)=>{const c=s.bits;let l=0,u=0,d=0,f=0,h=0,p=0,g=0,v=0,_=0,y=0,m,x,N,$,A,R=null,G;const H=new Uint16Array(wa+1),Y=new Uint16Array(wa+1);let J=null,nt,rt,lt;for(l=0;l<=wa;l++)H[l]=0;for(u=0;u<n;u++)H[t[r+u]]++;for(h=c,f=wa;f>=1&&H[f]===0;f--);if(h>f&&(h=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d<f&&H[d]===0;d++);for(h<d&&(h=d),v=1,l=1;l<=wa;l++)if(v<<=1,v-=H[l],v<0)return-1;if(v>0&&(e===X_||f!==1))return-1;for(Y[1]=0,l=1;l<wa;l++)Y[l+1]=Y[l]+H[l];for(u=0;u<n;u++)t[r+u]!==0&&(a[Y[t[r+u]]++]=u);if(e===X_?(R=J=a,G=20):e===np?(R=vN,J=yN,G=257):(R=_N,J=bN,G=0),y=0,u=0,l=d,A=o,p=h,g=0,N=-1,_=1<<h,$=_-1,e===np&&_>K_||e===W_&&_>Y_)return 1;for(;;){nt=l-g,a[u]+1<G?(rt=0,lt=a[u]):a[u]>=G?(rt=J[a[u]-G],lt=R[a[u]-G]):(rt=96,lt=0),m=1<<l-g,x=1<<p,d=x;do x-=m,i[A+(y>>g)+x]=nt<<24|rt<<16|lt|0;while(x!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,u++,--H[l]===0){if(l===f)break;l=t[r+a[u]]}if(l>h&&(y&$)!==N){for(g===0&&(g=h),A+=d,p=l-g,v=1<<p;p+g<f&&(v-=H[p+g],!(v<=0));)p++,v<<=1;if(_+=1<<p,e===np&&_>K_||e===W_&&_>Y_)return 1;N=y&$,i[N]=h<<24|p<<16|A-o|0}}return y!==0&&(i[A+y]=l-g<<24|64<<16|0),s.bits=h,0};const wN=0,J_=1,Q_=2,{Z_FINISH:Z_,Z_BLOCK:xN,Z_TREES:au,Z_OK:No,Z_STREAM_END:SN,Z_NEED_DICT:$N,Z_STREAM_ERROR:Mn,Z_DATA_ERROR:tb,Z_MEM_ERROR:eb,Z_BUF_ERROR:kN,Z_DEFLATED:rb}=Po,su=16180,nb=16181,ib=16182,ob=16183,ab=16184,sb=16185,lb=16186,cb=16187,ub=16188,hb=16189,lu=16190,xi=16191,ip=16192,db=16193,op=16194,fb=16195,pb=16196,mb=16197,gb=16198,cu=16199,uu=16200,vb=16201,yb=16202,_b=16203,bb=16204,wb=16205,ap=16206,xb=16207,Sb=16208,tr=16209,$b=16210,kb=16211,EN=852,CN=592,PN=15,TN=PN,Eb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ON(){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 Ro=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<su||t.mode>kb?1:0},Cb=e=>{if(Ro(e))return Mn;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=su,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(EN),t.distcode=t.distdyn=new Int32Array(CN),t.sane=1,t.back=-1,No},Pb=e=>{if(Ro(e))return Mn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Cb(e)},Tb=(e,t)=>{let r;if(Ro(e))return Mn;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Mn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,Pb(e))},Ob=(e,t)=>{if(!e)return Mn;const r=new ON;e.state=r,r.strm=e,r.window=null,r.mode=su;const n=Tb(e,t);return n!==No&&(e.state=null),n},AN=e=>Ob(e,TN);let Ab=!0,sp,lp;const NN=e=>{if(Ab){sp=new Int32Array(512),lp=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(Rs(J_,e.lens,0,288,sp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Rs(Q_,e.lens,0,32,lp,0,e.work,{bits:5}),Ab=!1}e.lencode=sp,e.lenbits=9,e.distcode=lp,e.distbits=5},Nb=(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},RN=(e,t)=>{let r,n,i,o,a,s,c,l,u,d,f,h,p,g,v=0,_,y,m,x,N,$,A,R;const G=new Uint8Array(4);let H,Y;const J=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ro(e)||!e.output||!e.input&&e.avail_in!==0)return Mn;r=e.state,r.mode===xi&&(r.mode=ip),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,d=s,f=c,R=No;t:for(;;)switch(r.mode){case su:if(r.wrap===0){r.mode=ip;break}for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0),l=0,u=0,r.mode=nb;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=tr;break}if((l&15)!==rb){e.msg="unknown compression method",r.mode=tr;break}if(l>>>=4,u-=4,A=(l&15)+8,r.wbits===0&&(r.wbits=A),A>15||A>r.wbits){e.msg="invalid window size",r.mode=tr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?hb:xi,l=0,u=0;break;case nb:for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==rb){e.msg="unknown compression method",r.mode=tr;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=tr;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0,r.mode=ib;case ib:for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,G[2]=l>>>16&255,G[3]=l>>>24&255,r.check=wr(r.check,G,4,0)),l=0,u=0,r.mode=ob;case ob:for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0,r.mode=ab;case ab:if(r.flags&1024){for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(G[0]=l&255,G[1]=l>>>8&255,r.check=wr(r.check,G,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=sb;case sb:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(A=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+h),A)),r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,r.length-=h),r.length))break t;r.length=0,r.mode=lb;case lb:if(r.flags&2048){if(s===0)break t;h=0;do A=n[o+h++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A));while(A&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,A)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=cb;case cb:if(r.flags&4096){if(s===0)break t;h=0;do A=n[o+h++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A));while(A&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),s-=h,o+=h,A)break t}else r.head&&(r.head.comment=null);r.mode=ub;case ub:if(r.flags&512){for(;u<16;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=tr;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=xi;break;case hb:for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}e.adler=r.check=Eb(l),l=0,u=0,r.mode=lu;case lu:if(r.havedict===0)return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,$N;e.adler=r.check=1,r.mode=xi;case xi:if(t===xN||t===au)break t;case ip:if(r.last){l>>>=u&7,u-=u&7,r.mode=ap;break}for(;u<3;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=db;break;case 1:if(NN(r),r.mode=cu,t===au){l>>>=2,u-=2;break t}break;case 2:r.mode=pb;break;case 3:e.msg="invalid block type",r.mode=tr}l>>>=2,u-=2;break;case db:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=tr;break}if(r.length=l&65535,l=0,u=0,r.mode=op,t===au)break t;case op:r.mode=fb;case fb:if(h=r.length,h){if(h>s&&(h=s),h>c&&(h=c),h===0)break t;i.set(n.subarray(o,o+h),a),s-=h,o+=h,c-=h,a+=h,r.length-=h;break}r.mode=xi;break;case pb:for(;u<14;){if(s===0)break t;s--,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=tr;break}r.have=0,r.mode=mb;case mb:for(;r.have<r.ncode;){for(;u<3;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}r.lens[J[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[J[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,H={bits:r.lenbits},R=Rs(wN,r.lens,0,19,r.lencode,0,r.work,H),r.lenbits=H.bits,R){e.msg="invalid code lengths set",r.mode=tr;break}r.have=0,r.mode=gb;case gb: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(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(m<16)l>>>=_,u-=_,r.lens[r.have++]=m;else{if(m===16){for(Y=_+2;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(l>>>=_,u-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=tr;break}A=r.lens[r.have-1],h=3+(l&3),l>>>=2,u-=2}else if(m===17){for(Y=_+3;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,A=0,h=3+(l&7),l>>>=3,u-=3}else{for(Y=_+7;u<Y;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}l>>>=_,u-=_,A=0,h=11+(l&127),l>>>=7,u-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=tr;break}for(;h--;)r.lens[r.have++]=A}}if(r.mode===tr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=tr;break}if(r.lenbits=9,H={bits:r.lenbits},R=Rs(J_,r.lens,0,r.nlen,r.lencode,0,r.work,H),r.lenbits=H.bits,R){e.msg="invalid literal/lengths set",r.mode=tr;break}if(r.distbits=6,r.distcode=r.distdyn,H={bits:r.distbits},R=Rs(Q_,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,H),r.distbits=H.bits,R){e.msg="invalid distances set",r.mode=tr;break}if(r.mode=cu,t===au)break t;case cu:r.mode=uu;case uu:if(s>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,gN(e,f),a=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,l=r.hold,u=r.bits,r.mode===xi&&(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(s===0)break t;s--,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(s===0)break t;s--,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=wb;break}if(y&32){r.back=-1,r.mode=xi;break}if(y&64){e.msg="invalid literal/length code",r.mode=tr;break}r.extra=y&15,r.mode=vb;case vb:if(r.extra){for(Y=r.extra;u<Y;){if(s===0)break t;s--,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=yb;case yb:for(;v=r.distcode[l&(1<<r.distbits)-1],_=v>>>24,y=v>>>16&255,m=v&65535,!(_<=u);){if(s===0)break t;s--,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(s===0)break t;s--,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=tr;break}r.offset=m,r.extra=y&15,r.mode=_b;case _b:if(r.extra){for(Y=r.extra;u<Y;){if(s===0)break t;s--,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=tr;break}r.mode=bb;case bb:if(c===0)break t;if(h=f-c,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=tr;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),g=r.window}else g=i,p=a-r.offset,h=r.length;h>c&&(h=c),c-=h,r.length-=h;do i[a++]=g[p++];while(--h);r.length===0&&(r.mode=uu);break;case wb:if(c===0)break t;i[a++]=r.length,c--,r.mode=uu;break;case ap:if(r.wrap){for(;u<32;){if(s===0)break t;s--,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?wr(r.check,i,f,a-f):$s(r.check,i,f,a-f)),f=c,r.wrap&4&&(r.flags?l:Eb(l))!==r.check){e.msg="incorrect data check",r.mode=tr;break}l=0,u=0}r.mode=xb;case xb:if(r.wrap&&r.flags){for(;u<32;){if(s===0)break t;s--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=tr;break}l=0,u=0}r.mode=Sb;case Sb:R=SN;break t;case tr:R=tb;break t;case $b:return eb;case kb:default:return Mn}return e.next_out=a,e.avail_out=c,e.next_in=o,e.avail_in=s,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<tr&&(r.mode<ap||t!==Z_))&&Nb(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?wr(r.check,i,f,e.next_out-f):$s(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===xi?128:0)+(r.mode===cu||r.mode===op?256:0),(d===0&&f===0||t===Z_)&&R===No&&(R=kN),R},jN=e=>{if(Ro(e))return Mn;let t=e.state;return t.window&&(t.window=null),e.state=null,No},IN=(e,t)=>{if(Ro(e))return Mn;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,No):Mn},DN=(e,t)=>{const r=t.length;let n,i,o;return Ro(e)||(n=e.state,n.wrap!==0&&n.mode!==lu)?Mn:n.mode===lu&&(i=1,i=$s(i,t,r,0),i!==n.check)?tb:(o=Nb(e,t,r,r),o?(n.mode=$b,eb):(n.havedict=1,No))};var FN=Pb,MN=Tb,LN=Cb,UN=AN,zN=Ob,GN=RN,VN=jN,BN=IN,HN=DN,qN="pako inflate (from Nodeca project)",Si={inflateReset:FN,inflateReset2:MN,inflateResetKeep:LN,inflateInit:UN,inflateInit2:zN,inflate:GN,inflateEnd:VN,inflateGetHeader:BN,inflateSetDictionary:HN,inflateInfo:qN};function KN(){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 YN=KN;const Rb=Object.prototype.toString,{Z_NO_FLUSH:XN,Z_FINISH:WN,Z_OK:js,Z_STREAM_END:cp,Z_NEED_DICT:up,Z_STREAM_ERROR:JN,Z_DATA_ERROR:jb,Z_MEM_ERROR:QN}=Po;function Is(e){this.options=nu.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 H_,this.strm.avail_out=0;let r=Si.inflateInit2(this.strm,t.windowBits);if(r!==js)throw new Error(Co[r]);if(this.header=new YN,Si.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=As.string2buf(t.dictionary):Rb.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Si.inflateSetDictionary(this.strm,t.dictionary),r!==js)))throw new Error(Co[r])}Is.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?WN:XN,Rb.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=Si.inflate(r,a),o===up&&i&&(o=Si.inflateSetDictionary(r,i),o===js?o=Si.inflate(r,a):o===jb&&(o=up));r.avail_in>0&&o===cp&&r.state.wrap>0&&e[r.next_in]!==0;)Si.inflateReset(r),o=Si.inflate(r,a);switch(o){case JN:case jb:case up:case QN:return this.onEnd(o),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||o===cp))if(this.options.to==="string"){let c=As.utf8border(r.output,r.next_out),l=r.next_out-c,u=As.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===js&&s===0)){if(o===cp)return o=Si.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},Is.prototype.onData=function(e){this.chunks.push(e)},Is.prototype.onEnd=function(e){e===js&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=nu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function hp(e,t){const r=new Is(t);if(r.push(e),r.err)throw r.msg||Co[r.err];return r.result}function ZN(e,t){return t=t||{},t.raw=!0,hp(e,t)}var t7=Is,e7=hp,r7=ZN,n7=hp,i7=Po,o7={Inflate:t7,inflate:e7,inflateRaw:r7,ungzip:n7,constants:i7};const{Deflate:a7,deflate:s7,deflateRaw:l7,gzip:c7}=pN,{Inflate:u7,inflate:h7,inflateRaw:d7,ungzip:f7}=o7;var p7=a7,m7=s7,g7=l7,v7=c7,y7=u7,_7=h7,b7=d7,w7=f7,x7=Po,S7={Deflate:p7,deflate:m7,deflateRaw:g7,gzip:v7,Inflate:y7,inflate:_7,inflateRaw:b7,ungzip:w7,constants:x7};const St={};St.toRGBA8=function(e){const t=e.width,r=e.height;if(e.tabs.acTL===null)return[St.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),a=new Uint8Array(i),s=new Uint8Array(i);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],u=l.rect.x,d=l.rect.y,f=l.rect.width,h=l.rect.height,p=St.toRGBA8.decodeImage(l.data,f,h,e);if(c!==0)for(let g=0;g<i;g++)s[g]=o[g];if(l.blend===0?St._copyTile(p,f,h,o,t,r,u,d,0):l.blend===1&&St._copyTile(p,f,h,o,t,r,u,d,1),n.push(o.buffer.slice(0)),l.dispose===1)St._copyTile(a,f,h,o,t,r,u,d,0);else if(l.dispose===2)for(let g=0;g<i;g++)o[g]=s[g]}return n},St.toRGBA8.decodeImage=function(e,t,r,n){const i=t*r,o=St.decode._getBPP(n),a=Math.ceil(t*o/8),s=new Uint8Array(i*4),c=new Uint32Array(s.buffer),l=n.ctype,u=n.depth,d=St._bin.readUshort;if(l===6){const f=i<<2;if(u===8)for(let h=0;h<f;h+=4)s[h]=e[h],s[h+1]=e[h+1],s[h+2]=e[h+2],s[h+3]=e[h+3];if(u===16)for(let h=0;h<f;h++)s[h]=e[h<<1]}else if(l===2){const f=n.tabs.tRNS;if(f===null){if(u===8)for(let h=0;h<i;h++){const p=h*3;c[h]=255<<24|e[p+2]<<16|e[p+1]<<8|e[p]}if(u===16)for(let h=0;h<i;h++){const p=h*6;c[h]=255<<24|e[p+4]<<16|e[p+2]<<8|e[p]}}else{const h=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]===h&&e[y+1]===p&&e[y+2]===g&&(s[_+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],d(e,y)===h&&d(e,y+2)===p&&d(e,y+4)===g&&(s[_+3]=0)}}}else if(l===3){const f=n.tabs.PLTE,h=n.tabs.tRNS,p=h?h.length:0;if(u===1)for(let g=0;g<r;g++){const v=g*a,_=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;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===2)for(let g=0;g<r;g++){const v=g*a,_=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;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===4)for(let g=0;g<r;g++){const v=g*a,_=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;s[m]=f[N],s[m+1]=f[N+1],s[m+2]=f[N+2],s[m+3]=x<p?h[x]:255}}if(u===8)for(let g=0;g<i;g++){const v=g<<2,_=e[g],y=3*_;s[v]=f[y],s[v+1]=f[y+1],s[v+2]=f[y+2],s[v+3]=_<p?h[_]:255}}else if(l===4){if(u===8)for(let f=0;f<i;f++){const h=f<<2,p=f<<1,g=e[p];s[h]=g,s[h+1]=g,s[h+2]=g,s[h+3]=e[p+1]}if(u===16)for(let f=0;f<i;f++){const h=f<<2,p=f<<2,g=e[p];s[h]=g,s[h+1]=g,s[h+2]=g,s[h+3]=e[p+2]}}else if(l===0){const f=n.tabs.tRNS?n.tabs.tRNS:-1;for(let h=0;h<r;h++){const p=h*a,g=h*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=d(e,p+(v<<1))===f?0:255;c[g+v]=y<<24|_<<16|_<<8|_}}}return s},St.decode=function(e){const t=new Uint8Array(e);let r=8;const n=St._bin,i=n.readUshort,o=n.readUint,a={tabs:{},frames:[]},s=new Uint8Array(t.length);let c=0,l,u=0;const d=[137,80,78,71,13,10,26,10];for(let f=0;f<8;f++)if(t[f]!==d[f])throw"The input is not a PNG file!";for(;r<t.length;){const f=n.readUint(t,r);r+=4;const h=n.readASCII(t,r,4);if(r+=4,h==="IHDR")St.decode._IHDR(t,r,a);else if(h==="CgBI")a.tabs[h]=t.slice(r,r+4);else if(h==="IDAT"){for(let p=0;p<f;p++)s[c+p]=t[r+p];c+=f}else if(h==="acTL")a.tabs[h]={num_frames:o(t,r),num_plays:o(t,r+4)},l=new Uint8Array(t.length);else if(h==="fcTL"){if(u!==0){const _=a.frames[a.frames.length-1];_.data=St.decode._decompress(a,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]};a.frames.push(v)}else if(h==="fdAT"){for(let p=0;p<f-4;p++)l[u+p]=t[r+p+4];u+=f-4}else if(h==="pHYs")a.tabs[h]=[n.readUint(t,r),n.readUint(t,r+4),t[r+8]];else if(h==="cHRM"){a.tabs[h]=[];for(let p=0;p<8;p++)a.tabs[h].push(n.readUint(t,r+p*4))}else if(h==="tEXt"||h==="zTXt"){a.tabs[h]===null&&(a.tabs[h]={});const p=n.nextZero(t,r),g=n.readASCII(t,r,p-r);let v;const _=r+f-p-1;if(h==="tEXt")v=n.readASCII(t,p+1,_);else{const y=St.decode._inflate(t.slice(p+2,p+2+_));v=n.readUTF8(y,0,y.length)}a.tabs[h][g]=v}else if(h==="iTXt"){a.tabs[h]==null&&(a.tabs[h]={});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=St.decode._inflate(t.slice(g,g+m));y=n.readUTF8(x,0,x.length)}a.tabs[h][v]=y}else if(h==="PLTE")a.tabs[h]=n.readBytes(t,r,f);else if(h==="hIST"){const p=a.tabs.PLTE.length/3;a.tabs[h]=[];for(let g=0;g<p;g++)a.tabs[h].push(i(t,r+g*2))}else if(h==="tRNS")a.ctype===3?a.tabs[h]=n.readBytes(t,r,f):a.ctype===0?a.tabs[h]=i(t,r):a.ctype===2&&(a.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]);else if(h==="gAMA")a.tabs[h]=n.readUint(t,r)/1e5;else if(h==="sRGB")a.tabs[h]=t[r];else if(h==="bKGD")a.ctype===0||a.ctype===4?a.tabs[h]=[i(t,r)]:a.ctype===2||a.ctype===6?a.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]:a.ctype===3&&(a.tabs[h]=t[r]);else if(h==="IEND")break;r+=f,r+=4}if(u!==0){const f=a.frames[a.frames.length-1];f.data=St.decode._decompress(a,l.slice(0,u),f.rect.width,f.rect.height),u=0}return a.data=St.decode._decompress(a,s,a.width,a.height),delete a.compress,delete a.interlace,delete a.filter,a},St.decode._decompress=function(e,t,r,n){const i=St.decode._getBPP(e),o=Math.ceil(r*i/8),a=new Uint8Array((o+1+e.interlace)*n);return e.tabs.CgBI?t=St.inflateRaw(t,a):t=St.decode._inflate(t,a),e.interlace===0?t=St.decode._filterZero(t,e,0,r,n):e.interlace===1&&(t=St.decode._readInterlace(t,e)),t},St.decode._inflate=function(e,t){return St.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t)},St.inflateRaw=function(){const e={};return e.H={},e.H.N=function(t,r){const n=Uint8Array;let i=0,o=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h,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,A=r===null;for(A&&(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 R=(f>>>3)+4,G=t[R-4]|t[R-3]<<8;A&&(r=e.H.W(r,d+G)),r.set(new n(t.buffer,t.byteOffset+R,G),d),f=R+G<<3,d+=G;continue}if(A&&(r=e.H.W(r,d+(1<<17))),o===1&&(h=$.J,p=$.h,l=511,u=31),o===2){a=_(t,f,5)+257,s=_(t,f+5,5)+1,c=_(t,f+10,4)+4,f+=14;let R=1;for(let Y=0;Y<38;Y+=2)$.Q[Y]=0,$.Q[Y+1]=0;for(let Y=0;Y<c;Y++){const J=_(t,f+Y*3,3);$.Q[($.X[Y]<<1)+1]=J,J>R&&(R=J)}f+=3*c,m($.Q,R),x($.Q,R,$.u),h=$.w,p=$.d,f=y($.u,(1<<R)-1,a+s,t,f,$.v);const G=g.V($.v,0,a,$.C);l=(1<<G)-1;const H=g.V($.v,a,s,$.D);u=(1<<H)-1,m($.C,G),x($.C,G,h),m($.D,H),x($.D,H,p)}for(;;){const R=h[N(t,f)&l];f+=R&15;const G=R>>>4;if(!(G>>>8))r[d++]=G;else{if(G===256)break;{let H=d+G-254;if(G>264){const lt=$.q[G-257];H=d+(lt>>>3)+_(t,f,lt&7),f+=lt&7}const Y=p[N(t,f)&u];f+=Y&15;const J=Y>>>4,nt=$.c[J],rt=(nt>>>4)+v(t,f,nt&15);for(f+=nt&15;d<H;)r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt];d=H}}}}return r.length===d?r:r.slice(0,d)},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,a){const s=e.H.e,c=e.H.Z;let l=0;for(;l<n;){const u=t[c(i,o)&r];o+=u&15;const d=u>>>4;if(d<=15)a[l]=d,l++;else{let f=0,h=0;d===16?(h=3+s(i,o,2),o+=2,f=a[l-1]):d===17?(h=3+s(i,o,3),o+=3):d===18&&(h=11+s(i,o,7),o+=7);const p=l+h;for(;l<p;)a[l]=f,l++}}return o},e.H.V=function(t,r,n,i){let o=0,a=0;const s=i.length>>>1;for(;a<n;){const c=t[a+r];i[a<<1]=0,i[(a<<1)+1]=c,c>o&&(o=c),a++}for(;a<s;)i[a<<1]=0,i[(a<<1)+1]=0,a++;return o},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,a,s,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 d=n.K;for(o=0,u[0]=0,a=1;a<=r;a++)o=o+u[a-1]<<1,d[a]=o;for(s=0;s<i;s+=2)l=t[s+1],l!==0&&(t[s]=d[l],d[l]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let a=0;a<i;a+=2)if(t[a+1]!==0){const s=a>>1,c=t[a+1],l=s<<4|c,u=r-c;let d=t[a]<<u;const f=d+(1<<u);for(;d!==f;){const h=o[d]>>>15-r;n[h]=l,d++}}},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 a=t[o]<<r-t[o+1];t[o]=n[a]>>>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,a){for(;o--!==0;)i.push(0,a)}for(let i=0;i<32;i++)t.q[i]=t.S[i]<<3|t.T[i],t.c[i]=t.p[i]<<4|t.z[i];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),n(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),e.H.N}(),St.decode._readInterlace=function(e,t){const r=t.width,n=t.height,i=St.decode._getBPP(t),o=i>>3,a=Math.ceil(r*i/8),s=new Uint8Array(n*a);let c=0;const l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],f=[8,8,4,4,2,2,1];let h=0;for(;h<7;){const p=d[h],g=f[h];let v=0,_=0,y=l[h];for(;y<n;)y+=p,_++;let m=u[h];for(;m<r;)m+=g,v++;const x=Math.ceil(v*i/8);St.decode._filterZero(e,t,c,v,_);let N=0,$=l[h];for(;$<n;){let A=u[h],R=c+N*x<<3;for(;A<r;){if(i===1){let G=e[R>>3];G=G>>7-(R&7)&1,s[$*a+(A>>3)]|=G<<7-((A&7)<<0)}if(i===2){let G=e[R>>3];G=G>>6-(R&7)&3,s[$*a+(A>>2)]|=G<<6-((A&3)<<1)}if(i===4){let G=e[R>>3];G=G>>4-(R&7)&15,s[$*a+(A>>1)]|=G<<4-((A&1)<<2)}if(i>=8){const G=$*a+A*o;for(let H=0;H<o;H++)s[G+H]=e[(R>>3)+H]}R+=i,A+=g}N++,$+=p}v*_!==0&&(c+=_*(1+x)),h=h+1}return s},St.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},St.decode._filterZero=function(e,t,r,n,i){let o=St.decode._getBPP(t);const a=Math.ceil(n*o/8),s=St.decode._paeth;o=Math.ceil(o/8);let c=0,l=1,u=e[r],d=0;if(u>1&&(e[r]=[0,0,1][u-2]),u===3)for(d=o;d<a;d++)e[d+1]=e[d+1]+(e[d+1-o]>>>1)&255;for(let f=0;f<i;f++)if(c=r+f*a,l=c+f+1,u=e[l-1],d=0,u===0)for(;d<a;d++)e[c+d]=e[l+d];else if(u===1){for(;d<o;d++)e[c+d]=e[l+d];for(;d<a;d++)e[c+d]=e[l+d]+e[c+d-o]}else if(u===2)for(;d<a;d++)e[c+d]=e[l+d]+e[c+d-a];else if(u===3){for(;d<o;d++)e[c+d]=e[l+d]+(e[c+d-a]>>>1);for(;d<a;d++)e[c+d]=e[l+d]+(e[c+d-a]+e[c+d-o]>>>1)}else{for(;d<o;d++)e[c+d]=e[l+d]+s(0,e[c+d-a],0);for(;d<a;d++)e[c+d]=e[l+d]+s(e[c+d-o],e[c+d-a],e[c+d-o-a])}return e},St.decode._paeth=function(e,t,r){const n=e+t-r,i=n-e,o=n-t,a=n-r;return i*i<=o*o&&i*i<=a*a?e:o*o<=a*a?t:r},St.decode._IHDR=function(e,t,r){const n=St._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++},St._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+="%"+St._bin.pad(e[t+o].toString(16));try{i=decodeURIComponent(n)}catch{return St._bin.readASCII(e,t,r)}return i}},St._copyTile=function(e,t,r,n,i,o,a,s,c){const l=Math.min(t,i),u=Math.min(r,o);let d=0,f=0;for(let h=0;h<u;h++)for(let p=0;p<l;p++)if(a>=0&&s>=0?(d=h*t+p<<2,f=(s+h)*i+a+p<<2):(d=(-s+h)*t-a+p<<2,f=h*i+p<<2),c===0)n[f]=e[d],n[f+1]=e[d+1],n[f+2]=e[d+2],n[f+3]=e[d+3];else if(c===1){const g=e[d+3]*.00392156862745098,v=e[d]*g,_=e[d+1]*g,y=e[d+2]*g,m=n[f+3]*(1/255),x=n[f]*m,N=n[f+1]*m,$=n[f+2]*m,A=1-g,R=g+m*A,G=R===0?0:1/R;n[f+3]=255*R,n[f+0]=(v+x*A)*G,n[f+1]=(_+N*A)*G,n[f+2]=(y+$*A)*G}else if(c===2){const g=e[d+3],v=e[d],_=e[d+1],y=e[d+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[d+3],v=e[d],_=e[d+1],y=e[d+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},St.encode=function(e,t,r,n,i,o,a){n===null&&(n=0),a===null&&(a=!1);const s=St.encode.compress(e,t,r,n,[!1,!1,!1,0,a]);return St.encode.compressPNG(s,-1),St.encode._main(s,t,r,i,o)},St.encodeLL=function(e,t,r,n,i,o,a,s){const c={ctype:0+(n===1?0:2)+(i===0?0:4),depth:o,frames:[]},l=(n+i)*o,u=l*t;for(let d=0;d<e.length;d++)c.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[d]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(u/8)});return St.encode.compressPNG(c,0,!0),St.encode._main(c,t,r,a,s)},St.encode._main=function(e,t,r,n,i){i||(i={});const o=St.crc.crc,a=St._bin.writeUint,s=St._bin.writeUshort,c=St._bin.writeASCII;let l=8;const u=e.frames.length>1;let d=!1,f=33+(u?20:0);if(i.sRGB!==null&&i.sRGB!==void 0&&(f+=13),i.pHYs!==null&&i.pHYs!==void 0&&(f+=21),e.ctype===3){const v=e.plte.length;for(let _=0;_<v;_++)e.plte[_]>>>24!==255&&(d=!0);f+=8+v*3+4+(d?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 h=new Uint8Array(f),p=[137,80,78,71,13,10,26,10];for(let v=0;v<8;v++)h[v]=p[v];if(a(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,a(h,l,t),l+=4,a(h,l,r),l+=4,h[l]=e.depth,l++,h[l]=e.ctype,l++,h[l]=0,l++,h[l]=0,l++,h[l]=0,l++,a(h,l,o(h,l-17,17)),l+=4,i.sRGB!==null&&i.sRGB!==void 0&&(a(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=i.sRGB,l++,a(h,l,o(h,l-5,5)),l+=4),i.pHYs!==null&&i.pHYs!==void 0&&(a(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,a(h,l,i.pHYs[0]),l+=4,a(h,l,i.pHYs[1]),l+=4,h[l]=i.pHYs[2],l++,a(h,l,o(h,l-13,13)),l+=4),u&&(a(h,l,8),l+=4,c(h,l,"acTL"),l+=4,a(h,l,e.frames.length),l+=4,a(h,l,i.loop!=null?i.loop:0),l+=4,a(h,l,o(h,l-12,12)),l+=4),e.ctype===3){const v=e.plte.length;a(h,l,v*3),l+=4,c(h,l,"PLTE"),l+=4;for(let _=0;_<v;_++){const y=_*3,m=e.plte[_],x=m&255,N=m>>>8&255,$=m>>>16&255;h[l+y+0]=x,h[l+y+1]=N,h[l+y+2]=$}if(l+=v*3,a(h,l,o(h,l-v*3-4,v*3+4)),l+=4,d){a(h,l,v),l+=4,c(h,l,"tRNS"),l+=4;for(let _=0;_<v;_++)h[l+_]=e.plte[_]>>>24&255;l+=v,a(h,l,o(h,l-v-4,v+4)),l+=4}}let g=0;for(let v=0;v<e.frames.length;v++){const _=e.frames[v];u&&(a(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,a(h,l,g++),l+=4,a(h,l,_.rect.width),l+=4,a(h,l,_.rect.height),l+=4,a(h,l,_.rect.x),l+=4,a(h,l,_.rect.y),l+=4,s(h,l,n[v]),l+=2,s(h,l,1e3),l+=2,h[l]=_.dispose,l++,h[l]=_.blend,l++,a(h,l,o(h,l-30,30)),l+=4);const y=_.cimg,m=y.length;a(h,l,m+(v===0?0:4)),l+=4;const x=l;c(h,l,v===0?"IDAT":"fdAT"),l+=4,v!==0&&(a(h,l,g++),l+=4),h.set(y,l),l+=m,a(h,l,o(h,x,l-x)),l+=4}return a(h,l,0),l+=4,c(h,l,"IEND"),l+=4,a(h,l,o(h,l-4,4)),l+=4,h.buffer},St.encode.compressPNG=function(e,t,r){for(let n=0;n<e.frames.length;n++){const i=e.frames[n],o=i.rect.height,a=new Uint8Array(o*i.bpl+o);i.cimg=St.encode._filterZero(i.img,o,i.bpp,i.bpl,a,t,r)}},St.encode.compress=function(e,t,r,n,i){const o=i[0],a=i[1],s=i[2],c=i[3],l=i[4];let u=6,d=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 h=f!==255,p=St.encode.framize(e,t,r,o,a,s),g={},v=[],_=[];if(n!==0){const m=[];for(let R=0;R<p.length;R++)m.push(p[R].img.buffer);const x=St.encode.concatRGBA(m),N=St.quantize(x,n);let $=0;const A=new Uint8Array(N.abuf);for(let R=0;R<p.length;R++){const G=p[R].img,H=G.length;_.push(new Uint8Array(N.inds.buffer,$>>2,H>>2));for(let Y=0;Y<H;Y+=4)G[Y]=A[$+Y],G[Y+1]=A[$+Y+1],G[Y+2]=A[$+Y+2],G[Y+3]=A[$+Y+3];$+=H}for(let R=0;R<N.plte.length;R++)v.push(N.plte[R].est.rgba)}else for(let m=0;m<p.length;m++){const x=p[m],N=new Uint32Array(x.img.buffer),$=x.rect.width,A=N.length,R=new Uint8Array(A);_.push(R);for(let G=0;G<A;G++){const H=N[G];if(G!==0&&H===N[G-1])R[G]=R[G-1];else if(G>$&&H===N[G-$])R[G]=R[G-$];else{let Y=g[H];if(Y===null&&(g[H]=Y=v.length,v.push(H),v.length>=300))break;R[G]=Y}}}const y=v.length;y<=256&&l===!1&&(y<=2?d=1:y<=4?d=2:y<=16?d=4:d=8,d=Math.max(d,c));for(let m=0;m<p.length;m++){const x=p[m],N=x.rect.width,$=x.rect.height;let A=x.img,R=4*N,G=4;if(y<=256&&l===!1){R=Math.ceil(d*N/8);const H=new Uint8Array(R*$),Y=_[m];for(let J=0;J<$;J++){const nt=J*R,rt=J*N;if(d===8)for(let lt=0;lt<N;lt++)H[nt+lt]=Y[rt+lt];else if(d===4)for(let lt=0;lt<N;lt++)H[nt+(lt>>1)]|=Y[rt+lt]<<4-(lt&1)*4;else if(d===2)for(let lt=0;lt<N;lt++)H[nt+(lt>>2)]|=Y[rt+lt]<<6-(lt&3)*2;else if(d===1)for(let lt=0;lt<N;lt++)H[nt+(lt>>3)]|=Y[rt+lt]<<7-(lt&7)*1}A=H,u=3,G=1}else if(h===!1&&p.length===1){const H=new Uint8Array(N*$*3),Y=N*$;for(let J=0;J<Y;J++){const nt=J*3,rt=J*4;H[nt]=A[rt],H[nt+1]=A[rt+1],H[nt+2]=A[rt+2]}A=H,u=2,G=3,R=3*N}x.img=A,x.bpl=R,x.bpp=G}return{ctype:u,depth:d,plte:v,frames:p}},St.encode.framize=function(e,t,r,n,i,o){const a=[];for(let s=0;s<e.length;s++){const c=new Uint8Array(e[s]),l=new Uint32Array(c.buffer);let u,d=0,f=0,h=t,p=r,g=n?1:0;if(s!==0){const v=o||n||s===1||a[s-2].dispose!==0?1:2;let _=0,y=1e9;for(let x=0;x<v;x++){const N=new Uint32Array(e[s-1-x]);let $=t,A=r,R=-1,G=-1;for(let Y=0;Y<r;Y++)for(let J=0;J<t;J++){const nt=Y*t+J;l[nt]!==N[nt]&&(J<$&&($=J),J>R&&(R=J),Y<A&&(A=Y),Y>G&&(G=Y))}R===-1&&($=A=R=G=0),i&&(($&1)===1&&$--,(A&1)===1&&A--);const H=(R-$+1)*(G-A+1);H<y&&(y=H,_=x,d=$,f=A,h=R-$+1,p=G-A+1)}const m=new Uint8Array(e[s-1-_]);_===1&&(a[s-1].dispose=2),u=new Uint8Array(h*p*4),St._copyTile(m,t,r,u,h,p,-d,-f,0),g=St._copyTile(c,t,r,u,h,p,-d,-f,3)?1:0,g===1?St.encode._prepareDiff(c,t,r,u,{x:d,y:f,width:h,height:p}):St._copyTile(c,t,r,u,h,p,-d,-f,0)}else u=c.slice(0);a.push({rect:{x:d,y:f,width:h,height:p},img:u,blend:g,dispose:0})}if(n)for(let s=0;s<a.length;s++){const c=a[s];if(c.blend===1)continue;const l=c.rect,u=a[s-1].rect,d=Math.min(l.x,u.x),f=Math.min(l.y,u.y),h=Math.max(l.x+l.width,u.x+u.width),p=Math.max(l.y+l.height,u.y+u.height),g={x:d,y:f,width:h-d,height:p-f};a[s-1].dispose=1,s-1!==0&&St.encode._updateFrame(e,t,r,a,s-1,g,i),St.encode._updateFrame(e,t,r,a,s,g,i)}return a},St.encode._updateFrame=function(e,t,r,n,i,o,a){const s=Uint8Array,c=Uint32Array,l=new s(e[i-1]),u=new c(e[i-1]),d=i+1<e.length?new s(e[i+1]):null,f=new s(e[i]),h=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,A=$*t+N,R=h[A];R===0||n[i-1].dispose===0&&u[A]===R&&(d===null||d[A*4+3]!==0)||(N<p&&(p=N),N>v&&(v=N),$<g&&(g=$),$>_&&(_=$))}v===-1&&(p=g=v=_=0),a&&((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?(St._copyTile(l,t,r,y.img,o.width,o.height,-o.x,-o.y,0),St.encode._prepareDiff(f,t,r,y.img,o)):St._copyTile(f,t,r,y.img,o.width,o.height,-o.x,-o.y,0)},St.encode._prepareDiff=function(e,t,r,n,i){St._copyTile(e,t,r,n,i.width,i.height,-i.x,-i.y,2)},St.encode._filterZero=function(e,t,r,n,i,o,a){const s=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(t*n>5e5||r===1)&&(c=[0]);let l;a&&(l={level:0});const u=i.length>1e7&&f_!=null?f_:S7;for(let h=0;h<c.length;h++){for(let p=0;p<t;p++)St.encode._filterLine(i,e,p,n,r,c[h]);s.push(u.deflate(i,l))}let d,f=1e9;for(let h=0;h<s.length;h++)s[h].length<f&&(d=h,f=s[h].length);return s[d]},St.encode._filterLine=function(e,t,r,n,i,o){const a=r*n;let s=a+r;const c=St.decode._paeth;if(e[s]=o,s++,o===0)if(n<500)for(let l=0;l<n;l++)e[s+l]=t[a+l];else e.set(new Uint8Array(t.buffer,a,n),s);else if(o===1){for(let l=0;l<i;l++)e[s+l]=t[a+l];for(let l=i;l<n;l++)e[s+l]=t[a+l]-t[a+l-i]+256&255}else if(r===0){for(let l=0;l<i;l++)e[s+l]=t[a+l];if(o===2)for(let l=i;l<n;l++)e[s+l]=t[a+l];if(o===3)for(let l=i;l<n;l++)e[s+l]=t[a+l]-(t[a+l-i]>>1)+256&255;if(o===4)for(let l=i;l<n;l++)e[s+l]=t[a+l]-c(t[a+l-i],0,0)+256&255}else{if(o===2)for(let l=0;l<n;l++)e[s+l]=t[a+l]+256-t[a+l-n]&255;if(o===3){for(let l=0;l<i;l++)e[s+l]=t[a+l]+256-(t[a+l-n]>>1)&255;for(let l=i;l<n;l++)e[s+l]=t[a+l]+256-(t[a+l-n]+t[a+l-i]>>1)&255}if(o===4){for(let l=0;l<i;l++)e[s+l]=t[a+l]+256-c(0,t[a+l-n],0)&255;for(let l=i;l<n;l++)e[s+l]=t[a+l]+256-c(t[a+l-i],t[a+l-n],t[a+l-i-n])&255}}},St.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=St.crc.table[(e^t[r+i])&255]^e>>>8;return e},crc:function(e,t,r){return St.crc.update(4294967295,e,t,r)^4294967295}},St.quantize=function(e,t){const r=new Uint8Array(e),n=r.slice(0),i=new Uint32Array(n.buffer),o=St.quantize.getKDtree(n,t),a=o[0],s=o[1],c=St.quantize.planeDst,l=r,u=i,d=l.length,f=new Uint8Array(r.length>>2);let h;if(r.length<2e7)for(let p=0;p<d;p+=4){const g=l[p]*.00392156862745098,v=l[p+1]*(1/255),_=l[p+2]*(1/255),y=l[p+3]*(1/255);h=St.quantize.getNearest(a,g,v,_,y),f[p>>2]=h.ind,u[p>>2]=h.est.rgba}else for(let p=0;p<d;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(h=a;h.left;)h=c(h.est,g,v,_,y)<=0?h.left:h.right;f[p>>2]=h.ind,u[p>>2]=h.est.rgba}return{abuf:n.buffer,inds:f,plte:s}},St.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=St.quantize.stats(e,i.i0,i.i1),i.est=St.quantize.estats(i.bst);const o=[i];for(;o.length<t;){let a=0,s=0;for(let f=0;f<o.length;f++)o[f].est.L>a&&(a=o[f].est.L,s=f);if(a<r)break;const c=o[s],l=St.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=St.quantize.stats(e,u.i0,u.i1),u.est=St.quantize.estats(u.bst);const d={i0:l,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:c.bst.N-u.bst.N};for(let f=0;f<16;f++)d.bst.R[f]=c.bst.R[f]-u.bst.R[f];for(let f=0;f<4;f++)d.bst.m[f]=c.bst.m[f]-u.bst.m[f];d.est=St.quantize.estats(d.bst),c.left=u,c.right=d,o[s]=u,o.push(d)}o.sort(function(a,s){return s.bst.N-a.bst.N});for(let a=0;a<o.length;a++)o[a].ind=a;return[i,o]},St.quantize.getNearest=function(e,t,r,n,i){if(e.left==null)return e.tdst=St.quantize.dist(e.est.q,t,r,n,i),e;const o=St.quantize.planeDst(e.est,t,r,n,i);let a=e.left,s=e.right;o>0&&(a=e.right,s=e.left);const c=St.quantize.getNearest(a,t,r,n,i);if(c.tdst<=o*o)return c;const l=St.quantize.getNearest(s,t,r,n,i);return l.tdst<c.tdst?l:c},St.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},St.quantize.dist=function(e,t,r,n,i){const o=t-e[0],a=r-e[1],s=n-e[2],c=i-e[3];return o*o+a*a+s*s+c*c},St.quantize.splitPixels=function(e,t,r,n,i,o){const a=St.quantize.vecDot;for(n-=4;r<n;){for(;a(e,r,i)<=o;)r+=4;for(;a(e,n,i)>o;)n-=4;if(r>=n)break;const s=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=s,r+=4,n-=4}for(;a(e,r,i)>o;)r-=4;return r+4},St.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]},St.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 a=t;a<r;a+=4){const s=e[a]*.00392156862745098,c=e[a+1]*(1/255),l=e[a+2]*(1/255),u=e[a+3]*(1/255);i[0]+=s,i[1]+=c,i[2]+=l,i[3]+=u,n[0]+=s*s,n[1]+=s*c,n[2]+=s*l,n[3]+=s*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}},St.quantize.estats=function(e){const t=e.R,r=e.m,n=e.N,i=r[0],o=r[1],a=r[2],s=r[3],c=n===0?0:1/n,l=[t[0]-i*i*c,t[1]-i*o*c,t[2]-i*a*c,t[3]-i*s*c,t[4]-o*i*c,t[5]-o*o*c,t[6]-o*a*c,t[7]-o*s*c,t[8]-a*i*c,t[9]-a*o*c,t[10]-a*a*c,t[11]-a*s*c,t[12]-s*i*c,t[13]-s*o*c,t[14]-s*a*c,t[15]-s*s*c],u=l,d=St.M4;let f=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,p=0;if(n!==0)for(let _=0;_<16&&(f=d.multVec(u,f),p=Math.sqrt(d.dot(f,f)),f=d.sml(1/p,f),!(_!==0&&Math.abs(p-h)<1e-9));_++)h=p;const g=[i*c,o*c,a*c,s*c],v=d.dot(d.sml(255,g),f);return{Cov:l,q:g,e:f,L:h,eMq255:v,eMq:d.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}},St.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]]}},St.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]),a=o.length;for(let s=0;s<a;s+=4){let c=o[s],l=o[s+1],u=o[s+2];const d=o[s+3];d===0&&(c=l=u=0),r[n+s]=c,r[n+s+1]=l,r[n+s+2]=u,r[n+s+3]=d}n+=a}return r.buffer};const ii={glog:function(e){if(e<1)throw new Error("glog("+e+")");return ii.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return ii.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)ii.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)ii.EXP_TABLE[e]=ii.EXP_TABLE[e-4]^ii.EXP_TABLE[e-5]^ii.EXP_TABLE[e-6]^ii.EXP_TABLE[e-8];for(let e=0;e<255;e++)ii.LOG_TABLE[ii.EXP_TABLE[e]]=e;let Ds;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ds=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ds=self.performance.now.bind(self.performance):Date.now!==void 0?Ds=Date.now:Ds=function(){return new Date().getTime()};const $7=Ds;let k7=class{constructor(){jt(this,"_tweens",{});jt(this,"_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=$7(),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 oi=new k7;oi.getAll.bind(oi),oi.removeAll.bind(oi),oi.add.bind(oi),oi.remove.bind(oi),oi.update.bind(oi);function Ib(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 E7={attributeName:["display"],values:[["block","block"]]},Zr={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Db{constructor(){jt(this,"currentAnimateName");jt(this,"objects",[]);jt(this,"actions",[])}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(r=>{const n=bi(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){var o;if(!this.hasObjects())return;switch(this.currentAnimateName=t,this[t](...r),(o=this.objects[0].dom)==null||o.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),t){default:this.objects.forEach((a,s)=>{var c;(c=a.dom)==null||c.css({position:"absolute","z-index":String(1e3+s),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let n=0;const i=()=>{this.actions.forEach((a,s)=>{var p;const c=this.objects[a.objectIndex];let l=[],u=[];Array.isArray(a.attributeName)?(l=a.attributeName,u=a.values):a.attributeName&&(l=[a.attributeName],u=[a.values]);const d=a.keyTimes.length,f=Xc(((p=c.dom)==null?void 0:p.css("transform"))??"");let h=a.begin;a.keyTimes.forEach((g,v)=>{var y;const _={_matrix:f};l.forEach((m,x)=>{const N=u[x][a.direction=="reverse"?d-v-1:v];this._transformAttributeToCSSObjectUseMatrix(m,N,_)}),v==0?(y=c.dom)==null||y.css(Object.assign(_,{transition:""})):(setTimeout(()=>{var m;(m=c.dom)==null||m.css(Object.assign(_,{transition:`all ${a.realKeyTimes[v]}ms cubic-bezier(${a.keySplines[v-1].join(",")})`}))},h),h+=a.realKeyTimes[v])}),setTimeout(()=>{var g;a.fill==="remove"&&((g=c.dom)==null||g.css(c.originCSSObject??{})),s==this.actions.length-1&&(typeof a.repeatCount=="number"&&++n<a.repeatCount||a.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&i()})},a.begin+a.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=E7,r=Zr,n=0,i=!1){const o=r.keyTimes??[0,1],a=[];return o.forEach((s,c)=>{c>0&&a.push(Ib(r.easeName??"linear"))}),this._addAction({objectIndex:n,attributeName:t.attributeName,values:t.values,begin:r.begin??0,dur:r.dur??300,keyTimes:o,keySplines:a,repeatCount:r.repeatCount??1,direction:r.direction??"normal",fill:r.fill??"freeze"},i),this}_predefinedAnimate(t,r,n,i,o=Zr,a=this.objects.length-1){let s=!0,c=!1,l=!1,u=!1;const d=this.objects.length;a=(a+d)%d;const f=(a-1+d)%d,h=(a+1+d)%d,p=this.objects[a],g=this.objects[f],v=this.objects[h];if(g&&f!==a){const _=t(g);_&&(this._addAnimate(_,o,f,s),s=!1,c=!0)}if(p){const _=r(p);_&&(this._addAnimate(_,o,a,s),s=!1,l=!0)}if(v&&h!==a){const _=n(v);_&&(this._addAnimate(_,o,h,s),s=!1,u=!0)}this.objects.forEach((_,y)=>{if(!(y==f&&c||y==a&&l||y==h&&u)){const m=i(_);m&&(this._addAnimate(m,o,y,s),s=!1)}})}flip(t=Zr,r=this.objects.length-1){var p,g,v,_,y,m,x,N,$,A,R;const n=r-1,i=this.objects[n],o=this.objects[r],a=Xc(((p=o.dom)==null?void 0:p.css("transform"))??""),s=a.clone();(g=i.dom)==null||g.show(),(v=i.dom)==null||v.css("opacity","1");const c=(_=i.el)==null?void 0:_.getBoundingClientRect();(y=i.dom)==null||y.css("opacity","0"),(m=o.dom)==null||m.show(),(x=o.dom)==null||x.css("opacity","1");const l=(N=o.el)==null?void 0:N.getBoundingClientRect(),u=($=i.dom)==null?void 0:$.css("background-color"),d=(A=o.dom)==null?void 0:A.css("background-color");s.translate(((c==null?void 0:c.left)??0)-((l==null?void 0:l.left)??0),((c==null?void 0:c.top)??0)-((l==null?void 0:l.top)??0)),s.scale(((c==null?void 0:c.width)??1)/((l==null?void 0:l.width)??1),((c==null?void 0:c.height)??1)/((l==null?void 0:l.height)??1));const f={transform:s.toString(),transition:""};u&&Object.assign(f,{"background-color":u}),(R=o.dom)==null||R.css(f);const h={transform:a.toString(),transition:`all ${t.dur}ms cubic-bezier(${Ib(t.easeName??"linear").join(",")})`};d&&Object.assign(h,{"background-color":d}),setTimeout(()=>{var G;(G=o.dom)==null||G.css(h)},t.begin)}slideLeft(t=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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=Zr,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 Fb=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=Fb,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 Mb=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);Mb!==null?window.webrtcDetectedVersion=parseInt(Mb[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=Fb,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 dp={exports:{}},Fs={},fp={},pp={};(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 Sf<"u"?Sf: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)})(pp);const C7=un(pp),P7=Wt({__proto__:null,default:C7},[pp]),ye=Jt(P7);var mp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ye;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),A=this.m[0]*N+this.m[2]*$,R=this.m[1]*N+this.m[3]*$,G=this.m[0]*-$+this.m[2]*N,H=this.m[1]*-$+this.m[3]*N;return this.m[0]=A,this.m[1]=R,this.m[2]=G,this.m[3]=H,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(x,N){var $=this.m[0]+this.m[2]*N,A=this.m[1]+this.m[3]*N,R=this.m[2]+this.m[0]*x,G=this.m[3]+this.m[1]*x;return this.m[0]=$,this.m[1]=A,this.m[2]=R,this.m[3]=G,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],A=this.m[0]*x.m[2]+this.m[2]*x.m[3],R=this.m[1]*x.m[2]+this.m[3]*x.m[3],G=this.m[0]*x.m[4]+this.m[2]*x.m[5]+this.m[4],H=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]=A,this.m[3]=R,this.m[4]=G,this.m[5]=H,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,A=-this.m[2]*x,R=this.m[0]*x,G=x*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),H=x*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=N,this.m[1]=$,this.m[2]=A,this.m[3]=R,this.m[4]=G,this.m[5]=H,this}getMatrix(){return this.m}decompose(){var x=this.m[0],N=this.m[1],$=this.m[2],A=this.m[3],R=this.m[4],G=this.m[5],H=x*A-N*$;let Y={x:R,y:G,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||N!=0){var J=Math.sqrt(x*x+N*N);Y.rotation=N>0?Math.acos(x/J):-Math.acos(x/J),Y.scaleX=J,Y.scaleY=H/J,Y.skewX=(x*$+N*A)/H,Y.skewY=0}else if($!=0||A!=0){var nt=Math.sqrt($*$+A*A);Y.rotation=Math.PI/2-(A>0?Math.acos(-$/nt):-Math.acos($/nt)),Y.scaleX=H/nt,Y.scaleY=nt,Y.skewX=0,Y.skewY=(x*$+N*A)/H}return Y.rotation=e.Util._getRotation(Y.rotation),Y}}e.Transform=r;var n="[object Array]",i="[object Number]",o="[object String]",a="[object Boolean]",s=Math.PI/180,c=180/Math.PI,l="#",u="",d="0",f="Konva warning: ",h="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)===a},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=d+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,A=Number(N[1])/100,R=Number(N[2])/100;let G,H,Y;if(A===0)return Y=R*255,{r:Math.round(Y),g:Math.round(Y),b:Math.round(Y),a:1};R<.5?G=R*(1+A):G=R+A-R*A;const J=2*R-G,nt=[0,0,0];for(let rt=0;rt<3;rt++)H=$+1/3*-(rt-1),H<0&&H++,H>1&&H--,6*H<1?Y=J+(G-J)*6*H:2*H<1?Y=G:3*H<2?Y=J+(G-J)*(2/3-H)*6:Y=J,nt[rt]=Y*255;return{r:Math.round(nt[0]),g:Math.round(nt[1]),b:Math.round(nt[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*s},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(h+m)},error(m){console.error(h+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,$,A,R){var G,H,Y,J=(m-N)*(m-N)+(x-$)*(x-$);if(J==0)G=m,H=x,Y=(A-N)*(A-N)+(R-$)*(R-$);else{var nt=((A-m)*(N-m)+(R-x)*($-x))/J;nt<0?(G=m,H=x,Y=(m-A)*(m-A)+(x-R)*(x-R)):nt>1?(G=N,H=$,Y=(N-A)*(N-A)+($-R)*($-R)):(G=m+nt*(N-m),H=x+nt*($-x),Y=(G-A)*(G-A)+(H-R)*(H-R))}return[G,H,Y]},_getProjectionToLine(m,x,N){var $=e.Util.cloneObject(m),A=Number.MAX_VALUE;return x.forEach(function(R,G){if(!(!N&&G===x.length-1)){var H=x[(G+1)%x.length],Y=e.Util._getProjectionToSegment(R.x,R.y,H.x,H.y,m.x,m.y),J=Y[0],nt=Y[1],rt=Y[2];rt<A&&($.x=J,$.y=nt,A=rt)}}),$},_prepareArrayForTween(m,x,N){var $,A=[],R=[];if(m.length>x.length){var G=x;x=m,m=G}for($=0;$<m.length;$+=2)A.push({x:m[$],y:m[$+1]});for($=0;$<x.length;$+=2)R.push({x:x[$],y:x[$+1]});var H=[];return R.forEach(function(Y){var J=e.Util._getProjectionToLine(Y,A,N);H.push(J.x),H.push(J.y)}),H},_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 A=0,R=0,G=0,H=0;typeof $=="number"?A=R=G=H=Math.min($,x/2,N/2):(A=Math.min($[0]||0,x/2,N/2),R=Math.min($[1]||0,x/2,N/2),H=Math.min($[2]||0,x/2,N/2),G=Math.min($[3]||0,x/2,N/2)),m.moveTo(A,0),m.lineTo(x-R,0),m.arc(x-R,R,R,Math.PI*3/2,0,!1),m.lineTo(x,N-H),m.arc(x-H,N-H,H,0,Math.PI/2,!1),m.lineTo(G,N),m.arc(G,N-G,G,Math.PI/2,Math.PI,!1),m.lineTo(0,A),m.arc(A,A,A,Math.PI,Math.PI*3/2,!1)}}})(mp);const T7=un(mp),O7=Wt({__proto__:null,default:T7},[mp]),or=Jt(O7);var Ms={},gp={},Je={};Object.defineProperty(Je,"__esModule",{value:!0});var Lb=Je.getComponentValidator=Xb=Je.getBooleanValidator=Yb=Je.getNumberArrayValidator=Kb=Je.getFunctionValidator=qb=Je.getStringOrGradientValidator=Hb=Je.getStringValidator=Bb=Je.getNumberOrAutoValidator=Vb=Je.getNumberOrArrayOfNumbersValidator=Gb=Je.getNumberValidator=zb=Je.alphaComponent=Ub=Je.RGBComponent=void 0;const $i=ye,ar=or;function ki(e){return ar.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||ar.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function A7(e){return e>255?255:e<0?0:Math.round(e)}var Ub=Je.RGBComponent=A7;function N7(e){return e>1?1:e<1e-4?1e-4:e}var zb=Je.alphaComponent=N7;function R7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isNumber(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var Gb=Je.getNumberValidator=R7;function j7(e){if($i.Konva.isUnminified)return function(t,r){let n=ar.Util._isNumber(t),i=ar.Util._isArray(t)&&t.length==e;return!n&&!i&&ar.Util.warn(ki(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var Vb=Je.getNumberOrArrayOfNumbersValidator=j7;function I7(){if($i.Konva.isUnminified)return function(e,t){var r=ar.Util._isNumber(e),n=e==="auto";return r||n||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var Bb=Je.getNumberOrAutoValidator=I7;function D7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isString(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var Hb=Je.getStringValidator=D7;function F7(){if($i.Konva.isUnminified)return function(e,t){const r=ar.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var qb=Je.getStringOrGradientValidator=F7;function M7(){if($i.Konva.isUnminified)return function(e,t){return ar.Util._isFunction(e)||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var Kb=Je.getFunctionValidator=M7;function L7(){if($i.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(ar.Util._isArray(e)?e.forEach(function(n){ar.Util._isNumber(n)||ar.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var Yb=Je.getNumberArrayValidator=L7;function U7(){if($i.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||ar.Util.warn(ki(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var Xb=Je.getBooleanValidator=U7;function z7(e){if($i.Konva.isUnminified)return function(t,r){return t==null||ar.Util.isObject(t)||ar.Util.warn(ki(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}Lb=Je.getComponentValidator=z7;const G7=Wt({__proto__:null,get RGBComponent(){return Ub},get alphaComponent(){return zb},default:Je,get getBooleanValidator(){return Xb},get getComponentValidator(){return Lb},get getFunctionValidator(){return Kb},get getNumberArrayValidator(){return Yb},get getNumberOrArrayOfNumbersValidator(){return Vb},get getNumberOrAutoValidator(){return Bb},get getNumberValidator(){return Gb},get getStringOrGradientValidator(){return qb},get getStringValidator(){return Hb}},[Je]),_e=Jt(G7);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=or,r=_e;var n="get",i="set";e.Factory={addGetterSetter(o,a,s,c,l){e.Factory.addGetter(o,a,s),e.Factory.addSetter(o,a,c,l),e.Factory.addOverloadedGetterSetter(o,a)},addGetter(o,a,s){var c=n+t.Util._capitalize(a);o.prototype[c]=o.prototype[c]||function(){var l=this.attrs[a];return l===void 0?s:l}},addSetter(o,a,s,c){var l=i+t.Util._capitalize(a);o.prototype[l]||e.Factory.overWriteSetter(o,a,s,c)},overWriteSetter(o,a,s,c){var l=i+t.Util._capitalize(a);o.prototype[l]=function(u){return s&&u!==void 0&&u!==null&&(u=s.call(this,u,a)),this._setAttr(a,u),c&&c.call(this),this}},addComponentsGetterSetter(o,a,s,c,l){var u=s.length,d=t.Util._capitalize,f=n+d(a),h=i+d(a),p,g;o.prototype[f]=function(){var _={};for(p=0;p<u;p++)g=s[p],_[g]=this.getAttr(a+d(g));return _};var v=(0,r.getComponentValidator)(s);o.prototype[h]=function(_){var y=this.attrs[a],m;c&&(_=c.call(this,_)),v&&v.call(this,_,a);for(m in _)_.hasOwnProperty(m)&&this._setAttr(a+d(m),_[m]);return _||s.forEach(x=>{this._setAttr(a+d(x),void 0)}),this._fireChangeEvent(a,y,_),l&&l.call(this),this},e.Factory.addOverloadedGetterSetter(o,a)},addOverloadedGetterSetter(o,a){var s=t.Util._capitalize(a),c=i+s,l=n+s;o.prototype[a]=function(){return arguments.length?(this[c](arguments[0]),this):this[l]()}},addDeprecatedGetterSetter(o,a,s,c){t.Util.error("Adding deprecated "+a);var l=n+t.Util._capitalize(a),u=a+" 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 d=this.attrs[a];return d===void 0?s:d},e.Factory.addSetter(o,a,c,function(){t.Util.error(u)}),e.Factory.addOverloadedGetterSetter(o,a)},backCompat(o,a){t.Util.each(a,function(s,c){var l=o.prototype[c],u=n+t.Util._capitalize(s),d=i+t.Util._capitalize(s);function f(){l.apply(this,arguments),t.Util.error('"'+s+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[s]=f,o.prototype[u]=f,o.prototype[d]=f})},afterSetFilter(){this._filterUpToDate=!1}}})(gp);const V7=un(gp),B7=Wt({__proto__:null,default:V7},[gp]),ge=Jt(B7);var Ei={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});var Wb=Ci.HitContext=e2=Ci.SceneContext=t2=Ci.Context=void 0;const Jb=or,H7=ye;function q7(e){var t=[],r=e.length,n=Jb.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 Qb=",",K7="(",Y7=")",X7="([",W7="])",J7=";",Q7="()",Z7="=",Zb=["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"],tR=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const eR=100;let hu=class{constructor(t){this.canvas=t,H7.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="",a,s,c,l;for(a=0;a<i;a++)s=n[a],c=s.method,c?(l=s.args,o+=c,t?o+=Q7:Jb.Util._isArray(l[0])?o+=X7+l.join(Qb)+W7:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=K7+l.join(Qb)+Y7)):(o+=s.property,t||(o+=Z7+s.val)),o+=J7;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=eR&&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,a){this._context.arc(t,r,n,i,o,a)}arcTo(t,r,n,i,o){this._context.arcTo(t,r,n,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,i,o,a){this._context.bezierCurveTo(t,r,n,i,o,a)}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,a){return this._context.createRadialGradient(t,r,n,i,o,a)}drawImage(t,r,n,i,o,a,s,c,l){var u=arguments,d=this._context;u.length===3?d.drawImage(t,r,n):u.length===5?d.drawImage(t,r,n,i,o):u.length===9&&d.drawImage(t,r,n,i,o,a,s,c,l)}ellipse(t,r,n,i,o,a,s,c){this._context.ellipse(t,r,n,i,o,a,s,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,a){this._context.setTransform(t,r,n,i,o,a)}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,a){this._context.transform(t,r,n,i,o,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){var t=this,r=Zb.length,n=this.setAttr,i,o,a=function(s){var c=t[s],l;t[s]=function(){return o=q7(Array.prototype.slice.call(arguments,0)),l=c.apply(t,arguments),t._trace({method:s,args:o}),l}};for(i=0;i<r;i++)a(Zb[i]);t.setAttr=function(){n.apply(t,arguments);var s=arguments[0],c=arguments[1];(s==="shadowOffsetX"||s==="shadowOffsetY"||s==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:s,val:c})}}_applyGlobalCompositeOperation(t){const r=t.attrs.globalCompositeOperation;var n=!r||r==="source-over";n||this.setAttr("globalCompositeOperation",r)}};var t2=Ci.Context=hu;tR.forEach(function(e){Object.defineProperty(hu.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class rR extends hu{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 a=t.getFillRadialGradientColorStops();if(a&&n==="radial-gradient"){this._fillRadialGradient(t);return}r?this._fillColor(t):i?this._fillPattern(t):o?this._fillLinearGradient(t):a&&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 a=0;a<i.length;a+=2)o.addColorStop(i[a],i[a+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",a=(n=t.getShadowBlur())!==null&&n!==void 0?n:5,s=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=c.x*l,d=c.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",a*Math.min(Math.abs(u),Math.abs(d))),this.setAttr("shadowOffsetX",s.x*u),this.setAttr("shadowOffsetY",s.y*d)}}var e2=Ci.SceneContext=rR;class nR extends hu{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()}}}Wb=Ci.HitContext=nR;const iR=Wt({__proto__:null,get Context(){return t2},get HitContext(){return Wb},get SceneContext(){return e2},default:Ci},[Ci]),r2=Jt(iR);Object.defineProperty(Ei,"__esModule",{value:!0});var n2=Ei.HitCanvas=s2=Ei.SceneCanvas=a2=Ei.Canvas=void 0;const du=or,i2=r2,o2=ye,oR=ge,aR=_e;var fu;function sR(){if(fu)return fu;var e=du.Util.createCanvasElement(),t=e.getContext("2d");return fu=function(){var r=o2.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),du.Util.releaseCanvas(e),fu}let pu=class{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||o2.Konva.pixelRatio||sR();this.pixelRatio=n,this._canvas=du.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 du.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};var a2=Ei.Canvas=pu;oR.Factory.addGetterSetter(pu,"pixelRatio",void 0,(0,aR.getNumberValidator)());class lR extends pu{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new i2.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var s2=Ei.SceneCanvas=lR;class cR extends pu{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new i2.HitContext(this),this.setSize(t.width,t.height)}}n2=Ei.HitCanvas=cR;const uR=Wt({__proto__:null,get Canvas(){return a2},get HitCanvas(){return n2},get SceneCanvas(){return s2},default:Ei},[Ei]),mu=Jt(uR);var vp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ye,r=or;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,a)=>{const{node:s}=o,c=s.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=s.dragDistance(),d=Math.max(Math.abs(l.x-o.startPointerPos.x),Math.abs(l.y-o.startPointerPos.y));if(d<u||(s.startDrag({evt:n}),!s.isDragging()))return}s._setDragPosition(n,o),i.push(s)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:n},!0)})},_endDragBefore(n){const i=[];e.DD._dragElements.forEach(o=>{const{node:a}=o,s=a.getStage();if(n&&s.setPointersPositions(n),!s._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))})(vp);const hR=un(vp),dR=Wt({__proto__:null,default:hR},[vp]),yp=Jt(dR);Object.defineProperty(Ms,"__esModule",{value:!0});var l2=Ms.Node=void 0;const be=or,Ls=ge,gu=mu,jo=ye,xn=yp,cr=_e;var vu="absoluteOpacity",yu="allEventListeners",Pi="absoluteTransform",c2="absoluteScale",Io="canvas",fR="Change",pR="children",mR="konva",_p="listening",u2="mouseenter",h2="mouseleave",d2="set",f2="Shape",_u=" ",p2="stage",Wi="transform",gR="Stage",bp="visible",vR=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(_u);let yR=1,ue=class ng{constructor(t){this._id=yR++,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===Wi||t===Pi)&&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===Wi||t===Pi,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(_u);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Io)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Pi&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Io)){const{scene:t,filter:r,hit:n}=this._cache.get(Io);be.Util.releaseCanvas(t,r,n),this._cache.delete(Io)}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),a=r.pixelRatio,s=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,d=r.hitCanvasPixelRatio||1;if(!i||!o){be.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,s-=l,c-=l;var f=new gu.SceneCanvas({pixelRatio:a,width:i,height:o}),h=new gu.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),p=new gu.HitCanvas({pixelRatio:d,width:i,height:o}),g=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(Io),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,h.getContext()._context.imageSmoothingEnabled=!1),g.save(),v.save(),g.translate(-s,-c),v.translate(-s,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(vu),this._clearSelfAndDescendantCache(c2),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(Io,{scene:f,filter:h,hit:p,x:s,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Io)}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,a=-1/0,s=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(l){var u=c.point(l);i===void 0&&(i=a=u.x,o=s=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),{x:i,y:o,width:a-i,height:s-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(),a,s,c,l;if(t){if(!this._filterUpToDate){var u=n.pixelRatio;i.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,o.clear(),o.drawImage(n._canvas,0,0,n.getWidth()/u,n.getHeight()/u),s=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<a;c++){if(l=t[c],typeof l!="function"){be.Util.error("Filter should be type of function, but got "+typeof l+" instead. Please check correct filters");continue}l.call(this,s),o.putImageData(s,0,0)}}catch(d){be.Util.error("Unable to apply filter. "+d.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(yu),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(_u),i=n.length,o,a,s,c,l;for(o=0;o<i;o++)a=n[o],s=a.split("."),c=s[0],l=s[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:l,handler:r});return this}off(t,r){var n=(t||"").split(_u),i=n.length,o,a,s,c,l,u;if(this._cache&&this._cache.delete(yu),!t)for(a in this.eventListeners)this._off(a);for(o=0;o<i;o++)if(s=n[o],c=s.split("."),l=c[0],u=c[1],l)this.eventListeners[l]&&this._off(l,u,r);else for(a in this.eventListeners)this._off(a,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 a=o.target.findAncestors(r,!0,i),s=0;s<a.length;s++)o=be.Util.cloneObject(o),o.currentTarget=a[s],n.call(a[s],o)})}remove(){return this.isDragging()&&this.stopDrag(),xn.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Pi),this._clearSelfAndDescendantCache(vu),this._clearSelfAndDescendantCache(c2),this._clearSelfAndDescendantCache(p2),this._clearSelfAndDescendantCache(bp),this._clearSelfAndDescendantCache(_p)}_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"+be.Util._capitalize(t);return be.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!==pR&&(n=d2+be.Util._capitalize(r),be.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(_p,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(bp,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;xn.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(i=!0)});var o=!r&&!jo.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,a,s;function c(u){for(i=[],o=u.length,a=0;a<o;a++)s=u[a],n++,s.nodeType!==f2&&(i=i.concat(s.getChildren().slice())),s._id===r._id&&(a=o);i.length>0&&i[0].getDepth()<=t&&c(i)}const l=this.getStage();return r.nodeType!==gR&&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(Wi),this._clearSelfAndDescendantCache(Pi)),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 be.Transform,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...i}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Wi);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(Wi),this._clearSelfAndDescendantCache(Pi),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,a;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,a=0;a<o;a++)t(n[a])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return be.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 be.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 be.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 be.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 be.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&be.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(vu,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,a,s;t.attrs={};for(n in r)i=r[n],s=be.Util.isObject(i)&&!be.Util._isPlainObject(i)&&!be.Util._isArray(i),!s&&(o=typeof this[n]=="function"&&this[n],delete r[n],a=o?o.call(this):null,r[n]=i,a!==i&&(t.attrs[n]=i));return t.className=this.getClassName(),be.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],be.Util.isValidSelector(o)||(be.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),be.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),be.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(p2,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(Pi,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new be.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(Pi)||new be.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,a=this.attrs.offsetX||0,s=this.attrs.offsetY||0;r.translate(i-a,o-s)}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(Wi,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(Wi)||new be.Transform;n.reset();var i=this.x(),o=this.y(),a=jo.Konva.getAngle(this.rotation()),s=(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,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(i!==0||o!==0)&&n.translate(i,o),a!==0&&n.rotate(a),(l!==0||u!==0)&&n.skew(l,u),(s!==1||c!==1)&&n.scale(s,c),(d!==0||f!==0)&&n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){var r=be.Util.cloneObject(this.attrs),n,i,o,a,s;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,a=0;a<o;a++)s=i[a],s.name.indexOf(mR)<0&&(c.eventListeners[n]||(c.eventListeners[n]=[]),c.eventListeners[n].push(s));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),a=t.pixelRatio||1,s=new gu.SceneCanvas({width:t.width||Math.ceil(r.width)||(n?n.width():0),height:t.height||Math.ceil(r.height)||(n?n.height():0),pixelRatio:a}),c=s.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(s),c.restore(),s}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==null?void 0:t.callback;i&&delete t.callback,be.Util._urlToImage(this.toDataURL(t),function(o){r(o),i==null||i(o)})}catch(i){n(i)}})}toBlob(t){return new Promise((r,n)=>{try{const i=t==null?void 0:t.callback;i&&delete t.callback,this.toCanvas(t).toBlob(o=>{r(o),i==null||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():jo.Konva.dragDistance}_off(t,r,n){var i=this.eventListeners[t],o,a,s;for(o=0;o<i.length;o++)if(a=i[o].name,s=i[o].handler,(a!=="konva"||r==="konva")&&(!r||a===r)&&(!n||n===s)){if(i.splice(o,1),i.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,r,n){this._fire(t+fR,{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[d2+be.Util._capitalize(t)];return be.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){if(jo.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,r){var n=this.attrs[t];n===r&&!be.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===f2&&(r.target=this);var i=(t===u2||t===h2)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===u2||t===h2)&&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(yu))!==null&&r!==void 0?r:{};let a=o==null?void 0:o[t];if(a===void 0){a=[];let s=Object.getPrototypeOf(this);for(;s;){const c=(i=(n=s.eventListeners)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:[];a.push(...c),s=Object.getPrototypeOf(s)}o[t]=a,this._cache.set(yu,o)}return a}_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;xn.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){xn.DD._dragElements.has(this._id)||this._createDragElement(t);const n=xn.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 a=o.call(this,i,t);a?i=a:be.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=xn.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),xn.DD._endDragBefore(t),xn.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=xn.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||jo.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;xn.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=xn.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&xn.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 be.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return be.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=ng.prototype.getClassName.call(t),i=t.children,o,a,s;r&&(t.attrs.container=r),jo.Konva[n]||(be.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=jo.Konva[n];if(o=new c(t.attrs),i)for(a=i.length,s=0;s<a;s++)o.add(ng._createNode(i[s]));return o}};l2=Ms.Node=ue,ue.prototype.nodeType="Node",ue.prototype._attrsAffectingSize=[],ue.prototype.eventListeners={},ue.prototype.on.call(ue.prototype,vR,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Wi),this._clearSelfAndDescendantCache(Pi)}),ue.prototype.on.call(ue.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(bp)}),ue.prototype.on.call(ue.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_p)}),ue.prototype.on.call(ue.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(vu)});const He=Ls.Factory.addGetterSetter;He(ue,"zIndex"),He(ue,"absolutePosition"),He(ue,"position"),He(ue,"x",0,(0,cr.getNumberValidator)()),He(ue,"y",0,(0,cr.getNumberValidator)()),He(ue,"globalCompositeOperation","source-over",(0,cr.getStringValidator)()),He(ue,"opacity",1,(0,cr.getNumberValidator)()),He(ue,"name","",(0,cr.getStringValidator)()),He(ue,"id","",(0,cr.getStringValidator)()),He(ue,"rotation",0,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"scale",["x","y"]),He(ue,"scaleX",1,(0,cr.getNumberValidator)()),He(ue,"scaleY",1,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"skew",["x","y"]),He(ue,"skewX",0,(0,cr.getNumberValidator)()),He(ue,"skewY",0,(0,cr.getNumberValidator)()),Ls.Factory.addComponentsGetterSetter(ue,"offset",["x","y"]),He(ue,"offsetX",0,(0,cr.getNumberValidator)()),He(ue,"offsetY",0,(0,cr.getNumberValidator)()),He(ue,"dragDistance",null,(0,cr.getNumberValidator)()),He(ue,"width",0,(0,cr.getNumberValidator)()),He(ue,"height",0,(0,cr.getNumberValidator)()),He(ue,"listening",!0,(0,cr.getBooleanValidator)()),He(ue,"preventDefault",!0,(0,cr.getBooleanValidator)()),He(ue,"filters",null,function(e){return this._filterUpToDate=!1,e}),He(ue,"visible",!0,(0,cr.getBooleanValidator)()),He(ue,"transformsEnabled","all",(0,cr.getStringValidator)()),He(ue,"size"),He(ue,"dragBoundFunc"),He(ue,"draggable",!1,(0,cr.getBooleanValidator)()),Ls.Factory.backCompat(ue,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const _R=Wt({__proto__:null,get Node(){return l2},default:Ms},[Ms]),ur=Jt(_R);var Us={};Object.defineProperty(Us,"__esModule",{value:!0});var m2=Us.Container=void 0;const xa=ge,wp=ur,bu=_e;let Do=class extends wp.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=wp.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=wp.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(),a=this._getCanvasCache(),s=a&&a.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(s){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(),a=this._getCanvasCache(),s=a&&a.hit;if(s){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(),a=this.clipWidth(),s=this.clipHeight(),c=this.clipFunc(),l=a&&s||c;const u=n===this;if(l){o.save();var d=this.getAbsoluteTransform(n),f=d.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 h=this.clipX(),p=this.clipY();o.rect(h,p,a,s)}o.clip.apply(o,v),f=d.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,a,s,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,a=v.y,s=v.x+v.width,c=v.y+v.height):(o=Math.min(o,v.x),a=Math.min(a,v.y),s=Math.max(s,v.x+v.width),c=Math.max(c,v.y+v.height)))}});for(var d=this.find("Shape"),f=!1,h=0;h<d.length;h++){var p=d[h];if(p._isVisible(this)){f=!0;break}}return f&&o!==void 0?l={x:o,y:a,width:s-o,height:c-a}:l={x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}};m2=Us.Container=Do,xa.Factory.addComponentsGetterSetter(Do,"clip",["x","y","width","height"]),xa.Factory.addGetterSetter(Do,"clipX",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipY",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipWidth",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipHeight",void 0,(0,bu.getNumberValidator)()),xa.Factory.addGetterSetter(Do,"clipFunc");const bR=Wt({__proto__:null,get Container(){return m2},default:Us},[Us]),wu=Jt(bR);var xp={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});var g2=fn.releaseCapture=w2=fn.setPointerCapture=b2=fn.hasPointerCapture=_2=fn.createEvent=y2=fn.getCapturedShape=void 0;const wR=ye,zs=new Map,v2=wR.Konva._global.PointerEvent!==void 0;function xR(e){return zs.get(e)}var y2=fn.getCapturedShape=xR;function Sp(e){return{evt:e,pointerId:e.pointerId}}var _2=fn.createEvent=Sp;function SR(e,t){return zs.get(e)===t}var b2=fn.hasPointerCapture=SR;function $R(e,t){x2(e),t.getStage()&&(zs.set(e,t),v2&&t._fire("gotpointercapture",Sp(new PointerEvent("gotpointercapture"))))}var w2=fn.setPointerCapture=$R;function x2(e,t){const r=zs.get(e);if(!r)return;const n=r.getStage();n&&n.content,zs.delete(e),v2&&r._fire("lostpointercapture",Sp(new PointerEvent("lostpointercapture")))}g2=fn.releaseCapture=x2;const kR=Wt({__proto__:null,get createEvent(){return _2},default:fn,get getCapturedShape(){return y2},get hasPointerCapture(){return b2},get releaseCapture(){return g2},get setPointerCapture(){return w2}},[fn]),S2=Jt(kR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=or,r=ge,n=wu,i=ye,o=mu,a=yp,s=ye,c=S2;var l="Stage",u="string",d="px",f="mouseout",h="mouseleave",p="mouseover",g="mouseenter",v="mousemove",_="mousedown",y="mouseup",m="pointermove",x="pointerdown",N="pointerup",$="pointercancel",A="lostpointercapture",R="pointerout",G="pointerleave",H="pointerover",Y="pointerenter",J="contextmenu",nt="touchstart",rt="touchend",lt="touchmove",xt="touchcancel",Ct="wheel",$t=5,at=[[g,"_pointerenter"],[_,"_pointerdown"],[v,"_pointermove"],[y,"_pointerup"],[h,"_pointerleave"],[nt,"_pointerdown"],[lt,"_pointermove"],[rt,"_pointerup"],[xt,"_pointercancel"],[p,"_pointerover"],[Ct,"_wheel"],[J,"_contextmenu"],[x,"_pointerdown"],[m,"_pointermove"],[N,"_pointerup"],[$,"_pointercancel"],[A,"_lostpointercapture"]];const X={mouse:{[R]:f,[G]:h,[H]:p,[Y]:g,[m]:v,[x]:_,[N]:y,[$]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[R]:"touchout",[G]:"touchleave",[H]:"touchover",[Y]:"touchenter",[m]:lt,[x]:nt,[N]:rt,[$]:xt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[R]:R,[G]:G,[H]:H,[Y]:Y,[m]:m,[x]:x,[N]:N,[$]:$,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},T=L=>L.indexOf("pointer")>=0?"pointer":L.indexOf("touch")>=0?"touch":"mouse",E=L=>{const D=T(L);if(D==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(D==="touch")return X.touch;if(D==="mouse")return X.mouse};function k(L={}){return(L.clipFunc||L.clipWidth||L.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),L}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 C extends n.Container{constructor(D){super(k(D)),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",()=>{k(this.attrs)}),this._checkVisibility()}_validateAdd(D){const V=D.getType()==="Layer",K=D.getType()==="FastLayer";V||K||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const D=this.visible()?"":"none";this.content.style.display=D}setContainer(D){if(typeof D===u){if(D.charAt(0)==="."){var V=D.slice(1);D=document.getElementsByClassName(V)[0]}else{var K;D.charAt(0)!=="#"?K=D:K=D.slice(1),D=document.getElementById(K)}if(!D)throw"Can not find container in document with id "+K}return this._setAttr("container",D),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),D.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var D=this.children,V=D.length,K;for(K=0;K<V;K++)D[K].clear();return this}clone(D){return D||(D={}),D.container=typeof document<"u"&&document.createElement("div"),n.Container.prototype.clone.call(this,D)}destroy(){super.destroy();var D=this.content;D&&t.Util._isInDocument(D)&&this.container().removeChild(D);var V=e.stages.indexOf(this);return V>-1&&e.stages.splice(V,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const D=this._pointerPositions[0]||this._changedPointerPositions[0];return D?{x:D.x,y:D.y}:(t.Util.warn(b),null)}_getPointerById(D){return this._pointerPositions.find(V=>V.id===D)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(D){D=D||{},D.x=D.x||0,D.y=D.y||0,D.width=D.width||this.width(),D.height=D.height||this.height();var V=new o.SceneCanvas({width:D.width,height:D.height,pixelRatio:D.pixelRatio||1}),K=V.getContext()._context,et=this.children;return(D.x||D.y)&&K.translate(-1*D.x,-1*D.y),et.forEach(function(it){if(it.isVisible()){var ut=it._toKonvaCanvas(D);K.drawImage(ut._canvas,D.x,D.y,ut.getWidth()/ut.getPixelRatio(),ut.getHeight()/ut.getPixelRatio())}}),V}getIntersection(D){if(!D)return null;var V=this.children,K=V.length,et=K-1,it;for(it=et;it>=0;it--){const ut=V[it].getIntersection(D);if(ut)return ut}return null}_resizeDOM(){var D=this.width(),V=this.height();this.content&&(this.content.style.width=D+d,this.content.style.height=V+d),this.bufferCanvas.setSize(D,V),this.bufferHitCanvas.setSize(D,V),this.children.forEach(K=>{K.setSize({width:D,height:V}),K.draw()})}add(D,...V){if(arguments.length>1){for(var K=0;K<arguments.length;K++)this.add(arguments[K]);return this}super.add(D);var et=this.children.length;return et>$t&&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."),D.setSize({width:this.width(),height:this.height()}),D.draw(),i.Konva.isBrowser&&this.content.appendChild(D.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(D){return c.hasPointerCapture(D,this)}setPointerCapture(D){c.setPointerCapture(D,this)}releaseCapture(D){c.releaseCapture(D,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&at.forEach(([D,V])=>{this.content.addEventListener(D,K=>{this[V](K)},{passive:!1})})}_pointerenter(D){this.setPointersPositions(D);const V=E(D.type);V&&this._fire(V.pointerenter,{evt:D,target:this,currentTarget:this})}_pointerover(D){this.setPointersPositions(D);const V=E(D.type);V&&this._fire(V.pointerover,{evt:D,target:this,currentTarget:this})}_getTargetShape(D){let V=this[D+"targetShape"];return V&&!V.getStage()&&(V=null),V}_pointerleave(D){const V=E(D.type),K=T(D.type);if(V){this.setPointersPositions(D);var et=this._getTargetShape(K),it=!a.DD.isDragging||i.Konva.hitOnDragEnabled;et&&it?(et._fireAndBubble(V.pointerout,{evt:D}),et._fireAndBubble(V.pointerleave,{evt:D}),this._fire(V.pointerleave,{evt:D,target:this,currentTarget:this}),this[K+"targetShape"]=null):it&&(this._fire(V.pointerleave,{evt:D,target:this,currentTarget:this}),this._fire(V.pointerout,{evt:D,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(D){const V=E(D.type),K=T(D.type);if(V){this.setPointersPositions(D);var et=!1;this._changedPointerPositions.forEach(it=>{var ut=this.getIntersection(it);if(a.DD.justDragged=!1,i.Konva["_"+K+"ListenClick"]=!0,!ut||!ut.isListening())return;i.Konva.capturePointerEventsEnabled&&ut.setPointerCapture(it.id),this[K+"ClickStartShape"]=ut,ut._fireAndBubble(V.pointerdown,{evt:D,pointerId:it.id}),et=!0;const Tt=D.type.indexOf("touch")>=0;ut.preventDefault()&&D.cancelable&&Tt&&D.preventDefault()}),et||this._fire(V.pointerdown,{evt:D,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(D){const V=E(D.type),K=T(D.type);if(!V)return;a.DD.isDragging&&a.DD.node.preventDefault()&&D.cancelable&&D.preventDefault(),this.setPointersPositions(D);var et=!a.DD.isDragging||i.Konva.hitOnDragEnabled;if(!et)return;var it={};let ut=!1;var Tt=this._getTargetShape(K);this._changedPointerPositions.forEach(Gt=>{const Pt=c.getCapturedShape(Gt.id)||this.getIntersection(Gt),Nt=Gt.id,qt={evt:D,pointerId:Nt};var Qt=Tt!==Pt;if(Qt&&Tt&&(Tt._fireAndBubble(V.pointerout,{...qt},Pt),Tt._fireAndBubble(V.pointerleave,{...qt},Pt)),Pt){if(it[Pt._id])return;it[Pt._id]=!0}Pt&&Pt.isListening()?(ut=!0,Qt&&(Pt._fireAndBubble(V.pointerover,{...qt},Tt),Pt._fireAndBubble(V.pointerenter,{...qt},Tt),this[K+"targetShape"]=Pt),Pt._fireAndBubble(V.pointermove,{...qt})):Tt&&(this._fire(V.pointerover,{evt:D,target:this,currentTarget:this,pointerId:Nt}),this[K+"targetShape"]=null)}),ut||this._fire(V.pointermove,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(D){const V=E(D.type),K=T(D.type);if(!V)return;this.setPointersPositions(D);const et=this[K+"ClickStartShape"],it=this[K+"ClickEndShape"];var ut={};let Tt=!1;this._changedPointerPositions.forEach(Gt=>{const Pt=c.getCapturedShape(Gt.id)||this.getIntersection(Gt);if(Pt){if(Pt.releaseCapture(Gt.id),ut[Pt._id])return;ut[Pt._id]=!0}const Nt=Gt.id,qt={evt:D,pointerId:Nt};let Qt=!1;i.Konva["_"+K+"InDblClickWindow"]?(Qt=!0,clearTimeout(this[K+"DblTimeout"])):a.DD.justDragged||(i.Konva["_"+K+"InDblClickWindow"]=!0,clearTimeout(this[K+"DblTimeout"])),this[K+"DblTimeout"]=setTimeout(function(){i.Konva["_"+K+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Pt&&Pt.isListening()?(Tt=!0,this[K+"ClickEndShape"]=Pt,Pt._fireAndBubble(V.pointerup,{...qt}),i.Konva["_"+K+"ListenClick"]&&et&&et===Pt&&(Pt._fireAndBubble(V.pointerclick,{...qt}),Qt&&it&&it===Pt&&Pt._fireAndBubble(V.pointerdblclick,{...qt}))):(this[K+"ClickEndShape"]=null,i.Konva["_"+K+"ListenClick"]&&this._fire(V.pointerclick,{evt:D,target:this,currentTarget:this,pointerId:Nt}),Qt&&this._fire(V.pointerdblclick,{evt:D,target:this,currentTarget:this,pointerId:Nt}))}),Tt||this._fire(V.pointerup,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+K+"ListenClick"]=!1,D.cancelable&&K!=="touch"&&D.preventDefault()}_contextmenu(D){this.setPointersPositions(D);var V=this.getIntersection(this.getPointerPosition());V&&V.isListening()?V._fireAndBubble(J,{evt:D}):this._fire(J,{evt:D,target:this,currentTarget:this})}_wheel(D){this.setPointersPositions(D);var V=this.getIntersection(this.getPointerPosition());V&&V.isListening()?V._fireAndBubble(Ct,{evt:D}):this._fire(Ct,{evt:D,target:this,currentTarget:this})}_pointercancel(D){this.setPointersPositions(D);const V=c.getCapturedShape(D.pointerId)||this.getIntersection(this.getPointerPosition());V&&V._fireAndBubble(N,c.createEvent(D)),c.releaseCapture(D.pointerId)}_lostpointercapture(D){c.releaseCapture(D.pointerId)}setPointersPositions(D){var V=this._getContentPosition(),K=null,et=null;D=D||window.event,D.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(D.touches,it=>{this._pointerPositions.push({id:it.identifier,x:(it.clientX-V.left)/V.scaleX,y:(it.clientY-V.top)/V.scaleY})}),Array.prototype.forEach.call(D.changedTouches||D.touches,it=>{this._changedPointerPositions.push({id:it.identifier,x:(it.clientX-V.left)/V.scaleX,y:(it.clientY-V.top)/V.scaleY})})):(K=(D.clientX-V.left)/V.scaleX,et=(D.clientY-V.top)/V.scaleY,this.pointerPos={x:K,y:et},this._pointerPositions=[{x:K,y:et,id:t.Util._getFirstPointerId(D)}],this._changedPointerPositions=[{x:K,y:et,id:t.Util._getFirstPointerId(D)}])}_setPointerPosition(D){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(D)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var D=this.content.getBoundingClientRect();return{top:D.top,left:D.left,scaleX:D.width/this.content.clientWidth||1,scaleY:D.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 D=this.container();if(!D)throw"Stage has no container. A container is required.";D.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"),D.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(D){D.batchDraw()}),this}}e.Stage=C,C.prototype.nodeType=l,(0,s._registerNode)(C),r.Factory.addGetterSetter(C,"container")})(xp);const ER=un(xp),CR=Wt({__proto__:null,default:ER},[xp]),PR=Jt(CR);var Gs={},$p={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ye,r=or,n=ge,i=ur,o=_e,a=ye,s=S2;var c="hasShadow",l="shadowRGBA",u="patternImage",d="linearGradient",f="radialGradient";let h;function p(){return h||(h=r.Util.createCanvasElement().getContext("2d"),h)}e.shapes={};function g(G){const H=this.attrs.fillRule;H?G.fill(H):G.fill()}function v(G){G.stroke()}function _(G){G.fill()}function y(G){G.stroke()}function m(){this._clearCache(c)}function x(){this._clearCache(l)}function N(){this._clearCache(u)}function $(){this._clearCache(d)}function A(){this._clearCache(f)}class R extends i.Node{constructor(H){super(H);let Y;for(;Y=r.Util.getRandomColor(),!(Y&&!(Y in e.shapes)););this.colorKey=Y,e.shapes[Y]=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 H=p();const Y=H.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(Y&&Y.setTransform){const J=new r.Transform;J.translate(this.fillPatternX(),this.fillPatternY()),J.rotate(t.Konva.getAngle(this.fillPatternRotation())),J.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),J.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const nt=J.getMatrix(),rt=typeof DOMMatrix>"u"?{a:nt[0],b:nt[1],c:nt[2],d:nt[3],e:nt[4],f:nt[5]}:new DOMMatrix(nt);Y.setTransform(rt)}return Y}}_getLinearGradient(){return this._getCache(d,this.__getLinearGradient)}__getLinearGradient(){var H=this.fillLinearGradientColorStops();if(H){for(var Y=p(),J=this.fillLinearGradientStartPoint(),nt=this.fillLinearGradientEndPoint(),rt=Y.createLinearGradient(J.x,J.y,nt.x,nt.y),lt=0;lt<H.length;lt+=2)rt.addColorStop(H[lt],H[lt+1]);return rt}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){var H=this.fillRadialGradientColorStops();if(H){for(var Y=p(),J=this.fillRadialGradientStartPoint(),nt=this.fillRadialGradientEndPoint(),rt=Y.createRadialGradient(J.x,J.y,this.fillRadialGradientStartRadius(),nt.x,nt.y,this.fillRadialGradientEndRadius()),lt=0;lt<H.length;lt+=2)rt.addColorStop(H[lt],H[lt+1]);return rt}}getShadowRGBA(){return this._getCache(l,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var H=r.Util.colorToRGBA(this.shadowColor());if(H)return"rgba("+H.r+","+H.g+","+H.b+","+H.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 H=this.hitStrokeWidth();return H==="auto"?this.hasStroke():this.strokeEnabled()&&!!H}intersects(H){var Y=this.getStage();if(!Y)return!1;const J=Y.bufferHitCanvas;return J.getContext().clear(),this.drawHit(J,void 0,!0),J.context.getImageData(Math.round(H.x),Math.round(H.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(H){var Y;if(!this.getStage()||!(!((Y=this.attrs.perfectDrawEnabled)!==null&&Y!==void 0)||Y))return!1;const J=H||this.hasFill(),nt=this.hasStroke(),rt=this.getAbsoluteOpacity()!==1;if(J&&nt&&rt)return!0;const lt=this.hasShadow(),xt=this.shadowForStrokeEnabled();return!!(J&&nt&&lt&&xt)}setStrokeHitEnabled(H){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),H?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var H=this.size();return{x:this._centroid?-H.width/2:0,y:this._centroid?-H.height/2:0,width:H.width,height:H.height}}getClientRect(H={}){const Y=H.skipTransform,J=H.relativeTo,nt=this.getSelfRect(),rt=!H.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,lt=nt.width+rt,xt=nt.height+rt,Ct=!H.skipShadow&&this.hasShadow(),$t=Ct?this.shadowOffsetX():0,at=Ct?this.shadowOffsetY():0,X=lt+Math.abs($t),T=xt+Math.abs(at),E=Ct&&this.shadowBlur()||0,k=X+E*2,b=T+E*2,C={width:k,height:b,x:-(rt/2+E)+Math.min($t,0)+nt.x,y:-(rt/2+E)+Math.min(at,0)+nt.y};return Y?C:this._transformedRect(C,J)}drawScene(H,Y){var J=this.getLayer(),nt=H||J.getCanvas(),rt=nt.getContext(),lt=this._getCanvasCache(),xt=this.getSceneFunc(),Ct=this.hasShadow(),$t,at,X,T=nt.isCache,E=Y===this;if(!this.isVisible()&&!E)return this;if(lt){rt.save();var k=this.getAbsoluteTransform(Y).getMatrix();return rt.transform(k[0],k[1],k[2],k[3],k[4],k[5]),this._drawCachedSceneCanvas(rt),rt.restore(),this}if(!xt)return this;if(rt.save(),this._useBufferCanvas()&&!T){$t=this.getStage(),at=$t.bufferCanvas,X=at.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var b=this.getAbsoluteTransform(Y).getMatrix();X.transform(b[0],b[1],b[2],b[3],b[4],b[5]),xt.call(this,X,this),X.restore();var C=at.pixelRatio;Ct&&rt._applyShadow(this),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this),rt.drawImage(at._canvas,0,0,at.width/C,at.height/C)}else{if(rt._applyLineJoin(this),!E){var b=this.getAbsoluteTransform(Y).getMatrix();rt.transform(b[0],b[1],b[2],b[3],b[4],b[5]),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this)}Ct&&rt._applyShadow(this),xt.call(this,rt,this)}return rt.restore(),this}drawHit(H,Y,J=!1){if(!this.shouldDrawHit(Y,J))return this;var nt=this.getLayer(),rt=H||nt.hitCanvas,lt=rt&&rt.getContext(),xt=this.hitFunc()||this.sceneFunc(),Ct=this._getCanvasCache(),$t=Ct&&Ct.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()"),$t){lt.save();var at=this.getAbsoluteTransform(Y).getMatrix();return lt.transform(at[0],at[1],at[2],at[3],at[4],at[5]),this._drawCachedHitCanvas(lt),lt.restore(),this}if(!xt)return this;if(lt.save(),lt._applyLineJoin(this),this!==Y){var X=this.getAbsoluteTransform(Y).getMatrix();lt.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return xt.call(this,lt,this),lt.restore(),this}drawHitFromCache(H=0){var Y=this._getCanvasCache(),J=this._getCachedSceneCanvas(),nt=Y.hit,rt=nt.getContext(),lt=nt.getWidth(),xt=nt.getHeight(),Ct,$t,at,X,T,E;rt.clear(),rt.drawImage(J._canvas,0,0,lt,xt);try{for(Ct=rt.getImageData(0,0,lt,xt),$t=Ct.data,at=$t.length,X=r.Util._hexToRgb(this.colorKey),T=0;T<at;T+=4)E=$t[T+3],E>H?($t[T]=X.r,$t[T+1]=X.g,$t[T+2]=X.b,$t[T+3]=255):$t[T+3]=0;rt.putImageData(Ct,0,0)}catch(k){r.Util.error("Unable to draw hit graph from cached scene canvas. "+k.message)}return this}hasPointerCapture(H){return s.hasPointerCapture(H,this)}setPointerCapture(H){s.setPointerCapture(H,this)}releaseCapture(H){s.releaseCapture(H,this)}}e.Shape=R,R.prototype._fillFunc=g,R.prototype._strokeFunc=v,R.prototype._fillFuncHit=_,R.prototype._strokeFuncHit=y,R.prototype._centroid=!1,R.prototype.nodeType="Shape",(0,a._registerNode)(R),R.prototype.eventListeners={},R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",m),R.prototype.on.call(R.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",N),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",$),R.prototype.on.call(R.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",A),n.Factory.addGetterSetter(R,"stroke",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"strokeWidth",2,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(R,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(R,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),n.Factory.addGetterSetter(R,"lineJoin"),n.Factory.addGetterSetter(R,"lineCap"),n.Factory.addGetterSetter(R,"sceneFunc"),n.Factory.addGetterSetter(R,"hitFunc"),n.Factory.addGetterSetter(R,"dash"),n.Factory.addGetterSetter(R,"dashOffset",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowColor",void 0,(0,o.getStringValidator)()),n.Factory.addGetterSetter(R,"shadowBlur",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOpacity",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(R,"shadowOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"shadowOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternImage"),n.Factory.addGetterSetter(R,"fill",void 0,(0,o.getStringOrGradientValidator)()),n.Factory.addGetterSetter(R,"fillPatternX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternY",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(R,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(R,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(R,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(R,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(R,"fillEnabled",!0),n.Factory.addGetterSetter(R,"strokeEnabled",!0),n.Factory.addGetterSetter(R,"shadowEnabled",!0),n.Factory.addGetterSetter(R,"dashEnabled",!0),n.Factory.addGetterSetter(R,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(R,"fillPriority","color"),n.Factory.addComponentsGetterSetter(R,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(R,"fillPatternScaleX",1,(0,o.getNumberValidator)()),n.Factory.addGetterSetter(R,"fillPatternScaleY",1,(0,o.getNumberValidator)()),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(R,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(R,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(R,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(R,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(R,"fillPatternRotation",0),n.Factory.addGetterSetter(R,"fillRule",void 0,(0,o.getStringValidator)()),n.Factory.backCompat(R,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})($p);const TR=un($p),OR=Wt({__proto__:null,default:TR},[$p]),xr=Jt(OR);Object.defineProperty(Gs,"__esModule",{value:!0});var $2=Gs.Layer=void 0;const Ti=or,kp=wu,Sa=ur,Ep=ge,k2=mu,AR=_e,NR=xr,RR=ye;var jR="#",IR="beforeDraw",DR="draw",E2=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],FR=E2.length;let $a=class extends kp.Container{constructor(t){super(t),this.canvas=new k2.SceneCanvas,this.hitCanvas=new k2.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(){Sa.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=Sa.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(Sa.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(Sa.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 Sa.Node.prototype.remove.call(this),t&&t.parentNode&&Ti.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"&&Ti.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(),Sa.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(){Ti.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Ti.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Ti.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<FR;i++){const o=E2[i],a=this._getIntersection({x:t.x+o.x*r,y:t.y+o.y*r}),s=a.shape;if(s)return s;if(n=!!a.antialiased,!a.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=Ti.Util._rgbToHex(n[0],n[1],n[2]),a=NR.shapes[jR+o];return a?{shape:a}:{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(IR,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),kp.Container.prototype.drawScene.call(this,i,r),this._fire(DR,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),kp.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Ti.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Ti.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 Ti.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};$2=Gs.Layer=$a,$a.prototype.nodeType="Layer",(0,RR._registerNode)($a),Ep.Factory.addGetterSetter($a,"imageSmoothingEnabled",!0),Ep.Factory.addGetterSetter($a,"clearBeforeDraw",!0),Ep.Factory.addGetterSetter($a,"hitGraphEnabled",!0,(0,AR.getBooleanValidator)());const MR=Wt({__proto__:null,get Layer(){return $2},default:Gs},[Gs]),C2=Jt(MR);var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});var P2=Vs.FastLayer=void 0;const LR=or,UR=C2,zR=ye;let Cp=class extends UR.Layer{constructor(t){super(t),this.listening(!1),LR.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};P2=Vs.FastLayer=Cp,Cp.prototype.nodeType="FastLayer",(0,zR._registerNode)(Cp);const GR=Wt({__proto__:null,get FastLayer(){return P2},default:Vs},[Vs]),VR=Jt(GR);var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});var T2=Bs.Group=void 0;const BR=or,HR=wu,qR=ye;let Pp=class extends HR.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&BR.Util.throw("You may only add groups and shapes to groups.")}};T2=Bs.Group=Pp,Pp.prototype.nodeType="Group",(0,qR._registerNode)(Pp);const KR=Wt({__proto__:null,get Group(){return T2},default:Bs},[Bs]),Tp=Jt(KR);var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});var O2=Hs.Animation=void 0;const Op=ye,A2=or,Ap=function(){return Op.glob.performance&&Op.glob.performance.now?function(){return Op.glob.performance.now()}:function(){return new Date().getTime()}}();let xu=class Ga{constructor(t,r){this.id=Ga.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Ap(),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=Ga.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=Ap(),Ga._addAnimation(this),this}stop(){return Ga._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,a=i.func;i._updateFrameObject(Ap());const s=o.length;let c;if(a?c=a.call(i,i.frame)!==!1:c=!0,!!c)for(let l=0;l<s;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=Ga;t.animations.length?(t._runFrames(),A2.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,A2.Util.requestAnimFrame(this._animationLoop))}};O2=Hs.Animation=xu,xu.animations=[],xu.animIdCounter=0,xu.animRunning=!1;const YR=Wt({__proto__:null,get Animation(){return O2},default:Hs},[Hs]),Np=Jt(YR);var Rp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=or,r=Np,n=ur,i=ye;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},a=1,s=2,c=3,l=0,u=["fill","stroke","shadowColor"];class d{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=s,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===s?this.setTime(p):this.state===c&&this.setTime(this.duration-p)}pause(){this.state=a,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 d(N,function(A){g._tweenFunc(A)},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,$,A,R,G;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?(R=y,y=t.Util._prepareArrayForTween(y,g,v.closed())):(A=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 H=t.Util.colorToRGBA(y[N]);G=t.Util.colorToRGBA(g[N]),y[N]=H,m.push({r:G.r-H.r,g:G.g-H.g,b:G.b-H.b,a:G.a-H.a})}else for(N=0;N<$;N++)m.push(g[N]-y[N]);else u.indexOf(p)!==-1?(y=t.Util.colorToRGBA(y),G=t.Util.colorToRGBA(g),m={r:G.r-y.r,g:G.g-y.g,b:G.b-y.b,a:G.a-y.a}):m=g-y;f.attrs[_][this._id][p]={start:y,diff:m,end:g,trueEnd:A,trueStart:R},f.tweens[_][p]=this._id}_tweenFunc(p){var g=this.node,v=f.attrs[g._id][this._id],_,y,m,x,N,$,A,R;for(_ in v){if(y=v[_],m=y.start,x=y.diff,R=y.end,t.Util._isArray(m))if(N=[],A=Math.max(m.length,R.length),_.indexOf("fill")===0)for($=0;$<A;$++)$%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;$<A;$++)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(h){var p=h.onFinish;h.node=this,h.onFinish=function(){this.destroy(),p&&p()};var g=new f(h);g.play()},e.Easings={BackEaseIn(h,p,g,v){var _=1.70158;return g*(h/=v)*h*((_+1)*h-_)+p},BackEaseOut(h,p,g,v){var _=1.70158;return g*((h=h/v-1)*h*((_+1)*h+_)+1)+p},BackEaseInOut(h,p,g,v){var _=1.70158;return(h/=v/2)<1?g/2*(h*h*(((_*=1.525)+1)*h-_))+p:g/2*((h-=2)*h*(((_*=1.525)+1)*h+_)+2)+p},ElasticEaseIn(h,p,g,v,_,y){var m=0;return h===0?p:(h/=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*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y))+p)},ElasticEaseOut(h,p,g,v,_,y){var m=0;return h===0?p:(h/=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*h)*Math.sin((h*v-m)*(2*Math.PI)/y)+g+p)},ElasticEaseInOut(h,p,g,v,_,y){var m=0;return h===0?p:(h/=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/_),h<1?-.5*(_*Math.pow(2,10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y))+p:_*Math.pow(2,-10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/y)*.5+g+p)},BounceEaseOut(h,p,g,v){return(h/=v)<1/2.75?g*(7.5625*h*h)+p:h<2/2.75?g*(7.5625*(h-=1.5/2.75)*h+.75)+p:h<2.5/2.75?g*(7.5625*(h-=2.25/2.75)*h+.9375)+p:g*(7.5625*(h-=2.625/2.75)*h+.984375)+p},BounceEaseIn(h,p,g,v){return g-e.Easings.BounceEaseOut(v-h,0,g,v)+p},BounceEaseInOut(h,p,g,v){return h<v/2?e.Easings.BounceEaseIn(h*2,0,g,v)*.5+p:e.Easings.BounceEaseOut(h*2-v,0,g,v)*.5+g*.5+p},EaseIn(h,p,g,v){return g*(h/=v)*h+p},EaseOut(h,p,g,v){return-g*(h/=v)*(h-2)+p},EaseInOut(h,p,g,v){return(h/=v/2)<1?g/2*h*h+p:-g/2*(--h*(h-2)-1)+p},StrongEaseIn(h,p,g,v){return g*(h/=v)*h*h*h*h+p},StrongEaseOut(h,p,g,v){return g*((h=h/v-1)*h*h*h*h+1)+p},StrongEaseInOut(h,p,g,v){return(h/=v/2)<1?g/2*h*h*h*h*h+p:g/2*((h-=2)*h*h*h*h+2)+p},Linear(h,p,g,v){return g*h/v+p}}})(Rp);const XR=un(Rp),WR=Wt({__proto__:null,default:XR},[Rp]),JR=Jt(WR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ye,r=or,n=ur,i=wu,o=PR,a=C2,s=VR,c=Tp,l=yp,u=xr,d=Np,f=JR,h=r2,p=mu;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:a.Layer,FastLayer:s.FastLayer,Group:c.Group,DD:l.DD,Shape:u.Shape,shapes:u.shapes,Animation:d.Animation,Tween:f.Tween,Easings:f.Easings,Context:h.Context,Canvas:p.Canvas}),e.default=e.Konva})(fp);const QR=un(fp),ZR=Wt({__proto__:null,default:QR},[fp]),tj=Jt(ZR);var qs={};Object.defineProperty(qs,"__esModule",{value:!0});var N2=qs.Arc=void 0;const Su=ge,ej=xr,R2=ye,$u=_e,rj=ye;let Oi=class extends ej.Shape{_sceneFunc(t){var r=R2.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=R2.Konva.getAngle(n?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),a=1,s=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=a*r,d=s*(s>0?t:r),f=c*(c>0?r:t);return{x:l,y:n?-1*f:d,width:u-l,height:f-d}}};N2=qs.Arc=Oi,Oi.prototype._centroid=!0,Oi.prototype.className="Arc",Oi.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,rj._registerNode)(Oi),Su.Factory.addGetterSetter(Oi,"innerRadius",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"outerRadius",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"angle",0,(0,$u.getNumberValidator)()),Su.Factory.addGetterSetter(Oi,"clockwise",!1,(0,$u.getBooleanValidator)());const nj=Wt({__proto__:null,get Arc(){return N2},default:qs},[qs]),ij=Jt(nj);var Ks={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});var j2=Ys.Line=void 0;const ku=ge,oj=xr,I2=_e,aj=ye;function jp(e,t,r,n,i,o,a){var s=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=a*s/(s+c),u=a*c/(s+c),d=r-l*(i-e),f=n-l*(o-t),h=r+u*(i-e),p=n+u*(o-t);return[d,f,h,p]}function D2(e,t){var r=e.length,n=[],i,o;for(i=2;i<r-2;i+=2)o=jp(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}let Ji=class extends oj.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(),a=this.bezier(),s,c,l;if(n){if(t.beginPath(),t.moveTo(r[0],r[1]),i!==0&&n>4){for(s=this.getTensionPoints(),c=s.length,l=o?0:4,o||t.quadraticCurveTo(s[0],s[1],s[2],s[3]);l<c-2;)t.bezierCurveTo(s[l++],s[l++],s[l++],s[l++],s[l++],s[l++]);o||t.quadraticCurveTo(s[c-2],s[c-1],r[n-2],r[n-1])}else if(a)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():D2(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),r=t.length,n=this.tension(),i=jp(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=jp(t[r-4],t[r-3],t[r-2],t[r-1],t[0],t[1],n),a=D2(t,n),s=[i[2],i[3]].concat(a).concat([o[0],o[1],t[r-2],t[r-1],o[2],o[3],i[0],i[1],t[0],t[1]]);return s}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],a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],r=Math.min(r,a),n=Math.max(n,a),i=Math.min(i,s),o=Math.max(o,s);return{x:r,y:i,width:n-r,height:o-i}}};j2=Ys.Line=Ji,Ji.prototype.className="Line",Ji.prototype._attrsAffectingSize=["points","bezier","tension"],(0,aj._registerNode)(Ji),ku.Factory.addGetterSetter(Ji,"closed",!1),ku.Factory.addGetterSetter(Ji,"bezier",!1),ku.Factory.addGetterSetter(Ji,"tension",0,(0,I2.getNumberValidator)()),ku.Factory.addGetterSetter(Ji,"points",[],(0,I2.getNumberArrayValidator)());const sj=Wt({__proto__:null,get Line(){return j2},default:Ys},[Ys]),F2=Jt(sj);var Xs={},Ip={};(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=(a,s,c)=>{let l,u,d;l=c/2,u=0;for(let f=0;f<20;f++)d=l*e.tValues[20][f]+l,u+=e.cValues[20][f]*n(a,s,d);return l*u};e.getCubicArcLength=t;const r=(a,s,c)=>{c===void 0&&(c=1);const l=a[0]-2*a[1]+a[2],u=s[0]-2*s[1]+s[2],d=2*a[1]-2*a[0],f=2*s[1]-2*s[0],h=4*(l*l+u*u),p=4*(l*d+u*f),g=d*d+f*f;if(h===0)return c*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(s[2]-s[0],2));const v=p/(2*h),_=g/h,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(h)/2*(y*x-v*N+$)};e.getQuadraticArcLength=r;function n(a,s,c){const l=i(1,c,a),u=i(1,c,s),d=l*l+u*u;return Math.sqrt(d)}const i=(a,s,c)=>{const l=c.length-1;let u,d;if(l===0)return 0;if(a===0){d=0;for(let f=0;f<=l;f++)d+=e.binomialCoefficients[l][f]*Math.pow(1-s,l-f)*Math.pow(s,f)*c[f];return d}else{u=new Array(l);for(let f=0;f<l;f++)u[f]=l*(c[f+1]-c[f]);return i(a-1,s,u)}},o=(a,s,c)=>{let l=1,u=a/s,d=(a-c(u))/s,f=0;for(;l>.001;){const h=c(u+d),p=Math.abs(a-h)/s;if(p<l)l=p,u+=d;else{const g=c(u-d),v=Math.abs(a-g)/s;v<l?(l=v,u-=d):d/=2}if(f++,f>500)break}return u};e.t2length=o})(Ip);const lj=un(Ip),cj=Wt({__proto__:null,default:lj},[Ip]),uj=Jt(cj);Object.defineProperty(Xs,"__esModule",{value:!0});var M2=Xs.Path=void 0;const hj=ge,dj=xr,fj=ye,ka=uj;let Ws=class ln extends dj.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=ln.parsePathData(this.data()),this.pathLength=ln.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,a=r[i].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var s=a[0],c=a[1],l=a[2],u=a[3],d=a[4],f=a[5],h=a[6],p=a[7],g=l>u?l:u,v=l>u?1:l/u,_=l>u?u/l:1;t.translate(s,c),t.rotate(h),t.scale(v,_),t.arc(0,0,g,d,d+f,1-p),t.scale(1/v,1/_),t.rotate(-h),t.translate(-s,-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],d=l.points[5],f=l.points[4]+d,h=Math.PI/180;if(Math.abs(u-f)<h&&(h=Math.abs(u-f)),d<0)for(let p=u-h;p>f;p-=h){const g=ln.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+h;p<f;p+=h){const g=ln.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=ln.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],a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],isNaN(a)||(r=Math.min(r,a),n=Math.max(n,a)),isNaN(s)||(i=Math.min(i,s),o=Math.max(o,s));return{x:r,y:i,width:n-r,height:o-i}}getLength(){return this.pathLength}getPointAtLength(t){return ln.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 a=r[i],s=a.points;switch(a.command){case"L":return ln.getPointOnLine(t,a.start.x,a.start.y,s[0],s[1]);case"C":return ln.getPointOnCubicBezier((0,ka.t2length)(t,ln.getPathLength(r),g=>(0,ka.getCubicArcLength)([a.start.x,s[0],s[2],s[4]],[a.start.y,s[1],s[3],s[5]],g)),a.start.x,a.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return ln.getPointOnQuadraticBezier((0,ka.t2length)(t,ln.getPathLength(r),g=>(0,ka.getQuadraticArcLength)([a.start.x,s[0],s[2]],[a.start.y,s[1],s[3]],g)),a.start.x,a.start.y,s[0],s[1],s[2],s[3]);case"A":var c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],h=s[5],p=s[6];return f+=h*t/a.pathLength,ln.getPointOnEllipticalArc(c,l,u,d,f,p)}return null}static getPointOnLine(t,r,n,i,o,a,s){a===void 0&&(a=r),s===void 0&&(s=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,d;if(i===r)d={x:a,y:s+u};else if((s-n)/(a-r+1e-8)===c)d={x:a+l,y:s+u};else{var f,h,p=this.getLineLength(r,n,i,o),g=(a-r)*(i-r)+(s-n)*(o-n);g=g/(p*p),f=r+g*(i-r),h=n+g*(o-n);var v=this.getLineLength(a,s,f,h),_=Math.sqrt(t*t-v*v);l=Math.sqrt(_*_/(1+c*c)),i<r&&(l*=-1),u=c*l,d={x:f+l,y:h+u}}return d}static getPointOnCubicBezier(t,r,n,i,o,a,s,c,l){function u(v){return v*v*v}function d(v){return 3*v*v*(1-v)}function f(v){return 3*v*(1-v)*(1-v)}function h(v){return(1-v)*(1-v)*(1-v)}var p=c*u(t)+a*d(t)+i*f(t)+r*h(t),g=l*u(t)+s*d(t)+o*f(t)+n*h(t);return{x:p,y:g}}static getPointOnQuadraticBezier(t,r,n,i,o,a,s){function c(h){return h*h}function l(h){return 2*h*(1-h)}function u(h){return(1-h)*(1-h)}var d=a*c(t)+i*l(t)+r*u(t),f=s*c(t)+o*l(t)+n*u(t);return{x:d,y:f}}static getPointOnEllipticalArc(t,r,n,i,o,a){var s=Math.cos(a),c=Math.sin(a),l={x:n*Math.cos(o),y:i*Math.sin(o)};return{x:t+(l.x*s-l.y*c),y:r+(l.x*c+l.y*s)}}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("|"),a=[],s=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,d;for(i=1;i<o.length;i++){var f=o[i],h=f.charAt(0);for(f=f.slice(1),s.length=0;d=u.exec(f);)s.push(d[0]);for(var p=[],g=0,v=s.length;g<v;g++){if(s[g]==="00"){p.push(0,0);continue}var _=parseFloat(s[g]);isNaN(_)?p.push(0):p.push(_)}for(;p.length>0&&!isNaN(p[0]);){var y="",m=[],x=c,N=l,$,A,R,G,H,Y,J,nt,rt,lt;switch(h){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(),Ct=p.shift();if(c+=xt,l+=Ct,y="M",a.length>2&&a[a.length-1].command==="z"){for(var $t=a.length-2;$t>=0;$t--)if(a[$t].command==="M"){c=a[$t].points[0]+xt,l=a[$t].points[1]+Ct;break}}m.push(c,l),h="l";break;case"M":c=p.shift(),l=p.shift(),y="M",m.push(c,l),h="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":A=c,R=l,$=a[a.length-1],$.command==="C"&&(A=c+(c-$.points[2]),R=l+(l-$.points[3])),m.push(A,R,p.shift(),p.shift()),c=p.shift(),l=p.shift(),y="C",m.push(c,l);break;case"s":A=c,R=l,$=a[a.length-1],$.command==="C"&&(A=c+(c-$.points[2]),R=l+(l-$.points[3])),m.push(A,R,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":A=c,R=l,$=a[a.length-1],$.command==="Q"&&(A=c+(c-$.points[0]),R=l+(l-$.points[1])),c=p.shift(),l=p.shift(),y="Q",m.push(A,R,c,l);break;case"t":A=c,R=l,$=a[a.length-1],$.command==="Q"&&(A=c+(c-$.points[0]),R=l+(l-$.points[1])),c+=p.shift(),l+=p.shift(),y="Q",m.push(A,R,c,l);break;case"A":G=p.shift(),H=p.shift(),Y=p.shift(),J=p.shift(),nt=p.shift(),rt=c,lt=l,c=p.shift(),l=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,J,nt,G,H,Y);break;case"a":G=p.shift(),H=p.shift(),Y=p.shift(),J=p.shift(),nt=p.shift(),rt=c,lt=l,c+=p.shift(),l+=p.shift(),y="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,J,nt,G,H,Y);break}a.push({command:y||h,points:m,start:{x,y:N},pathLength:this.calcLength(x,N,y||h,m)})}(h==="z"||h==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,i){var o,a,s,c,l=ln;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,ka.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,ka.getQuadraticArcLength)([t,i[0],i[2]],[r,i[1],i[3]],1);case"A":o=0;var u=i[4],d=i[5],f=i[4]+d,h=Math.PI/180;if(Math.abs(u-f)<h&&(h=Math.abs(u-f)),a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(c=u-h;c>f;c-=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(c=u+h;c<f;c+=h)s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=l.getLineLength(a.x,a.y,s.x,s.y),o}return 0}static convertEndpointToCenterParameterization(t,r,n,i,o,a,s,c,l){var u=l*(Math.PI/180),d=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,h=d*d/(s*s)+f*f/(c*c);h>1&&(s*=Math.sqrt(h),c*=Math.sqrt(h));var p=Math.sqrt((s*s*(c*c)-s*s*(f*f)-c*c*(d*d))/(s*s*(f*f)+c*c*(d*d)));o===a&&(p*=-1),isNaN(p)&&(p=0);var g=p*s*f/c,v=p*-c*d/s,_=(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(H){return Math.sqrt(H[0]*H[0]+H[1]*H[1])},x=function(H,Y){return(H[0]*Y[0]+H[1]*Y[1])/(m(H)*m(Y))},N=function(H,Y){return(H[0]*Y[1]<H[1]*Y[0]?-1:1)*Math.acos(x(H,Y))},$=N([1,0],[(d-g)/s,(f-v)/c]),A=[(d-g)/s,(f-v)/c],R=[(-1*d-g)/s,(-1*f-v)/c],G=N(A,R);return x(A,R)<=-1&&(G=Math.PI),x(A,R)>=1&&(G=0),a===0&&G>0&&(G=G-2*Math.PI),a===1&&G<0&&(G=G+2*Math.PI),[_,y,s,c,$,G,u,a]}};M2=Xs.Path=Ws,Ws.prototype.className="Path",Ws.prototype._attrsAffectingSize=["data"],(0,fj._registerNode)(Ws),hj.Factory.addGetterSetter(Ws,"data");const pj=Wt({__proto__:null,get Path(){return M2},default:Xs},[Xs]),Dp=Jt(pj);Object.defineProperty(Ks,"__esModule",{value:!0});var L2=Ks.Arrow=void 0;const Eu=ge,mj=F2,U2=_e,gj=ye,z2=Dp;let Fo=class extends mj.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 a=this.pointerLength(),s=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[s-2],n[s-1]],h=z2.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=z2.Path.getPointOnQuadraticBezier(Math.min(1,1-a/h),f[0],f[1],f[2],f[3],f[4],f[5]);c=n[s-2]-p.x,l=n[s-1]-p.y}else c=n[s-2]-n[s-4],l=n[s-1]-n[s-3];var u=(Math.atan2(l,c)+r)%r,d=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[s-2],n[s-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-a,d/2),t.lineTo(-a,-d/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(-a,d/2),t.lineTo(-a,-d/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}}};L2=Ks.Arrow=Fo,Fo.prototype.className="Arrow",(0,gj._registerNode)(Fo),Eu.Factory.addGetterSetter(Fo,"pointerLength",10,(0,U2.getNumberValidator)()),Eu.Factory.addGetterSetter(Fo,"pointerWidth",10,(0,U2.getNumberValidator)()),Eu.Factory.addGetterSetter(Fo,"pointerAtBeginning",!1),Eu.Factory.addGetterSetter(Fo,"pointerAtEnding",!0);const vj=Wt({__proto__:null,get Arrow(){return L2},default:Ks},[Ks]),yj=Jt(vj);var Js={};Object.defineProperty(Js,"__esModule",{value:!0});var G2=Js.Circle=void 0;const _j=ge,bj=xr,wj=_e,xj=ye;class Ea extends bj.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)}}G2=Js.Circle=Ea,Ea.prototype._centroid=!0,Ea.prototype.className="Circle",Ea.prototype._attrsAffectingSize=["radius"],(0,xj._registerNode)(Ea),_j.Factory.addGetterSetter(Ea,"radius",0,(0,wj.getNumberValidator)());const Sj=Wt({__proto__:null,get Circle(){return G2},default:Js},[Js]),$j=Jt(Sj);var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});var V2=Qs.Ellipse=void 0;const Fp=ge,kj=xr,B2=_e,Ej=ye;class Qi extends kj.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)}}V2=Qs.Ellipse=Qi,Qi.prototype.className="Ellipse",Qi.prototype._centroid=!0,Qi.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,Ej._registerNode)(Qi),Fp.Factory.addComponentsGetterSetter(Qi,"radius",["x","y"]),Fp.Factory.addGetterSetter(Qi,"radiusX",0,(0,B2.getNumberValidator)()),Fp.Factory.addGetterSetter(Qi,"radiusY",0,(0,B2.getNumberValidator)());const Cj=Wt({__proto__:null,get Ellipse(){return V2},default:Qs},[Qs]),Pj=Jt(Cj);var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});var H2=Zs.Image=void 0;const Mp=or,Mo=ge,Tj=xr,Oj=ye,tl=_e;let ai=class Y$ extends Tj.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 a;if(o){const s=this.attrs.cropWidth,c=this.attrs.cropHeight;s&&c?a=[o,this.cropX(),this.cropY(),s,c,0,0,r,n]:a=[o,0,0,r,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?Mp.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,a))}_hitFunc(t){var r=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?Mp.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=Mp.Util.createImageElement();i.onload=function(){var o=new Y$({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};H2=Zs.Image=ai,ai.prototype.className="Image",(0,Oj._registerNode)(ai),Mo.Factory.addGetterSetter(ai,"cornerRadius",0,(0,tl.getNumberOrArrayOfNumbersValidator)(4)),Mo.Factory.addGetterSetter(ai,"image"),Mo.Factory.addComponentsGetterSetter(ai,"crop",["x","y","width","height"]),Mo.Factory.addGetterSetter(ai,"cropX",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropY",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropWidth",0,(0,tl.getNumberValidator)()),Mo.Factory.addGetterSetter(ai,"cropHeight",0,(0,tl.getNumberValidator)());const Aj=Wt({__proto__:null,get Image(){return H2},default:Zs},[Zs]),Nj=Jt(Aj);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});var q2=Lo.Tag=X2=Lo.Label=void 0;const Cu=ge,Rj=xr,jj=Tp,Lp=_e,K2=ye;var Y2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Ij="Change.konva",Dj="none",Up="up",zp="right",Gp="down",Vp="left",Fj=Y2.length;let Bp=class extends jj.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<Fj;n++)t.on(Y2[n]+Ij,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),r=this.getTag(),n,i,o,a,s,c,l;if(t&&r){switch(n=t.width(),i=t.height(),o=r.pointerDirection(),a=r.pointerWidth(),l=r.pointerHeight(),s=0,c=0,o){case Up:s=n/2,c=-1*l;break;case zp:s=n+a,c=i/2;break;case Gp:s=n/2,c=i+l;break;case Vp:s=-1*a,c=i/2;break}r.setAttrs({x:-1*s,y:-1*c,width:n,height:i}),t.setAttrs({x:-1*s,y:-1*c})}}};var X2=Lo.Label=Bp;Bp.prototype.className="Label",(0,K2._registerNode)(Bp);let Uo=class extends Rj.Shape{_sceneFunc(t){var r=this.width(),n=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),a=this.pointerHeight(),s=this.cornerRadius();let c=0,l=0,u=0,d=0;typeof s=="number"?c=l=u=d=Math.min(s,r/2,n/2):(c=Math.min(s[0]||0,r/2,n/2),l=Math.min(s[1]||0,r/2,n/2),d=Math.min(s[2]||0,r/2,n/2),u=Math.min(s[3]||0,r/2,n/2)),t.beginPath(),t.moveTo(c,0),i===Up&&(t.lineTo((r-o)/2,0),t.lineTo(r/2,-1*a),t.lineTo((r+o)/2,0)),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),i===zp&&(t.lineTo(r,(n-a)/2),t.lineTo(r+o,n/2),t.lineTo(r,(n+a)/2)),t.lineTo(r,n-d),t.arc(r-d,n-d,d,0,Math.PI/2,!1),i===Gp&&(t.lineTo((r+o)/2,n),t.lineTo(r/2,n+a),t.lineTo((r-o)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===Vp&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-a)/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(),a=this.width(),s=this.height();return o===Up?(r-=i,s+=i):o===Gp?s+=i:o===Vp?(t-=n*1.5,a+=n):o===zp&&(a+=n*1.5),{x:t,y:r,width:a,height:s}}};q2=Lo.Tag=Uo,Uo.prototype.className="Tag",(0,K2._registerNode)(Uo),Cu.Factory.addGetterSetter(Uo,"pointerDirection",Dj),Cu.Factory.addGetterSetter(Uo,"pointerWidth",0,(0,Lp.getNumberValidator)()),Cu.Factory.addGetterSetter(Uo,"pointerHeight",0,(0,Lp.getNumberValidator)()),Cu.Factory.addGetterSetter(Uo,"cornerRadius",0,(0,Lp.getNumberOrArrayOfNumbersValidator)(4));const Mj=Wt({__proto__:null,get Label(){return X2},get Tag(){return q2},default:Lo},[Lo]),Lj=Jt(Mj);var el={};Object.defineProperty(el,"__esModule",{value:!0});var W2=el.Rect=void 0;const Uj=ge,zj=xr,Gj=ye,Vj=or,Bj=_e;class Pu extends zj.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?Vj.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}W2=el.Rect=Pu,Pu.prototype.className="Rect",(0,Gj._registerNode)(Pu),Uj.Factory.addGetterSetter(Pu,"cornerRadius",0,(0,Bj.getNumberOrArrayOfNumbersValidator)(4));const Hj=Wt({__proto__:null,get Rect(){return W2},default:el},[el]),J2=Jt(Hj);var rl={};Object.defineProperty(rl,"__esModule",{value:!0});var Q2=rl.RegularPolygon=void 0;const Z2=ge,qj=xr,tw=_e,Kj=ye;let zo=class extends qj.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(a=>{r=Math.min(r,a.x),n=Math.max(n,a.x),i=Math.min(i,a.y),o=Math.max(o,a.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)}};Q2=rl.RegularPolygon=zo,zo.prototype.className="RegularPolygon",zo.prototype._centroid=!0,zo.prototype._attrsAffectingSize=["radius"],(0,Kj._registerNode)(zo),Z2.Factory.addGetterSetter(zo,"radius",0,(0,tw.getNumberValidator)()),Z2.Factory.addGetterSetter(zo,"sides",0,(0,tw.getNumberValidator)());const Yj=Wt({__proto__:null,get RegularPolygon(){return Q2},default:rl},[rl]),Xj=Jt(Yj);var nl={};Object.defineProperty(nl,"__esModule",{value:!0});var ew=nl.Ring=void 0;const rw=ge,Wj=xr,nw=_e,Jj=ye;var iw=Math.PI*2;let Go=class extends Wj.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,iw,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),iw,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)}};ew=nl.Ring=Go,Go.prototype.className="Ring",Go.prototype._centroid=!0,Go.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,Jj._registerNode)(Go),rw.Factory.addGetterSetter(Go,"innerRadius",0,(0,nw.getNumberValidator)()),rw.Factory.addGetterSetter(Go,"outerRadius",0,(0,nw.getNumberValidator)());const Qj=Wt({__proto__:null,get Ring(){return ew},default:nl},[nl]),Zj=Jt(Qj);var il={};Object.defineProperty(il,"__esModule",{value:!0});var ow=il.Sprite=void 0;const Vo=ge,tI=xr,eI=Np,aw=_e,rI=ye;let si=class extends tI.Shape{constructor(t){super(t),this._updated=!0,this.anim=new eI.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],a=this.frameOffsets(),s=o[i+0],c=o[i+1],l=o[i+2],u=o[i+3],d=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),d)if(a){var f=a[r],h=n*2;t.drawImage(d,s,c,l,u,f[h+0],f[h+1],l,u)}else t.drawImage(d,s,c,l,u,0,0,l,u)}_hitFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],a=this.frameOffsets(),s=o[i+2],c=o[i+3];if(t.beginPath(),a){var l=a[r],u=n*2;t.rect(l[u+0],l[u+1],s,c)}else t.rect(0,0,s,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)}};ow=il.Sprite=si,si.prototype.className="Sprite",(0,rI._registerNode)(si),Vo.Factory.addGetterSetter(si,"animation"),Vo.Factory.addGetterSetter(si,"animations"),Vo.Factory.addGetterSetter(si,"frameOffsets"),Vo.Factory.addGetterSetter(si,"image"),Vo.Factory.addGetterSetter(si,"frameIndex",0,(0,aw.getNumberValidator)()),Vo.Factory.addGetterSetter(si,"frameRate",17,(0,aw.getNumberValidator)()),Vo.Factory.backCompat(si,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const nI=Wt({__proto__:null,get Sprite(){return ow},default:il},[il]),iI=Jt(nI);var ol={};Object.defineProperty(ol,"__esModule",{value:!0});var sw=ol.Star=void 0;const Hp=ge,oI=xr,qp=_e,aI=ye;let Zi=class extends oI.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 a=o%2===0?n:r,s=a*Math.sin(o*Math.PI/i),c=-1*a*Math.cos(o*Math.PI/i);t.lineTo(s,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)}};sw=ol.Star=Zi,Zi.prototype.className="Star",Zi.prototype._centroid=!0,Zi.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,aI._registerNode)(Zi),Hp.Factory.addGetterSetter(Zi,"numPoints",5,(0,qp.getNumberValidator)()),Hp.Factory.addGetterSetter(Zi,"innerRadius",0,(0,qp.getNumberValidator)()),Hp.Factory.addGetterSetter(Zi,"outerRadius",0,(0,qp.getNumberValidator)());const sI=Wt({__proto__:null,get Star(){return sw},default:ol},[ol]),lI=Jt(sI);var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});var lw=Bo.Text=uw=Bo.stringToArray=void 0;const Kp=or,Nr=ge,cI=xr,to=_e,uI=ye;function cw(e){return Array.from(e)}var uw=Bo.stringToArray=cw,Ca="auto",hI="center",hw="inherit",al="justify",dI="Change.konva",fI="2d",dw="-",fw="left",pI="text",mI="Text",gI="top",vI="bottom",pw="middle",mw="normal",yI="px ",Tu=" ",_I="right",gw="rtl",bI="word",wI="char",vw="none",Yp="…",yw=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],xI=yw.length;function SI(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 Xp;function Wp(){return Xp||(Xp=Kp.Util.createCanvasElement().getContext(fI),Xp)}function $I(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function kI(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function EI(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class sr extends cI.Shape{constructor(t){super(EI(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<xI;r++)this.on(yw[r]+dI,this._setTextData);this._setTextData()}_sceneFunc(t){var r=this.textArr,n=r.length;if(this.text()){var i=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,s=this.verticalAlign(),c=this.direction(),l=0,u=this.align(),d=this.getWidth(),f=this.letterSpacing(),h=this.fill(),p=this.textDecoration(),g=p.indexOf("underline")!==-1,v=p.indexOf("line-through")!==-1,_;c=c===hw?t.direction:c;var y=0,y=a/2,m=0,x=0;for(c===gw&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",pw),t.setAttr("textAlign",fw),s===pw?l=(this.getHeight()-n*a-i*2)/2:s===vI&&(l=this.getHeight()-n*a-i*2),t.translate(i,l+i),_=0;_<n;_++){var m=0,x=0,N=r[_],$=N.text,A=N.width,R=N.lastInParagraph,G,H,Y;if(t.save(),u===_I?m+=d-A-i*2:u===hI&&(m+=(d-A-i*2)/2),g){t.save(),t.beginPath(),t.moveTo(m,y+x+Math.round(o/2)),G=$.split(" ").length-1,H=G===0,Y=u===al&&!R?d-i*2:A,t.lineTo(m+Math.round(Y),y+x+Math.round(o/2)),t.lineWidth=o/15;const Ct=this._getLinearGradient();t.strokeStyle=Ct||h,t.stroke(),t.restore()}if(v){t.save(),t.beginPath(),t.moveTo(m,y+x),G=$.split(" ").length-1,H=G===0,Y=u===al&&R&&!H?d-i*2:A,t.lineTo(m+Math.round(Y),y+x),t.lineWidth=o/15;const Ct=this._getLinearGradient();t.strokeStyle=Ct||h,t.stroke(),t.restore()}if(c!==gw&&(f!==0||u===al)){G=$.split(" ").length-1;for(var J=cw($),nt=0;nt<J.length;nt++){var rt=J[nt];rt===" "&&!R&&u===al&&(m+=(d-i*2-A)/G),this._partialTextX=m,this._partialTextY=y+x,this._partialText=rt,t.fillStrokeShape(this),m+=this.measureSize(rt).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+=a)}}}_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=Kp.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(pI,r),this}getWidth(){var t=this.attrs.width===Ca||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===Ca||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 Kp.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=Wp(),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()+Tu+this.fontVariant()+Tu+(this.fontSize()+yI)+SI(this.fontFamily())}_addTextLine(t){this.align()===al&&(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 Wp().measureText(t).width+(n?r*(n-1):0)}_setTextData(){var t=this.text().split(`
43
- `),r=+this.fontSize(),n=0,i=this.lineHeight()*r,o=this.attrs.width,a=this.attrs.height,s=o!==Ca&&o!==void 0,c=a!==Ca&&a!==void 0,l=this.padding(),u=o-l*2,d=a-l*2,f=0,h=this.wrap(),p=h!==vw,g=h!==wI&&p,v=this.ellipsis();this.textArr=[],Wp().font=this._getContextFont();for(var _=v?this._getTextWidth(Yp):0,y=0,m=t.length;y<m;++y){var x=t[y],N=this._getTextWidth(x);if(s&&N>u)for(;x.length>0;){for(var $=0,A=x.length,R="",G=0;$<A;){var H=$+A>>>1,Y=x.slice(0,H+1),J=this._getTextWidth(Y)+_;J<=u?($=H+1,R=Y,G=J):A=H}if(R){if(g){var nt,rt=x[R.length],lt=rt===Tu||rt===dw;lt&&G<=u?nt=R.length:nt=Math.max(R.lastIndexOf(Tu),R.lastIndexOf(dw))+1,nt>0&&($=nt,R=R.slice(0,$),G=this._getTextWidth(R))}R=R.trimRight(),this._addTextLine(R),n=Math.max(n,G),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>d)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){var r=+this.fontSize(),n=this.lineHeight()*r,i=this.attrs.height,o=i!==Ca&&i!==void 0,a=this.padding(),s=i-a*2,c=this.wrap(),l=c!==vw;return!l||o&&t+n>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==Ca&&t!==void 0,n=this.padding(),i=t-n*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(r){var s=this._getTextWidth(a.text+Yp)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Yp)}}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()}}lw=Bo.Text=sr,sr.prototype._fillFunc=$I,sr.prototype._strokeFunc=kI,sr.prototype.className=mI,sr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,uI._registerNode)(sr),Nr.Factory.overWriteSetter(sr,"width",(0,to.getNumberOrAutoValidator)()),Nr.Factory.overWriteSetter(sr,"height",(0,to.getNumberOrAutoValidator)()),Nr.Factory.addGetterSetter(sr,"direction",hw),Nr.Factory.addGetterSetter(sr,"fontFamily","Arial"),Nr.Factory.addGetterSetter(sr,"fontSize",12,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"fontStyle",mw),Nr.Factory.addGetterSetter(sr,"fontVariant",mw),Nr.Factory.addGetterSetter(sr,"padding",0,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"align",fw),Nr.Factory.addGetterSetter(sr,"verticalAlign",gI),Nr.Factory.addGetterSetter(sr,"lineHeight",1,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"wrap",bI),Nr.Factory.addGetterSetter(sr,"ellipsis",!1,(0,to.getBooleanValidator)()),Nr.Factory.addGetterSetter(sr,"letterSpacing",0,(0,to.getNumberValidator)()),Nr.Factory.addGetterSetter(sr,"text","",(0,to.getStringValidator)()),Nr.Factory.addGetterSetter(sr,"textDecoration","");const CI=Wt({__proto__:null,get Text(){return lw},default:Bo,get stringToArray(){return uw}},[Bo]),_w=Jt(CI);var sl={};Object.defineProperty(sl,"__esModule",{value:!0});var bw=sl.TextPath=void 0;const Jp=or,Ln=ge,PI=xr,ll=Dp,Qp=_w,ww=_e,TI=ye;var OI="",xw="normal";function Sw(e){e.fillText(this.partialText,0,0)}function $w(e){e.strokeText(this.partialText,0,0)}let gr=class extends PI.Shape{constructor(t){super(t),this.dummyCanvas=Jp.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 ll.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:ll.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ll.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 a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),r==="underline"&&(a===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 Jp.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 Qp.Text.prototype.setText.call(this,t)}_getContextFont(){return Qp.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(),a=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let s=0;i==="center"&&(s=Math.max(0,this.pathLength/2-a/2)),i==="right"&&(s=Math.max(0,this.pathLength-a));const c=(0,Qp.stringToArray)(this.text());let l=s;for(var u=0;u<c.length;u++){const d=this._getPointAtLength(l);if(!d)return;let f=this._getTextSize(c[u]).width+n;if(c[u]===" "&&i==="justify"){const y=this.text().split(" ").length-1;f+=(this.pathLength-a)/y}const h=this._getPointAtLength(l+f);if(!h)return;const p=ll.Path.getLineLength(d.x,d.y,h.x,h.y);let g=0;if(o)try{g=o(c[u-1],c[u])*this.fontSize()}catch{g=0}d.x+=g,h.x+=g,this.textWidth+=g;const v=ll.Path.getPointOnLine(g+p/2,d.x,d.y,h.x,h.y),_=Math.atan2(h.y-d.y,h.x-d.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:_,p0:d,p1:h}),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,a,s,c=0;c<t.length/2;c++)a=t[c*2],s=t[c*2+1],r=Math.min(r,a),n=Math.max(n,a),i=Math.min(i,s),o=Math.max(o,s);var l=this.fontSize();return{x:r-l/2,y:i-l/2,width:n-r+l,height:o-i+l}}destroy(){return Jp.Util.releaseCanvas(this.dummyCanvas),super.destroy()}};bw=sl.TextPath=gr,gr.prototype._fillFunc=Sw,gr.prototype._strokeFunc=$w,gr.prototype._fillFuncHit=Sw,gr.prototype._strokeFuncHit=$w,gr.prototype.className="TextPath",gr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,TI._registerNode)(gr),Ln.Factory.addGetterSetter(gr,"data"),Ln.Factory.addGetterSetter(gr,"fontFamily","Arial"),Ln.Factory.addGetterSetter(gr,"fontSize",12,(0,ww.getNumberValidator)()),Ln.Factory.addGetterSetter(gr,"fontStyle",xw),Ln.Factory.addGetterSetter(gr,"align","left"),Ln.Factory.addGetterSetter(gr,"letterSpacing",0,(0,ww.getNumberValidator)()),Ln.Factory.addGetterSetter(gr,"textBaseline","middle"),Ln.Factory.addGetterSetter(gr,"fontVariant",xw),Ln.Factory.addGetterSetter(gr,"text",OI),Ln.Factory.addGetterSetter(gr,"textDecoration",null),Ln.Factory.addGetterSetter(gr,"kerningFunc",null);const AI=Wt({__proto__:null,get TextPath(){return bw},default:sl},[sl]),NI=Jt(AI);var cl={};Object.defineProperty(cl,"__esModule",{value:!0});var kw=cl.Transformer=void 0;const Ge=or,je=ge,Ew=ur,RI=xr,jI=J2,Cw=Tp,Un=ye,eo=_e,II=ye;var Pw="tr-konva",DI=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${Pw}`).join(" "),Tw="nodesRect",FI=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],MI={"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 LI="ontouchstart"in Un.Konva._global;function UI(e,t,r){if(e==="rotater")return r;t+=Ge.Util.degToRad(MI[e]||0);var n=(Ge.Util.radToDeg(t)%360+360)%360;return Ge.Util._inRange(n,315+22.5,360)||Ge.Util._inRange(n,0,22.5)?"ns-resize":Ge.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":Ge.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":Ge.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":Ge.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":Ge.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":Ge.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":Ge.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(Ge.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var Ou=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],Ow=1e8;function zI(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 Aw(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 GI(e,t){const r=zI(e);return Aw(e,t,r)}function VI(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=Un.Konva.getAngle(e[i]),a=Math.abs(o-t)%(Math.PI*2);Math.min(a,Math.PI*2-a)<r&&(n=o)}return n}class Oe extends Cw.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(DI,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return Ge.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 Pw+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(Ge.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()},a=i._attrsAffectingSize.map(s=>s+"Change."+this._getEventNamespace()).join(" ");i.on(a,o),i.on(FI.map(s=>s+`.${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,a=i.y-r.y;this.nodes().forEach(s=>{if(s===t||s.isDragging())return;const c=s.getAbsolutePosition();s.setAbsolutePosition({x:c.x+o,y:c.y+a}),s.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(Tw),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(Tw,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),s=i.x*o.x-t.offsetX()*o.x,c=i.y*o.y-t.offsetY()*o.y;const l=(Un.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:a.x+s*Math.cos(l)+c*Math.sin(-l),y:a.y+c*Math.cos(l)+s*Math.sin(l),width:i.width*o.x,height:i.height*o.y,rotation:l};return Aw(u,-Un.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-Ow,y:-Ow,width:0,height:0,rotation:0};const r=[];this.nodes().map(l=>{const u=l.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var d=[{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();d.forEach(function(h){var p=f.point(h);r.push(p)})});const n=new Ge.Transform;n.rotate(-Un.Konva.getAngle(this.rotation()));var i=1/0,o=1/0,a=-1/0,s=-1/0;r.forEach(function(l){var u=n.point(l);i===void 0&&(i=a=u.x,o=s=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),a=Math.max(a,u.x),s=Math.max(s,u.y)}),n.invert();const c=n.point({x:i,y:o});return{x:c.x,y:c.y,width:a-i,height:s-o,rotation:Un.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(),Ou.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new jI.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:LI?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=Un.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),a=UI(t,i,o);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){var t=new RI.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()*Ge.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 a=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-a.x,y:s.y-a.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),a=o.getStage();a.setPointersPositions(t);const s=a.getPointerPosition();let c={x:s.x-this._anchorDragOffset.x,y:s.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 d=this._getNodeRect();r=o.x()-d.width/2,n=-o.y()+d.height/2;let nt=Math.atan2(-n,r)+Math.PI/2;d.height<0&&(nt-=Math.PI);var f=Un.Konva.getAngle(this.rotation());const rt=f+nt,lt=Un.Konva.getAngle(this.rotationSnapTolerance()),xt=VI(this.rotationSnaps(),rt,lt)-d.rotation,Ct=GI(d,xt);this._fitNodesInto(Ct,t);return}var h=this.shiftBehavior(),p;h==="inverted"?p=this.keepRatio()&&!t.shiftKey:h==="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(),A=x.y(),R=this.getWidth()-N.x(),G=this.getHeight()-N.y();N.move({x:-$,y:-A}),x.move({x:R,y:G})}var H=this.findOne(".top-left").getAbsolutePosition();r=H.x,n=H.y;var Y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),J=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:r,y:n,width:Y,height:J,rotation:Un.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(Ge.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(Ge.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var a=new Ge.Transform;if(a.rotate(Un.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const d=a.point({x:-this.padding()*2,y:0});if(t.x+=d.x,t.y+=d.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,!o){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const d=a.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.width+=this.padding()*2,!o){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const d=a.point({x:0,y:-this.padding()*2});if(t.x+=d.x,t.y+=d.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!o){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const d=a.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=d.x,this._anchorDragOffset.y-=d.y,t.height+=this.padding()*2,!o){this.update();return}}if(this.boundBoxFunc()){const d=this.boundBoxFunc()(n,t);d?t=d:Ge.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const s=1e7,c=new Ge.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/s,n.height/s);const l=new Ge.Transform;l.translate(t.x,t.y),l.rotate(t.rotation),l.scale(t.width/s,t.height/s);const u=l.multiply(c.invert());this._nodes.forEach(d=>{var f;const h=d.getParent().getAbsoluteTransform(),p=d.getTransform().copy();p.translate(d.offsetX(),d.offsetY());const g=new Ge.Transform;g.multiply(h.copy().invert()).multiply(u).multiply(h).multiply(p);const v=g.decompose();d.setAttrs(v),this._fire("transform",{evt:r,target:d}),d._fire("transform",{evt:r,target:d}),(f=d.getLayer())===null||f===void 0||f.batchDraw()}),this.rotation(Ge.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(Ge.Util._getRotation(r.rotation));var n=r.width,i=r.height,o=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),c=this.anchorSize();const l=this.find("._anchor");l.forEach(d=>{d.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+s,offsetY:c/2+s,visible:a&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:c/2+s,visible:a&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:c/2-s,offsetY:c/2+s,visible:a&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+s,visible:a&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:c/2-s,visible:a&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+s,offsetY:c/2-s,visible:a&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:c/2-s,visible:a&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:c/2-s,offsetY:c/2-s,visible:a&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*Ge.Util._sign(i)-s,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(d=>{u(d)}),(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=""),Cw.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Ew.Node.prototype.toObject.call(this)}clone(t){var r=Ew.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}kw=cl.Transformer=Oe;function BI(e){return e instanceof Array||Ge.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){Ou.indexOf(t)===-1&&Ge.Util.warn("Unknown anchor name: "+t+". Available names are: "+Ou.join(", "))}),e||[]}Oe.prototype.className="Transformer",(0,II._registerNode)(Oe),je.Factory.addGetterSetter(Oe,"enabledAnchors",Ou,BI),je.Factory.addGetterSetter(Oe,"flipEnabled",!0,(0,eo.getBooleanValidator)()),je.Factory.addGetterSetter(Oe,"resizeEnabled",!0),je.Factory.addGetterSetter(Oe,"anchorSize",10,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"rotateEnabled",!0),je.Factory.addGetterSetter(Oe,"rotationSnaps",[]),je.Factory.addGetterSetter(Oe,"rotateAnchorOffset",50,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"rotateAnchorCursor","crosshair"),je.Factory.addGetterSetter(Oe,"rotationSnapTolerance",5,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderEnabled",!0),je.Factory.addGetterSetter(Oe,"anchorStroke","rgb(0, 161, 255)"),je.Factory.addGetterSetter(Oe,"anchorStrokeWidth",1,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"anchorFill","white"),je.Factory.addGetterSetter(Oe,"anchorCornerRadius",0,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderStroke","rgb(0, 161, 255)"),je.Factory.addGetterSetter(Oe,"borderStrokeWidth",1,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"borderDash"),je.Factory.addGetterSetter(Oe,"keepRatio",!0),je.Factory.addGetterSetter(Oe,"shiftBehavior","default"),je.Factory.addGetterSetter(Oe,"centeredScaling",!1),je.Factory.addGetterSetter(Oe,"ignoreStroke",!1),je.Factory.addGetterSetter(Oe,"padding",0,(0,eo.getNumberValidator)()),je.Factory.addGetterSetter(Oe,"node"),je.Factory.addGetterSetter(Oe,"nodes"),je.Factory.addGetterSetter(Oe,"boundBoxFunc"),je.Factory.addGetterSetter(Oe,"anchorDragBoundFunc"),je.Factory.addGetterSetter(Oe,"anchorStyleFunc"),je.Factory.addGetterSetter(Oe,"shouldOverdrawWholeArea",!1),je.Factory.addGetterSetter(Oe,"useSingleNodeRotation",!0),je.Factory.backCompat(Oe,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const HI=Wt({__proto__:null,get Transformer(){return kw},default:cl},[cl]),qI=Jt(HI);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});var Nw=ul.Wedge=void 0;const Au=ge,KI=xr,YI=ye,Rw=_e,XI=ye;let Ai=class extends KI.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,YI.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)}};Nw=ul.Wedge=Ai,Ai.prototype.className="Wedge",Ai.prototype._centroid=!0,Ai.prototype._attrsAffectingSize=["radius"],(0,XI._registerNode)(Ai),Au.Factory.addGetterSetter(Ai,"radius",0,(0,Rw.getNumberValidator)()),Au.Factory.addGetterSetter(Ai,"angle",0,(0,Rw.getNumberValidator)()),Au.Factory.addGetterSetter(Ai,"clockwise",!1),Au.Factory.backCompat(Ai,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const WI=Wt({__proto__:null,get Wedge(){return Nw},default:ul},[ul]),JI=Jt(WI);var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var jw=hl.Blur=void 0;const Iw=ge,QI=ur,ZI=_e;function Dw(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var tD=[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],eD=[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 rD(e,t){var r=e.data,n=e.width,i=e.height,o,a,s,c,l,u,d,f,h,p,g,v,_,y,m,x,N,$,A,R,G,H,Y,J,nt=t+t+1,rt=n-1,lt=i-1,xt=t+1,Ct=xt*(xt+1)/2,$t=new Dw,at=null,X=$t,T=null,E=null,k=tD[t],b=eD[t];for(s=1;s<nt;s++)X=X.next=new Dw,s===xt&&(at=X);for(X.next=$t,d=u=0,a=0;a<i;a++){for(x=N=$=A=f=h=p=g=0,v=xt*(R=r[u]),_=xt*(G=r[u+1]),y=xt*(H=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*G,p+=Ct*H,g+=Ct*Y,X=$t,s=0;s<xt;s++)X.r=R,X.g=G,X.b=H,X.a=Y,X=X.next;for(s=1;s<xt;s++)c=u+((rt<s?rt:s)<<2),f+=(X.r=R=r[c])*(J=xt-s),h+=(X.g=G=r[c+1])*J,p+=(X.b=H=r[c+2])*J,g+=(X.a=Y=r[c+3])*J,x+=R,N+=G,$+=H,A+=Y,X=X.next;for(T=$t,E=at,o=0;o<n;o++)r[u+3]=Y=g*k>>b,Y!==0?(Y=255/Y,r[u]=(f*k>>b)*Y,r[u+1]=(h*k>>b)*Y,r[u+2]=(p*k>>b)*Y):r[u]=r[u+1]=r[u+2]=0,f-=v,h-=_,p-=y,g-=m,v-=T.r,_-=T.g,y-=T.b,m-=T.a,c=d+((c=o+t+1)<rt?c:rt)<<2,x+=T.r=r[c],N+=T.g=r[c+1],$+=T.b=r[c+2],A+=T.a=r[c+3],f+=x,h+=N,p+=$,g+=A,T=T.next,v+=R=E.r,_+=G=E.g,y+=H=E.b,m+=Y=E.a,x-=R,N-=G,$-=H,A-=Y,E=E.next,u+=4;d+=n}for(o=0;o<n;o++){for(N=$=A=x=h=p=g=f=0,u=o<<2,v=xt*(R=r[u]),_=xt*(G=r[u+1]),y=xt*(H=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*G,p+=Ct*H,g+=Ct*Y,X=$t,s=0;s<xt;s++)X.r=R,X.g=G,X.b=H,X.a=Y,X=X.next;for(l=n,s=1;s<=t;s++)u=l+o<<2,f+=(X.r=R=r[u])*(J=xt-s),h+=(X.g=G=r[u+1])*J,p+=(X.b=H=r[u+2])*J,g+=(X.a=Y=r[u+3])*J,x+=R,N+=G,$+=H,A+=Y,X=X.next,s<lt&&(l+=n);for(u=o,T=$t,E=at,a=0;a<i;a++)c=u<<2,r[c+3]=Y=g*k>>b,Y>0?(Y=255/Y,r[c]=(f*k>>b)*Y,r[c+1]=(h*k>>b)*Y,r[c+2]=(p*k>>b)*Y):r[c]=r[c+1]=r[c+2]=0,f-=v,h-=_,p-=y,g-=m,v-=T.r,_-=T.g,y-=T.b,m-=T.a,c=o+((c=a+xt)<lt?c:lt)*n<<2,f+=x+=T.r=r[c],h+=N+=T.g=r[c+1],p+=$+=T.b=r[c+2],g+=A+=T.a=r[c+3],T=T.next,v+=R=E.r,_+=G=E.g,y+=H=E.b,m+=Y=E.a,x-=R,N-=G,$-=H,A-=Y,E=E.next,u+=n}}const nD=function(e){var t=Math.round(this.blurRadius());t>0&&rD(e,t)};jw=hl.Blur=nD,Iw.Factory.addGetterSetter(QI.Node,"blurRadius",0,(0,ZI.getNumberValidator)(),Iw.Factory.afterSetFilter);const iD=Wt({__proto__:null,get Blur(){return jw},default:hl},[hl]),oD=Jt(iD);var dl={};Object.defineProperty(dl,"__esModule",{value:!0});var Fw=dl.Brighten=void 0;const Mw=ge,aD=ur,sD=_e,lD=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};Fw=dl.Brighten=lD,Mw.Factory.addGetterSetter(aD.Node,"brightness",0,(0,sD.getNumberValidator)(),Mw.Factory.afterSetFilter);const cD=Wt({__proto__:null,get Brighten(){return Fw},default:dl},[dl]),uD=Jt(cD);var fl={};Object.defineProperty(fl,"__esModule",{value:!0});var Lw=fl.Contrast=void 0;const Uw=ge,hD=ur,dD=_e,fD=function(e){var t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length,i=150,o=150,a=150,s;for(s=0;s<n;s+=4)i=r[s],o=r[s+1],a=r[s+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,a=a<0?0:a>255?255:a,r[s]=i,r[s+1]=o,r[s+2]=a};Lw=fl.Contrast=fD,Uw.Factory.addGetterSetter(hD.Node,"contrast",0,(0,dD.getNumberValidator)(),Uw.Factory.afterSetFilter);const pD=Wt({__proto__:null,get Contrast(){return Lw},default:fl},[fl]),mD=Jt(pD);var pl={};Object.defineProperty(pl,"__esModule",{value:!0});var zw=pl.Emboss=void 0;const ro=ge,Nu=ur,gD=or,Gw=_e,vD=function(e){var t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),i=this.embossBlend(),o=0,a=0,s=e.data,c=e.width,l=e.height,u=c*4,d=l;switch(n){case"top-left":o=-1,a=-1;break;case"top":o=-1,a=0;break;case"top-right":o=-1,a=1;break;case"right":o=0,a=1;break;case"bottom-right":o=1,a=1;break;case"bottom":o=1,a=0;break;case"bottom-left":o=1,a=-1;break;case"left":o=0,a=-1;break;default:gD.Util.error("Unknown emboss direction: "+n)}do{var f=(d-1)*u,h=o;d+h<1&&(h=0),d+h>l&&(h=0);var p=(d-1+h)*c*4,g=c;do{var v=f+(g-1)*4,_=a;g+_<1&&(_=0),g+_>c&&(_=0);var y=p+(g-1+_)*4,m=s[v]-s[y],x=s[v+1]-s[y+1],N=s[v+2]-s[y+2],$=m,A=$>0?$:-$,R=x>0?x:-x,G=N>0?N:-N;if(R>A&&($=x),G>A&&($=N),$*=t,i){var H=s[v]+$,Y=s[v+1]+$,J=s[v+2]+$;s[v]=H>255?255:H<0?0:H,s[v+1]=Y>255?255:Y<0?0:Y,s[v+2]=J>255?255:J<0?0:J}else{var nt=r-$;nt<0?nt=0:nt>255&&(nt=255),s[v]=s[v+1]=s[v+2]=nt}}while(--g)}while(--d)};zw=pl.Emboss=vD,ro.Factory.addGetterSetter(Nu.Node,"embossStrength",.5,(0,Gw.getNumberValidator)(),ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossWhiteLevel",.5,(0,Gw.getNumberValidator)(),ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossDirection","top-left",null,ro.Factory.afterSetFilter),ro.Factory.addGetterSetter(Nu.Node,"embossBlend",!1,null,ro.Factory.afterSetFilter);const yD=Wt({__proto__:null,get Emboss(){return zw},default:pl},[pl]),_D=Jt(yD);var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var Vw=ml.Enhance=void 0;const Bw=ge,bD=ur,wD=_e;function Zp(e,t,r,n,i){var o=r-t,a=i-n,s;return o===0?n+a/2:a===0?n:(s=(e-t)/o,s=a*s+n,s)}const xD=function(e){var t=e.data,r=t.length,n=t[0],i=n,o,a=t[1],s=a,c,l=t[2],u=l,d,f,h=this.enhance();if(h!==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<a?a=c:c>s&&(s=c),d=t[f+2],d<l?l=d:d>u&&(u=d);i===n&&(i=255,n=0),s===a&&(s=255,a=0),u===l&&(u=255,l=0);var p,g,v,_,y,m,x,N,$;for(h>0?(g=i+h*(255-i),v=n-h*(n-0),y=s+h*(255-s),m=a-h*(a-0),N=u+h*(255-u),$=l-h*(l-0)):(p=(i+n)*.5,g=i+h*(i-p),v=n+h*(n-p),_=(s+a)*.5,y=s+h*(s-_),m=a+h*(a-_),x=(u+l)*.5,N=u+h*(u-x),$=l+h*(l-x)),f=0;f<r;f+=4)t[f+0]=Zp(t[f+0],n,i,v,g),t[f+1]=Zp(t[f+1],a,s,m,y),t[f+2]=Zp(t[f+2],l,u,$,N)}};Vw=ml.Enhance=xD,Bw.Factory.addGetterSetter(bD.Node,"enhance",0,(0,wD.getNumberValidator)(),Bw.Factory.afterSetFilter);const SD=Wt({__proto__:null,get Enhance(){return Vw},default:ml},[ml]),$D=Jt(SD);var gl={};Object.defineProperty(gl,"__esModule",{value:!0});var Hw=gl.Grayscale=void 0;const kD=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};Hw=gl.Grayscale=kD;const ED=Wt({__proto__:null,get Grayscale(){return Hw},default:gl},[gl]),CD=Jt(ED);var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var qw=vl.HSL=void 0;const Pa=ge,t0=ur,e0=_e;Pa.Factory.addGetterSetter(t0.Node,"hue",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(t0.Node,"saturation",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter),Pa.Factory.addGetterSetter(t0.Node,"luminance",0,(0,e0.getNumberValidator)(),Pa.Factory.afterSetFilter);const PD=function(e){var t=e.data,r=t.length,n=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,a=this.luminance()*127,s,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,d=.587*n-.587*c+.33*l,f=.114*n-.114*c-.497*l,h=.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(s=0;s<r;s+=4)m=t[s+0],x=t[s+1],N=t[s+2],$=t[s+3],t[s+0]=u*m+d*x+f*N+a,t[s+1]=h*m+p*x+g*N+a,t[s+2]=v*m+_*x+y*N+a,t[s+3]=$};qw=vl.HSL=PD;const TD=Wt({__proto__:null,get HSL(){return qw},default:vl},[vl]),OD=Jt(TD);var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Kw=yl.HSV=void 0;const Ta=ge,r0=ur,n0=_e,AD=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,a,s=n*i*Math.cos(o*Math.PI/180),c=n*i*Math.sin(o*Math.PI/180),l=.299*n+.701*s+.167*c,u=.587*n-.587*s+.33*c,d=.114*n-.114*s-.497*c,f=.299*n-.299*s-.328*c,h=.587*n+.413*s+.035*c,p=.114*n-.114*s+.293*c,g=.299*n-.3*s+1.25*c,v=.587*n-.586*s-1.05*c,_=.114*n+.886*s-.2*c,y,m,x,N;for(a=0;a<r;a+=4)y=t[a+0],m=t[a+1],x=t[a+2],N=t[a+3],t[a+0]=l*y+u*m+d*x,t[a+1]=f*y+h*m+p*x,t[a+2]=g*y+v*m+_*x,t[a+3]=N};Kw=yl.HSV=AD,Ta.Factory.addGetterSetter(r0.Node,"hue",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(r0.Node,"saturation",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter),Ta.Factory.addGetterSetter(r0.Node,"value",0,(0,n0.getNumberValidator)(),Ta.Factory.afterSetFilter);const ND=Wt({__proto__:null,get HSV(){return Kw},default:yl},[yl]),RD=Jt(ND);var _l={};Object.defineProperty(_l,"__esModule",{value:!0});var Yw=_l.Invert=void 0;const jD=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]};Yw=_l.Invert=jD;const ID=Wt({__proto__:null,get Invert(){return Yw},default:_l},[_l]),DD=Jt(ID);var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var Xw=bl.Kaleidoscope=void 0;const Ru=ge,Ww=ur,Jw=or,Qw=_e;var FD=function(e,t,r){var n=e.data,i=t.data,o=e.width,a=e.height,s=r.polarCenterX||o/2,c=r.polarCenterY||a/2,l,u,d,f=0,h=0,p=0,g=0,v,_=Math.sqrt(s*s+c*c);u=o-s,d=a-c,v=Math.sqrt(u*u+d*d),_=v>_?v:_;var y=a,m=o,x,N,$=360/m*Math.PI/180,A,R;for(N=0;N<m;N+=1)for(A=Math.sin(N*$),R=Math.cos(N*$),x=0;x<y;x+=1)u=Math.floor(s+_*x/y*R),d=Math.floor(c+_*x/y*A),l=(d*o+u)*4,f=n[l+0],h=n[l+1],p=n[l+2],g=n[l+3],l=(N+x*o)*4,i[l+0]=f,i[l+1]=h,i[l+2]=p,i[l+3]=g},MD=function(e,t,r){var n=e.data,i=t.data,o=e.width,a=e.height,s=r.polarCenterX||o/2,c=r.polarCenterY||a/2,l,u,d,f,h,p=0,g=0,v=0,_=0,y,m=Math.sqrt(s*s+c*c);u=o-s,d=a-c,y=Math.sqrt(u*u+d*d),m=y>m?y:m;var x=a,N=o,$,A,R=0,G,H;for(u=0;u<o;u+=1)for(d=0;d<a;d+=1)f=u-s,h=d-c,$=Math.sqrt(f*f+h*h)*x/m,A=(Math.atan2(h,f)*180/Math.PI+360+R)%360,A=A*N/360,G=Math.floor(A),H=Math.floor($),l=(H*o+G)*4,p=n[l+0],g=n[l+1],v=n[l+2],_=n[l+3],l=(d*o+u)*4,i[l+0]=p,i[l+1]=g,i[l+2]=v,i[l+3]=_};const LD=function(e){var t=e.width,r=e.height,n,i,o,a,s,c,l,u,d,f,h=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(t*(p%360)/360);if(!(h<1)){var v=Jw.Util.createCanvasElement();v.width=t,v.height=r;var _=v.getContext("2d").getImageData(0,0,t,r);Jw.Util.releaseCanvas(v),FD(e,_,{polarCenterX:t/2,polarCenterY:r/2});for(var y=t/Math.pow(2,h);y<=8;)y=y*2,h-=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,d=(t*i+o)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+n)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;for(i=0;i<r;i+=1)for(m=Math.floor(y),a=0;a<h;a+=1){for(n=0;n<m+1;n+=1)d=(t*i+n)*4,s=_.data[d+0],c=_.data[d+1],l=_.data[d+2],u=_.data[d+3],f=(t*i+m*2-n-1)*4,_.data[f+0]=s,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=u;m*=2}MD(_,e,{polarRotation:0})}};Xw=bl.Kaleidoscope=LD,Ru.Factory.addGetterSetter(Ww.Node,"kaleidoscopePower",2,(0,Qw.getNumberValidator)(),Ru.Factory.afterSetFilter),Ru.Factory.addGetterSetter(Ww.Node,"kaleidoscopeAngle",0,(0,Qw.getNumberValidator)(),Ru.Factory.afterSetFilter);const UD=Wt({__proto__:null,get Kaleidoscope(){return Xw},default:bl},[bl]),zD=Jt(UD);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var Zw=wl.Mask=void 0;const tx=ge,GD=ur,VD=_e;function ju(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 xl(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 BD(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 HD(e,t){var r=ju(e,0,0),n=ju(e,e.width-1,0),i=ju(e,0,e.height-1),o=ju(e,e.width-1,e.height-1),a=t||10;if(xl(r,n)<a&&xl(n,o)<a&&xl(o,i)<a&&xl(i,r)<a){for(var s=BD([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=xl(s,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<a?0:255}return c}}function qD(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function KD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u===255*8?255:0}return a}function YD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u>=255*4?255:0}return a}function XD(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),a=[],s=0;s<r;s++)for(var c=0;c<t;c++){for(var l=s*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=c+f-o;if(h>=0&&h<r&&p>=0&&p<t){var g=h*t+p,v=n[d*i+f];u+=e[g]*v}}a[l]=u}return a}const WD=function(e){var t=this.threshold(),r=HD(e,t);return r&&(r=KD(r,e.width,e.height),r=YD(r,e.width,e.height),r=XD(r,e.width,e.height),qD(e,r)),e};Zw=wl.Mask=WD,tx.Factory.addGetterSetter(GD.Node,"threshold",0,(0,VD.getNumberValidator)(),tx.Factory.afterSetFilter);const JD=Wt({__proto__:null,get Mask(){return Zw},default:wl},[wl]),QD=Jt(JD);var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});var ex=Sl.Noise=void 0;const rx=ge,ZD=ur,tF=_e,eF=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()};ex=Sl.Noise=eF,rx.Factory.addGetterSetter(ZD.Node,"noise",.2,(0,tF.getNumberValidator)(),rx.Factory.afterSetFilter);const rF=Wt({__proto__:null,get Noise(){return ex},default:Sl},[Sl]),nF=Jt(rF);var $l={};Object.defineProperty($l,"__esModule",{value:!0});var nx=$l.Pixelate=void 0;const ix=ge,iF=or,oF=ur,aF=_e,sF=function(e){var t=Math.ceil(this.pixelSize()),r=e.width,n=e.height,i,o,a,s,c,l,u,d=Math.ceil(r/t),f=Math.ceil(n/t),h,p,g,v,_,y,m,x=e.data;if(t<=0){iF.Util.error("pixelSize value can not be <= 0");return}for(_=0;_<d;_+=1)for(y=0;y<f;y+=1){for(s=0,c=0,l=0,u=0,h=_*t,p=h+t,g=y*t,v=g+t,m=0,i=h;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(a=(r*o+i)*4,s+=x[a+0],c+=x[a+1],l+=x[a+2],u+=x[a+3],m+=1);for(s=s/m,c=c/m,l=l/m,u=u/m,i=h;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(a=(r*o+i)*4,x[a+0]=s,x[a+1]=c,x[a+2]=l,x[a+3]=u)}};nx=$l.Pixelate=sF,ix.Factory.addGetterSetter(oF.Node,"pixelSize",8,(0,aF.getNumberValidator)(),ix.Factory.afterSetFilter);const lF=Wt({__proto__:null,get Pixelate(){return nx},default:$l},[$l]),cF=Jt(lF);var kl={};Object.defineProperty(kl,"__esModule",{value:!0});var ox=kl.Posterize=void 0;const ax=ge,uF=ur,hF=_e,dF=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};ox=kl.Posterize=dF,ax.Factory.addGetterSetter(uF.Node,"levels",.5,(0,hF.getNumberValidator)(),ax.Factory.afterSetFilter);const fF=Wt({__proto__:null,get Posterize(){return ox},default:kl},[kl]),pF=Jt(fF);var El={};Object.defineProperty(El,"__esModule",{value:!0});var sx=El.RGB=void 0;const Iu=ge,i0=ur,mF=_e,gF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),a,s;for(a=0;a<r;a+=4)s=(.34*t[a]+.5*t[a+1]+.16*t[a+2])/255,t[a]=s*n,t[a+1]=s*i,t[a+2]=s*o,t[a+3]=t[a+3]};sx=El.RGB=gF,Iu.Factory.addGetterSetter(i0.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Iu.Factory.addGetterSetter(i0.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Iu.Factory.addGetterSetter(i0.Node,"blue",0,mF.RGBComponent,Iu.Factory.afterSetFilter);const vF=Wt({__proto__:null,get RGB(){return sx},default:El},[El]),yF=Jt(vF);var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});var lx=Cl.RGBA=void 0;const Pl=ge,Du=ur,_F=_e,bF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),a=this.alpha(),s,c;for(s=0;s<r;s+=4)c=1-a,t[s]=n*a+t[s]*c,t[s+1]=i*a+t[s+1]*c,t[s+2]=o*a+t[s+2]*c};lx=Cl.RGBA=bF,Pl.Factory.addGetterSetter(Du.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Pl.Factory.addGetterSetter(Du.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Pl.Factory.addGetterSetter(Du.Node,"blue",0,_F.RGBComponent,Pl.Factory.afterSetFilter),Pl.Factory.addGetterSetter(Du.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const wF=Wt({__proto__:null,get RGBA(){return lx},default:Cl},[Cl]),xF=Jt(wF);var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});var cx=Tl.Sepia=void 0;const SF=function(e){var t=e.data,r=t.length,n,i,o,a;for(n=0;n<r;n+=4)i=t[n+0],o=t[n+1],a=t[n+2],t[n+0]=Math.min(255,i*.393+o*.769+a*.189),t[n+1]=Math.min(255,i*.349+o*.686+a*.168),t[n+2]=Math.min(255,i*.272+o*.534+a*.131)};cx=Tl.Sepia=SF;const $F=Wt({__proto__:null,get Sepia(){return cx},default:Tl},[Tl]),kF=Jt($F);var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});var ux=Ol.Solarize=void 0;const EF=function(e){var t=e.data,r=e.width,n=e.height,i=r*4,o=n;do{var a=(o-1)*i,s=r;do{var c=a+(s-1)*4,l=t[c],u=t[c+1],d=t[c+2];l>127&&(l=255-l),u>127&&(u=255-u),d>127&&(d=255-d),t[c]=l,t[c+1]=u,t[c+2]=d}while(--s)}while(--o)};ux=Ol.Solarize=EF;const CF=Wt({__proto__:null,get Solarize(){return ux},default:Ol},[Ol]),PF=Jt(CF);var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var hx=Al.Threshold=void 0;const dx=ge,TF=ur,OF=_e,AF=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};hx=Al.Threshold=AF,dx.Factory.addGetterSetter(TF.Node,"threshold",.5,(0,OF.getNumberValidator)(),dx.Factory.afterSetFilter);const NF=Wt({__proto__:null,get Threshold(){return hx},default:Al},[Al]),RF=Jt(NF);Object.defineProperty(Fs,"__esModule",{value:!0});var fx=Fs.Konva=void 0;const px=tj,jF=ij,IF=yj,DF=$j,FF=Pj,MF=Nj,mx=Lj,LF=F2,UF=Dp,zF=J2,GF=Xj,VF=Zj,BF=iI,HF=lI,qF=_w,KF=NI,YF=qI,XF=JI,WF=oD,JF=uD,QF=mD,ZF=_D,tM=$D,eM=CD,rM=OD,nM=RD,iM=DD,oM=zD,aM=QD,sM=nF,lM=cF,cM=pF,uM=yF,hM=xF,dM=kF,fM=PF,pM=RF;fx=Fs.Konva=px.Konva.Util._assign(px.Konva,{Arc:jF.Arc,Arrow:IF.Arrow,Circle:DF.Circle,Ellipse:FF.Ellipse,Image:MF.Image,Label:mx.Label,Tag:mx.Tag,Line:LF.Line,Path:UF.Path,Rect:zF.Rect,RegularPolygon:GF.RegularPolygon,Ring:VF.Ring,Sprite:BF.Sprite,Star:HF.Star,Text:qF.Text,TextPath:KF.TextPath,Transformer:YF.Transformer,Wedge:XF.Wedge,Filters:{Blur:WF.Blur,Brighten:JF.Brighten,Contrast:QF.Contrast,Emboss:ZF.Emboss,Enhance:tM.Enhance,Grayscale:eM.Grayscale,HSL:rM.HSL,HSV:nM.HSV,Invert:iM.Invert,Kaleidoscope:oM.Kaleidoscope,Mask:aM.Mask,Noise:sM.Noise,Pixelate:lM.Pixelate,Posterize:cM.Posterize,RGB:uM.RGB,RGBA:hM.RGBA,Sepia:dM.Sepia,Solarize:fM.Solarize,Threshold:pM.Threshold}});const mM=Wt({__proto__:null,get Konva(){return fx},default:Fs},[Fs]),gM=Jt(mM);var vM=dp.exports;Object.defineProperty(vM,"__esModule",{value:!0});const yM=gM;dp.exports=yM.Konva;var _M=dp.exports;const Ye=un(_M),bM=Ye.Ellipse.prototype.toObject;Ye.Ellipse.prototype.toObject=function(){const e=bM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const wM=Ye.Line.prototype.toObject;Ye.Line.prototype.toObject=function(){const e=wM.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const xM=Ye.Node.prototype.toObject,SM=function(){const e=xM.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()}}};Ye.Node.prototype.toObject=SM;const $M=Ye.Node.prototype.remove;Ye.Node.prototype.remove=function(){return $M.call(this),this.fire("removed",{target:this}),this};const kM=Ye.Node.prototype.moveUp;Ye.Node.prototype.moveUp=function(){const e=kM.call(this);return e&&this.fire("move:up"),e};const EM=Ye.Node.prototype.moveDown;Ye.Node.prototype.moveDown=function(){const e=EM.call(this);return e&&this.fire("move:down"),e};const CM=Ye.Node.prototype.moveToTop;Ye.Node.prototype.moveToTop=function(){const e=CM.call(this);return e&&this.fire("move:top"),e};const PM=Ye.Node.prototype.moveToBottom;Ye.Node.prototype.moveToBottom=function(){const e=PM.call(this);return e&&this.fire("move:bottom"),e};const TM=Ye.Node.prototype.moveTo;Ye.Node.prototype.moveTo=function(e){const t=TM.call(this,e);return this.fire("move:to"),t};const OM=Ye.Rect.prototype.toObject;Ye.Rect.prototype.toObject=function(){const e=OM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const AM=Ye.RegularPolygon.prototype.toObject;Ye.RegularPolygon.prototype.toObject=function(){const e=AM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const NM=Ye.Text.prototype.toObject;Ye.Text.prototype.toObject=function(){const e=NM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const RM=Ye.Image.prototype.toObject;Ye.Image.prototype.toObject=function(){const e=RM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var jM=Object.defineProperty,IM=Object.getOwnPropertyDescriptor,no=(e,t,r,n)=>{for(var i=IM(t,r),o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(t,r,i)||i);return i&&jM(t,r,i),i};function io(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}let oo=class{constructor(t,r){jt(this,"app");jt(this,"enabled");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 a=i.toObject(),s=r[o].x-n;return a.attrs={...a.attrs,x:a.attrs.x-s},a}))}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 a=i.toObject(),s=n-(r[o].x+r[o].width);return a.attrs={...a.attrs,x:a.attrs.x+s},a}))}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 a=i.toObject(),s=r[o].y-n;return a.attrs={...a.attrs,y:a.attrs.y-s},a}))}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 a=i.toObject(),s=n-(r[o].y+r[o].height);return a.attrs={...a.attrs,y:a.attrs.y+s},a}))}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 a=i.toObject(),s=n-(r[o].x+r[o].width/2);return a.attrs={...a.attrs,x:a.attrs.x+s},a}))}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 a=i.toObject(),s=n-(r[o].y+r[o].height/2);return a.attrs={...a.attrs,y:a.attrs.y+s},a}))}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,d)=>u.getClientRect()[r]-d.getClientRect()[r]);const n=t[0],i=t[t.length-1],o=n.getClientRect()[r]+(r==="x"?n.getClientRect().width:n.getClientRect().height),a=i.getClientRect()[r]-o,s=t.slice(1,-1).reduce((u,d)=>u+(r==="x"?d.getClientRect().width:d.getClientRect().height),0),c=Math.max((a-s)/(t.length-1),0);let l=o;this.app.update(...t.map((u,d)=>{const f=u.toObject();if(d===0||d===t.length-1)return f;const h=l+c;return f.attrs[r]=h-u.getClientRect()[r]+f.attrs[r],l=h+(r==="x"?u.getClientRect().width:u.getClientRect().height),f}))}};no([io],oo.prototype,"alignLeft"),no([io],oo.prototype,"alignRight"),no([io],oo.prototype,"alignTop"),no([io],oo.prototype,"alignBottom"),no([io],oo.prototype,"alignCenterX"),no([io],oo.prototype,"alignCenterY"),no([io],oo.prototype,"dispersionX"),no([io],oo.prototype,"dispersionY");const DM=M.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ce.colorPrimary}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createElementBlock("span",{class:"icon",style:M.normalizeStyle(["color: "+r.color])},[M.createVNode(M.unref(W3),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),zn=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Ho=zn(DM,[["__scopeId","data-v-a5ce002f"]]),FM=M.defineComponent({__name:"Button",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:Ce.height44},iconPosition:{default:"right"},padding:{default:Ce.gap12},fontSize:{default:Ce.fontSize14},borderRadius:{default:Ce.borderRadius},borderColor:{default:Ce.colorPrimary},bgColor:{default:Ce.colorPrimary},fontColor:{default:Ce.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.borderColor);M.watch(()=>r.borderColor,()=>{i.value=r.borderColor});const o=M.ref(r.bgColor);M.watch(()=>r.bgColor,()=>{o.value=r.bgColor});const a=M.ref(r.isDisabled?"0.6":"1"),s=M.ref(r.isDisabled?"not-allowed":"pointer");let c=!1;const l=()=>{r.isDisabled||(c=!0,i.value=vs(r.borderColor,10),o.value=vs(r.bgColor,10))},u=()=>{r.isDisabled||(c=!1,i.value=r.borderColor,o.value=r.bgColor)},d=()=>{r.isDisabled||(i.value=vs(r.borderColor,-10),o.value=vs(r.bgColor,-10),setTimeout(()=>{c?l():u()},150),n("ceClick"),n("click"))};return(f,h)=>(M.openBlock(),M.createElementBlock("div",M.mergeProps({class:"button",style:[`opacity: ${a.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: ${s.value}`]},f.$attrs,{onMouseover:l,onMouseleave:u,onClick:d}),[M.createElementVNode("label",{class:"label truncate",style:M.normalizeStyle({padding:"0 "+f.padding,cursor:s.value})},[M.renderSlot(f.$slots,"default",{},()=>[f.icon&&f.iconPosition==="right"?(M.openBlock(),M.createBlock(Ho,{key:0,icon:f.icon,color:f.fontColor,style:M.normalizeStyle({marginRight:M.unref(Ce).gap4,cursor:s.value})},null,8,["icon","color","style"])):M.createCommentVNode("",!0),M.createElementVNode("span",{style:M.normalizeStyle({cursor:s.value})},M.toDisplayString(f.label),5),f.icon&&f.iconPosition==="left"?(M.openBlock(),M.createBlock(Ho,{key:1,icon:f.icon,color:f.fontColor,style:M.normalizeStyle({marginLeft:M.unref(Ce).gap4,cursor:s.value})},null,8,["icon","color","style"])):M.createCommentVNode("",!0)],!0)],4)],16))}}),ao=zn(FM,[["__scopeId","data-v-eb62cbe4"]]),MM={id:"page"},LM=zn(M.defineComponent({__name:"MobileLayout",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;LO(n.designWidth);const i=r,o=M.ref(),a=M.ref(),s=M.ref(),c=M.ref(),l=M.ref("0");M.watch(o,($,A)=>{typeof $<"u"&&$!==A&&(l.value=bi(o.value).css("height"))});const u=M.ref("0");M.watch(a,($,A)=>{typeof $<"u"&&$!==A&&(u.value=bi(a.value).css("height"))});const d=M.ref("0");M.watch(s,($,A)=>{typeof $<"u"&&$!==A&&(d.value=bi(s.value).css("width"))});const f=M.ref("0");M.watch(c,($,A)=>{typeof $<"u"&&$!==A&&(f.value=bi(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=bi(o.value).css("height"),u.value=bi(a.value).css("height"),d.value=bi(s.value).css("width"),f.value=bi(c.value).css("width")},!1);const h=new Db;let p=M.ref(n.header);const g=()=>{o.value&&(h.fromDOM([o.value]),h.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:p.value?"reverse":"normal"}),p.value=!p.value,i("triggerHeader",p.value))};let v=M.ref(n.footer);const _=()=>{a.value&&(h.fromDOM([a.value]),h.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,i("triggerFooter",v.value))};let y=M.ref(n.left);const m=()=>{s.value&&(h.fromDOM([s.value]),h.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:y.value?"reverse":"normal"}),y.value=!y.value,i("triggerLeft",y.value))};let x=M.ref(n.right);return t({triggerHeader:g,triggerFooter:_,triggerLeft:m,triggerRight:()=>{c.value&&(h.fromDOM([c.value]),h.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:x.value?"reverse":"normal"}),x.value=!x.value,i("triggerRight",x.value))}}),($,A)=>(M.openBlock(),M.createElementBlock("div",MM,[M.createElementVNode("header",{id:"header",ref_key:"refHeader",ref:o,style:M.normalizeStyle({transform:$.header?"translate(0, 0)":`translate(0, -${l.value})`})},[M.renderSlot($.$slots,"header",{},void 0,!0)],4),M.createElementVNode("div",{id:"main",style:M.normalizeStyle({paddingTop:M.unref(p)?l.value:0,paddingBottom:M.unref(v)?u.value:0})},[M.renderSlot($.$slots,"main",{},void 0,!0)],4),M.createElementVNode("footer",{id:"footer",ref_key:"refFooter",ref:a,style:M.normalizeStyle({transform:$.footer?"translate(0, 0)":`translate(0, ${u.value})`})},[M.renderSlot($.$slots,"footer",{},void 0,!0)],4),M.createElementVNode("div",{id:"left",ref_key:"refLeft",ref:s,style:M.normalizeStyle({transform:$.left?"translate(0, 0)":`translate(-${d.value}, 0)`})},[M.renderSlot($.$slots,"left",{},void 0,!0)],4),M.createElementVNode("div",{id:"right",ref_key:"refRight",ref:c,style:M.normalizeStyle({transform:$.right?"translate(0, 0)":`translate(${f.value}, 0)`})},[M.renderSlot($.$slots,"right",{},void 0,!0)],4)]))}}),[["__scopeId","data-v-aded2ce3"]]),UM={class:"content"},zM={class:"content-inner"},GM={key:0,class:"title"},VM={key:0,class:"title-inner truncate"},BM={class:"custom-content"},HM={key:1,class:"btns"},o0=zn(M.defineComponent({customOptions:{Icon:Ho,Button:ao},__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=M.ref(),a=new Db,s=(f=!0)=>{f?M.watch(o,()=>{o.value&&(a.fromDOM(o.value),a.toCSS("popIn",{easeName:"ease",dur:n.openDurTime}))},{once:!0}):a.toCSS("popIn",{easeName:"ease",dur:n.closeDurTime,direction:"reverse"})},c=M.ref();M.watch(c,(f,h)=>{f!==h&&s(c.value)}),M.watch(()=>n.open,()=>{(n.open===!0||n.open===!1)&&(c.value=n.open)},{immediate:!0});function l(){s(!1),setTimeout(()=>{c.value=!1,i("close")},n.closeDurTime)}function u(){l(),i("cancel")}function d(){l(),i("confirm")}return t({close:l}),(f,h)=>c.value?(M.openBlock(),M.createElementBlock("div",{key:0,class:"overlay",style:M.normalizeStyle(["background-color: "+M.unref(CA)(M.unref(Ce).colorGray0,.25)])},[M.createElementVNode("div",UM,[M.createElementVNode("div",zM,[M.createElementVNode("div",{ref_key:"dialog",ref:o,class:"panel",style:M.normalizeStyle(["background-color: "+M.unref(Ce).colorGrayFF,"opacity: 0"])},[f.showTitle||f.showClose?(M.openBlock(),M.createElementBlock("div",GM,[f.showTitle?(M.openBlock(),M.createElementBlock("div",VM,M.toDisplayString(f.title),1)):M.createCommentVNode("",!0),f.showClose?(M.openBlock(),M.createBlock(Ho,{key:1,class:"close",icon:"ic:baseline-close",color:M.unref(Ce).colorGrayCC,onClick:l},null,8,["color"])):M.createCommentVNode("",!0)])):M.createCommentVNode("",!0),M.createElementVNode("div",BM,[M.renderSlot(f.$slots,"default",{},()=>[M.createTextVNode(M.toDisplayString(f.content),1)],!0)]),f.showCancel||f.showConfirm?(M.openBlock(),M.createElementBlock("div",HM,[f.showCancel?(M.openBlock(),M.createBlock(ao,{key:0,onClick:u,class:"btn",bgColor:M.unref(Ce).colorGrayE6,borderColor:M.unref(Ce).colorGrayE6,fontColor:M.unref(Ce).colorGray3,borderRadius:"0"},{default:M.withCtx(()=>[M.createTextVNode(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):M.createCommentVNode("",!0),f.showConfirm?(M.openBlock(),M.createBlock(ao,{key:1,onClick:d,class:"btn",borderRadius:"0"},{default:M.withCtx(()=>[M.createTextVNode(" 确定 ")]),_:1})):M.createCommentVNode("",!0)])):M.createCommentVNode("",!0)],4)])])],4)):M.createCommentVNode("",!0)}}),[["__scopeId","data-v-04990eca"]]),qM=M.defineComponent({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Ce.colorPrimary}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createElementBlock("svg",{viewBox:"25 25 50 50",style:M.normalizeStyle(["width: "+t.width])},[M.createElementVNode("circle",{cx:"50",cy:"50",r:"20",style:M.normalizeStyle(["stroke: "+t.color])},null,4)],4))}}),gx=zn(qM,[["__scopeId","data-v-294be3ac"]]),KM={class:"loading"},YM={class:"icon"},XM={key:0,class:"content"},WM=zn(M.defineComponent({customOptions:{Dialog:o0,SVGLoading:gx},__name:"DialogLoading",props:{open:{type:Boolean,default:!1},content:{}},setup(e){const t=e;return(r,n)=>(M.openBlock(),M.createBlock(o0,{open:t.open,showConfirm:!1,showTitle:!1},{default:M.withCtx(()=>[M.createElementVNode("div",KM,[M.createElementVNode("div",YM,[M.renderSlot(r.$slots,"default",{},()=>[M.createVNode(gx)],!0)]),r.content?(M.openBlock(),M.createElementBlock("div",XM,M.toDisplayString(r.content),1)):M.createCommentVNode("",!0)])]),_:3},8,["open"]))}}),[["__scopeId","data-v-4c219302"]]),JM=["value"],QM=["value"],ZM=zn(M.defineComponent({__name:"Select",props:{options:{},initIndex:{default:0}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex),o=s=>{i.value=parseInt(s.target.value),n("change",r.options[i.value])},a=s=>{s.target.style.borderColor=Ce.colorPrimary};return(s,c)=>(M.openBlock(),M.createElementBlock("select",{value:i.value,onChange:o,onFocus:a,class:"select",style:M.normalizeStyle({border:"1px solid "+M.unref(Ce).colorGrayCC,fontSize:M.unref(Ce).fontSize14})},[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(s.options,(l,u)=>(M.openBlock(),M.createElementBlock("option",{key:u,value:u},M.toDisplayString(l),9,QM))),128))],44,JM))}}),[["__scopeId","data-v-258e6373"]]);function a0(e,t,r){let n=M.ref(r==null?void 0:r.value),i=M.computed(()=>e.value!==void 0);return[M.computed(()=>i.value?e.value:n.value),function(o){return i.value||(n.value=o),t==null?void 0:t(o)}]}let tL=Symbol("headlessui.useid"),eL=0;function Gn(){return M.inject(tL,()=>`${++eL}`)()}function de(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 Gr(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,Gr),n}var rL=Object.defineProperty,nL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vx=(e,t,r)=>(nL(e,typeof t!="symbol"?t+"":t,r),r);let iL=class{constructor(){vx(this,"current",this.detect()),vx(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"}},s0=new iL;function Oa(e){if(s0.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=de(e);if(t)return t.ownerDocument}return document}let l0=["[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 Vr=(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))(Vr||{}),qo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(qo||{}),oL=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oL||{});function aL(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(l0)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var c0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(c0||{});function yx(e,t=0){var r;return e===((r=Oa(e))==null?void 0:r.body)?!1:Gr(t,{0(){return e.matches(l0)},1(){let n=e;for(;n!==null;){if(n.matches(l0))return!0;n=n.parentElement}return!1}})}var sL=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(sL||{});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 lL=["textarea","input"].join(",");function cL(e){var t,r;return(r=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lL))!=null?r:!1}function so(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 a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lo(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var o;let a=(o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?o:document,s=Array.isArray(e)?r?so(e):e:aL(e);i.length>0&&s.length>1&&(s=s.filter(p=>!i.includes(p))),n=n??a.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,s.indexOf(n))-1;if(t&4)return Math.max(0,s.indexOf(n))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=s.length,h;do{if(d>=f||d+f<=0)return 0;let p=l+d;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}h=s[p],h==null||h.focus(u),d+=c}while(h!==a.activeElement);return t&6&&cL(h)&&h.select(),2}function uL(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hL(){return/Android/gi.test(window.navigator.userAgent)}function dL(){return uL()||hL()}function Fu(e,t,r){s0.isServer||M.watchEffect(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function fL(e,t,r){s0.isServer||M.watchEffect(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function pL(e,t,r=M.computed(()=>!0)){function n(o,a){if(!r.value||o.defaultPrevented)return;let s=a(o);if(s===null||!s.getRootNode().contains(s))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:de(l);if(u!=null&&u.contains(s)||o.composed&&o.composedPath().includes(u))return}return!yx(s,c0.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let i=M.ref(null);Fu("pointerdown",o=>{var a,s;r.value&&(i.value=((s=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:s[0])||o.target)},!0),Fu("mousedown",o=>{var a,s;r.value&&(i.value=((s=(a=o.composedPath)==null?void 0:a.call(o))==null?void 0:s[0])||o.target)},!0),Fu("click",o=>{dL()||i.value&&(n(o,()=>i.value),i.value=null)},!0),Fu("touchend",o=>n(o,()=>o.target instanceof HTMLElement?o.target:null),!0),fL("blur",o=>n(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function _x(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function u0(e,t){let r=M.ref(_x(e.value.type,e.value.as));return M.onMounted(()=>{r.value=_x(e.value.type,e.value.as)}),M.watchEffect(()=>{var n;r.value||de(t)&&de(t)instanceof HTMLButtonElement&&!((n=de(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function bx(e){return[e.screenX,e.screenY]}function mL(){let e=M.ref([-1,-1]);return{wasMoved(t){let r=bx(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=bx(t)}}}function gL({container:e,accept:t,walk:r,enabled:n}){M.watchEffect(()=>{let i=e.value;if(!i||n!==void 0&&!n.value)return;let o=Oa(e);if(!o)return;let a=Object.assign(c=>t(c),{acceptNode:t}),s=o.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,a,!1);for(;s.nextNode();)r(s.currentNode)})}var Nl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nl||{}),vL=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vL||{});function Pr({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var o;let a=xx(n,r),s=Object.assign(i,{props:a});if(e||t&2&&a.static)return h0(s);if(t&1){let c=(o=a.unmount)==null||o?0:1;return Gr(c,{0(){return null},1(){return h0({...i,props:{...a,hidden:!0,style:{display:"none"}}})}})}return h0(s)}function h0({props:e,attrs:t,slots:r,slot:n,name:i}){var o,a;let{as:s,...c}=Rl(e,["unmount","static"]),l=(o=r.default)==null?void 0:o.call(r,n),u={};if(n){let d=!1,f=[];for(let[h,p]of Object.entries(n))typeof p=="boolean"&&(d=!0),p===!0&&f.push(h);d&&(u["data-headlessui-state"]=f.join(" "))}if(s==="template"){if(l=wx(l??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[d,...f]=l??[];if(!yL(d)||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(`
44
- `),"","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(`
45
- `)].join(`
46
- `));let h=xx((a=d.props)!=null?a:{},c,u),p=M.cloneVNode(d,h,!0);for(let g in h)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=h[g]);return p}return Array.isArray(l)&&l.length===1?l[0]:l}return M.h(s,Object.assign({},c,u),{default:()=>l})}function wx(e){return e.flatMap(t=>t.type===M.Fragment?wx(t.children):[t])}function xx(...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 a=r[n];for(let s of a){if(i instanceof Event&&i.defaultPrevented)return;s(i,...o)}}});return t}function d0(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Rl(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function yL(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var jl=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jl||{});let Il=M.defineComponent({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,a={"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 Pr({ourProps:a,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),Sx=Symbol("Context");var Dl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Dl||{});function _L(){return M.inject(Sx,null)}function bL(e){M.provide(Sx,e)}var we=(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))(we||{});function wL(e){throw new Error("Unexpected object: "+e)}var Br=(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))(Br||{});function xL(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:wL(e)}}function SL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function f0(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))kx(r,$x(t,n),i);return r}function $x(e,t){return e?e+"["+t+"]":t}function kx(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())kx(e,$x(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,""]):f0(r,t,e)}function Ex(e){var t,r;let n=(t=e==null?void 0: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 Cx=Symbol("DescriptionContext");function $L(){let e=M.inject(Cx,null);if(e===null)throw new Error("Missing parent");return e}function p0({slot:e=M.ref({}),name:t="Description",props:r={}}={}){let n=M.ref([]);function i(o){return n.value.push(o),()=>{let a=n.value.indexOf(o);a!==-1&&n.value.splice(a,1)}}return M.provide(Cx,{register:i,slot:e,name:t,props:r}),M.computed(()=>n.value.length>0?n.value.join(" "):void 0)}M.defineComponent({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let i=(n=e.id)!=null?n:`headlessui-description-${Gn()}`,o=$L();return M.onMounted(()=>M.onUnmounted(o.register(i))),()=>{let{name:a="Description",slot:s=M.ref({}),props:c={}}=o,{...l}=e,u={...Object.entries(c).reduce((d,[f,h])=>Object.assign(d,{[f]:M.unref(h)}),{}),id:i};return Pr({ourProps:u,theirProps:l,slot:s.value,attrs:t,slots:r,name:a})}}});let Px=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Tx(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 s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return Px.test(a)&&(a=a.replace(Px,"")),a}function kL(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 a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():Tx(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Tx(e).trim()}function EL(e){let t=M.ref(""),r=M.ref("");return()=>{let n=de(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let o=kL(n).trim().toLowerCase();return t.value=i,r.value=o,o}}function CL(e,t){return e===t}var PL=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PL||{}),TL=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(TL||{}),OL=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(OL||{});function AL(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let Ox=Symbol("ListboxContext");function Fl(e){let t=M.inject(Ox,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Fl),r}return t}let NL=M.defineComponent({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>CL},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=M.ref(1),o=M.ref(null),a=M.ref(null),s=M.ref(null),c=M.ref([]),l=M.ref(""),u=M.ref(null),d=M.ref(1);function f(m=x=>x){let x=u.value!==null?c.value[u.value]:null,N=so(m(c.value.slice()),A=>de(A.dataRef.domRef)),$=x?N.indexOf(x):null;return $===-1&&($=null),{options:N,activeOptionIndex:$}}let h=M.computed(()=>e.multiple?1:0),[p,g]=a0(M.computed(()=>e.modelValue),m=>n("update:modelValue",m),M.computed(()=>e.defaultValue)),v=M.computed(()=>p.value===void 0?Gr(h.value,{1:[],0:void 0}):p.value),_={listboxState:i,value:v,mode:h,compare(m,x){if(typeof e.by=="string"){let N=e.by;return(m==null?void 0:m[N])===(x==null?void 0:x[N])}return e.by(m,x)},orientation:M.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:a,optionsRef:s,disabled:M.computed(()=>e.disabled),options:c,searchQuery:l,activeOptionIndex:u,activationTrigger:d,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(),A=xL(m===Br.Specific?{focus:Br.Specific,id:x}:{focus:m},{resolveItems:()=>$.options,resolveActiveIndex:()=>$.activeOptionIndex,resolveId:R=>R.id,resolveDisabled:R=>R.dataRef.disabled});l.value="",u.value=A,d.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(A=>A.dataRef.textValue.startsWith(l.value)&&!A.dataRef.disabled),$=N?c.value.indexOf(N):-1;$===-1||$===u.value||(u.value=$,d.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(A=>A.id===m);return $!==-1&&N.splice($,1),N});c.value=x.options,u.value=x.activeOptionIndex,d.value=1},theirOnChange(m){e.disabled||g(m)},select(m){e.disabled||g(Gr(h.value,{0:()=>m,1:()=>{let x=M.toRaw(_.value.value).slice(),N=M.toRaw(m),$=x.findIndex(A=>_.compare(N,M.toRaw(A)));return $===-1?x.push(N):x.splice($,1),x}}))}};pL([a,s],(m,x)=>{var N;_.closeListbox(),yx(x,c0.Loose)||(m.preventDefault(),(N=de(a))==null||N.focus())},M.computed(()=>i.value===0)),M.provide(Ox,_),bL(M.computed(()=>Gr(i.value,{0:Dl.Open,1:Dl.Closed})));let y=M.computed(()=>{var m;return(m=de(a))==null?void 0:m.closest("form")});return M.onMounted(()=>{M.watch([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:$,...A}=e,R={open:i.value===0,disabled:N,value:v.value};return M.h(M.Fragment,[...m!=null&&v.value!=null?f0({[m]:v.value}).map(([G,H])=>M.h(Il,d0({features:jl.Hidden,key:G,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:$,disabled:N,name:G,value:H}))):[],Pr({ourProps:{},theirProps:{...r,...Rl(A,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:R,slots:t,attrs:r,name:"Listbox"})])}}});M.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r}){var n;let i=(n=e.id)!=null?n:`headlessui-listbox-label-${Gn()}`,o=Fl("ListboxLabel");function a(){var s;(s=de(o.buttonRef))==null||s.focus({preventScroll:!0})}return()=>{let s={open:o.listboxState.value===0,disabled:o.disabled.value},{...c}=e,l={id:i,ref:o.labelRef,onClick:a};return Pr({ourProps:l,theirProps:c,slot:s,attrs:t,slots:r,name:"ListboxLabel"})}}});let RL=M.defineComponent({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-${Gn()}`,a=Fl("ListboxButton");n({el:a.buttonRef,$el:a.buttonRef});function s(d){switch(d.key){case we.Space:case we.Enter:case we.ArrowDown:d.preventDefault(),a.openListbox(),M.nextTick(()=>{var f;(f=de(a.optionsRef))==null||f.focus({preventScroll:!0}),a.value.value||a.goToOption(Br.First)});break;case we.ArrowUp:d.preventDefault(),a.openListbox(),M.nextTick(()=>{var f;(f=de(a.optionsRef))==null||f.focus({preventScroll:!0}),a.value.value||a.goToOption(Br.Last)});break}}function c(d){switch(d.key){case we.Space:d.preventDefault();break}}function l(d){a.disabled.value||(a.listboxState.value===0?(a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),a.openListbox(),AL(()=>{var f;return(f=de(a.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=u0(M.computed(()=>({as:e.as,type:t.type})),a.buttonRef);return()=>{var d,f;let h={open:a.listboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...p}=e,g={ref:a.buttonRef,id:o,type:u.value,"aria-haspopup":"listbox","aria-controls":(d=de(a.optionsRef))==null?void 0:d.id,"aria-expanded":a.listboxState.value===0,"aria-labelledby":a.labelRef.value?[(f=de(a.labelRef))==null?void 0:f.id,o].join(" "):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:s,onKeyup:c,onClick:l};return Pr({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,name:"ListboxButton"})}}}),jL=M.defineComponent({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-${Gn()}`,a=Fl("ListboxOptions"),s=M.ref(null);n({el:a.optionsRef,$el:a.optionsRef});function c(d){switch(s.value&&clearTimeout(s.value),d.key){case we.Space:if(a.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),a.search(d.key);case we.Enter:if(d.preventDefault(),d.stopPropagation(),a.activeOptionIndex.value!==null){let f=a.options.value[a.activeOptionIndex.value];a.select(f.dataRef.value)}a.mode.value===0&&(a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case Gr(a.orientation.value,{vertical:we.ArrowDown,horizontal:we.ArrowRight}):return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Next);case Gr(a.orientation.value,{vertical:we.ArrowUp,horizontal:we.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Previous);case we.Home:case we.PageUp:return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.First);case we.End:case we.PageDown:return d.preventDefault(),d.stopPropagation(),a.goToOption(Br.Last);case we.Escape:d.preventDefault(),d.stopPropagation(),a.closeListbox(),M.nextTick(()=>{var f;return(f=de(a.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case we.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(a.search(d.key),s.value=setTimeout(()=>a.clearSearch(),350));break}}let l=_L(),u=M.computed(()=>l!==null?(l.value&Dl.Open)===Dl.Open:a.listboxState.value===0);return()=>{var d,f;let h={open:a.listboxState.value===0},{...p}=e,g={"aria-activedescendant":a.activeOptionIndex.value===null||(d=a.options.value[a.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":a.mode.value===1?!0:void 0,"aria-labelledby":(f=de(a.buttonRef))==null?void 0:f.id,"aria-orientation":a.orientation.value,id:o,onKeydown:c,role:"listbox",tabIndex:0,ref:a.optionsRef};return Pr({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,features:Nl.RenderStrategy|Nl.Static,visible:u.value,name:"ListboxOptions"})}}}),IL=M.defineComponent({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-${Gn()}`,a=Fl("ListboxOption"),s=M.ref(null);n({el:s,$el:s});let c=M.computed(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===o:!1),l=M.computed(()=>Gr(a.mode.value,{0:()=>a.compare(M.toRaw(a.value.value),M.toRaw(e.value)),1:()=>M.toRaw(a.value.value).some(m=>a.compare(M.toRaw(m),M.toRaw(e.value)))})),u=M.computed(()=>Gr(a.mode.value,{1:()=>{var m;let x=M.toRaw(a.value.value);return((m=a.options.value.find(N=>x.some($=>a.compare(M.toRaw($),M.toRaw(N.dataRef.value)))))==null?void 0:m.id)===o},0:()=>l.value})),d=EL(s),f=M.computed(()=>({disabled:e.disabled,value:e.value,get textValue(){return d()},domRef:s}));M.onMounted(()=>a.registerOption(o,f)),M.onUnmounted(()=>a.unregisterOption(o)),M.onMounted(()=>{M.watch([a.listboxState,l],()=>{a.listboxState.value===0&&l.value&&Gr(a.mode.value,{1:()=>{u.value&&a.goToOption(Br.Specific,o)},0:()=>{a.goToOption(Br.Specific,o)}})},{immediate:!0})}),M.watchEffect(()=>{a.listboxState.value===0&&c.value&&a.activationTrigger.value!==0&&M.nextTick(()=>{var m,x;return(x=(m=de(s))==null?void 0:m.scrollIntoView)==null?void 0:x.call(m,{block:"nearest"})})});function h(m){if(e.disabled)return m.preventDefault();a.select(e.value),a.mode.value===0&&(a.closeListbox(),M.nextTick(()=>{var x;return(x=de(a.buttonRef))==null?void 0:x.focus({preventScroll:!0})}))}function p(){if(e.disabled)return a.goToOption(Br.Nothing);a.goToOption(Br.Specific,o)}let g=mL();function v(m){g.update(m)}function _(m){g.wasMoved(m)&&(e.disabled||c.value||a.goToOption(Br.Specific,o,0))}function y(m){g.wasMoved(m)&&(e.disabled||c.value&&a.goToOption(Br.Nothing))}return()=>{let{disabled:m}=e,x={active:c.value,selected:l.value,disabled:m},{value:N,disabled:$,...A}=e,R={id:o,ref:s,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":l.value,disabled:void 0,onClick:h,onFocus:p,onPointerenter:v,onMouseenter:v,onPointermove:_,onMousemove:_,onPointerleave:y,onMouseleave:y};return Pr({ourProps:R,theirProps:A,slot:x,attrs:r,slots:t,name:"ListboxOption"})}}}),Ax=Symbol("LabelContext");function Nx(){let e=M.inject(Ax,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,Nx),t}return e}function m0({slot:e={},name:t="Label",props:r={}}={}){let n=M.ref([]);function i(o){return n.value.push(o),()=>{let a=n.value.indexOf(o);a!==-1&&n.value.splice(a,1)}}return M.provide(Ax,{register:i,slot:e,name:t,props:r}),M.computed(()=>n.value.length>0?n.value.join(" "):void 0)}let DL=M.defineComponent({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-${Gn()}`,o=Nx();return M.onMounted(()=>M.onUnmounted(o.register(i))),()=>{let{name:a="Label",slot:s={},props:c={}}=o,{passive:l,...u}=e,d={...Object.entries(c).reduce((f,[h,p])=>Object.assign(f,{[h]:M.unref(p)}),{}),id:i};return l&&(delete d.onClick,delete d.htmlFor,delete u.onClick),Pr({ourProps:d,theirProps:u,slot:s,attrs:r,slots:t,name:a})}}});function FL(e,t){return e===t}let Rx=Symbol("RadioGroupContext");function jx(e){let t=M.inject(Rx,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jx),r}return t}let ML=M.defineComponent({name:"RadioGroup",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"div"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>FL},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 a=(o=e.id)!=null?o:`headlessui-radiogroup-${Gn()}`,s=M.ref(null),c=M.ref([]),l=m0({name:"RadioGroupLabel"}),u=p0({name:"RadioGroupDescription"});i({el:s,$el:s});let[d,f]=a0(M.computed(()=>e.modelValue),v=>t("update:modelValue",v),M.computed(()=>e.defaultValue)),h={options:c,value:d,disabled:M.computed(()=>e.disabled),firstOption:M.computed(()=>c.value.find(v=>!v.propsRef.disabled)),containsCheckedOption:M.computed(()=>c.value.some(v=>h.compare(M.toRaw(v.propsRef.value),M.toRaw(e.modelValue)))),compare(v,_){if(typeof e.by=="string"){let y=e.by;return(v==null?void 0:v[y])===(_==null?void 0:_[y])}return e.by(v,_)},change(v){var _;if(e.disabled||h.compare(M.toRaw(d.value),M.toRaw(v)))return!1;let y=(_=c.value.find(m=>h.compare(M.toRaw(m.propsRef.value),M.toRaw(v))))==null?void 0:_.propsRef;return y!=null&&y.disabled?!1:(f(v),!0)},registerOption(v){c.value.push(v),c.value=so(c.value,_=>_.element)},unregisterOption(v){let _=c.value.findIndex(y=>y.id===v);_!==-1&&c.value.splice(_,1)}};M.provide(Rx,h),gL({container:M.computed(()=>de(s)),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(!s.value||!s.value.contains(v.target))return;let _=c.value.filter(y=>y.propsRef.disabled===!1).map(y=>y.element);switch(v.key){case we.Enter:Ex(v.currentTarget);break;case we.ArrowLeft:case we.ArrowUp:if(v.preventDefault(),v.stopPropagation(),lo(_,Vr.Previous|Vr.WrapAround)===qo.Success){let y=c.value.find(m=>{var x;return m.element===((x=Oa(s))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break;case we.ArrowRight:case we.ArrowDown:if(v.preventDefault(),v.stopPropagation(),lo(_,Vr.Next|Vr.WrapAround)===qo.Success){let y=c.value.find(m=>{var x;return m.element===((x=Oa(m.element))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break;case we.Space:{v.preventDefault(),v.stopPropagation();let y=c.value.find(m=>{var x;return m.element===((x=Oa(m.element))==null?void 0:x.activeElement)});y&&h.change(y.propsRef.value)}break}}let g=M.computed(()=>{var v;return(v=de(s))==null?void 0:v.closest("form")});return M.onMounted(()=>{M.watch([g],()=>{if(!g.value||e.defaultValue===void 0)return;function v(){h.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:s,id:a,role:"radiogroup","aria-labelledby":l.value,"aria-describedby":u.value,onKeydown:p};return M.h(M.Fragment,[..._!=null&&d.value!=null?f0({[_]:d.value}).map(([N,$])=>M.h(Il,d0({features:jl.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:y,disabled:v,name:N,value:$}))):[],Pr({ourProps:x,theirProps:{...r,...Rl(m,["modelValue","defaultValue","by"])},slot:{},attrs:r,slots:n,name:"RadioGroup"})])}}});var LL=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(LL||{});let UL=M.defineComponent({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-${Gn()}`,a=jx("RadioGroupOption"),s=m0({name:"RadioGroupLabel"}),c=p0({name:"RadioGroupDescription"}),l=M.ref(null),u=M.computed(()=>({value:e.value,disabled:e.disabled})),d=M.ref(1);n({el:l,$el:l});let f=M.computed(()=>de(l));M.onMounted(()=>a.registerOption({id:o,element:f,propsRef:u})),M.onUnmounted(()=>a.unregisterOption(o));let h=M.computed(()=>{var x;return((x=a.firstOption.value)==null?void 0:x.id)===o}),p=M.computed(()=>a.disabled.value||e.disabled),g=M.computed(()=>a.compare(M.toRaw(a.value.value),M.toRaw(e.value))),v=M.computed(()=>p.value?-1:g.value||!a.containsCheckedOption.value&&h.value?0:-1);function _(){var x;a.change(e.value)&&(d.value|=2,(x=de(l))==null||x.focus())}function y(){d.value|=2}function m(){d.value&=-3}return()=>{let{value:x,disabled:N,...$}=e,A={checked:g.value,disabled:p.value,active:!!(d.value&2)},R={id:o,ref:l,role:"radio","aria-checked":g.value?"true":"false","aria-labelledby":s.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 Pr({ourProps:R,theirProps:$,slot:A,attrs:t,slots:r,name:"RadioGroupOption"})}}}),zL=DL,Ix=Symbol("GroupContext"),GL=M.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=M.ref(null),i=m0({name:"SwitchLabel",props:{htmlFor:M.computed(()=>{var a;return(a=n.value)==null?void 0:a.id}),onClick(a){n.value&&(a.currentTarget.tagName==="LABEL"&&a.preventDefault(),n.value.click(),n.value.focus({preventScroll:!0}))}}}),o=p0({name:"SwitchDescription"});return M.provide(Ix,{switchRef:n,labelledby:i,describedby:o}),()=>Pr({theirProps:e,ourProps:{},slot:{},slots:t,attrs:r,name:"SwitchGroup"})}}),VL=M.defineComponent({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 a=(o=e.id)!=null?o:`headlessui-switch-${Gn()}`,s=M.inject(Ix,null),[c,l]=a0(M.computed(()=>e.modelValue),y=>t("update:modelValue",y),M.computed(()=>e.defaultChecked));function u(){l(!c.value)}let d=M.ref(null),f=s===null?d:s.switchRef,h=u0(M.computed(()=>({as:e.as,type:r.type})),f);i({el:f,$el:f});function p(y){y.preventDefault(),u()}function g(y){y.key===we.Space?(y.preventDefault(),u()):y.key===we.Enter&&Ex(y.currentTarget)}function v(y){y.preventDefault()}let _=M.computed(()=>{var y,m;return(m=(y=de(f))==null?void 0:y.closest)==null?void 0:m.call(y,"form")});return M.onMounted(()=>{M.watch([_],()=>{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,A={checked:c.value},R={id:a,ref:f,role:"switch",type:h.value,tabIndex:N===-1?0:N,"aria-checked":c.value,"aria-labelledby":s==null?void 0:s.labelledby.value,"aria-describedby":s==null?void 0:s.describedby.value,onClick:p,onKeyup:g,onKeypress:v};return M.h(M.Fragment,[y!=null&&c.value!=null?M.h(Il,d0({features:jl.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:x,disabled:$.disabled,name:y,value:m})):null,Pr({ourProps:R,theirProps:{...r,...Rl($,["modelValue","defaultChecked"])},slot:A,attrs:r,slots:n,name:"Switch"})])}}}),BL=M.defineComponent({props:{onFocus:{type:Function,required:!0}},setup(e){let t=M.ref(!0);return()=>t.value?M.h(Il,{as:"button",type:"button",features:jl.Focusable,onFocus(r){r.preventDefault();let n,i=50;function o(){var a;if(i--<=0){n&&cancelAnimationFrame(n);return}if((a=e.onFocus)!=null&&a.call(e)){t.value=!1,cancelAnimationFrame(n);return}n=requestAnimationFrame(o)}n=requestAnimationFrame(o)}}):null}});var HL=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(HL||{}),qL=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(qL||{});let Dx=Symbol("TabsContext");function Ml(e){let t=M.inject(Dx,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ml),r}return t}let g0=Symbol("TabsSSRContext"),KL=M.defineComponent({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=M.ref((i=e.selectedIndex)!=null?i:e.defaultIndex),a=M.ref([]),s=M.ref([]),c=M.computed(()=>e.selectedIndex!==null),l=M.computed(()=>c.value?e.selectedIndex:o.value);function u(g){var v;let _=so(d.tabs.value,de),y=so(d.panels.value,de),m=_.filter(x=>{var N;return!((N=de(x))!=null&&N.hasAttribute("disabled"))});if(g<0||g>_.length-1){let x=Gr(o.value===null?0:Math.sign(g-o.value),{[-1]:()=>1,0:()=>Gr(Math.sign(g),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),N=Gr(x,{0:()=>_.indexOf(m[0]),1:()=>_.indexOf(m[m.length-1])});N!==-1&&(o.value=N),d.tabs.value=_,d.panels.value=y}else{let x=_.slice(0,g),N=[..._.slice(g),...x].find(A=>m.includes(A));if(!N)return;let $=(v=_.indexOf(N))!=null?v:d.selectedIndex.value;$===-1&&($=d.selectedIndex.value),o.value=$,d.tabs.value=_,d.panels.value=y}}let d={selectedIndex:M.computed(()=>{var g,v;return(v=(g=o.value)!=null?g:e.defaultIndex)!=null?v:null}),orientation:M.computed(()=>e.vertical?"vertical":"horizontal"),activation:M.computed(()=>e.manual?"manual":"auto"),tabs:a,panels:s,setSelectedIndex(g){l.value!==g&&n("change",g),c.value||u(g)},registerTab(g){var v;if(a.value.includes(g))return;let _=a.value[o.value];if(a.value.push(g),a.value=so(a.value,de),!c.value){let y=(v=a.value.indexOf(_))!=null?v:o.value;y!==-1&&(o.value=y)}},unregisterTab(g){let v=a.value.indexOf(g);v!==-1&&a.value.splice(v,1)},registerPanel(g){s.value.includes(g)||(s.value.push(g),s.value=so(s.value,de))},unregisterPanel(g){let v=s.value.indexOf(g);v!==-1&&s.value.splice(v,1)}};M.provide(Dx,d);let f=M.ref({tabs:[],panels:[]}),h=M.ref(!1);M.onMounted(()=>{h.value=!0}),M.provide(g0,M.computed(()=>h.value?null:f.value));let p=M.computed(()=>e.selectedIndex);return M.onMounted(()=>{M.watch([p],()=>{var g;return u((g=e.selectedIndex)!=null?g:e.defaultIndex)},{immediate:!0})}),M.watchEffect(()=>{if(!c.value||l.value==null||d.tabs.value.length<=0)return;let g=so(d.tabs.value,de);g.some((v,_)=>de(d.tabs.value[_])!==de(v))&&d.setSelectedIndex(g.findIndex(v=>de(v)===de(d.tabs.value[l.value])))}),()=>{let g={selectedIndex:o.value};return M.h(M.Fragment,[a.value.length<=0&&M.h(BL,{onFocus:()=>{for(let v of a.value){let _=de(v);if((_==null?void 0:_.tabIndex)===0)return _.focus(),!0}return!1}}),Pr({theirProps:{...r,...Rl(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:g,slots:t,attrs:r,name:"TabGroup"})])}}}),YL=M.defineComponent({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:r}){let n=Ml("TabList");return()=>{let i={selectedIndex:n.selectedIndex.value},o={role:"tablist","aria-orientation":n.orientation.value};return Pr({ourProps:o,theirProps:e,slot:i,attrs:t,slots:r,name:"TabList"})}}}),XL=M.defineComponent({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-${Gn()}`,a=Ml("Tab"),s=M.ref(null);n({el:s,$el:s}),M.onMounted(()=>a.registerTab(s)),M.onUnmounted(()=>a.unregisterTab(s));let c=M.inject(g0),l=M.computed(()=>{if(c.value){let y=c.value.tabs.indexOf(o);return y===-1?c.value.tabs.push(o)-1:y}return-1}),u=M.computed(()=>{let y=a.tabs.value.indexOf(s);return y===-1?l.value:y}),d=M.computed(()=>u.value===a.selectedIndex.value);function f(y){var m;let x=y();if(x===qo.Success&&a.activation.value==="auto"){let N=(m=Oa(s))==null?void 0:m.activeElement,$=a.tabs.value.findIndex(A=>de(A)===N);$!==-1&&a.setSelectedIndex($)}return x}function h(y){let m=a.tabs.value.map(x=>de(x)).filter(Boolean);if(y.key===we.Space||y.key===we.Enter){y.preventDefault(),y.stopPropagation(),a.setSelectedIndex(u.value);return}switch(y.key){case we.Home:case we.PageUp:return y.preventDefault(),y.stopPropagation(),f(()=>lo(m,Vr.First));case we.End:case we.PageDown:return y.preventDefault(),y.stopPropagation(),f(()=>lo(m,Vr.Last))}if(f(()=>Gr(a.orientation.value,{vertical(){return y.key===we.ArrowUp?lo(m,Vr.Previous|Vr.WrapAround):y.key===we.ArrowDown?lo(m,Vr.Next|Vr.WrapAround):qo.Error},horizontal(){return y.key===we.ArrowLeft?lo(m,Vr.Previous|Vr.WrapAround):y.key===we.ArrowRight?lo(m,Vr.Next|Vr.WrapAround):qo.Error}}))===qo.Success)return y.preventDefault()}let p=M.ref(!1);function g(){var y;p.value||(p.value=!0,!e.disabled&&((y=de(s))==null||y.focus({preventScroll:!0}),a.setSelectedIndex(u.value),SL(()=>{p.value=!1})))}function v(y){y.preventDefault()}let _=u0(M.computed(()=>({as:e.as,type:t.type})),s);return()=>{var y,m;let x={selected:d.value,disabled:(y=e.disabled)!=null?y:!1},{...N}=e,$={ref:s,onKeydown:h,onMousedown:v,onClick:g,id:o,role:"tab",type:_.value,"aria-controls":(m=de(a.panels.value[u.value]))==null?void 0:m.id,"aria-selected":d.value,tabIndex:d.value?0:-1,disabled:e.disabled?!0:void 0};return Pr({ourProps:$,theirProps:N,slot:x,attrs:t,slots:r,name:"Tab"})}}});M.defineComponent({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:r}){let n=Ml("TabPanels");return()=>{let i={selectedIndex:n.selectedIndex.value};return Pr({theirProps:e,ourProps:{},slot:i,attrs:r,slots:t,name:"TabPanels"})}}}),M.defineComponent({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:r,expose:n}){var i;let o=(i=e.id)!=null?i:`headlessui-tabs-panel-${Gn()}`,a=Ml("TabPanel"),s=M.ref(null);n({el:s,$el:s}),M.onMounted(()=>a.registerPanel(s)),M.onUnmounted(()=>a.unregisterPanel(s));let c=M.inject(g0),l=M.computed(()=>{if(c.value){let f=c.value.panels.indexOf(o);return f===-1?c.value.panels.push(o)-1:f}return-1}),u=M.computed(()=>{let f=a.panels.value.indexOf(s);return f===-1?l.value:f}),d=M.computed(()=>u.value===a.selectedIndex.value);return()=>{var f;let h={selected:d.value},{tabIndex:p,...g}=e,v={ref:s,id:o,role:"tabpanel","aria-labelledby":(f=de(a.tabs.value[u.value]))==null?void 0:f.id,tabIndex:d.value?p:-1};return!d.value&&e.unmount&&!e.static?M.h(Il,{as:"span","aria-hidden":!0,...v}):Pr({ourProps:v,theirProps:g,slot:h,attrs:t,slots:r,features:Nl.Static|Nl.RenderStrategy,visible:d.value,name:"TabPanel"})}}});const WL=zn(M.defineComponent({customOptions:{Icon:Ho,Button:ao},__name:"SelectHeadlessUI",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);return M.watch(i,function(){n("change",r.options[i.value])}),(o,a)=>(M.openBlock(),M.createBlock(M.unref(NL),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s)},{default:M.withCtx(({open:s})=>[M.createElementVNode("div",{class:"wrap",style:M.normalizeStyle(["font-size:"+o.fontSize])},[M.createVNode(M.unref(RL),{class:"button"},{default:M.withCtx(()=>[M.renderSlot(o.$slots,"button",{selectedIndex:i.value},()=>[M.createVNode(ao,{icon:"carbon:chevron-sort",label:o.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),_:3}),M.createVNode(M.Transition,{name:"transition"},{default:M.withCtx(()=>[M.withDirectives(M.createElementVNode("div",null,[M.createVNode(M.unref(jL),{static:"",class:"options",style:M.normalizeStyle({border:"1px solid "+M.unref(Ce).colorGrayCC})},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(o.options,(c,l)=>(M.openBlock(),M.createBlock(M.unref(IL),{as:"div",class:"option",key:l,value:l,style:M.normalizeStyle({borderTop:(l==0?"0":"1px")+" solid "+M.unref(Ce).colorGrayCC})},{default:M.withCtx(({active:u,selected:d})=>[M.createElementVNode("div",{class:"option-inner",style:M.normalizeStyle({backgroundColor:u?M.unref(Ce).colorGrayF5:M.unref(Ce).colorGrayFF})},[M.renderSlot(o.$slots,"default",{active:u,selected:d,item:c,index:l},()=>[d||l==i.value?(M.openBlock(),M.createBlock(Ho,{key:0,icon:"mingcute:check-fill",class:"icon"})):M.createCommentVNode("",!0),M.createElementVNode("span",null,M.toDisplayString(c),1)],!0)],4)]),_:2},1032,["value","style"]))),128))]),_:3},8,["style"])],512),[[M.vShow,s]])]),_:2},1024)],4)]),_:3},8,["modelValue"]))}}),[["__scopeId","data-v-02a8e28b"]]);function Ut(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 JL=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`
47
- [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
48
- |[\u{4E00}-\u{9FCC}]
49
- |[\u{3400}-\u{4DB5}]
50
- |[\u{20000}-\u{2A6D6}]
51
- |[\u{2A700}-\u{2B734}]
52
- |[\u{2B740}-\u{2B81D}]
53
- |[\u{2B820}-\u{2CEAF}]
54
- |[\u{2CEB0}-\u{2EBEF}]
55
- `.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 QL(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 ZL=(e,t)=>{typeof e=="string"&&(e=JL(e)||new RegExp(e));const r=t.match(e);return QL(r)};function Fx(e,t){return function(){return e.apply(t,arguments)}}const{toString:tU}=Object.prototype,{getPrototypeOf:v0}=Object,Mu=(e=>t=>{const r=tU.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),li=e=>(e=e.toLowerCase(),t=>Mu(t)===e),Lu=e=>t=>typeof t===e,{isArray:Aa}=Array,Ll=Lu("undefined");function eU(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&Sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mx=li("ArrayBuffer");function rU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mx(e.buffer),t}const nU=Lu("string"),Sn=Lu("function"),Lx=Lu("number"),Uu=e=>e!==null&&typeof e=="object",iU=e=>e===!0||e===!1,zu=e=>{if(Mu(e)!=="object")return!1;const t=v0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oU=li("Date"),aU=li("File"),sU=li("Blob"),lU=li("FileList"),cU=e=>Uu(e)&&Sn(e.pipe),uU=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Sn(e.append)&&((t=Mu(e))==="formdata"||t==="object"&&Sn(e.toString)&&e.toString()==="[object FormData]"))},hU=li("URLSearchParams"),dU=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ul(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Aa(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),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function Ux(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 zx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gx=e=>!Ll(e)&&e!==zx;function y0(){const{caseless:e}=Gx(this)&&this||{},t={},r=(n,i)=>{const o=e&&Ux(t,i)||i;zu(t[o])&&zu(n)?t[o]=y0(t[o],n):zu(n)?t[o]=y0({},n):Aa(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ul(arguments[n],r);return t}const fU=(e,t,r,{allOwnKeys:n}={})=>(Ul(t,(i,o)=>{r&&Sn(i)?e[o]=Fx(i,r):e[o]=i},{allOwnKeys:n}),e),pU=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mU=(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)},gU=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&v0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vU=(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},yU=e=>{if(!e)return null;if(Aa(e))return e;let t=e.length;if(!Lx(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},_U=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&v0(Uint8Array)),bU=(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])}},wU=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},xU=li("HTMLFormElement"),SU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Vx=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$U=li("RegExp"),Bx=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ul(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},kU=e=>{Bx(e,(t,r)=>{if(Sn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Sn(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+"'")})}})},EU=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Aa(e)?n(e):n(String(e).split(t)),r},CU=()=>{},PU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_0="abcdefghijklmnopqrstuvwxyz",Hx="0123456789",qx={DIGIT:Hx,ALPHA:_0,ALPHA_DIGIT:_0+_0.toUpperCase()+Hx},TU=(e=16,t=qx.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function OU(e){return!!(e&&Sn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const AU=e=>{const t=new Array(10),r=(n,i)=>{if(Uu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Aa(n)?[]:{};return Ul(n,(a,s)=>{const c=r(a,i+1);!Ll(c)&&(o[s]=c)}),t[i]=void 0,o}}return n};return r(e,0)},NU=li("AsyncFunction"),RU=e=>e&&(Uu(e)||Sn(e))&&Sn(e.then)&&Sn(e.catch),gt={isArray:Aa,isArrayBuffer:Mx,isBuffer:eU,isFormData:uU,isArrayBufferView:rU,isString:nU,isNumber:Lx,isBoolean:iU,isObject:Uu,isPlainObject:zu,isUndefined:Ll,isDate:oU,isFile:aU,isBlob:sU,isRegExp:$U,isFunction:Sn,isStream:cU,isURLSearchParams:hU,isTypedArray:_U,isFileList:lU,forEach:Ul,merge:y0,extend:fU,trim:dU,stripBOM:pU,inherits:mU,toFlatObject:gU,kindOf:Mu,kindOfTest:li,endsWith:vU,toArray:yU,forEachEntry:bU,matchAll:wU,isHTMLForm:xU,hasOwnProperty:Vx,hasOwnProp:Vx,reduceDescriptors:Bx,freezeMethods:kU,toObjectSet:EU,toCamelCase:SU,noop:CU,toFiniteNumber:PU,findKey:Ux,global:zx,isContextDefined:Gx,ALPHABET:qx,generateString:TU,isSpecCompliantForm:OU,toJSONObject:AU,isAsyncFn:NU,isThenable:RU};function Pe(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)}gt.inherits(Pe,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:gt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Kx=Pe.prototype,Yx={};["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=>{Yx[e]={value:e}}),Object.defineProperties(Pe,Yx),Object.defineProperty(Kx,"isAxiosError",{value:!0}),Pe.from=(e,t,r,n,i,o)=>{const a=Object.create(Kx);return gt.toFlatObject(e,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),Pe.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const jU=null;function b0(e){return gt.isPlainObject(e)||gt.isArray(e)}function Xx(e){return gt.endsWith(e,"[]")?e.slice(0,-2):e}function Wx(e,t,r){return e?e.concat(t).map(function(n,i){return n=Xx(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function IU(e){return gt.isArray(e)&&!e.some(b0)}const DU=gt.toFlatObject(gt,{},null,function(e){return/^is[A-Z]/.test(e)});function Gu(e,t,r){if(!gt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=gt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,p){return!gt.isUndefined(p[h])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&gt.isSpecCompliantForm(t);if(!gt.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(gt.isDate(h))return h.toISOString();if(!s&&gt.isBlob(h))throw new Pe("Blob is not supported. Use a Buffer instead.");return gt.isArrayBuffer(h)||gt.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,p,g){let v=h;if(h&&!g&&typeof h=="object"){if(gt.endsWith(p,"{}"))p=n?p:p.slice(0,-2),h=JSON.stringify(h);else if(gt.isArray(h)&&IU(h)||(gt.isFileList(h)||gt.endsWith(p,"[]"))&&(v=gt.toArray(h)))return p=Xx(p),v.forEach(function(_,y){!(gt.isUndefined(_)||_===null)&&t.append(a===!0?Wx([p],y,o):a===null?p:p+"[]",c(_))}),!1}return b0(h)?!0:(t.append(Wx(g,p,o),c(h)),!1)}const u=[],d=Object.assign(DU,{defaultVisitor:l,convertValue:c,isVisitable:b0});function f(h,p){if(!gt.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(h),gt.forEach(h,function(g,v){(!(gt.isUndefined(g)||g===null)&&i.call(t,g,gt.isString(v)?v.trim():v,p,d))===!0&&f(g,p?p.concat(v):[v])}),u.pop()}}if(!gt.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Jx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w0(e,t){this._pairs=[],e&&Gu(e,this,t)}const Qx=w0.prototype;Qx.append=function(e,t){this._pairs.push([e,t])},Qx.toString=function(e){const t=e?function(r){return e.call(this,r,Jx)}:Jx;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function FU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zx(e,t,r){if(!t)return e;const n=r&&r.encode||FU,i=r&&r.serialize;let o;if(i?o=i(t,r):o=gt.isURLSearchParams(t)?t.toString():new w0(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class MU{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){gt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const tS=MU,eS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},LU=typeof URLSearchParams<"u"?URLSearchParams:w0,UU=typeof FormData<"u"?FormData:null,zU=typeof Blob<"u"?Blob:null,GU=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),VU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ci={isBrowser:!0,classes:{URLSearchParams:LU,FormData:UU,Blob:zU},isStandardBrowserEnv:GU,isStandardBrowserWebWorkerEnv:VU,protocols:["http","https","file","blob","url","data"]};function BU(e,t){return Gu(e,new ci.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return ci.isNode&&gt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function HU(e){return gt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qU(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 rS(e){function t(r,n,i,o){let a=r[o++];const s=Number.isFinite(+a),c=o>=r.length;return a=!a&&gt.isArray(i)?i.length:a,c?(gt.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!gt.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&gt.isArray(i[a])&&(i[a]=qU(i[a])),!s)}if(gt.isFormData(e)&&gt.isFunction(e.entries)){const r={};return gt.forEachEntry(e,(n,i)=>{t(HU(n),i,r,0)}),r}return null}function KU(e,t,r){if(gt.isString(e))try{return(t||JSON.parse)(e),gt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const x0={transitional:eS,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=gt.isObject(e);if(i&&gt.isHTMLForm(e)&&(e=new FormData(e)),gt.isFormData(e))return n&&n?JSON.stringify(rS(e)):e;if(gt.isArrayBuffer(e)||gt.isBuffer(e)||gt.isStream(e)||gt.isFile(e)||gt.isBlob(e))return e;if(gt.isArrayBufferView(e))return e.buffer;if(gt.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 BU(e,this.formSerializer).toString();if((o=gt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Gu(o?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),KU(e)):e}],transformResponse:[function(e){const t=this.transitional||x0.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&gt.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"?Pe.from(o,Pe.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:ci.classes.FormData,Blob:ci.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};gt.forEach(["delete","get","head","post","put","patch"],e=>{x0.headers[e]={}});const S0=x0,YU=gt.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"]),XU=e=>{const t={};let r,n,i;return e&&e.split(`
56
- `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&YU[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},nS=Symbol("internals");function zl(e){return e&&String(e).trim().toLowerCase()}function Vu(e){return e===!1||e==null?e:gt.isArray(e)?e.map(Vu):String(e)}function WU(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 JU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $0(e,t,r,n,i){if(gt.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!gt.isString(t)){if(gt.isString(n))return t.indexOf(n)!==-1;if(gt.isRegExp(n))return n.test(t)}}function QU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ZU(e,t){const r=gt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class Bu{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,c,l){const u=zl(c);if(!u)throw new Error("header name must be a non-empty string");const d=gt.findKey(i,u);(!d||i[d]===void 0||l===!0||l===void 0&&i[d]!==!1)&&(i[d||c]=Vu(s))}const a=(s,c)=>gt.forEach(s,(l,u)=>o(l,u,c));return gt.isPlainObject(t)||t instanceof this.constructor?a(t,r):gt.isString(t)&&(t=t.trim())&&!JU(t)?a(XU(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=zl(t),t){const n=gt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return WU(i);if(gt.isFunction(r))return r.call(this,i,n);if(gt.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=zl(t),t){const n=gt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||$0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=zl(a),a){const s=gt.findKey(n,a);s&&(!r||$0(n,n[s],s,r))&&(delete n[s],i=!0)}}return gt.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||$0(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return gt.forEach(this,(i,o)=>{const a=gt.findKey(n,o);if(a){r[a]=Vu(i),delete r[o];return}const s=t?QU(o):String(o).trim();s!==o&&delete r[o],r[s]=Vu(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return gt.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&gt.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(`
57
- `)}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[nS]=this[nS]={accessors:{}}).accessors,n=this.prototype;function i(o){const a=zl(o);r[a]||(ZU(n,o),r[a]=!0)}return gt.isArray(t)?t.forEach(i):i(t),this}}Bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),gt.reduceDescriptors(Bu.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),gt.freezeMethods(Bu);const Ni=Bu;function k0(e,t){const r=this||S0,n=t||r,i=Ni.from(n.headers);let o=n.data;return gt.forEach(e,function(a){o=a.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function iS(e){return!!(e&&e.__CANCEL__)}function Gl(e,t,r){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,r),this.name="CanceledError"}gt.inherits(Gl,Pe,{__CANCEL__:!0});function tz(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Pe("Request failed with status code "+r.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ez=ci.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),gt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),gt.isString(n)&&a.push("path="+n),gt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 rz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nz(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function oS(e,t){return e&&!rz(t)?nz(e,t):t}const iz=ci.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=gt.isString(i)?n(i):i;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function oz(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function az(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),l=n[o];a||(a=c),r[i]=s,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function aS(e,t){let r=0;const n=az(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),l=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const sz=typeof XMLHttpRequest<"u",lz=sz&&function(e){return new Promise(function(t,r){let n=e.data;const i=Ni.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;gt.isFormData(n)&&(ci.isStandardBrowserEnv||ci.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?gt.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 h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=oS(e.baseURL,e.url);l.open(e.method.toUpperCase(),Zx(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=Ni.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};tz(function(g){t(g),s()},function(g){r(g),s()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Pe("Request aborted",Pe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Pe("Network Error",Pe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||eS;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new Pe(h,p.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,l)),l=null},ci.isStandardBrowserEnv){const h=(e.withCredentials||iz(u))&&e.xsrfCookieName&&ez.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&gt.forEach(i.toJSON(),function(h,p){l.setRequestHeader(p,h)}),gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",aS(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",aS(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{l&&(r(!h||h.type?new Gl(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=oz(u);if(f&&ci.protocols.indexOf(f)===-1){r(new Pe("Unsupported protocol "+f+":",Pe.ERR_BAD_REQUEST,e));return}l.send(n||null)})},E0={http:jU,xhr:lz};gt.forEach(E0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sS=e=>`- ${e}`,cz=e=>gt.isFunction(e)||e===null||e===!1,lS={getAdapter:e=>{e=gt.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let a;if(n=r,!cz(r)&&(n=E0[(a=String(r)).toLowerCase()],n===void 0))throw new Pe(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
58
- `+o.map(sS).join(`
59
- `):" "+sS(o[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:E0};function C0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gl(null,e)}function cS(e){return C0(e),e.headers=Ni.from(e.headers),e.data=k0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lS.getAdapter(e.adapter||S0.adapter)(e).then(function(t){return C0(e),t.data=k0.call(e,e.transformResponse,t),t.headers=Ni.from(t.headers),t},function(t){return iS(t)||(C0(e),t&&t.response&&(t.response.data=k0.call(e,e.transformResponse,t.response),t.response.headers=Ni.from(t.response.headers))),Promise.reject(t)})}const uS=e=>e instanceof Ni?e.toJSON():e;function Na(e,t){t=t||{};const r={};function n(l,u,d){return gt.isPlainObject(l)&&gt.isPlainObject(u)?gt.merge.call({caseless:d},l,u):gt.isPlainObject(u)?gt.merge({},u):gt.isArray(u)?u.slice():u}function i(l,u,d){if(gt.isUndefined(u)){if(!gt.isUndefined(l))return n(void 0,l,d)}else return n(l,u,d)}function o(l,u){if(!gt.isUndefined(u))return n(void 0,u)}function a(l,u){if(gt.isUndefined(u)){if(!gt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in t)return n(l,u);if(d in e)return n(void 0,l)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>i(uS(l),uS(u),!0)};return gt.forEach(Object.keys(Object.assign({},e,t)),function(l){const u=c[l]||i,d=u(e[l],t[l],l);gt.isUndefined(d)&&u!==s||(r[l]=d)}),r}const hS="1.5.1",P0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{P0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dS={};P0.transitional=function(e,t,r){function n(i,o){return"[Axios v"+hS+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(e===!1)throw new Pe(n(o," has been removed"+(t?" in "+t:"")),Pe.ERR_DEPRECATED);return t&&!dS[o]&&(dS[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,a):!0}};function uz(e,t,r){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new Pe("option "+o+" must be "+c,Pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Pe("Unknown option "+o,Pe.ERR_BAD_OPTION)}}const T0={assertOptions:uz,validators:P0},co=T0.validators;class Hu{constructor(t){this.defaults=t,this.interceptors={request:new tS,response:new tS}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Na(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&T0.assertOptions(n,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),i!=null&&(gt.isFunction(i)?r.paramsSerializer={serialize:i}:T0.assertOptions(i,{encode:co.function,serialize:co.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&gt.merge(o.common,o[r.method]);o&&gt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Ni.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[cS.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=r;for(d=0;d<f;){const p=s[d++],g=s[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=cS.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Na(this.defaults,t);const r=oS(t.baseURL,t.url);return Zx(r,t.params,t.paramsSerializer)}}gt.forEach(["delete","get","head","options"],function(e){Hu.prototype[e]=function(t,r){return this.request(Na(r||{},{method:e,url:t,data:(r||{}).data}))}}),gt.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Na(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Hu.prototype[e]=t(),Hu.prototype[e+"Form"]=t(!0)});const qu=Hu;class O0{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 a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(i,o,a){n.reason||(n.reason=new Gl(i,o,a),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 O0(function(r){t=r}),cancel:t}}}const hz=O0;function dz(e){return function(t){return e.apply(null,t)}}function fz(e){return gt.isObject(e)&&e.isAxiosError===!0}const A0={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(A0).forEach(([e,t])=>{A0[t]=e});const pz=A0;function fS(e){const t=new qu(e),r=Fx(qu.prototype.request,t);return gt.extend(r,qu.prototype,t,{allOwnKeys:!0}),gt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return fS(Na(e,n))},r}const vr=fS(S0);vr.Axios=qu,vr.CanceledError=Gl,vr.CancelToken=hz,vr.isCancel=iS,vr.VERSION=hS,vr.toFormData=Gu,vr.AxiosError=Pe,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=dz,vr.isAxiosError=fz,vr.mergeConfig=Na,vr.AxiosHeaders=Ni,vr.formToJSON=e=>rS(gt.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=lS.getAdapter,vr.HttpStatusCode=pz,vr.default=vr;var N0=function(e,t){return N0=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])},N0(e,t)};function uo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");N0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function R0(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 Vl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Bl(e,t,r){if(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 Ri(e){return typeof e=="function"}function j0(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 I0=j0(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
60
- `+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
61
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Ku(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Hl=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 a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=R0(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(Ri(u))try{u()}catch(g){o=g instanceof I0?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=R0(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{gS(p)}catch(g){o=o??[],g instanceof I0?o=Bl(Bl([],Vl(o)),Vl(g.errors)):o.push(g)}}}catch(g){n={error:g}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}if(o)throw new I0(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)gS(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)&&Ku(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ku(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),pS=Hl.EMPTY;function mS(e){return e instanceof Hl||e&&"closed"in e&&Ri(e.remove)&&Ri(e.add)&&Ri(e.unsubscribe)}function gS(e){Ri(e)?e():e.unsubscribe()}var vS={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Bl([e,t],Vl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function gz(e){mz.setTimeout(function(){throw e})}function yS(){}function Yu(e){e()}var D0=function(e){uo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,mS(r)&&r.add(n)):n.destination=bz,n}return t.create=function(r,n,i){return new M0(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}(Hl),vz=Function.prototype.bind;function F0(e,t){return vz.call(e,t)}var yz=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){Xu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Xu(n)}else Xu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Xu(r)}},e}(),M0=function(e){uo(t,e);function t(r,n,i){var o=e.call(this)||this,a;if(Ri(r)||!r)a={next:r??void 0,error:n??void 0,complete:i??void 0};else{var s;o&&vS.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&F0(r.next,s),error:r.error&&F0(r.error,s),complete:r.complete&&F0(r.complete,s)}):a=r}return o.destination=new yz(a),o}return t}(D0);function Xu(e){gz(e)}function _z(e){throw e}var bz={closed:!0,next:yS,error:_z,complete:yS},wz=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function xz(e){return e}function Sz(e){return e.length===0?xz:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var _S=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=kz(t)?t:new M0(t,r,n);return Yu(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.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=bS(r),new r(function(i,o){var a=new M0({next:function(s){try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[wz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Sz(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=bS(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function bS(e){var t;return(t=e??vS.Promise)!==null&&t!==void 0?t:Promise}function $z(e){return e&&Ri(e.next)&&Ri(e.error)&&Ri(e.complete)}function kz(e){return e&&e instanceof D0||$z(e)&&mS(e)}(function(e){uo(t,e);function t(r,n,i,o,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,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})(D0);var Ez=j0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Cz=function(e){uo(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 wS(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ez},t.prototype.next=function(r){var n=this;Yu(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=R0(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Yu(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;Yu(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,a=i.isStopped,s=i.observers;return o||a?pS:(this.currentObservers=null,s.push(r),new Hl(function(){n.currentObservers=null,Ku(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new _S;return r.source=this,r},t.create=function(r,n){return new wS(r,n)},t}(_S),wS=function(e){uo(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:pS},t}(Cz),Pz={now:function(){return Date.now()},delegate:void 0},Tz=function(e){uo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Hl),L0={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=L0.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Bl([e,t],Vl(r))):setInterval.apply(void 0,Bl([e,t],Vl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Oz=function(e){uo(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,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),L0.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&&L0.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(a){i=!0,o=a||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,Ku(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Tz),xS=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=Pz.now,e}(),Az=function(e){uo(t,e);function t(r,n){n===void 0&&(n=xS.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}(xS);new Az(Oz);function Nz(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 SS=j0(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=Nz(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return SS.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(SS.prototype),e})();var Rz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zt(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 U0={exports:{}},Ra=typeof Reflect=="object"?Reflect:null,$S=Ra&&typeof Ra.apply=="function"?Ra.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Wu;Ra&&typeof Ra.ownKeys=="function"?Wu=Ra.ownKeys:Object.getOwnPropertySymbols?Wu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Wu=function(e){return Object.getOwnPropertyNames(e)};function jz(e){console&&console.warn&&console.warn(e)}var kS=Number.isNaN||function(e){return e!==e};function Ve(){Ve.init.call(this)}U0.exports=Ve,U0.exports.once=Mz,Ve.EventEmitter=Ve,Ve.prototype._events=void 0,Ve.prototype._eventsCount=0,Ve.prototype._maxListeners=void 0;var ES=10;function Ju(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ve,"defaultMaxListeners",{enumerable:!0,get:function(){return ES},set:function(e){if(typeof e!="number"||e<0||kS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ES=e}}),Ve.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},Ve.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||kS(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 CS(e){return e._maxListeners===void 0?Ve.defaultMaxListeners:e._maxListeners}Ve.prototype.getMaxListeners=function(){return CS(this)},Ve.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 a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")$S(s,this,t);else for(var c=s.length,l=NS(s,c),r=0;r<c;++r)$S(l[r],this,t);return!0};function PS(e,t,r,n){var i,o,a;if(Ju(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),a=o[t]),a===void 0)a=o[t]=r,++e._eventsCount;else if(typeof a=="function"?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=CS(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,jz(s)}return e}Ve.prototype.addListener=function(e,t){return PS(this,e,t,!1)},Ve.prototype.on=Ve.prototype.addListener,Ve.prototype.prependListener=function(e,t){return PS(this,e,t,!0)};function Iz(){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 TS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Iz.bind(n);return i.listener=r,n.wrapFn=i,i}Ve.prototype.once=function(e,t){return Ju(t),this.on(e,TS(this,e,t)),this},Ve.prototype.prependOnceListener=function(e,t){return Ju(t),this.prependListener(e,TS(this,e,t)),this},Ve.prototype.removeListener=function(e,t){var r,n,i,o,a;if(Ju(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){a=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():Dz(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Ve.prototype.off=Ve.prototype.removeListener,Ve.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 OS(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?Fz(i):NS(i,i.length)}Ve.prototype.listeners=function(e){return OS(this,e,!0)},Ve.prototype.rawListeners=function(e){return OS(this,e,!1)},Ve.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):AS.call(e,t)},Ve.prototype.listenerCount=AS;function AS(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}Ve.prototype.eventNames=function(){return this._eventsCount>0?Wu(this._events):[]};function NS(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Dz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Fz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Mz(e,t){return new Promise(function(r,n){function i(a){e.removeListener(t,o),n(a)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}RS(e,t,o,{once:!0}),t!=="error"&&Lz(e,i,{once:!0})})}function Lz(e,t,r){typeof e.on=="function"&&RS(e,"error",t,r)}function RS(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 Uz=U0.exports;class tX extends Uz.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 z0={exports:{}},G0={},ji={},Ko={},V0={},B0={},H0={};(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;)s(m,y[x]),m.push(_[++x]);return new n(m)}e._=i;const o=new n("+");function a(_,...y){const m=[h(_[0])];let x=0;for(;x<y.length;)m.push(o),s(m,y[x]),m.push(o,h(_[++x]));return c(m),new n(m)}e.str=a;function s(_,y){y instanceof n?_.push(...y._items):y instanceof r?_.push(y):_.push(d(y))}e.addCodeArg=s;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:a`${_}${y}`}e.strConcat=u;function d(_){return typeof _=="number"||typeof _=="boolean"||_===null?_:h(Array.isArray(_)?_.join(","):_)}function f(_){return new n(h(_))}e.stringify=f;function h(_){return JSON.stringify(_).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;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})(H0);const zz=tn(H0),Gz=Ut({__proto__:null,default:zz},[H0]),ql=zt(Gz);var q0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ql;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,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.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:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(l),{prefix:h}=f,p=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[h];if(g){const y=g.get(p);if(y)return y}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),_=v.length;return v[_]=u.ref,f.setValue(u,{property:h,itemIndex:_}),f}getValue(l,u){const d=this._values[l];if(d)return d.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,u,d){return this._reduceValues(l,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,d)}_reduceValues(l,u,d={},f){let h=t.nil;for(const p in l){const g=l[p];if(!g)continue;const v=d[p]=d[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;h=(0,t._)`${h}${m} ${_} = ${y};${this.opts._n}`}else if(y=f==null?void 0:f(_))h=(0,t._)`${h}${y}${this.opts._n}`;else throw new r(_);v.set(_,n.Completed)})}return h}}e.ValueScope=s})(q0);const Vz=tn(q0),Bz=Ut({__proto__:null,default:Vz},[q0]),jS=zt(Bz);(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=ql,r=jS;var n=ql;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=jS;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,C){return this}}class a extends o{constructor(b,C,L){super(),this.varKind=b,this.name=C,this.rhs=L}render({es5:b,_n:C}){const L=b?r.varKinds.var:this.varKind,D=this.rhs===void 0?"":` = ${this.rhs}`;return`${L} ${this.name}${D};`+C}optimizeNames(b,C){if(b[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,b,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends o{constructor(b,C,L){super(),this.lhs=b,this.rhs=C,this.sideEffects=L}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,C){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,b,C),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(b,this.rhs)}}class c extends s{constructor(b,C,L,D){super(b,L,D),this.op=C}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 d 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,C){return this.code=rt(this.code,b,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((C,L)=>C+L.render(b),"")}optimizeNodes(){const{nodes:b}=this;let C=b.length;for(;C--;){const L=b[C].optimizeNodes();Array.isArray(L)?b.splice(C,1,...L):L?b[C]=L:b.splice(C,1)}return b.length>0?this:void 0}optimizeNames(b,C){const{nodes:L}=this;let D=L.length;for(;D--;){const V=L[D];V.optimizeNames(b,C)||(lt(b,V.names),L.splice(D,1))}return L.length>0?this:void 0}get names(){return this.nodes.reduce((b,C)=>J(b,C.names),{})}}class p extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class g extends h{}class v extends p{}v.kind="else";class _ extends p{constructor(b,C){super(C),this.condition=b}render(b){let C=`if(${this.condition})`+super.render(b);return this.else&&(C+="else "+this.else.render(b)),C}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let C=this.else;if(C){const L=C.optimizeNodes();C=this.else=Array.isArray(L)?new v(L):L}if(C)return b===!1?C instanceof _?C:C.nodes:this.nodes.length?this:new _(xt(b),C instanceof _?[C]:C.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,C){var L;if(this.else=(L=this.else)===null||L===void 0?void 0:L.optimizeNames(b,C),!!(super.optimizeNames(b,C)||this.else))return this.condition=rt(this.condition,b,C),this}get names(){const b=super.names;return nt(b,this.condition),this.else&&J(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,C){if(super.optimizeNames(b,C))return this.iteration=rt(this.iteration,b,C),this}get names(){return J(super.names,this.iteration.names)}}class x extends y{constructor(b,C,L,D){super(),this.varKind=b,this.name=C,this.from=L,this.to=D}render(b){const C=b.es5?r.varKinds.var:this.varKind,{name:L,from:D,to:V}=this;return`for(${C} ${L}=${D}; ${L}<${V}; ${L}++)`+super.render(b)}get names(){const b=nt(super.names,this.from);return nt(b,this.to)}}class N extends y{constructor(b,C,L,D){super(),this.loop=b,this.varKind=C,this.name=L,this.iterable=D}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,C){if(super.optimizeNames(b,C))return this.iterable=rt(this.iterable,b,C),this}get names(){return J(super.names,this.iterable.names)}}class $ extends p{constructor(b,C,L){super(),this.name=b,this.args=C,this.async=L}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}$.kind="func";class A extends h{render(b){return"return "+super.render(b)}}A.kind="return";class R extends p{render(b){let C="try"+super.render(b);return this.catch&&(C+=this.catch.render(b)),this.finally&&(C+=this.finally.render(b)),C}optimizeNodes(){var b,C;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(b,C){var L,D;return super.optimizeNames(b,C),(L=this.catch)===null||L===void 0||L.optimizeNames(b,C),(D=this.finally)===null||D===void 0||D.optimizeNames(b,C),this}get names(){const b=super.names;return this.catch&&J(b,this.catch.names),this.finally&&J(b,this.finally.names),b}}class G extends p{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}G.kind="catch";class H extends p{render(b){return"finally"+super.render(b)}}H.kind="finally";class Y{constructor(b,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
62
- `:""},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,C){const L=this._extScope.value(b,C);return(this._values[L.prefix]||(this._values[L.prefix]=new Set)).add(L),L}getScopeValue(b,C){return this._extScope.getValue(b,C)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,C,L,D){const V=this._scope.toName(C);return L!==void 0&&D&&(this._constants[V.str]=L),this._leafNode(new a(b,V,L)),V}const(b,C,L){return this._def(r.varKinds.const,b,C,L)}let(b,C,L){return this._def(r.varKinds.let,b,C,L)}var(b,C,L){return this._def(r.varKinds.var,b,C,L)}assign(b,C,L){return this._leafNode(new s(b,C,L))}add(b,C){return this._leafNode(new c(b,e.operators.ADD,C))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new f(b)),this}object(...b){const C=["{"];for(const[L,D]of b)C.length>1&&C.push(","),C.push(L),(L!==D||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,D));return C.push("}"),new t._Code(C)}if(b,C,L){if(this._blockNode(new _(b)),C&&L)this.code(C).else().code(L).endIf();else if(C)this.code(C).endIf();else if(L)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,C){return this._blockNode(b),C&&this.code(C).endFor(),this}for(b,C){return this._for(new m(b),C)}forRange(b,C,L,D,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(b);return this._for(new x(V,K,C,L),()=>D(K))}forOf(b,C,L,D=r.varKinds.const){const V=this._scope.toName(b);if(this.opts.es5){const K=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${K}.length`,et=>{this.var(V,(0,t._)`${K}[${et}]`),L(V)})}return this._for(new N("of",D,V,C),()=>L(V))}forIn(b,C,L,D=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${C})`,L);const V=this._scope.toName(b);return this._for(new N("in",D,V,C),()=>L(V))}endFor(){return this._endBlockNode(y)}label(b){return this._leafNode(new l(b))}break(b){return this._leafNode(new u(b))}return(b){const C=new A;if(this._blockNode(C),this.code(b),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(b,C,L){if(!C&&!L)throw new Error('CodeGen: "try" without "catch" and "finally"');const D=new R;if(this._blockNode(D),this.code(b),C){const V=this.name("e");this._currNode=D.catch=new G(V),C(V)}return L&&(this._currNode=D.finally=new H,this.code(L)),this._endBlockNode(G,H)}throw(b){return this._leafNode(new d(b))}block(b,C){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(C),this}endBlock(b){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const L=this._nodes.length-C;if(L<0||b!==void 0&&L!==b)throw new Error(`CodeGen: wrong number of nodes: ${L} vs ${b} expected`);return this._nodes.length=C,this}func(b,C=t.nil,L,D){return this._blockNode(new $(b,C,L)),D&&this.code(D).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,C){const L=this._currNode;if(L instanceof b||C&&L instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${b.kind}/${C.kind}`:b.kind}"`)}_elseNode(b){const C=this._currNode;if(!(C instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const C=this._nodes;C[C.length-1]=b}}e.CodeGen=Y;function J(k,b){for(const C in b)k[C]=(k[C]||0)+(b[C]||0);return k}function nt(k,b){return b instanceof t._CodeOrName?J(k,b.names):k}function rt(k,b,C){if(k instanceof t.Name)return L(k);if(!D(k))return k;return new t._Code(k._items.reduce((V,K)=>(K instanceof t.Name&&(K=L(K)),K instanceof t._Code?V.push(...K._items):V.push(K),V),[]));function L(V){const K=C[V.str];return K===void 0||b[V.str]!==1?V:(delete b[V.str],K)}function D(V){return V instanceof t._Code&&V._items.some(K=>K instanceof t.Name&&b[K.str]===1&&C[K.str]!==void 0)}}function lt(k,b){for(const C in b)k[C]=(k[C]||0)-(b[C]||0)}function xt(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${E(k)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...k){return k.reduce(Ct)}e.and=$t;const at=T(e.operators.OR);function X(...k){return k.reduce(at)}e.or=X;function T(k){return(b,C)=>b===t.nil?C:C===t.nil?b:(0,t._)`${E(b)} ${k} ${E(C)}`}function E(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(B0);const Hz=tn(B0),qz=Ut({__proto__:null,default:Hz},[B0]),ve=zt(qz);var K0={};(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=ve,r=ql;function n($){const A={};for(const R of $)A[R]=!0;return A}e.toHash=n;function i($,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o($,A),!a(A,$.self.RULES.all))}e.alwaysValidSchema=i;function o($,A=$.schema){const{opts:R,self:G}=$;if(!R.strictSchema||typeof A=="boolean")return;const H=G.RULES.keywords;for(const Y in A)H[Y]||N($,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function a($,A){if(typeof $=="boolean")return!$;for(const R in $)if(A[R])return!0;return!1}e.schemaHasRules=a;function s($,A){if(typeof $=="boolean")return!$;for(const R in $)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:$,schemaPath:A},R,G,H){if(!H){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${$}${A}${(0,t.getProperty)(G)}`}e.schemaRefOrVal=c;function l($){return f(decodeURIComponent($))}e.unescapeFragment=l;function u($){return encodeURIComponent(d($))}e.escapeFragment=u;function d($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h($,A){if(Array.isArray($))for(const R of $)A(R);else A($)}e.eachItem=h;function p({mergeNames:$,mergeToName:A,mergeValues:R,resultToName:G}){return(H,Y,J,nt)=>{const rt=J===void 0?Y:J instanceof t.Name?(Y instanceof t.Name?$(H,Y,J):A(H,Y,J),J):Y instanceof t.Name?(A(H,J,Y),Y):R(Y,J);return nt===t.Name&&!(rt instanceof t.Name)?G(H,rt):rt}}e.mergeEvaluated={props:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{$.if((0,t._)`${A} === true`,()=>$.assign(R,!0),()=>$.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>{A===!0?$.assign(R,!0):($.assign(R,(0,t._)`${R} || {}`),v($,R,A))}),mergeValues:($,A)=>$===!0?!0:{...$,...A},resultToName:g}),items:p({mergeNames:($,A,R)=>$.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>$.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:($,A,R)=>$.if((0,t._)`${R} !== true`,()=>$.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:($,A)=>$===!0?!0:Math.max($,A),resultToName:($,A)=>$.var("items",A)})};function g($,A){if(A===!0)return $.var("props",!0);const R=$.var("props",(0,t._)`{}`);return A!==void 0&&v($,R,A),R}e.evaluatedPropsToName=g;function v($,A,R){Object.keys(R).forEach(G=>$.assign((0,t._)`${A}${(0,t.getProperty)(G)}`,!0))}e.setEvaluated=v;const _={};function y($,A){return $.scopeValue("func",{ref:A,code:_[A.code]||(_[A.code]=new r._Code(A.code))})}e.useFunc=y;var m;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(m=e.Type||(e.Type={}));function x($,A,R){if($ instanceof t.Name){const G=A===m.Num;return R?G?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:G?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)($).toString():"/"+d($)}e.getErrorPath=x;function N($,A,R=$.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);$.self.logger.warn(A)}}e.checkStrictMode=N})(K0);const Kz=tn(K0),Yz=Ut({__proto__:null,default:Kz},[K0]),Ne=zt(Yz);var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});const Rr=ve,Xz={data:new Rr.Name("data"),valCxt:new Rr.Name("valCxt"),instancePath:new Rr.Name("instancePath"),parentData:new Rr.Name("parentData"),parentDataProperty:new Rr.Name("parentDataProperty"),rootData:new Rr.Name("rootData"),dynamicAnchors:new Rr.Name("dynamicAnchors"),vErrors:new Rr.Name("vErrors"),errors:new Rr.Name("errors"),this:new Rr.Name("this"),self:new Rr.Name("self"),scope:new Rr.Name("scope"),json:new Rr.Name("json"),jsonPos:new Rr.Name("jsonPos"),jsonLen:new Rr.Name("jsonLen"),jsonPart:new Rr.Name("jsonPart")};var Wz=Y0.default=Xz;const Jz=Ut({__proto__:null,default:Wz},[Y0]),Ii=zt(Jz);(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=ve,r=Ne,n=Ii;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:A}=x,R=d(v,_,y);m??($||A)?c(N,R):l(x,(0,t._)`[${R}]`)}e.reportError=i;function o(v,_=e.keywordError,y){const{it:m}=v,{gen:x,compositeRule:N,allErrors:$}=m,A=d(v,_,y);c(x,A),N||$||l(m,n.default.vErrors)}e.reportExtraError=o;function a(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=a;function s({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,A=>{v.const($,(0,t._)`${n.default.vErrors}[${A}]`),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=s;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 d(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=[h(x,y),p(v,y)];return g(v,_,N),m.object(...N)}function h({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:A}=v,{opts:R,propertyName:G,topSchemaRef:H,schemaPath:Y}=A;m.push([u.keyword,x],[u.params,typeof _=="function"?_(v):_||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof y=="function"?y(v):y]),R.verbose&&m.push([u.schema,$],[u.parentSchema,(0,t._)`${H}${Y}`],[n.default.data,N]),G&&m.push([u.propertyName,G])}})(V0);const Qz=tn(V0),Zz=Ut({__proto__:null,default:Qz},[V0]),Kl=zt(Zz);Object.defineProperty(Ko,"__esModule",{value:!0});var IS=Ko.boolOrEmptySchema=DS=Ko.topBoolOrEmptySchema=void 0;const tG=Kl,eG=ve,rG=Ii,nG={message:"boolean schema is false"};function iG(e){const{gen:t,schema:r,validateName:n}=e;r===!1?FS(e,!1):typeof r=="object"&&r.$async===!0?t.return(rG.default.data):(t.assign((0,eG._)`${n}.errors`,null),t.return(!0))}var DS=Ko.topBoolOrEmptySchema=iG;function oG(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),FS(e)):r.var(t,!0)}IS=Ko.boolOrEmptySchema=oG;function FS(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,tG.reportError)(i,nG,void 0,t)}const aG=Ut({__proto__:null,get boolOrEmptySchema(){return IS},default:Ko,get topBoolOrEmptySchema(){return DS}},[Ko]),sG=zt(aG);var X0={},Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});var MS=Yo.getRules=LS=Yo.isJSONType=void 0;const lG=["string","number","integer","boolean","null","object","array"],cG=new Set(lG);function uG(e){return typeof e=="string"&&cG.has(e)}var LS=Yo.isJSONType=uG;function hG(){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:{}}}MS=Yo.getRules=hG;const dG=Ut({__proto__:null,default:Yo,get getRules(){return MS},get isJSONType(){return LS}},[Yo]),US=zt(dG);var Di={};Object.defineProperty(Di,"__esModule",{value:!0});var zS=Di.shouldUseRule=BS=Di.shouldUseGroup=GS=Di.schemaHasRulesForType=void 0;function fG({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&VS(e,n)}var GS=Di.schemaHasRulesForType=fG;function VS(e,t){return t.rules.some(r=>HS(e,r))}var BS=Di.shouldUseGroup=VS;function HS(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))}zS=Di.shouldUseRule=HS;const pG=Ut({__proto__:null,default:Di,get schemaHasRulesForType(){return GS},get shouldUseGroup(){return BS},get shouldUseRule(){return zS}},[Di]),qS=zt(pG);(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=US,r=qS,n=Kl,i=ve,o=Ne;var a;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(a=e.DataType||(e.DataType={}));function s(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=s;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:A}=m,R=d(x,A.coerceTypes),G=x.length>0&&!(R.length===0&&x.length===1&&(0,r.schemaHasRulesForType)(m,x[0]));if(G){const H=g(x,$,A.strictNumbers,a.Wrong);N.if(H,()=>{R.length?f(m,x,R):_(m)})}return G}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,x){return x?m.filter(N=>u.has(N)||x==="array"&&N==="array"):[]}function f(m,x,N){const{gen:$,data:A,opts:R}=m,G=$.let("dataType",(0,i._)`typeof ${A}`),H=$.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&$.if((0,i._)`${G} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>$.assign(A,(0,i._)`${A}[0]`).assign(G,(0,i._)`typeof ${A}`).if(g(x,A,R.strictNumbers),()=>$.assign(H,A))),$.if((0,i._)`${H} !== undefined`);for(const J of N)(u.has(J)||J==="array"&&R.coerceTypes==="array")&&Y(J);$.else(),_(m),$.endIf(),$.if((0,i._)`${H} !== undefined`,()=>{$.assign(A,H),h(m,H)});function Y(J){switch(J){case"string":$.elseIf((0,i._)`${G} == "number" || ${G} == "boolean"`).assign(H,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(H,(0,i._)`""`);return;case"number":$.elseIf((0,i._)`${G} == "boolean" || ${A} === null
63
- || (${G} == "string" && ${A} && ${A} == +${A})`).assign(H,(0,i._)`+${A}`);return;case"integer":$.elseIf((0,i._)`${G} === "boolean" || ${A} === null
64
- || (${G} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(H,(0,i._)`+${A}`);return;case"boolean":$.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(H,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(H,!0);return;case"null":$.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),$.assign(H,null);return;case"array":$.elseIf((0,i._)`${G} === "string" || ${G} === "number"
65
- || ${G} === "boolean" || ${A} === null`).assign(H,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:x,parentDataProperty:N},$){m.if((0,i._)`${x} !== undefined`,()=>m.assign((0,i._)`${x}[${N}]`,$))}function p(m,x,N,$=a.Correct){const A=$===a.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${x} ${A} null`;case"array":R=(0,i._)`Array.isArray(${x})`;break;case"object":R=(0,i._)`${x} && typeof ${x} == "object" && !Array.isArray(${x})`;break;case"integer":R=G((0,i._)`!(${x} % 1) && !isNaN(${x})`);break;case"number":R=G();break;default:return(0,i._)`typeof ${x} ${A} ${m}`}return $===a.Correct?R:(0,i.not)(R);function G(H=i.nil){return(0,i.and)((0,i._)`typeof ${x} == "number"`,H,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 A;const R=(0,o.toHash)(m);if(R.array&&R.object){const G=(0,i._)`typeof ${x} != "object"`;A=R.null?G:(0,i._)`!${x} || ${G}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const G in R)A=(0,i.and)(A,p(G,x,N,$));return A}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,A=(0,o.schemaRefOrVal)(m,$,"type");return{gen:x,keyword:"type",data:N,schema:$.type,schemaCode:A,schemaValue:A,parentSchema:$,params:{},it:m}}})(X0);const mG=tn(X0),gG=Ut({__proto__:null,default:mG},[X0]),Qu=zt(gG);var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});var KS=Yl.assignDefaults=void 0;const ja=ve,vG=Ne;function yG(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)YS(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>YS(e,o,i.default))}KS=Yl.assignDefaults=yG;function YS(e,t,r){const{gen:n,compositeRule:i,data:o,opts:a}=e;if(r===void 0)return;const s=(0,ja._)`${o}${(0,ja.getProperty)(t)}`;if(i){(0,vG.checkStrictMode)(e,`default is ignored for: ${s}`);return}let c=(0,ja._)`${s} === undefined`;a.useDefaults==="empty"&&(c=(0,ja._)`${c} || ${s} === null || ${s} === ""`),n.if(c,(0,ja._)`${s} = ${(0,ja.stringify)(r)}`)}const _G=Ut({__proto__:null,get assignDefaults(){return KS},default:Yl},[Yl]),bG=zt(_G);var Vn={},Me={};Object.defineProperty(Me,"__esModule",{value:!0});var XS=Me.validateUnion=c5=Me.validateArray=l5=Me.usePattern=s5=Me.callValidateCode=a5=Me.schemaProperties=o5=Me.allSchemaProperties=n5=Me.noPropertyInData=r5=Me.propertyInData=e5=Me.isOwnProperty=t5=Me.hasPropFunc=QS=Me.reportMissingProp=JS=Me.checkMissingProp=WS=Me.checkReportMissingProp=void 0;const Qe=ve,W0=Ne,ho=Ii,wG=Ne;function xG(e,t){const{gen:r,data:n,it:i}=e;r.if(Q0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Qe._)`${t}`},!0),e.error()})}var WS=Me.checkReportMissingProp=xG;function SG({gen:e,data:t,it:{opts:r}},n,i){return(0,Qe.or)(...n.map(o=>(0,Qe.and)(Q0(e,t,o,r.ownProperties),(0,Qe._)`${i} = ${o}`)))}var JS=Me.checkMissingProp=SG;function $G(e,t){e.setParams({missingProperty:t},!0),e.error()}var QS=Me.reportMissingProp=$G;function ZS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Qe._)`Object.prototype.hasOwnProperty`})}var t5=Me.hasPropFunc=ZS;function J0(e,t,r){return(0,Qe._)`${ZS(e)}.call(${t}, ${r})`}var e5=Me.isOwnProperty=J0;function kG(e,t,r,n){const i=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} !== undefined`;return n?(0,Qe._)`${i} && ${J0(e,t,r)}`:i}var r5=Me.propertyInData=kG;function Q0(e,t,r,n){const i=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} === undefined`;return n?(0,Qe.or)(i,(0,Qe.not)(J0(e,t,r))):i}var n5=Me.noPropertyInData=Q0;function i5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var o5=Me.allSchemaProperties=i5;function EG(e,t){return i5(t).filter(r=>!(0,W0.alwaysValidSchema)(e,t[r]))}var a5=Me.schemaProperties=EG;function CG({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:a},s,c,l){const u=l?(0,Qe._)`${e}, ${t}, ${n}${i}`:t,d=[[ho.default.instancePath,(0,Qe.strConcat)(ho.default.instancePath,o)],[ho.default.parentData,a.parentData],[ho.default.parentDataProperty,a.parentDataProperty],[ho.default.rootData,ho.default.rootData]];a.opts.dynamicRef&&d.push([ho.default.dynamicAnchors,ho.default.dynamicAnchors]);const f=(0,Qe._)`${u}, ${r.object(...d)}`;return c!==Qe.nil?(0,Qe._)`${s}.call(${c}, ${f})`:(0,Qe._)`${s}(${f})`}var s5=Me.callValidateCode=CG;const PG=(0,Qe._)`new RegExp`;function TG({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,Qe._)`${i.code==="new RegExp"?PG:(0,wG.useFunc)(e,i)}(${r}, ${n})`})}var l5=Me.usePattern=TG;function OG(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){const c=t.const("len",(0,Qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:W0.Type.Num},o),t.if((0,Qe.not)(o),s)})}}var c5=Me.validateArray=OG;function AG(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(s=>(0,W0.alwaysValidSchema)(i,s))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((s,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);t.assign(o,(0,Qe._)`${o} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,Qe.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}XS=Me.validateUnion=AG;const NG=Ut({__proto__:null,get allSchemaProperties(){return o5},get callValidateCode(){return s5},get checkMissingProp(){return JS},get checkReportMissingProp(){return WS},default:Me,get hasPropFunc(){return t5},get isOwnProperty(){return e5},get noPropertyInData(){return n5},get propertyInData(){return r5},get reportMissingProp(){return QS},get schemaProperties(){return a5},get usePattern(){return l5},get validateArray(){return c5},get validateUnion(){return XS}},[Me]),Bn=zt(NG);Object.defineProperty(Vn,"__esModule",{value:!0});var u5=Vn.validateKeywordUsage=m5=Vn.validSchemaType=d5=Vn.funcKeywordCode=h5=Vn.macroKeywordCode=void 0;const Hr=ve,Xo=Ii,RG=Bn,jG=Kl;function IG(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:a}=e,s=t.macro.call(a.self,i,o,a),c=p5(r,n,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);const l=r.name("valid");e.subschema({schema:s,schemaPath:Hr.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var h5=Vn.macroKeywordCode=IG;function DG(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:a,$data:s,it:c}=e;MG(c,t);const l=!s&&t.compile?t.compile.call(c.self,o,a,c):t.validate,u=p5(n,i,l),d=n.let("valid");e.block$data(d,f),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function f(){if(t.errors===!1)g(),t.modifying&&f5(e),v(()=>e.error());else{const _=t.async?h():p();t.modifying&&f5(e),v(()=>FG(e,_))}}function h(){const _=n.let("ruleErrs",null);return n.try(()=>g((0,Hr._)`await `),y=>n.assign(d,!1).if((0,Hr._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(_,(0,Hr._)`${y}.errors`),()=>n.throw(y))),_}function p(){const _=(0,Hr._)`${u}.errors`;return n.assign(_,null),g(Hr.nil),_}function g(_=t.async?(0,Hr._)`await `:Hr.nil){const y=c.opts.passContext?Xo.default.this:Xo.default.self,m=!("compile"in t&&!s||t.schema===!1);n.assign(d,(0,Hr._)`${_}${(0,RG.callValidateCode)(e,u,y,m)}`,t.modifying)}function v(_){var y;n.if((0,Hr.not)((y=t.valid)!==null&&y!==void 0?y:d),_)}}var d5=Vn.funcKeywordCode=DG;function f5(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Hr._)`${n.parentData}[${n.parentDataProperty}]`))}function FG(e,t){const{gen:r}=e;r.if((0,Hr._)`Array.isArray(${t})`,()=>{r.assign(Xo.default.vErrors,(0,Hr._)`${Xo.default.vErrors} === null ? ${t} : ${Xo.default.vErrors}.concat(${t})`).assign(Xo.default.errors,(0,Hr._)`${Xo.default.vErrors}.length`),(0,jG.extendErrors)(e)},()=>e.error())}function MG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function p5(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,Hr.stringify)(r)})}function LG(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 m5=Vn.validSchemaType=LG;function UG({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 a=i.dependencies;if(a!=null&&a.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const s=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(s);else throw new Error(s)}}u5=Vn.validateKeywordUsage=UG;const zG=Ut({__proto__:null,default:Vn,get funcKeywordCode(){return d5},get macroKeywordCode(){return h5},get validSchemaType(){return m5},get validateKeywordUsage(){return u5}},[Vn]),GG=zt(zG);var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var g5=Fi.extendSubschemaMode=_5=Fi.extendSubschemaData=y5=Fi.getSubschema=void 0;const ui=ve,v5=Ne;function VG(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,v5.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var y5=Fi.getSubschema=VG;function BG(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(r)}`,!0);c(f),e.errorPath=(0,ui.str)`${l}${(0,v5.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof ui.Name?i:s.let("data",i,!0);c(l),a!==void 0&&(e.propertyName=a)}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 _5=Fi.extendSubschemaData=BG;function HG(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}g5=Fi.extendSubschemaMode=HG;const qG=Ut({__proto__:null,default:Fi,get extendSubschemaData(){return _5},get extendSubschemaMode(){return g5},get getSubschema(){return y5}},[Fi]),KG=zt(qG);var qr={},b5=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 a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const YG=tn(b5),XG=Ut({__proto__:null,default:YG},[b5]),w5=zt(XG);var x5={exports:{}},fo=x5.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(){};Zu(t,n,i,e,"",e)};fo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},fo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},fo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},fo.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 Zu(e,t,r,n,i,o,a,s,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,a,s,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in fo.arrayKeywords)for(var f=0;f<d.length;f++)Zu(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in fo.propsKeywords){if(d&&typeof d=="object")for(var h in d)Zu(e,t,r,d[h],i+"/"+u+"/"+WG(h),o,i,u,n,h)}else(u in fo.keywords||e.allKeys&&!(u in fo.skipKeywords))&&Zu(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,a,s,c,l)}}function WG(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var S5=x5.exports;const JG=tn(S5),QG=Ut({__proto__:null,default:JG},[S5]),ZG=zt(QG);Object.defineProperty(qr,"__esModule",{value:!0});var $5=qr.getSchemaRefs=N5=qr.resolveUrl=A5=qr.normalizeId=O5=qr._getFullPath=P5=qr.getFullPath=k5=qr.inlineRef=void 0;const tV=Ne,eV=w5,rV=ZG,nV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function iV(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Z0(e):t?E5(e)<=t:!1}var k5=qr.inlineRef=iV;const oV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Z0(e){for(const t in e){if(oV.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Z0)||typeof r=="object"&&Z0(r))return!0}return!1}function E5(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!nV.has(r)&&(typeof e[r]=="object"&&(0,tV.eachItem)(e[r],n=>t+=E5(n)),t===1/0)))return 1/0;return t}function C5(e,t="",r){r!==!1&&(t=Ia(t));const n=e.parse(t);return T5(e,n)}var P5=qr.getFullPath=C5;function T5(e,t){return e.serialize(t).split("#")[0]+"#"}var O5=qr._getFullPath=T5;const aV=/#\/?$/;function Ia(e){return e?e.replace(aV,""):""}var A5=qr.normalizeId=Ia;function sV(e,t,r){return r=Ia(r),e.resolve(t,r)}var N5=qr.resolveUrl=sV;const lV=/^[a-z_][-a-z0-9._]*$/i;function cV(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Ia(e[r]||t),o={"":i},a=C5(n,i,!1),s={},c=new Set;return rV(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=a+f;let v=o[p];typeof d[r]=="string"&&(v=_.call(this,d[r])),y.call(this,d.$anchor),y.call(this,d.$dynamicAnchor),o[f]=v;function _(m){const x=this.opts.uriResolver.resolve;if(m=Ia(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(d,N.schema,m):m!==Ia(g)&&(m[0]==="#"?(l(d,s[m],m),s[m]=d):this.refs[m]=g),m}function y(m){if(typeof m=="string"){if(!lV.test(m))throw new Error(`invalid anchor "${m}"`);_.call(this,`#${m}`)}}}),s;function l(d,f,h){if(f!==void 0&&!eV(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}$5=qr.getSchemaRefs=cV;const uV=Ut({__proto__:null,get _getFullPath(){return O5},default:qr,get getFullPath(){return P5},get getSchemaRefs(){return $5},get inlineRef(){return k5},get normalizeId(){return A5},get resolveUrl(){return N5}},[qr]),th=zt(uV);Object.defineProperty(ji,"__esModule",{value:!0});var R5=ji.getData=Y5=ji.KeywordCxt=D5=ji.validateFunctionCode=void 0;const j5=sG,I5=Qu,tm=qS,eh=Qu,hV=bG,Xl=GG,em=KG,Yt=ve,ie=Ii,dV=th,Mi=Ne,Wl=Kl;function fV(e){if(U5(e)&&(z5(e),L5(e))){gV(e);return}F5(e,()=>(0,j5.topBoolOrEmptySchema)(e))}var D5=ji.validateFunctionCode=fV;function F5({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,Yt._)`${ie.default.data}, ${ie.default.valCxt}`,n.$async,()=>{e.code((0,Yt._)`"use strict"; ${M5(r,i)}`),mV(e,i),e.code(o)}):e.func(t,(0,Yt._)`${ie.default.data}, ${pV(i)}`,n.$async,()=>e.code(M5(r,i)).code(o))}function pV(e){return(0,Yt._)`{${ie.default.instancePath}="", ${ie.default.parentData}, ${ie.default.parentDataProperty}, ${ie.default.rootData}=${ie.default.data}${e.dynamicRef?(0,Yt._)`, ${ie.default.dynamicAnchors}={}`:Yt.nil}}={}`}function mV(e,t){e.if(ie.default.valCxt,()=>{e.var(ie.default.instancePath,(0,Yt._)`${ie.default.valCxt}.${ie.default.instancePath}`),e.var(ie.default.parentData,(0,Yt._)`${ie.default.valCxt}.${ie.default.parentData}`),e.var(ie.default.parentDataProperty,(0,Yt._)`${ie.default.valCxt}.${ie.default.parentDataProperty}`),e.var(ie.default.rootData,(0,Yt._)`${ie.default.valCxt}.${ie.default.rootData}`),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Yt._)`${ie.default.valCxt}.${ie.default.dynamicAnchors}`)},()=>{e.var(ie.default.instancePath,(0,Yt._)`""`),e.var(ie.default.parentData,(0,Yt._)`undefined`),e.var(ie.default.parentDataProperty,(0,Yt._)`undefined`),e.var(ie.default.rootData,ie.default.data),t.dynamicRef&&e.var(ie.default.dynamicAnchors,(0,Yt._)`{}`)})}function gV(e){const{schema:t,opts:r,gen:n}=e;F5(e,()=>{r.$comment&&t.$comment&&V5(e),wV(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&vV(e),G5(e),$V(e)})}function vV(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Yt._)`${r}.evaluated`),t.if((0,Yt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Yt._)`${e.evaluated}.props`,(0,Yt._)`undefined`)),t.if((0,Yt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Yt._)`${e.evaluated}.items`,(0,Yt._)`undefined`))}function M5(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Yt._)`/*# sourceURL=${r} */`:Yt.nil}function yV(e,t){if(U5(e)&&(z5(e),L5(e))){_V(e,t);return}(0,j5.boolOrEmptySchema)(e,t)}function L5({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 U5(e){return typeof e.schema!="boolean"}function _V(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&V5(e),xV(e),SV(e);const o=n.const("_errs",ie.default.errors);G5(e,o),n.var(t,(0,Yt._)`${o} === ${ie.default.errors}`)}function z5(e){(0,Mi.checkUnknownRules)(e),bV(e)}function G5(e,t){if(e.opts.jtd)return B5(e,[],!1,t);const r=(0,I5.getSchemaTypes)(e.schema),n=(0,I5.coerceAndCheckDataType)(e,r);B5(e,r,!n,t)}function bV(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Mi.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function wV(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Mi.checkStrictMode)(e,"default is ignored in the schema root")}function xV(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,dV.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function SV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function V5({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(i.$comment===!0)e.code((0,Yt._)`${ie.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){const a=(0,Yt.str)`${n}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,Yt._)`${ie.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function $V(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,Yt._)`${ie.default.errors} === 0`,()=>t.return(ie.default.data),()=>t.throw((0,Yt._)`new ${i}(${ie.default.vErrors})`)):(t.assign((0,Yt._)`${n}.errors`,ie.default.vErrors),o.unevaluated&&kV(e),t.return((0,Yt._)`${ie.default.errors} === 0`))}function kV({gen:e,evaluated:t,props:r,items:n}){r instanceof Yt.Name&&e.assign((0,Yt._)`${t}.props`,r),n instanceof Yt.Name&&e.assign((0,Yt._)`${t}.items`,n)}function B5(e,t,r,n){const{gen:i,schema:o,data:a,allErrors:s,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Mi.schemaHasRulesButRef)(o,u))){i.block(()=>X5(e,"$ref",u.all.$ref.definition));return}c.jtd||EV(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,tm.shouldUseGroup)(o,f)&&(f.type?(i.if((0,eh.checkDataType)(f.type,a,c.strictNumbers)),H5(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,eh.reportTypeError)(e)),i.endIf()):H5(e,f),s||i.if((0,Yt._)`${ie.default.errors} === ${n||0}`))}}function H5(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,hV.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,tm.shouldUseRule)(n,o)&&X5(e,o.keyword,o.definition,t.type)})}function EV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(CV(e,t),e.opts.allowUnionTypes||PV(e,t),TV(e,e.dataTypes))}function CV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{q5(e.dataTypes,r)||rm(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),AV(e,t)}}function PV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&rm(e,"use allowUnionTypes to allow union type keyword")}function TV(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,tm.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(a=>OV(t,a))&&rm(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function OV(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function q5(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function AV(e,t){const r=[];for(const n of e.dataTypes)q5(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function rm(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Mi.checkStrictMode)(e,t,e.opts.strictTypes)}class K5{constructor(t,r,n){if((0,Xl.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,Mi.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",W5(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Xl.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",ie.default.errors))}result(t,r,n){this.failResult((0,Yt.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,Yt.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,Yt._)`${r} !== undefined && (${(0,Yt.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?Wl.reportExtraError:Wl.reportError)(this,this.def.error,r)}$dataError(){(0,Wl.reportError)(this,this.def.$dataError||Wl.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wl.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=Yt.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Yt.nil,r=Yt.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:o,def:a}=this;n.if((0,Yt.or)((0,Yt._)`${i} === undefined`,r)),t!==Yt.nil&&n.assign(t,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Yt.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,Yt.or)(a(),s());function a(){if(n.length){if(!(r instanceof Yt.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,Yt._)`${(0,eh.checkDataTypes)(c,r,o.opts.strictNumbers,eh.DataType.Wrong)}`}return Yt.nil}function s(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Yt._)`!${c}(${r})`}return Yt.nil}}subschema(t,r){const n=(0,em.getSubschema)(this.it,t);(0,em.extendSubschemaData)(n,this.it,t),(0,em.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return yV(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Mi.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Mi.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,Yt.Name)),!0}}var Y5=ji.KeywordCxt=K5;function X5(e,t,r,n){const i=new K5(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Xl.funcKeywordCode)(i,r):"macro"in r?(0,Xl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Xl.funcKeywordCode)(i,r)}const NV=/^\/(?:[^~]|~0|~1)*$/,RV=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W5(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!NV.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{const l=RV.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 a=o;const s=i.split("/");for(const l of s)l&&(o=(0,Yt._)`${o}${(0,Yt.getProperty)((0,Mi.unescapeJsonPointer)(l))}`,a=(0,Yt._)`${a} && ${o}`);return a;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}R5=ji.getData=W5;const jV=Ut({__proto__:null,get KeywordCxt(){return Y5},default:ji,get getData(){return R5},get validateFunctionCode(){return D5}},[ji]),Jl=zt(jV);var nm={};Object.defineProperty(nm,"__esModule",{value:!0});class IV extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var DV=nm.default=IV;const FV=Ut({__proto__:null,default:DV},[nm]),im=zt(FV);var om={};Object.defineProperty(om,"__esModule",{value:!0});const am=th;class MV extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,am.resolveUrl)(t,r,n),this.missingSchema=(0,am.normalizeId)((0,am.getFullPath)(t,this.missingRef))}}var LV=om.default=MV;const UV=Ut({__proto__:null,default:LV},[om]),sm=zt(UV);var pn={};Object.defineProperty(pn,"__esModule",{value:!0});var J5=pn.resolveSchema=n$=pn.getCompilingSchema=e$=pn.resolveRef=t$=pn.compileSchema=Z5=pn.SchemaEnv=void 0;const Hn=ve,zV=im,Wo=Ii,qn=th,Q5=Ne,GV=Jl;class rh{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,qn.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}var Z5=pn.SchemaEnv=rh;function lm(e){const t=r$.call(this,e);if(t)return t;const r=(0,qn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Hn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let s;e.$async&&(s=a.scopeValue("Error",{ref:zV.default,code:(0,Hn._)`require("ajv/dist/runtime/validation_error").default`}));const c=a.scopeName("validate");e.validateName=c;const l={gen:a,allErrors:this.opts.allErrors,data:Wo.default.data,parentData:Wo.default.parentData,parentDataProperty:Wo.default.parentDataProperty,dataNames:[Wo.default.data],dataPathArr:[Hn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Hn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Hn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Hn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,GV.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);const d=a.toString();u=`${a.scopeRefs(Wo.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${Wo.default.self}`,`${Wo.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:d,scopeValues:a._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof Hn.Name?void 0:h,items:p instanceof Hn.Name?void 0:p,dynamicProps:h instanceof Hn.Name,dynamicItems:p instanceof Hn.Name},f.source&&(f.source.evaluated=(0,Hn.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),d}finally{this._compilations.delete(e)}}var t$=pn.compileSchema=lm;function VV(e,t,r){var n;r=(0,qn.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=qV.call(this,e,r);if(o===void 0){const a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:s}=this.opts;a&&(o=new rh({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=BV.call(this,o)}var e$=pn.resolveRef=VV;function BV(e){return(0,qn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:lm.call(this,e)}function r$(e){for(const t of this._compilations)if(HV(t,e))return t}var n$=pn.getCompilingSchema=r$;function HV(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function qV(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||nh.call(this,e,t)}function nh(e,t){const r=this.opts.uriResolver.parse(t),n=(0,qn._getFullPath)(this.opts.uriResolver,r);let i=(0,qn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return cm.call(this,r,e);const o=(0,qn.normalizeId)(n),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){const s=nh.call(this,e,a);return typeof(s==null?void 0:s.schema)!="object"?void 0:cm.call(this,r,s)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||lm.call(this,a),o===(0,qn.normalizeId)(t)){const{schema:s}=a,{schemaId:c}=this.opts,l=s[c];return l&&(i=(0,qn.resolveUrl)(this.opts.uriResolver,i,l)),new rh({schema:s,schemaId:c,root:e,baseId:i})}return cm.call(this,r,a)}}J5=pn.resolveSchema=nh;const KV=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cm(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Q5.unescapeFragment)(s)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!KV.has(s)&&l&&(t=(0,qn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Q5.schemaHasRulesButRef)(r,this.RULES)){const s=(0,qn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=nh.call(this,n,s)}const{schemaId:a}=this.opts;if(o=o||new rh({schema:r,schemaId:a,root:n,baseId:t}),o.schema!==o.root.schema)return o}const YV=Ut({__proto__:null,get SchemaEnv(){return Z5},get compileSchema(){return t$},default:pn,get getCompilingSchema(){return n$},get resolveRef(){return e$},get resolveSchema(){return J5}},[pn]),um=zt(YV),XV="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",WV="Meta-schema for $data reference (JSON AnySchema extension proposal)",JV="object",QV=["$data"],ZV={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},tB=!1,eB={$id:XV,description:WV,type:JV,required:QV,properties:ZV,additionalProperties:tB};var hm={},dm={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)})(Rz,function(r){function n(){for(var j=arguments.length,U=Array(j),z=0;z<j;z++)U[z]=arguments[z];if(U.length>1){U[0]=U[0].slice(0,-1);for(var Q=U.length-1,Z=1;Z<Q;++Z)U[Z]=U[Z].slice(1,-1);return U[Q]=U[Q].slice(1),U.join("")}else return U[0]}function i(j){return"(?:"+j+")"}function o(j){return j===void 0?"undefined":j===null?"null":Object.prototype.toString.call(j).split(" ").pop().split("]").shift().toLowerCase()}function a(j){return j.toUpperCase()}function s(j){return j!=null?j instanceof Array?j:typeof j.length!="number"||j.split||j.setInterval||j.call?[j]:Array.prototype.slice.call(j):[]}function c(j,U){var z=j;if(U)for(var Q in U)z[Q]=U[Q];return z}function l(j){var U="[A-Za-z]",z="[0-9]",Q=n(z,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",It=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(U,z,"[\\-\\.\\_\\~]",oe);i(U+n(U,z,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+z)+"|"+i("1"+z+z)+"|"+i("0?[1-9]"+z)+"|0?0?"+z),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Te=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),fr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),pe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),De=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),qe=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Be=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),ke=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Te,fr,pe,De,qe,Be,ke,ce].join("|")),Ke=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Fr=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Fr+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",U,z,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ot,vt),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ot,vt),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ot,vt),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ot,vt),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]",Ht),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ot,vt,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ot,vt),"g"),UNRESERVED:new RegExp(Ot,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ot,It),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+Ke+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(U,z){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var It=U[Symbol.iterator](),oe;!(Z=(oe=It.next()).done)&&(Q.push(oe.value),!(z&&Q.length===z));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&It.return&&It.return()}finally{if(yt)throw vt}}return Q}return function(U,z){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return j(U,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var U=0,z=Array(j.length);U<j.length;U++)z[U]=j[U];return z}else return Array.from(j)},p=2147483647,g=36,v=1,_=26,y=38,m=700,x=72,N=128,$="-",A=/^xn--/,R=/[^\0-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=g-v,J=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(H[j])}function lt(j,U){for(var z=[],Q=j.length;Q--;)z[Q]=U(j[Q]);return z}function xt(j,U){var z=j.split("@"),Q="";z.length>1&&(Q=z[0]+"@",j=z[1]),j=j.replace(G,".");var Z=j.split("."),yt=lt(Z,U).join(".");return Q+yt}function Ct(j){for(var U=[],z=0,Q=j.length;z<Q;){var Z=j.charCodeAt(z++);if(Z>=55296&&Z<=56319&&z<Q){var yt=j.charCodeAt(z++);(yt&64512)==56320?U.push(((Z&1023)<<10)+(yt&1023)+65536):(U.push(Z),z--)}else U.push(Z)}return U}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},at=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,U){return j+22+75*(j<26)-((U!=0)<<5)},T=function(j,U,z){var Q=0;for(j=z?J(j/m):j>>1,j+=J(j/U);j>Y*_>>1;Q+=g)j=J(j/Y);return J(Q+(Y+1)*j/(j+y))},E=function(j){var U=[],z=j.length,Q=0,Z=N,yt=x,vt=j.lastIndexOf($);vt<0&&(vt=0);for(var It=0;It<vt;++It)j.charCodeAt(It)>=128&&rt("not-basic"),U.push(j.charCodeAt(It));for(var oe=vt>0?vt+1:0;oe<z;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=z&&rt("invalid-input");var Zt=at(j.charCodeAt(oe++));(Zt>=g||Zt>J((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+_?_:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>J(p/At)&&rt("overflow"),Ot*=At}var Xt=U.length+1;yt=T(Q-Ht,Xt,Ht==0),J(Q/Xt)>p-Z&&rt("overflow"),Z+=J(Q/Xt),Q%=Xt,U.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,U)},k=function(j){var U=[];j=Ct(j);var z=j.length,Q=N,Z=0,yt=x,vt=!0,It=!1,oe=void 0;try{for(var Ht=j[Symbol.iterator](),Ot;!(vt=(Ot=Ht.next()).done);vt=!0){var Ft=Ot.value;Ft<128&&U.push(nt(Ft))}}catch(kr){It=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(It)throw oe}}var Zt=U.length,kt=Zt;for(Zt&&U.push($);kt<z;){var At=p,Xt=!0,Te=!1,fr=void 0;try{for(var pe=j[Symbol.iterator](),De;!(Xt=(De=pe.next()).done);Xt=!0){var qe=De.value;qe>=Q&&qe<At&&(At=qe)}}catch(kr){Te=!0,fr=kr}finally{try{!Xt&&pe.return&&pe.return()}finally{if(Te)throw fr}}var Be=kt+1;At-Q>J((p-Z)/Be)&&rt("overflow"),Z+=(At-Q)*Be,Q=At;var ke=!0,ce=!1,Bt=void 0;try{for(var Ke=j[Symbol.iterator](),Fr;!(ke=(Fr=Ke.next()).done);ke=!0){var an=Fr.value;if(an<Q&&++Z>p&&rt("overflow"),an==Q){for(var nr=Z,rr=g;;rr+=g){var yr=rr<=yt?v:rr>=yt+_?_:rr-yt;if(nr<yr)break;var Pn=nr-yr,Tn=g-yr;U.push(nt(X(yr+Pn%Tn,0))),nr=J(Pn/Tn)}U.push(nt(X(nr,0))),yt=T(Z,Be,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!ke&&Ke.return&&Ke.return()}finally{if(ce)throw Bt}}++Z,++Q}return U.join("")},b=function(j){return xt(j,function(U){return A.test(U)?E(U.slice(4).toLowerCase()):U})},C=function(j){return xt(j,function(U){return R.test(U)?"xn--"+k(U):U})},L={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:k,toASCII:C,toUnicode:b},D={};function V(j){var U=j.charCodeAt(0),z=void 0;return U<16?z="%0"+U.toString(16).toUpperCase():U<128?z="%"+U.toString(16).toUpperCase():U<2048?z="%"+(U>>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():z="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),z}function K(j){for(var U="",z=0,Q=j.length;z<Q;){var Z=parseInt(j.substr(z+1,2),16);if(Z<128)U+=String.fromCharCode(Z),z+=3;else if(Z>=194&&Z<224){if(Q-z>=6){var yt=parseInt(j.substr(z+4,2),16);U+=String.fromCharCode((Z&31)<<6|yt&63)}else U+=j.substr(z,6);z+=6}else if(Z>=224){if(Q-z>=9){var vt=parseInt(j.substr(z+4,2),16),It=parseInt(j.substr(z+7,2),16);U+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|It&63)}else U+=j.substr(z,9);z+=9}else U+=j.substr(z,3),z+=3}return U}function et(j,U){function z(Q){var Z=K(Q);return Z.match(U.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(U.PCT_ENCODED,z).replace(U.NOT_USERINFO,V).replace(U.PCT_ENCODED,a)),j.host!==void 0&&(j.host=String(j.host).replace(U.PCT_ENCODED,z).toLowerCase().replace(U.NOT_HOST,V).replace(U.PCT_ENCODED,a)),j.path!==void 0&&(j.path=String(j.path).replace(U.PCT_ENCODED,z).replace(j.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,V).replace(U.PCT_ENCODED,a)),j.query!==void 0&&(j.query=String(j.query).replace(U.PCT_ENCODED,z).replace(U.NOT_QUERY,V).replace(U.PCT_ENCODED,a)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(U.PCT_ENCODED,z).replace(U.NOT_FRAGMENT,V).replace(U.PCT_ENCODED,a)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,U){var z=j.match(U.IPV4ADDRESS)||[],Q=f(z,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,U){var z=j.match(U.IPV6ADDRESS)||[],Q=f(z,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),It=f(vt,2),oe=It[0],Ht=It[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=U.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Te=0;Te<kt;++Te)Xt[Te]=Ot[Te]||Ft[At+Te]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],U));var fr=Xt.reduce(function(ke,ce,Bt){if(!ce||ce==="0"){var Ke=ke[ke.length-1];Ke&&Ke.index+Ke.length===Bt?Ke.length++:ke.push({index:Bt,length:1})}return ke},[]),pe=fr.sort(function(ke,ce){return ce.length-ke.length})[0],De=void 0;if(pe&&pe.length>1){var qe=Xt.slice(0,pe.index),Be=Xt.slice(pe.index+pe.length);De=qe.join(":")+"::"+Be.join(":")}else De=Xt.join(":");return yt&&(De+="%"+yt),De}else return j}var Gt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Q=U.iri!==!1?d:u;U.reference==="suffix"&&(j=(U.scheme?U.scheme+":":"")+"//"+j);var Z=j.match(Gt);if(Z){Pt?(z.scheme=Z[1],z.userinfo=Z[3],z.host=Z[4],z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=Z[7],z.fragment=Z[8],isNaN(z.port)&&(z.port=Z[5])):(z.scheme=Z[1]||void 0,z.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,z.host=j.indexOf("//")!==-1?Z[4]:void 0,z.port=parseInt(Z[5],10),z.path=Z[6]||"",z.query=j.indexOf("?")!==-1?Z[7]:void 0,z.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(z.port)&&(z.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),z.host&&(z.host=Tt(ut(z.host,Q),Q)),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",U.reference&&U.reference!=="suffix"&&U.reference!==z.reference&&(z.error=z.error||"URI is not a "+U.reference+" reference.");var yt=D[(U.scheme||z.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(z.host&&(U.domainHost||yt&&yt.domainHost))try{z.host=L.toASCII(z.host.replace(Q.PCT_ENCODED,K).toLowerCase())}catch(vt){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(z,u)}else et(z,Q);yt&&yt.parse&&yt.parse(z,U)}else z.error=z.error||"URI can not be parsed.";return z}function qt(j,U){var z=U.iri!==!1?d:u,Q=[];return j.userinfo!==void 0&&(Q.push(j.userinfo),Q.push("@")),j.host!==void 0&&Q.push(Tt(ut(String(j.host),z),z).replace(z.IPV6ADDRESS,function(Z,yt,vt){return"["+yt+(vt?"%25"+vt:"")+"]"})),(typeof j.port=="number"||typeof j.port=="string")&&(Q.push(":"),Q.push(String(j.port))),Q.length?Q.join(""):void 0}var Qt=/^\.\.?\//,Dt=/^\/\.(\/|$)/,fe=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var U=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(Dt))j=j.replace(Dt,"/");else if(j.match(fe))j=j.replace(fe,"/"),U.pop();else if(j==="."||j==="..")j="";else{var z=j.match(re);if(z){var Q=z[0];j=j.slice(Q.length),U.push(Q)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Vt(j){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=U.iri?d:u,Q=[],Z=D[(U.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,U),j.host&&!z.IPV6ADDRESS.test(j.host)&&(U.domainHost||Z&&Z.domainHost))try{j.host=U.iri?L.toUnicode(j.host):L.toASCII(j.host.replace(z.PCT_ENCODED,K).toLowerCase())}catch(It){j.error=j.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+It}et(j,z),U.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,U);if(yt!==void 0&&(U.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!U.absolutePath&&(!Z||!Z.absolutePath)&&(vt=he(vt)),yt===void 0&&(vt=vt.replace(/^\/\//,"/%2F")),Q.push(vt)}return j.query!==void 0&&(Q.push("?"),Q.push(j.query)),j.fragment!==void 0&&(Q.push("#"),Q.push(j.fragment)),Q.join("")}function Le(j,U){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,z),z),U=Nt(Vt(U,z),z)),z=z||{},!z.tolerant&&U.scheme?(Z.scheme=U.scheme,Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(Z.userinfo=U.userinfo,Z.host=U.host,Z.port=U.port,Z.path=he(U.path||""),Z.query=U.query):(U.path?(U.path.charAt(0)==="/"?Z.path=he(U.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+U.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+U.path:Z.path=U.path,Z.path=he(Z.path)),Z.query=U.query):(Z.path=j.path,U.query!==void 0?Z.query=U.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=U.fragment,Z}function Ue(j,U,z){var Q=c({scheme:"null"},z);return Vt(Le(Nt(j,Q),Nt(U,Q),Q,!0),Q)}function Xe(j,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Nt(Vt(j,U),U)),j}function pr(j,U,z){return typeof j=="string"?j=Vt(Nt(j,z),z):o(j)==="object"&&(j=Vt(j,z)),typeof U=="string"?U=Vt(Nt(U,z),z):o(U)==="object"&&(U=Vt(U,z)),j===U}function dr(j,U){return j&&j.toString().replace(!U||!U.iri?u.ESCAPE:d.ESCAPE,V)}function $e(j,U){return j&&j.toString().replace(!U||!U.iri?u.PCT_ENCODED:d.PCT_ENCODED,K)}var Ze={scheme:"http",domainHost:!0,parse:function(j,U){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,U){var z=String(j.scheme).toLowerCase()==="https";return(j.port===(z?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},jr={scheme:"https",domainHost:Ze.domainHost,parse:Ze.parse,serialize:Ze.serialize};function Ir(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,U){var z=j;return z.secure=Ir(z),z.resourceName=(z.path||"/")+(z.query?"?"+z.query:""),z.path=void 0,z.query=void 0,z},serialize:function(j,U){if((j.port===(Ir(j)?443:80)||j.port==="")&&(j.port=void 0),typeof j.secure=="boolean"&&(j.scheme=j.secure?"wss":"ws",j.secure=void 0),j.resourceName){var z=j.resourceName.split("?"),Q=f(z,2),Z=Q[0],yt=Q[1];j.path=Z&&Z!=="/"?Z:void 0,j.query=yt,j.resourceName=void 0}return j.fragment=void 0,j}},er={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},rn={},nn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",xe="[0-9A-Fa-f]",Kr=i(i("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+i("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+i("%"+xe+xe)),Or="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Yn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mn=n(Yn,'[\\"\\\\]'),kn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(nn,"g"),Ie=new RegExp(Kr,"g"),mo=new RegExp(n("[^]",Or,"[\\.]",'[\\"]',mn),"g"),on=new RegExp(n("[^]",nn,kn),"g"),gn=on;function $r(j){var U=K(j);return U.match(Dr)?U:j}var En={scheme:"mailto",parse:function(j,U){var z=j,Q=z.to=z.path?z.path.split(","):[];if(z.path=void 0,z.query){for(var Z=!1,yt={},vt=z.query.split("&"),It=0,oe=vt.length;It<oe;++It){var Ht=vt[It].split("=");switch(Ht[0]){case"to":for(var Ot=Ht[1].split(","),Ft=0,Zt=Ot.length;Ft<Zt;++Ft)Q.push(Ot[Ft]);break;case"subject":z.subject=$e(Ht[1],U);break;case"body":z.body=$e(Ht[1],U);break;default:Z=!0,yt[$e(Ht[0],U)]=$e(Ht[1],U);break}}Z&&(z.headers=yt)}z.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=$e(Xt[0]),U.unicodeSupport)Xt[1]=$e(Xt[1],U).toLowerCase();else try{Xt[1]=L.toASCII($e(Xt[1],U).toLowerCase())}catch(Te){z.error=z.error||"Email address's domain name can not be converted to ASCII via punycode: "+Te}Q[kt]=Xt.join("@")}return z},serialize:function(j,U){var z=j,Q=s(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),It=vt.lastIndexOf("@"),oe=vt.slice(0,It).replace(Ie,$r).replace(Ie,a).replace(mo,V),Ht=vt.slice(It+1);try{Ht=U.iri?L.toUnicode(Ht):L.toASCII($e(Ht,U).toLowerCase())}catch(kt){z.error=z.error||"Email address's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}z.path=Q.join(",")}var Ot=j.headers=j.headers||{};j.subject&&(Ot.subject=j.subject),j.body&&(Ot.body=j.body);var Ft=[];for(var Zt in Ot)Ot[Zt]!==rn[Zt]&&Ft.push(Zt.replace(Ie,$r).replace(Ie,a).replace(on,V)+"="+Ot[Zt].replace(Ie,$r).replace(Ie,a).replace(gn,V));return Ft.length&&(z.query=Ft.join("&")),z}},vn=/^([^\:]+)\:(.*)/,Yr={scheme:"urn",parse:function(j,U){var z=j.path&&j.path.match(vn),Q=j;if(z){var Z=U.scheme||Q.scheme||"urn",yt=z[1].toLowerCase(),vt=z[2],It=Z+":"+(U.nid||yt),oe=D[It];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,U))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,U){var z=U.scheme||j.scheme||"urn",Q=j.nid,Z=z+":"+(U.nid||Q),yt=D[Z];yt&&(j=yt.serialize(j,U));var vt=j,It=j.nss;return vt.path=(Q||U.nid)+":"+It,vt}},Xn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Cn={scheme:"urn:uuid",parse:function(j,U){var z=j;return z.uuid=z.nss,z.nss=void 0,!U.tolerant&&(!z.uuid||!z.uuid.match(Xn))&&(z.error=z.error||"UUID is not valid."),z},serialize:function(j,U){var z=j;return z.nss=(j.uuid||"").toLowerCase(),z}};D[Ze.scheme]=Ze,D[jr.scheme]=jr,D[Sr.scheme]=Sr,D[er.scheme]=er,D[En.scheme]=En,D[Yr.scheme]=Yr,D[Cn.scheme]=Cn,r.SCHEMES=D,r.pctEncChar=V,r.pctDecChars=K,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Le,r.resolve=Ue,r.normalize=Xe,r.equal=pr,r.escapeComponent=dr,r.unescapeComponent=$e,Object.defineProperty(r,"__esModule",{value:!0})})})(dm,dm.exports);var i$=dm.exports;const rB=tn(i$),nB=Ut({__proto__:null,default:rB},[i$]),iB=zt(nB);Object.defineProperty(hm,"__esModule",{value:!0});const o$=iB;o$.code='require("ajv/dist/runtime/uri").default';var oB=hm.default=o$;const aB=Ut({__proto__:null,default:oB},[hm]),sB=zt(aB);(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=Jl;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ve;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=im,i=sm,o=US,a=um,s=ve,c=th,l=Qu,u=Ne,d=eB,f=sB,h=(X,T)=>new RegExp(X,T);h.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 T,E,k,b,C,L,D,V,K,et,it,ut,Tt,Gt,Pt,Nt,qt,Qt,Dt,fe,re,he,Vt,Le,Ue;const Xe=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,dr=pr===!0||pr===void 0?1:pr||0,$e=(k=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&k!==void 0?k:h,Ze=(b=X.uriResolver)!==null&&b!==void 0?b:f.default;return{strictSchema:(L=(C=X.strictSchema)!==null&&C!==void 0?C:Xe)!==null&&L!==void 0?L:!0,strictNumbers:(V=(D=X.strictNumbers)!==null&&D!==void 0?D:Xe)!==null&&V!==void 0?V:!0,strictTypes:(et=(K=X.strictTypes)!==null&&K!==void 0?K:Xe)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Xe)!==null&&ut!==void 0?ut:"log",strictRequired:(Gt=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Xe)!==null&&Gt!==void 0?Gt:!1,code:X.code?{...X.code,optimize:dr,regExp:$e}:{optimize:dr,regExp:$e},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:y,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:y,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(Dt=X.inlineRefs)!==null&&Dt!==void 0?Dt:!0,schemaId:(fe=X.schemaId)!==null&&fe!==void 0?fe:"$id",addUsedSchema:(re=X.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=X.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Vt=X.validateFormats)!==null&&Vt!==void 0?Vt:!0,unicodeRegExp:(Le=X.unicodeRegExp)!==null&&Le!==void 0?Le:!0,int32range:(Ue=X.int32range)!==null&&Ue!==void 0?Ue:!0,uriResolver:Ze}}class x{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...m(T)};const{es5:E,lines:k}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:g,es5:E,lines:k}),this.logger=J(T.logger);const b=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,_,T,"DEPRECATED","warn"),this._metaOpts=H.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&G.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:k}=this.opts;let b=d;k==="id"&&(b={...d},b.id=b.$id,delete b.$id),E&&T&&this.addMetaSchema(b,b[k],!1)}defaultMeta(){const{meta:T,schemaId:E}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[E]||T:void 0}validate(T,E){let k;if(typeof T=="string"){if(k=this.getSchema(T),!k)throw new Error(`no schema with key or ref "${T}"`)}else k=this.compile(T);const b=k(E);return"$async"in k||(this.errors=k.errors),b}compile(T,E){const k=this._addSchema(T,E);return k.validate||this._compileSchemaEnv(k)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:k}=this.opts;return b.call(this,T,E);async function b(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||L.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await b.call(this,{$ref:et},!0)}async function L(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return D.call(this,it),await V.call(this,it.missingSchema),L.call(this,et)}}function D({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function V(et){const it=await K.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function K(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=k(et))}finally{delete this._loading[et]}}}addSchema(T,E,k,b=this.opts.validateSchema){if(Array.isArray(T)){for(const L of T)this.addSchema(L,void 0,k,b);return this}let C;if(typeof T=="object"){const{schemaId:L}=this.opts;if(C=T[L],C!==void 0&&typeof C!="string")throw new Error(`schema ${L} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,k,E,b,!0),this}addMetaSchema(T,E,k=this.opts.validateSchema){return this.addSchema(T,E,!0,k),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let k;if(k=T.$schema,k!==void 0&&typeof k!="string")throw new Error("$schema must be a string");if(k=k||this.opts.defaultMeta||this.defaultMeta(),!k)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(k,T);if(!b&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return b}getSchema(T){let E;for(;typeof(E=$.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:k}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:k});if(E=a.resolveSchema.call(this,b,T),!E)return;this.refs[T]=E}return E.validate||this._compileSchemaEnv(E)}removeSchema(T){if(T instanceof RegExp)return this._removeAllSchemas(this.schemas,T),this._removeAllSchemas(this.refs,T),this;switch(typeof T){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const E=$.call(this,T);return typeof E=="object"&&this._cache.delete(E.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const E=T;this._cache.delete(E);let k=T[this.opts.schemaId];return k&&(k=(0,c.normalizeId)(k),delete this.schemas[k],delete this.refs[k]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const E of T)this.addKeyword(E);return this}addKeyword(T,E){let k;if(typeof T=="string")k=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=k);else if(typeof T=="object"&&E===void 0){if(E=T,k=E.keyword,Array.isArray(k)&&!k.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,k,E),!E)return(0,u.eachItem)(k,C=>lt.call(this,C)),this;Ct.call(this,E);const b={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)(k,b.type.length===0?C=>lt.call(this,C,b):C=>b.type.forEach(L=>lt.call(this,C,b,L))),this}getKeyword(T){const E=this.RULES.all[T];return typeof E=="object"?E.definition:!!E}removeKeyword(T){const{RULES:E}=this;delete E.keywords[T],delete E.all[T];for(const k of E.rules){const b=k.rules.findIndex(C=>C.keyword===T);b>=0&&k.rules.splice(b,1)}return this}addFormat(T,E){return typeof E=="string"&&(E=new RegExp(E)),this.formats[T]=E,this}errorsText(T=this.errors,{separator:E=", ",dataVar:k="data"}={}){return!T||T.length===0?"No errors":T.map(b=>`${k}${b.instancePath} ${b.message}`).reduce((b,C)=>b+E+C)}$dataMetaSchema(T,E){const k=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const b of E){const C=b.split("/").slice(1);let L=T;for(const D of C)L=L[D];for(const D in k){const V=k[D];if(typeof V!="object")continue;const{$data:K}=V.definition,et=L[D];K&&et&&(L[D]=at(et))}}return T}_removeAllSchemas(T,E){for(const k in T){const b=T[k];(!E||E.test(k))&&(typeof b=="string"?delete T[k]:b&&!b.meta&&(this._cache.delete(b.schema),delete T[k]))}}_addSchema(T,E,k,b=this.opts.validateSchema,C=this.opts.addUsedSchema){let L;const{schemaId:D}=this.opts;if(typeof T=="object")L=T[D];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof T!="boolean")throw new Error("schema must be object or boolean")}let V=this._cache.get(T);if(V!==void 0)return V;k=(0,c.normalizeId)(L||k);const K=c.getSchemaRefs.call(this,T,k);return V=new a.SchemaEnv({schema:T,schemaId:D,meta:E,baseId:k,localRefs:K}),this._cache.set(V.schema,V),C&&!k.startsWith("#")&&(k&&this._checkUnique(k),this.refs[k]=V),b&&this.validateSchema(T,!0),V}_checkUnique(T){if(this.schemas[T]||this.refs[T])throw new Error(`schema with key or id "${T}" already exists`)}_compileSchemaEnv(T){if(T.meta?this._compileMetaSchema(T):a.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const E=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=x,x.ValidationError=n.default,x.MissingRefError=i.default;function N(X,T,E,k="error"){for(const b in X){const C=b;C in T&&this.logger[k](`${E}: option ${b}. ${X[C]}`)}}function $(X){return X=(0,c.normalizeId)(X),this.schemas[X]||this.refs[X]}function A(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const T in X)this.addSchema(X[T],T)}function R(){for(const X in this.opts.formats){const T=this.opts.formats[X];T&&this.addFormat(X,T)}}function G(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in X){const E=X[T];E.keyword||(E.keyword=T),this.addKeyword(E)}}function H(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function J(X){if(X===!1)return Y;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 nt=/^[a-z_$][a-z0-9_$:-]*$/i;function rt(X,T){const{RULES:E}=this;if((0,u.eachItem)(X,k=>{if(E.keywords[k])throw new Error(`Keyword ${k} is already defined`);if(!nt.test(k))throw new Error(`Keyword ${k} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function lt(X,T,E){var k;const b=T==null?void 0:T.post;if(E&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let L=b?C.post:C.rules.find(({type:V})=>V===E);if(L||(L={type:E,rules:[]},C.rules.push(L)),C.keywords[X]=!0,!T)return;const D={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,L,D,T.before):L.rules.push(D),C.all[X]=D,(k=T.implements)===null||k===void 0||k.forEach(V=>this.addKeyword(V))}function xt(X,T,E){const k=X.rules.findIndex(b=>b.keyword===E);k>=0?X.rules.splice(k,0,T):(X.rules.push(T),this.logger.warn(`rule ${E} is not defined`))}function Ct(X){let{metaSchema:T}=X;T!==void 0&&(X.$data&&this.opts.$data&&(T=at(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function at(X){return{anyOf:[X,$t]}}})(G0);const lB=tn(G0),cB=Ut({__proto__:null,default:lB},[G0]),uB=zt(cB);var fm={},pm={},mm={};Object.defineProperty(mm,"__esModule",{value:!0});const hB={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var dB=mm.default=hB;const fB=Ut({__proto__:null,default:dB},[mm]),pB=zt(fB);var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0});var a$=Jo.callRef=u$=Jo.getValidate=void 0;const mB=sm,s$=Bn,en=ve,Da=Ii,l$=um,ih=Ne,gB={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:a,opts:s,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=l$.resolveRef.call(c,l,i,r);if(u===void 0)throw new mB.default(n.opts.uriResolver,i,r);if(u instanceof l$.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return oh(e,a,o,o.$async);const p=t.scopeValue("root",{ref:l});return oh(e,(0,en._)`${p}.validate`,l,l.$async)}function f(p){const g=c$(e,p);oh(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",s.code.source===!0?{ref:p,code:(0,en.stringify)(p)}:{ref:p}),v=t.name("valid"),_=e.subschema({schema:p,dataTypes:[],schemaPath:en.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(_),e.ok(v)}}};function c$(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,en._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var u$=Jo.getValidate=c$;function oh(e,t,r,n){const{gen:i,it:o}=e,{allErrors:a,schemaEnv:s,opts:c}=o,l=c.passContext?Da.default.this:en.nil;n?u():d();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,en._)`await ${(0,s$.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},g=>{i.if((0,en._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),a||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,s$.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,en._)`${p}.errors`;i.assign(Da.default.vErrors,(0,en._)`${Da.default.vErrors} === null ? ${g} : ${Da.default.vErrors}.concat(${g})`),i.assign(Da.default.errors,(0,en._)`${Da.default.vErrors}.length`)}function h(p){var g;if(!o.opts.unevaluated)return;const v=(g=r==null?void 0:r.validate)===null||g===void 0?void 0:g.evaluated;if(o.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(o.props=ih.mergeEvaluated.props(i,v.props,o.props));else{const _=i.var("props",(0,en._)`${p}.evaluated.props`);o.props=ih.mergeEvaluated.props(i,_,o.props,en.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=ih.mergeEvaluated.items(i,v.items,o.items));else{const _=i.var("items",(0,en._)`${p}.evaluated.items`);o.items=ih.mergeEvaluated.items(i,_,o.items,en.Name)}}}a$=Jo.callRef=oh;var vB=Jo.default=gB;const yB=Ut({__proto__:null,get callRef(){return a$},default:vB,get getValidate(){return u$}},[Jo]),_B=zt(yB);Object.defineProperty(pm,"__esModule",{value:!0});const bB=pB,wB=_B,xB=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",bB.default,wB.default];var SB=pm.default=xB;const $B=Ut({__proto__:null,default:SB},[pm]),kB=zt($B);var gm={},vm={};Object.defineProperty(vm,"__esModule",{value:!0});const ah=ve,po=ah.operators,sh={maximum:{okStr:"<=",ok:po.LTE,fail:po.GT},minimum:{okStr:">=",ok:po.GTE,fail:po.LT},exclusiveMaximum:{okStr:"<",ok:po.LT,fail:po.GTE},exclusiveMinimum:{okStr:">",ok:po.GT,fail:po.LTE}},EB={message:({keyword:e,schemaCode:t})=>(0,ah.str)`must be ${sh[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,ah._)`{comparison: ${sh[e].okStr}, limit: ${t}}`},CB={keyword:Object.keys(sh),type:"number",schemaType:"number",$data:!0,error:EB,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ah._)`${r} ${sh[t].fail} ${n} || isNaN(${r})`)}};var PB=vm.default=CB;const TB=Ut({__proto__:null,default:PB},[vm]),OB=zt(TB);var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const Ql=ve,AB={message:({schemaCode:e})=>(0,Ql.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ql._)`{multipleOf: ${e}}`},NB={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AB,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,Ql._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,Ql._)`${a} !== parseInt(${a})`;e.fail$data((0,Ql._)`(${n} === 0 || (${a} = ${r}/${n}, ${s}))`)}};var RB=ym.default=NB;const jB=Ut({__proto__:null,default:RB},[ym]),IB=zt(jB);var _m={},bm={};Object.defineProperty(bm,"__esModule",{value:!0});function h$(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 DB=bm.default=h$;h$.code='require("ajv/dist/runtime/ucs2length").default';const FB=Ut({__proto__:null,default:DB},[bm]),MB=zt(FB);Object.defineProperty(_m,"__esModule",{value:!0});const Qo=ve,LB=Ne,UB=MB,zB={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Qo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Qo._)`{limit: ${e}}`},GB={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zB,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Qo.operators.GT:Qo.operators.LT,a=i.opts.unicode===!1?(0,Qo._)`${r}.length`:(0,Qo._)`${(0,LB.useFunc)(e.gen,UB.default)}(${r})`;e.fail$data((0,Qo._)`${a} ${o} ${n}`)}};var VB=_m.default=GB;const BB=Ut({__proto__:null,default:VB},[_m]),HB=zt(BB);var wm={};Object.defineProperty(wm,"__esModule",{value:!0});const qB=Bn,lh=ve,KB={message:({schemaCode:e})=>(0,lh.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,lh._)`{pattern: ${e}}`},YB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:KB,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,a=o.opts.unicodeRegExp?"u":"",s=r?(0,lh._)`(new RegExp(${i}, ${a}))`:(0,qB.usePattern)(e,n);e.fail$data((0,lh._)`!${s}.test(${t})`)}};var XB=wm.default=YB;const WB=Ut({__proto__:null,default:XB},[wm]),JB=zt(WB);var xm={};Object.defineProperty(xm,"__esModule",{value:!0});const Zl=ve,QB={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Zl.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Zl._)`{limit: ${e}}`},ZB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QB,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Zl.operators.GT:Zl.operators.LT;e.fail$data((0,Zl._)`Object.keys(${r}).length ${i} ${n}`)}};var tH=xm.default=ZB;const eH=Ut({__proto__:null,default:tH},[xm]),rH=zt(eH);var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});const tc=Bn,ec=ve,nH=Ne,iH={message:({params:{missingProperty:e}})=>(0,ec.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ec._)`{missingProperty: ${e}}`},oH={keyword:"required",type:"object",schemaType:"array",$data:!0,error:iH,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;const c=r.length>=s.loopRequired;if(a.allErrors?l():u(),s.strictRequired){const h=e.parentSchema.properties,{definedProperties:p}=e.it;for(const g of r)if((h==null?void 0:h[g])===void 0&&!p.has(g)){const v=a.schemaEnv.baseId+a.errSchemaPath,_=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,nH.checkStrictMode)(a,_,a.opts.strictRequired)}}function l(){if(c||o)e.block$data(ec.nil,d);else for(const h of r)(0,tc.checkReportMissingProp)(e,h)}function u(){const h=t.let("missing");if(c||o){const p=t.let("valid",!0);e.block$data(p,()=>f(h,p)),e.ok(p)}else t.if((0,tc.checkMissingProp)(e,r,h)),(0,tc.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,tc.noPropertyInData)(t,i,h,s.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,tc.propertyInData)(t,i,h,s.ownProperties)),t.if((0,ec.not)(p),()=>{e.error(),t.break()})},ec.nil)}}};var aH=Sm.default=oH;const sH=Ut({__proto__:null,default:aH},[Sm]),lH=zt(sH);var $m={};Object.defineProperty($m,"__esModule",{value:!0});const rc=ve,cH={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,rc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,rc._)`{limit: ${e}}`},uH={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cH,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?rc.operators.GT:rc.operators.LT;e.fail$data((0,rc._)`${r}.length ${i} ${n}`)}};var hH=$m.default=uH;const dH=Ut({__proto__:null,default:hH},[$m]),fH=zt(dH);var km={},Em={};Object.defineProperty(Em,"__esModule",{value:!0});const d$=w5;d$.code='require("ajv/dist/runtime/equal").default';var pH=Em.default=d$;const mH=Ut({__proto__:null,default:pH},[Em]),Cm=zt(mH);Object.defineProperty(km,"__esModule",{value:!0});const Pm=Qu,Tr=ve,gH=Ne,vH=Cm,yH={message:({params:{i:e,j:t}})=>(0,Tr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tr._)`{i: ${e}, j: ${t}}`},_H={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:yH,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:a,it:s}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,Pm.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Tr._)`${a} === false`),e.ok(c);function u(){const p=t.let("i",(0,Tr._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,Tr._)`${p} > 1`,()=>(d()?f:h)(p,g))}function d(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function f(p,g){const v=t.name("item"),_=(0,Pm.checkDataTypes)(l,v,s.opts.strictNumbers,Pm.DataType.Wrong),y=t.const("indices",(0,Tr._)`{}`);t.for((0,Tr._)`;${p}--;`,()=>{t.let(v,(0,Tr._)`${r}[${p}]`),t.if(_,(0,Tr._)`continue`),l.length>1&&t.if((0,Tr._)`typeof ${v} == "string"`,(0,Tr._)`${v} += "_"`),t.if((0,Tr._)`typeof ${y}[${v}] == "number"`,()=>{t.assign(g,(0,Tr._)`${y}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Tr._)`${y}[${v}] = ${p}`)})}function h(p,g){const v=(0,gH.useFunc)(t,vH.default),_=t.name("outer");t.label(_).for((0,Tr._)`;${p}--;`,()=>t.for((0,Tr._)`${g} = ${p}; ${g}--;`,()=>t.if((0,Tr._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(_)})))}}};var bH=km.default=_H;const wH=Ut({__proto__:null,default:bH},[km]),xH=zt(wH);var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});const Om=ve,SH=Ne,$H=Cm,kH={message:"must be equal to constant",params:({schemaCode:e})=>(0,Om._)`{allowedValue: ${e}}`},EH={keyword:"const",$data:!0,error:kH,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Om._)`!${(0,SH.useFunc)(t,$H.default)}(${r}, ${i})`):e.fail((0,Om._)`${o} !== ${r}`)}};var CH=Tm.default=EH;const PH=Ut({__proto__:null,default:CH},[Tm]),TH=zt(PH);var Am={};Object.defineProperty(Am,"__esModule",{value:!0});const nc=ve,OH=Ne,AH=Cm,NH={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,nc._)`{allowedValues: ${e}}`},RH={keyword:"enum",schemaType:"array",$data:!0,error:NH,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const s=i.length>=a.opts.loopEnum;let c;const l=()=>c??(c=(0,OH.useFunc)(t,AH.default));let u;if(s||n)u=t.let("valid"),e.block$data(u,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",o);u=(0,nc.or)(...i.map((p,g)=>f(h,g)))}e.pass(u);function d(){t.assign(u,!1),t.forOf("v",o,h=>t.if((0,nc._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,nc._)`${l()}(${r}, ${h}[${p}])`:(0,nc._)`${r} === ${g}`}}};var jH=Am.default=RH;const IH=Ut({__proto__:null,default:jH},[Am]),DH=zt(IH);Object.defineProperty(gm,"__esModule",{value:!0});const FH=OB,MH=IB,LH=HB,UH=JB,zH=rH,GH=lH,VH=fH,BH=xH,HH=TH,qH=DH,KH=[FH.default,MH.default,LH.default,UH.default,zH.default,GH.default,VH.default,BH.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},HH.default,qH.default];var YH=gm.default=KH;const XH=Ut({__proto__:null,default:YH},[gm]),WH=zt(XH);var Nm={},ic={};Object.defineProperty(ic,"__esModule",{value:!0});var f$=ic.validateAdditionalItems=void 0;const Zo=ve,Rm=Ne,JH={message:({params:{len:e}})=>(0,Zo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Zo._)`{limit: ${e}}`},QH={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:JH,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Rm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}p$(e,n)}};function p$(e,t){const{gen:r,schema:n,data:i,keyword:o,it:a}=e;a.items=!0;const s=r.const("len",(0,Zo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Zo._)`${s} <= ${t.length}`);else if(typeof n=="object"&&!(0,Rm.alwaysValidSchema)(a,n)){const l=r.var("valid",(0,Zo._)`${s} <= ${t.length}`);r.if((0,Zo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,s,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Rm.Type.Num},l),a.allErrors||r.if((0,Zo.not)(l),()=>r.break())})}}f$=ic.validateAdditionalItems=p$;var ZH=ic.default=QH;const tq=Ut({__proto__:null,default:ZH,get validateAdditionalItems(){return f$}},[ic]),m$=zt(tq);var jm={},oc={};Object.defineProperty(oc,"__esModule",{value:!0});var g$=oc.validateTuple=void 0;const v$=ve,ch=Ne,eq=Bn,rq={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return y$(e,"additionalItems",t);r.items=!0,!(0,ch.alwaysValidSchema)(r,t)&&e.ok((0,eq.validateArray)(e))}};function y$(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:a,it:s}=e;u(i),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=ch.mergeEvaluated.items(n,r.length,s.items));const c=n.name("valid"),l=n.const("len",(0,v$._)`${o}.length`);r.forEach((d,f)=>{(0,ch.alwaysValidSchema)(s,d)||(n.if((0,v$._)`${l} > ${f}`,()=>e.subschema({keyword:a,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=s,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,ch.checkStrictMode)(s,v,f.strictTuples)}}}g$=oc.validateTuple=y$;var nq=oc.default=rq;const iq=Ut({__proto__:null,default:nq,get validateTuple(){return g$}},[oc]),_$=zt(iq);Object.defineProperty(jm,"__esModule",{value:!0});const oq=_$,aq={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,oq.validateTuple)(e,"items")};var sq=jm.default=aq;const lq=Ut({__proto__:null,default:sq},[jm]),cq=zt(lq);var Im={};Object.defineProperty(Im,"__esModule",{value:!0});const b$=ve,uq=Ne,hq=Bn,dq=m$,fq={message:({params:{len:e}})=>(0,b$.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,b$._)`{limit: ${e}}`},pq={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fq,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,uq.alwaysValidSchema)(n,t)&&(i?(0,dq.validateAdditionalItems)(e,i):e.ok((0,hq.validateArray)(e)))}};var mq=Im.default=pq;const gq=Ut({__proto__:null,default:mq},[Im]),vq=zt(gq);var Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});const $n=ve,uh=Ne,yq={message:({params:{min:e,max:t}})=>t===void 0?(0,$n.str)`must contain at least ${e} valid item(s)`:(0,$n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,$n._)`{minContains: ${e}}`:(0,$n._)`{minContains: ${e}, maxContains: ${t}}`},_q={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:yq,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let a,s;const{minContains:c,maxContains:l}=n;o.opts.next?(a=c===void 0?1:c,s=l):a=1;const u=t.const("len",(0,$n._)`${i}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,uh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,uh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,uh.alwaysValidSchema)(o,r)){let g=(0,$n._)`${u} >= ${a}`;s!==void 0&&(g=(0,$n._)`${g} && ${u} <= ${s}`),e.pass(g);return}o.items=!0;const d=t.name("valid");s===void 0&&a===1?h(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),s!==void 0&&t.if((0,$n._)`${i}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,()=>e.reset());function f(){const g=t.name("_valid"),v=t.let("count",0);h(g,()=>t.if(g,()=>p(v)))}function h(g,v){t.forRange("i",0,u,_=>{e.subschema({keyword:"contains",dataProp:_,dataPropType:uh.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,$n._)`${g}++`),s===void 0?t.if((0,$n._)`${g} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,$n._)`${g} > ${s}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,$n._)`${g} >= ${a}`,()=>t.assign(d,!0)))}}};var bq=Dm.default=_q;const wq=Ut({__proto__:null,default:bq},[Dm]),xq=zt(wq);var Fm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ve,r=Ne,n=Bn;e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
66
- missingProperty: ${d},
67
- depsCount: ${l},
68
- deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);a(c,l),s(c,u)}};function o({schema:c}){const l={},u={};for(const d in c){if(d==="__proto__")continue;const f=Array.isArray(c[d])?l:u;f[d]=c[d]}return[l,u]}function a(c,l=c.schema){const{gen:u,data:d,it:f}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const p in l){const g=l[p];if(g.length===0)continue;const v=(0,n.propertyInData)(u,d,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,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=a;function s(c,l=c.schema){const{gen:u,data:d,keyword:f,it:h}=c,p=u.name("valid");for(const g in l)(0,r.alwaysValidSchema)(h,l[g])||(u.if((0,n.propertyInData)(u,d,g,h.opts.ownProperties),()=>{const v=c.subschema({keyword:f,schemaProp:g},p);c.mergeValidEvaluated(v,p)},()=>u.var(p,!0)),c.ok(p))}e.validateSchemaDeps=s,e.default=i})(Fm);const Sq=tn(Fm),$q=Ut({__proto__:null,default:Sq},[Fm]),kq=zt($q);var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});const w$=ve,Eq=Ne,Cq={message:"property name must be valid",params:({params:e})=>(0,w$._)`{propertyName: ${e.propertyName}}`},Pq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Cq,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,Eq.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,w$.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var Tq=Mm.default=Pq;const Oq=Ut({__proto__:null,default:Tq},[Mm]),Aq=zt(Oq);var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});const hh=Bn,Kn=ve,Nq=Ii,dh=Ne,Rq={message:"must NOT have additional properties",params:({params:e})=>(0,Kn._)`{additionalProperty: ${e.additionalProperty}}`},jq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Rq,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:s,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,dh.alwaysValidSchema)(a,r))return;const l=(0,hh.allSchemaProperties)(n.properties),u=(0,hh.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Kn._)`${o} === ${Nq.default.errors}`);function d(){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,dh.schemaRefOrVal)(a,n.properties,"properties");_=(0,hh.isOwnProperty)(t,y,v)}else l.length?_=(0,Kn.or)(...l.map(y=>(0,Kn._)`${v} === ${y}`)):_=Kn.nil;return u.length&&(_=(0,Kn.or)(_,...u.map(y=>(0,Kn._)`${(0,hh.usePattern)(e,y)}.test(${v})`))),(0,Kn.not)(_)}function h(v){t.code((0,Kn._)`delete ${i}[${v}]`)}function p(v){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,dh.alwaysValidSchema)(a,r)){const _=t.name("valid");c.removeAdditional==="failing"?(g(v,_,!1),t.if((0,Kn.not)(_),()=>{e.reset(),h(v)})):(g(v,_),s||t.if((0,Kn.not)(_),()=>t.break()))}}function g(v,_,y){const m={keyword:"additionalProperties",dataProp:v,dataPropType:dh.Type.Str};y===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,_)}}};var Iq=Lm.default=jq;const Dq=Ut({__proto__:null,default:Iq},[Lm]),x$=zt(Dq);var Um={};Object.defineProperty(Um,"__esModule",{value:!0});const Fq=Jl,S$=Bn,zm=Ne,$$=x$,Mq={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&&$$.default.code(new Fq.KeywordCxt(o,$$.default,"additionalProperties"));const a=(0,S$.allSchemaProperties)(r);for(const d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=zm.mergeEvaluated.props(t,(0,zm.toHash)(a),o.props));const s=a.filter(d=>!(0,zm.alwaysValidSchema)(o,r[d]));if(s.length===0)return;const c=t.name("valid");for(const d of s)l(d)?u(d):(t.if((0,S$.propertyInData)(t,i,d,o.opts.ownProperties)),u(d),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(c);function l(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function u(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},c)}}};var Lq=Um.default=Mq;const Uq=Ut({__proto__:null,default:Lq},[Um]),zq=zt(Uq);var Gm={};Object.defineProperty(Gm,"__esModule",{value:!0});const k$=Bn,fh=ve,E$=Ne,C$=Ne,Gq={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:a}=o,s=(0,k$.allSchemaProperties)(r),c=s.filter(g=>(0,E$.alwaysValidSchema)(o,r[g]));if(s.length===0||c.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;const l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof fh.Name)&&(o.props=(0,C$.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of s)l&&h(g),o.allErrors?p(g):(t.var(u,!0),p(g),t.if(u))}function h(g){for(const v in l)new RegExp(g).test(v)&&(0,E$.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,fh._)`${(0,k$.usePattern)(e,g)}.test(${v})`,()=>{const _=c.includes(g);_||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:C$.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,fh._)`${d}[${v}]`,!0):!_&&!o.allErrors&&t.if((0,fh.not)(u),()=>t.break())})})}}};var Vq=Gm.default=Gq;const Bq=Ut({__proto__:null,default:Vq},[Gm]),Hq=zt(Bq);var Vm={};Object.defineProperty(Vm,"__esModule",{value:!0});const qq=Ne,Kq={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,qq.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 Yq=Vm.default=Kq;const Xq=Ut({__proto__:null,default:Yq},[Vm]),Wq=zt(Xq);var Bm={};Object.defineProperty(Bm,"__esModule",{value:!0});const Jq=Bn,Qq={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Jq.validateUnion,error:{message:"must match a schema in anyOf"}};var Zq=Bm.default=Qq;const tK=Ut({__proto__:null,default:Zq},[Bm]),eK=zt(tK);var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});const ph=ve,rK=Ne,nK={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ph._)`{passingSchemas: ${e.passing}}`},iK={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nK,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,a=t.let("valid",!1),s=t.let("passing",null),c=t.name("_valid");e.setParams({passing:s}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,rK.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,ph._)`${c} && ${a}`).assign(a,!1).assign(s,(0,ph._)`[${s}, ${d}]`).else(),t.if(c,()=>{t.assign(a,!0),t.assign(s,d),f&&e.mergeEvaluated(f,ph.Name)})})}}};var oK=Hm.default=iK;const aK=Ut({__proto__:null,default:oK},[Hm]),sK=zt(aK);var qm={};Object.defineProperty(qm,"__esModule",{value:!0});const lK=Ne,cK={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,a)=>{if((0,lK.alwaysValidSchema)(n,o))return;const s=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(s)})}};var uK=qm.default=cK;const hK=Ut({__proto__:null,default:uK},[qm]),dK=zt(hK);var Km={};Object.defineProperty(Km,"__esModule",{value:!0});const mh=ve,P$=Ne,fK={message:({params:e})=>(0,mh.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,mh._)`{failingKeyword: ${e.ifClause}}`},pK={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fK,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,P$.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=T$(n,"then"),o=T$(n,"else");if(!i&&!o)return;const a=t.let("valid",!0),s=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,l("then",u),l("else",u))}else i?t.if(s,l("then")):t.if((0,mh.not)(s),l("else"));e.pass(a,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},s);t.assign(a,s),e.mergeValidEvaluated(f,a),d?t.assign(d,(0,mh._)`${u}`):e.setParams({ifClause:u})}}}};function T$(e,t){const r=e.schema[t];return r!==void 0&&!(0,P$.alwaysValidSchema)(e,r)}var mK=Km.default=pK;const gK=Ut({__proto__:null,default:mK},[Km]),vK=zt(gK);var Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});const yK=Ne,_K={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yK.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var bK=Ym.default=_K;const wK=Ut({__proto__:null,default:bK},[Ym]),xK=zt(wK);Object.defineProperty(Nm,"__esModule",{value:!0});const SK=m$,$K=cq,kK=_$,EK=vq,CK=xq,PK=kq,TK=Aq,OK=x$,AK=zq,NK=Hq,RK=Wq,jK=eK,IK=sK,DK=dK,FK=vK,MK=xK;function LK(e=!1){const t=[RK.default,jK.default,IK.default,DK.default,FK.default,MK.default,TK.default,OK.default,PK.default,AK.default,NK.default];return e?t.push($K.default,EK.default):t.push(SK.default,kK.default),t.push(CK.default),t}var UK=Nm.default=LK;const zK=Ut({__proto__:null,default:UK},[Nm]),GK=zt(zK);var Xm={},Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});const hr=ve,VK={message:({schemaCode:e})=>(0,hr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,hr._)`{format: ${e}}`},BK={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VK,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:a,it:s}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=s;if(!c.validateFormats)return;i?f():h();function f(){const p=r.scopeValue("formats",{ref:d.formats,code:c.code.formats}),g=r.const("fDef",(0,hr._)`${p}[${a}]`),v=r.let("fType"),_=r.let("format");r.if((0,hr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,hr._)`${g}.type || "string"`).assign(_,(0,hr._)`${g}.validate`),()=>r.assign(v,(0,hr._)`"string"`).assign(_,g)),e.fail$data((0,hr.or)(y(),m()));function y(){return c.strictSchema===!1?hr.nil:(0,hr._)`${a} && !${_}`}function m(){const x=u.$async?(0,hr._)`(${g}.async ? await ${_}(${n}) : ${_}(${n}))`:(0,hr._)`${_}(${n})`,N=(0,hr._)`(typeof ${_} == "function" ? ${x} : ${_}.test(${n}))`;return(0,hr._)`${_} && ${_} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.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){d.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,hr.regexpCode)(N):c.code.formats?(0,hr._)`${c.code.formats}${(0,hr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:$});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,hr._)`${A}.validate`]:["string",N,A]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,hr._)`await ${_}(${n})`}return typeof v=="function"?(0,hr._)`${_}(${n})`:(0,hr._)`${_}.test(${n})`}}}};var HK=Wm.default=BK;const qK=Ut({__proto__:null,default:HK},[Wm]),KK=zt(qK);Object.defineProperty(Xm,"__esModule",{value:!0});const YK=KK,XK=[YK.default];var WK=Xm.default=XK;const JK=Ut({__proto__:null,default:WK},[Xm]),QK=zt(JK);var ta={};Object.defineProperty(ta,"__esModule",{value:!0});var O$=ta.contentVocabulary=A$=ta.metadataVocabulary=void 0,A$=ta.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];O$=ta.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const ZK=Ut({__proto__:null,get contentVocabulary(){return O$},default:ta,get metadataVocabulary(){return A$}},[ta]),tY=zt(ZK);Object.defineProperty(fm,"__esModule",{value:!0});const eY=kB,rY=WH,nY=GK,iY=QK,N$=tY,oY=[eY.default,rY.default,(0,nY.default)(),iY.default,N$.metadataVocabulary,N$.contentVocabulary];var aY=fm.default=oY;const sY=Ut({__proto__:null,default:aY},[fm]),lY=zt(sY);var Jm={},Qm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Qm);const cY=tn(Qm),uY=Ut({__proto__:null,default:cY},[Qm]),hY=zt(uY);Object.defineProperty(Jm,"__esModule",{value:!0});const Fa=ve,Zm=hY,R$=um,dY=Ne,fY={message:({params:{discrError:e,tagName:t}})=>e===Zm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Fa._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},pY={keyword:"discriminator",type:"object",schemaType:"object",error:fY,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,Fa._)`${r}${(0,Fa.getProperty)(s)}`);t.if((0,Fa._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zm.DiscrError.Tag,tag:l,tagName:s})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,Fa._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:Zm.DiscrError.Mapping,tag:l,tagName:s}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,Fa.Name),p}function f(){var h;const p={},g=_(i);let v=!0;for(let x=0;x<a.length;x++){let N=a[x];N!=null&&N.$ref&&!(0,dY.schemaHasRulesButRef)(N,o.self.RULES)&&(N=R$.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof R$.SchemaEnv&&(N=N.schema));const $=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[s];if(typeof $!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);v=v&&(g||_(N)),y($,x)}if(!v)throw new Error(`discriminator: "${s}" must be required`);return p;function _({required:x}){return Array.isArray(x)&&x.includes(s)}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/${s}" must have "const" or "enum"`)}function m(x,N){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${s}" values must be unique strings`);p[x]=N}}}};var mY=Jm.default=pY;const gY=Ut({__proto__:null,default:mY},[Jm]),vY=zt(gY),yY="http://json-schema.org/draft-07/schema#",_Y="http://json-schema.org/draft-07/schema#",bY="Core schema meta-schema",wY={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:[]}},xY=["object","boolean"],SY={$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:"#"}},$Y={$schema:yY,$id:_Y,title:bY,definitions:wY,type:xY,properties:SY,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=uB,n=lY,i=vY,o=$Y,a=["/properties"],s="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,a):o;this.addMetaSchema(p,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Jl;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=ve;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 d=im;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=sm;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(z0,z0.exports);var j$=z0.exports;const I$=tn(j$),kY=Ut({__proto__:null,default:I$},[j$]);var tg={exports:{}};const EY=zt(kY);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=EY,n=ve,i=ql,o=Jl,a=Kl,s=Ii,c="errorMessage",l=new r.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,h=/^""\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 A=x,R=n.strConcat(s.default.instancePath,$.errorPath);y.if(r._`${s.default.errors} > 0`,()=>{if(typeof A=="object"){const[k,b]=H(A);b&&Y(b),k&&J(k),nt(G(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function G({properties:E,items:k}){const b={};if(E){b.props={};for(const C in E)b.props[C]=[]}if(k){b.items={};for(let C=0;C<k.length;C++)b.items[C]=[]}return b}function H(E){let k,b;for(const C in E){if(C==="properties"||C==="items")continue;const L=E[C];if(typeof L=="object"){k||(k={});const D=k[C]={};for(const V in L)D[V]=[]}else b||(b={}),b[C]=[]}return[k,b]}function Y(E){const k=y.const("emErrors",r.stringify(E)),b=y.const("templates",at(E,x));y.forOf("err",s.default.vErrors,V=>y.if(xt(V,k),()=>y.code(r._`${k}[${V}.keyword].push(${V})`).assign(r._`${V}.${l}`,!0)));const{singleError:C}=v;if(C){const V=y.let("message",r._`""`),K=y.let("paramsErrors",r._`[]`);L(et=>{y.if(V,()=>y.code(r._`${V} += ${typeof C=="string"?C:";"}`)),y.code(r._`${V} += ${D(et)}`),y.assign(K,r._`${K}.concat(${k}[${et}])`)}),a.reportError(_,{message:V,params:r._`{errors: ${K}}`})}else L(V=>a.reportError(_,{message:D(V),params:r._`{errors: ${k}[${V}]}`}));function L(V){y.forIn("key",k,K=>y.if(r._`${k}[${K}].length`,()=>V(K)))}function D(V){return r._`${V} in ${b} ? ${b}[${V}]() : ${N}[${V}]`}}function J(E){const k=y.const("emErrors",r.stringify(E)),b=[];for(const K in E)b.push([K,at(E[K],x[K])]);const C=y.const("templates",y.object(...b)),L=y.scopeValue("obj",{ref:u,code:r.stringify(u)}),D=y.let("emPropParams"),V=y.let("emParamsErrors");y.forOf("err",s.default.vErrors,K=>y.if(xt(K,k),()=>{y.assign(D,r._`${L}[${K}.keyword]`),y.assign(V,r._`${k}[${K}.keyword][${K}.params[${D}]]`),y.if(V,()=>y.code(r._`${V}.push(${K})`).assign(r._`${K}.${l}`,!0))})),y.forIn("key",k,K=>y.forIn("keyProp",r._`${k}[${K}]`,et=>{y.assign(V,r._`${k}[${K}][${et}]`),y.if(r._`${V}.length`,()=>{const it=y.const("tmpl",r._`${C}[${K}] && ${C}[${K}][${et}]`);a.reportError(_,{message:r._`${it} ? ${it}() : ${N}[${K}][${et}]`,params:r._`{errors: ${V}}`})})}))}function nt(E){const{props:k,items:b}=E;if(!k&&!b)return;const C=r._`typeof ${m} == "object"`,L=r._`Array.isArray(${m})`,D=y.let("emErrors");let V,K;const et=y.let("templates");k&&b?(V=y.let("emChildKwd"),y.if(C),y.if(L,()=>{it(b,x.items),y.assign(V,r.str`items`)},()=>{it(k,x.properties),y.assign(V,r.str`properties`)}),K=r._`[${V}]`):b?(y.if(L),it(b,x.items),K=r._`.items`):k&&(y.if(n.and(C,n.not(L))),it(k,x.properties),K=r._`.properties`),y.forOf("err",s.default.vErrors,ut=>Ct(ut,D,Tt=>y.code(r._`${D}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),y.forIn("key",D,ut=>y.if(r._`${D}[${ut}].length`,()=>{a.reportError(_,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${K}[${ut}]`,params:r._`{errors: ${D}[${ut}]}`}),y.assign(r._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),y.endIf();function it(ut,Tt){y.assign(D,r.stringify(ut)),y.assign(et,at(ut,Tt))}}function rt(E){const k=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,b=>y.if($t(b),()=>y.code(r._`${k}.push(${b})`).assign(r._`${b}.${l}`,!0))),y.if(r._`${k}.length`,()=>a.reportError(_,{message:X(E),params:r._`{errors: ${k}}`}))}function lt(){const E=y.const("emErrs",r._`[]`);y.forOf("err",s.default.vErrors,k=>y.if(r._`!${k}.${l}`,()=>y.code(r._`${E}.push(${k})`))),y.assign(s.default.vErrors,E).assign(s.default.errors,r._`${E}.length`)}function xt(E,k){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${k}`,r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${$.errSchemaPath.length}))`)}function Ct(E,k,b){y.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=y.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),L=y.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),D=y.const("emChild",r._`${L} && ${L}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);y.if(r._`${D} !== undefined && ${D} in ${k}`,()=>b(D))})}function $t(E){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,n.or(r._`${E}.instancePath === ${R}`,n.and(r._`${E}.instancePath.indexOf(${R}) === 0`,r._`${E}.instancePath[${R}.length] === "/"`)),r._`${E}.schemaPath.indexOf(${$.errSchemaPath}) === 0`,r._`${E}.schemaPath[${$.errSchemaPath}.length] === "/"`)}function at(E,k){const b=[];for(const C in E){const L=k[C];d.test(L)&&b.push([C,T(L)])}return y.object(...b)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,(k,b)=>`" + JSON.stringify(${o.getData(b,$)}) + "`).replace(h,"")):r.stringify(E)}function T(E){return r._`function(){return ${X(E)}}`}},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})(tg,tg.exports);var CY=tg.exports;const PY=tn(CY),TY=new I$({allErrors:!0});PY(TY);const OY={class:"group"},AY=M.defineComponent({__name:"SwitchHeadlessUI",props:{init:{type:Boolean,default:!1},name:{},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Ce.colorPrimary},colorBgOn:{default:Ce.colorGrayEF},colorBgOff:{default:Ce.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const r=e;function n(f){const h=ZL("number",f);return{number:h.fullMatch?parseFloat(h.fullMatch):0,suffix:h.fullMatch?f.substring(h.matchIndex+h.fullMatch.length+1):""}}const i=n(r.width),o=n(r.height),a=n(r.padding),s=o.number-a.number*2+o.suffix,c=r.padding,l=i.number-n(c).number-n(s).number+i.suffix,u=t,d=M.ref(r.init);return M.watch(d,function(){u("change",d.value)}),(f,h)=>(M.openBlock(),M.createBlock(M.unref(GL),null,{default:M.withCtx(()=>[M.createElementVNode("div",OY,[M.createVNode(M.unref(VL),{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=p=>d.value=p),name:f.name,style:M.normalizeStyle(["padding: 0","margin: 0","border: 0","background-color: transparent"])},{default:M.withCtx(()=>[M.createElementVNode("div",{class:"switch",style:M.normalizeStyle(["width: "+r.width,"height: "+r.height,"background-color: "+(d.value?r.colorBgOn:r.colorBgOff)])},[M.createElementVNode("span",{class:"round",style:M.normalizeStyle(["width: "+s,"height: "+s,"background-color: "+(d.value?r.colorPrimary:M.unref(vs)(r.colorPrimary,30)),"transform: translate("+(d.value?l:M.unref(c))+", 0)"])},null,4)],4)]),_:1},8,["modelValue","name"])])]),_:1}))}}),NY=zn(AY,[["__scopeId","data-v-42bb4f09"]]),RY=["fill"],jY=["stroke"],IY=M.defineComponent({customOptions:{},__name:"RadioGroupHeadlessUI",props:{options:{},initIndex:{default:0},colorPrimary:{default:Ce.colorPrimary},colorBg:{default:Ce.colorGrayEE},fontSize:{default:Ce.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);return M.watch(i,function(){n("change",r.options[i.value])}),(o,a)=>(M.openBlock(),M.createBlock(M.unref(ML),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s),as:"div",class:"wrap"},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(o.options,(s,c)=>(M.openBlock(),M.createBlock(M.unref(UL),{as:"span",class:"item",key:c,value:c,style:M.normalizeStyle(["margin-left:"+(c>0?r.itemPadding:0)])},{default:M.withCtx(({active:l,checked:u})=>[M.renderSlot(o.$slots,"default",{label:s,index:c,active:l,checked:u},()=>[(M.openBlock(),M.createElementBlock("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M.normalizeStyle(["margin-right:"+r.labelPadding,"width:"+r.itemWidth])},[M.createElementVNode("circle",{cx:"12",cy:"12",r:"12",fill:r.colorBg,"fill-opacity":"0.8"},null,8,RY),M.withDirectives(M.createElementVNode("path",{d:"M7 13l3 3 7-7",stroke:r.colorPrimary,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,jY),[[M.vShow,u||i.value==c]])],4)),M.createVNode(M.unref(zL),{as:"span",style:M.normalizeStyle(["font-size:"+r.fontSize])},{default:M.withCtx(()=>[M.createTextVNode(M.toDisplayString(s),1)]),_:2},1032,["style"])],!0)]),_:2},1032,["value","style"]))),128))]),_:3},8,["modelValue"]))}}),DY=zn(IY,[["__scopeId","data-v-d04f0028"]]),FY={class:"wrap"},MY=M.defineComponent({customOptions:{Button:ao},__name:"TabHeadlessUI",props:{tabs:{},initIndex:{default:0},tabMinWidth:{default:"10em"},colorPrimary:{default:Ce.colorPrimary},colorBgOff:{default:Ce.colorGrayF5},colorFontOn:{default:Ce.colorGrayFF},colorFontOff:{default:Ce.colorGray3}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=M.ref(r.initIndex);function o(a){i.value=a,n("change",a)}return(a,s)=>(M.openBlock(),M.createElementBlock("div",FY,[M.createVNode(M.unref(KL),{selectedIndex:i.value,onChange:o},{default:M.withCtx(()=>[M.createVNode(M.unref(YL),{class:"tablist"},{default:M.withCtx(()=>[(M.openBlock(!0),M.createElementBlock(M.Fragment,null,M.renderList(a.tabs,c=>(M.openBlock(),M.createBlock(M.unref(XL),{as:"div",key:c,class:"tab"},{default:M.withCtx(({selected:l})=>[M.renderSlot(a.$slots,`${c}-tab`,{selected:l},()=>[M.createVNode(ao,{borderColor:l?r.colorPrimary:r.colorBgOff,bgColor:l?r.colorPrimary:r.colorBgOff,fontColor:l?r.colorFontOn:r.colorFontOff,borderRadius:"0",style:M.normalizeStyle(["min-width:"+r.tabMinWidth])},{default:M.withCtx(()=>[M.createTextVNode(M.toDisplayString(c),1)]),_:2},1032,["borderColor","bgColor","fontColor","style"])],!0)]),_:2},1024))),128))]),_:3})]),_:3},8,["selectedIndex"])]))}}),LY=zn(MY,[["__scopeId","data-v-c02b38b7"]]);ir.Button=ao,ir.Dialog=o0,ir.DialogLoading=WM,ir.Icon=Ho,ir.MobileLayout=LM,ir.RadioGroupHeadlessUI=DY,ir.Select=ZM,ir.SelectHeadlessUI=WL,ir.SwitchHeadlessUI=NY,ir.TabHeadlessUI=LY,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})});
56
+ })`}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,l,u)=>{}){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=ic().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="",l="",u="";if(!t||n<i||typeof t!="string")return o;const v=t.split(""),y=document.createElement("span");y.style.visibility="hidden",y.style.padding="0",y.style.whiteSpace="nowrap",y.style.overflow="visible",y.style.fontSize=i>12?i+"px":"12px",y.style.fontWeight=r.toString(),document.body.appendChild(y);for(let g=0,m=v.length;g<m;g++){const x=v[g];if(l=u,u+=x,o=u,y.innerText=u,y.offsetWidth>n){s?o=l+"...":o=l;break}}return document.body.removeChild(y),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 qd(e,t=document){return new re(e,t)}class re{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 re(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=re._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 l=0;l<o.length;l++)s.setAttribute(o[l].name,o[l].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 re.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=re._fragment(n);r.push(...o.children),s[t](o)});else if(n instanceof HTMLElement)this.each(s=>{const o=i===1?n:re._fragment(n.outerHTML);r.push(...i===1?[n]:o.children),s[t](o)}),i>1&&n.remove();else if(n instanceof re){const s=i==1;n.each(o=>{this.each(l=>{const u=s?o:o.cloneNode(!0);r.push(u),l[t](u),re._scriptConvert(u)})}),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 re(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 re(n,this.context)}next(){const t=[];return this.nodes.forEach(n=>{const i=n.nextElementSibling;i&&t.push(i)}),new re(t,this.context)}prev(){const t=[];return this.nodes.forEach(n=>{const i=n.previousElementSibling;i&&t.push(i)}),new re(t,this.context)}closest(t){const n=[];return this.nodes.forEach(i=>{const r=i.closest(t);r&&n.push(r)}),new re(n,this.context)}shadow(t){const n=[];this.nodes.forEach(r=>{r.shadowRoot&&n.push(r.shadowRoot)});const i=new re(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 re(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:""):re.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 l=re._fixProp(s);r[l]=o,l=="innerHTML"&&re._scriptConvert(r)})}),this}}removeProp(t){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(r=>{delete i[re._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 Mt={safeAreaTop:It.getCSSVar("--safe-area-inset-top"),safeAreaRight:It.getCSSVar("--safe-area-inset-right"),safeAreaBottom:It.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:It.getCSSVar("--safe-area-inset-left"),colorPrimary:It.getCSSVar("--color-primary"),colorRed:It.getCSSVar("--color-red"),colorOrange:It.getCSSVar("--color-orange"),colorYellow:It.getCSSVar("--color-yellow"),colorGreen:It.getCSSVar("--color-green"),colorBlue:It.getCSSVar("--color-blue"),colorPurple:It.getCSSVar("--color-purple"),colorBlack:It.getCSSVar("--color-black"),colorGray0:It.getCSSVar("--color-gray-0"),colorGray3:It.getCSSVar("--color-gray-3"),colorGray6:It.getCSSVar("--color-gray-6"),colorGray9:It.getCSSVar("--color-gray-9"),colorGrayCC:It.getCSSVar("--color-gray-cc"),colorGrayDD:It.getCSSVar("--color-gray-dd"),colorGrayE6:It.getCSSVar("--color-gray-e6"),colorGrayEE:It.getCSSVar("--color-gray-ee"),colorGrayEF:It.getCSSVar("--color-gray-ef"),colorGrayF5:It.getCSSVar("--color-gray-f5"),colorGrayFF:It.getCSSVar("--color-gray-ff"),fontLineHeight:It.getCSSVar("--font-line-height"),fontSize32:It.getCSSVar("--font-size-32"),fontSize24:It.getCSSVar("--font-size-24"),fontSize20:It.getCSSVar("--font-size-20"),fontSize18:It.getCSSVar("--font-size-18"),fontSize16:It.getCSSVar("--font-size-16"),fontSize14:It.getCSSVar("--font-size-14"),fontSize12:It.getCSSVar("--font-size-12"),fontSize11:It.getCSSVar("--font-size-11"),gap4:It.getCSSVar("--gap-4"),gap8:It.getCSSVar("--gap-8"),gap12:It.getCSSVar("--gap-12"),gap16:It.getCSSVar("--gap-16"),gap20:It.getCSSVar("--gap-20"),gap40:It.getCSSVar("--gap-40"),height44:It.getCSSVar("--height-44"),height32:It.getCSSVar("--height-32"),borderRadius:It.getCSSVar("--border-radius")},Oc=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},Yd=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+")"},Xd=function(e,t=1){const n=Oc(e);return Yd(n,t)};function Ki(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),l=r.toString(16).length==1?"0"+r.toString(16):r.toString(16);return"#"+s+o+l}(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 Kd=e=>{let t=window.requestAnimationFrame(function n(i){t=window.requestAnimationFrame(n),e(i,t)});return()=>window.cancelAnimationFrame(t)};class Zd{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=Kd((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 Mc=new Zd;let Zi;typeof self>"u"&&typeof process<"u"&&process.hrtime?Zi=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Zi=self.performance.now.bind(self.performance):Date.now!==void 0?Zi=Date.now:Zi=function(){return new Date().getTime()};const ai=Zi;class Qi{static _nextId=0;static nextId(){return Qi._nextId++}}const Hr={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-Hr.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?Hr.Bounce.In(e*2)*.5:Hr.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)}}},So=Hr,Ji={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=Ji.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,l=r*r,u=r*l;return(2*t-2*n+s+o)*u+(-3*t+3*n-2*s-o)*l+s*r+t}},Linear:function(e,t){const n=e.length-1,i=n*t,r=Math.floor(i),s=Ji.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=Ji.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=Ji.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)}},ko=Ji;class Ac{_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=ai(),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 De=new Ac;class Qd{constructor(t,n=De){this._object=t,this._group=n}_id=Qi.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=So.Linear.None;_interpolationFunction=ko.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=ai()){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],l=Array.isArray(o),u=l?"array":typeof o,v=!l&&Array.isArray(i[s]);if(!(u==="undefined"||u==="function")){if(v){let y=i[s];if(y.length===0)continue;y=y.map(this._handleRelativeValue.bind(this,o)),i[s]=[o].concat(y)}if((u==="object"||l)&&o&&!v){n[s]=l?[]:{};for(const y in o)n[s][y]=o[y];r[s]=l?[]:{},this._setupProperties(o,n[s],i[s],r[s])}else typeof n[s]>"u"&&(n[s]=o),l||(n[s]*=1),v?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=ai()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ai()){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=De){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=So.Linear.None){return this._easingFunction=t,this}interpolation(t=ko.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=ai(),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 l=0,u=this._chainedTweens.length;l<u;l++)this._chainedTweens[l].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 l=i[s];const u=Array.isArray(t[s]),v=Array.isArray(l);!u&&v?t[s]=this._interpolationFunction(l,r):typeof l=="object"&&l?this._updateProperties(t[s],o,l,r):(l=this._handleRelativeValue(o,l),typeof l=="number"&&(t[s]=o+(l-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 Jd=Qd,tp=Qi.nextId,ep=De.getAll.bind(De),np=De.removeAll.bind(De),ip=De.add.bind(De),rp=De.remove.bind(De),sp=De.update.bind(De),xt={now:ai,Sequence:Qi,Easing:So,Interpolation:ko,Group:Ac,Tween:Jd,nextId:tp,getAll:ep,removeAll:np,add:ip,remove:rp,update:sp};function Lc(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 op={attributeName:["display"],values:[["block","block"]]},ke={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class tr{currentAnimateName;objects=[];actions=[];constructor(){}static toTween(t,n,i){const r=i?.onUpdate??(()=>{}),s=i?.duration??1e3,o=i?.delay??0,l=i?.easeFunction??xt.Easing.Linear.None,u=i?.repeat??0,v=i?.yoyo??!1,y=new xt.Tween(t).to(n,s).delay(o).easing(l).repeat(u).yoyo(v).onUpdate(function(g,m){r(g,m)});return i?.interpolationFunction&&y.interpolation(i.interpolationFunction),{tween:y,startAuto:()=>{y.start(),Mc.register(()=>y.update())}}}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects=[],t.forEach(n=>{const i=qd(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 l=this.objects[s.objectIndex];let u=[],v=[];Array.isArray(s.attributeName)?(u=s.attributeName,v=s.values):s.attributeName&&(u=[s.attributeName],v=[s.values]);const y=s.keyTimes.length,g=zr(l.dom?.css("transform")??"");let m=s.begin;s.keyTimes.forEach((x,I)=>{const k={_matrix:g};u.forEach((A,$)=>{const P=v[$][s.direction=="reverse"?y-I-1:I];this._transformAttributeToCSSObjectUseMatrix(A,P,k)}),I==0?l.dom?.css(Object.assign(k,{transition:""})):(setTimeout(()=>{l.dom?.css(Object.assign(k,{transition:`all ${s.realKeyTimes[I]}ms cubic-bezier(${s.keySplines[I-1].join(",")})`}))},m),m+=s.realKeyTimes[I])}),setTimeout(()=>{s.fill==="remove"&&l.dom?.css(l.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=op,n=ke,i=0,r=!1){const s=n.keyTimes??[0,1],o=[];return s.forEach((l,u)=>{u>0&&o.push(Lc(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=ke,o=this.objects.length-1){let l=!0,u=!1,v=!1,y=!1;const g=this.objects.length;o=(o+g)%g;const m=(o-1+g)%g,x=(o+1+g)%g,I=this.objects[o],k=this.objects[m],A=this.objects[x];if(k&&m!==o){const $=t(k);$&&(this._addAnimate($,s,m,l),l=!1,u=!0)}if(I){const $=n(I);$&&(this._addAnimate($,s,o,l),l=!1,v=!0)}if(A&&x!==o){const $=i(A);$&&(this._addAnimate($,s,x,l),l=!1,y=!0)}this.objects.forEach(($,P)=>{if(!(P==m&&u||P==o&&v||P==x&&y)){const O=r($);O&&(this._addAnimate(O,s,P,l),l=!1)}})}flip(t=ke,n=this.objects.length-1){const i=n-1,r=this.objects[i],s=this.objects[n],o=zr(s.dom?.css("transform")??""),l=o.clone();r.dom?.show(),r.dom?.css("opacity","1");const u=r.el?.getBoundingClientRect();r.dom?.css("opacity","0"),s.dom?.show(),s.dom?.css("opacity","1");const v=s.el?.getBoundingClientRect(),y=r.dom?.css("background-color"),g=s.dom?.css("background-color");l.translate((u?.left??0)-(v?.left??0),(u?.top??0)-(v?.top??0)),l.scale((u?.width??1)/(v?.width??1),(u?.height??1)/(v?.height??1));const m={transform:l.toString(),transition:""};y&&Object.assign(m,{"background-color":y}),s.dom?.css(m);const x={transform:o.toString(),transition:`all ${t.dur}ms cubic-bezier(${Lc(t.easeName??"linear").join(",")})`};g&&Object.assign(x,{"background-color":g}),setTimeout(()=>{s.dom?.css(x)},t.begin)}slideLeft(t=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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=ke,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 ap{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 lp=Ut({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("span",{class:"icon",style:Ot(["color: "+n.color])},[Kt(ae(Gf),{icon:t.icon,color:n.color},null,8,["icon","color"])],4))}}),z0="",Yt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},Wn=Yt(lp,[["__scopeId","data-v-8789b4ce"]]),cp=Ut({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=vt(),o=vt(i.borderColor),l=vt(i.bgColor),u=vt(i.fontColor),v=vt(i.borderColor),y=vt(i.bgColor);function g(P){switch(P){case"outline":o.value=i.borderColor??Mt.colorPrimary,l.value=i.bgColor??Mt.colorGrayFF,u.value=i.fontColor??Mt.colorPrimary,v.value=o.value,y.value=l.value;break;default:o.value=i.borderColor??Mt.colorPrimary,l.value=i.bgColor??Mt.colorPrimary,u.value=i.fontColor??Mt.colorGrayFF,v.value=o.value,y.value=l.value;break}}te(()=>i.stylePattern,()=>{g(i.stylePattern)},{immediate:!0});const m=vt(i.isDisabled?"0.6":"1"),x=vt(i.isDisabled?"not-allowed":"pointer");let I=!1;const k=()=>{i.isDisabled||(I=!0,o.value=Ki(v.value,10),l.value=Ki(y.value,10))},A=()=>{i.isDisabled||(I=!1,o.value=v.value,l.value=y.value)},$=()=>{i.isDisabled||(o.value=Ki(v.value,-10),l.value=Ki(y.value,-10),setTimeout(()=>{I?k():A()},150),r("ceClick"),r("click"))};return t({wrapper:s}),(P,O)=>(dt(),_t("div",{ref_key:"wrapper",ref:s,class:"button",style:Ot([`opacity: ${m.value}`,`border: 1px solid ${o.value}`,`background-color: ${l.value}`,`color: ${u.value}`,`border-radius: ${i.borderRadius}`,`height: ${i.height}`,`line-height: ${i.height}`,`font-size: ${i.fontSize}`,`cursor: ${x.value}`]),onMouseover:k,onMouseleave:A,onClick:$},[B("label",{class:"label truncate",style:Ot({padding:"0 "+P.padding,cursor:x.value})},[ie(P.$slots,"default",{},()=>[P.icon&&P.iconPosition==="left"?(dt(),pe(Wn,{key:0,icon:P.icon,color:u.value,style:Ot({marginRight:ae(Mt).gap4,cursor:x.value})},null,8,["icon","color","style"])):he("",!0),B("span",{style:Ot({cursor:x.value})},de(P.label),5),P.icon&&P.iconPosition==="right"?(dt(),pe(Wn,{key:1,icon:P.icon,color:u.value,style:Ot({marginLeft:ae(Mt).gap4,cursor:x.value})},null,8,["icon","color","style"])):he("",!0)],!0)],4)],36))}}),j0="",Oe=Yt(cp,[["__scopeId","data-v-f3d3c7ec"]]),G0="",up={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},hp=Ut({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Xd(Mt.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 te(()=>i.visible,()=>{r(i.visible)},{immediate:!0}),t({}),(s,o)=>i.visible?(dt(),_t("div",{key:0,class:"overlay",style:Ot([{"z-index":"2000",inset:"0"},[`position: ${i.isGlobal?"fixed":"absolute"};`,"background-color: "+i.bgColor]])},[B("div",{class:"content-fixed",style:Ot([{"z-index":"2001",inset:"0","overflow-y":"auto"},[`position: ${i.isGlobal?"fixed":"absolute"};`]])},[B("div",up,[ie(s.$slots,"default",{},void 0,!0)])],4)],4)):he("",!0)}}),B0="",er=Yt(hp,[["__scopeId","data-v-f08aab15"]]),fp=Ut({customOptions:{Overlay:er},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=vt();let o;const l=en({}),u=en({});te(()=>i.directionFrom,()=>{switch(i.directionFrom){case"absolute":o="",l.display="block";break;case"top":o="slideDown",l.display="block",u.width="100%",u.top="0",u.left="0";break;case"left":o="slideRight",l.display="block",u.height="100%",u.top="0",u.left="0";break;case"right":o="slideLeft",l.display="block",u.height="100%",u.top="0",u.right="0";break;case"bottom":o="slideUp",l.display="block",u.width="100%",u.bottom="0",u.left="0";break;case"center":default:o="popIn",l.display="flex",l.justifyContent="center",l.alignItems="center";break}},{immediate:!0});const v=new tr,y=(k=!0)=>{o&&(k?te(s,()=>{s.value&&(v.fromDOM(s.value),v.toCSS(o,{easeName:"ease",dur:i.openDurTime}))},{once:!0}):v.toCSS(o,{easeName:"ease",dur:i.closeDurTime,direction:"reverse"}))},g=vt(!1);function m(k){k.target.contains(s.value)&&i.closeWhenClickOverlay&&I()}function x(){g.value=!0,y(!0),r("open")}function I(){y(!1),r("close"),setTimeout(()=>{g.value=!1},i.closeDurTime)}return t({open:x,close:I}),(k,A)=>(dt(),pe(er,{visible:g.value,isGlobal:i.isGlobal},{default:ye(()=>[B("div",{class:"pop-parent",style:Ot([{position:"relative",width:"100%",height:"100%"},l]),onClick:m},[B("div",{ref_key:"pop",ref:s,class:"pop",style:Ot([{position:"absolute"},u])},[ie(k.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible","isGlobal"]))}}),H0="",He=Yt(fp,[["__scopeId","data-v-88fef783"]]),dp={id:"page"},pp={id:"main"},mp={style:{height:"100%","background-color":"#ffffff"}},gp={style:{height:"100%","background-color":"#ffffff"}},vp=Ut({customOptions:{Pop:He},inheritAttrs:!0,__name:"MobileLayout",props:{designWidth:{default:750}},setup(e,{expose:t,emit:n}){cd(e.designWidth);const r=vt(),s=vt(),o=vt(),l=vt();return t({openLeft:()=>{r.value?.open()},closeLeft:()=>{r.value?.close()},openRight:()=>{s.value?.open()},closeRight:()=>{s.value?.close()}}),(m,x)=>(dt(),_t("div",dp,[B("header",{id:"header",ref_key:"refHeader",ref:o},[ie(m.$slots,"header",{},void 0,!0)],512),B("div",pp,[B("div",null,[ie(m.$slots,"main",{},void 0,!0)])]),B("footer",{id:"footer",ref_key:"refFooter",ref:l},[ie(m.$slots,"footer",{},void 0,!0)],512),Kt(He,{ref_key:"popLeftRef",ref:r,"direction-from":"left",isGlobal:!1},{default:ye(()=>[B("div",mp,[ie(m.$slots,"left",{},void 0,!0)])]),_:3},512),Kt(He,{ref_key:"popRightRef",ref:s,"direction-from":"right",isGlobal:!1},{default:ye(()=>[B("div",gp,[ie(m.$slots,"right",{},void 0,!0)])]),_:3},512)]))}}),U0="",yp=Yt(vp,[["__scopeId","data-v-28420fc3"]]),_p={class:"dialog-wrap"},xp={class:"dialog"},bp={key:0,class:"title"},wp={key:0,class:"title-inner truncate"},Ep={class:"custom-content"},Cp={key:1,class:"btns"},Sp=Ut({customOptions:{Overlay:er,Pop:He,Icon:Wn,Button:Oe},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=vt();function o(){s.value.open(),r("open")}function l(){s.value.close(),r("close")}function u(){l(),r("cancel")}function v(){l(),r("confirm")}return t({open:o,close:l}),(y,g)=>(dt(),pe(He,{ref_key:"popRef",ref:s,directionFrom:"center",closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:ye(()=>[B("div",_p,[B("div",xp,[y.showTitle||y.showClose?(dt(),_t("div",bp,[y.showTitle?(dt(),_t("div",wp,de(y.title),1)):he("",!0),y.showClose?(dt(),pe(Wn,{key:1,class:"close",icon:"ic:baseline-close",color:ae(Mt).colorGrayCC,onClick:l},null,8,["color"])):he("",!0)])):he("",!0),B("div",Ep,[ie(y.$slots,"default",{},()=>[rn(de(y.content),1)],!0)]),y.showCancel||y.showConfirm?(dt(),_t("div",Cp,[y.showCancel?(dt(),pe(Oe,{key:0,onClick:u,class:"btn",bgColor:ae(Mt).colorGrayE6,borderColor:ae(Mt).colorGrayE6,fontColor:ae(Mt).colorGray3,borderRadius:"0"},{default:ye(()=>[rn(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):he("",!0),y.showConfirm?(dt(),pe(Oe,{key:1,onClick:v,class:"btn",borderRadius:"0"},{default:ye(()=>[rn(" 确定 ")]),_:1})):he("",!0)])):he("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),W0="",To=Yt(Sp,[["__scopeId","data-v-002ae342"]]),kp=Ut({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{viewBox:"25 25 50 50",style:Ot(["width: "+t.width])},[B("circle",{cx:"50",cy:"50",r:"20",style:Ot(["stroke: "+t.color])},null,4)],4))}}),q0="",Rc=Yt(kp,[["__scopeId","data-v-29f8de14"]]),Tp={class:"loading"},Pp={class:"icon"},Ip={key:0,class:"content"},Np=Ut({customOptions:{Overlay:er,Pop:He,Dialog:To,SVGLoading:Rc},inheritAttrs:!0,__name:"DialogLoading",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=vt();function o(){s.value.open(),r("open")}function l(){s.value.close(),r("close")}return t({open:o,close:l}),(u,v)=>(dt(),pe(To,{ref_key:"dialogRef",ref:s,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:i.closeWhenClickOverlay,openDurTime:i.openDurTime,closeDurTime:i.closeDurTime},{default:ye(()=>[B("div",Tp,[B("div",Pp,[ie(u.$slots,"default",{},()=>[Kt(Rc)],!0)]),u.content?(dt(),_t("div",Ip,de(u.content),1)):he("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),Y0="",Op=Yt(Np,[["__scopeId","data-v-d2aea832"]]),Mp=["onClick","value"],Ap=Ut({customOptions:{Icon:Wn,Button:Oe},__name:"Select",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":Mt.colorGrayFF,"--select-option-bg-color-hover":Mt.colorGrayF5}},s=vt(!1),o=vt(n.initIndex);te(o,function(){i("change",n.options[o.value])});function l(){s.value=!s.value}function u(v){o.value=v,s.value=!1}return(v,y)=>(dt(),_t("div",{class:"wrap",style:Ot(["font-size:"+v.fontSize])},[B("div",{onClick:l},[ie(v.$slots,"button",{selectedIndex:o.value},()=>[Kt(Oe,{icon:"carbon:chevron-sort",iconPosition:"right",label:v.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Os(B("div",{class:"options",style:Ot({border:"1px solid "+ae(Mt).colorGrayCC})},[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("div",{onClick:x=>u(m),class:"option",key:m,value:m,style:Ot({borderTop:(m==0?"0":"1px")+" solid "+ae(Mt).colorGrayCC})},[B("div",{class:"option-inner",style:r},[ie(v.$slots,"default",{item:g,index:m},()=>[B("span",null,de(g),1),m==o.value?(dt(),pe(Wn,{key:0,icon:"mingcute:check-fill",class:"icon"})):he("",!0)],!0)])],12,Mp))),128))],4),[[Sr,s.value]])],4))}}),X0="",Lp=Yt(Ap,[["__scopeId","data-v-fa343805"]]),Rp=Ut({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Mt.colorPrimary},colorBgOn:{default:Mt.colorGrayEF},colorBgOff:{default:Mt.colorGrayF5}},emits:["change"],setup(e,{emit:t}){const n=e;function i(x){const I=Bf("number",x);return{number:I.fullMatch?parseFloat(I.fullMatch):0,suffix:I.fullMatch?x.substring(I.matchIndex+I.fullMatch.length+1):""}}const r=i(n.width),s=i(n.height),o=i(n.padding),l=s.number-o.number*2+s.suffix,u=n.padding,v=r.number-i(u).number-i(l).number+r.suffix,y=t,g=vt(n.init);te(g,function(){y("change",g.value)});function m(){g.value=!g.value}return(x,I)=>(dt(),_t("div",{class:"switch",onClick:m,style:Ot(["width: "+n.width,"height: "+n.height,"background-color: "+(g.value?n.colorBgOn:n.colorBgOff)])},[B("span",{class:"round",style:Ot(["width: "+l,"height: "+l,"background-color: "+(g.value?n.colorPrimary:ae(Ki)(n.colorPrimary,30)),"transform: translate("+(g.value?v:ae(u))+", 0)"])},null,4)],4))}}),K0="",Dp=Yt(Rp,[["__scopeId","data-v-2f656d49"]]),Fp={class:"wrap"},Vp=["onClick"],$p=["stroke","fill"],zp=["stroke","fill"],jp=["stroke"],Gp=Ut({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Mt.colorPrimary},colorBg:{default:Mt.colorGrayFF},colorBorder:{default:Mt.colorGrayCC},fontSize:{default:Mt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.colorPath),s=vt(n.colorBg),o=vt(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let l=vt(n.initIndexs??0);te(l,function(){i("change",n.options[l.value])});const u=function(v){l.value=v};return(v,y)=>(dt(),_t("div",Fp,[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("span",{class:"item",key:m,onClick:x=>u(m),style:Ot(["margin-left:"+(m>0?n.itemPadding:0)])},[ie(v.$slots,"default",{label:g,index:m},()=>[(dt(),_t("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Ot(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?he("",!0):(dt(),_t("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,$p)),n.isRounded?(dt(),_t("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,zp)):he("",!0),Os(B("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,jp),[[Sr,ae(l)===m]])],4)),B("span",{style:Ot(["font-size:"+n.fontSize])},de(g),5)],!0)],12,Vp))),128))]))}}),Z0="",Bp=Yt(Gp,[["__scopeId","data-v-18ca2a3d"]]),Hp={class:"wrap"},Up=["onClick"],Wp=["stroke","fill"],qp=["stroke","fill"],Yp=["stroke"],Xp=Ut({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Mt.colorPrimary},colorBg:{default:Mt.colorGrayFF},colorBorder:{default:Mt.colorGrayCC},fontSize:{default:Mt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.colorPath),s=vt(n.colorBg),o=vt(n.colorBorder);n.isFullfilled&&(r.value=n.colorBg,s.value=n.colorPath,o.value=n.colorPath);let l=en(n.initIndexs??[0]);te(l,function(){i("change",l.map(v=>n.options[v]))});const u=function(v){const y=l.findIndex(g=>g===v);y>=0?l.splice(y,1):l.push(v)};return(v,y)=>(dt(),_t("div",Hp,[(dt(!0),_t(xe,null,Cn(v.options,(g,m)=>(dt(),_t("span",{class:"item",key:m,onClick:x=>u(m),style:Ot(["margin-left:"+(m>0?n.itemPadding:0)])},[ie(v.$slots,"default",{label:g,index:m},()=>[(dt(),_t("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Ot(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?he("",!0):(dt(),_t("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,Wp)),n.isRounded?(dt(),_t("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:o.value,"strke-width":"1",fill:s.value,"fill-opacity":1},null,8,qp)):he("",!0),Os(B("path",{d:"M7 13l3 3 7-7",stroke:r.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Yp),[[Sr,ae(l).findIndex(x=>x===m)>=0]])],4)),B("span",{style:Ot(["font-size:"+n.fontSize])},de(g),5)],!0)],12,Up))),128))]))}}),Q0="",Kp=Yt(Xp,[["__scopeId","data-v-2616b69e"]]),Zp=(e=>(Is("data-v-d02782ac"),e=e(),Ns(),e))(()=>B("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Qp=Ut({customOptions:{Pop:He,Button:Oe},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(e){const t=e,n=vt(),i=vt(),r=vt(),s=en({left:"0",top:"0"});te(i,()=>{o()}),te(r,()=>{o()});function o(){if(!i.value||!r.value)return;const u=ic(),v=i.value.getBoundingClientRect(),y=r.value.getBoundingClientRect(),g=y.width,m=y.height;let x=v.x+v.width+t.gap,I=v.y;x=Math.max(t.gap,Math.min(x,u.width-g-t.gap)),I=Math.max(t.gap,Math.min(I,u.height-m-t.gap)),s.left=`${x}px`,s.top=`${I}px`}function l(){n.value.open()}return(u,v)=>(dt(),_t(xe,null,[B("div",{ref_key:"popoverButtonRef",ref:i,style:{display:"inline-block"},onClick:l},[ie(u.$slots,"button",{},()=>[Kt(Oe,null,{default:ye(()=>[rn("popover-default-button")]),_:1})],!0)],512),Kt(He,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:t.isGlobal},{default:ye(()=>[B("div",{ref_key:"popoverPanelRef",ref:r,style:Ot([{display:"inline-block",position:"absolute"},s])},[ie(u.$slots,"panel",{},()=>[Zp],!0)],4)]),_:3},8,["isGlobal"])],64))}}),tg="",Po=Yt(Qp,[["__scopeId","data-v-d02782ac"]]),li=(e,t=0,n=1)=>e>n?n:e<t?t:e,le=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n,Jp=e=>im(Io(e)),Io=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?le(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?le(parseInt(e.substring(6,8),16)/255,2):1}),tm=e=>nm(em(e)),Dc=({h:e,s:t,v:n,a:i})=>{const r=(200-t)*n/100;return{h:le(e),s:le(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:le(r/2),a:le(i,2)}},No=e=>{const{h:t,s:n,l:i}=Dc(e);return`hsl(${t}, ${n}%, ${i}%)`},Oo=e=>{const{h:t,s:n,l:i,a:r}=Dc(e);return`hsla(${t}, ${n}%, ${i}%, ${r})`},em=({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),l=n*(1-(1-e+r)*t),u=r%6;return{r:le([n,o,s,s,l,n][u]*255),g:le([l,n,n,o,s,s][u]*255),b:le([s,s,l,n,n,o][u]*255),a:le(i,2)}},Ur=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},nm=({r:e,g:t,b:n,a:i})=>{const r=i<1?Ur(le(i*255)):"";return"#"+Ur(e)+Ur(t)+Ur(n)+r},im=({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:le(60*(o<0?o+6:o)),s:le(r?s/r*100:0),v:le(r/255*100),a:i}},Fc=(e,t)=>{if(e===t)return!0;for(const n in e)if(e[n]!==t[n])return!1;return!0},rm=(e,t)=>e.toLowerCase()===t.toLowerCase()?!0:Fc(Io(e),Io(t)),Vc={},$c=e=>{let t=Vc[e];return t||(t=document.createElement("template"),t.innerHTML=e,Vc[e]=t),t},Mo=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))};let ci=!1;const Ao=e=>"touches"in e,sm=e=>ci&&!Ao(e)?!1:(ci||(ci=Ao(e)),!0),zc=(e,t)=>{const n=Ao(t)?t.touches[0]:t,i=e.el.getBoundingClientRect();Mo(e.el,"move",e.getMove({x:li((n.pageX-(i.left+window.pageXOffset))/i.width),y:li((n.pageY-(i.top+window.pageYOffset))/i.height)}))},om=(e,t)=>{const n=t.keyCode;n>40||e.xy&&n<37||n<33||(t.preventDefault(),Mo(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 Lo{constructor(t,n,i,r){const s=$c(`<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(ci?"touchmove":"mousemove",this),n(ci?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!sm(t)||!ci&&t.button!=0)return;this.el.focus(),zc(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),zc(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":om(this,t);break}}style(t){t.forEach((n,i)=>{for(const r in n)this.nodes[i].style.setProperty(r,n[r])})}}class am extends Lo{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:No({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${le(t)}`)}getMove(t,n){return{h:n?li(this.h+t.x*360,0,360):360*t.x}}}class lm extends Lo{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:No(t)},{"background-color":No({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${le(t.s)}%, Brightness ${le(t.v)}%`)}getMove(t,n){return{s:n?li(this.hsva.s+t.x*100,0,100):t.x*100,v:n?li(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const cm=':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)}',um="[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}",hm="[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}",Wr=Symbol("same"),Ro=Symbol("color"),jc=Symbol("hsva"),Do=Symbol("update"),Gc=Symbol("parts"),qr=Symbol("css"),Yr=Symbol("sliders");let fm=class extends HTMLElement{static get observedAttributes(){return["color"]}get[qr](){return[cm,um,hm]}get[Yr](){return[lm,am]}get color(){return this[Ro]}set color(t){if(!this[Wr](t)){const n=this.colorModel.toHsva(t);this[Do](n),this[Ro]=t}}constructor(){super();const t=$c(`<style>${this[qr].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(t.content.cloneNode(!0)),n.addEventListener("move",this),this[Gc]=this[Yr].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[Wr](r)||(this.color=r)}handleEvent(t){const n=this[jc],i={...n,...t.detail};this[Do](i);let r;!Fc(i,n)&&!this[Wr](r=this.colorModel.fromHsva(i))&&(this[Ro]=r,Mo(this,"color-changed",{value:r}))}[Wr](t){return this.color&&this.colorModel.equal(t,this.color)}[Do](t){this[jc]=t,this[Gc].forEach(n=>n.update(t))}};class dm extends Lo{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const n=Oo({...t,a:0}),i=Oo({...t,a:1}),r=t.a*100;this.style([{left:`${r}%`,color:Oo(t)},{"--gradient":`linear-gradient(90deg, ${n}, ${i}`}]);const s=le(r);this.el.setAttribute("aria-valuenow",`${s}`),this.el.setAttribute("aria-valuetext",`${s}%`)}getMove(t,n){return{a:n?li(this.hsva.a+t.x):t.x}}}const pm=`[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 mm extends fm{get[qr](){return[...super[qr],pm]}get[Yr](){return[...super[Yr],dm]}}const gm={defaultColor:"#0001",toHsva:Jp,fromHsva:tm,equal:rm,fromAttr:e=>e};class vm extends mm{get colorModel(){return gm}}class ym extends vm{}customElements.define("hex-alpha-color-picker",ym);const _m=Ut({customOptions:{Popover:Po},__name:"ColorPicker",props:{color:{default:Mt.colorPrimary}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r=vt(n.color);te(r,(l,u)=>{l!==u&&i("change",l)});const s=vt(),o=l=>{r.value=l.detail.value};return te(s,()=>{s.value&&(s.value.removeEventListener("color-changed",o),s.value.addEventListener("color-changed",o))}),(l,u)=>{const v=sh("hex-alpha-color-picker");return dt(),pe(Po,null,{button:ye(()=>[ie(l.$slots,"default",{},()=>[B("span",{class:"button",style:Ot({backgroundColor:r.value})},null,4)],!0)]),panel:ye(()=>[Kt(v,{ref_key:"colorPickerRef",ref:s,color:r.value},null,8,["color"])]),_:3})}}}),eg="",xm=Yt(_m,[["__scopeId","data-v-ac12603f"]]),ng="",bm={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",ro&&this.$el.appendChild(e),e.data="about:blank",ro||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&&(!ro&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},wm={class:"resize-observer",tabindex:"-1"};function Em(e,t,n,i,r,s){return dt(),_t("div",wm)}const Cm=Yt(bm,[["render",Em],["__scopeId","data-v-97c2da37"]]),Sm=()=>{const e=vt(window.innerWidth),t=vt(window.innerHeight),n=i=>{e.value=i.target.innerWidth,t.value=i.target.innerHeight};return xr(()=>window.addEventListener("resize",n)),Fa(()=>window.removeEventListener("resize",n)),{width:e,height:t}},km=Ut({__name:"MapTianditu",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}=Sm(),o=vt(i.mapWidth??r.value+"px"),l=vt(i.mapHeight??s.value+"px");return te(r,(u,v)=>{u!=v&&!i.mapWidth&&(o.value=u+"px")}),te(s,(u,v)=>{u!=v&&!i.mapHeight&&(l.value=u+"px")}),xr(()=>{It.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${i.mapKey}`,()=>{new ap(i.mapContainerID,i.mapCenterLng,i.mapCenterLat,i.mapZoom)},u=>{console.log("error",u)})}),t({}),(u,v)=>(dt(),_t("div",Fs({class:"mapDivWrap"},u.$attrs,{style:{position:"relative",width:o.value,height:l.value}}),[ie(u.$slots,"default",{width:o.value,height:l.value})],16))}}),Tm=["fill"],Pm=["fill"],Im=Ut({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{style:Ot(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("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,Tm),B("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,Pm)],4))}}),ig="",Fo=Yt(Im,[["__scopeId","data-v-987aed3d"]]),Vo=e=>(Is("data-v-85491020"),e=e(),Ns(),e),Nm=[Vo(()=>B("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)),Vo(()=>B("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)),Vo(()=>B("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))],Om=Ut({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{style:Ot(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Nm,4))}}),ag="",Xr=Yt(Om,[["__scopeId","data-v-85491020"]]),Mm=["data-unactive"],Am=["data-unactive"],Lm=["data-unactive"],Rm=["data-unactive"],Dm=["data-unactive"],Fm=["data-unactive"],Vm=["data-unactive"],$m=["data-unactive"],zm=["data-unactive"],jm=["data-unactive"],Gm=["data-unactive"],Bm=["data-unactive"],Hm=["data-unactive"],Um=["data-unactive"],Wm=["data-unactive"],qm=["data-unactive"],Ym=["data-unactive"],Xm=Ut({customOptions:{Pop:He,SVGCleanUp:Xr},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(),o=vt(0),l=en([]);function u(){l.length==0?o.value=0:l.length==1?o.value=1:o.value=2,l.length>=i.completePlateLength&&y()}te(()=>[...i.initPlates],()=>{Ui(l,i.initPlates),u()},{immediate:!0});const v=()=>{s.value.open(),r("open")},y=()=>{s.value.close(),r("close")},g=()=>{l.pop(),u(),r("plates",l)},m=x=>{if(x.target.dataset.unactive||"")return;let k=x.target.dataset.number;k&&(l.push(k),u(),r("plates",l))};return t({open:v,close:y}),(x,I)=>(dt(),pe(He,{ref_key:"popRef",ref:s,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:ye(()=>[B("div",{class:"popup-plate",style:Ot({paddingBottom:ae(Mt).safeAreaBottom})},[B("div",null,[B("div",{onClick:y},"关闭")]),B("div",{class:Wt(["step",o.value==0?"":"hide"])},[B("div",{class:"popitem",onClick:m,"data-number":"京"}," 京 "),B("div",{class:"popitem",onClick:m,"data-number":"沪"}," 沪 "),B("div",{class:"popitem",onClick:m,"data-number":"津"}," 津 "),B("div",{class:"popitem",onClick:m,"data-number":"渝"}," 渝 "),B("div",{class:"popitem",onClick:m,"data-number":"黑"}," 黑 "),B("div",{class:"popitem",onClick:m,"data-number":"吉"}," 吉 "),B("div",{class:"popitem",onClick:m,"data-number":"辽"}," 辽 "),B("div",{class:"popitem",onClick:m,"data-number":"蒙"}," 蒙 "),B("div",{class:"popitem",onClick:m,"data-number":"冀"}," 冀 "),B("div",{class:"popitem",onClick:m,"data-number":"新"}," 新 "),B("div",{class:"popitem",onClick:m,"data-number":"甘"}," 甘 "),B("div",{class:"popitem",onClick:m,"data-number":"青"}," 青 "),B("div",{class:"popitem",onClick:m,"data-number":"陕"}," 陕 "),B("div",{class:"popitem",onClick:m,"data-number":"宁"}," 宁 "),B("div",{class:"popitem",onClick:m,"data-number":"豫"}," 豫 "),B("div",{class:"popitem",onClick:m,"data-number":"鲁"}," 鲁 "),B("div",{class:"popitem",onClick:m,"data-number":"晋"}," 晋 "),B("div",{class:"popitem",onClick:m,"data-number":"皖"}," 皖 "),B("div",{class:"popitem",onClick:m,"data-number":"鄂"}," 鄂 "),B("div",{class:"popitem",onClick:m,"data-number":"湘"}," 湘 "),B("div",{class:"popitem",onClick:m,"data-number":"苏"}," 苏 "),B("div",{class:"popitem",onClick:m,"data-number":"川"}," 川 "),B("div",{class:"popitem",onClick:m,"data-number":"云"}," 云 "),B("div",{class:"popitem",onClick:m,"data-number":"桂"}," 桂 "),B("div",{class:"popitem",onClick:m,"data-number":"藏"}," 藏 "),B("div",{class:"popitem",onClick:m,"data-number":"浙"}," 浙 "),B("div",{class:"popitem",onClick:m,"data-number":"赣"}," 赣 "),B("div",{class:"popitem",onClick:m,"data-number":"粤"}," 粤 "),B("div",{class:"popitem",onClick:m,"data-number":"闽"}," 闽 "),B("div",{class:"popitem",onClick:m,"data-number":"琼"}," 琼 "),B("div",{class:"popitem",onClick:m,"data-number":"贵"}," 贵 "),B("div",{class:"popitem popitem-clear",onClick:g},[Kt(Xr,{width:"16px"})])],2),B("div",{class:Wt(["step",o.value!=0?"":"hide"])},[B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"1","data-unactive":o.value!=2?"unactive":""}," 1 ",10,Mm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"2","data-unactive":o.value!=2?"unactive":""}," 2 ",10,Am),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"3","data-unactive":o.value!=2?"unactive":""}," 3 ",10,Lm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"4","data-unactive":o.value!=2?"unactive":""}," 4 ",10,Rm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"5","data-unactive":o.value!=2?"unactive":""}," 5 ",10,Dm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"6","data-unactive":o.value!=2?"unactive":""}," 6 ",10,Fm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"7","data-unactive":o.value!=2?"unactive":""}," 7 ",10,Vm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"8","data-unactive":o.value!=2?"unactive":""}," 8 ",10,$m),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"9","data-unactive":o.value!=2?"unactive":""}," 9 ",10,zm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"0","data-unactive":o.value!=2?"unactive":""}," 0 ",10,jm),B("div",{class:"popitem",onClick:m,"data-number":"A"}," A "),B("div",{class:"popitem",onClick:m,"data-number":"B"}," B "),B("div",{class:"popitem",onClick:m,"data-number":"C"}," C "),B("div",{class:"popitem",onClick:m,"data-number":"D"}," D "),B("div",{class:"popitem",onClick:m,"data-number":"E"}," E "),B("div",{class:"popitem",onClick:m,"data-number":"F"}," F "),B("div",{class:"popitem",onClick:m,"data-number":"G"}," G "),B("div",{class:"popitem",onClick:m,"data-number":"H"}," H "),B("div",{class:"popitem",onClick:m,"data-number":"J"}," J "),B("div",{class:"popitem",onClick:m,"data-number":"K"}," K "),B("div",{class:"popitem",onClick:m,"data-number":"L"}," L "),B("div",{class:"popitem",onClick:m,"data-number":"M"}," M "),B("div",{class:"popitem",onClick:m,"data-number":"N"}," N "),B("div",{class:"popitem",onClick:m,"data-number":"P"}," P "),B("div",{class:"popitem",onClick:m,"data-number":"Q"}," Q "),B("div",{class:"popitem",onClick:m,"data-number":"R"}," R "),B("div",{class:"popitem",onClick:m,"data-number":"S"}," S "),B("div",{class:"popitem",onClick:m,"data-number":"T"}," T "),B("div",{class:"popitem",onClick:m,"data-number":"U"}," U "),B("div",{class:"popitem",onClick:m,"data-number":"V"}," V "),B("div",{class:"popitem",onClick:m,"data-number":"W"}," W "),B("div",{class:"popitem",onClick:m,"data-number":"X"}," X "),B("div",{class:"popitem",onClick:m,"data-number":"Y"}," Y "),B("div",{class:"popitem",onClick:m,"data-number":"Z"}," Z "),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"港","data-unactive":o.value!=2?"unactive":""}," 港 ",10,Gm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"澳","data-unactive":o.value!=2?"unactive":""}," 澳 ",10,Bm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"学","data-unactive":o.value!=2?"unactive":""}," 学 ",10,Hm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"警","data-unactive":o.value!=2?"unactive":""}," 警 ",10,Um),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"使","data-unactive":o.value!=2?"unactive":""}," 使 ",10,Wm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"领","data-unactive":o.value!=2?"unactive":""}," 领 ",10,qm),B("div",{class:Wt(["popitem",o.value!=2?"unactive":""]),onClick:m,"data-number":"挂","data-unactive":o.value!=2?"unactive":""}," 挂 ",10,Ym),B("div",{class:"popitem popitem-clear",onClick:g},[Kt(Xr,{width:"16px"})])],2)],4)]),_:1},512))}}),lg="",$o=Yt(Xm,[["__scopeId","data-v-6e8b6f81"]]),Kr=e=>(Is("data-v-50f7545d"),e=e(),Ns(),e),Km=Kr(()=>B("div",{class:"title"},"车牌颜色",-1)),Zm={class:"plate-types"},Qm=["onClick"],Jm=Kr(()=>B("div",{class:"title"},"车牌号码",-1)),t0={class:"plate-numbers"},e0=Kr(()=>B("div",{class:"dot"},"·",-1)),n0=["onClick"],i0=Kr(()=>B("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),r0=Ut({customOptions:{SVGCheck:Fo,PlateKeyboard:$o},__name:"PlateMobile",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=vt(),l=vt(0),u=en([]),v=vt(-1),y=x=>{l.value=x,v.value<=s[x].completePlateLength&&u.length<s[x].completePlateLength?(v.value=u.length,o.value.open(),r("clear")):Ui(u,u.slice(0,s[x].completePlateLength)),s[x].completePlateLength===u.length&&r("complete",s[l.value].name,u.join(""))},g=x=>{Ui(u,u.slice(0,x)),v.value=Math.min(Math.max(0,v.value),x),o.value.open(),r("clear")},m=x=>{Ui(u,x),v.value=u.length,u.length===s[l.value].completePlateLength&&r("complete",s[l.value].name,u.join(""))};return t({}),(x,I)=>(dt(),_t(xe,null,[B("div",Fs(x.$attrs,{class:"plate-mobile",style:{maxWidth:i.maxWidth}}),[Km,B("div",Zm,[(dt(),_t(xe,null,Cn(s,(k,A)=>B("div",{key:A,class:Wt(A==l.value?"checked":""),onClick:$=>y(A)},[B("div",{style:Ot(k.style)},null,4),B("div",null,de(k.name),1),B("div",null,[Kt(Fo,{color:"#ffffff",width:"0.14rem"})])],10,Qm)),64))]),Jm,B("div",t0,[B("div",{onClick:I[0]||(I[0]=k=>g(0)),class:Wt(v.value==0?"current":"")},de(u[0]),3),B("div",{onClick:I[1]||(I[1]=k=>g(1)),class:Wt(v.value==1?"current":"")},de(u[1]),3),e0,(dt(!0),_t(xe,null,Cn(s[l.value].completePlateLength-2,k=>(dt(),_t("div",{key:k,class:Wt(k+1==v.value?"current":""),onClick:A=>g(k+1)},de(u[k+1]),11,n0))),128))]),i0],16),Kt($o,{ref_key:"plateKeyboardRef",ref:o,initPlates:u,completePlateLength:s[l.value].completePlateLength,onPlates:m},null,8,["initPlates","completePlateLength"])],64))}}),cg="",s0=Yt(r0,[["__scopeId","data-v-50f7545d"]]),o0=["width","height"],a0=["fill"],l0=Ut({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Mt.colorPrimary}},setup(e){const t=e;return(n,i)=>(dt(),_t("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[B("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,a0)],8,o0))}}),ug="",zo=Yt(l0,[["__scopeId","data-v-4747d4a7"]]),c0=Ut({customOptions:{SVGDelete:zo},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Mt.colorGrayFF},deleteColor:{default:Mt.colorRed},fontColor:{default:Mt.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(!1),o=()=>{r("delete"),s.value=!1};let l;const u=vt();return te(u,()=>{u.value&&(l=new Nc(u.value),l.on("panLeft",()=>{s.value=!0}),l.on("panRight",()=>{s.value=!1}),l.on("tapOutSide",()=>{s.value=!1}))}),Fa(()=>{l?.destroy()}),t({}),(v,y)=>(dt(),_t("div",{class:"parent",ref_key:"item",ref:u,style:Ot({backgroundColor:i.bgColor})},[B("div",{class:"content",style:Ot({transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(-"+i.deleteWidth+", 0)":"translate(0, 0)"})},[ie(v.$slots,"default",{},void 0,!0)],4),B("div",{class:"delete",onClick:o,style:Ot({backgroundColor:i.deleteColor,width:i.deleteWidth,transition:"all ease-in "+i.transtionDuration,transform:s.value?"translate(0, 0)":"translate("+i.deleteWidth+", 0)"})},[Kt(zo,{color:i.fontColor},null,8,["color"])],4)],4))}}),hg="",u0=Yt(c0,[["__scopeId","data-v-407674aa"]]),h0={class:"parent"},f0=Ut({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",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 m=r.filter(x=>x.name===g);return m.length?m[0]:o("未知")}const l=s(i.plate),u=vt(o(i.plateType));let v=i.fontColor,y=i.fontSize;switch(i.displayType){case"dot":v=v??"#999999",y=y??"14px";break;case"chinese":v=v??"#333333",y=y??"20px";break}return t({}),(g,m)=>(dt(),_t("div",h0,[B("div",{class:Wt(["leading",i.displayType]),style:Ot(u.value.style)},de(u.value.name),7),B("div",{class:"text",style:Ot({color:ae(v),"font-size":ae(y)})},de(ae(l)),5)]))}}),fg="",d0=Yt(f0,[["__scopeId","data-v-8d55b13b"]]),p0={class:"tab"},m0=Ut({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(e,{expose:t}){return t({}),(n,i)=>(dt(),_t("div",p0,[ie(n.$slots,"default",{},void 0,!0)]))}}),dg="",Bc=Yt(m0,[["__scopeId","data-v-6589e7fa"]]),g0=["onClick"],v0={class:"content"},y0=Ut({customOptions:{Tab:Bc},inheritAttrs:!0,__name:"Tabs",props:{initIndex:{default:0}},emits:["changedIndex"],setup(e,{expose:t,emit:n}){const i=e,r=n,s=vt(i.initIndex),o=en([]),l=vt(),u=vt(0),v=vt(0),y=vt(0),g=vt([]),m=[],x=yh(),I=x.default&&x.default();I&&(Ui(o,I),$(s.value));const k=(P,O)=>{if(P){if(m.push({index:O,el:P}),m.length<o.length)return;g.value=m}};te([l,g],()=>{A()});function A(){if(l.value&&g.value.length){const P=l.value.getBoundingClientRect(),O=g.value[s.value].el.getBoundingClientRect();u.value=O.x-P.x,v.value=O.y-P.y+O.height,y.value=O.width}}function $(P){s.value=P,r("changedIndex",P),A()}return t({}),(P,O)=>(dt(),_t("div",null,[B("div",{class:"header",ref_key:"headerRef",ref:l},[(dt(!0),_t(xe,null,Cn(o,(D,W)=>(dt(),_t("div",{key:D.props?.label,class:Wt(W==s.value?"active":""),onClick:U=>$(W)},[B("div",{ref_for:!0,ref:U=>k(U,W)},de(D.props?.label),513)],10,g0))),128)),B("div",{class:"indicator",style:Ot({top:v.value+"px",left:u.value+"px",width:y.value+"px",height:"2px"})},null,4)],512),B("div",v0,[(dt(),pe(fh,{include:"Tab"},[(dt(),pe(oh(o[s.value]),{key:o[s.value]?.props?.label}))],1024))])]))}}),pg="",_0=Yt(y0,[["__scopeId","data-v-e8093875"]]);var nr=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(y){y.preventDefault(),i(++e%t.children.length)},!1);function n(y){return t.appendChild(y.dom),y}function i(y){for(var g=0;g<t.children.length;g++)t.children[g].style.display=g===y?"block":"none";e=y}var r=(performance||Date).now(),s=r,o=0,l=n(new nr.Panel("FPS","#0ff","#002")),u=n(new nr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var v=n(new nr.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 y=(performance||Date).now();if(u.update(y-r,200),y>s+1e3&&(l.update(o*1e3/(y-s),100),s=y,o=0,v)){var g=performance.memory;v.update(g.usedJSHeapSize/1048576,g.jsHeapSizeLimit/1048576)}return y},update:function(){r=this.end()},domElement:t,setMode:i}};nr.Panel=function(e,t,n){var i=1/0,r=0,s=Math.round,o=s(window.devicePixelRatio||1),l=80*o,u=48*o,v=3*o,y=2*o,g=3*o,m=15*o,x=74*o,I=30*o,k=document.createElement("canvas");k.width=l,k.height=u,k.style.cssText="width:80px;height:48px";var A=k.getContext("2d");return A.font="bold "+9*o+"px Helvetica,Arial,sans-serif",A.textBaseline="top",A.fillStyle=n,A.fillRect(0,0,l,u),A.fillStyle=t,A.fillText(e,v,y),A.fillRect(g,m,x,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(g,m,x,I),{dom:k,update:function($,P){i=Math.min(i,$),r=Math.max(r,$),A.fillStyle=n,A.globalAlpha=1,A.fillRect(0,0,l,m),A.fillStyle=t,A.fillText(s($)+" "+e+" ("+s(i)+"-"+s(r)+")",v,y),A.drawImage(k,g+o,m,x-o,I,g,m,x-o,I),A.fillRect(g+x-o,m,o,I),A.fillStyle=n,A.globalAlpha=.9,A.fillRect(g+x-o,m,o,s((1-$/P)*I))}}};const x0=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(e,{expose:t}){const n=vt();return xr(()=>{const i=new nr,r=i.domElement.style;r.margin="1em",n.value.appendChild(i.domElement),Mc.register(()=>(i.update(),!0))}),t({}),(i,r)=>(dt(),_t("div",{ref_key:"containerRef",ref:n},null,512))}}),b0={class:"ease-graph"},w0=["width","height"],E0=Ut({customOptions:{Button:Oe},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=vt();te(o,()=>{o.value&&(s=new Br(o.value),l(),r("onMounted",i.easeName))});const l=()=>{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 u=!1;const v=()=>{if(!s||u)return;u=!0,r("onStart",i.easeName),l();const g={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap},m={x:i.graphHorizontalGap,y:i.canvasHeight-i.graphVerticalGap};tr.toTween(g,{x:i.canvasWidth-i.graphHorizontalGap},{duration:i.easeDuration,easeFunction:xt.Easing.Linear.None}).startAuto(),tr.toTween(g,{y:i.graphVerticalGap},{duration:i.easeDuration,easeFunction:i.easeFunction,onUpdate:()=>{s.beginPath(),s.moveTo(m.x,m.y),s.lineTo(g.x,g.y),s.closePath(),s.stroke(),m.x=g.x,m.y=g.y}}).startAuto(),setTimeout(()=>{r("onCompleted",i.easeName),u=!1},i.easeDuration)},y=()=>{r("onSelected",i.easeName,i.easeFunction)};return t({start:v}),(g,m)=>(dt(),_t("div",b0,[B("div",null,"缓动:"+de(g.easeName),1),B("div",null,[Kt(Oe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:v},{default:ye(()=>[rn(" 开始 ")]),_:1}),Kt(Oe,{stylePattern:i.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:y},{default:ye(()=>[rn(" 选择 ")]),_:1},8,["stylePattern"])]),B("canvas",{ref_key:"canvasRef",ref:o,width:g.canvasWidth,height:g.canvasHeight},null,8,w0)]))}}),gg="",jo=Yt(E0,[["__scopeId","data-v-1f39c8d3"]]),C0={class:"ease-graph-wrap"},S0={key:0,class:"ease-group-gap"},Hc=2e3,k0=Ut({customOptions:{EaseGraphDisplay:jo},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:xt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:xt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:xt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:xt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:xt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:xt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:xt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:xt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:xt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:xt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:xt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:xt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:xt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:xt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:xt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:xt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:xt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:xt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:xt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:xt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:xt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:xt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:xt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:xt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:xt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:xt.Easing.Back.In},{easeName:"BackOut",easeFunction:xt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:xt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:xt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:xt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:xt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:xt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:xt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:xt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:xt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:xt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:xt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:xt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(e,{expose:t,emit:n}){const i=e,r=n,s={};function o(g,m){g&&(s[m]=g)}const l=new zl(10);function u(g){l.addTask(()=>(s[g].start(),new Promise(m=>{setTimeout(()=>{m()},Hc)})))}const v=vt("");function y(g,m){v.value=g,r("selectedEaseFunction",m)}return t({}),(g,m)=>(dt(),_t("div",null,[(dt(!0),_t(xe,null,Cn(i.easeList,x=>(dt(),_t(xe,{key:x.easeName},[B("div",C0,[x.easeFunction?(dt(),pe(jo,{key:0,easeName:x.easeName,easeFunction:x.easeFunction,easeDuration:Hc,isSelected:v.value==x.easeName,onOnMounted:u,onOnSelected:y,ref_for:!0,ref:I=>o(I,x.easeName)},null,8,["easeName","easeFunction","isSelected"])):he("",!0)]),x.easeFunction?he("",!0):(dt(),_t("div",S0))],64))),128))]))}}),vg="",T0=Yt(k0,[["__scopeId","data-v-78813c75"]]),P0={class:"interpolation-graph"},I0=["width","height"],Uc=1/6,Wc=5/6,N0=Ut({customOptions:{Button:Oe},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=vt();te(o,()=>{o.value&&(s=new Br(o.value),x(),r("onMounted",i.interpolationName))});const l=i.canvasWidth*Uc,u=i.canvasHeight/2,v=[i.canvasWidth*Wc,i.canvasWidth/2],y=[i.canvasHeight*Uc,i.canvasHeight*Wc],g=[...v,l],m=[...y,u],x=()=>{s.fillStyle="rgb(250,250,250)",s.fillRect(0,0,i.canvasWidth,i.canvasHeight),s.fillStyle="rgb(200,200,200)",s.fillRect(l-3,u-3,6,6),s.fillRect(v[v.length-1]-3,y[y.length-1]-3,6,6);for(var A=0;A<v.length;A++)s.fillRect(v[A]-2,y[A]-2,4,4)};let I=!1;const k=()=>{if(!s||I)return;I=!0,r("onStart",i.interpolationName),x();const A={x:l,y:u,old:{x:l,y:u}};tr.toTween(A,{x:v,y},{duration:i.easeDuration,easeFunction:xt.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 $={x:l,y:u,old:{x:l,y:u}};tr.toTween($,{x:g,y:m},{duration:i.easeDuration,easeFunction:xt.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),I=!1},i.easeDuration)};return t({start:k}),(A,$)=>(dt(),_t("div",P0,[B("div",null,[rn(" 插值:"+de(A.interpolationName)+" ",1),Kt(Oe,{stylePattern:"outline",height:"32px",onClick:k},{default:ye(()=>[rn(" 开始 ")]),_:1})]),B("canvas",{ref_key:"canvasRef",ref:o,width:A.canvasWidth,height:A.canvasHeight},null,8,I0)]))}}),yg="",Go=Yt(N0,[["__scopeId","data-v-5e4289c7"]]),qc=2e3,O0=Ut({customOptions:{InterpolationGraphDisplay:Go},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:xt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:xt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:xt.Interpolation.CatmullRom}]}},setup(e,{expose:t,emit:n}){const i=e,r={};function s(u,v){u&&(r[v]=u)}const o=new zl(1);function l(u){o.addTask(()=>(r[u].start(),new Promise(v=>{setTimeout(()=>{v()},qc)})))}return t({}),(u,v)=>(dt(),_t("div",null,[(dt(!0),_t(xe,null,Cn(i.interpolationList,y=>(dt(),_t("div",{key:y.interpolationName,class:"interpolation-graph-wrap"},[Kt(Go,{interpolationName:y.interpolationName,interpolationFunction:y.interpolationFunction,easeDuration:qc,onOnMounted:l,ref_for:!0,ref:g=>s(g,y.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),_g="",M0=Yt(O0,[["__scopeId","data-v-59130b9e"]]),A0=["width","height"],L0=Ut({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",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=vt();return te(s,()=>{if(!s.value)return;const o=new Nc(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,l)=>(dt(),_t("canvas",{ref_key:"panelRef",ref:s,width:i.canvasWidth,height:i.canvasHeight,style:Ot([`border: 1px solid ${o.borderColor}`])},null,12,A0))}});Ft.Button=Oe,Ft.CheckboxGroup=Kp,Ft.ColorPicker=xm,Ft.Dialog=To,Ft.DialogLoading=Op,Ft.EaseGraphDisplay=jo,Ft.EaseGroupGraphDisplay=T0,Ft.FPSStats=x0,Ft.HandWritePanel=L0,Ft.Icon=Wn,Ft.InterpolationGraphDisplay=Go,Ft.InterpolationGroupGraphDisplay=M0,Ft.MapTianditu=km,Ft.MobileLayout=yp,Ft.Overlay=er,Ft.PlateDisplay=d0,Ft.PlateKeyboard=$o,Ft.PlateMobile=s0,Ft.Pop=He,Ft.Popover=Po,Ft.RadioGroup=Bp,Ft.ResizeObserver=Cm,Ft.SVGCheck=Fo,Ft.SVGCleanUp=Xr,Ft.SVGDelete=zo,Ft.Select=Lp,Ft.SlideLeftItem=u0,Ft.Switch=Dp,Ft.Tab=Bc,Ft.Tabs=_0,Object.defineProperty(Ft,Symbol.toStringTag,{value:"Module"})});
57
+ //# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map