@zyzgroup/core-vue 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +2 -0
  2. package/ce/style.css +1 -1
  3. package/ce/yz_custom_element.iife.js +37 -76
  4. package/ce/yz_custom_element.iife.js.map +1 -1
  5. package/ce/yz_custom_element.js +9416 -41421
  6. package/ce/yz_custom_element.js.map +1 -1
  7. package/ce/yz_custom_element.umd.cjs +37 -76
  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 +32 -55
  11. package/dist/zyzgroup_core_vue.iife.js.map +1 -0
  12. package/dist/zyzgroup_core_vue.js +7640 -37883
  13. package/dist/zyzgroup_core_vue.js.map +1 -0
  14. package/dist/zyzgroup_core_vue.umd.cjs +32 -55
  15. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -0
  16. package/package.json +5 -5
  17. package/types/components/Button.ce.vue.d.ts +13 -15
  18. package/types/components/Button.vue.d.ts +13 -15
  19. package/types/components/CheckboxGroup.ce.vue.d.ts +79 -0
  20. package/types/components/CheckboxGroup.vue.d.ts +79 -0
  21. package/types/components/ColorPicker.ce.vue.d.ts +41 -0
  22. package/types/components/ColorPicker.vue.d.ts +41 -0
  23. package/types/components/Dialog.ce.vue.d.ts +12 -8
  24. package/types/components/Dialog.vue.d.ts +12 -8
  25. package/types/components/DialogLoading.ce.vue.d.ts +28 -7
  26. package/types/components/DialogLoading.vue.d.ts +28 -7
  27. package/types/components/MapTianditu.ce.vue.d.ts +67 -0
  28. package/types/components/MapTianditu.vue.d.ts +67 -0
  29. package/types/components/MobileLayout.ce.vue.d.ts +1 -1
  30. package/types/components/MobileLayout.vue.d.ts +1 -1
  31. package/types/components/Overlay.ce.vue.d.ts +40 -0
  32. package/types/components/Overlay.vue.d.ts +40 -0
  33. package/types/components/PlateDisplay.ce.vue.d.ts +37 -0
  34. package/types/components/PlateDisplay.vue.d.ts +37 -0
  35. package/types/components/PlateKeyboard.ce.vue.d.ts +45 -0
  36. package/types/components/PlateKeyboard.vue.d.ts +45 -0
  37. package/types/components/PlateMobile.ce.vue.d.ts +35 -0
  38. package/types/components/PlateMobile.vue.d.ts +35 -0
  39. package/types/components/Pop.ce.vue.d.ts +62 -0
  40. package/types/components/Pop.vue.d.ts +62 -0
  41. package/types/components/Popover.ce.vue.d.ts +37 -0
  42. package/types/components/Popover.vue.d.ts +37 -0
  43. package/types/components/PopoverHeadlessUI.ce.vue.d.ts +10 -0
  44. package/types/components/PopoverHeadlessUI.vue.d.ts +10 -0
  45. package/types/components/RadioGroup.ce.vue.d.ts +79 -0
  46. package/types/components/RadioGroup.vue.d.ts +79 -0
  47. package/types/components/RadioGroupHeadlessUI.ce.vue.d.ts +76 -0
  48. package/types/components/RadioGroupHeadlessUI.vue.d.ts +76 -0
  49. package/types/components/ResizeObserver.ce.vue.d.ts +37 -0
  50. package/types/components/ResizeObserver.vue.d.ts +37 -0
  51. package/types/components/Select.ce.vue.d.ts +31 -4
  52. package/types/components/Select.vue.d.ts +31 -4
  53. package/types/components/SlideLeftItem.ce.vue.d.ts +60 -0
  54. package/types/components/SlideLeftItem.vue.d.ts +60 -0
  55. package/types/components/Switch.ce.vue.d.ts +63 -0
  56. package/types/components/Switch.vue.d.ts +63 -0
  57. package/types/components/SwitchHeadlessUI.ce.vue.d.ts +15 -0
  58. package/types/components/SwitchHeadlessUI.vue.d.ts +15 -0
  59. package/types/components/Tab.ce.vue.d.ts +30 -0
  60. package/types/components/Tab.vue.d.ts +30 -0
  61. package/types/components/TabHeadlessUI.ce.vue.d.ts +67 -0
  62. package/types/components/TabHeadlessUI.vue.d.ts +67 -0
  63. package/types/components/Tabs.ce.vue.d.ts +33 -0
  64. package/types/components/Tabs.vue.d.ts +33 -0
  65. package/types/components/TabsForCE.ce.vue.d.ts +38 -0
  66. package/types/components/TabsForCE.vue.d.ts +38 -0
  67. package/types/components/svg/SVGCheck.ce.vue.d.ts +34 -0
  68. package/types/components/svg/SVGCheck.vue.d.ts +34 -0
  69. package/types/components/svg/SVGCleanUp.ce.vue.d.ts +34 -0
  70. package/types/components/svg/SVGCleanUp.vue.d.ts +34 -0
  71. package/types/components/svg/SVGDelete.ce.vue.d.ts +36 -0
  72. package/types/components/svg/SVGDelete.vue.d.ts +36 -0
  73. package/types/components/svg/SVGFail.ce.vue.d.ts +36 -0
  74. package/types/components/svg/SVGFail.vue.d.ts +36 -0
  75. package/types/components/svg/SVGHome.ce.vue.d.ts +36 -0
  76. package/types/components/svg/SVGHome.vue.d.ts +36 -0
  77. package/types/components/svg/SVGPrompt.ce.vue.d.ts +36 -0
  78. package/types/components/svg/SVGPrompt.vue.d.ts +36 -0
  79. package/types/components/svg/SVGQuestion.ce.vue.d.ts +36 -0
  80. package/types/components/svg/SVGQuestion.vue.d.ts +36 -0
  81. package/types/components/svg/SVGReturn.ce.vue.d.ts +36 -0
  82. package/types/components/svg/SVGReturn.vue.d.ts +36 -0
  83. package/types/components/svg/SVGSuccess.vue.d.ts +36 -0
  84. package/types/components/svg/SVGWaiting.ce.vue.d.ts +36 -0
  85. package/types/components/svg/SVGWaiting.vue.d.ts +36 -0
  86. package/types/hooks/useWindowSize.d.ts +5 -0
  87. package/types/lib.d.ts +19 -3
  88. package/dist/vite.svg +0 -1
@@ -1,4 +1,31 @@
1
- (function(dr,K){typeof exports=="object"&&typeof module<"u"?K(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],K):(dr=typeof globalThis<"u"?globalThis:dr||self,K(dr.ZYZGroupCoreVue={},dr.Vue))})(this,function(dr,K){"use strict";var lY=Object.defineProperty;var cY=(dr,K,Pn)=>K in dr?lY(dr,K,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):dr[K]=Pn;var jt=(dr,K,Pn)=>(cY(dr,typeof K!="symbol"?K+"":K,Pn),Pn);const Pn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ql=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:n,prefix:c,name:a};return t&&!Zl(l)?null:l}const o=i[0],s=o.split("-");if(s.length>1){const a={provider:n,prefix:s.shift(),name:s.join("-")};return t&&!Zl(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:o};return t&&!Zl(a,r)?null:a}return null},Zl=(e,t)=>e?!!((e.provider===""||e.provider.match(Pn))&&(t&&e.prefix===""||e.prefix.match(Pn))&&e.name.match(Pn)):!1,Vm=Object.freeze({left:0,top:0,width:16,height:16}),tc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ec=Object.freeze({...Vm,...tc}),hh=Object.freeze({...ec,body:"",hidden:!1});function F$(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 Bm(e,t){const r=F$(e,t);for(const n in hh)n in tc?n in e&&!(n in r)&&(r[n]=tc[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function M$(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const a=n[s]&&n[s].parent,c=a&&o(a);c&&(i[s]=[a].concat(c))}return i[s]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function L$(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=Bm(n[a]||i[a],o)}return s(t),r.forEach(s),Bm(e,o)}function Hm(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=M$(e);for(const i in n){const o=n[i];o&&(t(i,L$(e,i,o)),r.push(i))}return r}const U$={provider:"",aliases:{},not_found:{},...Vm};function dh(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function qm(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!dh(e,U$))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(Pn)||typeof o.body!="string"||!dh(o,hh))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],s=o.parent;if(!i.match(Pn)||typeof s!="string"||!r[s]&&!n[s]||!dh(o,hh))return null}return t}const Km=Object.create(null);function z$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ho(e,t){const r=Km[e]||(Km[e]=Object.create(null));return r[t]||(r[t]=z$(e,t))}function fh(e,t){return qm(t)?Hm(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function G$(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Ms=!1;function Ym(e){return typeof e=="boolean"&&(Ms=e),Ms}function V$(e){const t=typeof e=="string"?Ql(e,!0,Ms):e;if(t){const r=ho(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function B$(e,t){const r=Ql(e,!0,Ms);if(!r)return!1;const n=ho(r.provider,r.prefix);return G$(n,r.name,t)}function H$(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ms&&!t&&!e.prefix){let i=!1;return qm(e)&&(e.prefix="",Hm(e,(o,s)=>{s&&B$(o,s)&&(i=!0)})),i}const r=e.prefix;if(!Zl({provider:t,prefix:r,name:"a"}))return!1;const n=ho(t,r);return!!fh(n,e)}const Xm=Object.freeze({width:null,height:null}),Jm=Object.freeze({...Xm,...tc}),q$=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K$=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Wm(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(q$);if(n===null||!n.length)return e;const i=[];let o=n.shift(),s=K$.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");s=!s}}function Y$(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function X$(e,t){return e?"<defs>"+e+"</defs>"+t:t}function J$(e,t,r){const n=Y$(e);return X$(n.defs,t+n.content+r)}const W$=e=>e==="unset"||e==="undefined"||e==="none";function Q$(e,t){const r={...ec,...e},n={...Jm,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(g=>{const v=[],b=g.hFlip,_=g.vFlip;let m=g.rotate;b?_?m+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):_&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let S;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:S=i.height/2+i.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}m%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),v.length&&(o=J$(o,'<g transform="'+v.join(" ")+'">',"</g>"))});const s=n.width,a=n.height,c=i.width,l=i.height;let u,d;s===null?(d=a===null?"1em":a==="auto"?l:a,u=Wm(d,c/l)):(u=s==="auto"?c:s,d=a===null?Wm(u,l/c):a==="auto"?l:a);const f={},h=(g,v)=>{W$(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 Z$=/\sid="(\S+)"/g,t3="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let e3=0;function r3(e,t=t3){const r=[];let n;for(;n=Z$.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const s=typeof t=="function"?t(o):t+(e3++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const ph=Object.create(null);function n3(e,t){ph[e]=t}function mh(e){return ph[e]||ph[""]}function gh(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 vh=Object.create(null),Ls=["https://api.simplesvg.com","https://api.unisvg.com"],rc=[];for(;Ls.length>0;)Ls.length===1||Math.random()>.5?rc.push(Ls.shift()):rc.push(Ls.pop());vh[""]=gh({resources:["https://api.iconify.design"].concat(rc)});function i3(e,t){const r=gh(t);return r===null?!1:(vh[e]=r,!0)}function yh(e){return vh[e]}let Qm=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function o3(e,t){const r=yh(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function s3(e){return e===404}const a3=(e,t,r)=>{const n=[],i=o3(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(n.push(s),s={type:o,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),n.push(s),n};function l3(e){if(typeof e=="string"){const t=yh(e);if(t)return t.path}return"/"}const c3={prepare:a3,send:(e,t,r)=>{if(!Qm){r("abort",424);return}let n=l3(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;Qm(e+n).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{r(s3(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function u3(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,s=i.prefix,a=i.name,c=r[o]||(r[o]=Object.create(null)),l=c[s]||(c[s]=ho(o,s));let u;a in l.icons?u=t.loaded:s===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:o,prefix:s,name:a};u.push(d)}),t}function Zm(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function h3(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(e.icons[l])s.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))s.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),s.pending.length!==a&&(r||Zm([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let d3=0;function f3(e,t,r){const n=d3++,i=Zm.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function p3(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Ql(i,t,r):i;o&&n.push(o)}),n}var m3={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function g3(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let k=e.resources.slice(0);for(s=[];k.length>1;){const A=Math.floor(Math.random()*k.length);s.push(k[A]),k=k.slice(0,A).concat(k.slice(A+1))}s=s.concat(k)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=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(k=>{k.status==="pending"&&(k.status="aborted")}),f=[]}function v(k,A){A&&(h=[]),typeof k=="function"&&h.push(k)}function b(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:v,abort:g}}function _(){c="failed",h.forEach(k=>{k(void 0,u)})}function m(){f.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),f=[]}function S(k,A,R){const z=A!=="success";switch(f=f.filter(B=>B!==k),c){case"pending":break;case"failed":if(z||!e.dataAfterTimeout)return;break;default:return}if(A==="abort"){u=R,_();return}if(z){u=R,f.length||(s.length?N():_());return}if(p(),m(),!e.random){const B=e.resources.indexOf(k.resource);B!==-1&&B!==e.index&&(e.index=B)}c="completed",h.forEach(B=>{B(R)})}function N(){if(c!=="pending")return;p();const k=s.shift();if(k===void 0){if(f.length){d=setTimeout(()=>{p(),c==="pending"&&(m(),_())},e.timeout);return}_();return}const A={status:"pending",resource:k,callback:(R,z)=>{S(A,R,z)}};f.push(A),l++,d=setTimeout(N,e.rotate),r(k,t,A.callback)}return setTimeout(N),b}function tg(e){const t={...m3,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function i(a,c,l){const u=g3(t,a,c,(d,f)=>{n(),l&&l(d,f)});return r.push(u),u}function o(a){return r.find(c=>a(c))||null}return{query:i,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function eg(){}const _h=Object.create(null);function v3(e){if(!_h[e]){const t=yh(e);if(!t)return;const r=tg(t),n={config:t,redundancy:r};_h[e]=n}return _h[e]}function y3(e,t,r){let n,i;if(typeof e=="string"){const o=mh(e);if(!o)return r(void 0,424),eg;i=o.send;const s=v3(e);s&&(n=s.redundancy)}else{const o=gh(e);if(o){n=tg(o);const s=e.resources?e.resources[0]:"",a=mh(s);a&&(i=a.send)}}return!n||!i?(r(void 0,424),eg):n.query(t,i,r)().abort}const rg="iconify2",Us="iconify",ng=Us+"-count",ig=Us+"-version",og=36e5,_3=168,b3=50;function bh(e,t){try{return e.getItem(t)}catch{}}function wh(e,t,r){try{return e.setItem(t,r),!0}catch{}}function sg(e,t){try{e.removeItem(t)}catch{}}function xh(e,t){return wh(e,ng,t.toString())}function Sh(e){return parseInt(bh(e,ng))||0}const nc={local:!0,session:!0},ag={local:new Set,session:new Set};let $h=!1;function w3(e){$h=e}let ic=typeof window>"u"?{}:window;function lg(e){const t=e+"Storage";try{if(ic&&ic[t]&&typeof ic[t].length=="number")return ic[t]}catch{}nc[e]=!1}function cg(e,t){const r=lg(e);if(!r)return;const n=bh(r,ig);if(n!==rg){if(n){const a=Sh(r);for(let c=0;c<a;c++)sg(r,Us+c.toString())}wh(r,ig,rg),xh(r,0);return}const i=Math.floor(Date.now()/og)-_3,o=a=>{const c=Us+a.toString(),l=bh(r,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}sg(r,c)}};let s=Sh(r);for(let a=s-1;a>=0;a--)o(a)||(a===s-1?(s--,xh(r,s)):ag[e].add(a))}function ug(){if(!$h){w3(!0);for(const e in nc)cg(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=ho(n,i);if(!fh(o,r).length)return!1;const s=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,s):s,!0})}}function x3(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in nc)cg(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function S3(e,t){$h||ug();function r(n){let i;if(!nc[n]||!(i=lg(n)))return;const o=ag[n];let s;if(o.size)o.delete(s=Array.from(o).shift());else if(s=Sh(i),s>=b3||!xh(i,s+1))return;const a={cached:Math.floor(Date.now()/og),provider:e.provider,data:t};return wh(i,Us+s.toString(),JSON.stringify(a))}t.lastModified&&!x3(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function hg(){}function $3(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,h3(e)}))}function k3(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=mh(r)))return;o.prepare(r,n,i).forEach(a=>{y3(r,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=fh(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),S3(e,c)}catch(l){console.error(l)}$3(e)})})}))}const E3=(e,t)=>{const r=p3(e,!0,Ym()),n=u3(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,hg)}),()=>{c=!1}}const i=Object.create(null),o=[];let s,a;return n.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===s)return;s=l,a=u,o.push(ho(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=ho(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&&k3(c,i[l][u])}),t?f3(t,n,o):hg};function C3(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in Xm?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const P3=/[\s,]+/;function T3(e,t){t.split(P3).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function O3(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 A3(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 N3(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function R3(e){return"data:image/svg+xml,"+N3(e)}function j3(e){return'url("'+R3(e)+'")'}const dg={...Jm,inline:!1},D3={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},I3={display:"inline-block"},kh={backgroundColor:"currentColor"},fg={backgroundColor:"transparent"},pg={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},mg={webkitMask:kh,mask:kh,background:fg};for(const e in mg){const t=mg[e];for(const r in pg)t[e+r]=pg[r]}const oc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";oc[e+"-flip"]=t,oc[e.slice(0,1)+"-flip"]=t,oc[e+"Flip"]=t});function gg(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const vg=(e,t)=>{const r=C3(dg,t),n={...D3},i=t.mode||"svg",o={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&T3(r,v);break;case"color":o.color=v;break;case"rotate":typeof v=="string"?r[g]=O3(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const b=oc[g];b?(v===!0||v==="true"||v===1)&&(r[b]=!0):dg[g]===void 0&&(n[g]=v)}}}const c=Q$(e,r),l=c.attributes;if(r.inline&&(o.verticalAlign="-0.125em"),i==="svg"){n.style={...o,...a},Object.assign(n,l);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=r3(c.body,v?()=>v+"ID"+g++:"iconifyVue"),K.h("svg",n)}const{body:u,width:d,height:f}=e,h=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),p=A3(u,{...l,width:d+"",height:f+""});return n.style={...o,"--svg":j3(p),width:gg(l.width),height:gg(l.height),...I3,...h?kh:fg,...a},K.h("span",n)};if(Ym(!0),n3("",c3),typeof document<"u"&&typeof window<"u"){ug();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"||!H$(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;i3(r,i)||console.error(n)}catch{console.error(n)}}}}const F3={...ec,body:""},M3=K.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=Ql(e,!1,!0))===null)return this.abortLoading(),null;const n=V$(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:E3([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 vg(F3,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),vg({...ec,...t.data},r)}});function Jt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}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 sc=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const L3=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(M,qe){typeof exports=="object"&&typeof module<"u"?qe(exports):typeof define=="function"&&define.amd?define(["exports"],qe):(M=typeof globalThis<"u"?globalThis:M||self,qe(M.ZYZGroupCoreVue={}))})(this,function(M){"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 qe(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ce={}.NODE_ENV!=="production"?Object.freeze({}):{},Gr={}.NODE_ENV!=="production"?Object.freeze([]):[],Ye=()=>{},Ur=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ie=Object.assign,Kr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},qr=Object.prototype.hasOwnProperty,B=(t,e)=>qr.call(t,e),I=Array.isArray,Te=t=>Xe(t)==="[object Map]",vs=t=>Xe(t)==="[object Set]",Yr=t=>Xe(t)==="[object RegExp]",V=t=>typeof t=="function",J=t=>typeof t=="string",Oe=t=>typeof t=="symbol",q=t=>t!==null&&typeof t=="object",Xr=t=>(q(t)||V(t))&&V(t.then)&&V(t.catch),ys=Object.prototype.toString,Xe=t=>ys.call(t),_s=t=>Xe(t).slice(8,-1),bs=t=>Xe(t)==="[object Object]",on=t=>J(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,rn=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Zr=/-(\w)/g,wt=rn(t=>t.replace(Zr,(e,n)=>n?n.toUpperCase():"")),Ze=rn(t=>t.charAt(0).toUpperCase()+t.slice(1)),Jr=rn(t=>t?`on${Ze(t)}`:""),ye=(t,e)=>!Object.is(t,e),ws=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Qr=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let xs;const Cs=()=>xs||(xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function k(t){if(I(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],o=J(s)?si(s):k(s);if(o)for(const r in o)e[r]=o[r]}return e}else if(J(t)||q(t))return t}const ei=/;(?![^(]*\))/g,ti=/:([^]+)/,ni=/\/\*[^]*?\*\//g;function si(t){const e={};return t.replace(ni,"").split(ei).forEach(n=>{if(n){const s=n.split(ti);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function R(t){let e="";if(J(t))e=t;else if(I(t))for(let n=0;n<t.length;n++){const s=R(t[n]);s&&(e+=s+" ")}else if(q(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const ne=t=>J(t)?t:t==null?"":I(t)||q(t)&&(t.toString===ys||!V(t.toString))?JSON.stringify(t,Es,2):String(t),Es=(t,e)=>e&&e.__v_isRef?Es(t,e.value):Te(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,o],r)=>(n[an(s,r)+" =>"]=o,n),{})}:vs(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>an(n))}:Oe(e)?an(e):q(e)&&!I(e)&&!bs(e)?String(e):e,an=(t,e="")=>{var n;return Oe(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6
+ * @vue/reactivity v3.4.25
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/function Fe(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Ss;function oi(t,e=Ss){e&&e.active&&e.effects.push(t)}function ri(){return Ss}let Pe;class ks{constructor(e,n,s,o){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,oi(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Je();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(ii(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Qe()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=_e,n=Pe;try{return _e=!0,Pe=this,this._runnings++,Ts(this),this.fn()}finally{Os(this),this._runnings--,Pe=n,_e=e}}stop(){var e;this.active&&(Ts(this),Os(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function ii(t){return t.value}function Ts(t){t._trackId++,t._depsLength=0}function Os(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Ps(t.deps[e],t);t.deps.length=t._depsLength}}function Ps(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let _e=!0,cn=0;const Ns=[];function Je(){Ns.push(_e),_e=!1}function Qe(){const t=Ns.pop();_e=t===void 0?!0:t}function ln(){cn++}function un(){for(cn--;!cn&&dn.length;)dn.shift()()}function Ls(t,e,n){var s;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const o=t.deps[t._depsLength];o!==e?(o&&Ps(o,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((s=t.onTrack)==null||s.call(t,ie({effect:t},n)))}}const dn=[];function $s(t,e,n){var s;ln();for(const o of t.keys()){let r;o._dirtyLevel<e&&(r??(r=t.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=e),o._shouldSchedule&&(r??(r=t.get(o)===o._trackId))&&({}.NODE_ENV!=="production"&&((s=o.onTrigger)==null||s.call(o,ie({effect:o},n))),o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&dn.push(o.scheduler)))}un()}const Is=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},fn=new WeakMap,Ne=Symbol({}.NODE_ENV!=="production"?"iterate":""),hn=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function X(t,e,n){if(_e&&Pe){let s=fn.get(t);s||fn.set(t,s=new Map);let o=s.get(n);o||s.set(n,o=Is(()=>s.delete(n))),Ls(Pe,o,{}.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function be(t,e,n,s,o,r){const i=fn.get(t);if(!i)return;let a=[];if(e==="clear")a=[...i.values()];else if(n==="length"&&I(t)){const c=Number(s);i.forEach((l,f)=>{(f==="length"||!Oe(f)&&f>=c)&&a.push(l)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":I(t)?on(n)&&a.push(i.get("length")):(a.push(i.get(Ne)),Te(t)&&a.push(i.get(hn)));break;case"delete":I(t)||(a.push(i.get(Ne)),Te(t)&&a.push(i.get(hn)));break;case"set":Te(t)&&a.push(i.get(Ne));break}ln();for(const c of a)c&&$s(c,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:s,oldValue:o,oldTarget:r}:void 0);un()}const ai=qe("__proto__,__v_isRef,__isVue"),Ms=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Oe)),As=ci();function ci(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=L(this);for(let r=0,i=this.length;r<i;r++)X(s,"get",r+"");const o=s[e](...n);return o===-1||o===!1?s[e](...n.map(L)):o}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Je(),ln();const s=L(this)[e].apply(this,n);return un(),Qe(),s}}),t}function li(t){Oe(t)||(t=String(t));const e=L(this);return X(e,"has",t),e.hasOwnProperty(t)}class Rs{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Gs:Ws:r?xi:Bs).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const i=I(e);if(!o){if(i&&B(As,n))return Reflect.get(As,n,s);if(n==="hasOwnProperty")return li}const a=Reflect.get(e,n,s);return(Oe(n)?Ms.has(n):ai(n))||(o||X(e,"get",n),r)?a:se(a)?i&&on(n)?a:a.value:q(a)?o?Us(a):pe(a):a}}class ui extends Rs{constructor(e=!1){super(!1,e)}set(e,n,s,o){let r=e[n];if(!this._isShallow){const c=Le(r);if(!$e(s)&&!Le(s)&&(r=L(r),s=L(s)),!I(e)&&se(r)&&!se(s))return c?!1:(r.value=s,!0)}const i=I(e)&&on(n)?Number(n)<e.length:B(e,n),a=Reflect.set(e,n,s,o);return e===L(o)&&(i?ye(s,r)&&be(e,"set",n,s,r):be(e,"add",n,s)),a}deleteProperty(e,n){const s=B(e,n),o=e[n],r=Reflect.deleteProperty(e,n);return r&&s&&be(e,"delete",n,void 0,o),r}has(e,n){const s=Reflect.has(e,n);return(!Oe(n)||!Ms.has(n))&&X(e,"has",n),s}ownKeys(e){return X(e,"iterate",I(e)?"length":Ne),Reflect.ownKeys(e)}}class Ds extends Rs{constructor(e=!1){super(!0,e)}set(e,n){return{}.NODE_ENV!=="production"&&Fe(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return{}.NODE_ENV!=="production"&&Fe(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const di=new ui,fi=new Ds,hi=new Ds(!0),pn=t=>t,xt=t=>Reflect.getPrototypeOf(t);function Ct(t,e,n=!1,s=!1){t=t.__v_raw;const o=L(t),r=L(e);n||(ye(e,r)&&X(o,"get",e),X(o,"get",r));const{has:i}=xt(o),a=s?pn:n?yn:et;if(i.call(o,e))return a(t.get(e));if(i.call(o,r))return a(t.get(r));t!==o&&t.get(e)}function Et(t,e=!1){const n=this.__v_raw,s=L(n),o=L(t);return e||(ye(t,o)&&X(s,"has",t),X(s,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function St(t,e=!1){return t=t.__v_raw,!e&&X(L(t),"iterate",Ne),Reflect.get(t,"size",t)}function Fs(t){t=L(t);const e=L(this);return xt(e).has.call(e,t)||(e.add(t),be(e,"add",t,t)),this}function js(t,e){e=L(e);const n=L(this),{has:s,get:o}=xt(n);let r=s.call(n,t);r?{}.NODE_ENV!=="production"&&Hs(n,s,t):(t=L(t),r=s.call(n,t));const i=o.call(n,t);return n.set(t,e),r?ye(e,i)&&be(n,"set",t,e,i):be(n,"add",t,e),this}function Vs(t){const e=L(this),{has:n,get:s}=xt(e);let o=n.call(e,t);o?{}.NODE_ENV!=="production"&&Hs(e,n,t):(t=L(t),o=n.call(e,t));const r=s?s.call(e,t):void 0,i=e.delete(t);return o&&be(e,"delete",t,void 0,r),i}function zs(){const t=L(this),e=t.size!==0,n={}.NODE_ENV!=="production"?Te(t)?new Map(t):new Set(t):void 0,s=t.clear();return e&&be(t,"clear",void 0,void 0,n),s}function kt(t,e){return function(s,o){const r=this,i=r.__v_raw,a=L(i),c=e?pn:t?yn:et;return!t&&X(a,"iterate",Ne),i.forEach((l,f)=>s.call(o,c(l),c(f),r))}}function Tt(t,e,n){return function(...s){const o=this.__v_raw,r=L(o),i=Te(r),a=t==="entries"||t===Symbol.iterator&&i,c=t==="keys"&&i,l=o[t](...s),f=n?pn:e?yn:et;return!e&&X(r,"iterate",c?hn:Ne),{next(){const{value:d,done:u}=l.next();return u?{value:d,done:u}:{value:a?[f(d[0]),f(d[1])]:f(d),done:u}},[Symbol.iterator](){return this}}}}function we(t){return function(...e){if({}.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";Fe(`${Ze(t)} operation ${n}failed: target is readonly.`,L(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function pi(){const t={get(r){return Ct(this,r)},get size(){return St(this)},has:Et,add:Fs,set:js,delete:Vs,clear:zs,forEach:kt(!1,!1)},e={get(r){return Ct(this,r,!1,!0)},get size(){return St(this)},has:Et,add:Fs,set:js,delete:Vs,clear:zs,forEach:kt(!1,!0)},n={get(r){return Ct(this,r,!0)},get size(){return St(this,!0)},has(r){return Et.call(this,r,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:kt(!0,!1)},s={get(r){return Ct(this,r,!0,!0)},get size(){return St(this,!0)},has(r){return Et.call(this,r,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Tt(r,!1,!1),n[r]=Tt(r,!0,!1),e[r]=Tt(r,!1,!0),s[r]=Tt(r,!0,!0)}),[t,n,e,s]}const[mi,gi,vi,yi]=pi();function mn(t,e){const n=e?t?yi:vi:t?gi:mi;return(s,o,r)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?s:Reflect.get(B(n,o)&&o in s?n:s,o,r)}const _i={get:mn(!1,!1)},bi={get:mn(!0,!1)},wi={get:mn(!0,!0)};function Hs(t,e,n){const s=L(n);if(s!==n&&e.call(t,s)){const o=_s(t);Fe(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="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 Bs=new WeakMap,xi=new WeakMap,Ws=new WeakMap,Gs=new WeakMap;function Ci(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ei(t){return t.__v_skip||!Object.isExtensible(t)?0:Ci(_s(t))}function pe(t){return Le(t)?t:gn(t,!1,di,_i,Bs)}function Us(t){return gn(t,!0,fi,bi,Ws)}function Ot(t){return gn(t,!0,hi,wi,Gs)}function gn(t,e,n,s,o){if(!q(t))return{}.NODE_ENV!=="production"&&Fe(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=o.get(t);if(r)return r;const i=Ei(t);if(i===0)return t;const a=new Proxy(t,i===2?s:n);return o.set(t,a),a}function je(t){return Le(t)?je(t.__v_raw):!!(t&&t.__v_isReactive)}function Le(t){return!!(t&&t.__v_isReadonly)}function $e(t){return!!(t&&t.__v_isShallow)}function vn(t){return t?!!t.__v_raw:!1}function L(t){const e=t&&t.__v_raw;return e?L(e):t}function Si(t){return Object.isExtensible(t)&&Qr(t,"__v_skip",!0),t}const et=t=>q(t)?pe(t):t,yn=t=>q(t)?Us(t):t,ki="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 Ti{constructor(e,n,s,o){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ks(()=>e(this._value),()=>Pt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const e=L(this);return(!e._cacheable||e.effect.dirty)&&ye(e._value,e._value=e.effect.run())&&Pt(e,4),Ks(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Fe(ki,`
10
+
11
+ getter: `,this.getter),Pt(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ks(t){var e;_e&&Pe&&(t=L(t),Ls(Pe,(e=t.dep)!=null?e:t.dep=Is(()=>t.dep=void 0,t instanceof Ti?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Pt(t,e=4,n){t=L(t);const s=t.dep;s&&$s(s,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function se(t){return!!(t&&t.__v_isRef===!0)}function E(t){return Oi(t,!1)}function Oi(t,e){return se(t)?t:new Pi(t,e)}class Pi{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:L(e),this._value=n?e:et(e)}get value(){return Ks(this),this._value}set value(e){const n=this.__v_isShallow||$e(e)||Le(e);e=n?e:L(e),ye(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:et(e),Pt(this,4,e))}}function W(t){return se(t)?t.value:t}const Ni={get:(t,e,n)=>W(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const o=t[e];return se(o)&&!se(n)?(o.value=n,!0):Reflect.set(t,e,n,s)}};function Li(t){return je(t)?t:new Proxy(t,Ni)}/**
12
+ * @vue/runtime-core v3.4.25
13
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
+ * @license MIT
15
+ **/const Ie=[];function $i(t){Ie.push(t)}function Ii(){Ie.pop()}function $(t,...e){Je();const n=Ie.length?Ie[Ie.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Mi();if(s)Me(s,n,11,[t+e.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${No(n,r.type)}>`).join(`
16
+ `),o]);else{const r=[`[Vue warn]: ${t}`,...e];o.length&&r.push(`
17
+ `,...Ai(o)),console.warn(...r)}Qe()}function Mi(){let t=Ie[Ie.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function Ai(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
18
+ `],...Ri(n))}),e}function Ri({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,o=` at <${No(t.component,t.type,s)}`,r=">"+n;return t.props?[o,...Di(t.props),r]:[o+r]}function Di(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...qs(s,t[s]))}),n.length>3&&e.push(" ..."),e}function qs(t,e,n){return J(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:se(e)?(e=qs(t,L(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):V(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=L(e),n?e:[`${t}=`,e])}const _n={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 Me(t,e,n,s){try{return s?t(...s):t()}catch(o){bn(o,e,n)}}function Ve(t,e,n,s){if(V(t)){const o=Me(t,e,n,s);return o&&Xr(o)&&o.catch(r=>{bn(r,e,n)}),o}if(I(t)){const o=[];for(let r=0;r<t.length;r++)o.push(Ve(t[r],e,n,s));return o}else({}).NODE_ENV!=="production"&&$(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function bn(t,e,n,s=!0){const o=e?e.vnode:null;if(e){let r=e.parent;const i=e.proxy,a={}.NODE_ENV!=="production"?_n[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const l=r.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](t,i,a)===!1)return}r=r.parent}const c=e.appContext.config.errorHandler;if(c){Je(),Me(c,null,10,[t,i,a]),Qe();return}}Fi(t,n,o,s)}function Fi(t,e,n,s=!0){if({}.NODE_ENV!=="production"){const o=_n[e];if(n&&$i(n),$(`Unhandled error${o?` during execution of ${o}`:""}`),n&&Ii(),s)throw t;console.error(t)}else console.error(t)}let Nt=!1,wn=!1;const le=[];let xe=0;const ze=[];let me=null,Ce=0;const Ys=Promise.resolve();let xn=null;const ji=100;function Vi(t){const e=xn||Ys;return t?e.then(this?t.bind(this):t):e}function zi(t){let e=xe+1,n=le.length;for(;e<n;){const s=e+n>>>1,o=le[s],r=tt(o);r<t||r===t&&o.pre?e=s+1:n=s}return e}function Cn(t){(!le.length||!le.includes(t,Nt&&t.allowRecurse?xe+1:xe))&&(t.id==null?le.push(t):le.splice(zi(t.id),0,t),Xs())}function Xs(){!Nt&&!wn&&(wn=!0,xn=Ys.then(Js))}function Zs(t){I(t)?ze.push(...t):(!me||!me.includes(t,t.allowRecurse?Ce+1:Ce))&&ze.push(t),Xs()}function Hi(t){if(ze.length){const e=[...new Set(ze)].sort((n,s)=>tt(n)-tt(s));if(ze.length=0,me){me.push(...e);return}for(me=e,{}.NODE_ENV!=="production"&&(t=t||new Map),Ce=0;Ce<me.length;Ce++)({}).NODE_ENV!=="production"&&Qs(t,me[Ce])||me[Ce]();me=null,Ce=0}}const tt=t=>t.id==null?1/0:t.id,Bi=(t,e)=>{const n=tt(t)-tt(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Js(t){wn=!1,Nt=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),le.sort(Bi);const e={}.NODE_ENV!=="production"?n=>Qs(t,n):Ye;try{for(xe=0;xe<le.length;xe++){const n=le[xe];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&e(n))continue;Me(n,null,14)}}}finally{xe=0,le.length=0,Hi(t),Nt=!1,xn=null,(le.length||ze.length)&&Js(t)}}function Qs(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>ji){const s=e.ownerInstance,o=s&&dt(s.type);return bn(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,n+1)}}const He=new Set;({}).NODE_ENV!=="production"&&(Cs().__VUE_HMR_RUNTIME__={createRecord:En(Wi),rerender:En(Gi),reload:En(Ui)});const Lt=new Map;function Wi(t,e){return Lt.has(t)?!1:(Lt.set(t,{initialDef:nt(e),instances:new Set}),!0)}function nt(t){return Lo(t)?t.__vccOpts:t}function Gi(t,e){const n=Lt.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(s=>{e&&(s.render=e,nt(s.type).render=e),s.renderCache=[],s.effect.dirty=!0,s.update()}))}function Ui(t,e){const n=Lt.get(t);if(!n)return;e=nt(e),eo(n.initialDef,e);const s=[...n.instances];for(const o of s){const r=nt(o.type);He.has(r)||(r!==n.initialDef&&eo(r,e),He.add(r)),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(He.add(r),o.ceReload(e.styles),He.delete(r)):o.parent?(o.parent.effect.dirty=!0,Cn(o.parent.update)):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Zs(()=>{for(const o of s)He.delete(nt(o.type))})}function eo(t,e){ie(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function En(t){return(e,n)=>{try{return t(e,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}function Ki(t,...e){}const to=no("component:added"),qi=no("component:updated");/*! #__NO_SIDE_EFFECTS__ */function no(t){return e=>{Ki(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}let z=null,$t=null;function so(t){const e=z;return z=t,$t=t&&t.type.__scopeId||null,e}function Sn(t){$t=t}function kn(){$t=null}function he(t,e=z,n){if(!e||t._n)return t;const s=(...o)=>{s._d&&bo(-1);const r=so(e);let i;try{i=t(...o)}finally{so(r),s._d&&bo(1)}return{}.NODE_ENV!=="production"&&qi(e),i};return s._n=!0,s._c=!0,s._d=!0,s}const It="components";function Yi(t,e){return ro(It,t,!0,e)||t}const oo=Symbol.for("v-ndc");function Xi(t){return J(t)?ro(It,t,!1)||t:t||oo}function ro(t,e,n=!0,s=!1){const o=z||Ee;if(o){const r=o.type;if(t===It){const a=dt(r,!1);if(a&&(a===e||a===wt(e)||a===Ze(wt(e))))return r}const i=io(o[t]||r[t],e)||io(o.appContext[t],e);if(!i&&s)return r;if({}.NODE_ENV!=="production"&&n&&!i){const a=t===It?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";$(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return i}else({}).NODE_ENV!=="production"&&$(`resolve${Ze(t.slice(0,-1))} can only be used in render() or setup().`)}function io(t,e){return t&&(t[e]||t[wt(e)]||t[Ze(wt(e))])}const ao=t=>t.__isSuspense;function Zi(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):Zs(t)}const Ji=Symbol.for("v-scx"),Qi=()=>{{const t=pa(Ji);return t||{}.NODE_ENV!=="production"&&$("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}},Mt={};function H(t,e,n){return{}.NODE_ENV!=="production"&&!V(e)&&$("`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."),co(t,e,n)}function co(t,e,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=ce){if(e&&r){const x=e;e=(...Z)=>{x(...Z),w()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&$('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(n!==void 0&&$('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&$('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&$('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=x=>{$("Invalid watch source: ",x,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=Ee,f=x=>s===!0?x:Ae(x,s===!1?1:void 0);let d,u=!1,p=!1;if(se(t)?(d=()=>t.value,u=$e(t)):je(t)?(d=()=>f(t),u=!0):I(t)?(p=!0,u=t.some(x=>je(x)||$e(x)),d=()=>t.map(x=>{if(se(x))return x.value;if(je(x))return f(x);if(V(x))return Me(x,l,2);({}).NODE_ENV!=="production"&&c(x)})):V(t)?e?d=()=>Me(t,l,2):d=()=>(g&&g(),Ve(t,l,3,[_])):(d=Ye,{}.NODE_ENV!=="production"&&c(t)),e&&s){const x=d;d=()=>Ae(x())}let g,_=x=>{g=y.onStop=()=>{Me(x,l,4),g=y.onStop=void 0}},v;if(Rn)if(_=Ye,e?n&&Ve(e,l,3,[d(),p?[]:void 0,_]):d(),o==="sync"){const x=Qi();v=x.__watcherHandles||(x.__watcherHandles=[])}else return Ye;let S=p?new Array(t.length).fill(Mt):Mt;const m=()=>{if(!(!y.active||!y.dirty))if(e){const x=y.run();(s||u||(p?x.some((Z,fe)=>ye(Z,S[fe])):ye(x,S)))&&(g&&g(),Ve(e,l,3,[x,S===Mt?void 0:p&&S[0]===Mt?[]:S,_]),S=x)}else y.run()};m.allowRecurse=!!e;let b;o==="sync"?b=m:o==="post"?b=()=>it(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),b=()=>Cn(m));const y=new ks(d,Ye,b),A=ri(),w=()=>{y.stop(),A&&Kr(A.effects,y)};return{}.NODE_ENV!=="production"&&(y.onTrack=i,y.onTrigger=a),e?n?m():S=y.run():o==="post"?it(y.run.bind(y),l&&l.suspense):y.run(),v&&v.push(w),w}function ea(t,e,n){const s=this.proxy,o=J(t)?t.includes(".")?ta(s,t):()=>s[t]:t.bind(s,s);let r;V(e)?r=e:(r=e.handler,n=e);const i=To(this),a=co(o,r.bind(s),n);return i(),a}function ta(t,e){const n=e.split(".");return()=>{let s=t;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ae(t,e,n=0,s){if(!q(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),se(t))Ae(t.value,e,n,s);else if(I(t))for(let o=0;o<t.length;o++)Ae(t[o],e,n,s);else if(vs(t)||Te(t))t.forEach(o=>{Ae(o,e,n,s)});else if(bs(t))for(const o in t)Ae(t[o],e,n,s);return t}function Tn(t,e){if(z===null)return{}.NODE_ENV!=="production"&&$("withDirectives can only be used inside render functions."),t;const n=Po(z)||z.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[r,i,a,c=ce]=e[o];r&&(V(r)&&(r={mounted:r,updated:r}),r.deep&&Ae(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return t}function lo(t,e){t.shapeFlag&6&&t.component?lo(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function F(t,e){return V(t)?(()=>ie({name:t.name},e,{setup:t}))():t}const uo=t=>!!t.type.__asyncLoader,na={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=ko(),s=n.ctx;if(!s.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const o=new Map,r=new Set;let i=null;({}).NODE_ENV!=="production"&&(n.__v_cache=o);const a=n.suspense,{renderer:{p:c,m:l,um:f,o:{createElement:d}}}=s,u=d("div");s.activate=(m,b,y,A,w)=>{const x=m.component;l(m,b,y,0,a),c(x.vnode,m,b,y,x,a,A,m.slotScopeIds,w),it(()=>{x.isDeactivated=!1,x.a&&ws(x.a);const Z=m.props&&m.props.onVnodeMounted;Z&&So(Z,x.parent,m)},a),{}.NODE_ENV!=="production"&&to(x)},s.deactivate=m=>{const b=m.component;l(m,u,null,1,a),it(()=>{b.da&&ws(b.da);const y=m.props&&m.props.onVnodeUnmounted;y&&So(y,b.parent,m),b.isDeactivated=!0},a),{}.NODE_ENV!=="production"&&to(b)};function p(m){On(m),f(m,n,a,!0)}function g(m){o.forEach((b,y)=>{const A=dt(b.type);A&&(!m||!m(A))&&_(y)})}function _(m){const b=o.get(m);!i||!_a(b,i)?p(b):i&&On(i),o.delete(m),r.delete(m)}H(()=>[t.include,t.exclude],([m,b])=>{m&&g(y=>st(m,y)),b&&g(y=>!st(b,y))},{flush:"post",deep:!0});let v=null;const S=()=>{v!=null&&o.set(v,Pn(n.subTree))};return Nn(S),oa(S),ra(()=>{o.forEach(m=>{const{subTree:b,suspense:y}=n,A=Pn(b);if(m.type===A.type&&m.key===A.key){On(A);const w=A.component.da;w&&it(w,y);return}p(m)})}),()=>{if(v=null,!e.default)return i=null;const m=e.default(),b=m[0];if(m.length>1)return{}.NODE_ENV!=="production"&&$("KeepAlive should contain exactly one component child."),i=null,m;if(!ct(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return i=null,b;let y=Pn(b);const A=y.type,w=dt(uo(y)?y.type.__asyncResolved||{}:A),{include:x,exclude:Z,max:fe}=t;if(x&&(!w||!st(x,w))||Z&&w&&st(Z,w))return i=y,b;const re=y.key==null?A:y.key,gs=o.get(re);return y.el&&(y=lt(y),b.shapeFlag&128&&(b.ssContent=y)),v=re,gs?(y.el=gs.el,y.component=gs.component,y.transition&&lo(y,y.transition),y.shapeFlag|=512,r.delete(re),r.add(re)):(r.add(re),fe&&r.size>parseInt(fe,10)&&_(r.values().next().value)),y.shapeFlag|=256,i=y,ao(b.type)?b:y}}};function st(t,e){return I(t)?t.some(n=>st(n,e)):J(t)?t.split(",").includes(e):Yr(t)?t.test(e):!1}function On(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Pn(t){return t.shapeFlag&128?t.ssContent:t}function sa(t,e,n=Ee,s=!1){if(n){const o=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Je();const a=To(n),c=Ve(e,n,t,i);return a(),Qe(),c});return s?o.unshift(r):o.push(r),r}else if({}.NODE_ENV!=="production"){const o=Jr(_n[t].replace(/ hook$/,""));$(`${o} 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 At=t=>(e,n=Ee)=>(!Rn||t==="sp")&&sa(t,(...s)=>e(...s),n),Nn=At("m"),oa=At("u"),ra=At("bum"),fo=At("um");function Be(t,e,n,s){let o;const r=n&&n[s];if(I(t)||J(t)){o=new Array(t.length);for(let i=0,a=t.length;i<a;i++)o[i]=e(t[i],i,void 0,r&&r[i])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&$(`The v-for range expect an integer value but got ${t}.`),o=new Array(t);for(let i=0;i<t;i++)o[i]=e(i+1,i,void 0,r&&r[i])}else if(q(t))if(t[Symbol.iterator])o=Array.from(t,(i,a)=>e(i,a,void 0,r&&r[a]));else{const i=Object.keys(t);o=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const l=i[a];o[a]=e(t[l],l,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}function G(t,e,n={},s,o){if(z.isCE||z.parent&&uo(z.parent)&&z.parent.isCE)return e!=="default"&&(n.name=e),K("slot",n,s&&s());let r=t[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&($("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."),r=()=>[]),r&&r._c&&(r._d=!1),C();const i=r&&ho(r(n)),a=ee(ae,{key:n.key||i&&i.key||`_${e}`},i||(s?s():[]),i&&t._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ho(t){return t.some(e=>ct(e)?!(e.type===Dt||e.type===ae&&!ho(e.children)):!0)?t:null}const Ln=t=>t?xa(t)?Po(t)||t.proxy:Ln(t.parent):null,ot=ie(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?Ot(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?Ot(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?Ot(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?Ot(t.refs):t.refs,$parent:t=>Ln(t.parent),$root:t=>Ln(t.root),$emit:t=>t.emit,$options:t=>ua(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Cn(t.update)}),$nextTick:t=>t.n||(t.n=Vi.bind(t.proxy)),$watch:t=>ea.bind(t)}),ia=t=>t==="_"||t==="$",$n=(t,e)=>t!==ce&&!t.__isScriptSetup&&B(t,e),aa={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:c}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let l;if(e[0]!=="$"){const p=i[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return o[e];case 4:return n[e];case 3:return r[e]}else{if($n(s,e))return i[e]=1,s[e];if(o!==ce&&B(o,e))return i[e]=2,o[e];if((l=t.propsOptions[0])&&B(l,e))return i[e]=3,r[e];if(n!==ce&&B(n,e))return i[e]=4,n[e];i[e]=0}}const f=ot[e];let d,u;if(f)return e==="$attrs"?X(t.attrs,"get",""):{}.NODE_ENV!=="production"&&e==="$slots"&&X(t,"get",e),f(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==ce&&B(n,e))return i[e]=4,n[e];if(u=c.config.globalProperties,B(u,e))return u[e];({}).NODE_ENV!=="production"&&z&&(!J(e)||e.indexOf("__v")!==0)&&(o!==ce&&ia(e[0])&&B(o,e)?$(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===z&&$(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:s,setupState:o,ctx:r}=t;return $n(o,e)?(o[e]=n,!0):{}.NODE_ENV!=="production"&&o.__isScriptSetup&&B(o,e)?($(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==ce&&B(s,e)?(s[e]=n,!0):B(t.props,e)?({}.NODE_ENV!=="production"&&$(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&$(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:n}):r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||t!==ce&&B(t,i)||$n(e,i)||(a=r[0])&&B(a,i)||B(s,i)||B(ot,i)||B(o.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:B(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};({}).NODE_ENV!=="production"&&(aa.ownKeys=t=>($("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function ca(){return la().slots}function la(){const t=ko();return{}.NODE_ENV!=="production"&&!t&&$("useContext() called without active instance."),t.setupContext||(t.setupContext=Ea(t))}function po(t){return I(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function ua(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=t.appContext,a=r.get(e);let c;return a?c=a:!o.length&&!n&&!s?c=e:(c={},o.length&&o.forEach(l=>Rt(c,l,i,!0)),Rt(c,e,i)),q(e)&&r.set(e,c),c}function Rt(t,e,n,s=!1){const{mixins:o,extends:r}=e;r&&Rt(t,r,n,!0),o&&o.forEach(i=>Rt(t,i,n,!0));for(const i in e)if(s&&i==="expose")({}).NODE_ENV!=="production"&&$('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=da[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const da={data:mo,props:vo,emits:vo,methods:rt,computed:rt,beforeCreate:Q,created:Q,beforeMount:Q,mounted:Q,beforeUpdate:Q,updated:Q,beforeDestroy:Q,beforeUnmount:Q,destroyed:Q,unmounted:Q,activated:Q,deactivated:Q,errorCaptured:Q,serverPrefetch:Q,components:rt,directives:rt,watch:ha,provide:mo,inject:fa};function mo(t,e){return e?t?function(){return ie(V(t)?t.call(this,this):t,V(e)?e.call(this,this):e)}:e:t}function fa(t,e){return rt(go(t),go(e))}function go(t){if(I(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Q(t,e){return t?[...new Set([].concat(t,e))]:e}function rt(t,e){return t?ie(Object.create(null),t,e):e}function vo(t,e){return t?I(t)&&I(e)?[...new Set([...t,...e])]:ie(Object.create(null),po(t),po(e??{})):e}function ha(t,e){if(!t)return e;if(!e)return t;const n=ie(Object.create(null),t);for(const s in e)n[s]=Q(t[s],e[s]);return n}let yo=null;function pa(t,e,n=!1){const s=Ee||z;if(s||yo){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:yo._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&V(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&$(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&$("inject() can only be used inside setup() or functional components.")}const ma={},_o=t=>Object.getPrototypeOf(t)===ma,it=Zi,ga=t=>t.__isTeleport,ae=Symbol.for("v-fgt"),va=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),Ft=[];let ue=null;function C(t=!1){Ft.push(ue=t?null:[])}function ya(){Ft.pop(),ue=Ft[Ft.length-1]||null}let at=1;function bo(t){at+=t}function wo(t){return t.dynamicChildren=at>0?ue||Gr:null,ya(),at>0&&ue&&ue.push(t),t}function N(t,e,n,s,o,r){return wo(h(t,e,n,s,o,r,!0))}function ee(t,e,n,s,o){return wo(K(t,e,n,s,o,!0))}function ct(t){return t?t.__v_isVNode===!0:!1}function _a(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&He.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const ba=(...t)=>Co(...t),xo=({key:t})=>t??null,jt=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?J(t)||se(t)||V(t)?{i:z,r:t,k:e,f:!!n}:t:null);function h(t,e=null,n=null,s=0,o=null,r=t===ae?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xo(e),ref:e&&jt(e),scopeId:$t,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:z};return a?(In(c,n),r&128&&t.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),{}.NODE_ENV!=="production"&&c.key!==c.key&&$("VNode created with invalid key (NaN). VNode type:",c.type),at>0&&!i&&ue&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ue.push(c),c}const K={}.NODE_ENV!=="production"?ba:Co;function Co(t,e=null,n=null,s=0,o=null,r=!1){if((!t||t===oo)&&({}.NODE_ENV!=="production"&&!t&&$(`Invalid vnode type when creating vnode: ${t}.`),t=Dt),ct(t)){const a=lt(t,e,!0);return n&&In(a,n),at>0&&!r&&ue&&(a.shapeFlag&6?ue[ue.indexOf(t)]=a:ue.push(a)),a.patchFlag|=-2,a}if(Lo(t)&&(t=t.__vccOpts),e){e=wa(e);let{class:a,style:c}=e;a&&!J(a)&&(e.class=R(a)),q(c)&&(vn(c)&&!I(c)&&(c=ie({},c)),e.style=k(c))}const i=J(t)?1:ao(t)?128:ga(t)?64:q(t)?4:V(t)?2:0;return{}.NODE_ENV!=="production"&&i&4&&vn(t)&&(t=L(t),$("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: `,t)),h(t,e,n,s,o,i,r,!0)}function wa(t){return t?vn(t)||_o(t)?ie({},t):t:null}function lt(t,e,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=t,a=e?Mn(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&xo(a),ref:e&&e.ref?n&&o?I(o)?o.concat(jt(e)):[o,jt(e)]:jt(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&I(i)?i.map(Eo):i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ae?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&lt(t.ssContent),ssFallback:t.ssFallback&&lt(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Eo(t){const e=lt(t);return I(t.children)&&(e.children=t.children.map(Eo)),e}function ut(t=" ",e=0){return K(va,null,t,e)}function te(t="",e=!1){return e?(C(),ee(Dt,null,t)):K(Dt,null,t)}function In(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(I(e))n=16;else if(typeof e=="object")if(s&65){const o=e.default;o&&(o._c&&(o._d=!1),In(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!_o(e)?e._ctx=z:o===3&&z&&(z.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else V(e)?(e={default:e,_ctx:z},n=32):(e=String(e),s&64?(n=16,e=[ut(e)]):n=8);t.children=e,t.shapeFlag|=n}function Mn(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const o in s)if(o==="class")e.class!==s.class&&(e.class=R([e.class,s.class]));else if(o==="style")e.style=k([e.style,s.style]);else if(Ur(o)){const r=e[o],i=s[o];i&&r!==i&&!(I(r)&&r.includes(i))&&(e[o]=r?[].concat(r,i):i)}else o!==""&&(e[o]=s[o])}return e}function So(t,e,n,s=null){Ve(t,e,7,[n,s])}let Ee=null;const ko=()=>Ee||z;let An;{const t=Cs(),e=(n,s)=>{let o;return(o=t[n])||(o=t[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};An=e("__VUE_INSTANCE_SETTERS__",n=>Ee=n),e("__VUE_SSR_SETTERS__",n=>Rn=n)}const To=t=>{const e=Ee;return An(t),t.scope.on(),()=>{t.scope.off(),An(e)}};function xa(t){return t.vnode.shapeFlag&4}let Rn=!1;const Oo={}.NODE_ENV!=="production"?{get(t,e){return X(t,"get",""),t[e]},set(){return $("setupContext.attrs is readonly."),!1},deleteProperty(){return $("setupContext.attrs is readonly."),!1}}:{get(t,e){return X(t,"get",""),t[e]}};function Ca(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return X(t,"get","$slots"),e[n]}}))}function Ea(t){const e=n=>{if({}.NODE_ENV!=="production"&&(t.exposed&&$("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(I(n)?s="array":se(n)&&(s="ref")),s!=="object"&&$(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,Oo))},get slots(){return Ca(t)},get emit(){return(s,...o)=>t.emit(s,...o)},expose:e})}else return{attrs:new Proxy(t.attrs,Oo),slots:t.slots,emit:t.emit,expose:e}}function Po(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Li(Si(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ot)return ot[n](t)},has(e,n){return n in e||n in ot}}))}const Sa=/(?:^|[-_])(\w)/g,ka=t=>t.replace(Sa,e=>e.toUpperCase()).replace(/[-_]/g,"");function dt(t,e=!0){return V(t)?t.displayName||t.name:t.name||e&&t.__name}function No(t,e,n=!1){let s=dt(e);if(!s&&e.__file){const o=e.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&t&&t.parent){const o=r=>{for(const i in r)if(r[i]===e)return i};s=o(t.components||t.parent.type.components)||o(t.appContext.components)}return s?ka(s):n?"App":"Anonymous"}function Lo(t){return V(t)&&"__vccOpts"in t}function $o(t,e,n){const s=arguments.length;return s===2?q(e)&&!I(e)?ct(e)?K(t,null,[e]):K(t,e):K(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ct(n)&&(n=[n]),K(t,e,n))}function Ta(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},o={header(d){return q(d)?d.__isVue?["div",t,"VueInstance"]:se(d)?["div",{},["span",t,f(d)],"<",a(d.value),">"]:je(d)?["div",{},["span",t,$e(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${Le(d)?" (readonly)":""}`]:Le(d)?["div",{},["span",t,$e(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const u=[];d.type.props&&d.props&&u.push(i("props",L(d.props))),d.setupState!==ce&&u.push(i("setup",d.setupState)),d.data!==ce&&u.push(i("data",L(d.data)));const p=c(d,"computed");p&&u.push(i("computed",p));const g=c(d,"inject");return g&&u.push(i("injected",g)),u.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),u}function i(d,u){return u=ie({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(p=>["div",{},["span",s,p+": "],a(u[p],!1)])]]:["span",{}]}function a(d,u=!0){return typeof d=="number"?["span",e,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",s,d]:q(d)?["object",{object:u?L(d):d}]:["span",n,String(d)]}function c(d,u){const p=d.type;if(V(p))return;const g={};for(const _ in d.ctx)l(p,_,u)&&(g[_]=d.ctx[_]);return g}function l(d,u,p){const g=d[p];if(I(g)&&g.includes(u)||q(g)&&u in g||d.extends&&l(d.extends,u,p)||d.mixins&&d.mixins.some(_=>l(_,u,p)))return!0}function f(d){return $e(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}/**
21
+ * @vue/runtime-dom v3.4.25
22
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
+ * @license MIT
24
+ **/const Io=Symbol("_vod"),Oa=Symbol("_vsh"),Vt={beforeMount(t,{value:e},{transition:n}){t[Io]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ft(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),ft(t,!0),s.enter(t)):s.leave(t,()=>{ft(t,!1)}):ft(t,e))},beforeUnmount(t,{value:e}){ft(t,e)}};({}).NODE_ENV!=="production"&&(Vt.name="show");function ft(t,e){t.style.display=e?t[Io]:"none",t[Oa]=!e}/**
25
+ * vue v3.4.25
26
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
27
+ * @license MIT
28
+ **/function Pa(){Ta()}({}).NODE_ENV!=="production"&&Pa();const ht=/^[a-z0-9]+(-[a-z0-9]+)*$/,zt=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:s,prefix:c,name:a};return e&&!Ht(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!Ht(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!Ht(a,n)?null:a}return null},Ht=(t,e)=>t?!!((t.provider===""||t.provider.match(ht))&&(e&&t.prefix===""||t.prefix.match(ht))&&t.name.match(ht)):!1,Mo=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Wt=Object.freeze({...Mo,...Bt}),Dn=Object.freeze({...Wt,body:"",hidden:!1});function Na(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Ao(t,e){const n=Na(t,e);for(const s in Dn)s in Bt?s in t&&!(s in n)&&(n[s]=Bt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function La(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function $a(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Ao(s[a]||o[a],r)}return i(e),n.forEach(i),Ao(t,r)}function Ro(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=La(t);for(const o in s){const r=s[o];r&&(e(o,$a(t,o,r)),n.push(o))}return n}const Ia={provider:"",aliases:{},not_found:{},...Mo};function Fn(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Do(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Fn(t,Ia))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(ht)||typeof r.body!="string"||!Fn(r,Dn))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(ht)||typeof i!="string"||!n[i]&&!s[i]||!Fn(r,Dn))return null}return e}const Fo=Object.create(null);function Ma(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Re(t,e){const n=Fo[t]||(Fo[t]=Object.create(null));return n[e]||(n[e]=Ma(t,e))}function jn(t,e){return Do(e)?Ro(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Aa(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let pt=!1;function jo(t){return typeof t=="boolean"&&(pt=t),pt}function Ra(t){const e=typeof t=="string"?zt(t,!0,pt):t;if(e){const n=Re(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Da(t,e){const n=zt(t,!0,pt);if(!n)return!1;const s=Re(n.provider,n.prefix);return Aa(s,n.name,e)}function Fa(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),pt&&!e&&!t.prefix){let o=!1;return Do(t)&&(t.prefix="",Ro(t,(r,i)=>{i&&Da(r,i)&&(o=!0)})),o}const n=t.prefix;if(!Ht({provider:e,prefix:n,name:"a"}))return!1;const s=Re(e,n);return!!jn(s,t)}const Vo=Object.freeze({width:null,height:null}),zo=Object.freeze({...Vo,...Bt}),ja=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Va=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ho(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(ja);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=Va.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function za(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const o=t.indexOf(">",s),r=t.indexOf("</"+e);if(o===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;n+=t.slice(o+1,r).trim(),t=t.slice(0,s).trim()+t.slice(i+1)}return{defs:n,content:t}}function Ha(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Ba(t,e,n){const s=za(t);return Ha(s.defs,e+s.content+n)}const Wa=t=>t==="unset"||t==="undefined"||t==="none";function Ga(t,e){const n={...Wt,...t},s={...zo,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(_=>{const v=[],S=_.hFlip,m=_.vFlip;let b=_.rotate;S?m?b+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):m&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let y;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:y=o.height/2+o.top,v.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,v.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}b%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),v.length&&(r=Ba(r,'<g transform="'+v.join(" ")+'">',"</g>"))});const i=s.width,a=s.height,c=o.width,l=o.height;let f,d;i===null?(d=a===null?"1em":a==="auto"?l:a,f=Ho(d,c/l)):(f=i==="auto"?c:i,d=a===null?Ho(f,l/c):a==="auto"?l:a);const u={},p=(_,v)=>{Wa(v)||(u[_]=v.toString())};p("width",f),p("height",d);const g=[o.left,o.top,c,l];return u.viewBox=g.join(" "),{attributes:u,viewBox:g,body:r}}const Ua=/\sid="(\S+)"/g,Ka="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qa=0;function Ya(t,e=Ka){const n=[];let s;for(;s=Ua.exec(t);)n.push(s[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof e=="function"?e(r):e+(qa++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const Vn=Object.create(null);function Xa(t,e){Vn[t]=e}function zn(t){return Vn[t]||Vn[""]}function Hn(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Bn=Object.create(null),mt=["https://api.simplesvg.com","https://api.unisvg.com"],Gt=[];for(;mt.length>0;)mt.length===1||Math.random()>.5?Gt.push(mt.shift()):Gt.push(mt.pop());Bn[""]=Hn({resources:["https://api.iconify.design"].concat(Gt)});function Za(t,e){const n=Hn(e);return n===null?!1:(Bn[t]=n,!0)}function Wn(t){return Bn[t]}let Bo=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Ja(t,e){const n=Wn(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function Qa(t){return t===404}const ec=(t,e,n)=>{const s=[],o=Ja(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function tc(t){if(typeof t=="string"){const e=Wn(t);if(e)return e.path}return"/"}const nc={prepare:ec,send:(t,e,n)=>{if(!Bo){n("abort",424);return}let s=tc(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Bo(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Qa(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})}};function sc(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=Re(r,i));let f;a in l.icons?f=e.loaded:i===""||l.missing.has(a)?f=e.missing:f=e.pending;const d={provider:r,prefix:i,name:a};f.push(d)}),e}function Wo(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function oc(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Wo([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let rc=0;function ic(t,e,n){const s=rc++,o=Wo.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function ac(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?zt(o,e,n):o;r&&s.push(r)}),s}var cc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lc(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let w=t.resources.slice(0);for(i=[];w.length>1;){const x=Math.floor(Math.random()*w.length);i.push(w[x]),w=w.slice(0,x).concat(w.slice(x+1))}i=i.concat(w)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,f,d=null,u=[],p=[];typeof s=="function"&&p.push(s);function g(){d&&(clearTimeout(d),d=null)}function _(){c==="pending"&&(c="aborted"),g(),u.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),u=[]}function v(w,x){x&&(p=[]),typeof w=="function"&&p.push(w)}function S(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:u.length,subscribe:v,abort:_}}function m(){c="failed",p.forEach(w=>{w(void 0,f)})}function b(){u.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),u=[]}function y(w,x,Z){const fe=x!=="success";switch(u=u.filter(re=>re!==w),c){case"pending":break;case"failed":if(fe||!t.dataAfterTimeout)return;break;default:return}if(x==="abort"){f=Z,m();return}if(fe){f=Z,u.length||(i.length?A():m());return}if(g(),b(),!t.random){const re=t.resources.indexOf(w.resource);re!==-1&&re!==t.index&&(t.index=re)}c="completed",p.forEach(re=>{re(Z)})}function A(){if(c!=="pending")return;g();const w=i.shift();if(w===void 0){if(u.length){d=setTimeout(()=>{g(),c==="pending"&&(b(),m())},t.timeout);return}m();return}const x={status:"pending",resource:w,callback:(Z,fe)=>{y(x,Z,fe)}};u.push(x),l++,d=setTimeout(A,t.rotate),n(w,e,x.callback)}return setTimeout(A),S}function Go(t){const e={...cc,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=lc(e,a,c,(d,u)=>{s(),l&&l(d,u)});return n.push(f),f}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Uo(){}const Gn=Object.create(null);function uc(t){if(!Gn[t]){const e=Wn(t);if(!e)return;const n=Go(e),s={config:e,redundancy:n};Gn[t]=s}return Gn[t]}function dc(t,e,n){let s,o;if(typeof t=="string"){const r=zn(t);if(!r)return n(void 0,424),Uo;o=r.send;const i=uc(t);i&&(s=i.redundancy)}else{const r=Hn(t);if(r){s=Go(r);const i=t.resources?t.resources[0]:"",a=zn(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Uo):s.query(e,o,n)().abort}const Ko="iconify2",gt="iconify",qo=gt+"-count",Yo=gt+"-version",Xo=36e5,fc=168,hc=50;function Un(t,e){try{return t.getItem(e)}catch{}}function Kn(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Zo(t,e){try{t.removeItem(e)}catch{}}function qn(t,e){return Kn(t,qo,e.toString())}function Yn(t){return parseInt(Un(t,qo))||0}const Ut={local:!0,session:!0},Jo={local:new Set,session:new Set};let Xn=!1;function pc(t){Xn=t}let Kt=typeof window>"u"?{}:window;function Qo(t){const e=t+"Storage";try{if(Kt&&Kt[e]&&typeof Kt[e].length=="number")return Kt[e]}catch{}Ut[t]=!1}function er(t,e){const n=Qo(t);if(!n)return;const s=Un(n,Yo);if(s!==Ko){if(s){const a=Yn(n);for(let c=0;c<a;c++)Zo(n,gt+c.toString())}Kn(n,Yo,Ko),qn(n,0);return}const o=Math.floor(Date.now()/Xo)-fc,r=a=>{const c=gt+a.toString(),l=Un(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&e(f,a))return!0}catch{}Zo(n,c)}};let i=Yn(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,qn(n,i)):Jo[t].add(a))}function tr(){if(!Xn){pc(!0);for(const t in Ut)er(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=Re(s,o);if(!jn(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function mc(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in Ut)er(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function gc(t,e){Xn||tr();function n(s){let o;if(!Ut[s]||!(o=Qo(s)))return;const r=Jo[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Yn(o),i>=hc||!qn(o,i+1))return;const a={cached:Math.floor(Date.now()/Xo),provider:t.provider,data:e};return Kn(o,gt+i.toString(),JSON.stringify(a))}e.lastModified&&!mc(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function nr(){}function vc(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,oc(t)}))}function yc(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=zn(n)))return;r.prepare(n,s,o).forEach(a=>{dc(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=jn(t,c);if(!l.length)return;const f=t.pendingIcons;f&&l.forEach(d=>{f.delete(d)}),gc(t,c)}catch(l){console.error(l)}vc(t)})})}))}const _c=(t,e)=>{const n=ac(t,!0,jo()),s=sc(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,nr)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,r.push(Re(l,f));const d=o[l]||(o[l]=Object.create(null));d[f]||(d[f]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:f,name:d}=c,u=Re(l,f),p=u.pendingIcons||(u.pendingIcons=new Set);p.has(d)||(p.add(d),o[l][f].push(d))}),r.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&yc(c,o[l][f])}),e?ic(e,s,r):nr};function bc(t,e){const n={...t};for(const s in e){const o=e[s],r=typeof o;s in Vo?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const wc=/[\s,]+/;function xc(t,e){e.split(wc).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Cc(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}function Ec(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Sc(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kc(t){return"data:image/svg+xml,"+Sc(t)}function Tc(t){return'url("'+kc(t)+'")'}const sr={...zo,inline:!1},Oc={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pc={display:"inline-block"},Zn={backgroundColor:"currentColor"},or={backgroundColor:"transparent"},rr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ir={webkitMask:Zn,mask:Zn,background:or};for(const t in ir){const e=ir[t];for(const n in rr)e[t+n]=rr[n]}const qt={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";qt[t+"-flip"]=e,qt[t.slice(0,1)+"-flip"]=e,qt[t+"Flip"]=e});function ar(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const cr=(t,e)=>{const n=bc(sr,e),s={...Oc},o=e.mode||"svg",r={},i=e.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let _ in e){const v=e[_];if(v!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[_]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&xc(n,v);break;case"color":r.color=v;break;case"rotate":typeof v=="string"?n[_]=Cc(v):typeof v=="number"&&(n[_]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete s["aria-hidden"];break;default:{const S=qt[_];S?(v===!0||v==="true"||v===1)&&(n[S]=!0):sr[_]===void 0&&(s[_]=v)}}}const c=Ga(t,n),l=c.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...a},Object.assign(s,l);let _=0,v=e.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),s.innerHTML=Ya(c.body,v?()=>v+"ID"+_++:"iconifyVue"),$o("svg",s)}const{body:f,width:d,height:u}=t,p=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),g=Ec(f,{...l,width:d+"",height:u+""});return s.style={...r,"--svg":Tc(g),width:ar(l.width),height:ar(l.height),...Pc,...p?Zn:or,...a},$o("span",s)};if(jo(!0),Xa("",nc),typeof document<"u"&&typeof window<"u"){tr();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Fa(s))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const s="IconifyProviders["+n+"] is invalid.";try{const o=e[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Za(n,o)||console.error(s)}catch{console.error(s)}}}}const Nc={...Wt,body:""},Lc=F({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=zt(t,!1,!0))===null)return this.abortLoading(),null;const s=Ra(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:_c([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:s,classes:o}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return cr(Nc,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),cr({...Wt,...e.data},n)}});typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const lr=t=>{let e=null;switch(t){case"bin":e=/^[0-1]+$/;break;case"oct":e=/^(0b)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
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,12 @@
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 U3(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 yg=(e,t)=>{typeof e=="string"&&(e=L3(e)||new RegExp(e));const r=[],n=t.matchAll(e);for(const i of n)r.push(U3(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 G3(e){return z3(e)==="object"}function _g(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]=G3(e[i])?_g(e[i],t):e[i];return n}function bg(e,t=12){return+e.toPrecision(t)}function wg(e,t){return function(){return e.apply(t,arguments)}}const{toString:V3}=Object.prototype,{getPrototypeOf:Eh}=Object,ac=(e=>t=>{const r=V3.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Kn=e=>(e=e.toLowerCase(),t=>ac(t)===e),lc=e=>t=>typeof t===e,{isArray:Zo}=Array,zs=lc("undefined");function B3(e){return e!==null&&!zs(e)&&e.constructor!==null&&!zs(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xg=Kn("ArrayBuffer");function H3(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xg(e.buffer),t}const q3=lc("string"),mn=lc("function"),Sg=lc("number"),cc=e=>e!==null&&typeof e=="object",K3=e=>e===!0||e===!1,uc=e=>{if(ac(e)!=="object")return!1;const t=Eh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Y3=Kn("Date"),X3=Kn("File"),J3=Kn("Blob"),W3=Kn("FileList"),Q3=e=>cc(e)&&mn(e.pipe),Z3=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((t=ac(e))==="formdata"||t==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},t4=Kn("URLSearchParams"),e4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gs(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Zo(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function $g(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 kg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Eg=e=>!zs(e)&&e!==kg;function Ch(){const{caseless:e}=Eg(this)&&this||{},t={},r=(n,i)=>{const o=e&&$g(t,i)||i;uc(t[o])&&uc(n)?t[o]=Ch(t[o],n):uc(n)?t[o]=Ch({},n):Zo(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Gs(arguments[n],r);return t}const r4=(e,t,r,{allOwnKeys:n}={})=>(Gs(t,(i,o)=>{r&&mn(i)?e[o]=wg(i,r):e[o]=i},{allOwnKeys:n}),e),n4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),i4=(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)},o4=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Eh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},s4=(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},a4=e=>{if(!e)return null;if(Zo(e))return e;let t=e.length;if(!Sg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},l4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Eh(Uint8Array)),c4=(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])}},u4=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},h4=Kn("HTMLFormElement"),d4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Cg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),f4=Kn("RegExp"),Pg=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Gs(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},p4=e=>{Pg(e,(t,r)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(mn(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+"'")})}})},m4=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Zo(e)?n(e):n(String(e).split(t)),r},g4=()=>{},v4=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ph="abcdefghijklmnopqrstuvwxyz",Tg="0123456789",Og={DIGIT:Tg,ALPHA:Ph,ALPHA_DIGIT:Ph+Ph.toUpperCase()+Tg},y4=(e=16,t=Og.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function _4(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const b4=e=>{const t=new Array(10),r=(n,i)=>{if(cc(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Zo(n)?[]:{};return Gs(n,(s,a)=>{const c=r(s,i+1);!zs(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},w4=Kn("AsyncFunction"),x4=e=>e&&(cc(e)||mn(e))&&mn(e.then)&&mn(e.catch),mt={isArray:Zo,isArrayBuffer:xg,isBuffer:B3,isFormData:Z3,isArrayBufferView:H3,isString:q3,isNumber:Sg,isBoolean:K3,isObject:cc,isPlainObject:uc,isUndefined:zs,isDate:Y3,isFile:X3,isBlob:J3,isRegExp:f4,isFunction:mn,isStream:Q3,isURLSearchParams:t4,isTypedArray:l4,isFileList:W3,forEach:Gs,merge:Ch,extend:r4,trim:e4,stripBOM:n4,inherits:i4,toFlatObject:o4,kindOf:ac,kindOfTest:Kn,endsWith:s4,toArray:a4,forEachEntry:c4,matchAll:u4,isHTMLForm:h4,hasOwnProperty:Cg,hasOwnProp:Cg,reduceDescriptors:Pg,freezeMethods:p4,toObjectSet:m4,toCamelCase:d4,noop:g4,toFiniteNumber:v4,findKey:$g,global:kg,isContextDefined:Eg,ALPHABET:Og,generateString:y4,isSpecCompliantForm:_4,toJSONObject:b4,isAsyncFn:w4,isThenable:x4};function $e(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($e,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 Ag=$e.prototype,Ng={};["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=>{Ng[e]={value:e}}),Object.defineProperties($e,Ng),Object.defineProperty(Ag,"isAxiosError",{value:!0}),$e.from=(e,t,r,n,i,o)=>{const s=Object.create(Ag);return mt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),$e.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const S4=null;function Th(e){return mt.isPlainObject(e)||mt.isArray(e)}function Rg(e){return mt.endsWith(e,"[]")?e.slice(0,-2):e}function jg(e,t,r){return e?e.concat(t).map(function(n,i){return n=Rg(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function $4(e){return mt.isArray(e)&&!e.some(Th)}const k4=mt.toFlatObject(mt,{},null,function(e){return/^is[A-Z]/.test(e)});function hc(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,s=r.indexes,a=(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(!a&&mt.isBlob(h))throw new $e("Blob is not supported. Use a Buffer instead.");return mt.isArrayBuffer(h)||mt.isTypedArray(h)?a&&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)&&$4(h)||(mt.isFileList(h)||mt.endsWith(p,"[]"))&&(v=mt.toArray(h)))return p=Rg(p),v.forEach(function(b,_){!(mt.isUndefined(b)||b===null)&&t.append(s===!0?jg([p],_,o):s===null?p:p+"[]",c(b))}),!1}return Th(h)?!0:(t.append(jg(g,p,o),c(h)),!1)}const u=[],d=Object.assign(k4,{defaultVisitor:l,convertValue:c,isVisitable:Th});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 Dg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oh(e,t){this._pairs=[],e&&hc(e,this,t)}const Ig=Oh.prototype;Ig.append=function(e,t){this._pairs.push([e,t])},Ig.toString=function(e){const t=e?function(r){return e.call(this,r,Dg)}:Dg;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function E4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fg(e,t,r){if(!t)return e;const n=r&&r.encode||E4,i=r&&r.serialize;let o;if(i?o=i(t,r):o=mt.isURLSearchParams(t)?t.toString():new Oh(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class C4{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 Mg=C4,Lg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P4=typeof URLSearchParams<"u"?URLSearchParams:Oh,T4=typeof FormData<"u"?FormData:null,O4=typeof Blob<"u"?Blob:null,A4=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),N4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yn={isBrowser:!0,classes:{URLSearchParams:P4,FormData:T4,Blob:O4},isStandardBrowserEnv:A4,isStandardBrowserWebWorkerEnv:N4,protocols:["http","https","file","blob","url","data"]};function R4(e,t){return hc(e,new Yn.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Yn.isNode&&mt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function j4(e){return mt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function D4(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 Ug(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&mt.isArray(i)?i.length:s,c?(mt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!mt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&mt.isArray(i[s])&&(i[s]=D4(i[s])),!a)}if(mt.isFormData(e)&&mt.isFunction(e.entries)){const r={};return mt.forEachEntry(e,(n,i)=>{t(j4(n),i,r,0)}),r}return null}function I4(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 Ah={transitional:Lg,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(Ug(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 R4(e,this.formSerializer).toString();if((o=mt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return hc(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),I4(e)):e}],transformResponse:[function(e){const t=this.transitional||Ah.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"?$e.from(o,$e.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:Yn.classes.FormData,Blob:Yn.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=>{Ah.headers[e]={}});const Nh=Ah,F4=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"]),M4=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]&&F4[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},zg=Symbol("internals");function Vs(e){return e&&String(e).trim().toLowerCase()}function dc(e){return e===!1||e==null?e:mt.isArray(e)?e.map(dc):String(e)}function L4(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 U4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rh(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 z4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function G4(e,t){const r=mt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let fc=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=Vs(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]=dc(a))}const s=(a,c)=>mt.forEach(a,(l,u)=>o(l,u,c));return mt.isPlainObject(t)||t instanceof this.constructor?s(t,r):mt.isString(t)&&(t=t.trim())&&!U4(t)?s(M4(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Vs(t),t){const n=mt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return L4(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=Vs(t),t){const n=mt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Rh(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Vs(s),s){const a=mt.findKey(n,s);a&&(!r||Rh(n,n[a],a,r))&&(delete n[a],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||Rh(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 s=mt.findKey(n,o);if(s){r[s]=dc(i),delete r[o];return}const a=t?z4(o):String(o).trim();a!==o&&delete r[o],r[a]=dc(i),n[a]=!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[zg]=this[zg]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=Vs(o);r[s]||(G4(n,o),r[s]=!0)}return mt.isArray(t)?t.forEach(i):i(t),this}};fc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mt.reduceDescriptors(fc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),mt.freezeMethods(fc);const ci=fc;function jh(e,t){const r=this||Nh,n=t||r,i=ci.from(n.headers);let o=n.data;return mt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Gg(e){return!!(e&&e.__CANCEL__)}function Bs(e,t,r){$e.call(this,e??"canceled",$e.ERR_CANCELED,t,r),this.name="CanceledError"}mt.inherits(Bs,$e,{__CANCEL__:!0});function V4(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $e("Request failed with status code "+r.status,[$e.ERR_BAD_REQUEST,$e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const B4=Yn.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),mt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),mt.isString(n)&&s.push("path="+n),mt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function H4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q4(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Vg(e,t){return e&&!H4(t)?q4(e,t):t}const K4=Yn.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 Y4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X4(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Bg(e,t){let r=0;const n=X4(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const J4=typeof XMLHttpRequest<"u",W4=J4&&function(e){return new Promise(function(t,r){let n=e.data;const i=ci.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;mt.isFormData(n)&&(Yn.isStandardBrowserEnv||Yn.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=Vg(e.baseURL,e.url);l.open(e.method.toUpperCase(),Fg(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=ci.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};V4(function(g){t(g),a()},function(g){r(g),a()},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 $e("Request aborted",$e.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new $e("Network Error",$e.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||Lg;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new $e(h,p.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,l)),l=null},Yn.isStandardBrowserEnv){const h=(e.withCredentials||K4(u))&&e.xsrfCookieName&&B4.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",Bg(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Bg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{l&&(r(!h||h.type?new Bs(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=Y4(u);if(f&&Yn.protocols.indexOf(f)===-1){r(new $e("Unsupported protocol "+f+":",$e.ERR_BAD_REQUEST,e));return}l.send(n||null)})},Dh={http:S4,xhr:W4};mt.forEach(Dh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hg=e=>`- ${e}`,Q4=e=>mt.isFunction(e)||e===null||e===!1,qg={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 s;if(n=r,!Q4(r)&&(n=Dh[(s=String(r)).toLowerCase()],n===void 0))throw new $e(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
13
- `+o.map(Hg).join(`
14
- `):" "+Hg(o[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Dh};function Ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bs(null,e)}function Kg(e){return Ih(e),e.headers=ci.from(e.headers),e.data=jh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qg.getAdapter(e.adapter||Nh.adapter)(e).then(function(t){return Ih(e),t.data=jh.call(e,e.transformResponse,t),t.headers=ci.from(t.headers),t},function(t){return Gg(t)||(Ih(e),t&&t.response&&(t.response.data=jh.call(e,e.transformResponse,t.response),t.response.headers=ci.from(t.response.headers))),Promise.reject(t)})}const Yg=e=>e instanceof ci?e.toJSON():e;function ts(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 s(l,u){if(mt.isUndefined(u)){if(!mt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(Yg(l),Yg(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!==a||(r[l]=d)}),r}const Xg="1.5.1",Fh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Jg={};Fh.transitional=function(e,t,r){function n(i,o){return"[Axios v"+Xg+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new $e(n(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!Jg[o]&&(Jg[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function Z4(e,t,r){if(typeof e!="object")throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new $e("option "+o+" must be "+c,$e.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $e("Unknown option "+o,$e.ERR_BAD_OPTION)}}const Mh={assertOptions:Z4,validators:Fh},Mi=Mh.validators;let pc=class{constructor(t){this.defaults=t,this.interceptors={request:new Mg,response:new Mg}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ts(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Mh.assertOptions(n,{silentJSONParsing:Mi.transitional(Mi.boolean),forcedJSONParsing:Mi.transitional(Mi.boolean),clarifyTimeoutError:Mi.transitional(Mi.boolean)},!1),i!=null&&(mt.isFunction(i)?r.paramsSerializer={serialize:i}:Mh.assertOptions(i,{encode:Mi.function,serialize:Mi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&mt.merge(o.common,o[r.method]);o&&mt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=ci.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[Kg.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=r;for(d=0;d<f;){const p=a[d++],g=a[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=Kg.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=ts(this.defaults,t);const r=Vg(t.baseURL,t.url);return Fg(r,t.params,t.paramsSerializer)}};mt.forEach(["delete","get","head","options"],function(e){pc.prototype[e]=function(t,r){return this.request(ts(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(ts(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}pc.prototype[e]=t(),pc.prototype[e+"Form"]=t(!0)});const mc=pc;class Lh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new Bs(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Lh(function(r){t=r}),cancel:t}}}const tk=Lh;function ek(e){return function(t){return e.apply(null,t)}}function rk(e){return mt.isObject(e)&&e.isAxiosError===!0}const Uh={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(Uh).forEach(([e,t])=>{Uh[t]=e});const nk=Uh;function Wg(e){const t=new mc(e),r=wg(mc.prototype.request,t);return mt.extend(r,mc.prototype,t,{allOwnKeys:!0}),mt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Wg(ts(e,n))},r}const mr=Wg(Nh);mr.Axios=mc,mr.CanceledError=Bs,mr.CancelToken=tk,mr.isCancel=Gg,mr.VERSION=Xg,mr.toFormData=hc,mr.AxiosError=$e,mr.Cancel=mr.CanceledError,mr.all=function(e){return Promise.all(e)},mr.spread=ek,mr.isAxiosError=rk,mr.mergeConfig=ts,mr.AxiosHeaders=ci,mr.formToJSON=e=>Ug(mt.isHTMLForm(e)?new FormData(e):e),mr.getAdapter=qg.getAdapter,mr.HttpStatusCode=nk,mr.default=mr;var zh=function(e,t){return zh=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])},zh(e,t)};function Li(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Gh(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 Hs(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function qs(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 ui(e){return typeof e=="function"}function Vh(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 Bh=Vh(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 gc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ks=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Gh(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(ui(u))try{u()}catch(g){o=g instanceof Bh?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Gh(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{t1(p)}catch(g){o=o??[],g instanceof Bh?o=qs(qs([],Hs(o)),Hs(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 Bh(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)t1(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)&&gc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&gc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Qg=Ks.EMPTY;function Zg(e){return e instanceof Ks||e&&"closed"in e&&ui(e.remove)&&ui(e.add)&&ui(e.unsubscribe)}function t1(e){ui(e)?e():e.unsubscribe()}var e1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ik={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,qs([e,t],Hs(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function ok(e){ik.setTimeout(function(){throw e})}function r1(){}function vc(e){e()}var Hh=function(e){Li(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Zg(r)&&r.add(n)):n.destination=ck,n}return t.create=function(r,n,i){return new Kh(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}(Ks),sk=Function.prototype.bind;function qh(e,t){return sk.call(e,t)}var ak=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){yc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){yc(n)}else yc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){yc(r)}},e}(),Kh=function(e){Li(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ui(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&e1.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&qh(r.next,a),error:r.error&&qh(r.error,a),complete:r.complete&&qh(r.complete,a)}):s=r}return o.destination=new ak(s),o}return t}(Hh);function yc(e){ok(e)}function lk(e){throw e}var ck={closed:!0,next:r1,error:lk,complete:r1},uk=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function hk(e){return e}function dk(e){return e.length===0?hk:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var n1=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=pk(t)?t:new Kh(t,r,n);return vc(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=i1(r),new r(function(i,o){var s=new Kh({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[uk]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return dk(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=i1(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function i1(e){var t;return(t=e??e1.Promise)!==null&&t!==void 0?t:Promise}function fk(e){return e&&ui(e.next)&&ui(e.error)&&ui(e.complete)}function pk(e){return e&&e instanceof Hh||fk(e)&&Zg(e)}(function(e){Li(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Hh);var mk=Vh(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gk=function(e){Li(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 o1(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mk},t.prototype.next=function(r){var n=this;vc(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=Gh(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;vc(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;vc(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Qg:(this.currentObservers=null,a.push(r),new Ks(function(){n.currentObservers=null,gc(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new n1;return r.source=this,r},t.create=function(r,n){return new o1(r,n)},t}(n1),o1=function(e){Li(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:Qg},t}(gk),vk={now:function(){return Date.now()},delegate:void 0},yk=function(e){Li(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Ks),Yh={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Yh.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,qs([e,t],Hs(r))):setInterval.apply(void 0,qs([e,t],Hs(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},_k=function(e){Li(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),Yh.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&&Yh.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,gc(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(yk),s1=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=vk.now,e}(),bk=function(e){Li(t,e);function t(r,n){n===void 0&&(n=s1.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}(s1);new bk(_k);function wk(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 a1=Vh(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=wk(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return a1.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(a1.prototype),e})();var xk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(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 Xh={exports:{}},es=typeof Reflect=="object"?Reflect:null,l1=es&&typeof es.apply=="function"?es.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},_c;es&&typeof es.ownKeys=="function"?_c=es.ownKeys:Object.getOwnPropertySymbols?_c=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:_c=function(e){return Object.getOwnPropertyNames(e)};function Sk(e){console&&console.warn&&console.warn(e)}var c1=Number.isNaN||function(e){return e!==e};function Me(){Me.init.call(this)}Xh.exports=Me,Xh.exports.once=Ck,Me.EventEmitter=Me,Me.prototype._events=void 0,Me.prototype._eventsCount=0,Me.prototype._maxListeners=void 0;var u1=10;function bc(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Me,"defaultMaxListeners",{enumerable:!0,get:function(){return u1},set:function(e){if(typeof e!="number"||e<0||c1(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u1=e}}),Me.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},Me.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||c1(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 h1(e){return e._maxListeners===void 0?Me.defaultMaxListeners:e._maxListeners}Me.prototype.getMaxListeners=function(){return h1(this)},Me.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=e==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")l1(a,this,t);else for(var c=a.length,l=g1(a,c),r=0;r<c;++r)l1(l[r],this,t);return!0};function d1(e,t,r,n){var i,o,s;if(bc(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=h1(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,Sk(a)}return e}Me.prototype.addListener=function(e,t){return d1(this,e,t,!1)},Me.prototype.on=Me.prototype.addListener,Me.prototype.prependListener=function(e,t){return d1(this,e,t,!0)};function $k(){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 f1(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=$k.bind(n);return i.listener=r,n.wrapFn=i,i}Me.prototype.once=function(e,t){return bc(t),this.on(e,f1(this,e,t)),this},Me.prototype.prependOnceListener=function(e,t){return bc(t),this.prependListener(e,f1(this,e,t)),this},Me.prototype.removeListener=function(e,t){var r,n,i,o,s;if(bc(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():kk(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},Me.prototype.off=Me.prototype.removeListener,Me.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 p1(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?Ek(i):g1(i,i.length)}Me.prototype.listeners=function(e){return p1(this,e,!0)},Me.prototype.rawListeners=function(e){return p1(this,e,!1)},Me.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):m1.call(e,t)},Me.prototype.listenerCount=m1;function m1(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}Me.prototype.eventNames=function(){return this._eventsCount>0?_c(this._events):[]};function g1(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function kk(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Ek(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Ck(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}v1(e,t,o,{once:!0}),t!=="error"&&Pk(e,i,{once:!0})})}function Pk(e,t,r){typeof e.on=="function"&&v1(e,"error",t,r)}function v1(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 Tk=Xh.exports;class dY extends Tk.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 y1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Ok(e,t={}){var r=1,n=1;function i(st){var X=st.match(/\n/g);X&&(r+=X.length);var T=st.lastIndexOf(`
17
- `);n=~T?st.length-T:n+st.length}function o(){var st={line:r,column:n};return function(X){return X.position=new s(st),p(),X}}function s(st){this.start=st,this.end={line:r,column:n},this.source=t.source}s.prototype.content=e;var a=[];function c(st){var X=new Error(t.source+":"+r+":"+n+": "+st);if(X.reason=st,X.filename=t.source,X.line=r,X.column=n,X.source=e,t.silent)a.push(X);else throw X}function l(){var st=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:st,parsingErrors:a}}}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function f(){var st,X=[];for(p(),g(X);e.length&&e.charAt(0)!="}"&&(st=Ct()||$t());)st!==!1&&(X.push(st),g(X));return X}function h(st){var X=st.exec(e);if(X){var T=X[0];return i(T),e=e.slice(T.length),X}}function p(){h(/^\s*/)}function g(st){var X;for(st=st||[];X=v();)X!==!1&&st.push(X);return st}function v(){var st=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,st({type:"comment",comment:T})}}function b(){var st=h(/^([^{]+)/);if(st)return hi(st[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 _(){var st=o(),X=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(X){if(X=hi(X[0]),!h(/^:\s*/))return c("property missing ':'");var T=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),E=st({type:"declaration",property:X.replace(y1,""),value:T?hi(T[0]).replace(y1,""):""});return h(/^[;\s]*/),E}}function m(){var st=[];if(!u())return c("missing '{'");g(st);for(var X;X=_();)X!==!1&&(st.push(X),g(st));return d()?st:c("missing '}'")}function S(){for(var st,X=[],T=o();st=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)X.push(st[1]),h(/^,\s*/);if(X.length)return T({type:"keyframe",values:X,declarations:m()})}function N(){var st=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 $,y=g();$=S();)y.push($),y=y.concat(g());return d()?st({type:"keyframes",name:E,vendor:T,keyframes:y}):c("@keyframes missing '}'")}}function k(){var st=o(),X=h(/^@supports *([^{]+)/);if(X){var T=hi(X[1]);if(!u())return c("@supports missing '{'");var E=g().concat(f());return d()?st({type:"supports",supports:T,rules:E}):c("@supports missing '}'")}}function A(){var st=o(),X=h(/^@host\s*/);if(X){if(!u())return c("@host missing '{'");var T=g().concat(f());return d()?st({type:"host",rules:T}):c("@host missing '}'")}}function R(){var st=o(),X=h(/^@media *([^{]+)/);if(X){var T=hi(X[1]);if(!u())return c("@media missing '{'");var E=g().concat(f());return d()?st({type:"media",media:T,rules:E}):c("@media missing '}'")}}function z(){var st=o(),X=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(X)return st({type:"custom-media",name:hi(X[1]),media:hi(X[2])})}function B(){var st=o(),X=h(/^@page */);if(X){var T=b()||[];if(!u())return c("@page missing '{'");for(var E=g(),$;$=_();)E.push($),E=E.concat(g());return d()?st({type:"page",selectors:T,declarations:E}):c("@page missing '}'")}}function Y(){var st=o(),X=h(/^@([-\w]+)?document *([^{]+)/);if(X){var T=hi(X[1]),E=hi(X[2]);if(!u())return c("@document missing '{'");var $=g().concat(f());return d()?st({type:"document",document:E,vendor:T,rules:$}):c("@document missing '}'")}}function W(){var st=o(),X=h(/^@font-face\s*/);if(X){if(!u())return c("@font-face missing '{'");for(var T=g(),E;E=_();)T.push(E),T=T.concat(g());return d()?st({type:"font-face",declarations:T}):c("@font-face missing '}'")}}var nt=xt("import"),rt=xt("charset"),lt=xt("namespace");function xt(st){var X=new RegExp("^@"+st+"\\s*([^;]+);");return function(){var T=o(),E=h(X);if(E){var $={type:st};return $[st]=E[1].trim(),T($)}}}function Ct(){if(e[0]=="@")return N()||R()||z()||k()||nt()||rt()||lt()||Y()||B()||A()||W()}function $t(){var st=o(),X=b();return X?(g(),st({type:"rule",selectors:X,declarations:m()})):c("selector missing")}return Jh(l())}function hi(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Jh(e,t){var r=e&&typeof e.type=="string",n=r?e:t;for(var i in e){var o=e[i];Array.isArray(o)?o.forEach(function(s){Jh(s,n)}):o&&typeof o=="object"&&Jh(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Wh={exports:{}},Qh={},di={},fo={},Zh={},td={},ed={};(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(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((m,S)=>`${m}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((m,S)=>(S instanceof r&&(m[S.str]=(m[S.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(b,..._){const m=[b[0]];let S=0;for(;S<_.length;)a(m,_[S]),m.push(b[++S]);return new n(m)}e._=i;const o=new n("+");function s(b,..._){const m=[h(b[0])];let S=0;for(;S<_.length;)m.push(o),a(m,_[S]),m.push(o,h(b[++S]));return c(m),new n(m)}e.str=s;function a(b,_){_ instanceof n?b.push(..._._items):_ instanceof r?b.push(_):b.push(d(_))}e.addCodeArg=a;function c(b){let _=1;for(;_<b.length-1;){if(b[_]===o){const m=l(b[_-1],b[_+1]);if(m!==void 0){b.splice(_-1,3,m);continue}b[_++]="+"}_++}}function l(b,_){if(_==='""')return b;if(b==='""')return _;if(typeof b=="string")return _ instanceof r||b[b.length-1]!=='"'?void 0:typeof _!="string"?`${b.slice(0,-1)}${_}"`:_[0]==='"'?b.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(b instanceof r))return`"${b}${_.slice(1)}`}function u(b,_){return _.emptyStr()?b:b.emptyStr()?_:s`${b}${_}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new n(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function g(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(b){return new n(b.toString())}e.regexpCode=v})(ed);const Ak=qr(ed),Nk=Mt({__proto__:null,default:Ak},[ed]),Ys=Lt(Nk);var rd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ys;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 s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var 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 _=g.get(p);if(_)return _}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),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(b=>{if(v.has(b))return;v.set(b,n.Started);let _=u(b);if(_){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${m} ${b} = ${_};${this.opts._n}`}else if(_=f==null?void 0:f(b))h=(0,t._)`${h}${_}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return h}}e.ValueScope=a})(rd);const Rk=qr(rd),jk=Mt({__proto__:null,default:Rk},[rd]),_1=Lt(jk);(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=Ys,r=_1;var n=Ys;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=_1;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(y,C){return this}}class s extends o{constructor(y,C,M){super(),this.varKind=y,this.name=C,this.rhs=M}render({es5:y,_n:C}){const M=y?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+C}optimizeNames(y,C){if(y[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,y,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(y,C,M){super(),this.lhs=y,this.rhs=C,this.sideEffects=M}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,C){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,y,C),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(y,this.rhs)}}class c extends a{constructor(y,C,M,I){super(y,M,I),this.op=C}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class l extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class u extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class d extends o{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class f extends o{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,C){return this.code=rt(this.code,y,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((C,M)=>C+M.render(y),"")}optimizeNodes(){const{nodes:y}=this;let C=y.length;for(;C--;){const M=y[C].optimizeNodes();Array.isArray(M)?y.splice(C,1,...M):M?y[C]=M:y.splice(C,1)}return y.length>0?this:void 0}optimizeNames(y,C){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(y,C)||(lt(y,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((y,C)=>W(y,C.names),{})}}class p extends h{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class g extends h{}class v extends p{}v.kind="else";class b extends p{constructor(y,C){super(C),this.condition=y}render(y){let C=`if(${this.condition})`+super.render(y);return this.else&&(C+="else "+this.else.render(y)),C}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let C=this.else;if(C){const M=C.optimizeNodes();C=this.else=Array.isArray(M)?new v(M):M}if(C)return y===!1?C instanceof b?C:C.nodes:this.nodes.length?this:new b(xt(y),C instanceof b?[C]:C.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,C){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(y,C),!!(super.optimizeNames(y,C)||this.else))return this.condition=rt(this.condition,y,C),this}get names(){const y=super.names;return nt(y,this.condition),this.else&&W(y,this.else.names),y}}b.kind="if";class _ extends p{}_.kind="for";class m extends _{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,C){if(super.optimizeNames(y,C))return this.iteration=rt(this.iteration,y,C),this}get names(){return W(super.names,this.iteration.names)}}class S extends _{constructor(y,C,M,I){super(),this.varKind=y,this.name=C,this.from=M,this.to=I}render(y){const C=y.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${C} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(y)}get names(){const y=nt(super.names,this.from);return nt(y,this.to)}}class N extends _{constructor(y,C,M,I){super(),this.loop=y,this.varKind=C,this.name=M,this.iterable=I}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,C){if(super.optimizeNames(y,C))return this.iterable=rt(this.iterable,y,C),this}get names(){return W(super.names,this.iterable.names)}}class k extends p{constructor(y,C,M){super(),this.name=y,this.args=C,this.async=M}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}k.kind="func";class A extends h{render(y){return"return "+super.render(y)}}A.kind="return";class R extends p{render(y){let C="try"+super.render(y);return this.catch&&(C+=this.catch.render(y)),this.finally&&(C+=this.finally.render(y)),C}optimizeNodes(){var y,C;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(y,C){var M,I;return super.optimizeNames(y,C),(M=this.catch)===null||M===void 0||M.optimizeNames(y,C),(I=this.finally)===null||I===void 0||I.optimizeNames(y,C),this}get names(){const y=super.names;return this.catch&&W(y,this.catch.names),this.finally&&W(y,this.finally.names),y}}class z extends p{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}z.kind="catch";class B extends p{render(y){return"finally"+super.render(y)}}B.kind="finally";class Y{constructor(y,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
18
- `:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,C){const M=this._extScope.value(y,C);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(y,C){return this._extScope.getValue(y,C)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,C,M,I){const G=this._scope.toName(C);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(y,G,M)),G}const(y,C,M){return this._def(r.varKinds.const,y,C,M)}let(y,C,M){return this._def(r.varKinds.let,y,C,M)}var(y,C,M){return this._def(r.varKinds.var,y,C,M)}assign(y,C,M){return this._leafNode(new a(y,C,M))}add(y,C){return this._leafNode(new c(y,e.operators.ADD,C))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new f(y)),this}object(...y){const C=["{"];for(const[M,I]of y)C.length>1&&C.push(","),C.push(M),(M!==I||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,I));return C.push("}"),new t._Code(C)}if(y,C,M){if(this._blockNode(new b(y)),C&&M)this.code(C).else().code(M).endIf();else if(C)this.code(C).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new b(y))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(y,C){return this._blockNode(y),C&&this.code(C).endFor(),this}for(y,C){return this._for(new m(y),C)}forRange(y,C,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(y);return this._for(new S(G,q,C,M),()=>I(q))}forOf(y,C,M,I=r.varKinds.const){const G=this._scope.toName(y);if(this.opts.es5){const q=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(G,(0,t._)`${q}[${et}]`),M(G)})}return this._for(new N("of",I,G,C),()=>M(G))}forIn(y,C,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${C})`,M);const G=this._scope.toName(y);return this._for(new N("in",I,G,C),()=>M(G))}endFor(){return this._endBlockNode(_)}label(y){return this._leafNode(new l(y))}break(y){return this._leafNode(new u(y))}return(y){const C=new A;if(this._blockNode(C),this.code(y),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(y,C,M){if(!C&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new R;if(this._blockNode(I),this.code(y),C){const G=this.name("e");this._currNode=I.catch=new z(G),C(G)}return M&&(this._currNode=I.finally=new B,this.code(M)),this._endBlockNode(z,B)}throw(y){return this._leafNode(new d(y))}block(y,C){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(C),this}endBlock(y){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-C;if(M<0||y!==void 0&&M!==y)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${y} expected`);return this._nodes.length=C,this}func(y,C=t.nil,M,I){return this._blockNode(new k(y,C,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,C){const M=this._currNode;if(M instanceof y||C&&M instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${y.kind}/${C.kind}`:y.kind}"`)}_elseNode(y){const C=this._currNode;if(!(C instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const C=this._nodes;C[C.length-1]=y}}e.CodeGen=Y;function W($,y){for(const C in y)$[C]=($[C]||0)+(y[C]||0);return $}function nt($,y){return y instanceof t._CodeOrName?W($,y.names):$}function rt($,y,C){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((G,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?G.push(...q._items):G.push(q),G),[]));function M(G){const q=C[G.str];return q===void 0||y[G.str]!==1?G:(delete y[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&y[q.str]===1&&C[q.str]!==void 0)}}function lt($,y){for(const C in y)$[C]=($[C]||0)-(y[C]||0)}function xt($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${E($)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...$){return $.reduce(Ct)}e.and=$t;const st=T(e.operators.OR);function X(...$){return $.reduce(st)}e.or=X;function T($){return(y,C)=>y===t.nil?C:C===t.nil?y:(0,t._)`${E(y)} ${$} ${E(C)}`}function E($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(td);const Dk=qr(td),Ik=Mt({__proto__:null,default:Dk},[td]),pe=Lt(Ik);var nd={};(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=pe,r=Ys;function n(k){const A={};for(const R of k)A[R]=!0;return A}e.toHash=n;function i(k,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o(k,A),!s(A,k.self.RULES.all))}e.alwaysValidSchema=i;function o(k,A=k.schema){const{opts:R,self:z}=k;if(!R.strictSchema||typeof A=="boolean")return;const B=z.RULES.keywords;for(const Y in A)B[Y]||N(k,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function s(k,A){if(typeof k=="boolean")return!k;for(const R in k)if(A[R])return!0;return!1}e.schemaHasRules=s;function a(k,A){if(typeof k=="boolean")return!k;for(const R in k)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:k,schemaPath:A},R,z,B){if(!B){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${k}${A}${(0,t.getProperty)(z)}`}e.schemaRefOrVal=c;function l(k){return f(decodeURIComponent(k))}e.unescapeFragment=l;function u(k){return encodeURIComponent(d(k))}e.escapeFragment=u;function d(k){return typeof k=="number"?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h(k,A){if(Array.isArray(k))for(const R of k)A(R);else A(k)}e.eachItem=h;function p({mergeNames:k,mergeToName:A,mergeValues:R,resultToName:z}){return(B,Y,W,nt)=>{const rt=W===void 0?Y:W instanceof t.Name?(Y instanceof t.Name?k(B,Y,W):A(B,Y,W),W):Y instanceof t.Name?(A(B,W,Y),Y):R(Y,W);return nt===t.Name&&!(rt instanceof t.Name)?z(B,rt):rt}}e.mergeEvaluated={props:p({mergeNames:(k,A,R)=>k.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{k.if((0,t._)`${A} === true`,()=>k.assign(R,!0),()=>k.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:(k,A,R)=>k.if((0,t._)`${R} !== true`,()=>{A===!0?k.assign(R,!0):(k.assign(R,(0,t._)`${R} || {}`),v(k,R,A))}),mergeValues:(k,A)=>k===!0?!0:{...k,...A},resultToName:g}),items:p({mergeNames:(k,A,R)=>k.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>k.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:(k,A,R)=>k.if((0,t._)`${R} !== true`,()=>k.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:(k,A)=>k===!0?!0:Math.max(k,A),resultToName:(k,A)=>k.var("items",A)})};function g(k,A){if(A===!0)return k.var("props",!0);const R=k.var("props",(0,t._)`{}`);return A!==void 0&&v(k,R,A),R}e.evaluatedPropsToName=g;function v(k,A,R){Object.keys(R).forEach(z=>k.assign((0,t._)`${A}${(0,t.getProperty)(z)}`,!0))}e.setEvaluated=v;const b={};function _(k,A){return k.scopeValue("func",{ref:A,code:b[A.code]||(b[A.code]=new r._Code(A.code))})}e.useFunc=_;var m;(function(k){k[k.Num=0]="Num",k[k.Str=1]="Str"})(m=e.Type||(e.Type={}));function S(k,A,R){if(k instanceof t.Name){const z=A===m.Num;return R?z?(0,t._)`"[" + ${k} + "]"`:(0,t._)`"['" + ${k} + "']"`:z?(0,t._)`"/" + ${k}`:(0,t._)`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)(k).toString():"/"+d(k)}e.getErrorPath=S;function N(k,A,R=k.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);k.self.logger.warn(A)}}e.checkStrictMode=N})(nd);const Fk=qr(nd),Mk=Mt({__proto__:null,default:Fk},[nd]),Pe=Lt(Mk);var id={};Object.defineProperty(id,"__esModule",{value:!0});const Or=pe,Lk={data:new Or.Name("data"),valCxt:new Or.Name("valCxt"),instancePath:new Or.Name("instancePath"),parentData:new Or.Name("parentData"),parentDataProperty:new Or.Name("parentDataProperty"),rootData:new Or.Name("rootData"),dynamicAnchors:new Or.Name("dynamicAnchors"),vErrors:new Or.Name("vErrors"),errors:new Or.Name("errors"),this:new Or.Name("this"),self:new Or.Name("self"),scope:new Or.Name("scope"),json:new Or.Name("json"),jsonPos:new Or.Name("jsonPos"),jsonLen:new Or.Name("jsonLen"),jsonPart:new Or.Name("jsonPart")};var Uk=id.default=Lk;const zk=Mt({__proto__:null,default:Uk},[id]),fi=Lt(zk);(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=pe,r=Pe,n=fi;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,_,m){const{it:S}=v,{gen:N,compositeRule:k,allErrors:A}=S,R=d(v,b,_);m??(k||A)?c(N,R):l(S,(0,t._)`[${R}]`)}e.reportError=i;function o(v,b=e.keywordError,_){const{it:m}=v,{gen:S,compositeRule:N,allErrors:k}=m,A=d(v,b,_);c(S,A),N||k||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:_,data:m,errsCount:S,it:N}){if(S===void 0)throw new Error("ajv implementation error");const k=v.name("err");v.forRange("i",S,n.default.errors,A=>{v.const(k,(0,t._)`${n.default.vErrors}[${A}]`),v.if((0,t._)`${k}.instancePath === undefined`,()=>v.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${b}`),N.opts.verbose&&(v.assign((0,t._)`${k}.schema`,_),v.assign((0,t._)`${k}.data`,m))})}e.extendErrors=a;function c(v,b){const _=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${n.default.vErrors}.push(${_})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:_,validateName:m,schemaEnv:S}=v;S.$async?_.throw((0,t._)`new ${v.ValidationError}(${b})`):(_.assign((0,t._)`${m}.errors`,b),_.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,b,_){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,b,_)}function f(v,b,_={}){const{gen:m,it:S}=v,N=[h(S,_),p(v,_)];return g(v,b,N),m.object(...N)}function h({errorPath:v},{instancePath:b}){const _=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,_)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:_,parentSchema:m}){let S=m?b:(0,t.str)`${b}/${v}`;return _&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(_,r.Type.Str)}`),[u.schemaPath,S]}function g(v,{params:b,message:_},m){const{keyword:S,data:N,schemaValue:k,it:A}=v,{opts:R,propertyName:z,topSchemaRef:B,schemaPath:Y}=A;m.push([u.keyword,S],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof _=="function"?_(v):_]),R.verbose&&m.push([u.schema,k],[u.parentSchema,(0,t._)`${B}${Y}`],[n.default.data,N]),z&&m.push([u.propertyName,z])}})(Zh);const Gk=qr(Zh),Vk=Mt({__proto__:null,default:Gk},[Zh]),Xs=Lt(Vk);Object.defineProperty(fo,"__esModule",{value:!0});var b1=fo.boolOrEmptySchema=w1=fo.topBoolOrEmptySchema=void 0;const Bk=Xs,Hk=pe,qk=fi,Kk={message:"boolean schema is false"};function Yk(e){const{gen:t,schema:r,validateName:n}=e;r===!1?x1(e,!1):typeof r=="object"&&r.$async===!0?t.return(qk.default.data):(t.assign((0,Hk._)`${n}.errors`,null),t.return(!0))}var w1=fo.topBoolOrEmptySchema=Yk;function Xk(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),x1(e)):r.var(t,!0)}b1=fo.boolOrEmptySchema=Xk;function x1(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,Bk.reportError)(i,Kk,void 0,t)}const Jk=Mt({__proto__:null,get boolOrEmptySchema(){return b1},default:fo,get topBoolOrEmptySchema(){return w1}},[fo]),Wk=Lt(Jk);var od={},po={};Object.defineProperty(po,"__esModule",{value:!0});var S1=po.getRules=$1=po.isJSONType=void 0;const Qk=["string","number","integer","boolean","null","object","array"],Zk=new Set(Qk);function tE(e){return typeof e=="string"&&Zk.has(e)}var $1=po.isJSONType=tE;function eE(){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:{}}}S1=po.getRules=eE;const rE=Mt({__proto__:null,default:po,get getRules(){return S1},get isJSONType(){return $1}},[po]),k1=Lt(rE);var pi={};Object.defineProperty(pi,"__esModule",{value:!0});var E1=pi.shouldUseRule=T1=pi.shouldUseGroup=C1=pi.schemaHasRulesForType=void 0;function nE({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&P1(e,n)}var C1=pi.schemaHasRulesForType=nE;function P1(e,t){return t.rules.some(r=>O1(e,r))}var T1=pi.shouldUseGroup=P1;function O1(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))}E1=pi.shouldUseRule=O1;const iE=Mt({__proto__:null,default:pi,get schemaHasRulesForType(){return C1},get shouldUseGroup(){return T1},get shouldUseRule(){return E1}},[pi]),A1=Lt(iE);(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=k1,r=A1,n=Xs,i=pe,o=Pe;var s;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(m){const S=c(m.type);if(S.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!S.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&S.push("null")}return S}e.getSchemaTypes=a;function c(m){const S=Array.isArray(m)?m:m?[m]:[];if(S.every(t.isJSONType))return S;throw new Error("type must be JSONType or JSONType[]: "+S.join(","))}e.getJSONTypes=c;function l(m,S){const{gen:N,data:k,opts:A}=m,R=d(S,A.coerceTypes),z=S.length>0&&!(R.length===0&&S.length===1&&(0,r.schemaHasRulesForType)(m,S[0]));if(z){const B=g(S,k,A.strictNumbers,s.Wrong);N.if(B,()=>{R.length?f(m,S,R):b(m)})}return z}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,S){return S?m.filter(N=>u.has(N)||S==="array"&&N==="array"):[]}function f(m,S,N){const{gen:k,data:A,opts:R}=m,z=k.let("dataType",(0,i._)`typeof ${A}`),B=k.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&k.if((0,i._)`${z} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>k.assign(A,(0,i._)`${A}[0]`).assign(z,(0,i._)`typeof ${A}`).if(g(S,A,R.strictNumbers),()=>k.assign(B,A))),k.if((0,i._)`${B} !== undefined`);for(const W of N)(u.has(W)||W==="array"&&R.coerceTypes==="array")&&Y(W);k.else(),b(m),k.endIf(),k.if((0,i._)`${B} !== undefined`,()=>{k.assign(A,B),h(m,B)});function Y(W){switch(W){case"string":k.elseIf((0,i._)`${z} == "number" || ${z} == "boolean"`).assign(B,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(B,(0,i._)`""`);return;case"number":k.elseIf((0,i._)`${z} == "boolean" || ${A} === null
19
- || (${z} == "string" && ${A} && ${A} == +${A})`).assign(B,(0,i._)`+${A}`);return;case"integer":k.elseIf((0,i._)`${z} === "boolean" || ${A} === null
20
- || (${z} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(B,(0,i._)`+${A}`);return;case"boolean":k.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(B,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(B,!0);return;case"null":k.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),k.assign(B,null);return;case"array":k.elseIf((0,i._)`${z} === "string" || ${z} === "number"
21
- || ${z} === "boolean" || ${A} === null`).assign(B,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:S,parentDataProperty:N},k){m.if((0,i._)`${S} !== undefined`,()=>m.assign((0,i._)`${S}[${N}]`,k))}function p(m,S,N,k=s.Correct){const A=k===s.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${S} ${A} null`;case"array":R=(0,i._)`Array.isArray(${S})`;break;case"object":R=(0,i._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":R=z((0,i._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":R=z();break;default:return(0,i._)`typeof ${S} ${A} ${m}`}return k===s.Correct?R:(0,i.not)(R);function z(B=i.nil){return(0,i.and)((0,i._)`typeof ${S} == "number"`,B,N?(0,i._)`isFinite(${S})`:i.nil)}}e.checkDataType=p;function g(m,S,N,k){if(m.length===1)return p(m[0],S,N,k);let A;const R=(0,o.toHash)(m);if(R.array&&R.object){const z=(0,i._)`typeof ${S} != "object"`;A=R.null?z:(0,i._)`!${S} || ${z}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const z in R)A=(0,i.and)(A,p(z,S,N,k));return A}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:S})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${S}}`};function b(m){const S=_(m);(0,n.reportError)(S,v)}e.reportTypeError=b;function _(m){const{gen:S,data:N,schema:k}=m,A=(0,o.schemaRefOrVal)(m,k,"type");return{gen:S,keyword:"type",data:N,schema:k.type,schemaCode:A,schemaValue:A,parentSchema:k,params:{},it:m}}})(od);const oE=qr(od),sE=Mt({__proto__:null,default:oE},[od]),wc=Lt(sE);var Js={};Object.defineProperty(Js,"__esModule",{value:!0});var N1=Js.assignDefaults=void 0;const rs=pe,aE=Pe;function lE(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)R1(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>R1(e,o,i.default))}N1=Js.assignDefaults=lE;function R1(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,rs._)`${o}${(0,rs.getProperty)(t)}`;if(i){(0,aE.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,rs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,rs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,rs._)`${a} = ${(0,rs.stringify)(r)}`)}const cE=Mt({__proto__:null,get assignDefaults(){return N1},default:Js},[Js]),uE=Lt(cE);var Tn={},je={};Object.defineProperty(je,"__esModule",{value:!0});var j1=je.validateUnion=Y1=je.validateArray=K1=je.usePattern=q1=je.callValidateCode=H1=je.schemaProperties=B1=je.allSchemaProperties=G1=je.noPropertyInData=z1=je.propertyInData=U1=je.isOwnProperty=L1=je.hasPropFunc=F1=je.reportMissingProp=I1=je.checkMissingProp=D1=je.checkReportMissingProp=void 0;const Ye=pe,sd=Pe,Ui=fi,hE=Pe;function dE(e,t){const{gen:r,data:n,it:i}=e;r.if(ld(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ye._)`${t}`},!0),e.error()})}var D1=je.checkReportMissingProp=dE;function fE({gen:e,data:t,it:{opts:r}},n,i){return(0,Ye.or)(...n.map(o=>(0,Ye.and)(ld(e,t,o,r.ownProperties),(0,Ye._)`${i} = ${o}`)))}var I1=je.checkMissingProp=fE;function pE(e,t){e.setParams({missingProperty:t},!0),e.error()}var F1=je.reportMissingProp=pE;function M1(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ye._)`Object.prototype.hasOwnProperty`})}var L1=je.hasPropFunc=M1;function ad(e,t,r){return(0,Ye._)`${M1(e)}.call(${t}, ${r})`}var U1=je.isOwnProperty=ad;function mE(e,t,r,n){const i=(0,Ye._)`${t}${(0,Ye.getProperty)(r)} !== undefined`;return n?(0,Ye._)`${i} && ${ad(e,t,r)}`:i}var z1=je.propertyInData=mE;function ld(e,t,r,n){const i=(0,Ye._)`${t}${(0,Ye.getProperty)(r)} === undefined`;return n?(0,Ye.or)(i,(0,Ye.not)(ad(e,t,r))):i}var G1=je.noPropertyInData=ld;function V1(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var B1=je.allSchemaProperties=V1;function gE(e,t){return V1(t).filter(r=>!(0,sd.alwaysValidSchema)(e,t[r]))}var H1=je.schemaProperties=gE;function vE({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,Ye._)`${e}, ${t}, ${n}${i}`:t,d=[[Ui.default.instancePath,(0,Ye.strConcat)(Ui.default.instancePath,o)],[Ui.default.parentData,s.parentData],[Ui.default.parentDataProperty,s.parentDataProperty],[Ui.default.rootData,Ui.default.rootData]];s.opts.dynamicRef&&d.push([Ui.default.dynamicAnchors,Ui.default.dynamicAnchors]);const f=(0,Ye._)`${u}, ${r.object(...d)}`;return c!==Ye.nil?(0,Ye._)`${a}.call(${c}, ${f})`:(0,Ye._)`${a}(${f})`}var q1=je.callValidateCode=vE;const yE=(0,Ye._)`new RegExp`;function _E({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,Ye._)`${i.code==="new RegExp"?yE:(0,hE.useFunc)(e,i)}(${r}, ${n})`})}var K1=je.usePattern=_E;function bE(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,Ye._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:sd.Type.Num},o),t.if((0,Ye.not)(o),a)})}}var Y1=je.validateArray=bE;function wE(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,sd.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,Ye._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,Ye.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}j1=je.validateUnion=wE;const xE=Mt({__proto__:null,get allSchemaProperties(){return B1},get callValidateCode(){return q1},get checkMissingProp(){return I1},get checkReportMissingProp(){return D1},default:je,get hasPropFunc(){return L1},get isOwnProperty(){return U1},get noPropertyInData(){return G1},get propertyInData(){return z1},get reportMissingProp(){return F1},get schemaProperties(){return H1},get usePattern(){return K1},get validateArray(){return Y1},get validateUnion(){return j1}},[je]),On=Lt(xE);Object.defineProperty(Tn,"__esModule",{value:!0});var X1=Tn.validateKeywordUsage=tv=Tn.validSchemaType=W1=Tn.funcKeywordCode=J1=Tn.macroKeywordCode=void 0;const Fr=pe,mo=fi,SE=On,$E=Xs;function kE(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=Z1(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:Fr.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var J1=Tn.macroKeywordCode=kE;function EE(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;PE(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=Z1(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&&Q1(e),v(()=>e.error());else{const b=t.async?h():p();t.modifying&&Q1(e),v(()=>CE(e,b))}}function h(){const b=n.let("ruleErrs",null);return n.try(()=>g((0,Fr._)`await `),_=>n.assign(d,!1).if((0,Fr._)`${_} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Fr._)`${_}.errors`),()=>n.throw(_))),b}function p(){const b=(0,Fr._)`${u}.errors`;return n.assign(b,null),g(Fr.nil),b}function g(b=t.async?(0,Fr._)`await `:Fr.nil){const _=c.opts.passContext?mo.default.this:mo.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(d,(0,Fr._)`${b}${(0,SE.callValidateCode)(e,u,_,m)}`,t.modifying)}function v(b){var _;n.if((0,Fr.not)((_=t.valid)!==null&&_!==void 0?_:d),b)}}var W1=Tn.funcKeywordCode=EE;function Q1(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Fr._)`${n.parentData}[${n.parentDataProperty}]`))}function CE(e,t){const{gen:r}=e;r.if((0,Fr._)`Array.isArray(${t})`,()=>{r.assign(mo.default.vErrors,(0,Fr._)`${mo.default.vErrors} === null ? ${t} : ${mo.default.vErrors}.concat(${t})`).assign(mo.default.errors,(0,Fr._)`${mo.default.vErrors}.length`),(0,$E.extendErrors)(e)},()=>e.error())}function PE({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Z1(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,Fr.stringify)(r)})}function TE(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 tv=Tn.validSchemaType=TE;function OE({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}X1=Tn.validateKeywordUsage=OE;const AE=Mt({__proto__:null,default:Tn,get funcKeywordCode(){return W1},get macroKeywordCode(){return J1},get validSchemaType(){return tv},get validateKeywordUsage(){return X1}},[Tn]),NE=Lt(AE);var mi={};Object.defineProperty(mi,"__esModule",{value:!0});var ev=mi.extendSubschemaMode=iv=mi.extendSubschemaData=nv=mi.getSubschema=void 0;const Xn=pe,rv=Pe;function RE(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Xn._)`${e.schemaPath}${(0,Xn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Xn._)`${e.schemaPath}${(0,Xn.getProperty)(t)}${(0,Xn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,rv.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var nv=mi.getSubschema=RE;function jE(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=a.let("data",(0,Xn._)`${t.data}${(0,Xn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Xn.str)`${l}${(0,rv.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Xn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof Xn.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var iv=mi.extendSubschemaData=jE;function DE(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}ev=mi.extendSubschemaMode=DE;const IE=Mt({__proto__:null,default:mi,get extendSubschemaData(){return iv},get extendSubschemaMode(){return ev},get getSubschema(){return nv}},[mi]),FE=Lt(IE);var Mr={},ov=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const ME=qr(ov),LE=Mt({__proto__:null,default:ME},[ov]),sv=Lt(LE);var av={exports:{}},zi=av.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(){};xc(t,n,i,e,"",e)};zi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},zi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},zi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},zi.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 xc(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in zi.arrayKeywords)for(var f=0;f<d.length;f++)xc(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in zi.propsKeywords){if(d&&typeof d=="object")for(var h in d)xc(e,t,r,d[h],i+"/"+u+"/"+UE(h),o,i,u,n,h)}else(u in zi.keywords||e.allKeys&&!(u in zi.skipKeywords))&&xc(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function UE(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var lv=av.exports;const zE=qr(lv),GE=Mt({__proto__:null,default:zE},[lv]),VE=Lt(GE);Object.defineProperty(Mr,"__esModule",{value:!0});var cv=Mr.getSchemaRefs=vv=Mr.resolveUrl=gv=Mr.normalizeId=mv=Mr._getFullPath=fv=Mr.getFullPath=uv=Mr.inlineRef=void 0;const BE=Pe,HE=sv,qE=VE,KE=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function YE(e,t=!0){return typeof e=="boolean"?!0:t===!0?!cd(e):t?hv(e)<=t:!1}var uv=Mr.inlineRef=YE;const XE=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function cd(e){for(const t in e){if(XE.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(cd)||typeof r=="object"&&cd(r))return!0}return!1}function hv(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!KE.has(r)&&(typeof e[r]=="object"&&(0,BE.eachItem)(e[r],n=>t+=hv(n)),t===1/0)))return 1/0;return t}function dv(e,t="",r){r!==!1&&(t=ns(t));const n=e.parse(t);return pv(e,n)}var fv=Mr.getFullPath=dv;function pv(e,t){return e.serialize(t).split("#")[0]+"#"}var mv=Mr._getFullPath=pv;const JE=/#\/?$/;function ns(e){return e?e.replace(JE,""):""}var gv=Mr.normalizeId=ns;function WE(e,t,r){return r=ns(r),e.resolve(t,r)}var vv=Mr.resolveUrl=WE;const QE=/^[a-z_][-a-z0-9._]*$/i;function ZE(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=ns(e[r]||t),o={"":i},s=dv(n,i,!1),a={},c=new Set;return qE(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=s+f;let v=o[p];typeof d[r]=="string"&&(v=b.call(this,d[r])),_.call(this,d.$anchor),_.call(this,d.$dynamicAnchor),o[f]=v;function b(m){const S=this.opts.uriResolver.resolve;if(m=ns(v?S(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!==ns(g)&&(m[0]==="#"?(l(d,a[m],m),a[m]=d):this.refs[m]=g),m}function _(m){if(typeof m=="string"){if(!QE.test(m))throw new Error(`invalid anchor "${m}"`);b.call(this,`#${m}`)}}}),a;function l(d,f,h){if(f!==void 0&&!HE(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}cv=Mr.getSchemaRefs=ZE;const tC=Mt({__proto__:null,get _getFullPath(){return mv},default:Mr,get getFullPath(){return fv},get getSchemaRefs(){return cv},get inlineRef(){return uv},get normalizeId(){return gv},get resolveUrl(){return vv}},[Mr]),Sc=Lt(tC);Object.defineProperty(di,"__esModule",{value:!0});var yv=di.getData=Rv=di.KeywordCxt=wv=di.validateFunctionCode=void 0;const _v=Wk,bv=wc,ud=A1,$c=wc,eC=uE,Ws=NE,hd=FE,Kt=pe,ne=fi,rC=Sc,gi=Pe,Qs=Xs;function nC(e){if(kv(e)&&(Ev(e),$v(e))){sC(e);return}xv(e,()=>(0,_v.topBoolOrEmptySchema)(e))}var wv=di.validateFunctionCode=nC;function xv({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"; ${Sv(r,i)}`),oC(e,i),e.code(o)}):e.func(t,(0,Kt._)`${ne.default.data}, ${iC(i)}`,n.$async,()=>e.code(Sv(r,i)).code(o))}function iC(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 oC(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 sC(e){const{schema:t,opts:r,gen:n}=e;xv(e,()=>{r.$comment&&t.$comment&&Pv(e),hC(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&aC(e),Cv(e),pC(e)})}function aC(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 Sv(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 lC(e,t){if(kv(e)&&(Ev(e),$v(e))){cC(e,t);return}(0,_v.boolOrEmptySchema)(e,t)}function $v({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 kv(e){return typeof e.schema!="boolean"}function cC(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Pv(e),dC(e),fC(e);const o=n.const("_errs",ne.default.errors);Cv(e,o),n.var(t,(0,Kt._)`${o} === ${ne.default.errors}`)}function Ev(e){(0,gi.checkUnknownRules)(e),uC(e)}function Cv(e,t){if(e.opts.jtd)return Tv(e,[],!1,t);const r=(0,bv.getSchemaTypes)(e.schema),n=(0,bv.coerceAndCheckDataType)(e,r);Tv(e,r,!n,t)}function uC(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,gi.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function hC(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,gi.checkStrictMode)(e,"default is ignored in the schema root")}function dC(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,rC.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function fC(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Pv({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 s=(0,Kt.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Kt._)`${ne.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function pC(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&&mC(e),t.return((0,Kt._)`${ne.default.errors} === 0`))}function mC({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 Tv(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,gi.schemaHasRulesButRef)(o,u))){i.block(()=>jv(e,"$ref",u.all.$ref.definition));return}c.jtd||gC(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,ud.shouldUseGroup)(o,f)&&(f.type?(i.if((0,$c.checkDataType)(f.type,s,c.strictNumbers)),Ov(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,$c.reportTypeError)(e)),i.endIf()):Ov(e,f),a||i.if((0,Kt._)`${ne.default.errors} === ${n||0}`))}}function Ov(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,eC.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,ud.shouldUseRule)(n,o)&&jv(e,o.keyword,o.definition,t.type)})}function gC(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(vC(e,t),e.opts.allowUnionTypes||yC(e,t),_C(e,e.dataTypes))}function vC(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Av(e.dataTypes,r)||dd(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),wC(e,t)}}function yC(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&dd(e,"use allowUnionTypes to allow union type keyword")}function _C(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,ud.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>bC(t,s))&&dd(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function bC(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Av(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function wC(e,t){const r=[];for(const n of e.dataTypes)Av(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function dd(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,gi.checkStrictMode)(e,t,e.opts.strictTypes)}class Nv{constructor(t,r,n){if((0,Ws.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,gi.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",Dv(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ws.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?Qs.reportExtraError:Qs.reportError)(this,this.def.error,r)}$dataError(){(0,Qs.reportError)(this,this.def.$dataError||Qs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Qs.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:s}=this;n.if((0,Kt.or)((0,Kt._)`${i} === undefined`,r)),t!==Kt.nil&&n.assign(t,!0),(o.length||s.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)(s(),a());function s(){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,$c.checkDataTypes)(c,r,o.opts.strictNumbers,$c.DataType.Wrong)}`}return Kt.nil}function a(){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,hd.getSubschema)(this.it,t);(0,hd.extendSubschemaData)(n,this.it,t),(0,hd.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return lC(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=gi.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=gi.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 Rv=di.KeywordCxt=Nv;function jv(e,t,r,n){const i=new Nv(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ws.funcKeywordCode)(i,r):"macro"in r?(0,Ws.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ws.funcKeywordCode)(i,r)}const xC=/^\/(?:[^~]|~0|~1)*$/,SC=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Dv(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!xC.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ne.default.rootData}else{const l=SC.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,Kt._)`${o}${(0,Kt.getProperty)((0,gi.unescapeJsonPointer)(l))}`,s=(0,Kt._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}yv=di.getData=Dv;const $C=Mt({__proto__:null,get KeywordCxt(){return Rv},default:di,get getData(){return yv},get validateFunctionCode(){return wv}},[di]),Zs=Lt($C);var fd={};Object.defineProperty(fd,"__esModule",{value:!0});class kC extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}var EC=fd.default=kC;const CC=Mt({__proto__:null,default:EC},[fd]),pd=Lt(CC);var md={};Object.defineProperty(md,"__esModule",{value:!0});const gd=Sc;let PC=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,gd.resolveUrl)(t,r,n),this.missingSchema=(0,gd.normalizeId)((0,gd.getFullPath)(t,this.missingRef))}};var TC=md.default=PC;const OC=Mt({__proto__:null,default:TC},[md]),vd=Lt(OC);var sn={};Object.defineProperty(sn,"__esModule",{value:!0});var Iv=sn.resolveSchema=Gv=sn.getCompilingSchema=Uv=sn.resolveRef=Lv=sn.compileSchema=Mv=sn.SchemaEnv=void 0;const An=pe,AC=pd,go=fi,Nn=Sc,Fv=Pe,NC=Zs;let kc=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,Nn.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 Mv=sn.SchemaEnv=kc;function yd(e){const t=zv.call(this,e);if(t)return t;const r=(0,Nn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new An.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:AC.default,code:(0,An._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:go.default.data,parentData:go.default.parentData,parentDataProperty:go.default.parentDataProperty,dataNames:[go.default.data],dataPathArr:[An.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,An.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:An.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,An._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,NC.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const d=s.toString();u=`${s.scopeRefs(go.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${go.default.self}`,`${go.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:s._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof An.Name?void 0:h,items:p instanceof An.Name?void 0:p,dynamicProps:h instanceof An.Name,dynamicItems:p instanceof An.Name},f.source&&(f.source.evaluated=(0,An.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 Lv=sn.compileSchema=yd;function RC(e,t,r){var n;r=(0,Nn.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=IC.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new kc({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=jC.call(this,o)}var Uv=sn.resolveRef=RC;function jC(e){return(0,Nn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:yd.call(this,e)}function zv(e){for(const t of this._compilations)if(DC(t,e))return t}var Gv=sn.getCompilingSchema=zv;function DC(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function IC(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ec.call(this,e,t)}function Ec(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Nn._getFullPath)(this.opts.uriResolver,r);let i=(0,Nn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return _d.call(this,r,e);const o=(0,Nn.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=Ec.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:_d.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||yd.call(this,s),o===(0,Nn.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Nn.resolveUrl)(this.opts.uriResolver,i,l)),new kc({schema:a,schemaId:c,root:e,baseId:i})}return _d.call(this,r,s)}}Iv=sn.resolveSchema=Ec;const FC=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _d(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,Fv.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!FC.has(a)&&l&&(t=(0,Nn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Fv.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Nn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Ec.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new kc({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const MC=Mt({__proto__:null,get SchemaEnv(){return Mv},get compileSchema(){return Lv},default:sn,get getCompilingSchema(){return Gv},get resolveRef(){return Uv},get resolveSchema(){return Iv}},[sn]),bd=Lt(MC),LC="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",UC="Meta-schema for $data reference (JSON AnySchema extension proposal)",zC="object",GC=["$data"],VC={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},BC=!1,HC={$id:LC,description:UC,type:zC,required:GC,properties:VC,additionalProperties:BC};var wd={},xd={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)})(xk,function(r){function n(){for(var j=arguments.length,L=Array(j),U=0;U<j;U++)L[U]=arguments[U];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Q=L.length-1,Z=1;Z<Q;++Z)L[Z]=L[Z].slice(1,-1);return L[Q]=L[Q].slice(1),L.join("")}else return L[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 s(j){return j.toUpperCase()}function a(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,L){var U=j;if(L)for(var Q in L)U[Q]=L[Q];return U}function l(j){var L="[A-Za-z]",U="[0-9]",Q=n(U,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Dt=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(L,U,"[\\-\\.\\_\\~]",oe);i(L+n(L,U,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+U)+"|"+i("1"+U+U)+"|"+i("0?[1-9]"+U)+"|0?0?"+U),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Ee=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),hr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),fe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),Re=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),Be=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Ge=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),Se=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Ee,hr,fe,Re,Be,Ge,Se,ce].join("|")),He=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Ir=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Ir+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,U,"[\\+\\-\\.]"),"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,Dt),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+He+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(L,U){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var Dt=L[Symbol.iterator](),oe;!(Z=(oe=Dt.next()).done)&&(Q.push(oe.value),!(U&&Q.length===U));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&Dt.return&&Dt.return()}finally{if(yt)throw vt}}return Q}return function(L,U){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return j(L,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var L=0,U=Array(j.length);L<j.length;L++)U[L]=j[L];return U}else return Array.from(j)},p=2147483647,g=36,v=1,b=26,_=38,m=700,S=72,N=128,k="-",A=/^xn--/,R=/[^\0-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,B={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,W=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(B[j])}function lt(j,L){for(var U=[],Q=j.length;Q--;)U[Q]=L(j[Q]);return U}function xt(j,L){var U=j.split("@"),Q="";U.length>1&&(Q=U[0]+"@",j=U[1]),j=j.replace(z,".");var Z=j.split("."),yt=lt(Z,L).join(".");return Q+yt}function Ct(j){for(var L=[],U=0,Q=j.length;U<Q;){var Z=j.charCodeAt(U++);if(Z>=55296&&Z<=56319&&U<Q){var yt=j.charCodeAt(U++);(yt&64512)==56320?L.push(((Z&1023)<<10)+(yt&1023)+65536):(L.push(Z),U--)}else L.push(Z)}return L}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},st=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,L){return j+22+75*(j<26)-((L!=0)<<5)},T=function(j,L,U){var Q=0;for(j=U?W(j/m):j>>1,j+=W(j/L);j>Y*b>>1;Q+=g)j=W(j/Y);return W(Q+(Y+1)*j/(j+_))},E=function(j){var L=[],U=j.length,Q=0,Z=N,yt=S,vt=j.lastIndexOf(k);vt<0&&(vt=0);for(var Dt=0;Dt<vt;++Dt)j.charCodeAt(Dt)>=128&&rt("not-basic"),L.push(j.charCodeAt(Dt));for(var oe=vt>0?vt+1:0;oe<U;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=U&&rt("invalid-input");var Zt=st(j.charCodeAt(oe++));(Zt>=g||Zt>W((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+b?b:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>W(p/At)&&rt("overflow"),Ot*=At}var Xt=L.length+1;yt=T(Q-Ht,Xt,Ht==0),W(Q/Xt)>p-Z&&rt("overflow"),Z+=W(Q/Xt),Q%=Xt,L.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,L)},$=function(j){var L=[];j=Ct(j);var U=j.length,Q=N,Z=0,yt=S,vt=!0,Dt=!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&&L.push(nt(Ft))}}catch(kr){Dt=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(Dt)throw oe}}var Zt=L.length,kt=Zt;for(Zt&&L.push(k);kt<U;){var At=p,Xt=!0,Ee=!1,hr=void 0;try{for(var fe=j[Symbol.iterator](),Re;!(Xt=(Re=fe.next()).done);Xt=!0){var Be=Re.value;Be>=Q&&Be<At&&(At=Be)}}catch(kr){Ee=!0,hr=kr}finally{try{!Xt&&fe.return&&fe.return()}finally{if(Ee)throw hr}}var Ge=kt+1;At-Q>W((p-Z)/Ge)&&rt("overflow"),Z+=(At-Q)*Ge,Q=At;var Se=!0,ce=!1,Bt=void 0;try{for(var He=j[Symbol.iterator](),Ir;!(Se=(Ir=He.next()).done);Se=!0){var rn=Ir.value;if(rn<Q&&++Z>p&&rt("overflow"),rn==Q){for(var er=Z,tr=g;;tr+=g){var yr=tr<=yt?v:tr>=yt+b?b:tr-yt;if(er<yr)break;var kn=er-yr,En=g-yr;L.push(nt(X(yr+kn%En,0))),er=W(kn/En)}L.push(nt(X(er,0))),yt=T(Z,Ge,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!Se&&He.return&&He.return()}finally{if(ce)throw Bt}}++Z,++Q}return L.join("")},y=function(j){return xt(j,function(L){return A.test(L)?E(L.slice(4).toLowerCase()):L})},C=function(j){return xt(j,function(L){return R.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:$,toASCII:C,toUnicode:y},I={};function G(j){var L=j.charCodeAt(0),U=void 0;return L<16?U="%0"+L.toString(16).toUpperCase():L<128?U="%"+L.toString(16).toUpperCase():L<2048?U="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():U="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),U}function q(j){for(var L="",U=0,Q=j.length;U<Q;){var Z=parseInt(j.substr(U+1,2),16);if(Z<128)L+=String.fromCharCode(Z),U+=3;else if(Z>=194&&Z<224){if(Q-U>=6){var yt=parseInt(j.substr(U+4,2),16);L+=String.fromCharCode((Z&31)<<6|yt&63)}else L+=j.substr(U,6);U+=6}else if(Z>=224){if(Q-U>=9){var vt=parseInt(j.substr(U+4,2),16),Dt=parseInt(j.substr(U+7,2),16);L+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|Dt&63)}else L+=j.substr(U,9);U+=9}else L+=j.substr(U,3),U+=3}return L}function et(j,L){function U(Q){var Z=q(Q);return Z.match(L.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(L.PCT_ENCODED,U).toLowerCase().replace(L.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(L.PCT_ENCODED,U).replace(L.NOT_USERINFO,G).replace(L.PCT_ENCODED,s)),j.host!==void 0&&(j.host=String(j.host).replace(L.PCT_ENCODED,U).toLowerCase().replace(L.NOT_HOST,G).replace(L.PCT_ENCODED,s)),j.path!==void 0&&(j.path=String(j.path).replace(L.PCT_ENCODED,U).replace(j.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,G).replace(L.PCT_ENCODED,s)),j.query!==void 0&&(j.query=String(j.query).replace(L.PCT_ENCODED,U).replace(L.NOT_QUERY,G).replace(L.PCT_ENCODED,s)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(L.PCT_ENCODED,U).replace(L.NOT_FRAGMENT,G).replace(L.PCT_ENCODED,s)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,L){var U=j.match(L.IPV4ADDRESS)||[],Q=f(U,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,L){var U=j.match(L.IPV6ADDRESS)||[],Q=f(U,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),Dt=f(vt,2),oe=Dt[0],Ht=Dt[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=L.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Ee=0;Ee<kt;++Ee)Xt[Ee]=Ot[Ee]||Ft[At+Ee]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],L));var hr=Xt.reduce(function(Se,ce,Bt){if(!ce||ce==="0"){var He=Se[Se.length-1];He&&He.index+He.length===Bt?He.length++:Se.push({index:Bt,length:1})}return Se},[]),fe=hr.sort(function(Se,ce){return ce.length-Se.length})[0],Re=void 0;if(fe&&fe.length>1){var Be=Xt.slice(0,fe.index),Ge=Xt.slice(fe.index+fe.length);Re=Be.join(":")+"::"+Ge.join(":")}else Re=Xt.join(":");return yt&&(Re+="%"+yt),Re}else return j}var Ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U={},Q=L.iri!==!1?d:u;L.reference==="suffix"&&(j=(L.scheme?L.scheme+":":"")+"//"+j);var Z=j.match(Ut);if(Z){Pt?(U.scheme=Z[1],U.userinfo=Z[3],U.host=Z[4],U.port=parseInt(Z[5],10),U.path=Z[6]||"",U.query=Z[7],U.fragment=Z[8],isNaN(U.port)&&(U.port=Z[5])):(U.scheme=Z[1]||void 0,U.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,U.host=j.indexOf("//")!==-1?Z[4]:void 0,U.port=parseInt(Z[5],10),U.path=Z[6]||"",U.query=j.indexOf("?")!==-1?Z[7]:void 0,U.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(U.port)&&(U.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),U.host&&(U.host=Tt(ut(U.host,Q),Q)),U.scheme===void 0&&U.userinfo===void 0&&U.host===void 0&&U.port===void 0&&!U.path&&U.query===void 0?U.reference="same-document":U.scheme===void 0?U.reference="relative":U.fragment===void 0?U.reference="absolute":U.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==U.reference&&(U.error=U.error||"URI is not a "+L.reference+" reference.");var yt=I[(L.scheme||U.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(U.host&&(L.domainHost||yt&&yt.domainHost))try{U.host=M.toASCII(U.host.replace(Q.PCT_ENCODED,q).toLowerCase())}catch(vt){U.error=U.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(U,u)}else et(U,Q);yt&&yt.parse&&yt.parse(U,L)}else U.error=U.error||"URI can not be parsed.";return U}function qt(j,L){var U=L.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),U),U).replace(U.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=/^\.\.?\//,It=/^\/\.(\/|$)/,de=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var L=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(It))j=j.replace(It,"/");else if(j.match(de))j=j.replace(de,"/"),L.pop();else if(j==="."||j==="..")j="";else{var U=j.match(re);if(U){var Q=U[0];j=j.slice(Q.length),L.push(Q)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function Vt(j){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=L.iri?d:u,Q=[],Z=I[(L.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,L),j.host&&!U.IPV6ADDRESS.test(j.host)&&(L.domainHost||Z&&Z.domainHost))try{j.host=L.iri?M.toUnicode(j.host):M.toASCII(j.host.replace(U.PCT_ENCODED,q).toLowerCase())}catch(Dt){j.error=j.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Dt}et(j,U),L.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,L);if(yt!==void 0&&(L.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!L.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 Ie(j,L){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,U),U),L=Nt(Vt(L,U),U)),U=U||{},!U.tolerant&&L.scheme?(Z.scheme=L.scheme,Z.userinfo=L.userinfo,Z.host=L.host,Z.port=L.port,Z.path=he(L.path||""),Z.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(Z.userinfo=L.userinfo,Z.host=L.host,Z.port=L.port,Z.path=he(L.path||""),Z.query=L.query):(L.path?(L.path.charAt(0)==="/"?Z.path=he(L.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+L.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+L.path:Z.path=L.path,Z.path=he(Z.path)),Z.query=L.query):(Z.path=j.path,L.query!==void 0?Z.query=L.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=L.fragment,Z}function Fe(j,L,U){var Q=c({scheme:"null"},U);return Vt(Ie(Nt(j,Q),Nt(L,Q),Q,!0),Q)}function Ke(j,L){return typeof j=="string"?j=Vt(Nt(j,L),L):o(j)==="object"&&(j=Nt(Vt(j,L),L)),j}function pr(j,L,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Vt(j,U)),typeof L=="string"?L=Vt(Nt(L,U),U):o(L)==="object"&&(L=Vt(L,U)),j===L}function ur(j,L){return j&&j.toString().replace(!L||!L.iri?u.ESCAPE:d.ESCAPE,G)}function xe(j,L){return j&&j.toString().replace(!L||!L.iri?u.PCT_ENCODED:d.PCT_ENCODED,q)}var We={scheme:"http",domainHost:!0,parse:function(j,L){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,L){var U=String(j.scheme).toLowerCase()==="https";return(j.port===(U?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},Rr={scheme:"https",domainHost:We.domainHost,parse:We.parse,serialize:We.serialize};function jr(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,L){var U=j;return U.secure=jr(U),U.resourceName=(U.path||"/")+(U.query?"?"+U.query:""),U.path=void 0,U.query=void 0,U},serialize:function(j,L){if((j.port===(jr(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 U=j.resourceName.split("?"),Q=f(U,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}},Ze={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},Zr={},tn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",Br=i(i("%[EFef]"+be+"%"+be+be+"%"+be+be)+"|"+i("%[89A-Fa-f]"+be+"%"+be+be)+"|"+i("%"+be+be)),Tr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Bn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",dn=n(Bn,'[\\"\\\\]'),xn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(tn,"g"),Ne=new RegExp(Br,"g"),co=new RegExp(n("[^]",Tr,"[\\.]",'[\\"]',dn),"g"),en=new RegExp(n("[^]",tn,xn),"g"),fn=en;function $r(j){var L=q(j);return L.match(Dr)?L:j}var Sn={scheme:"mailto",parse:function(j,L){var U=j,Q=U.to=U.path?U.path.split(","):[];if(U.path=void 0,U.query){for(var Z=!1,yt={},vt=U.query.split("&"),Dt=0,oe=vt.length;Dt<oe;++Dt){var Ht=vt[Dt].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":U.subject=xe(Ht[1],L);break;case"body":U.body=xe(Ht[1],L);break;default:Z=!0,yt[xe(Ht[0],L)]=xe(Ht[1],L);break}}Z&&(U.headers=yt)}U.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=xe(Xt[0]),L.unicodeSupport)Xt[1]=xe(Xt[1],L).toLowerCase();else try{Xt[1]=M.toASCII(xe(Xt[1],L).toLowerCase())}catch(Ee){U.error=U.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ee}Q[kt]=Xt.join("@")}return U},serialize:function(j,L){var U=j,Q=a(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),Dt=vt.lastIndexOf("@"),oe=vt.slice(0,Dt).replace(Ne,$r).replace(Ne,s).replace(co,G),Ht=vt.slice(Dt+1);try{Ht=L.iri?M.toUnicode(Ht):M.toASCII(xe(Ht,L).toLowerCase())}catch(kt){U.error=U.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}U.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]!==Zr[Zt]&&Ft.push(Zt.replace(Ne,$r).replace(Ne,s).replace(en,G)+"="+Ot[Zt].replace(Ne,$r).replace(Ne,s).replace(fn,G));return Ft.length&&(U.query=Ft.join("&")),U}},pn=/^([^\:]+)\:(.*)/,Hr={scheme:"urn",parse:function(j,L){var U=j.path&&j.path.match(pn),Q=j;if(U){var Z=L.scheme||Q.scheme||"urn",yt=U[1].toLowerCase(),vt=U[2],Dt=Z+":"+(L.nid||yt),oe=I[Dt];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,L))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,L){var U=L.scheme||j.scheme||"urn",Q=j.nid,Z=U+":"+(L.nid||Q),yt=I[Z];yt&&(j=yt.serialize(j,L));var vt=j,Dt=j.nss;return vt.path=(Q||L.nid)+":"+Dt,vt}},Hn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,$n={scheme:"urn:uuid",parse:function(j,L){var U=j;return U.uuid=U.nss,U.nss=void 0,!L.tolerant&&(!U.uuid||!U.uuid.match(Hn))&&(U.error=U.error||"UUID is not valid."),U},serialize:function(j,L){var U=j;return U.nss=(j.uuid||"").toLowerCase(),U}};I[We.scheme]=We,I[Rr.scheme]=Rr,I[Sr.scheme]=Sr,I[Ze.scheme]=Ze,I[Sn.scheme]=Sn,I[Hr.scheme]=Hr,I[$n.scheme]=$n,r.SCHEMES=I,r.pctEncChar=G,r.pctDecChars=q,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Ie,r.resolve=Fe,r.normalize=Ke,r.equal=pr,r.escapeComponent=ur,r.unescapeComponent=xe,Object.defineProperty(r,"__esModule",{value:!0})})})(xd,xd.exports);var Vv=xd.exports;const qC=qr(Vv),KC=Mt({__proto__:null,default:qC},[Vv]),YC=Lt(KC);Object.defineProperty(wd,"__esModule",{value:!0});const Bv=YC;Bv.code='require("ajv/dist/runtime/uri").default';var XC=wd.default=Bv;const JC=Mt({__proto__:null,default:XC},[wd]),WC=Lt(JC);(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=Zs;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=pe;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=pd,i=vd,o=k1,s=bd,a=pe,c=Sc,l=wc,u=Pe,d=HC,f=WC,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."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function m(X){var T,E,$,y,C,M,I,G,q,et,it,ut,Tt,Ut,Pt,Nt,qt,Qt,It,de,re,he,Vt,Ie,Fe;const Ke=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,ur=pr===!0||pr===void 0?1:pr||0,xe=($=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&$!==void 0?$:h,We=(y=X.uriResolver)!==null&&y!==void 0?y:f.default;return{strictSchema:(M=(C=X.strictSchema)!==null&&C!==void 0?C:Ke)!==null&&M!==void 0?M:!0,strictNumbers:(G=(I=X.strictNumbers)!==null&&I!==void 0?I:Ke)!==null&&G!==void 0?G:!0,strictTypes:(et=(q=X.strictTypes)!==null&&q!==void 0?q:Ke)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Ke)!==null&&ut!==void 0?ut:"log",strictRequired:(Ut=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Ke)!==null&&Ut!==void 0?Ut:!1,code:X.code?{...X.code,optimize:ur,regExp:xe}:{optimize:ur,regExp:xe},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:_,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:_,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(It=X.inlineRefs)!==null&&It!==void 0?It:!0,schemaId:(de=X.schemaId)!==null&&de!==void 0?de:"$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:(Ie=X.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(Fe=X.int32range)!==null&&Fe!==void 0?Fe:!0,uriResolver:We}}class S{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:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:E,lines:$}),this.logger=W(T.logger);const y=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,b,T,"DEPRECATED","warn"),this._metaOpts=B.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&z.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:$}=this.opts;let y=d;$==="id"&&(y={...d},y.id=y.$id,delete y.$id),E&&T&&this.addMetaSchema(y,y[$],!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 $;if(typeof T=="string"){if($=this.getSchema(T),!$)throw new Error(`no schema with key or ref "${T}"`)}else $=this.compile(T);const y=$(E);return"$async"in $||(this.errors=$.errors),y}compile(T,E){const $=this._addSchema(T,E);return $.validate||this._compileSchemaEnv($)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return y.call(this,T,E);async function y(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||M.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await y.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return I.call(this,it),await G.call(this,it.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function G(et){const it=await q.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function q(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(T,E,$,y=this.opts.validateSchema){if(Array.isArray(T)){for(const M of T)this.addSchema(M,void 0,$,y);return this}let C;if(typeof T=="object"){const{schemaId:M}=this.opts;if(C=T[M],C!==void 0&&typeof C!="string")throw new Error(`schema ${M} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,$,E,y,!0),this}addMetaSchema(T,E,$=this.opts.validateSchema){return this.addSchema(T,E,!0,$),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let $;if($=T.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate($,T);if(!y&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return y}getSchema(T){let E;for(;typeof(E=k.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:$}=this.opts,y=new s.SchemaEnv({schema:{},schemaId:$});if(E=s.resolveSchema.call(this,y,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=k.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 $=T[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),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 $;if(typeof T=="string")$=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=$);else if(typeof T=="object"&&E===void 0){if(E=T,$=E.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,$,E),!E)return(0,u.eachItem)($,C=>lt.call(this,C)),this;Ct.call(this,E);const y={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)($,y.type.length===0?C=>lt.call(this,C,y):C=>y.type.forEach(M=>lt.call(this,C,y,M))),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 $ of E.rules){const y=$.rules.findIndex(C=>C.keyword===T);y>=0&&$.rules.splice(y,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:$="data"}={}){return!T||T.length===0?"No errors":T.map(y=>`${$}${y.instancePath} ${y.message}`).reduce((y,C)=>y+E+C)}$dataMetaSchema(T,E){const $=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const y of E){const C=y.split("/").slice(1);let M=T;for(const I of C)M=M[I];for(const I in $){const G=$[I];if(typeof G!="object")continue;const{$data:q}=G.definition,et=M[I];q&&et&&(M[I]=st(et))}}return T}_removeAllSchemas(T,E){for(const $ in T){const y=T[$];(!E||E.test($))&&(typeof y=="string"?delete T[$]:y&&!y.meta&&(this._cache.delete(y.schema),delete T[$]))}}_addSchema(T,E,$,y=this.opts.validateSchema,C=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof T=="object")M=T[I];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 G=this._cache.get(T);if(G!==void 0)return G;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,T,$);return G=new s.SchemaEnv({schema:T,schemaId:I,meta:E,baseId:$,localRefs:q}),this._cache.set(G.schema,G),C&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=G),y&&this.validateSchema(T,!0),G}_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):s.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{s.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=S,S.ValidationError=n.default,S.MissingRefError=i.default;function N(X,T,E,$="error"){for(const y in X){const C=y;C in T&&this.logger[$](`${E}: option ${y}. ${X[C]}`)}}function k(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 z(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 B(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function W(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,$=>{if(E.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!nt.test($))throw new Error(`Keyword ${$} 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 $;const y=T==null?void 0:T.post;if(E&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let M=y?C.post:C.rules.find(({type:G})=>G===E);if(M||(M={type:E,rules:[]},C.rules.push(M)),C.keywords[X]=!0,!T)return;const I={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,M,I,T.before):M.rules.push(I),C.all[X]=I,($=T.implements)===null||$===void 0||$.forEach(G=>this.addKeyword(G))}function xt(X,T,E){const $=X.rules.findIndex(y=>y.keyword===E);$>=0?X.rules.splice($,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=st(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function st(X){return{anyOf:[X,$t]}}})(Qh);const QC=qr(Qh),ZC=Mt({__proto__:null,default:QC},[Qh]),t6=Lt(ZC);var Sd={},$d={},kd={};Object.defineProperty(kd,"__esModule",{value:!0});const e6={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var r6=kd.default=e6;const n6=Mt({__proto__:null,default:r6},[kd]),i6=Lt(n6);var vo={};Object.defineProperty(vo,"__esModule",{value:!0});var Hv=vo.callRef=Xv=vo.getValidate=void 0;const o6=vd,qv=On,Kr=pe,is=fi,Kv=bd,Cc=Pe,s6={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=Kv.resolveRef.call(c,l,i,r);if(u===void 0)throw new o6.default(n.opts.uriResolver,i,r);if(u instanceof Kv.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return Pc(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return Pc(e,(0,Kr._)`${p}.validate`,l,l.$async)}function f(p){const g=Yv(e,p);Pc(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Kr.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Kr.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function Yv(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Kr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var Xv=vo.getValidate=Yv;function Pc(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?is.default.this:Kr.nil;n?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Kr._)`await ${(0,qv.callValidateCode)(e,t,l)}`),h(t),s||i.assign(p,!0)},g=>{i.if((0,Kr._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,qv.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,Kr._)`${p}.errors`;i.assign(is.default.vErrors,(0,Kr._)`${is.default.vErrors} === null ? ${g} : ${is.default.vErrors}.concat(${g})`),i.assign(is.default.errors,(0,Kr._)`${is.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=Cc.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,Kr._)`${p}.evaluated.props`);o.props=Cc.mergeEvaluated.props(i,b,o.props,Kr.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Cc.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,Kr._)`${p}.evaluated.items`);o.items=Cc.mergeEvaluated.items(i,b,o.items,Kr.Name)}}}Hv=vo.callRef=Pc;var a6=vo.default=s6;const l6=Mt({__proto__:null,get callRef(){return Hv},default:a6,get getValidate(){return Xv}},[vo]),c6=Lt(l6);Object.defineProperty($d,"__esModule",{value:!0});const u6=i6,h6=c6,d6=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",u6.default,h6.default];var f6=$d.default=d6;const p6=Mt({__proto__:null,default:f6},[$d]),m6=Lt(p6);var Ed={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const Tc=pe,Gi=Tc.operators,Oc={maximum:{okStr:"<=",ok:Gi.LTE,fail:Gi.GT},minimum:{okStr:">=",ok:Gi.GTE,fail:Gi.LT},exclusiveMaximum:{okStr:"<",ok:Gi.LT,fail:Gi.GTE},exclusiveMinimum:{okStr:">",ok:Gi.GT,fail:Gi.LTE}},g6={message:({keyword:e,schemaCode:t})=>(0,Tc.str)`must be ${Oc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Tc._)`{comparison: ${Oc[e].okStr}, limit: ${t}}`},v6={keyword:Object.keys(Oc),type:"number",schemaType:"number",$data:!0,error:g6,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Tc._)`${r} ${Oc[t].fail} ${n} || isNaN(${r})`)}};var y6=Cd.default=v6;const _6=Mt({__proto__:null,default:y6},[Cd]),b6=Lt(_6);var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});const ta=pe,w6={message:({schemaCode:e})=>(0,ta.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ta._)`{multipleOf: ${e}}`},x6={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:w6,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,ta._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ta._)`${s} !== parseInt(${s})`;e.fail$data((0,ta._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var S6=Pd.default=x6;const $6=Mt({__proto__:null,default:S6},[Pd]),k6=Lt($6);var Td={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});function Jv(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 E6=Od.default=Jv;Jv.code='require("ajv/dist/runtime/ucs2length").default';const C6=Mt({__proto__:null,default:E6},[Od]),P6=Lt(C6);Object.defineProperty(Td,"__esModule",{value:!0});const yo=pe,T6=Pe,O6=P6,A6={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,yo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,yo._)`{limit: ${e}}`},N6={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:A6,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?yo.operators.GT:yo.operators.LT,s=i.opts.unicode===!1?(0,yo._)`${r}.length`:(0,yo._)`${(0,T6.useFunc)(e.gen,O6.default)}(${r})`;e.fail$data((0,yo._)`${s} ${o} ${n}`)}};var R6=Td.default=N6;const j6=Mt({__proto__:null,default:R6},[Td]),D6=Lt(j6);var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});const I6=On,Ac=pe,F6={message:({schemaCode:e})=>(0,Ac.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ac._)`{pattern: ${e}}`},M6={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:F6,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Ac._)`(new RegExp(${i}, ${s}))`:(0,I6.usePattern)(e,n);e.fail$data((0,Ac._)`!${a}.test(${t})`)}};var L6=Ad.default=M6;const U6=Mt({__proto__:null,default:L6},[Ad]),z6=Lt(U6);var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});const ea=pe,G6={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,ea.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ea._)`{limit: ${e}}`},V6={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:G6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?ea.operators.GT:ea.operators.LT;e.fail$data((0,ea._)`Object.keys(${r}).length ${i} ${n}`)}};var B6=Nd.default=V6;const H6=Mt({__proto__:null,default:B6},[Nd]),q6=Lt(H6);var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});const ra=On,na=pe,K6=Pe,Y6={message:({params:{missingProperty:e}})=>(0,na.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,na._)`{missingProperty: ${e}}`},X6={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Y6,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const 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=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,K6.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(na.nil,d);else for(const h of r)(0,ra.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,ra.checkMissingProp)(e,r,h)),(0,ra.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,ra.noPropertyInData)(t,i,h,a.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,ra.propertyInData)(t,i,h,a.ownProperties)),t.if((0,na.not)(p),()=>{e.error(),t.break()})},na.nil)}}};var J6=Rd.default=X6;const W6=Mt({__proto__:null,default:J6},[Rd]),Q6=Lt(W6);var jd={};Object.defineProperty(jd,"__esModule",{value:!0});const ia=pe,Z6={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,ia.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ia._)`{limit: ${e}}`},tP={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Z6,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?ia.operators.GT:ia.operators.LT;e.fail$data((0,ia._)`${r}.length ${i} ${n}`)}};var eP=jd.default=tP;const rP=Mt({__proto__:null,default:eP},[jd]),nP=Lt(rP);var Dd={},Id={};Object.defineProperty(Id,"__esModule",{value:!0});const Wv=sv;Wv.code='require("ajv/dist/runtime/equal").default';var iP=Id.default=Wv;const oP=Mt({__proto__:null,default:iP},[Id]),Fd=Lt(oP);Object.defineProperty(Dd,"__esModule",{value:!0});const Md=wc,Er=pe,sP=Pe,aP=Fd,lP={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}}`},cP={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lP,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,Md.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Er._)`${s} === 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"),b=(0,Md.checkDataTypes)(l,v,a.opts.strictNumbers,Md.DataType.Wrong),_=t.const("indices",(0,Er._)`{}`);t.for((0,Er._)`;${p}--;`,()=>{t.let(v,(0,Er._)`${r}[${p}]`),t.if(b,(0,Er._)`continue`),l.length>1&&t.if((0,Er._)`typeof ${v} == "string"`,(0,Er._)`${v} += "_"`),t.if((0,Er._)`typeof ${_}[${v}] == "number"`,()=>{t.assign(g,(0,Er._)`${_}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Er._)`${_}[${v}] = ${p}`)})}function h(p,g){const v=(0,sP.useFunc)(t,aP.default),b=t.name("outer");t.label(b).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(b)})))}}};var uP=Dd.default=cP;const hP=Mt({__proto__:null,default:uP},[Dd]),dP=Lt(hP);var Ld={};Object.defineProperty(Ld,"__esModule",{value:!0});const Ud=pe,fP=Pe,pP=Fd,mP={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ud._)`{allowedValue: ${e}}`},gP={keyword:"const",$data:!0,error:mP,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Ud._)`!${(0,fP.useFunc)(t,pP.default)}(${r}, ${i})`):e.fail((0,Ud._)`${o} !== ${r}`)}};var vP=Ld.default=gP;const yP=Mt({__proto__:null,default:vP},[Ld]),_P=Lt(yP);var zd={};Object.defineProperty(zd,"__esModule",{value:!0});const oa=pe,bP=Pe,wP=Fd,xP={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,oa._)`{allowedValues: ${e}}`},SP={keyword:"enum",schemaType:"array",$data:!0,error:xP,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,bP.useFunc)(t,wP.default));let u;if(a||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,oa.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,oa._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,oa._)`${l()}(${r}, ${h}[${p}])`:(0,oa._)`${r} === ${g}`}}};var $P=zd.default=SP;const kP=Mt({__proto__:null,default:$P},[zd]),EP=Lt(kP);Object.defineProperty(Ed,"__esModule",{value:!0});const CP=b6,PP=k6,TP=D6,OP=z6,AP=q6,NP=Q6,RP=nP,jP=dP,DP=_P,IP=EP,FP=[CP.default,PP.default,TP.default,OP.default,AP.default,NP.default,RP.default,jP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},DP.default,IP.default];var MP=Ed.default=FP;const LP=Mt({__proto__:null,default:MP},[Ed]),UP=Lt(LP);var Gd={},sa={};Object.defineProperty(sa,"__esModule",{value:!0});var Qv=sa.validateAdditionalItems=void 0;const _o=pe,Vd=Pe,zP={message:({params:{len:e}})=>(0,_o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_o._)`{limit: ${e}}`},GP={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:zP,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Vd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zv(e,n)}};function Zv(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,_o._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,_o._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Vd.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,_o._)`${a} <= ${t.length}`);r.if((0,_o.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Vd.Type.Num},l),s.allErrors||r.if((0,_o.not)(l),()=>r.break())})}}Qv=sa.validateAdditionalItems=Zv;var VP=sa.default=GP;const BP=Mt({__proto__:null,default:VP,get validateAdditionalItems(){return Qv}},[sa]),ty=Lt(BP);var Bd={},aa={};Object.defineProperty(aa,"__esModule",{value:!0});var ey=aa.validateTuple=void 0;const ry=pe,Nc=Pe,HP=On,qP={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ny(e,"additionalItems",t);r.items=!0,!(0,Nc.alwaysValidSchema)(r,t)&&e.ok((0,HP.validateArray)(e))}};function ny(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Nc.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,ry._)`${o}.length`);r.forEach((d,f)=>{(0,Nc.alwaysValidSchema)(a,d)||(n.if((0,ry._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=a,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Nc.checkStrictMode)(a,v,f.strictTuples)}}}ey=aa.validateTuple=ny;var KP=aa.default=qP;const YP=Mt({__proto__:null,default:KP,get validateTuple(){return ey}},[aa]),iy=Lt(YP);Object.defineProperty(Bd,"__esModule",{value:!0});const XP=iy,JP={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,XP.validateTuple)(e,"items")};var WP=Bd.default=JP;const QP=Mt({__proto__:null,default:WP},[Bd]),ZP=Lt(QP);var Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});const oy=pe,t8=Pe,e8=On,r8=ty,n8={message:({params:{len:e}})=>(0,oy.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,oy._)`{limit: ${e}}`},i8={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:n8,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,t8.alwaysValidSchema)(n,t)&&(i?(0,r8.validateAdditionalItems)(e,i):e.ok((0,e8.validateArray)(e)))}};var o8=Hd.default=i8;const s8=Mt({__proto__:null,default:o8},[Hd]),a8=Lt(s8);var qd={};Object.defineProperty(qd,"__esModule",{value:!0});const gn=pe,Rc=Pe,l8={message:({params:{min:e,max:t}})=>t===void 0?(0,gn.str)`must contain at least ${e} valid item(s)`:(0,gn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,gn._)`{minContains: ${e}}`:(0,gn._)`{minContains: ${e}, maxContains: ${t}}`},c8={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:l8,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,gn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Rc.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Rc.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Rc.alwaysValidSchema)(o,r)){let g=(0,gn._)`${u} >= ${s}`;a!==void 0&&(g=(0,gn._)`${g} && ${u} <= ${a}`),e.pass(g);return}o.items=!0;const d=t.name("valid");a===void 0&&s===1?h(d,()=>t.if(d,()=>t.break())):s===0?(t.let(d,!0),a!==void 0&&t.if((0,gn._)`${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,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Rc.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,gn._)`${g}++`),a===void 0?t.if((0,gn._)`${g} >= ${s}`,()=>t.assign(d,!0).break()):(t.if((0,gn._)`${g} > ${a}`,()=>t.assign(d,!1).break()),s===1?t.assign(d,!0):t.if((0,gn._)`${g} >= ${s}`,()=>t.assign(d,!0)))}}};var u8=qd.default=c8;const h8=Mt({__proto__:null,default:u8},[qd]),d8=Lt(h8);var Kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=pe,r=Pe,n=On;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);s(c,l),a(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 s(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 b of g)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=s;function a(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=a,e.default=i})(Kd);const f8=qr(Kd),p8=Mt({__proto__:null,default:f8},[Kd]),m8=Lt(p8);var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});const sy=pe,g8=Pe,v8={message:"property name must be valid",params:({params:e})=>(0,sy._)`{propertyName: ${e.propertyName}}`},y8={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:v8,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,g8.alwaysValidSchema)(i,r))return;const o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,sy.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var _8=Yd.default=y8;const b8=Mt({__proto__:null,default:_8},[Yd]),w8=Lt(b8);var Xd={};Object.defineProperty(Xd,"__esModule",{value:!0});const jc=On,Rn=pe,x8=fi,Dc=Pe,S8={message:"must NOT have additional properties",params:({params:e})=>(0,Rn._)`{additionalProperty: ${e.additionalProperty}}`},$8={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:S8,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Dc.alwaysValidSchema)(s,r))return;const l=(0,jc.allSchemaProperties)(n.properties),u=(0,jc.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Rn._)`${o} === ${x8.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 b;if(l.length>8){const _=(0,Dc.schemaRefOrVal)(s,n.properties,"properties");b=(0,jc.isOwnProperty)(t,_,v)}else l.length?b=(0,Rn.or)(...l.map(_=>(0,Rn._)`${v} === ${_}`)):b=Rn.nil;return u.length&&(b=(0,Rn.or)(b,...u.map(_=>(0,Rn._)`${(0,jc.usePattern)(e,_)}.test(${v})`))),(0,Rn.not)(b)}function h(v){t.code((0,Rn._)`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(),a||t.break();return}if(typeof r=="object"&&!(0,Dc.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(g(v,b,!1),t.if((0,Rn.not)(b),()=>{e.reset(),h(v)})):(g(v,b),a||t.if((0,Rn.not)(b),()=>t.break()))}}function g(v,b,_){const m={keyword:"additionalProperties",dataProp:v,dataPropType:Dc.Type.Str};_===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,b)}}};var k8=Xd.default=$8;const E8=Mt({__proto__:null,default:k8},[Xd]),ay=Lt(E8);var Jd={};Object.defineProperty(Jd,"__esModule",{value:!0});const C8=Zs,ly=On,Wd=Pe,cy=ay,P8={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&&cy.default.code(new C8.KeywordCxt(o,cy.default,"additionalProperties"));const s=(0,ly.allSchemaProperties)(r);for(const d of s)o.definedProperties.add(d);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Wd.mergeEvaluated.props(t,(0,Wd.toHash)(s),o.props));const a=s.filter(d=>!(0,Wd.alwaysValidSchema)(o,r[d]));if(a.length===0)return;const c=t.name("valid");for(const d of a)l(d)?u(d):(t.if((0,ly.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 T8=Jd.default=P8;const O8=Mt({__proto__:null,default:T8},[Jd]),A8=Lt(O8);var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});const uy=On,Ic=pe,hy=Pe,dy=Pe,N8={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,uy.allSchemaProperties)(r),c=a.filter(g=>(0,hy.alwaysValidSchema)(o,r[g]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof Ic.Name)&&(o.props=(0,dy.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of a)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,hy.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,Ic._)`${(0,uy.usePattern)(e,g)}.test(${v})`,()=>{const b=c.includes(g);b||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:dy.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,Ic._)`${d}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,Ic.not)(u),()=>t.break())})})}}};var R8=Qd.default=N8;const j8=Mt({__proto__:null,default:R8},[Qd]),D8=Lt(j8);var Zd={};Object.defineProperty(Zd,"__esModule",{value:!0});const I8=Pe,F8={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,I8.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 M8=Zd.default=F8;const L8=Mt({__proto__:null,default:M8},[Zd]),U8=Lt(L8);var tf={};Object.defineProperty(tf,"__esModule",{value:!0});const z8=On,G8={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:z8.validateUnion,error:{message:"must match a schema in anyOf"}};var V8=tf.default=G8;const B8=Mt({__proto__:null,default:V8},[tf]),H8=Lt(B8);var ef={};Object.defineProperty(ef,"__esModule",{value:!0});const Fc=pe,q8=Pe,K8={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Fc._)`{passingSchemas: ${e.passing}}`},Y8={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:K8,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,q8.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,Fc._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Fc._)`[${a}, ${d}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,d),f&&e.mergeEvaluated(f,Fc.Name)})})}}};var X8=ef.default=Y8;const J8=Mt({__proto__:null,default:X8},[ef]),W8=Lt(J8);var rf={};Object.defineProperty(rf,"__esModule",{value:!0});const Q8=Pe,Z8={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,Q8.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var tT=rf.default=Z8;const eT=Mt({__proto__:null,default:tT},[rf]),rT=Lt(eT);var nf={};Object.defineProperty(nf,"__esModule",{value:!0});const Mc=pe,fy=Pe,nT={message:({params:e})=>(0,Mc.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Mc._)`{failingKeyword: ${e.ifClause}}`},iT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:nT,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,fy.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=py(n,"then"),o=py(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Mc.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),d?t.assign(d,(0,Mc._)`${u}`):e.setParams({ifClause:u})}}}};function py(e,t){const r=e.schema[t];return r!==void 0&&!(0,fy.alwaysValidSchema)(e,r)}var oT=nf.default=iT;const sT=Mt({__proto__:null,default:oT},[nf]),aT=Lt(sT);var of={};Object.defineProperty(of,"__esModule",{value:!0});const lT=Pe,cT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,lT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var uT=of.default=cT;const hT=Mt({__proto__:null,default:uT},[of]),dT=Lt(hT);Object.defineProperty(Gd,"__esModule",{value:!0});const fT=ty,pT=ZP,mT=iy,gT=a8,vT=d8,yT=m8,_T=w8,bT=ay,wT=A8,xT=D8,ST=U8,$T=H8,kT=W8,ET=rT,CT=aT,PT=dT;function TT(e=!1){const t=[ST.default,$T.default,kT.default,ET.default,CT.default,PT.default,_T.default,bT.default,yT.default,wT.default,xT.default];return e?t.push(pT.default,gT.default):t.push(fT.default,mT.default),t.push(vT.default),t}var OT=Gd.default=TT;const AT=Mt({__proto__:null,default:OT},[Gd]),NT=Lt(AT);var sf={},af={};Object.defineProperty(af,"__esModule",{value:!0});const sr=pe,RT={message:({schemaCode:e})=>(0,sr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,sr._)`{format: ${e}}`},jT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:RT,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=a;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,sr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,sr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,sr._)`${g}.type || "string"`).assign(b,(0,sr._)`${g}.validate`),()=>r.assign(v,(0,sr._)`"string"`).assign(b,g)),e.fail$data((0,sr.or)(_(),m()));function _(){return c.strictSchema===!1?sr.nil:(0,sr._)`${s} && !${b}`}function m(){const S=u.$async?(0,sr._)`(${g}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,sr._)`${b}(${n})`,N=(0,sr._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${n}))`;return(0,sr._)`${b} && ${b} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.formats[o];if(!p){_();return}if(p===!0)return;const[g,v,b]=m(p);g===t&&e.pass(S());function _(){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 k=N instanceof RegExp?(0,sr.regexpCode)(N):c.code.formats?(0,sr._)`${c.code.formats}${(0,sr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:k});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,sr._)`${A}.validate`]:["string",N,A]}function S(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,sr._)`await ${b}(${n})`}return typeof v=="function"?(0,sr._)`${b}(${n})`:(0,sr._)`${b}.test(${n})`}}}};var DT=af.default=jT;const IT=Mt({__proto__:null,default:DT},[af]),FT=Lt(IT);Object.defineProperty(sf,"__esModule",{value:!0});const MT=FT,LT=[MT.default];var UT=sf.default=LT;const zT=Mt({__proto__:null,default:UT},[sf]),GT=Lt(zT);var bo={};Object.defineProperty(bo,"__esModule",{value:!0});var my=bo.contentVocabulary=gy=bo.metadataVocabulary=void 0,gy=bo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];my=bo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const VT=Mt({__proto__:null,get contentVocabulary(){return my},default:bo,get metadataVocabulary(){return gy}},[bo]),BT=Lt(VT);Object.defineProperty(Sd,"__esModule",{value:!0});const HT=m6,qT=UP,KT=NT,YT=GT,vy=BT,XT=[HT.default,qT.default,(0,KT.default)(),YT.default,vy.metadataVocabulary,vy.contentVocabulary];var JT=Sd.default=XT;const WT=Mt({__proto__:null,default:JT},[Sd]),QT=Lt(WT);var lf={},cf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(cf);const ZT=qr(cf),tO=Mt({__proto__:null,default:ZT},[cf]),eO=Lt(tO);Object.defineProperty(lf,"__esModule",{value:!0});const os=pe,uf=eO,yy=bd,rO=Pe,nO={message:({params:{discrError:e,tagName:t}})=>e===uf.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,os._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},iO={keyword:"discriminator",type:"object",schemaType:"object",error:nO,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,os._)`${r}${(0,os.getProperty)(a)}`);t.if((0,os._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:uf.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,os._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:uf.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,os.Name),p}function f(){var h;const p={},g=b(i);let v=!0;for(let S=0;S<s.length;S++){let N=s[S];N!=null&&N.$ref&&!(0,rO.schemaHasRulesButRef)(N,o.self.RULES)&&(N=yy.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof yy.SchemaEnv&&(N=N.schema));const k=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[a];if(typeof k!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||b(N)),_(k,S)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:S}){return Array.isArray(S)&&S.includes(a)}function _(S,N){if(S.const)m(S.const,N);else if(S.enum)for(const k of S.enum)m(k,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(S,N){if(typeof S!="string"||S in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[S]=N}}}};var oO=lf.default=iO;const sO=Mt({__proto__:null,default:oO},[lf]),aO=Lt(sO),lO="http://json-schema.org/draft-07/schema#",cO="http://json-schema.org/draft-07/schema#",uO="Core schema meta-schema",hO={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:[]}},dO=["object","boolean"],fO={$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:"#"}},pO={$schema:lO,$id:cO,title:uO,definitions:hO,type:dO,properties:fO,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=t6,n=QT,i=aO,o=pO,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Zs;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=pe;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=pd;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=vd;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Wh,Wh.exports);var _y=Wh.exports;const by=qr(_y),mO=Mt({__proto__:null,default:by},[_y]);var hf={exports:{}};const gO=Lt(mO);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=gO,n=pe,i=Ys,o=Zs,s=Xs,a=fi,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(b){const{gen:_,data:m,schema:S,schemaValue:N,it:k}=b;if(k.createErrors===!1)return;const A=S,R=n.strConcat(a.default.instancePath,k.errorPath);_.if(r._`${a.default.errors} > 0`,()=>{if(typeof A=="object"){const[$,y]=B(A);y&&Y(y),$&&W($),nt(z(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function z({properties:E,items:$}){const y={};if(E){y.props={};for(const C in E)y.props[C]=[]}if($){y.items={};for(let C=0;C<$.length;C++)y.items[C]=[]}return y}function B(E){let $,y;for(const C in E){if(C==="properties"||C==="items")continue;const M=E[C];if(typeof M=="object"){$||($={});const I=$[C]={};for(const G in M)I[G]=[]}else y||(y={}),y[C]=[]}return[$,y]}function Y(E){const $=_.const("emErrors",r.stringify(E)),y=_.const("templates",st(E,S));_.forOf("err",a.default.vErrors,G=>_.if(xt(G,$),()=>_.code(r._`${$}[${G}.keyword].push(${G})`).assign(r._`${G}.${l}`,!0)));const{singleError:C}=v;if(C){const G=_.let("message",r._`""`),q=_.let("paramsErrors",r._`[]`);M(et=>{_.if(G,()=>_.code(r._`${G} += ${typeof C=="string"?C:";"}`)),_.code(r._`${G} += ${I(et)}`),_.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(b,{message:I(G),params:r._`{errors: ${$}[${G}]}`}));function M(G){_.forIn("key",$,q=>_.if(r._`${$}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${y} ? ${y}[${G}]() : ${N}[${G}]`}}function W(E){const $=_.const("emErrors",r.stringify(E)),y=[];for(const q in E)y.push([q,st(E[q],S[q])]);const C=_.const("templates",_.object(...y)),M=_.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=_.let("emPropParams"),G=_.let("emParamsErrors");_.forOf("err",a.default.vErrors,q=>_.if(xt(q,$),()=>{_.assign(I,r._`${M}[${q}.keyword]`),_.assign(G,r._`${$}[${q}.keyword][${q}.params[${I}]]`),_.if(G,()=>_.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),_.forIn("key",$,q=>_.forIn("keyProp",r._`${$}[${q}]`,et=>{_.assign(G,r._`${$}[${q}][${et}]`),_.if(r._`${G}.length`,()=>{const it=_.const("tmpl",r._`${C}[${q}] && ${C}[${q}][${et}]`);s.reportError(b,{message:r._`${it} ? ${it}() : ${N}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function nt(E){const{props:$,items:y}=E;if(!$&&!y)return;const C=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=_.let("emErrors");let G,q;const et=_.let("templates");$&&y?(G=_.let("emChildKwd"),_.if(C),_.if(M,()=>{it(y,S.items),_.assign(G,r.str`items`)},()=>{it($,S.properties),_.assign(G,r.str`properties`)}),q=r._`[${G}]`):y?(_.if(M),it(y,S.items),q=r._`.items`):$&&(_.if(n.and(C,n.not(M))),it($,S.properties),q=r._`.properties`),_.forOf("err",a.default.vErrors,ut=>Ct(ut,I,Tt=>_.code(r._`${I}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),_.forIn("key",I,ut=>_.if(r._`${I}[${ut}].length`,()=>{s.reportError(b,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${q}[${ut}]`,params:r._`{errors: ${I}[${ut}]}`}),_.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),_.endIf();function it(ut,Tt){_.assign(I,r.stringify(ut)),_.assign(et,st(ut,Tt))}}function rt(E){const $=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,y=>_.if($t(y),()=>_.code(r._`${$}.push(${y})`).assign(r._`${y}.${l}`,!0))),_.if(r._`${$}.length`,()=>s.reportError(b,{message:X(E),params:r._`{errors: ${$}}`}))}function lt(){const E=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,$=>_.if(r._`!${$}.${l}`,()=>_.code(r._`${E}.push(${$})`))),_.assign(a.default.vErrors,E).assign(a.default.errors,r._`${E}.length`)}function xt(E,$){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${$}`,r._`${E}.schemaPath.indexOf(${k.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${k.errSchemaPath.length}))`)}function Ct(E,$,y){_.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=_.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=_.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),I=_.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);_.if(r._`${I} !== undefined && ${I} in ${$}`,()=>y(I))})}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(${k.errSchemaPath}) === 0`,r._`${E}.schemaPath[${k.errSchemaPath}.length] === "/"`)}function st(E,$){const y=[];for(const C in E){const M=$[C];d.test(M)&&y.push([C,T(M)])}return _.object(...y)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,($,y)=>`" + JSON.stringify(${o.getData(y,k)}) + "`).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,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=g,e.exports=g,e.exports.default=g})(hf,hf.exports);var vO=hf.exports;const yO=qr(vO),_O=new by({allErrors:!0});yO(_O);const wy=(e,t="image/svg+xml",r="utf-8")=>new Blob([e],{type:`${t};charset=${r}`}),bO=e=>new XMLSerializer().serializeToString(e),wO=(e,t="image/svg+xml",r="utf-8")=>wy(bO(e),t,r),xy=(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 Sy(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function $y(){const e=Sy();return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}}function xO(){const e=Sy();return{clientTop:e.clientTop,clientLeft:e.clientLeft,clientWidth:e.clientWidth,clientHeight:e.clientHeight}}function SO(){const{clientWidth:e,clientHeight:t}=xO();return{width:window.innerWidth||e,height:window.innerHeight||t}}function $O(e){const{top:t,left:r}=e.getBoundingClientRect(),n=$y();return{x:r+n.scrollLeft,y:t+n.scrollTop}}function kO(e){if(e.pageX&&e.pageY)return{x:e.pageX,y:e.pageY};const t=$y();return{x:e.clientX+t.scrollLeft,y:e.clientY+t.scrollTop}}function ky(e,t){const r=kO(t),n=$O(e);return{x:r.x-n.x,y:r.y-n.y}}function EO(){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}EO();function CO(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":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e};function ur(t){const e={matchIndex:-1,fullMatch:null,groupMatchs:[]};if(t){e.matchIndex=typeof t.index=="number"?t.index:-1;for(let n=0,s=t.length;n<s;n++)n==0?e.fullMatch=t[n]:e.groupMatchs.push(t[n])}return e}const $c=(t,e)=>{typeof t=="string"&&(t=lr(t)||new RegExp(t));const n=e.match(t);return ur(n)},dr=(t,e)=>{typeof t=="string"&&(t=lr(t)||new RegExp(t));const n=[],s=e.matchAll(t);for(const o of s)n.push(ur(o));return n};function vt(t,e){const n=t.length,s=e.length;for(let r=0;r<s;r++)t[r]=e[r];let o=Math.max(0,n-s);for(;o>0;)t.pop(),o--}function fr(t,e=12){return+t.toPrecision(e)}function Ic(t,e){let n=+new Date,s;return function(...o){const r=+new Date;r-n<e?(clearTimeout(s),s=setTimeout(()=>{n=r,t.apply(this,o)},e)):(clearTimeout(s),n=r,t.apply(this,o))}}var hr={exports:{}},We=typeof Reflect=="object"?Reflect:null,pr=We&&typeof We.apply=="function"?We.apply:function(e,n,s){return Function.prototype.apply.call(e,n,s)},Yt;We&&typeof We.ownKeys=="function"?Yt=We.ownKeys:Object.getOwnPropertySymbols?Yt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Yt=function(e){return Object.getOwnPropertyNames(e)};function Mc(t){console&&console.warn&&console.warn(t)}var mr=Number.isNaN||function(e){return e!==e};function D(){D.init.call(this)}hr.exports=D,hr.exports.once=Fc,D.EventEmitter=D,D.prototype._events=void 0,D.prototype._eventsCount=0,D.prototype._maxListeners=void 0;var gr=10;function Xt(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(D,"defaultMaxListeners",{enumerable:!0,get:function(){return gr},set:function(t){if(typeof t!="number"||t<0||mr(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");gr=t}}),D.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},D.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||mr(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 vr(t){return t._maxListeners===void 0?D.defaultMaxListeners:t._maxListeners}D.prototype.getMaxListeners=function(){return vr(this)},D.prototype.emit=function(e){for(var n=[],s=1;s<arguments.length;s++)n.push(arguments[s]);var o=e==="error",r=this._events;if(r!==void 0)o=o&&r.error===void 0;else if(!o)return!1;if(o){var i;if(n.length>0&&(i=n[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=r[e];if(c===void 0)return!1;if(typeof c=="function")pr(c,this,n);else for(var l=c.length,f=xr(c,l),s=0;s<l;++s)pr(f[s],this,n);return!0};function yr(t,e,n,s){var o,r,i;if(Xt(n),r=t._events,r===void 0?(r=t._events=Object.create(null),t._eventsCount=0):(r.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),r=t._events),i=r[e]),i===void 0)i=r[e]=n,++t._eventsCount;else if(typeof i=="function"?i=r[e]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),o=vr(t),o>0&&i.length>o&&!i.warned){i.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=i.length,Mc(a)}return t}D.prototype.addListener=function(e,n){return yr(this,e,n,!1)},D.prototype.on=D.prototype.addListener,D.prototype.prependListener=function(e,n){return yr(this,e,n,!0)};function Ac(){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 _r(t,e,n){var s={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=Ac.bind(s);return o.listener=n,s.wrapFn=o,o}D.prototype.once=function(e,n){return Xt(n),this.on(e,_r(this,e,n)),this},D.prototype.prependOnceListener=function(e,n){return Xt(n),this.prependListener(e,_r(this,e,n)),this},D.prototype.removeListener=function(e,n){var s,o,r,i,a;if(Xt(n),o=this._events,o===void 0)return this;if(s=o[e],s===void 0)return this;if(s===n||s.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,s.listener||n));else if(typeof s!="function"){for(r=-1,i=s.length-1;i>=0;i--)if(s[i]===n||s[i].listener===n){a=s[i].listener,r=i;break}if(r<0)return this;r===0?s.shift():Rc(s,r),s.length===1&&(o[e]=s[0]),o.removeListener!==void 0&&this.emit("removeListener",e,a||n)}return this},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(e){var n,s,o;if(s=this._events,s===void 0)return this;if(s.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):s[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete s[e]),this;if(arguments.length===0){var r=Object.keys(s),i;for(o=0;o<r.length;++o)i=r[o],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=s[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(e,n[o]);return this};function br(t,e,n){var s=t._events;if(s===void 0)return[];var o=s[e];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?Dc(o):xr(o,o.length)}D.prototype.listeners=function(e){return br(this,e,!0)},D.prototype.rawListeners=function(e){return br(this,e,!1)},D.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):wr.call(t,e)},D.prototype.listenerCount=wr;function wr(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}D.prototype.eventNames=function(){return this._eventsCount>0?Yt(this._events):[]};function xr(t,e){for(var n=new Array(e),s=0;s<e;++s)n[s]=t[s];return n}function Rc(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Dc(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function Fc(t,e){return new Promise(function(n,s){function o(i){t.removeListener(e,r),s(i)}function r(){typeof t.removeListener=="function"&&t.removeListener("error",o),n([].slice.call(arguments))}Cr(t,e,r,{once:!0}),e!=="error"&&jc(t,o,{once:!0})})}function jc(t,e,n){typeof t.on=="function"&&Cr(t,"error",e,n)}function Cr(t,e,n,s){if(typeof t.on=="function")s.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function o(r){s.once&&t.removeEventListener(e,o),n(r)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}function Er(){return document.compatMode=="BackCompat"?document.body:document.documentElement}function Sr(){const t=Er();return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight}}function Vc(){const t=Er();return{clientTop:t.clientTop,clientLeft:t.clientLeft,clientWidth:t.clientWidth,clientHeight:t.clientHeight}}function kr(){const{clientWidth:t,clientHeight:e}=Vc();return{width:t,height:e}}function zc(t){const{top:e,left:n}=t.getBoundingClientRect(),s=Sr();return{x:n+s.scrollLeft,y:e+s.scrollTop}}function Hc(t){if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const e=Sr();return{x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop}}function ge(t,e){const n=Hc(e),s=zc(t);return{x:n.x-s.x,y:n.y-s.y}}function Tr(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}function Bc(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}const s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}const Jn=Bc()!==-1;(()=>{const t=Tr();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!Tr().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{n.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Wc(t){var e=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=n;var s=100,o=function(){var r=Math.min(e.clientWidth,t);e.dataset.width=r,e.dataset.rem=s=Math.round(100*(r/t)),e.style.fontSize=s+"px"};o(),window.rem2px=function(r){return r=parseFloat(r),r*s},window.px2rem=function(r){return r=parseFloat(r),r/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",o,!1)}class O{static onDocumentReady(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,n){document.documentElement.style.setProperty(e,n)}static safeExec(e){const n=new Proxy(window,{get(s,o,r){if(typeof o=="string"&&["open","location","document"].includes(o))throw new Error(`禁止访问 key: ${o}`);return o==="window"?n:Reflect.get(s,o,r)},set(s,o,r,i){return Reflect.set(s,o,r,i)}});new Function("window",`with(window) { ${e} }`)(n,null)}static dom=new Proxy({},{get(e,n){return function(s={},...o){const r=document.createElement(n);for(const i of Object.keys(s))r.setAttribute(i,s[i]);for(const i of o)typeof i=="string"?r.appendChild(document.createTextNode(i)):r.appendChild(i);return r}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
25
38
  let output = "";
26
39
  function echo(html){
27
40
  output += html;
28
41
  }
29
- ${t}
42
+ ${e}
30
43
  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=SO().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 s of Object.keys(n))o.setAttribute(s,n[s]);for(const s of i)typeof s=="string"?o.appendChild(document.createTextNode(s)):o.appendChild(s);return o}}})),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 s="",a="",c="";if(!t||r<n||typeof t!="string")return s;const l=t.split(""),u=document.createElement("span");u.style.visibility="hidden",u.style.padding="0",u.style.whiteSpace="nowrap",u.style.overflow="visible",u.style.fontSize=n>12?n+"px":"12px",u.style.fontWeight=i.toString(),document.body.appendChild(u);for(let d=0,f=l.length;d<f;d++){const h=l[d];if(a=c,c+=h,s=c,u.innerText=c,u.offsetWidth>r){o?s=a+"...":s=a;break}}return document.body.removeChild(u),s}),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 vi(e,t=document){return new PO(e,t)}let PO=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(s=>{s.dispatchEvent(n)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(t,r){return"on"+r in t}static _fragment(t){const r=document.createElement("template");return r.innerHTML=t,r.content.childNodes.forEach(n=>{const i=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 s=0;s<o.length;s++)i.setAttribute(o[s].name,o[s].value);return i};return t.tagName=="SCRIPT"&&(t=r(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{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 s=br._fragment(r);i.push(...s.children),o[t](s)});else if(r instanceof HTMLElement)this.each(o=>{const s=n===1?r:br._fragment(r.outerHTML);i.push(...n===1?[r]:s.children),o[t](s)}),n>1&&r.remove();else if(r instanceof br){const o=n==1;r.each(s=>{this.each(a=>{const c=o?s:s.cloneNode(!0);i.push(c),a[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=s=>{if(n.indexOf(s)==-1&&n.push(s),!r&&s.parentElement)return i(s.parentElement)};this.nodes.forEach(s=>{s.parentElement&&i(s.parentElement)});const o=new 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(s=>s.trim())));return Object.assign(i,getComputedStyle.call(window,this.nodes[0])),i}}else{let n={};return typeof t=="string"&&r!==void 0?n[t]=r:typeof t=="object"&&(n=t),this.nodes.forEach(i=>{Object.keys(n).forEach(o=>{const s=String(n[o]).toLowerCase().includes("!important")?"important":"";i.style.setProperty(o,String(n[o]).replace(/!important/i,""),s)})}),this}}addClass(t){return this.toggleClass(t,!0)}removeClass(t){return this.toggleClass(t,!1)}toggleClass(t,r){const n=t.split(/[,\s]+/);return this.nodes.forEach(i=>{n.forEach(o=>{if(o.trim()!==""){let s="toggle";r!==void 0&&(s=r?"add":"remove"),i.classList[s](o.trim())}})}),this}hasClass(t){const r=t.split(/[,\s]+/);let n=!1;return this.nodes.forEach(i=>{n=n||r.every(o=>Array.from(i.classList??[]).includes(o.trim()))}),n}attr(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0].getAttribute(t);let n={};return typeof t=="object"?n=t:r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{i.setAttribute(o,s)})}),this}removeAttr(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{n.removeAttribute(i)})}),this}prop(t,r){if(r===void 0&&typeof t=="string")return this.nodes[0][t];{let n={};return typeof t=="object"?n=t:typeof t=="string"&&r!==void 0&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{const a=br._fixProp(o);i[a]=s,a=="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,s;if((o=n[i])!=null&&o.startsWith("[")||(s=n[i])!=null&&s.startsWith("{"))try{n[i]=JSON.parse(n[i]??"")}catch{}}),typeof t=="string"?n[t]:n}else{let n={};return typeof t=="object"?n=t:typeof t=="string"&&(n[t]=r),this.nodes.forEach(i=>{Object.entries(n).forEach(([o,s])=>{s!=null?i.dataset[o]=s instanceof Object?JSON.stringify(s):s:delete i.dataset[o]})}),this}}removeData(t){const r=t.split(/[,\s]+/);return this.nodes.forEach(n=>{r.forEach(i=>{delete n.dataset[i]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(t){return this.nodes.forEach(r=>{var s;const n=r.style.display,i=getComputedStyle(r).display,o=n=="none"||i=="none";if(o&&(t===void 0||t===!0)){const a=r instanceof HTMLTableRowElement?"table-row":r instanceof HTMLTableCellElement?"table-cell":"block";r.style.display=((s=r._mQuery)==null?void 0:s.prevDisplay)??(n==i&&i!="none"?"":a),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 df(e){return e*Math.PI/180}function TO(e){return e*180/Math.PI}function OO(e,t,r,n){const i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function AO(e,t,r,n){const i=r-e,o=n-t;return Math.atan2(o,i)}function ff(e){return e[0]*e[0]+e[1]*e[1]}function Ey(e){const t=Math.sqrt(ff(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}let Cy=class Um{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 Um({x:Math.cos(t)*r,y:Math.sin(t)*r})}distanceTo(t){return OO(this.x,this.y,t.x,t.y)}angleTo(t){return AO(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,s=t.x-this.x,a=t.y-this.y;this.vx=s*o,this.vy=a*o,this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,r){const n=(r==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(s=>{const a=s.x-this.x,c=s.y-this.y,l=a*o,u=c*o;this.vx+=l,this.vy+=u}),this.vy+=n,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(t,r){const n=(r==null?void 0:r.gravity)??0,i=(r==null?void 0:r.friction)??.95,o=(r==null?void 0:r.spring)??.03,s=(r==null?void 0:r.springLength)??100,a=this.angleTo(t);this.nextFrameSpringTo(new Um({x:t.x-Math.cos(a)*s,y:t.y-Math.sin(a)*s}),{spring:o,friction:i,gravity:n})}},NO=class extends Cy{constructor(t){super(t);jt(this,"width");jt(this,"height");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}},la=class A$ extends Cy{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 A$({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 NO({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 s=Math.atan2(i,n),a=Math.sin(s),c=Math.cos(s),l={x:0,y:0},u=o(n,i,a,c,!0),d=o(this.vx,this.vy,a,c,!0),f=o(r.vx,r.vy,a,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,a,c,!1),b=o(u.x,u.y,a,c,!1);r.x=this.x+b.x,r.y=this.y+b.y,this.x=this.x+v.x,this.y=this.y+v.y;const _=o(d.x,d.y,a,c,!1),m=o(f.x,f.y,a,c,!1);this.vx=_.x,this.vy=_.y,r.vx=m.x,r.vy=m.y}function o(s,a,c,l,u=!1){return{x:u?s*l+a*c:s*l-a*c,y:u?a*l-s*c:a*l+s*c}}}nextFrameBounce(r){const n=r.left,i=r.top,o=r.right,s=r.bottom,a=(r==null?void 0:r.bounce)??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=a):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=a),this.y+this.radius>s?(this.y=s-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}};var pf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var RO={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"],s=r.createElement("div"),a="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 V;if(w)if(w.forEach)w.forEach(P,F);else if(w.length!==i)for(V=0;V<w.length;)P.call(F,w[V],V,w),V++;else for(V in w)w.hasOwnProperty(V)&&P.call(F,w[V],V,w)}function p(w,P,F){var V="DEPRECATED METHOD: "+P+`
36
- `+F+` AT
37
- `;return function(){var H=new Error("get-stack-trace"),J=H&&H.stack?H.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",tt=t.console&&(t.console.warn||t.console.log);return tt&&tt.call(t.console,V,J),w.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=function(w){if(w===i||w===null)throw new TypeError("Cannot convert undefined or null to object");for(var P=Object(w),F=1;F<arguments.length;F++){var V=arguments[F];if(V!==i&&V!==null)for(var H in V)V.hasOwnProperty(H)&&(P[H]=V[H])}return P}:g=Object.assign;var v=p(function(w,P,F){for(var V=Object.keys(P),H=0;H<V.length;)(!F||F&&w[V[H]]===i)&&(w[V[H]]=P[V[H]]),H++;return w},"extend","Use `assign`."),b=p(function(w,P){return v(w,P,!0)},"merge","Use `assign`.");function _(w,P,F){var V=P.prototype,H;H=w.prototype=Object.create(V),H.constructor=w,H._super=V,F&&g(H,F)}function m(w,P){return function(){return w.apply(P,arguments)}}function S(w,P){return typeof w==a?w.apply(P&&P[0]||i,P):w}function N(w,P){return w===i?P:w}function k(w,P,F){h(B(P),function(V){w.addEventListener(V,F,!1)})}function A(w,P,F){h(B(P),function(V){w.removeEventListener(V,F,!1)})}function R(w,P){for(;w;){if(w==P)return!0;w=w.parentNode}return!1}function z(w,P){return w.indexOf(P)>-1}function B(w){return w.trim().split(/\s+/g)}function Y(w,P,F){if(w.indexOf&&!F)return w.indexOf(P);for(var V=0;V<w.length;){if(F&&w[V][F]==P||!F&&w[V]===P)return V;V++}return-1}function W(w){return Array.prototype.slice.call(w,0)}function nt(w,P,F){for(var V=[],H=[],J=0;J<w.length;){var tt=w[J][P];Y(H,tt)<0&&V.push(w[J]),H[J]=tt,J++}return V=V.sort(function(ot,dt){return ot[P]>dt[P]}),V}function rt(w,P){for(var F,V,H=P[0].toUpperCase()+P.slice(1),J=0;J<o.length;){if(F=o[J],V=F?F+H:P,V in w)return V;J++}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,st="ontouchstart"in t,X=rt(t,"PointerEvent")!==i,T=st&&$t.test(navigator.userAgent),E="touch",$="pen",y="mouse",C="kinect",M=25,I=1,G=2,q=4,et=8,it=1,ut=2,Tt=4,Ut=8,Pt=16,Nt=ut|Tt,qt=Ut|Pt,Qt=Nt|qt,It=["x","y"],de=["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(V){S(w.options.enable,[w])&&F.handler(V)},this.init()}re.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(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=Hr:st?P=L:P=Br,new P(w,Vt)}function Vt(w,P,F){var V=F.pointers.length,H=F.changedPointers.length,J=P&I&&V-H===0,tt=P&(q|et)&&V-H===0;F.isFirst=!!J,F.isFinal=!!tt,J&&(w.session={}),F.eventType=P,Ie(w,F),w.emit("hammer.input",F),w.recognize(F),w.session.prevInput=F}function Ie(w,P){var F=w.session,V=P.pointers,H=V.length;F.firstInput||(F.firstInput=pr(P)),H>1&&!F.firstMultiple?F.firstMultiple=pr(P):H===1&&(F.firstMultiple=!1);var J=F.firstInput,tt=F.firstMultiple,ot=tt?tt.center:J.center,dt=P.center=ur(V);P.timeStamp=u(),P.deltaTime=P.timeStamp-J.timeStamp,P.angle=jr(ot,dt),P.distance=Rr(ot,dt),Fe(F,P),P.offsetDirection=We(P.deltaX,P.deltaY);var ct=xe(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?Ze(tt.pointers,V):1,P.rotation=tt?Sr(tt.pointers,V):0,P.maxPointers=F.prevInput?P.pointers.length>F.prevInput.maxPointers?P.pointers.length:F.prevInput.maxPointers:P.pointers.length,Ke(F,P);var at=w.element;R(P.srcEvent.target,at)&&(at=P.srcEvent.target),P.target=at}function Fe(w,P){var F=P.center,V=w.offsetDelta||{},H=w.prevDelta||{},J=w.prevInput||{};(P.eventType===I||J.eventType===q)&&(H=w.prevDelta={x:J.deltaX||0,y:J.deltaY||0},V=w.offsetDelta={x:F.x,y:F.y}),P.deltaX=H.x+(F.x-V.x),P.deltaY=H.y+(F.y-V.y)}function Ke(w,P){var F=w.lastInterval||P,V=P.timeStamp-F.timeStamp,H,J,tt,ot;if(P.eventType!=et&&(V>M||F.velocity===i)){var dt=P.deltaX-F.deltaX,ct=P.deltaY-F.deltaY,at=xe(V,dt,ct);J=at.x,tt=at.y,H=l(at.x)>l(at.y)?at.x:at.y,ot=We(dt,ct),w.lastInterval=P}else H=F.velocity,J=F.velocityX,tt=F.velocityY,ot=F.direction;P.velocity=H,P.velocityX=J,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:ur(P),deltaX:w.deltaX,deltaY:w.deltaY}}function ur(w){var P=w.length;if(P===1)return{x:c(w[0].clientX),y:c(w[0].clientY)};for(var F=0,V=0,H=0;H<P;)F+=w[H].clientX,V+=w[H].clientY,H++;return{x:c(F/P),y:c(V/P)}}function xe(w,P,F){return{x:P/w||0,y:F/w||0}}function We(w,P){return w===P?it:l(w)>=l(P)?w<0?ut:Tt:P<0?Ut:Pt}function Rr(w,P,F){F||(F=It);var V=P[F[0]]-w[F[0]],H=P[F[1]]-w[F[1]];return Math.sqrt(V*V+H*H)}function jr(w,P,F){F||(F=It);var V=P[F[0]]-w[F[0]],H=P[F[1]]-w[F[1]];return Math.atan2(H,V)*180/Math.PI}function Sr(w,P){return jr(P[1],P[0],de)+jr(w[1],w[0],de)}function Ze(w,P){return Rr(P[0],P[1],de)/Rr(w[0],w[1],de)}var Zr={mousedown:I,mousemove:G,mouseup:q},tn="mousedown",be="mousemove mouseup";function Br(){this.evEl=tn,this.evWin=be,this.pressed=!1,re.apply(this,arguments)}_(Br,re,{handler:function(w){var P=Zr[w.type];P&I&&w.button===0&&(this.pressed=!0),P&G&&w.which!==1&&(P=q),this.pressed&&(P&q&&(this.pressed=!1),this.callback(this.manager,P,{pointers:[w],changedPointers:[w],pointerType:y,srcEvent:w}))}});var Tr={pointerdown:I,pointermove:G,pointerup:q,pointercancel:et,pointerout:et},Bn={2:E,3:$,4:y,5:C},dn="pointerdown",xn="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dn="MSPointerDown",xn="MSPointerMove MSPointerUp MSPointerCancel");function Dr(){this.evEl=dn,this.evWin=xn,re.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}_(Dr,re,{handler:function(w){var P=this.store,F=!1,V=w.type.toLowerCase().replace("ms",""),H=Tr[V],J=Bn[w.pointerType]||w.pointerType,tt=J==E,ot=Y(P,w.pointerId,"pointerId");H&I&&(w.button===0||tt)?ot<0&&(P.push(w),ot=P.length-1):H&(q|et)&&(F=!0),!(ot<0)&&(P[ot]=w,this.callback(this.manager,H,{pointers:P,changedPointers:[w],pointerType:J,srcEvent:w}),F&&P.splice(ot,1))}});var Ne={touchstart:I,touchmove:G,touchend:q,touchcancel:et},co="touchstart",en="touchstart touchmove touchend touchcancel";function fn(){this.evTarget=co,this.evWin=en,this.started=!1,re.apply(this,arguments)}_(fn,re,{handler:function(w){var P=Ne[w.type];if(P===I&&(this.started=!0),!!this.started){var F=$r.call(this,w,P);P&(q|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=W(w.touches),V=W(w.changedTouches);return P&(q|et)&&(F=nt(F.concat(V),"identifier")),[F,V]}var Sn={touchstart:I,touchmove:G,touchend:q,touchcancel:et},pn="touchstart touchmove touchend touchcancel";function Hr(){this.evTarget=pn,this.targetIds={},re.apply(this,arguments)}_(Hr,re,{handler:function(w){var P=Sn[w.type],F=Hn.call(this,w,P);F&&this.callback(this.manager,P,{pointers:F[0],changedPointers:F[1],pointerType:E,srcEvent:w})}});function Hn(w,P){var F=W(w.touches),V=this.targetIds;if(P&(I|G)&&F.length===1)return V[F[0].identifier]=!0,[F,F];var H,J,tt=W(w.changedTouches),ot=[],dt=this.target;if(J=F.filter(function(ct){return R(ct.target,dt)}),P===I)for(H=0;H<J.length;)V[J[H].identifier]=!0,H++;for(H=0;H<tt.length;)V[tt[H].identifier]&&ot.push(tt[H]),P&(q|et)&&delete V[tt[H].identifier],H++;if(ot.length)return[nt(J.concat(ot),"identifier"),ot]}var $n=2500,j=25;function L(){re.apply(this,arguments);var w=m(this.handler,this);this.touch=new Hr(this.manager,w),this.mouse=new Br(this.manager,w),this.primaryTouch=null,this.lastTouches=[]}_(L,re,{handler:function(w,P,F){var V=F.pointerType==E,H=F.pointerType==y;if(!(H&&F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents)){if(V)U.call(this,P,F);else if(H&&Z.call(this,F))return;this.callback(w,P,F)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function U(w,P){w&I?(this.primaryTouch=P.changedPointers[0].identifier,Q.call(this,P)):w&(q|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 V=this.lastTouches,H=function(){var J=V.indexOf(F);J>-1&&V.splice(J,1)};setTimeout(H,$n)}}function Z(w){for(var P=w.srcEvent.clientX,F=w.srcEvent.clientY,V=0;V<this.lastTouches.length;V++){var H=this.lastTouches[V],J=Math.abs(P-H.x),tt=Math.abs(F-H.y);if(J<=j&&tt<=j)return!0}return!1}var yt=rt(s.style,"touchAction"),vt=yt!==i,Dt="compute",oe="auto",Ht="manipulation",Ot="none",Ft="pan-x",Zt="pan-y",kt=Ee();function At(w,P){this.manager=w,this.set(P)}At.prototype={set:function(w){w==Dt&&(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){S(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 V=this.actions,H=z(V,Ot)&&!kt[Ot],J=z(V,Zt)&&!kt[Zt],tt=z(V,Ft)&&!kt[Ft];if(H){var ot=w.pointers.length===1,dt=w.distance<2,ct=w.deltaTime<250;if(ot&&dt&&ct)return}if(!(tt&&J)&&(H||J&&F&Nt||tt&&F&qt))return this.preventSrc(P)},preventSrc:function(w){this.manager.session.prevented=!0,w.preventDefault()}};function Xt(w){if(z(w,Ot))return Ot;var P=z(w,Ft),F=z(w,Zt);return P&&F?Ot:P||F?P?Ft:Zt:z(w,Ht)?Ht:oe}function Ee(){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 hr=1,fe=2,Re=4,Be=8,Ge=Be,Se=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=hr,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=rn(w,this),P[w.id]||(P[w.id]=w,w.recognizeWith(this)),this},dropRecognizeWith:function(w){return f(w,"dropRecognizeWith",this)?this:(w=rn(w,this),delete this.simultaneous[w.id],this)},requireFailure:function(w){if(f(w,"requireFailure",this))return this;var P=this.requireFail;return w=rn(w,this),Y(P,w)===-1&&(P.push(w),w.requireFailure(this)),this},dropRequireFailure:function(w){if(f(w,"dropRequireFailure",this))return this;w=rn(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 V(H){P.manager.emit(H,w)}F<Be&&V(P.options.event+He(F)),V(P.options.event),w.additionalEvent&&V(w.additionalEvent),F>=Be&&V(P.options.event+He(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|hr)))return!1;w++}return!0},recognize:function(w){var P=g({},w);if(!S(this.options.enable,[this,P])){this.reset(),this.state=ce;return}this.state&(Ge|Se|ce)&&(this.state=hr),this.state=this.process(P),this.state&(fe|Re|Be|Se)&&this.tryEmit(P)},process:function(w){},getTouchAction:function(){},reset:function(){}};function He(w){return w&Se?"cancel":w&Be?"end":w&Re?"move":w&fe?"start":""}function Ir(w){return w==Pt?"down":w==Ut?"up":w==ut?"left":w==Tt?"right":""}function rn(w,P){var F=P.manager;return F?F.get(w):w}function er(){Bt.apply(this,arguments)}_(er,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,V=P&(fe|Re),H=this.attrTest(w);return V&&(F&et||!H)?P|Se:V||H?F&q?P|Be:P&fe?P|Re:fe:ce}});function tr(){er.apply(this,arguments),this.pX=null,this.pY=null}_(tr,er,{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,V=w.distance,H=w.direction,J=w.deltaX,tt=w.deltaY;return H&P.direction||(P.direction&Nt?(H=J===0?it:J<0?ut:Tt,F=J!=this.pX,V=Math.abs(w.deltaX)):(H=tt===0?it:tt<0?Ut:Pt,F=tt!=this.pY,V=Math.abs(w.deltaY))),w.direction=H,F&&V>P.threshold&&H&P.direction},attrTest:function(w){return er.prototype.attrTest.call(this,w)&&(this.state&fe||!(this.state&fe)&&this.directionTest(w))},emit:function(w){this.pX=w.deltaX,this.pY=w.deltaY;var P=Ir(w.direction);P&&(w.additionalEvent=this.options.event+P),this._super.emit.call(this,w)}});function yr(){er.apply(this,arguments)}_(yr,er,{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&fe)},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 kn(){Bt.apply(this,arguments),this._timer=null,this._input=null}_(kn,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,V=w.distance<P.threshold,H=w.deltaTime>P.time;if(this._input=w,!V||!F||w.eventType&(q|et)&&!H)this.reset();else if(w.eventType&I)this.reset(),this._timer=d(function(){this.state=Ge,this.tryEmit()},P.time,this);else if(w.eventType&q)return Ge;return ce},reset:function(){clearTimeout(this._timer)},emit:function(w){this.state===Ge&&(w&&w.eventType&q?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function En(){er.apply(this,arguments)}_(En,er,{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&fe)}});function kr(){er.apply(this,arguments)}_(kr,er,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|qt,pointers:1},getTouchAction:function(){return tr.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&q},emit:function(w){var P=Ir(w.offsetDirection);P&&this.manager.emit(this.options.event+P,w),this.manager.emit(this.options.event,w)}});function Cn(){Bt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}_(Cn,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,V=w.distance<P.threshold,H=w.deltaTime<P.time;if(this.reset(),w.eventType&I&&this.count===0)return this.failTimeout();if(V&&H&&F){if(w.eventType!=q)return this.failTimeout();var J=this.pTime?w.timeStamp-this.pTime<P.interval:!0,tt=!this.pCenter||Rr(this.pCenter,w.center)<P.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!tt||!J?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=Ge,this.tryEmit()},P.interval,this),fe):Ge}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==Ge&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function qn(w,P){return P=P||{},P.recognizers=N(P.recognizers,qn.defaults.preset),new Wo(w,P)}qn.VERSION="2.0.7",qn.defaults={domEvents:!1,touchAction:Dt,enable:!0,inputTarget:null,inputClass:null,preset:[[En,{enable:!1}],[yr,{enable:!1},["rotate"]],[kr,{direction:Nt}],[tr,{direction:Nt},["swipe"]],[Cn],[Cn,{event:"doubletap",taps:2},["tap"]],[kn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Jo=1,_r=2;function Wo(w,P){this.options=g({},qn.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),x(this,!0),h(this.options.recognizers,function(F){var V=this.add(new F[0](F[1]));F[2]&&V.recognizeWith(F[2]),F[3]&&V.requireFailure(F[3])},this)}Wo.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:Jo},recognize:function(w){var P=this.session;if(!P.stopped){this.touchAction.preventDefaults(w);var F,V=this.recognizers,H=P.curRecognizer;(!H||H&&H.state&Ge)&&(H=P.curRecognizer=null);for(var J=0;J<V.length;)F=V[J],P.stopped!==_r&&(!H||F==H||F.canRecognizeWith(H))?F.recognize(w):F.reset(),!H&&F.state&(fe|Re|Be)&&(H=P.curRecognizer=F),J++}},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(B(w),function(V){F[V]=F[V]||[],F[V].push(P)}),this}},off:function(w,P){if(w!==i){var F=this.handlers;return h(B(w),function(V){P?F[V]&&F[V].splice(Y(F[V],P),1):delete F[V]}),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 V=0;V<F.length;)F[V](P),V++}},destroy:function(){this.element&&x(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function x(w,P){var F=w.element;if(F.style){var V;h(w.options.cssProps,function(H,J){V=rt(F.style,J),P?(w.oldCssProps[V]=F.style[V],F.style[V]=H):F.style[V]=w.oldCssProps[V]||""}),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(qn,{INPUT_START:I,INPUT_MOVE:G,INPUT_END:q,INPUT_CANCEL:et,STATE_POSSIBLE:hr,STATE_BEGAN:fe,STATE_CHANGED:Re,STATE_ENDED:Be,STATE_RECOGNIZED:Ge,STATE_CANCELLED:Se,STATE_FAILED:ce,DIRECTION_NONE:it,DIRECTION_LEFT:ut,DIRECTION_RIGHT:Tt,DIRECTION_UP:Ut,DIRECTION_DOWN:Pt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:qt,DIRECTION_ALL:Qt,Manager:Wo,Input:re,TouchAction:At,TouchInput:Hr,MouseInput:Br,PointerEventInput:Dr,TouchMouseInput:L,SingleTouchInput:fn,Recognizer:Bt,AttrRecognizer:er,Tap:Cn,Pan:tr,Swipe:kr,Pinch:yr,Rotate:En,Press:kn,on:k,off:A,each:h,merge:b,extend:v,assign:g,inherit:_,bindFn:m,prefixed:rt});var D=typeof t<"u"?t:typeof self<"u"?self:{};D.Hammer=qn,e.exports?e.exports=qn:t[n]=qn})(window,document,"Hammer")})(RO);const Py=[1,0,0,1,0,0],Ty=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];let jn=class uh{constructor(t=Py){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(Py),this.matrix3d=this.toMatrix3D(),this}transformPoint(t,r,n=0,i=0){const o=t-n,s=r-i;return t=o*this.value[0]+s*this.value[2]+this.value[4],r=o*this.value[1]+s*this.value[3]+this.value[5],[t+n,r+i]}fromString(t){const r=yg("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 ss(r)}offset(t=0,r=0){return[t-this.value[4],r-this.value[5]]}clone(){return new uh(this.value)}multiply(t){const r=this.value;let n;t instanceof uh?n=t.value:n=t;const i=r[0]*n[0]+r[2]*n[1],o=r[1]*n[0]+r[3]*n[1],s=r[0]*n[2]+r[2]*n[3],a=r[1]*n[2]+r[3]*n[3],c=r[0]*n[4]+r[2]*n[5]+r[4],l=r[1]*n[4]+r[3]*n[5]+r[5];return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,this}inverse(){const t=new uh(this.value),r=t.value,n=1/(r[0]*r[3]-r[1]*r[2]),i=r[3]*n,o=-r[1]*n,s=-r[2]*n,a=r[0]*n,c=n*(r[2]*r[5]-r[3]*r[4]),l=n*(r[1]*r[4]-r[0]*r[5]);return r[0]=i,r[1]=o,r[2]=s,r[3]=a,r[4]=c,r[5]=l,t}translate(t,r){return this.matrix3d.translate(t,r,0),this.multiply([1,0,0,1,t,r])}translateTo(t,r){const n=this.offset(t,r);return this.translate(n[0],n[1])}translateX(t){return this.translate(t,0)}translateY(t){return this.translate(0,t)}translateZ(t){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,t)}translate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.translate(t,r,n)}rotate(t,r=0,n=0){const i=df(t),o=+Math.cos(i).toFixed(9),s=+Math.sin(i).toFixed(9);return this.multiply([o,s,-s,o,r,n]),this.translate(-r,-n),this}rotateX(t){return this._prev_rotatex=t,this.isEverTo3d=!0,this.matrix3d.rotate("x",t)}rotateXTo(t){return this.rotateX(t-this._prev_rotatex)}rotateY(t){return this._prev_rotatey=t,this.isEverTo3d=!0,this.matrix3d.rotate("y",t)}rotateYTo(t){return this.rotateY(t-this._prev_rotatey)}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",t)}rotate3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",r).rotate("z",n)}scale(t,r=t,n=0,i=0){return this.matrix3d.scale(t,r,1),this.translate(n,i),this.multiply([t,0,0,r,0,0]),this.translate(-n,-i),this}scaleTo(t,r=t){return this.scale(t/this.value[0],r/this.value[3]),this}scaleX(t){return this.scale(t,1)}scaleY(t){return this.scale(1,t)}scaleZ(t){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,t)}scale3d(t,r,n){return this.isEverTo3d=!0,this.matrix3d.scale(t,r,n)}skew(t,r=0){const n=t*Math.PI/180,i=r*Math.PI/180,o=Math.tan(n),s=Math.tan(i);return this.multiply([1,s,o,1,0,0])}skewX(t){return this.skew(t,0)}skewY(t){return this.skew(0,t)}skewZ(t){return this}skew3d(t,r,n){return this}split(){const t={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};t.dx=this.value[4],t.dy=this.value[5];const r=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];t.scalex=Math.sqrt(ff(r[0])),Ey(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(ff(r[1])),Ey(r[1]),t.shear/=t.scaley;const n=-r[0][1],i=r[1][1];return i<0?(t.rotate=TO(Math.acos(i)),n<0&&(t.rotate=360-t.rotate)):t.rotate=df(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=>bg(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 ss{constructor(t=Ty){jt(this,"value");this.value=Array.from(t)}unit(){return this.value=Array.from(Ty),this}fromString(t){const r=yg("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 jn(r)}multiplyMatrix(t){const r=this.value[0],n=this.value[1],i=this.value[2],o=this.value[3],s=this.value[4],a=this.value[5],c=this.value[6],l=this.value[7],u=this.value[8],d=this.value[9],f=this.value[10],h=this.value[11],p=this.value[12],g=this.value[13],v=this.value[14],b=this.value[15],_=t.value[0],m=t.value[1],S=t.value[2],N=t.value[3],k=_*r+m*s+S*u+N*p,A=_*n+m*a+S*d+N*g,R=_*i+m*c+S*f+N*v,z=_*o+m*l+S*h+N*b;return new jn([k,A,R,z,0,0])}multiply(t){const r=new jn([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new jn([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),i=new jn([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),o=new jn([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),s=this.multiplyMatrix(r),a=this.multiplyMatrix(n),c=this.multiplyMatrix(i),l=this.multiplyMatrix(o);return this.value[0]=s.value[0],this.value[1]=s.value[1],this.value[2]=s.value[2],this.value[3]=s.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=c.value[0],this.value[9]=c.value[1],this.value[10]=c.value[2],this.value[11]=c.value[3],this.value[12]=l.value[0],this.value[13]=l.value[1],this.value[14]=l.value[2],this.value[15]=l.value[3],this}translate(t=0,r=0,n=0){return this.multiply(new ss([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 ss([t,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1]))}rotate(t,r){const n=df(r),i=Math.sin,o=Math.cos;let s;switch(t){case"x":s=[1,0,0,0,0,o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1];break;case"y":s=[o(n),0,-i(n),0,0,1,0,0,i(n),0,o(n),0,0,0,0,1];break;case"z":s=[o(n),i(n),0,0,-i(n),o(n),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new ss(s))}toString(){return`matrix3d(${this.value.map(t=>bg(t,6)).join(",")})`}}function Lc(e){const t=new jn;return e.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(r,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let s=0,a=i.length;s<a;s++)i[s].trim()&&o.push(parseFloat(""+i[s]));switch(n.toLowerCase()){case"t":case"translate":t.translate(o[0],o[1]);break;case"translatex":t.translateX(o[0]);break;case"translatey":t.translateY(o[0]);break;case"translatez":t.translateZ(o[0]);break;case"translate3d":t.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":t.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":t.rotateX(o[0]);break;case"rotatey":t.rotateY(o[0]);break;case"rotatez":t.rotateZ(o[0]);break;case"rotate3d":t.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":t.scale(o[0],o[1]??o[0]);break;case"scalex":t.scaleX(o[0]);break;case"scaley":t.scaleY(o[0]);break;case"scalez":t.scaleZ(o[0]);break;case"scale3d":t.scale3d(o[0],o[1],o[2]);break;case"skew":t.skew(o[0],o[1]??0);break;case"skewx":t.skewX(o[0]);break;case"skewy":t.skewY(o[0]);break;case"skewz":t.skewZ(o[0]);break;case"skew3d":t.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":t.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]);break;case"matrix3d":t.matrix3d.multiply(new ss(o));break}return""}),t}function jO(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 mf={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},DO=/([astvzqmhlc])([^astvzqmhlc]*)/gi,IO=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function FO(e){const t=e.match(IO);return t?t.map(Number):[]}function gf(e){const t=[];return e.replace(DO,function(r,n,i){let o=n.toLowerCase();for(i=FO(i),o=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(i.length==mf[o])return i.unshift(n),t.push(i);if(i.length<mf[o])throw new Error("malformed path data");t.push([n].concat(i.splice(0,mf[o])))}}),t}function vf(e){var t=0,r=0,n=0,i=0;return e.map(function(o){o=o.slice();var s=o[0],a=s.toUpperCase();if(s!=a)switch(o[0]=a,s){case"a":o[6]+=n,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=n;break;default:for(var c=1;c<o.length;)o[c++]+=n,o[c++]+=i}switch(a){case"Z":n=t,i=r;break;case"H":n=o[1];break;case"V":i=o[1];break;case"M":n=t=o[1],i=r=o[2];break;default:n=o[o.length-2],i=o[o.length-1]}return o})}const ca=Math.PI*2;function Oy(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 MO(e,t,r,n,i,o,s,a,c,l){const u=l*(e-r)/2+c*(t-n)/2,d=-c*(e-r)/2+l*(t-n)/2,f=s*s,h=a*a,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 b=v*s/a*d,_=v*-a/s*u,m=l*b-c*_+(e+r)/2,S=c*b+l*_+(t+n)/2,N=(u-b)/s,k=(d-_)/a,A=(-u-b)/s,R=(-d-_)/a,z=Oy(1,0,N,k);let B=Oy(N,k,A,R);return o===0&&B>0&&(B-=ca),o===1&&B<0&&(B+=ca),[m,S,z,B]}function LO(e,t){const r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),s=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+s*r,s-o*r,o,s]}function UO(e,t,r,n,i,o,s,a,c){const l=Math.sin(c*ca/360),u=Math.cos(c*ca/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(s===0||a===0)return[];s=Math.abs(s),a=Math.abs(a);const h=d*d/(s*s)+f*f/(a*a);h>1&&(s*=Math.sqrt(h),a*=Math.sqrt(h));const p=MO(e,t,r,n,i,o,s,a,l,u),g=[];let v=p[2],b=p[3];const _=Math.max(Math.ceil(Math.abs(b)/(ca/4)),1);b/=_;for(let m=0;m<_;m++)g.push(LO(v,b)),v+=b;return g.map(m=>{for(let S=0;S<m.length;S+=2){let N=m[S+0],k=m[S+1];N*=s,k*=a;const A=u*N-l*k,R=l*N+u*k;m[S+0]=A+p[0],m[S+1]=R+p[1]}return m})}function yf(e){for(var t,r=[],n=0,i=0,o=0,s=0,a=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],s=h[2];break;case"A":var g=UO(l,u,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!g.length)continue;g=g.map(S=>{const[N,k,A,R,z,B,Y,W]=S;return{x1:A,y1:R,x2:z,y2:B,x:Y,y:W}});for(var v=0,b;v<g.length;v++)b=g[v],h=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],v<g.length-1&&r.push(h);break;case"S":var _=l,m=u;(t=="C"||t=="S")&&(_+=_-n,m+=m-i),h=["C",_,m,h[1],h[2],h[3],h[4]];break;case"T":t=="Q"||t=="T"?(a=l*2-a,c=u*2-c):(a=l,c=u),h=Ay(l,u,a,c,h[1],h[2]);break;case"Q":a=h[1],c=h[2],h=Ay(l,u,h[1],h[2],h[3],h[4]);break;case"L":h=Uc(l,u,h[1],h[2]);break;case"H":h=Uc(l,u,h[1],u);break;case"V":h=Uc(l,u,l,h[1]);break;case"Z":h=Uc(l,u,o,s);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 Uc(e,t,r,n){return["C",e,t,r,n,r,n]}function Ay(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 as(e){if(!(this instanceof as))return new as(e);this._path=zO(e)?e:gf(e),this._path=vf(this._path),this._path=VO(this._path),this._path=GO(this._path)}as.prototype.at=function(e,t){return this._walk(e,t).pos},as.prototype.length=function(){return this._walk(null).length},as.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=s(d,p),v=a(d,p);if(o+=_f(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),_=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:_}}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+=_f(r[0],r[1],g,v),r[0]=g,r[1]=v,typeof e=="number"&&o>=e){let b=(o-e)/(o-n[2]),_=[r[0]*(1-b)+n[0]*b,r[1]*(1-b)+n[1]*b];return{length:o,pos:_}}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+=_f(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 s(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 a(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 _f(e,t,r,n){let i=e-r,o=t-n;return Math.sqrt(i*i+o*o)}function GO(e){let t,r=0,n=0,i={S:{to:"C",x:3},T:{to:"Q",x:1}};for(let o=0,s=e.length;o<s;o++){let a=e[o],c=i[a[0]];c&&(a[0]=c.to,t&&(t[0]===c.to?(r=2*t[c.x+2]-t[c.x],n=2*t[c.x+3]-t[c.x+1]):(r=t[t.length-2],n=t[t.length-1])),a.splice(1,0,r,n)),t=a}return e}function VO(e){let t=[],r=["L",0,0],n;for(let i=0,o=e.length;i<o;i++){let s=e[i];switch(s[0]){case"M":r=["L",s[1],s[2]],t.push(s);break;case"Z":t.push(r);break;case"H":n=t[t.length-1]||["L",0,0],t.push(["L",s[1],n[n.length-1]]);break;case"V":n=t[t.length-1]||["L",0,0],t.push(["L",n[n.length-2],s[1]]);break;default:t.push(s)}}return t}const bf=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]=bf(e[r]));return t};function wf(e){const t=wf.ps=wf.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 ua(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:JO(e,t,r,n),vb:[e,t,r,n].join(" ")}}function Ny(e,t,r,n,i,o,s,a,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*s,g=u*t+d*3*c*n+l*3*c*c*o+h*a,v=e+2*c*(r-e)+f*(i-2*r+e),b=t+2*c*(n-t)+f*(o-2*n+t),_=r+2*c*(i-r)+f*(s-2*i+r),m=n+2*c*(o-n)+f*(a-2*o+n),S=l*e+c*r,N=l*t+c*n,k=l*i+c*s,A=l*o+c*a,R=90-Math.atan2(v-_,b-m)*180/Math.PI;return{x:p,y:g,m:{x:v,y:b},n:{x:_,y:m},start:{x:S,y:N},end:{x:k,y:A},alpha:R}}function Ry(e,t,r,n,i,o,s,a){Array.isArray(e)||(e=[e,t,r,n,i,o,s,a]);const c=Iy(...e);return ua(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function BO(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function HO(e,t){e=ua(e),t=ua(t);const{x:r,y:n,width:i,height:o}=e,{x:s,y:a,width:c,height:l}=t,u=r+i/2,d=n+o/2,f=s+c/2,h=a+l/2;return Math.abs(u-f)<=(i+c)/2||Math.abs(d-h)<=(o+l)/2}function jy(e,t,r,n,i){const o=-3*t+9*r-9*n+3*i,s=e*o+6*t-12*r+6*n;return e*s-3*t+3*r}function Dy(e,t,r,n,i,o,s,a,c){c==null&&(c=1),c=Math.max(0,Math.min(c,1));const l=c/2,u=12,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=jy(g,e,r,i,s),b=jy(g,t,n,o,a),_=v*v+b*b;h+=f[p]*Math.sqrt(_)}return l*h}function qO(e,t,r,n,i,o,s,a){if(Math.max(e,r)<Math.min(i,s)||Math.min(e,r)>Math.max(i,s)||Math.max(t,n)<Math.min(o,a)||Math.min(t,n)>Math.max(o,a))return;const c=(e*n-t*r)*(i-s)-(e-r)*(i*a-o*s),l=(e*n-t*r)*(o-a)-(t-n)*(i*a-o*s),u=(e-r)*(o-a)-(t-n)*(i-s);if(!u)return;const 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,s).toFixed(2))||h>Number(Math.max(i,s).toFixed(2))||p<Number(Math.min(t,n).toFixed(2))||p>Number(Math.max(t,n).toFixed(2))||p<Number(Math.min(o,a).toFixed(2))||p>Number(Math.max(o,a).toFixed(2))))return{x:d,y:f}}function KO(e,t,r){const n=Ry(e),i=Ry(t);if(!HO(n,i))return r?0:[];const o=Dy.apply(0,e),s=Dy.apply(0,t),a=Math.ceil(o/8),c=Math.ceil(s/8),l=[],u=[],d={};let f=r?0:[];for(let h=0;h<a+1;h++){const p=Ny.apply(0,e.concat(h/a));l.push({x:p.x,y:p.y,t:h/a})}for(let h=0;h<c+1;h++){const p=Ny.apply(0,t.concat(h/c));u.push({x:p.x,y:p.y,t:h/c})}for(let h=0;h<a;h++)for(let p=0;p<c;p++){const g=l[h],v=l[h+1],b=u[p],_=u[p+1],m=Math.abs(v.x-g.x)<.001?"y":"x",S=Math.abs(_.x-b.x)<.001?"y":"x",N=qO(g.x,g.y,v.x,v.y,b.x,b.y,_.x,_.y);if(N&&d[N.x.toFixed(4)]!==N.y.toFixed(4)){d[N.x.toFixed(4)]=N.y.toFixed(4);const k=g.t+Math.abs((N[m]-g[m])/(v[m]-g[m]))*(v.t-g.t),A=b.t+Math.abs((N[S]-b[S])/(_[S]-b[S]))*(_.t-b.t);k>=0&&k<=1&&A>=0&&A<=1&&(r?f++:f.push({x:N.x,y:N.y,t1:k,t2:A}))}}return f}function YO(e,t,r){let n,i,o,s,a,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=a=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,a,c,a,c],n=a,i=c);for(let b=0,_=t.length;b<_;b++){const m=t[b];if(m[0]==="M")o=l=m[1],s=u=m[2];else{m[0]==="C"?(f=[o,s].concat(m.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,l,u,l,u],o=l,s=u);const S=KO(d,f,r);if(r)h+=S;else{for(let N=0,k=S.length;N<k;N++)S[N].segment1=p,S[N].segment2=b,S[N].bez1=d,S[N].bez2=f;h=h.concat(S)}}}}}return h}function XO(e){const t=wf(e);if(t.bbox)return bf(t.bbox);if(!e)return ua();let r=0,n=0,i=[],o=[],s=[];for(let f=0,h=e.length;f<h;f++)if(s=e[f],s[0]==="M")r=s[1],n=s[2],i.push(r),o.push(n);else{const p=Iy(r,n,s[1],s[2],s[3],s[4],s[5],s[6]);i=i.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),r=s[5],n=s[6]}const a=Math.min.apply(0,i),c=Math.min.apply(0,o),l=Math.max.apply(0,i),u=Math.max.apply(0,o),d=ua(a,c,l-a,u-c);return t.bbox=bf(d),d}function JO(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 Iy(e,t,r,n,i,o,s,a){const c=[],l=[[],[]];let u,d,f,h,p,g,v,b;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*s,f=3*r-3*e):(d=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*a,f=3*n-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-f/d,h>0&&h<1&&c.push(h);continue}v=d*d-4*f*u,b=Math.sqrt(v),!(v<0)&&(p=(-d+b)/(2*u),p>0&&p<1&&c.push(p),g=(-d-b)/(2*u),g>0&&g<1&&c.push(g))}let _=c.length,m;const S=_;for(;_--;)h=c[_],m=1-h,l[0][_]=m*m*m*e+3*m*m*h*r+3*m*h*h*i+h*h*h*s,l[1][_]=m*m*m*t+3*m*m*h*n+3*m*h*h*o+h*h*h*a;return l[0][S]=e,l[1][S]=t,l[0][S+1]=s,l[1][S+1]=a,l[0].length=l[1].length=S+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 WO(e,t,r){const n=XO(e);return!(!BO(n,t,r)||YO(e,yf([["M",t,r],["H",n.x2+10]]),1)%2!==1)}const xf=new Map;function Fy(e){if(xf.has(e))return xf.get(e);const t=as(e);return xf.set(e,t),t}function My(e){const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",e),t}function QO(e,t){return sc?My(e).getTotalLength(t):Fy(e).length()}function ZO(e,t){if(sc)return My(e).getPointAtLength(t);{const r=Fy(e),[n,i]=r.at(t);return{x:n,y:i}}}let vn=null;function tA(e,t,r){if(sc){vn||(vn=document.createElement("canvas").getContext("2d"));const n=new Path2D(e);return vn.isPointInPath(n,t,r)}else return WO(e,t,r)}function eA(e,t,r,{lineWidth:n=1,lineCap:i="butt",lineJoin:o="miter"}){if(sc){if(vn||(vn=document.createElement("canvas").getContext("2d")),vn.isPointInStroke){vn.save(),vn.lineWidth=n,vn.lineCap=i,vn.lineJoin=o;const s=new Path2D(e),a=vn.isPointInStroke(s,t,r);return vn.restore(),a}}else return null}function rA(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 Ly={},Uy={exports:{}},zy;function nA(){return zy||(zy=1,function(e){(function(t){var r="0.4.0",n="hasOwnProperty",i=/[\.\/]/,o="*",s=function(){},a=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),b=0,_,m=[],S={},N=[];c=f,l=0;for(var k=0,A=v.length;k<A;k++)"zIndex"in v[k]&&(m.push(v[k].zIndex),v[k].zIndex<0&&(S[v[k].zIndex]=v[k]));for(m.sort(a);m[b]<0;)if(_=S[m[b++]],N.push(_.apply(h,g)),l)return l=p,N;for(k=0;k<A;k++)if(_=v[k],"zIndex"in _)if(_.zIndex==m[b]){if(N.push(_.apply(h,g)),l)return l=p,N;do if(b++,_=S[m[b]],_&&N.push(_.apply(h,g)),l)return l=p,N;while(_)}else S[_.zIndex]=_;else if(N.push(_.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,b,_,m,S,N,k,A=[p],R=[];for(_=0,m=h.length;_<m;_++){for(k=[],S=0,N=A.length;S<N;S++)for(p=A[S].n,v=[p[h[_]],p[o]],b=2;b--;)g=v[b],g&&(k.push(g),R=R.concat(g.f||[]));A=k}return R},d.on=function(f,h){for(var p=f.split(i),g=u,v=0,b=p.length;v<b;v++)g=g.n,!g[p[v]]&&(g[p[v]]={n:{}}),g=g[p[v]];for(g.f=g.f||[],v=0,b=g.f.length;v<b;v++)if(g.f[v]==h)return s;return g.f.push(h),function(_){+_==+_&&(h.zIndex=+_)}},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,b,_,m,S,N,k=[u];for(_=0,m=p.length;_<m;_++)for(S=0;S<k.length;S+=b.length-2){if(b=[S,1],g=k[S].n,p[_]!=o)g[p[_]]&&b.push(g[p[_]]);else for(v in g)g[n](v)&&b.push(g[v]);k.splice.apply(k,b)}for(_=0,m=k.length;_<m;_++)for(g=k[_];g.n;){if(h){if(g.f){for(S=0,N=g.f.length;S<N;S++)if(g.f[S]==h){g.f.splice(S,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(S=0,N=A.length;S<N;S++)if(A[S]==h){A.splice(S,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})(pf)}(Uy)),Uy.exports}(function(e){if(typeof rA=="function")var t=nA();(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=s,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 s(f,h){this.events=this.events||{},this.events[f]=this.events[f]||[],this.events[f].push(h)}function a(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,b=a(f,0);h<p;h++)g=v,v=b,b=a(f,h),this.raw+=v,n.call(this,v,b,g);this._beforeEnd=function(){n.call(this,"","",v)}}var l=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/,u=function(){for(var f in this.attr)this.attr.hasOwnProperty(f)&&this.event("attr",f,{value:this.attr[f],tagname:this.tagname,attr:this.attr})},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})()})(Ly);const Gy=an(Ly);function Sf(e,t,r,n,i,o){if(typeof i>"u"||typeof o>"u"){const s=e-r,a=t-n;return!s&&!a?0:(180+Math.atan2(-a,-s)*180/Math.PI+360)%360}else return Sf(e,t,i,o)-Sf(r,n,i,o)}const le=Gy.eve,iA=Gy.elemental,zc={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 $f(e,t,r){for(var n=(e+"").split(";"),i=/^\s+|\s+$/g,o,s=0,a=n.length;s<a;s++){var c=n[s].split(":");o=c[0].replace(i,"").replace(/[A-Z]/g,function(l){return"-"+l.toLowerCase()}),(!r||o in r)&&(t[o]=c[1].replace(i,""),r&&!r[o]&&(t[o]=parseFloat(t[o])))}}function oA(e){const t=iA(),r=[],n=[],i={};let o,s,a;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=Lc(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,$f(this.style,this,zc))}}),le.on("rappar.*.attr.style",function(u){var d=function(){$f(u,this,zc),le.unbind("rappar.*.attrend",d)};le.on("rappar.*.attrend",d),le.stop()}),le.on("rappar.*.attr.*",function(u,d){d in zc&&(this[d]=zc[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=Ok(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="",s=this,this["text-anchor"]=this["text-anchor"]||"start"}),le.on("elemental.text",function(u,d,f){s&&(o+=f)}),le.on("elemental./tag.text",function(){s.text=o,s=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){a={id:d.id,angle:+(360+Sf(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=[a.angle],d,f=0,h=a.stops.length;f<h;f++)d=a.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[a.id]=u.join("-"),le("rappar.found."+a.id,null,i[a.id])}),le.on("elemental.tag.radialGradient",function(u,d){a={id:d.id,stops:[]}}),le.on("elemental./tag.radialGradient",function(){for(var u=[],d,f=0,h=a.stops.length;f<h;f++)d=a.stops[f],f&&f!=h-1?u.push(d.color+":"+d.offset):u.push(d.color);i[a.id]="r"+u.join("-"),le("rappar.found."+a.id,null,i[a.id])}),le.on("elemental.tag.stop",function(u,d){var f={};d.style&&$f(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),a.stops.push(f)}),t(e),t.end(),r}const Vy=sA("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 sA(e,t=10){const r={},n=e.split(",");for(let i=0;i<n.length;i+=2){const o="&"+n[i+1]+";",s=parseInt(n[i],t);r[o]="&#"+s+";"}return r["\\xa0"]="&#160;",r}function Lr(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 Gc(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 aA(e){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[e]||t.start}function lA(e){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[e]||t.alphabetic}const ha={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 kf{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",Lr("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 By{constructor(t,r){jt(this,"__root");jt(this,"__ctx");this.__root=t,this.__ctx=r}}let cA=class zm{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(ha);for(let r=0,n=t.length;r<n;r++){const i=t[r];this[i]=ha[i].canvas}}__getStyleState(){const t={},r=Object.keys(ha);for(let n=0,i=r.length;n<i;n++){const o=r[n];t[o]=this[o]}return t}__applyStyleState(t){const r=Object.keys(t);for(let n=0,i=r.length;n<i;n++){const o=r[n];this[o]=t[o]}}__createElement(t,r={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),o=Object.keys(r);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let s=0;s<o.length;s++){const a=o[s];i.setAttribute(a,r[a])}return i}__applyStyleToCurrentElement(t){let r=this.__currentElement;const n=this.__currentElementsToStyle;n&&(r.setAttribute(t,""),r=n.element,n.children.forEach(o=>{o.setAttribute(t,"")}));const i=Object.keys(ha);for(let o=0;o<i.length;o++){const s=ha[i[o]],a=this[i[o]];if(s.apply){if(a instanceof By){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}r.setAttribute(s.apply,Lr("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof kf)r.setAttribute(s.apply,Lr("url(#{id})",{id:a.__root.getAttribute("id")}));else if(s.apply.indexOf(t)!==-1&&s.svg!==a)if((s.svgAttr==="stroke"||s.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);r.setAttribute(s.svgAttr,Lr("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let l=parseFloat(c[4]);const u=this.globalAlpha;u!=null&&(l*=u),r.setAttribute(s.svgAttr+"-opacity",""+l)}else{let c=s.svgAttr;if(i[o]==="globalAlpha"&&(c=t+"-"+s.svgAttr,r.getAttribute(c)))continue;c&&r.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let r=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(r)&&(r=r.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const n=Object.keys(Vy);for(let i=0,o=n.length;i<o;i++){const s=n[i],a=Vy[s],c=new RegExp(s,"gi");c.test(r)&&(r=r.replace(c,a))}}return r}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),r=this.__closestGroupOrSvg();this.__groupStack.push(r),r.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const r=this.__styleStack.pop();r&&this.__applyStyleState(r)}__addTransform(t){const r=this.__closestGroupOrSvg();if(r.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:r,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");r.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,r){r===void 0&&(r=t),this.__addTransform(Lr("scale({x},{y})",{x:t,y:r}))}rotate(t){const r=t*180/Math.PI;this.__addTransform(Lr("rotate({angle},{cx},{cy})",{angle:r,cx:0,cy:0}))}translate(t,r){this.__addTransform(Lr("translate({x},{y})",{x:t,y:r}))}transform(t,r,n,i,o,s){this.__addTransform(Lr("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:r,c:n,d:i,e:o,f:s}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:r},this.__addPathCommand(Lr("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(Lr("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Lr("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,r,n,i,o,s){this.__currentPosition={x:o,y:s},this.__addPathCommand(Lr("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:r,cp2x:n,cp2y:i,x:o,y:s}))}quadraticCurveTo(t,r,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Lr("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:r,x:n,y:i}))}normalize(t){const r=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/r,t[1]/r]}arcTo(t,r,n,i,o){const s=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof s>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(s===t&&a===r||t===n&&r===i||o===0){this.lineTo(t,r);return}const c=this.normalize([s-t,a-r]),l=this.normalize([n-t,i-r]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,r);return}const u=c[0]*l[0]+c[1]*l[1],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]],b=[l[1],-l[0]],_=function(N){const k=N[0];return N[1]>=0?Math.acos(k):-Math.acos(k)},m=_(v),S=_(b);this.lineTo(p+v[0]*o,g+v[1]*o),this.arc(p,g,o,m,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,r,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,r),this.lineTo(t+n,r),this.lineTo(t+n,r+i),this.lineTo(t,r+i),this.lineTo(t,r),this.closePath()}fillRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(t,r,n,i){const o=this.__createElement("rect",{x:t,y:r,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),r=this.__rootSVG.childNodes[1],n=r.childNodes;for(let i=n.length-1;i>=0;i--)n[i]&&r.removeChild(n[i]);this.__currentElement=r,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(t,r,n,i){if(t===0&&r===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),s=this.__createElement("rect",{x:t,y:r,width:n,height:i,fill:"#FFFFFF"},!0);o.appendChild(s)}createLinearGradient(t,r,n,i){const o=this.__createElement("linearGradient",{id:Gc(this.__ids),x1:t+"px",x2:n+"px",y1:r+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new kf(o,this)}createRadialGradient(t,r,n,i,o,s){const a=this.__createElement("radialGradient",{id:Gc(this.__ids),cx:i+"px",cy:o+"px",r:s+"px",fx:t+"px",fy:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new kf(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),r={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(r.decoration="underline"),this.__fontHref&&(r.href=this.__fontHref),r}__wrapTextLink(t,r){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(r),n}return r}__applyText(t,r,n,i){const o=this.__parseFont(),s=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:r,y:n,"text-anchor":aA(this.textAlign),"dominant-baseline":lA(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),s.appendChild(this.__wrapTextLink(o,a))}fillText(t,r,n){this.__applyText(t,r,n,"fill")}strokeText(t,r,n){this.__applyText(t,r,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,r,n,i,o,s){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(s?-1:1))%(2*Math.PI));const a=t+n*Math.cos(o),c=r+n*Math.sin(o),l=t+n*Math.cos(i),u=r+n*Math.sin(i),d=s?0:1;let f=0,h=o-i;h<0&&(h+=2*Math.PI),s?f=h>Math.PI?0:1:f=h>Math.PI?1:0,this.lineTo(l,u),this.__addPathCommand(Lr("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:d,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),r=this.__createElement("clipPath"),n=Gc(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",Lr("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){var m;let r=t[0],n,i,o,s,a=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,s=u;else if(t.length===5)n=t[1],i=t[2],o=t[3],s=t[4],l=r.width,u=r.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],u=t[4],n=t[5],i=t[6],o=t[7],s=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const b=this.__closestGroupOrSvg();this.__currentElement;const _="translate("+n+", "+i+")";if(r instanceof zm){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 S=h.getAttribute("transform");let N;S?N=S+" "+_:N=_,h.setAttribute("transform",N),b.appendChild(h)}}}else(r.nodeName==="CANVAS"||r.nodeName==="IMG")&&(p=this.__createElement("image"),p.setAttribute("width",o),p.setAttribute("height",s),p.setAttribute("preserveAspectRatio","none"),(a||c||l!==r.width||u!==r.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=s,(m=g.getContext("2d"))==null||m.drawImage(r,a,c,l,u,0,0,o,s),r=g),p.setAttribute("transform",_),p.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r.nodeName==="CANVAS"?r.toDataURL():r.getAttribute("src")),b.appendChild(p))}createPattern(t,r){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Gc(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 zm&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new By(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}},Hy=class N${constructor(t){jt(this,"point");this.point=new la(t)}static fromSVGPathData(t){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new N$({x:t[1],y:t[2]})}toSVGPathData(){return["L",this.point.x,this.point.y]}toSVGPathD(){return"L "+this.point.toSVGPathD()}},qy=class R$ extends Hy{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 R$({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()}`}},Ef=class j$ extends Hy{constructor(r){super(r);jt(this,"ctrlPoints",[]);this.ctrlPoints.push(new la({x:r.c1x,y:r.c1y})),this.ctrlPoints.push(new la({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 j$({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 ls{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 la({x:t,y:r}),this}addLine(t){return this.lines.push(t),this}normalize(){let t=this.lines.reduce((n,i)=>(n+=i.toSVGPathD(),n),"");this.startPoint&&(t="M "+this.startPoint.toSVGPathD()+t),this.isClosed&&(t+="Z"),this.normalizedLines=[];const r=yf(vf(gf(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(Ef.fromSVGPathData(o))}return this}static fromSVGPathD(t,r){if(!jO(t))throw new Error("Not an SVG path!");const n=yf(vf(gf(t)));return ls.fromSVGPathData(n,r)}static fromSVGPathData(t,r){const n=new ls;for(let o=0,s=t.length;o<s;o++){const a=t[o],c=a[0];if(o==0&&c=="M"){n.setStartPoint(a[1],a[2]);continue}if(o==s-1&&c=="Z"){n.isClosed=!0;continue}n.addLine(new Ef({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}n.normalize();const i=Lc(r??"");return n.transform(i)}toSVGPathD(){let t="";this.startPoint&&(t+="M "+this.startPoint.toSVGPathD());for(let r=0,n=this.normalizedLines.length;r<n;r++)t+=this.normalizedLines[r].toSVGPathD();return this.isClosed&&(t+="Z"),t}toSVGPathData(){const t=[];this.startPoint&&t.push(["M",...this.startPoint.toSVGPathData()]);for(let r=0,n=this.normalizedLines.length;r<n;r++)t.push(this.normalizedLines[r].toSVGPathData());return this.isClosed&&t.push(["Z"]),t}toCanvas(t){const r=this.normalizedLines;r.length&&(this.startPoint&&(t.beginPath(),t.moveTo(this.startPoint.x,this.startPoint.y)),r.forEach(n=>{const[i,...o]=n.toSVGPathData();i==="M"?t.moveTo(o[0],o[1]):i==="Z"?t.closePath():t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}),this.isClosed&&t.closePath())}get bounds(){let t=[0,0,0,0];if(this.normalizedLines.length){t=[1/0,1/0,-1/0,-1/0];for(let r=0,n=this.normalizedLines.length;r<n;r++){const i=this.normalizedLines[r],o=[...i.ctrlPoints,i.point];for(let s=0;s<o.length;s++){const a=o[s].x,c=o[s].y;a<t[0]&&(t[0]=a),c<t[1]&&(t[1]=c),a>t[2]&&(t[2]=a),c>t[3]&&(t[3]=c)}}}return t}get size(){const t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}get center(){const[t,r,n,i]=this.bounds;return[(t+n)/2,(r+i)/2]}getTotalLength(){return QO(this.toSVGPathD())}getPointAtLength(t){return ZO(this.toSVGPathD(),t)}isPointInPath(t,r){return tA(this.toSVGPathD(),t,r)}isPointInStroke(t,r,n={lineWidth:1,lineCap:"butt",lineJoin:"miter"}){return eA(this.toSVGPathD(),t,r,n)}transform(t){if(this.startPoint){const[r,n]=t.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(r,n)}return this.normalizedLines=this.normalizedLines.map(r=>{const[n,...i]=r.toSVGPathData(),o=[n];for(let s=0,a=i.length;s<a;s+=2){const c=i[s],l=i[s+1],[u,d]=t.transformPoint(c,l);o.push(u,d)}return Ef.fromSVGPathData(o)}),this}translate(t,r){const n=new jn().translate(t,r);return this.transform(n)}rotate(t,r=0,n=0){const i=new jn().rotate(t,r,n);return this.transform(i)}scale(t,r=t,n=0,i=0){const o=new jn().scale(t,r,n,i);return this.transform(o)}skew(t,r=0){const n=new jn().skew(t,r);return this.transform(n)}trim(){const[t,r]=this.bounds;return this.translate(-t,-r),this}static generateRosetta(t,r,n,i,o){if(o==0)throw new Error("no dividing by zero, please");const s=new ls;s.setStartPoint(t,r);const a=360/o;for(let c=0;c<o;c+=1){const l=a*c*Math.PI/180,u=t+2*n*Math.cos(l),d=r+2*n*Math.sin(l);s.addLine(new qy({x:u,y:d,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1})),s.addLine(new qy({x:t,y:r,rx:n,ry:i,xAxisRotate:a*c,largeArcFlag:1,sweepFlag:1}))}return s.normalize(),s}}var Ky={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(window,function(){return function(r){var n={};function i(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,s){if(1&s&&(o=i(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var c in o)i.d(a,c,(function(l){return o[l]}).bind(null,c));return a},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=1)}([function(r,n,i){var o,s;o=[i(2)],(s=(function(a){function c(x){if(c.is(x,"function"))return l?x():a.on("raphael.DOMload",x);if(c.is(x,st))return c._engine.create[_](c,x.splice(0,3+c.is(x[0],$t))).add(x);var O=Array.prototype.slice.call(arguments,0);if(c.is(O[O.length-1],"function")){var D=O.pop();return l?D.call(c._engine.create[_](c,O)):a.on("raphael.DOMload",function(){D.call(c._engine.create[_](c,O))})}return c._engine.create[_](c,arguments)}c.version="2.3.0",c.eve=a;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},b=function(){this.ca=this.customAttributes={}},_="apply",m="concat",S="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,N="",k=" ",A=String,R="split",z="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[R](k),B={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},Y=A.prototype.toLowerCase,W=Math,nt=W.max,rt=W.min,lt=W.abs,xt=W.pow,Ct=W.PI,$t="number",st="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},$=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,y=W.round,C=parseFloat,M=parseInt,I=A.prototype.toUpperCase,G=c._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},q=c._availableAnimAttrs={blur:$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,Ut=/([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(x,O){return C(x)-C(O)},Qt=function(x){return x},It=c._rectPath=function(x,O,D,w,P){return P?[["M",x+P,O],["l",D-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-D,0],["a",P,P,0,0,1,-P,-P],["l",0,2*P-w],["a",P,P,0,0,1,P,-P],["z"]]:[["M",x,O],["l",D,0],["l",0,w],["l",-D,0],["z"]]},de=function(x,O,D,w){return w==null&&(w=D),[["M",x,O],["m",0,-w],["a",D,w,0,1,1,0,2*w],["a",D,w,0,1,1,0,-2*w],["z"]]},re=c._getPath={path:function(x){return x.attr("path")},circle:function(x){var O=x.attrs;return de(O.cx,O.cy,O.r)},ellipse:function(x){var O=x.attrs;return de(O.cx,O.cy,O.rx,O.ry)},rect:function(x){var O=x.attrs;return It(O.x,O.y,O.width,O.height,O.r)},image:function(x){var O=x.attrs;return It(O.x,O.y,O.width,O.height)},text:function(x){var O=x._getBBox();return It(O.x,O.y,O.width,O.height)},set:function(x){var O=x._getBBox();return It(O.x,O.y,O.width,O.height)}},he=c.mapPath=function(x,O){if(!O)return x;var D,w,P,F,V,H,J;for(P=0,V=(x=Hn(x)).length;P<V;P++)for(F=1,H=(J=x[P]).length;F<H;F+=2)D=O.x(J[F],J[F+1]),w=O.y(J[F],J[F+1]),J[F]=D,J[F+1]=w;return x};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,Ie=g.doc.createElement("div");if(Ie.innerHTML='<v:shape adj="1"/>',(Vt=Ie.firstChild).style.behavior="url(#default#VML)",!Vt||typeof Vt.adj!="object")return c.type=N;Ie=null}function Fe(x){if(typeof x=="function"||Object(x)!==x)return x;var O=new x.constructor;for(var D in x)x[p](D)&&(O[D]=Fe(x[D]));return O}c.svg=!(c.vml=c.type=="VML"),c._Paper=b,c.fn=u=b.prototype=c.prototype,c._id=0,c.is=function(x,O){return(O=Y.call(O))=="finite"?!E[p](+x):O=="array"?x instanceof Array:O=="null"&&x===null||O==typeof x&&x!==null||O=="object"&&x===Object(x)||O=="array"&&Array.isArray&&Array.isArray(x)||X.call(x).slice(8,-1).toLowerCase()==O},c.angle=function(x,O,D,w,P,F){if(P==null){var V=x-D,H=O-w;return V||H?(180+180*W.atan2(-H,-V)/Ct+360)%360:0}return c.angle(x,O,P,F)-c.angle(D,w,P,F)},c.rad=function(x){return x%360*Ct/180},c.deg=function(x){return Math.round(180*x/Ct%360*1e3)/1e3},c.snapTo=function(x,O,D){if(D=c.is(D,"finite")?D:10,c.is(x,st)){for(var w=x.length;w--;)if(lt(x[w]-O)<=D)return x[w]}else{var P=O%(x=+x);if(P<D)return O-P;if(P>x-D)return O-P+x}return O};var Ke,pr;c.createUUID=(Ke=/[xy]/g,pr=function(x){var O=16*W.random()|0;return(x=="x"?O:3&O|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ke,pr).toUpperCase()}),c.setWindow=function(x){a("raphael.setWindow",c,g.win,x),g.win=x,g.doc=g.win.document,c._engine.initWin&&c._engine.initWin(g.win)};var ur=function(x){if(c.vml){var O,D=/^\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();ur=Ze(function(V){try{O.style.color=A(V).replace(D,N);var H=P.queryCommandValue("ForeColor");return"#"+("000000"+(H=(255&H)<<16|65280&H|(16711680&H)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var F=g.doc.createElement("i");F.title="Raphaël Colour Picker",F.style.display="none",g.doc.body.appendChild(F),ur=Ze(function(V){return F.style.color=V,g.doc.defaultView.getComputedStyle(F,N).getPropertyValue("color")})}return ur(x)},xe=function(){return"hsb("+[this.h,this.s,this.b]+")"},We=function(){return"hsl("+[this.h,this.s,this.l]+")"},Rr=function(){return this.hex},jr=function(x,O,D){if(O==null&&c.is(x,"object")&&"r"in x&&"g"in x&&"b"in x&&(D=x.b,O=x.g,x=x.r),O==null&&c.is(x,"string")){var w=c.getRGB(x);x=w.r,O=w.g,D=w.b}return(x>1||O>1||D>1)&&(x/=255,O/=255,D/=255),[x,O,D]},Sr=function(x,O,D,w){var P={r:x*=255,g:O*=255,b:D*=255,hex:c.rgb(x,O,D),toString:Rr};return c.is(w,"finite")&&(P.opacity=w),P};function Ze(x,O,D){return function w(){var P=Array.prototype.slice.call(arguments,0),F=P.join("␀"),V=w.cache=w.cache||{},H=w.count=w.count||[];return V[p](F)?(function(J,tt){for(var ot=0,dt=J.length;ot<dt;ot++)if(J[ot]===tt)return J.push(J.splice(ot,1)[0])}(H,F),D?D(V[F]):V[F]):(H.length>=1e3&&delete V[H.shift()],H.push(F),V[F]=x[_](O,P),D?D(V[F]):V[F])}}c.color=function(x){var O;return c.is(x,"object")&&"h"in x&&"s"in x&&"b"in x?(O=c.hsb2rgb(x),x.r=O.r,x.g=O.g,x.b=O.b,x.hex=O.hex):c.is(x,"object")&&"h"in x&&"s"in x&&"l"in x?(O=c.hsl2rgb(x),x.r=O.r,x.g=O.g,x.b=O.b,x.hex=O.hex):(c.is(x,"string")&&(x=c.getRGB(x)),c.is(x,"object")&&"r"in x&&"g"in x&&"b"in x?(O=c.rgb2hsl(x),x.h=O.h,x.s=O.s,x.l=O.l,O=c.rgb2hsb(x),x.v=O.b):(x={hex:"none"}).r=x.g=x.b=x.h=x.s=x.v=x.l=-1),x.toString=Rr,x},c.hsb2rgb=function(x,O,D,w){var P,F,V,H,J;return this.is(x,"object")&&"h"in x&&"s"in x&&"b"in x&&(D=x.b,O=x.s,w=x.o,x=x.h),H=(J=D*O)*(1-lt((x=(x*=360)%360/60)%2-1)),P=F=V=D-J,Sr(P+=[J,H,0,0,H,J][x=~~x],F+=[H,J,J,H,0,0][x],V+=[0,0,H,J,J,H][x],w)},c.hsl2rgb=function(x,O,D,w){var P,F,V,H,J;return this.is(x,"object")&&"h"in x&&"s"in x&&"l"in x&&(D=x.l,O=x.s,x=x.h),(x>1||O>1||D>1)&&(x/=360,O/=100,D/=100),H=(J=2*O*(D<.5?D:1-D))*(1-lt((x=(x*=360)%360/60)%2-1)),P=F=V=D-J/2,Sr(P+=[J,H,0,0,H,J][x=~~x],F+=[H,J,J,H,0,0][x],V+=[0,0,H,J,J,H][x],w)},c.rgb2hsb=function(x,O,D){var w,P;return x=(D=jr(x,O,D))[0],O=D[1],D=D[2],{h:(((P=(w=nt(x,O,D))-rt(x,O,D))==0?null:w==x?(O-D)/P:w==O?(D-x)/P+2:(x-O)/P+4)+360)%6*60/360,s:P==0?0:P/w,b:w,toString:xe}},c.rgb2hsl=function(x,O,D){var w,P,F,V;return x=(D=jr(x,O,D))[0],O=D[1],D=D[2],w=((P=nt(x,O,D))+(F=rt(x,O,D)))/2,{h:(((V=P-F)==0?null:P==x?(O-D)/V:P==O?(D-x)/V+2:(x-O)/V+4)+360)%6*60/360,s:V==0?0:w<.5?V/(2*w):V/(2-2*w),l:w,toString:We}},c._path2string=function(){return this.join(",").replace(ut,"$1")},c._preload=function(x,O){var D=g.doc.createElement("img");D.style.cssText="position:absolute;left:-9999em;top:-9999em",D.onload=function(){O.call(this),this.onload=null,g.doc.body.removeChild(this)},D.onerror=function(){g.doc.body.removeChild(this)},g.doc.body.appendChild(D),D.src=x};function Zr(){return this.hex}function tn(x,O){for(var D=[],w=0,P=x.length;P-2*!O>w;w+=2){var F=[{x:+x[w-2],y:+x[w-1]},{x:+x[w],y:+x[w+1]},{x:+x[w+2],y:+x[w+3]},{x:+x[w+4],y:+x[w+5]}];O?w?P-4==w?F[3]={x:+x[0],y:+x[1]}:P-2==w&&(F[2]={x:+x[0],y:+x[1]},F[3]={x:+x[2],y:+x[3]}):F[0]={x:+x[P-2],y:+x[P-1]}:P-4==w?F[3]=F[2]:w||(F[0]={x:+x[w],y:+x[w+1]}),D.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 D}c.getRGB=Ze(function(x){if(!x||(x=A(x)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Zr};if(x=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:Zr};!it[p](x.toLowerCase().substring(0,2))&&x.charAt()!="#"&&(x=ur(x));var O,D,w,P,F,V,H=x.match(T);return H?(H[2]&&(w=M(H[2].substring(5),16),D=M(H[2].substring(3,5),16),O=M(H[2].substring(1,3),16)),H[3]&&(w=M((F=H[3].charAt(3))+F,16),D=M((F=H[3].charAt(2))+F,16),O=M((F=H[3].charAt(1))+F,16)),H[4]&&(V=H[4][R](et),O=C(V[0]),V[0].slice(-1)=="%"&&(O*=2.55),D=C(V[1]),V[1].slice(-1)=="%"&&(D*=2.55),w=C(V[2]),V[2].slice(-1)=="%"&&(w*=2.55),H[1].toLowerCase().slice(0,4)=="rgba"&&(P=C(V[3])),V[3]&&V[3].slice(-1)=="%"&&(P/=100)),H[5]?(V=H[5][R](et),O=C(V[0]),V[0].slice(-1)=="%"&&(O*=2.55),D=C(V[1]),V[1].slice(-1)=="%"&&(D*=2.55),w=C(V[2]),V[2].slice(-1)=="%"&&(w*=2.55),(V[0].slice(-3)=="deg"||V[0].slice(-1)=="°")&&(O/=360),H[1].toLowerCase().slice(0,4)=="hsba"&&(P=C(V[3])),V[3]&&V[3].slice(-1)=="%"&&(P/=100),c.hsb2rgb(O,D,w,P)):H[6]?(V=H[6][R](et),O=C(V[0]),V[0].slice(-1)=="%"&&(O*=2.55),D=C(V[1]),V[1].slice(-1)=="%"&&(D*=2.55),w=C(V[2]),V[2].slice(-1)=="%"&&(w*=2.55),(V[0].slice(-3)=="deg"||V[0].slice(-1)=="°")&&(O/=360),H[1].toLowerCase().slice(0,4)=="hsla"&&(P=C(V[3])),V[3]&&V[3].slice(-1)=="%"&&(P/=100),c.hsl2rgb(O,D,w,P)):((H={r:O,g:D,b:w,toString:Zr}).hex="#"+(16777216|w|D<<8|O<<16).toString(16).slice(1),c.is(P,"finite")&&(H.opacity=P),H)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Zr}},c),c.hsb=Ze(function(x,O,D){return c.hsb2rgb(x,O,D).hex}),c.hsl=Ze(function(x,O,D){return c.hsl2rgb(x,O,D).hex}),c.rgb=Ze(function(x,O,D){function w(P){return P+.5|0}return"#"+(16777216|w(D)|w(O)<<8|w(x)<<16).toString(16).slice(1)}),c.getColor=function(x){var O=this.getColor.start=this.getColor.start||{h:0,s:1,b:x||.75},D=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})),D.hex},c.getColor.reset=function(){delete this.start},c.parsePathString=function(x){if(!x)return null;var O=be(x);if(O.arr)return Ne(O.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},w=[];return c.is(x,st)&&c.is(x[0],st)&&(w=Ne(x)),w.length||A(x).replace(Tt,function(P,F,V){var H=[],J=F.toLowerCase();if(V.replace(Pt,function(tt,ot){ot&&H.push(+ot)}),J=="m"&&H.length>2&&(w.push([F][m](H.splice(0,2))),J="l",F=F=="m"?"l":"L"),J=="r")w.push([F][m](H));else for(;H.length>=D[J]&&(w.push([F][m](H.splice(0,D[J]))),D[J]););}),w.toString=c._path2string,O.arr=Ne(w),w},c.parseTransformString=Ze(function(x){if(!x)return null;var O=[];return c.is(x,st)&&c.is(x[0],st)&&(O=Ne(x)),O.length||A(x).replace(Ut,function(D,w,P){var F=[];Y.call(w),P.replace(Pt,function(V,H){H&&F.push(+H)}),O.push([w][m](F))}),O.toString=c._path2string,O},this,function(x){if(!x)return x;for(var O=[],D=0;D<x.length;D++){for(var w=[],P=0;P<x[D].length;P++)w.push(x[D][P]);O.push(w)}return O});var be=function(x){var O=be.ps=be.ps||{};return O[x]?O[x].sleep=100:O[x]={sleep:100},setTimeout(function(){for(var D in O)O[p](D)&&D!=x&&(O[D].sleep--,!O[D].sleep&&delete O[D])}),O[x]};function Br(x,O,D,w,P){return x*(x*(-3*O+9*D-9*w+3*P)+6*O-12*D+6*w)-3*O+3*D}function Tr(x,O,D,w,P,F,V,H,J){J==null&&(J=1);for(var tt=(J=J>1?1:J<0?0:J)/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,at=0;at<12;at++){var ft=tt*ot[at]+tt,_t=Br(ft,x,D,P,V),pt=Br(ft,O,w,F,H),ht=_t*_t+pt*pt;ct+=dt[at]*W.sqrt(ht)}return tt*ct}function Bn(x,O,D,w,P,F,V,H){if(!(nt(x,D)<rt(P,V)||rt(x,D)>nt(P,V)||nt(O,w)<rt(F,H)||rt(O,w)>nt(F,H))){var J=(x-D)*(F-H)-(O-w)*(P-V);if(J){var tt=((x*w-O*D)*(P-V)-(x-D)*(P*H-F*V))/J,ot=((x*w-O*D)*(F-H)-(O-w)*(P*H-F*V))/J,dt=+tt.toFixed(2),ct=+ot.toFixed(2);if(!(dt<+rt(x,D).toFixed(2)||dt>+nt(x,D).toFixed(2)||dt<+rt(P,V).toFixed(2)||dt>+nt(P,V).toFixed(2)||ct<+rt(O,w).toFixed(2)||ct>+nt(O,w).toFixed(2)||ct<+rt(F,H).toFixed(2)||ct>+nt(F,H).toFixed(2)))return{x:tt,y:ot}}}}function dn(x,O,D){var w=c.bezierBBox(x),P=c.bezierBBox(O);if(!c.isBBoxIntersect(w,P))return D?0:[];for(var F=Tr.apply(0,x),V=Tr.apply(0,O),H=nt(~~(F/5),1),J=nt(~~(V/5),1),tt=[],ot=[],dt={},ct=D?0:[],at=0;at<H+1;at++){var ft=c.findDotsAtSegment.apply(c,x.concat(at/H));tt.push({x:ft.x,y:ft.y,t:at/H})}for(at=0;at<J+1;at++)ft=c.findDotsAtSegment.apply(c,O.concat(at/J)),ot.push({x:ft.x,y:ft.y,t:at/J});for(at=0;at<H;at++)for(var _t=0;_t<J;_t++){var pt=tt[at],ht=tt[at+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",se=Bn(pt.x,pt.y,ht.x,ht.y,Rt.x,Rt.y,bt.x,bt.y);if(se){if(dt[se.x.toFixed(4)]==se.y.toFixed(4))continue;dt[se.x.toFixed(4)]=se.y.toFixed(4);var te=pt.t+lt((se[Et]-pt[Et])/(ht[Et]-pt[Et]))*(ht.t-pt.t),ae=Rt.t+lt((se[wt]-Rt[wt])/(bt[wt]-Rt[wt]))*(bt.t-Rt.t);te>=0&&te<=1.001&&ae>=0&&ae<=1.001&&(D?ct++:ct.push({x:se.x,y:se.y,t1:rt(te,1),t2:rt(ae,1)}))}}return ct}function xn(x,O,D){x=c._path2curve(x),O=c._path2curve(O);for(var w,P,F,V,H,J,tt,ot,dt,ct,at=D?0:[],ft=0,_t=x.length;ft<_t;ft++){var pt=x[ft];if(pt[0]=="M")w=H=pt[1],P=J=pt[2];else{pt[0]=="C"?(dt=[w,P].concat(pt.slice(1)),w=dt[6],P=dt[7]):(dt=[w,P,w,P,H,J,H,J],w=H,P=J);for(var ht=0,Rt=O.length;ht<Rt;ht++){var bt=O[ht];if(bt[0]=="M")F=tt=bt[1],V=ot=bt[2];else{bt[0]=="C"?(ct=[F,V].concat(bt.slice(1)),F=ct[6],V=ct[7]):(ct=[F,V,F,V,tt,ot,tt,ot],F=tt,V=ot);var Et=dn(dt,ct,D);if(D)at+=Et;else{for(var wt=0,se=Et.length;wt<se;wt++)Et[wt].segment1=ft,Et[wt].segment2=ht,Et[wt].bez1=dt,Et[wt].bez2=ct;at=at.concat(Et)}}}}}return at}c.findDotsAtSegment=function(x,O,D,w,P,F,V,H,J){var tt=1-J,ot=xt(tt,3),dt=xt(tt,2),ct=J*J,at=ct*J,ft=ot*x+3*dt*J*D+3*tt*J*J*P+at*V,_t=ot*O+3*dt*J*w+3*tt*J*J*F+at*H,pt=x+2*J*(D-x)+ct*(P-2*D+x),ht=O+2*J*(w-O)+ct*(F-2*w+O),Rt=D+2*J*(P-D)+ct*(V-2*P+D),bt=w+2*J*(F-w)+ct*(H-2*F+w),Et=tt*x+J*D,wt=tt*O+J*w,se=tt*P+J*V,te=tt*F+J*H,ae=90-180*W.atan2(pt-Rt,ht-bt)/Ct;return(pt>Rt||ht<bt)&&(ae+=180),{x:ft,y:_t,m:{x:pt,y:ht},n:{x:Rt,y:bt},start:{x:Et,y:wt},end:{x:se,y:te},alpha:ae}},c.bezierBBox=function(x,O,D,w,P,F,V,H){c.is(x,"array")||(x=[x,O,D,w,P,F,V,H]);var J=Hr.apply(null,x);return{x:J.min.x,y:J.min.y,x2:J.max.x,y2:J.max.y,width:J.max.x-J.min.x,height:J.max.y-J.min.y}},c.isPointInsideBBox=function(x,O,D){return O>=x.x&&O<=x.x2&&D>=x.y&&D<=x.y2},c.isBBoxIntersect=function(x,O){var D=c.isPointInsideBBox;return D(O,x.x,x.y)||D(O,x.x2,x.y)||D(O,x.x,x.y2)||D(O,x.x2,x.y2)||D(x,O.x,O.y)||D(x,O.x2,O.y)||D(x,O.x,O.y2)||D(x,O.x2,O.y2)||(x.x<O.x2&&x.x>O.x||O.x<x.x2&&O.x>x.x)&&(x.y<O.y2&&x.y>O.y||O.y<x.y2&&O.y>x.y)},c.pathIntersection=function(x,O){return xn(x,O)},c.pathIntersectionNumber=function(x,O){return xn(x,O,1)},c.isPointInsidePath=function(x,O,D){var w=c.pathBBox(x);return c.isPointInsideBBox(w,O,D)&&xn(x,[["M",O,D],["H",w.x2+10]],1)%2==1},c._removedFactory=function(x){return function(){a("raphael.log",null,"Raphaël: you are calling to method “"+x+"” of removed object",x)}};var Dr=c.pathBBox=function(x){var O=be(x);if(O.bbox)return Fe(O.bbox);if(!x)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var D,w=0,P=0,F=[],V=[],H=0,J=(x=Hn(x)).length;H<J;H++)if((D=x[H])[0]=="M")w=D[1],P=D[2],F.push(w),V.push(P);else{var tt=Hr(w,P,D[1],D[2],D[3],D[4],D[5],D[6]);F=F[m](tt.min.x,tt.max.x),V=V[m](tt.min.y,tt.max.y),w=D[5],P=D[6]}var ot=rt[_](0,F),dt=rt[_](0,V),ct=nt[_](0,F),at=nt[_](0,V),ft=ct-ot,_t=at-dt,pt={x:ot,y:dt,x2:ct,y2:at,width:ft,height:_t,cx:ot+ft/2,cy:dt+_t/2};return O.bbox=Fe(pt),pt},Ne=function(x){var O=Fe(x);return O.toString=c._path2string,O},co=c._pathToRelative=function(x){var O=be(x);if(O.rel)return Ne(O.rel);c.is(x,st)&&c.is(x&&x[0],st)||(x=c.parsePathString(x));var D=[],w=0,P=0,F=0,V=0,H=0;x[0][0]=="M"&&(F=w=x[0][1],V=P=x[0][2],H++,D.push(["M",w,P]));for(var J=H,tt=x.length;J<tt;J++){var ot=D[J]=[],dt=x[J];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],V=dt[2];default:for(var ct=1,at=dt.length;ct<at;ct++)ot[ct]=+(dt[ct]-(ct%2?w:P)).toFixed(3)}else{ot=D[J]=[],dt[0]=="m"&&(F=dt[1]+w,V=dt[2]+P);for(var ft=0,_t=dt.length;ft<_t;ft++)D[J][ft]=dt[ft]}var pt=D[J].length;switch(D[J][0]){case"z":w=F,P=V;break;case"h":w+=+D[J][pt-1];break;case"v":P+=+D[J][pt-1];break;default:w+=+D[J][pt-2],P+=+D[J][pt-1]}}return D.toString=c._path2string,O.rel=Ne(D),D},en=c._pathToAbsolute=function(x){var O=be(x);if(O.abs)return Ne(O.abs);if(c.is(x,st)&&c.is(x&&x[0],st)||(x=c.parsePathString(x)),!x||!x.length)return[["M",0,0]];var D=[],w=0,P=0,F=0,V=0,H=0;x[0][0]=="M"&&(F=w=+x[0][1],V=P=+x[0][2],H++,D[0]=["M",w,P]);for(var J,tt,ot=x.length==3&&x[0][0]=="M"&&x[1][0].toUpperCase()=="R"&&x[2][0].toUpperCase()=="Z",dt=H,ct=x.length;dt<ct;dt++){if(D.push(J=[]),(tt=x[dt])[0]!=I.call(tt[0]))switch(J[0]=I.call(tt[0]),J[0]){case"A":J[1]=tt[1],J[2]=tt[2],J[3]=tt[3],J[4]=tt[4],J[5]=tt[5],J[6]=+(tt[6]+w),J[7]=+(tt[7]+P);break;case"V":J[1]=+tt[1]+P;break;case"H":J[1]=+tt[1]+w;break;case"R":for(var at=[w,P][m](tt.slice(1)),ft=2,_t=at.length;ft<_t;ft++)at[ft]=+at[ft]+w,at[++ft]=+at[ft]+P;D.pop(),D=D[m](tn(at,ot));break;case"M":F=+tt[1]+w,V=+tt[2]+P;default:for(ft=1,_t=tt.length;ft<_t;ft++)J[ft]=+tt[ft]+(ft%2?w:P)}else if(tt[0]=="R")at=[w,P][m](tt.slice(1)),D.pop(),D=D[m](tn(at,ot)),J=["R"][m](tt.slice(-2));else for(var pt=0,ht=tt.length;pt<ht;pt++)J[pt]=tt[pt];switch(J[0]){case"Z":w=F,P=V;break;case"H":w=J[1];break;case"V":P=J[1];break;case"M":F=J[J.length-2],V=J[J.length-1];default:w=J[J.length-2],P=J[J.length-1]}}return D.toString=c._path2string,O.abs=Ne(D),D},fn=function(x,O,D,w){return[x,O,D,w,D,w]},$r=function(x,O,D,w,P,F){return[1/3*x+2/3*D,1/3*O+2/3*w,1/3*P+2/3*D,1/3*F+2/3*w,P,F]},Sn=function(x,O,D,w,P,F,V,H,J,tt){var ot,dt=120*Ct/180,ct=Ct/180*(+P||0),at=[],ft=Ze(function(T$,O$,ch){return{x:T$*W.cos(ch)-O$*W.sin(ch),y:T$*W.sin(ch)+O$*W.cos(ch)}});if(tt)te=tt[0],ae=tt[1],wt=tt[2],se=tt[3];else{x=(ot=ft(x,O,-ct)).x,O=ot.y,H=(ot=ft(H,J,-ct)).x,J=ot.y;var _t=(x-H)/2,pt=(O-J)/2,ht=_t*_t/(D*D)+pt*pt/(w*w);ht>1&&(D*=ht=W.sqrt(ht),w*=ht);var Rt=D*D,bt=w*w,Et=(F==V?-1:1)*W.sqrt(lt((Rt*bt-Rt*pt*pt-bt*_t*_t)/(Rt*pt*pt+bt*_t*_t))),wt=Et*D*pt/w+(x+H)/2,se=Et*-w*_t/D+(O+J)/2,te=W.asin(((O-se)/w).toFixed(9)),ae=W.asin(((J-se)/w).toFixed(9));(te=x<wt?Ct-te:te)<0&&(te=2*Ct+te),(ae=H<wt?Ct-ae:ae)<0&&(ae=2*Ct+ae),V&&te>ae&&(te-=2*Ct),!V&&ae>te&&(ae-=2*Ct)}var Rs=ae-te;if(lt(Rs)>dt){var Jl=ae,nn=H,li=J;ae=te+dt*(V&&ae>te?1:-1),H=wt+D*W.cos(ae),J=se+w*W.sin(ae),at=Sn(H,J,D,w,P,0,V,nn,li,[ae,Jl,wt,se])}Rs=ae-te;var js=W.cos(te),Ds=W.sin(te),ah=W.cos(ae),Fi=W.sin(ae),Qo=W.tan(Rs/4),lh=4/3*D*Qo,$$=4/3*w*Qo,k$=[x,O],Is=[x+lh*Ds,O-$$*js],E$=[H+lh*Fi,J-$$*ah],C$=[H,J];if(Is[0]=2*k$[0]-Is[0],Is[1]=2*k$[1]-Is[1],tt)return[Is,E$,C$][m](at);for(var P$=[],uo=0,aY=(at=[Is,E$,C$][m](at).join()[R](",")).length;uo<aY;uo++)P$[uo]=uo%2?ft(at[uo-1],at[uo],ct).y:ft(at[uo],at[uo+1],ct).x;return P$},pn=function(x,O,D,w,P,F,V,H,J){var tt=1-J;return{x:xt(tt,3)*x+3*xt(tt,2)*J*D+3*tt*J*J*P+xt(J,3)*V,y:xt(tt,3)*O+3*xt(tt,2)*J*w+3*tt*J*J*F+xt(J,3)*H}},Hr=Ze(function(x,O,D,w,P,F,V,H){var J,tt=P-2*D+x-(V-2*P+D),ot=2*(D-x)-2*(P-D),dt=x-D,ct=(-ot+W.sqrt(ot*ot-4*tt*dt))/2/tt,at=(-ot-W.sqrt(ot*ot-4*tt*dt))/2/tt,ft=[O,H],_t=[x,V];return lt(ct)>"1e12"&&(ct=.5),lt(at)>"1e12"&&(at=.5),ct>0&&ct<1&&(J=pn(x,O,D,w,P,F,V,H,ct),_t.push(J.x),ft.push(J.y)),at>0&&at<1&&(J=pn(x,O,D,w,P,F,V,H,at),_t.push(J.x),ft.push(J.y)),tt=F-2*w+O-(H-2*F+w),dt=O-w,ct=(-(ot=2*(w-O)-2*(F-w))+W.sqrt(ot*ot-4*tt*dt))/2/tt,at=(-ot-W.sqrt(ot*ot-4*tt*dt))/2/tt,lt(ct)>"1e12"&&(ct=.5),lt(at)>"1e12"&&(at=.5),ct>0&&ct<1&&(J=pn(x,O,D,w,P,F,V,H,ct),_t.push(J.x),ft.push(J.y)),at>0&&at<1&&(J=pn(x,O,D,w,P,F,V,H,at),_t.push(J.x),ft.push(J.y)),{min:{x:rt[_](0,_t),y:rt[_](0,ft)},max:{x:nt[_](0,_t),y:nt[_](0,ft)}}}),Hn=c._path2curve=Ze(function(x,O){var D=!O&&be(x);if(!O&&D.curve)return Ne(D.curve);for(var w=en(x),P=O&&en(O),F={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},V={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},H=function(Et,wt,se){var te,ae;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](Sn[_](0,[wt.x,wt.y][m](Et.slice(1))));break;case"S":se=="C"||se=="S"?(te=2*wt.x-wt.bx,ae=2*wt.y-wt.by):(te=wt.x,ae=wt.y),Et=["C",te,ae][m](Et.slice(1));break;case"T":se=="Q"||se=="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](fn(wt.x,wt.y,Et[1],Et[2]));break;case"H":Et=["C"][m](fn(wt.x,wt.y,Et[1],wt.y));break;case"V":Et=["C"][m](fn(wt.x,wt.y,wt.x,Et[1]));break;case"Z":Et=["C"][m](fn(wt.x,wt.y,wt.X,wt.Y))}return Et},J=function(Et,wt){if(Et[wt].length>7){Et[wt].shift();for(var se=Et[wt];se.length;)ot[wt]="A",P&&(dt[wt]="A"),Et.splice(wt++,0,["C"][m](se.splice(0,6)));Et.splice(wt,1),_t=nt(w.length,P&&P.length||0)}},tt=function(Et,wt,se,te,ae){Et&&wt&&Et[ae][0]=="M"&&wt[ae][0]!="M"&&(wt.splice(ae,0,["M",te.x,te.y]),se.bx=0,se.by=0,se.x=Et[ae][1],se.y=Et[ae][2],_t=nt(w.length,P&&P.length||0))},ot=[],dt=[],ct="",at="",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&&(at=ot[ft-1])),w[ft]=H(w[ft],F,at),ot[ft]!="A"&&ct=="C"&&(ot[ft]="C"),J(w,ft),P&&(P[ft]&&(ct=P[ft][0]),ct!="C"&&(dt[ft]=ct,ft&&(at=dt[ft-1])),P[ft]=H(P[ft],V,at),dt[ft]!="A"&&ct=="C"&&(dt[ft]="C"),J(P,ft)),tt(w,P,F,V,ft),tt(P,w,V,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,V.bx=P&&(C(ht[bt-4])||V.x),V.by=P&&(C(ht[bt-3])||V.y),V.x=P&&ht[bt-2],V.y=P&&ht[bt-1]}return P||(D.curve=Ne(w)),P?[w,P]:w},null,Ne),$n=(c._parseDots=Ze(function(x){for(var O=[],D=0,w=x.length;D<w;D++){var P={},F=x[D].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(D=1,w=O.length-1;D<w;D++)if(!O[D].offset){for(var V=C(O[D-1].offset||0),H=0,J=D+1;J<w;J++)if(O[J].offset){H=O[J].offset;break}H||(H=100,J=w);for(var tt=((H=C(H))-V)/(J-D+1);D<J;D++)V+=tt,O[D].offset=V+"%"}return O}),c._tear=function(x,O){x==O.top&&(O.top=x.prev),x==O.bottom&&(O.bottom=x.next),x.next&&(x.next.prev=x.prev),x.prev&&(x.prev.next=x.next)}),j=(c._tofront=function(x,O){O.top!==x&&($n(x,O),x.next=null,x.prev=O.top,O.top.next=x,O.top=x)},c._toback=function(x,O){O.bottom!==x&&($n(x,O),x.next=O.bottom,x.prev=null,O.bottom.prev=x,O.bottom=x)},c._insertafter=function(x,O,D){$n(x,D),O==D.top&&(D.top=x),O.next&&(O.next.prev=x),x.next=O.next,x.prev=O,O.next=x},c._insertbefore=function(x,O,D){$n(x,D),O==D.bottom&&(D.bottom=x),O.prev&&(O.prev.next=x),x.prev=O.prev,O.prev=x,x.next=O},c.toMatrix=function(x,O){var D=Dr(x),w={_:{transform:N},getBBox:function(){return D}};return L(w,O),w.matrix}),L=(c.transformPath=function(x,O){return he(x,j(x,O))},c._extractTransform=function(x,O){if(O==null)return x._.transform;O=A(O).replace(/\.{3}|\u2026/g,x._.transform||N);var D,w,P=c.parseTransformString(O),F=0,V=1,H=1,J=x._,tt=new Z;if(J.transform=P||[],P)for(var ot=0,dt=P.length;ot<dt;ot++){var ct,at,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),at=wt.y(0,0),ft=wt.x(ht[1],ht[2]),_t=wt.y(ht[1],ht[2]),tt.translate(ft-ct,_t-at)):tt.translate(ht[1],ht[2]):bt=="r"?Rt==2?(pt=pt||x.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||x.getBBox(1),tt.scale(ht[1],ht[Rt-1],pt.x+pt.width/2,pt.y+pt.height/2),V*=ht[1],H*=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]),V*=ht[1],H*=ht[2]):bt=="m"&&Rt==7&&tt.add(ht[1],ht[2],ht[3],ht[4],ht[5],ht[6]),J.dirtyT=1,x.matrix=tt}x.matrix=tt,J.sx=V,J.sy=H,J.deg=F,J.dx=D=tt.e,J.dy=w=tt.f,V==1&&H==1&&!F&&J.bbox?(J.bbox.x+=+D,J.bbox.y+=+w):J.dirtyT=1}),U=function(x){var O=x[0];switch(O.toLowerCase()){case"t":return[O,0,0];case"m":return[O,1,0,0,1,0,0];case"r":return x.length==4?[O,0,x[2],x[3]]:[O,0];case"s":return x.length==5?[O,1,1,x[3],x[4]]:x.length==3?[O,1,1]:[O,1]}},Q=c._equaliseTransform=function(x,O){O=A(O).replace(/\.{3}|\u2026/g,x),x=c.parseTransformString(x)||[],O=c.parseTransformString(O)||[];for(var D,w,P,F,V=nt(x.length,O.length),H=[],J=[],tt=0;tt<V;tt++){if(P=x[tt]||U(O[tt]),F=O[tt]||U(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(H[tt]=[],J[tt]=[],D=0,w=nt(P.length,F.length);D<w;D++)D in P&&(H[tt][D]=P[D]),D in F&&(J[tt][D]=F[D])}return{from:H,to:J}};function Z(x,O,D,w,P,F){x!=null?(this.a=+x,this.b=+O,this.c=+D,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(x,O,D,w){var P;if((P=w!=null||c.is(x,"object")?x:g.doc.getElementById(x))!=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:D}:{container:1,x,y:O,width:D,height:w}},c.pathToRelative=co,c._engine={},c.path2curve=Hn,c.matrix=function(x,O,D,w,P,F){return new Z(x,O,D,w,P,F)},function(x){function O(w){return w[0]*w[0]+w[1]*w[1]}function D(w){var P=W.sqrt(O(w));w[0]&&(w[0]/=P),w[1]&&(w[1]/=P)}x.add=function(w,P,F,V,H,J){var tt,ot,dt,ct,at=[[],[],[]],ft=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],_t=[[w,F,H],[P,V,J],[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];at[tt][ot]=ct}this.a=at[0][0],this.b=at[1][0],this.c=at[0][1],this.d=at[1][1],this.e=at[0][2],this.f=at[1][2]},x.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)},x.clone=function(){return new Z(this.a,this.b,this.c,this.d,this.e,this.f)},x.translate=function(w,P){this.add(1,0,0,1,w,P)},x.scale=function(w,P,F,V){P==null&&(P=w),(F||V)&&this.add(1,0,0,1,F,V),this.add(w,0,0,P,0,0),(F||V)&&this.add(1,0,0,1,-F,-V)},x.rotate=function(w,P,F){w=c.rad(w),P=P||0,F=F||0;var V=+W.cos(w).toFixed(9),H=+W.sin(w).toFixed(9);this.add(V,H,-H,V,P,F),this.add(1,0,0,1,-P,-F)},x.x=function(w,P){return w*this.a+P*this.c+this.e},x.y=function(w,P){return w*this.b+P*this.d+this.f},x.get=function(w){return+this[A.fromCharCode(97+w)].toFixed(4)},x.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()},x.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')"},x.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},x.split=function(){var w={};w.dx=this.e,w.dy=this.f;var P=[[this.a,this.c],[this.b,this.d]];w.scalex=W.sqrt(O(P[0])),D(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=W.sqrt(O(P[1])),D(P[1]),w.shear/=w.scaley;var F=-P[0][1],V=P[1][1];return V<0?(w.rotate=c.deg(W.acos(V)),F<0&&(w.rotate=360-w.rotate)):w.rotate=c.deg(W.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},x.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()},Dt=function(){this.cancelBubble=!0},oe=function(){return this.originalEvent.stopPropagation()},Ht=function(x){var O=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,D=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;return{x:x.clientX+D,y:x.clientY+O}},Ot=g.doc.addEventListener?function(x,O,D,w){var P=function(V){var H=Ht(V);return D.call(w,V,H.x,H.y)};if(x.addEventListener(O,P,!1),S&&B[O]){var F=function(V){for(var H=Ht(V),J=V,tt=0,ot=V.targetTouches&&V.targetTouches.length;tt<ot;tt++)if(V.targetTouches[tt].target==x){(V=V.targetTouches[tt]).originalEvent=J,V.preventDefault=vt,V.stopPropagation=oe;break}return D.call(w,V,H.x,H.y)};x.addEventListener(B[O],F,!1)}return function(){return x.removeEventListener(O,P,!1),S&&B[O]&&x.removeEventListener(B[O],F,!1),!0}}:g.doc.attachEvent?function(x,O,D,w){var P=function(F){F=F||g.win.event;var V=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,H=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,J=F.clientX+H,tt=F.clientY+V;return F.preventDefault=F.preventDefault||yt,F.stopPropagation=F.stopPropagation||Dt,D.call(w,F,J,tt)};return x.attachEvent("on"+O,P),function(){return x.detachEvent("on"+O,P),!0}}:void 0,Ft=[],Zt=function(x){for(var O,D=x.clientX,w=x.clientY,P=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,F=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft,V=Ft.length;V--;){if(O=Ft[V],S&&x.touches){for(var H,J=x.touches.length;J--;)if((H=x.touches[J]).identifier==O.el._drag.id){D=H.clientX,w=H.clientY,(x.originalEvent?x.originalEvent:x).preventDefault();break}}else x.preventDefault();var tt,ot=O.el.node,dt=ot.nextSibling,ct=ot.parentNode,at=ot.style.display;g.win.opera&&ct.removeChild(ot),ot.style.display="none",tt=O.el.paper.getElementByPoint(D,w),ot.style.display=at,g.win.opera&&(dt?ct.insertBefore(ot,dt):ct.appendChild(ot)),tt&&a("raphael.drag.over."+O.el.id,O.el,tt),D+=F,w+=P,a("raphael.drag.move."+O.el.id,O.move_scope||O.el,D-O.el._drag.x,w-O.el._drag.y,D,w,x)}},kt=function(x){c.unmousemove(Zt).unmouseup(kt);for(var O,D=Ft.length;D--;)(O=Ft[D]).el._drag={},a("raphael.drag.end."+O.el.id,O.end_scope||O.start_scope||O.move_scope||O.el,x);Ft=[]},At=c.el={},Xt=z.length;Xt--;)(function(x){c[x]=At[x]=function(O,D){return c.is(O,"function")&&(this.events=this.events||[],this.events.push({name:x,f:O,unbind:Ot(this.shape||this.node||g.doc,x,O,D||this)})),this},c["un"+x]=At["un"+x]=function(O){for(var D=this.events||[],w=D.length;w--;)D[w].name!=x||!c.is(O,"undefined")&&D[w].f!=O||(D[w].unbind(),D.splice(w,1),!D.length&&delete this.events);return this}})(z[Xt]);At.data=function(x,O){var D=Nt[this.id]=Nt[this.id]||{};if(arguments.length==0)return D;if(arguments.length==1){if(c.is(x,"object")){for(var w in x)x[p](w)&&this.data(w,x[w]);return this}return a("raphael.data.get."+this.id,this,D[x],x),D[x]}return D[x]=O,a("raphael.data.set."+this.id,this,O,x),this},At.removeData=function(x){return x==null?delete Nt[this.id]:Nt[this.id]&&delete Nt[this.id][x],this},At.getData=function(){return Fe(Nt[this.id]||{})},At.hover=function(x,O,D,w){return this.mouseover(x,D).mouseout(O,w||D)},At.unhover=function(x,O){return this.unmouseover(x).unmouseout(O)};var Ee=[];At.drag=function(x,O,D,w,P,F){function V(H){(H.originalEvent||H).preventDefault();var J=H.clientX,tt=H.clientY,ot=g.doc.documentElement.scrollTop||g.doc.body.scrollTop,dt=g.doc.documentElement.scrollLeft||g.doc.body.scrollLeft;if(this._drag.id=H.identifier,S&&H.touches){for(var ct,at=H.touches.length;at--;)if(ct=H.touches[at],this._drag.id=ct.identifier,ct.identifier==this._drag.id){J=ct.clientX,tt=ct.clientY;break}}this._drag.x=J+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&&a.on("raphael.drag.start."+this.id,O),x&&a.on("raphael.drag.move."+this.id,x),D&&a.on("raphael.drag.end."+this.id,D),a("raphael.drag.start."+this.id,P||w||this,this._drag.x,this._drag.y,H)}return this._drag={},Ee.push({el:this,start:V}),this.mousedown(V),this},At.onDragOver=function(x){x?a.on("raphael.drag.over."+this.id,x):a.unbind("raphael.drag.over."+this.id)},At.undrag=function(){for(var x=Ee.length;x--;)Ee[x].el==this&&(this.unmousedown(Ee[x].start),Ee.splice(x,1),a.unbind("raphael.drag.*."+this.id));!Ee.length&&c.unmousemove(Zt).unmouseup(kt),Ft=[]},u.circle=function(x,O,D){var w=c._engine.circle(this,x||0,O||0,D||0);return this.__set__&&this.__set__.push(w),w},u.rect=function(x,O,D,w,P){var F=c._engine.rect(this,x||0,O||0,D||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.ellipse=function(x,O,D,w){var P=c._engine.ellipse(this,x||0,O||0,D||0,w||0);return this.__set__&&this.__set__.push(P),P},u.path=function(x){x&&!c.is(x,"string")&&!c.is(x[0],st)&&(x+=N);var O=c._engine.path(c.format[_](c,arguments),this);return this.__set__&&this.__set__.push(O),O},u.image=function(x,O,D,w,P){var F=c._engine.image(this,x||"about:blank",O||0,D||0,w||0,P||0);return this.__set__&&this.__set__.push(F),F},u.text=function(x,O,D){var w=c._engine.text(this,x||0,O||0,A(D));return this.__set__&&this.__set__.push(w),w},u.set=function(x){!c.is(x,"array")&&(x=Array.prototype.splice.call(arguments,0,arguments.length));var O=new Jo(x);return this.__set__&&this.__set__.push(O),O.paper=this,O.type="set",O},u.setStart=function(x){this.__set__=x||this.set()},u.setFinish=function(x){var O=this.__set__;return delete this.__set__,O},u.getSize=function(){var x=this.canvas.parentNode;return{width:x.offsetWidth,height:x.offsetHeight}},u.setSize=function(x,O){return c._engine.setSize.call(this,x,O)},u.setViewBox=function(x,O,D,w,P){return c._engine.setViewBox.call(this,x,O,D,w,P)},u.top=u.bottom=null,u.raphael=c;function hr(){return this.x+k+this.y+k+this.width+" × "+this.height}u.getElementByPoint=function(x,O){var D,w,P,F,V,H,J,tt=this.canvas,ot=g.doc.elementFromPoint(x,O);if(g.win.opera&&ot.tagName=="svg"){var dt=(w=(D=tt).getBoundingClientRect(),P=D.ownerDocument,F=P.body,V=P.documentElement,H=V.clientTop||F.clientTop||0,J=V.clientLeft||F.clientLeft||0,{y:w.top+(g.win.pageYOffset||V.scrollTop||F.scrollTop)-H,x:w.left+(g.win.pageXOffset||V.scrollLeft||F.scrollLeft)-J}),ct=tt.createSVGRect();ct.x=x-dt.x,ct.y=O-dt.y,ct.width=ct.height=1;var at=tt.getIntersectionList(ct,null);at.length&&(ot=at[at.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(x){var O=this.set();return this.forEach(function(D){c.isBBoxIntersect(D.getBBox(),x)&&O.push(D)}),O},u.getById=function(x){for(var O=this.bottom;O;){if(O.id==x)return O;O=O.next}return null},u.forEach=function(x,O){for(var D=this.bottom;D;){if(x.call(O,D)===!1)return this;D=D.next}return this},u.getElementsByPoint=function(x,O){var D=this.set();return this.forEach(function(w){w.isPointInside(x,O)&&D.push(w)}),D},At.isPointInside=function(x,O){var D=this.realPath=re[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(D=c.transformPath(D,this.attr("transform"))),c.isPointInsidePath(D,x,O)},At.getBBox=function(x){if(this.removed)return{};var O=this._;return x?(!O.dirty&&O.bboxwt||(this.realPath=re[this.type](this),O.bboxwt=Dr(this.realPath),O.bboxwt.toString=hr,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=hr,O.dirty=O.dirtyT=0),O.bbox)},At.clone=function(){if(this.removed)return null;var x=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(x),x},At.glow=function(x){if(this.type=="text")return null;var O={width:((x=x||{}).width||10)+(+this.attr("stroke-width")||1),fill:x.fill||!1,opacity:x.opacity==null?.5:x.opacity,offsetx:x.offsetx||0,offsety:x.offsety||0,color:x.color||"#000"},D=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 V=1;V<D+1;V++)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/D*V).toFixed(3),opacity:+(O.opacity/D).toFixed(3)}));return P.insertBefore(this).translate(O.offsetx,O.offsety)};var fe=function(x,O,D,w,P,F,V,H,J){return J==null?Tr(x,O,D,w,P,F,V,H):c.findDotsAtSegment(x,O,D,w,P,F,V,H,function(tt,ot,dt,ct,at,ft,_t,pt,ht){if(!(ht<0||Tr(tt,ot,dt,ct,at,ft,_t,pt)<ht)){var Rt,bt=.5,Et=1-bt;for(Rt=Tr(tt,ot,dt,ct,at,ft,_t,pt,Et);lt(Rt-ht)>.01;)Rt=Tr(tt,ot,dt,ct,at,ft,_t,pt,Et+=(Rt<ht?1:-1)*(bt/=2));return Et}}(x,O,D,w,P,F,V,H,J))},Re=function(x,O){return function(D,w,P){for(var F,V,H,J,tt,ot="",dt={},ct=0,at=0,ft=(D=Hn(D)).length;at<ft;at++){if((H=D[at])[0]=="M")F=+H[1],V=+H[2];else{if(ct+(J=fe(F,V,H[1],H[2],H[3],H[4],H[5],H[6]))>w){if(O&&!dt.start){if(ot+=["C"+(tt=fe(F,V,H[1],H[2],H[3],H[4],H[5],H[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,H[5],H[6]].join(),ct+=J,F=+H[5],V=+H[6];continue}if(!x&&!O)return{x:(tt=fe(F,V,H[1],H[2],H[3],H[4],H[5],H[6],w-ct)).x,y:tt.y,alpha:tt.alpha}}ct+=J,F=+H[5],V=+H[6]}ot+=H.shift()+H}return dt.end=ot,(tt=x?ct:O?dt:c.findDotsAtSegment(F,V,H[0],H[1],H[2],H[3],H[4],H[5],1)).alpha&&(tt={x:tt.x,y:tt.y,alpha:tt.alpha}),tt}},Be=Re(1),Ge=Re(),Se=Re(0,1);c.getTotalLength=Be,c.getPointAtLength=Ge,c.getSubpath=function(x,O,D){if(this.getTotalLength(x)-D<1e-6)return Se(x,O).end;var w=Se(x,D,1);return O?Se(w,O).end:w},At.getTotalLength=function(){var x=this.getPath();if(x)return this.node.getTotalLength?this.node.getTotalLength():Be(x)},At.getPointAtLength=function(x){var O=this.getPath();if(O)return Ge(O,x)},At.getPath=function(){var x,O=c._getPath[this.type];if(this.type!="text"&&this.type!="set")return O&&(x=O(this)),x},At.getSubpath=function(x,O){var D=this.getPath();if(D)return c.getSubpath(D,x,O)};var ce=c.easing_formulas={linear:function(x){return x},"<":function(x){return xt(x,1.7)},">":function(x){return xt(x,.48)},"<>":function(x){var O=.48-x/1.04,D=W.sqrt(.1734+O*O),w=D-O,P=-D-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(x){var O=1.70158;return x*x*((O+1)*x-O)},backOut:function(x){var O=1.70158;return(x-=1)*x*((O+1)*x+O)+1},elastic:function(x){return x==!!x?x:xt(2,-10*x)*W.sin(2*Ct*(x-.075)/.3)+1},bounce:function(x){var O=7.5625,D=2.75;return x<1/D?O*x*x:x<2/D?O*(x-=1.5/D)*x+.75:x<2.5/D?O*(x-=2.25/D)*x+.9375:O*(x-=2.625/D)*x+.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=[],He=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(x){setTimeout(x,16)},Ir=function(){for(var x=+new Date,O=0;O<Bt.length;O++){var D=Bt[O];if(!D.el.removed&&!D.paused){var w,P,F=x-D.start,V=D.ms,H=D.easing,J=D.from,tt=D.diff,ot=D.to,dt=(D.t,D.el),ct={},at={};if(D.initstatus?(F=(D.initstatus*D.anim.top-D.prev)/(D.percent-D.prev)*V,D.status=D.initstatus,delete D.initstatus,D.stop&&Bt.splice(O--,1)):D.status=(D.prev+(D.percent-D.prev)*(F/V))/D.anim.top,!(F<0))if(F<V){var ft=H(F/V);for(var _t in J)if(J[p](_t)){switch(q[_t]){case $t:w=+J[_t]+ft*V*tt[_t];break;case"colour":w="rgb("+[rn(y(J[_t].r+ft*V*tt[_t].r)),rn(y(J[_t].g+ft*V*tt[_t].g)),rn(y(J[_t].b+ft*V*tt[_t].b))].join(",")+")";break;case"path":w=[];for(var pt=0,ht=J[_t].length;pt<ht;pt++){w[pt]=[J[_t][pt][0]];for(var Rt=1,bt=J[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=+J[_t][pt][Rt]+ft*V*tt[_t][pt][Rt];w[pt]=w[pt].join(k)}w=w.join(k);break;case"transform":if(tt[_t].real)for(w=[],pt=0,ht=J[_t].length;pt<ht;pt++)for(w[pt]=[J[_t][pt][0]],Rt=1,bt=J[_t][pt].length;Rt<bt;Rt++)w[pt][Rt]=J[_t][pt][Rt]+ft*V*tt[_t][pt][Rt];else{var Et=function(se){return+J[_t][se]+ft*V*tt[_t][se]};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]=+J[_t][pt]+ft*V*tt[_t][pt];break;default:var wt=[][m](J[_t]);for(w=[],pt=dt.paper.customAttributes[_t].length;pt--;)w[pt]=+wt[pt]+ft*V*tt[_t][pt]}ct[_t]=w}dt.attr(ct),function(se,te,ae){setTimeout(function(){a("raphael.anim.frame."+se,te,ae)})}(dt.id,dt,D.anim)}else{if(function(se,te,ae){setTimeout(function(){a("raphael.anim.frame."+te.id,te,ae),a("raphael.anim.finish."+te.id,te,ae),c.is(se,"function")&&se.call(te)})}(D.callback,dt,D.anim),dt.attr(ot),Bt.splice(O--,1),D.repeat>1&&!D.next){for(P in ot)ot[p](P)&&(at[P]=D.totalOrigin[P]);D.el.attr(at),yr(D.anim,D.el,D.anim.percents[0],null,D.totalOrigin,D.repeat-1)}D.next&&!D.stop&&yr(D.anim,D.el,D.next,null,D.totalOrigin,D.repeat)}}}Bt.length&&He(Ir)},rn=function(x){return x>255?255:x<0?0:x};function er(x,O,D,w,P,F){var V=3*O,H=3*(w-O)-V,J=1-V-H,tt=3*D,ot=3*(P-D)-tt,dt=1-tt-ot;function ct(at){return((J*at+H)*at+V)*at}return function(at,ft){var _t=function(pt,ht){var Rt,bt,Et,wt,se,te;for(Et=pt,te=0;te<8;te++){if(wt=ct(Et)-pt,lt(wt)<ht)return Et;if(lt(se=(3*J*Et+2*H)*Et+V)<1e-6)break;Et-=wt/se}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}(at,ft);return((dt*_t+ot)*_t+tt)*_t}(x,1/(200*F))}function tr(x,O){var D=[],w={};if(this.ms=O,this.times=1,x){for(var P in x)x[p](P)&&(w[C(P)]=x[P],D.push(C(P)));D.sort(qt)}this.anim=w,this.top=D[D.length-1],this.percents=D}function yr(x,O,D,w,P,F){D=C(D);var V,H,J,tt,ot,dt,ct=x.ms,at={},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==x){pt.percent!=D?(Bt.splice(ht,1),J=1):H=pt,O.attr(pt.totalOrigin);break}}else w=+ft;for(var ht=0,Rt=x.percents.length;ht<Rt;ht++){if(x.percents[ht]==D||x.percents[ht]>w*x.top){D=x.percents[ht],ot=x.percents[ht-1]||0,ct=ct/x.top*(D-ot),tt=x.percents[ht+1],V=x.anim[D];break}w&&O.attr(x.anim[x.percents[ht]])}if(V){if(H)H.initstatus=w,H.start=new Date-H.ms*w;else{for(var bt in V)if(V[p](bt)&&(q[p](bt)||O.paper.customAttributes[p](bt)))switch(at[bt]=O.attr(bt),at[bt]==null&&(at[bt]=G[bt]),ft[bt]=V[bt],q[bt]){case $t:_t[bt]=(ft[bt]-at[bt])/ct;break;case"colour":at[bt]=c.getRGB(at[bt]);var Et=c.getRGB(ft[bt]);_t[bt]={r:(Et.r-at[bt].r)/ct,g:(Et.g-at[bt].g)/ct,b:(Et.b-at[bt].b)/ct};break;case"path":var wt=Hn(at[bt],ft[bt]),se=wt[1];for(at[bt]=wt[0],_t[bt]=[],ht=0,Rt=at[bt].length;ht<Rt;ht++){_t[bt][ht]=[0];for(var te=1,ae=at[bt][ht].length;te<ae;te++)_t[bt][ht][te]=(se[ht][te]-at[bt][ht][te])/ct}break;case"transform":var Rs=O._,Jl=Q(Rs[bt],ft[bt]);if(Jl)for(at[bt]=Jl.from,ft[bt]=Jl.to,_t[bt]=[],_t[bt].real=!0,ht=0,Rt=at[bt].length;ht<Rt;ht++)for(_t[bt][ht]=[at[bt][ht][0]],te=1,ae=at[bt][ht].length;te<ae;te++)_t[bt][ht][te]=(ft[bt][ht][te]-at[bt][ht][te])/ct;else{var nn=O.matrix||new Z,li={_:{transform:Rs.transform},getBBox:function(){return O.getBBox(1)}};at[bt]=[nn.a,nn.b,nn.c,nn.d,nn.e,nn.f],L(li,ft[bt]),ft[bt]=li._.transform,_t[bt]=[(li.matrix.a-nn.a)/ct,(li.matrix.b-nn.b)/ct,(li.matrix.c-nn.c)/ct,(li.matrix.d-nn.d)/ct,(li.matrix.e-nn.e)/ct,(li.matrix.f-nn.f)/ct]}break;case"csv":var js=A(V[bt])[R](d),Ds=A(at[bt])[R](d);if(bt=="clip-rect")for(at[bt]=Ds,_t[bt]=[],ht=Ds.length;ht--;)_t[bt][ht]=(js[ht]-at[bt][ht])/ct;ft[bt]=js;break;default:for(js=[][m](V[bt]),Ds=[][m](at[bt]),_t[bt]=[],ht=O.paper.customAttributes[bt].length;ht--;)_t[bt][ht]=((js[ht]||0)-(Ds[ht]||0))/ct}var ah=V.easing,Fi=c.easing_formulas[ah];if(!Fi)if((Fi=A(ah).match($))&&Fi.length==5){var Qo=Fi;Fi=function(lh){return er(lh,+Qo[1],+Qo[2],+Qo[3],+Qo[4],ct)}}else Fi=Qt;if(pt={anim:x,percent:D,timestamp:dt=V.start||x.start||+new Date,start:dt+(x.del||0),status:0,initstatus:w||0,stop:!1,ms:ct,easing:Fi,from:at,diff:_t,to:ft,el:O,callback:V.callback,prev:ot,next:tt,repeat:F||x.times,origin:O.attr(),totalOrigin:P},Bt.push(pt),w&&!H&&!J&&(pt.stop=!0,pt.start=new Date-ct*w,Bt.length==1))return Ir();J&&(pt.start=new Date-pt.ms*w),Bt.length==1&&He(Ir)}a("raphael.anim.start."+O.id,O,x)}}function kn(x){for(var O=0;O<Bt.length;O++)Bt[O].el.paper==x&&Bt.splice(O--,1)}At.animateWith=function(x,O,D,w,P,F){if(this.removed)return F&&F.call(this),this;var V=D instanceof tr?D:c.animation(D,w,P,F);yr(V,this,V.percents[0],null,this.attr());for(var H=0,J=Bt.length;H<J;H++)if(Bt[H].anim==O&&Bt[H].el==x){Bt[J-1].start=Bt[H].start;break}return this},At.onAnimation=function(x){return x?a.on("raphael.anim.frame."+this.id,x):a.unbind("raphael.anim.frame."+this.id),this},tr.prototype.delay=function(x){var O=new tr(this.anim,this.ms);return O.times=this.times,O.del=+x||0,O},tr.prototype.repeat=function(x){var O=new tr(this.anim,this.ms);return O.del=this.del,O.times=W.floor(nt(x,0))||1,O},c.animation=function(x,O,D,w){if(x instanceof tr)return x;!c.is(D,"function")&&D||(w=w||D||null,D=null),x=Object(x),O=+O||0;var P,F,V={};for(F in x)x[p](F)&&C(F)!=F&&C(F)+"%"!=F&&(P=!0,V[F]=x[F]);if(P)return D&&(V.easing=D),w&&(V.callback=w),new tr({100:V},O);if(w){var H=0;for(var J in x){var tt=M(J);x[p](J)&&tt>H&&(H=tt)}!x[H+="%"].callback&&(x[H].callback=w)}return new tr(x,O)},At.animate=function(x,O,D,w){if(this.removed)return w&&w.call(this),this;var P=x instanceof tr?x:c.animation(x,O,D,w);return yr(P,this,P.percents[0],null,this.attr()),this},At.setTime=function(x,O){return x&&O!=null&&this.status(x,rt(O,x.ms)/x.ms),this},At.status=function(x,O){var D,w,P=[],F=0;if(O!=null)return yr(x,this,-1,rt(O,1)),this;for(D=Bt.length;F<D;F++)if((w=Bt[F]).el.id==this.id&&(!x||w.anim==x)){if(x)return w.status;P.push({anim:w.anim,status:w.status})}return x?0:P},At.pause=function(x){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||x&&Bt[O].anim!=x||a("raphael.anim.pause."+this.id,this,Bt[O].anim)!==!1&&(Bt[O].paused=!0);return this},At.resume=function(x){for(var O=0;O<Bt.length;O++)if(Bt[O].el.id==this.id&&(!x||Bt[O].anim==x)){var D=Bt[O];a("raphael.anim.resume."+this.id,this,D.anim)!==!1&&(delete D.paused,this.status(D.anim,D.status))}return this},At.stop=function(x){for(var O=0;O<Bt.length;O++)Bt[O].el.id!=this.id||x&&Bt[O].anim!=x||a("raphael.anim.stop."+this.id,this,Bt[O].anim)!==!1&&Bt.splice(O--,1);return this},a.on("raphael.remove",kn),a.on("raphael.clear",kn),At.toString=function(){return"Raphaël’s object"};var En,kr,Cn,qn,Jo=function(x){if(this.items=[],this.length=0,this.type="set",x)for(var O=0,D=x.length;O<D;O++)!x[O]||x[O].constructor!=At.constructor&&x[O].constructor!=Jo||(this[this.items.length]=this.items[this.items.length]=x[O],this.length++)},_r=Jo.prototype;for(var Wo in _r.push=function(){for(var x,O,D=0,w=arguments.length;D<w;D++)!(x=arguments[D])||x.constructor!=At.constructor&&x.constructor!=Jo||(this[O=this.items.length]=this.items[O]=x,this.length++);return this},_r.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},_r.forEach=function(x,O){for(var D=0,w=this.items.length;D<w;D++)if(x.call(O,this.items[D],D)===!1)return this;return this},At)At[p](Wo)&&(_r[Wo]=function(x){return function(){var O=arguments;return this.forEach(function(D){D[x][_](D,O)})}}(Wo));return _r.attr=function(x,O){if(x&&c.is(x,st)&&c.is(x[0],"object"))for(var D=0,w=x.length;D<w;D++)this.items[D].attr(x[D]);else for(var P=0,F=this.items.length;P<F;P++)this.items[P].attr(x,O);return this},_r.clear=function(){for(;this.length;)this.pop()},_r.splice=function(x,O,D){x=x<0?nt(this.length+x,0):x,O=nt(0,rt(this.length-x,O));var w,P=[],F=[],V=[];for(w=2;w<arguments.length;w++)V.push(arguments[w]);for(w=0;w<O;w++)F.push(this[x+w]);for(;w<this.length-x;w++)P.push(this[x+w]);var H=V.length;for(w=0;w<H+P.length;w++)this.items[x+w]=this[x+w]=w<H?V[w]:P[w-H];for(w=this.items.length=this.length-=O-H;this[w];)delete this[w++];return new Jo(F)},_r.exclude=function(x){for(var O=0,D=this.length;O<D;O++)if(this[O]==x)return this.splice(O,1),!0},_r.animate=function(x,O,D,w){(c.is(D,"function")||!D)&&(w=D||null);var P,F,V=this.items.length,H=V,J=this;if(!V)return this;w&&(F=function(){!--V&&w.call(J)}),D=c.is(D,"string")?D:F;var tt=c.animation(x,O,D,F);for(P=this.items[--H].animate(tt);H--;)this.items[H]&&!this.items[H].removed&&this.items[H].animateWith(P,tt,tt),this.items[H]&&!this.items[H].removed||V--;return this},_r.insertAfter=function(x){for(var O=this.items.length;O--;)this.items[O].insertAfter(x);return this},_r.getBBox=function(){for(var x=[],O=[],D=[],w=[],P=this.items.length;P--;)if(!this.items[P].removed){var F=this.items[P].getBBox();x.push(F.x),O.push(F.y),D.push(F.x+F.width),w.push(F.y+F.height)}return{x:x=rt[_](0,x),y:O=rt[_](0,O),x2:D=nt[_](0,D),y2:w=nt[_](0,w),width:D-x,height:w-O}},_r.clone=function(x){x=this.paper.set();for(var O=0,D=this.items.length;O<D;O++)x.push(this.items[O].clone());return x},_r.toString=function(){return"Raphaël‘s set"},_r.glow=function(x){var O=this.paper.set();return this.forEach(function(D,w){var P=D.glow(x);P==null||P.forEach(function(F,V){O.push(F)})}),O},_r.isPointInside=function(x,O){var D=!1;return this.forEach(function(w){if(w.isPointInside(x,O))return D=!0,!1}),D},c.registerFont=function(x){if(!x.face)return x;this.fonts=this.fonts||{};var O={w:x.w,face:{},glyphs:{}},D=x.face["font-family"];for(var w in x.face)x.face[p](w)&&(O.face[w]=x.face[w]);if(this.fonts[D]?this.fonts[D].push(O):this.fonts[D]=[O],!x.svg){for(var P in O.face["units-per-em"]=M(x.face["units-per-em"],10),x.glyphs)if(x.glyphs[p](P)){var F=x.glyphs[P];if(O.glyphs[P]={w:F.w,k:{},d:F.d&&"M"+F.d.replace(/[mlcxtrv]/g,function(H){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[H]||"M"})+"z"},F.k)for(var V in F.k)F[p](V)&&(O.glyphs[P].k[V]=F.k[V])}}return x},u.getFont=function(x,O,D,w){if(w=w||"normal",D=D||"normal",O=+O||{normal:400,bold:700,lighter:300,bolder:800}[O]||400,c.fonts){var P,F=c.fonts[x];if(!F){var V=new RegExp("(^|\\s)"+x.replace(/[^\w\d\s+!~.:_-]/g,N)+"(\\s|$)","i");for(var H in c.fonts)if(c.fonts[p](H)&&V.test(H)){F=c.fonts[H];break}}if(F)for(var J=0,tt=F.length;J<tt&&((P=F[J]).face["font-weight"]!=O||P.face["font-style"]!=D&&P.face["font-style"]||P.face["font-stretch"]!=w);J++);return P}},u.print=function(x,O,D,w,P,F,V,H){F=F||"middle",V=nt(rt(V||0,1),-1),H=nt(rt(H||1,3),1);var J,tt=A(D)[R](N),ot=0,dt=0,ct=N;if(c.is(w,"string")&&(w=this.getFont(w)),w){J=(P||16)/w.face["units-per-em"];for(var at=w.face.bbox[R](d),ft=+at[0],_t=at[3]-at[1],pt=0,ht=+at[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*H;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*V:0,dt=1}wt&&wt.d&&(ct+=c.transformPath(wt.d,["t",ot*J,pt*J,"s",J,J,ft,ht,"t",(x-ft)/J,(O-ht)/J]))}}return this.path(ct).attr({fill:"#000",stroke:"none"})},u.add=function(x){if(c.is(x,"array"))for(var O,D=this.set(),w=0,P=x.length;w<P;w++)O=x[w]||{},f[p](O.type)&&D.push(this[O.type]().attr(O));return D},c.format=function(x,O){var D=c.is(O,st)?[0][m](O):arguments;return x&&c.is(x,"string")&&D.length-1&&(x=x.replace(h,function(w,P){return D[++P]==null?N:D[P]})),x||N},c.fullfill=(En=/\{([^\}]+)\}/g,kr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(x,O){return String(x).replace(En,function(D,w){return function(P,F,V){var H=V;return F.replace(kr,function(J,tt,ot,dt,ct){tt=tt||dt,H&&(tt in H&&(H=H[tt]),typeof H=="function"&&ct&&(H=H()))}),H=(H==null||H==V?P:H)+""}(D,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,a.on("raphael.DOMload",function(){l=!0}),(Cn=document).readyState==null&&Cn.addEventListener&&(Cn.addEventListener("DOMContentLoaded",qn=function(){Cn.removeEventListener("DOMContentLoaded",qn,!1),Cn.readyState="complete"},!1),Cn.readyState="loading"),function x(){/in/.test(Cn.readyState)?setTimeout(x,9):c.eve("raphael.DOMload")}(),c}).apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0),i(3),i(4)],(s=(function(a){return a}).apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s,a,c,l,u,d,f,h,p,g,v,b,_;c="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,d=function(m,S){return m-S},f={n:{}},h=function(){for(var m=0,S=this.length;m<S;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,b=Array.isArray||function(m){return m instanceof Array||g.call(m)=="[object Array]"},(_=function(m,S){var N,k=a,A=Array.prototype.slice.call(arguments,2),R=_.listeners(m),z=0,B=[],Y={},W=[],nt=s;W.firstDefined=h,W.lastDefined=p,s=m,a=0;for(var rt=0,lt=R.length;rt<lt;rt++)"zIndex"in R[rt]&&(B.push(R[rt].zIndex),R[rt].zIndex<0&&(Y[R[rt].zIndex]=R[rt]));for(B.sort(d);B[z]<0;)if(N=Y[B[z++]],W.push(N.apply(S,A)),a)return a=k,W;for(rt=0;rt<lt;rt++)if("zIndex"in(N=R[rt]))if(N.zIndex==B[z]){if(W.push(N.apply(S,A)),a)break;do if((N=Y[B[++z]])&&W.push(N.apply(S,A)),a)break;while(N)}else Y[N.zIndex]=N;else if(W.push(N.apply(S,A)),a)break;return a=k,s=nt,W})._events=f,_.listeners=function(m){var S,N,k,A,R,z,B,Y,W=b(m)?m:m.split(l),nt=f,rt=[nt],lt=[];for(A=0,R=W.length;A<R;A++){for(Y=[],z=0,B=rt.length;z<B;z++)for(N=[(nt=rt[z].n)[W[A]],nt["*"]],k=2;k--;)(S=N[k])&&(Y.push(S),lt=lt.concat(S.f||[]));rt=Y}return lt},_.separator=function(m){m?(m="["+(m=v(m).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(m)):l=/[\.\/]/},_.on=function(m,S){if(typeof S!="function")return function(){};for(var N=b(m)?b(m[0])?m:[m]:v(m).split(u),k=0,A=N.length;k<A;k++)(function(R){for(var z,B=b(R)?R:v(R).split(l),Y=f,W=0,nt=B.length;W<nt;W++)Y=(Y=Y.n).hasOwnProperty(B[W])&&Y[B[W]]||(Y[B[W]]={n:{}});for(Y.f=Y.f||[],W=0,nt=Y.f.length;W<nt;W++)if(Y.f[W]==S){z=!0;break}!z&&Y.f.push(S)})(N[k]);return function(R){+R==+R&&(S.zIndex=+R)}},_.f=function(m){var S=[].slice.call(arguments,1);return function(){_.apply(null,[m,null].concat(S).concat([].slice.call(arguments,0)))}},_.stop=function(){a=1},_.nt=function(m){var S=b(s)?s.join("."):s;return m?new RegExp("(?:\\.|\\/|^)"+m+"(?:\\.|\\/|$)").test(S):S},_.nts=function(){return b(s)?s:s.split(l)},_.off=_.unbind=function(m,S){if(m){var N=b(m)?b(m[0])?m:[m]:v(m).split(u);if(N.length>1)for(var k=0,A=N.length;k<A;k++)_.off(N[k],S);else{N=b(m)?m:v(m).split(l);var R,z,B,Y,W,nt=[f];for(k=0,A=N.length;k<A;k++)for(Y=0;Y<nt.length;Y+=B.length-2){if(B=[Y,1],R=nt[Y].n,N[k]!="*")R[N[k]]&&B.push(R[N[k]]);else for(z in R)R[c](z)&&B.push(R[z]);nt.splice.apply(nt,B)}for(k=0,A=nt.length;k<A;k++)for(R=nt[k];R.n;){if(S){if(R.f){for(Y=0,W=R.f.length;Y<W;Y++)if(R.f[Y]==S){R.f.splice(Y,1);break}!R.f.length&&delete R.f}for(z in R.n)if(R.n[c](z)&&R.n[z].f){var rt=R.n[z].f;for(Y=0,W=rt.length;Y<W;Y++)if(rt[Y]==S){rt.splice(Y,1);break}!rt.length&&delete R.n[z].f}}else for(z in delete R.f,R.n)R.n[c](z)&&R.n[z].f&&delete R.n[z].f;R=R.n}}}else _._events=f={n:{}}},_.once=function(m,S){var N=function(){return _.off(m,N),S.apply(this,arguments)};return _.on(m,N)},_.version="0.5.0",_.toString=function(){return"You are running Eve 0.5.0"},r.exports?r.exports=_:(o=(function(){return _}).apply(n,[]))===void 0||(r.exports=o)},function(r,n,i){var o,s;o=[i(0)],(s=(function(a){if(!a||a.svg){var c="hasOwnProperty",l=String,u=parseFloat,d=parseInt,f=Math,h=f.max,p=f.abs,g=f.pow,v=/[, ]+/,b=a.eve,_="",m=" ",S="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"},k={};a.toString=function(){return`Your browser supports SVG.
40
- You are running Raphaël `+this.version};var A=function(T,E){if(E)for(var $ in typeof T=="string"&&(T=A(T)),E)E[c]($)&&($.substring(0,6)=="xlink:"?T.setAttributeNS(S,$.substring(6),l(E[$])):T.setAttribute($,l(E[$])));else(T=a._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 $="linear",y=T.id+E,C=.5,M=.5,I=T.node,G=T.paper,q=I.style,et=a._g.doc.getElementById(y);if(!et){if(E=(E=l(E).replace(a._radial_gradient,function(qt,Qt,It){if($="radial",Qt&&It){C=u(Qt);var de=2*((M=u(It))>.5)-1;g(C-.5,2)+g(M-.5,2)>.25&&(M=f.sqrt(.25-g(C-.5,2))*de+.5)&&M!=.5&&(M=M.toFixed(5)-1e-5*de)}return _})).split(/\s*\-\s*/),$=="linear"){var it=E.shift();if(it=-u(it),isNaN(it))return null;var ut=[0,0,f.cos(a.rad(it)),f.sin(a.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 Ut=a._parseDots(E);if(!Ut)return null;if(y=y.replace(/[\(\)\s,\xb0#]/g,"_"),T.gradient&&y!=T.gradient.id&&(G.defs.removeChild(T.gradient),delete T.gradient),!T.gradient){et=A($+"Gradient",{id:y}),T.gradient=et,A(et,$=="radial"?{fx:C,fy:M}:{x1:ut[0],y1:ut[1],x2:ut[2],y2:ut[3],gradientTransform:T.matrix.invert()}),G.defs.appendChild(et);for(var Pt=0,Nt=Ut.length;Pt<Nt;Pt++)et.appendChild(A("stop",{offset:Ut[Pt].offset?Ut[Pt].offset:Pt?"100%":"0%","stop-color":Ut[Pt].color||"#fff","stop-opacity":isFinite(Ut[Pt].opacity)?Ut[Pt].opacity:1}))}}return A(I,{fill:z(y),opacity:1,"fill-opacity":1}),q.fill=_,q.opacity=1,q.fillOpacity=1,1},z=function(T){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+T+"')";var E,$=document.location;return"url('"+($.protocol+"//"+$.host+$.pathname+$.search)+"#"+T+"')"},B=function(T){var E=T.getBBox(1);A(T.pattern,{patternTransform:T.matrix.invert()+" translate("+E.x+","+E.y+")"})},Y=function(T,E,$){if(T.type=="path"){for(var y,C,M,I,G,q=l(E).toLowerCase().split("-"),et=T.paper,it=$?"end":"start",ut=T.node,Tt=T.attrs,Ut=Tt["stroke-width"],Pt=q.length,Nt="classic",qt=3,Qt=3,It=5;Pt--;)switch(q[Pt]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":Nt=q[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,It+=2,M=1,I=$?4:1,G={fill:"none",stroke:Tt.stroke}):(I=M=qt/2,G={fill:Tt.stroke,stroke:"none"}),T._.arrows?$?(T._.arrows.endPath&&k[T._.arrows.endPath]--,T._.arrows.endMarker&&k[T._.arrows.endMarker]--):(T._.arrows.startPath&&k[T._.arrows.startPath]--,T._.arrows.startMarker&&k[T._.arrows.startMarker]--):T._.arrows={},Nt!="none"){var de="raphael-marker-"+Nt,re="raphael-marker-"+it+Nt+qt+Qt+"-obj"+T.id;a._g.doc.getElementById(de)?k[de]++:(et.defs.appendChild(A(A("path"),{"stroke-linecap":"round",d:N[Nt],id:de})),k[de]=1);var he,Vt=a._g.doc.getElementById(re);Vt?(k[re]++,he=Vt.getElementsByTagName("use")[0]):(Vt=A(A("marker"),{id:re,markerHeight:Qt,markerWidth:qt,orient:"auto",refX:I,refY:Qt/2}),he=A(A("use"),{"xlink:href":"#"+de,transform:($?"rotate(180 "+qt/2+" "+Qt/2+") ":_)+"scale("+qt/It+","+Qt/It+")","stroke-width":(1/((qt/It+Qt/It)/2)).toFixed(4)}),Vt.appendChild(he),et.defs.appendChild(Vt),k[re]=1),A(he,G);var Ie=M*(Nt!="diamond"&&Nt!="oval");$?(y=T._.arrows.startdx*Ut||0,C=a.getTotalLength(Tt.path)-Ie*Ut):(y=Ie*Ut,C=a.getTotalLength(Tt.path)-(T._.arrows.enddx*Ut||0)),(G={})["marker-"+it]="url(#"+re+")",(C||y)&&(G.d=a.getSubpath(Tt.path,y,C)),A(ut,G),T._.arrows[it+"Path"]=de,T._.arrows[it+"Marker"]=re,T._.arrows[it+"dx"]=Ie,T._.arrows[it+"Type"]=Nt,T._.arrows[it+"String"]=E}else $?(y=T._.arrows.startdx*Ut||0,C=a.getTotalLength(Tt.path)-y):(y=0,C=a.getTotalLength(Tt.path)-(T._.arrows.enddx*Ut||0)),T._.arrows[it+"Path"]&&A(ut,{d:a.getSubpath(Tt.path,y,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(G in k)if(k[c](G)&&!k[G]){var Fe=a._g.doc.getElementById(G);Fe&&Fe.parentNode.removeChild(Fe)}}},W={"-":[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,$){if(E=W[l(E).toLowerCase()]){for(var y=T.attrs["stroke-width"]||"1",C={round:y,square:y,butt:0}[T.attrs["stroke-linecap"]||$["stroke-linecap"]]||0,M=[],I=E.length;I--;)M[I]=E[I]*y+(I%2?1:-1)*C;A(T.node,{"stroke-dasharray":M.join(",")})}else A(T.node,{"stroke-dasharray":"none"})},rt=function(T,E){var $=T.node,y=T.attrs,C=$.style.visibility;for(var M in $.style.visibility="hidden",E)if(E[c](M)){if(!a._availableAttrs[c](M))continue;var I=E[M];switch(y[M]=I,M){case"blur":T.blur(I);break;case"title":var G=$.getElementsByTagName("title");if(G.length&&(G=G[0]))G.firstChild.nodeValue=I;else{G=A("title");var q=a._g.doc.createTextNode(I);G.appendChild(q),$.appendChild(G)}break;case"href":case"target":var et=$.parentNode;if(et.tagName.toLowerCase()!="a"){var it=A("a");et.insertBefore(it,$),it.appendChild($),et=it}M=="target"?et.setAttributeNS(S,"show",I=="blank"?"new":I):et.setAttributeNS(S,M,I);break;case"cursor":$.style.cursor=I;break;case"transform":T.transform(I);break;case"arrow-start":Y(T,I);break;case"arrow-end":Y(T,I,1);break;case"clip-rect":var ut=l(I).split(v);if(ut.length==4){T.clip&&T.clip.parentNode.parentNode.removeChild(T.clip.parentNode);var Tt=A("clipPath"),Ut=A("rect");Tt.id=a.createUUID(),A(Ut,{x:ut[0],y:ut[1],width:ut[2],height:ut[3]}),Tt.appendChild(Ut),T.paper.defs.appendChild(Tt),A($,{"clip-path":"url(#"+Tt.id+")"}),T.clip=Ut}if(!I){var Pt=$.getAttribute("clip-path");if(Pt){var Nt=a._g.doc.getElementById(Pt.replace(/(^url\(#|\)$)/g,_));Nt&&Nt.parentNode.removeChild(Nt),A($,{"clip-path":_}),delete T.clip}}break;case"path":T.type=="path"&&(A($,{d:I?y.path=a._pathToAbsolute(I):"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($.setAttribute(M,I),T._.dirty=1,!y.fx)break;M="x",I=y.x;case"x":y.fx&&(I=-y.x-(y.width||0));case"rx":if(M=="rx"&&T.type=="rect")break;case"cx":$.setAttribute(M,I),T.pattern&&B(T),T._.dirty=1;break;case"height":if($.setAttribute(M,I),T._.dirty=1,!y.fy)break;M="y",I=y.y;case"y":y.fy&&(I=-y.y-(y.height||0));case"ry":if(M=="ry"&&T.type=="rect")break;case"cy":$.setAttribute(M,I),T.pattern&&B(T),T._.dirty=1;break;case"r":T.type=="rect"?A($,{rx:I,ry:I}):$.setAttribute(M,I),T._.dirty=1;break;case"src":T.type=="image"&&$.setAttributeNS(S,"href",I);break;case"stroke-width":T._.sx==1&&T._.sy==1||(I/=h(p(T._.sx),p(T._.sy))||1),$.setAttribute(M,I),y["stroke-dasharray"]&&nt(T,y["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,I,E);break;case"fill":var qt=l(I).match(a._ISURL);if(qt){Tt=A("pattern");var Qt=A("image");Tt.id=a.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){a._preload(qt[1],function(){var Ie=this.offsetWidth,Fe=this.offsetHeight;A(Vt,{width:Ie,height:Fe}),A(Qt,{width:Ie,height:Fe})})}(Tt),T.paper.defs.appendChild(Tt),A($,{fill:"url(#"+Tt.id+")"}),T.pattern=Tt,T.pattern&&B(T);break}var It=a.getRGB(I);if(It.error){if((T.type=="circle"||T.type=="ellipse"||l(I).charAt()!="r")&&R(T,I)){if("opacity"in y||"fill-opacity"in y){var de=a._g.doc.getElementById($.getAttribute("fill").replace(/^url\(#|\)$/g,_));if(de){var re=de.getElementsByTagName("stop");A(re[re.length-1],{"stop-opacity":("opacity"in y?y.opacity:1)*("fill-opacity"in y?y["fill-opacity"]:1)})}}y.gradient=I,y.fill="none";break}}else delete E.gradient,delete y.gradient,!a.is(y.opacity,"undefined")&&a.is(E.opacity,"undefined")&&A($,{opacity:y.opacity}),!a.is(y["fill-opacity"],"undefined")&&a.is(E["fill-opacity"],"undefined")&&A($,{"fill-opacity":y["fill-opacity"]});It[c]("opacity")&&A($,{"fill-opacity":It.opacity>1?It.opacity/100:It.opacity});case"stroke":It=a.getRGB(I),$.setAttribute(M,It.hex),M=="stroke"&&It[c]("opacity")&&A($,{"stroke-opacity":It.opacity>1?It.opacity/100:It.opacity}),M=="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(I).charAt()!="r")&&R(T,I);break;case"opacity":y.gradient&&!y[c]("stroke-opacity")&&A($,{"stroke-opacity":I>1?I/100:I});case"fill-opacity":if(y.gradient){(de=a._g.doc.getElementById($.getAttribute("fill").replace(/^url\(#|\)$/g,_)))&&(re=de.getElementsByTagName("stop"),A(re[re.length-1],{"stop-opacity":I}));break}default:M=="font-size"&&(I=d(I,10)+"px");var he=M.replace(/(\-.)/g,function(Vt){return Vt.substring(1).toUpperCase()});$.style[he]=I,T._.dirty=1,$.setAttribute(M,I)}}lt(T,E),$.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 $=T.attrs,y=T.node,C=y.firstChild?d(a._g.doc.defaultView.getComputedStyle(y.firstChild,_).getPropertyValue("font-size"),10):10;if(E[c]("text")){for($.text=E.text;y.firstChild;)y.removeChild(y.firstChild);for(var M,I=l(E.text).split(`
41
- `),G=[],q=0,et=I.length;q<et;q++)M=A("tspan"),q&&A(M,{dy:1.2*C,x:$.x}),M.appendChild(a._g.doc.createTextNode(I[q])),y.appendChild(M),G[q]=M}else for(q=0,et=(G=y.getElementsByTagName("tspan")).length;q<et;q++)q?A(G[q],{dy:1.2*C,x:$.x}):A(G[0],{dy:0});A(y,{x:$.x,y:$.y}),T._.dirty=1;var it=T._getBBox(),ut=$.y-(it.y+it.height/2);ut&&a.is(ut,"finite")&&A(G[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=a.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=a.el;Ct.prototype=$t,$t.constructor=Ct,a._engine.path=function(T,E){var $=A("path");E.canvas&&E.canvas.appendChild($);var y=new Ct($,E);return y.type="path",rt(y,{fill:"none",stroke:"#000",path:T}),y},$t.rotate=function(T,E,$){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),$=u(T[2])),T=u(T[0]),$==null&&(E=$),E==null||$==null){var y=this.getBBox(1);E=y.x+y.width/2,$=y.y+y.height/2}return this.transform(this._.transform.concat([["r",T,E,$]])),this},$t.scale=function(T,E,$,y){if(this.removed)return this;if((T=l(T).split(v)).length-1&&(E=u(T[1]),$=u(T[2]),y=u(T[3])),T=u(T[0]),E==null&&(E=T),y==null&&($=y),$==null||y==null)var C=this.getBBox(1);return $=$??C.x+C.width/2,y=y??C.y+C.height/2,this.transform(this._.transform.concat([["s",T,E,$,y]])),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(a._extractTransform(this,T),this.clip&&A(this.clip,{transform:this.matrix.invert()}),this.pattern&&B(this),this.node&&A(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var $=this.attrs[c]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":$})}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 $ in E.__set__&&E.__set__.exclude(this),b.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),a._tear(this,E),T.parentNode.removeChild(T),this.removeData(),this)this[$]=typeof this[$]=="function"?a._removedFactory($):null;this.removed=!0}},$t._getBBox=function(){if(this.node.style.display=="none"){this.show();var T=!0}var E,$=!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"&&($=!0,E.display="");var y={};try{y=this.node.getBBox()}catch{y={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{y=y||{},$&&(E.display="none")}return T&&this.hide(),y},$t.attr=function(T,E){if(this.removed)return this;if(T==null){var $={};for(var y in this.attrs)this.attrs[c](y)&&($[y]=this.attrs[y]);return $.gradient&&$.fill=="none"&&($.fill=$.gradient)&&delete $.gradient,$.transform=this._.transform,$}if(E==null&&a.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),M={},I=0,G=C.length;I<G;I++)(T=C[I])in this.attrs?M[T]=this.attrs[T]:a.is(this.paper.customAttributes[T],"function")?M[T]=this.paper.customAttributes[T].def:M[T]=a._availableAttrs[T];return G-1?M:M[C[0]]}if(E==null&&a.is(T,"array")){for(M={},I=0,G=T.length;I<G;I++)M[T[I]]=this.attr(T[I]);return M}if(E!=null){var q={};q[T]=E}else T!=null&&a.is(T,"object")&&(q=T);for(var et in q)b("raphael.attr."+et+"."+this.id,this,q[et]);for(et in this.paper.customAttributes)if(this.paper.customAttributes[c](et)&&q[c](et)&&a.is(this.paper.customAttributes[et],"function")){var it=this.paper.customAttributes[et].apply(this,[].concat(q[et]));for(var ut in this.attrs[et]=q[et],it)it[c](ut)&&(q[ut]=it[ut])}return rt(this,q),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&&a._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),a._toback(this,this.paper),this.paper,this},$t.insertAfter=function(T){if(this.removed||!T)return this;var E=xt(this.node),$=xt(T.node||T[T.length-1].node);return $.nextSibling?$.parentNode.insertBefore(E,$.nextSibling):$.parentNode.appendChild(E),a._insertafter(this,T,this.paper),this},$t.insertBefore=function(T){if(this.removed||!T)return this;var E=xt(this.node),$=xt(T.node||T[0].node);return $.parentNode.insertBefore(E,$),a._insertbefore(this,T,this.paper),this},$t.blur=function(T){var E=this;if(+T!=0){var $=A("filter"),y=A("feGaussianBlur");E.attrs.blur=T,$.id=a.createUUID(),A(y,{stdDeviation:+T||1.5}),$.appendChild(y),E.paper.defs.appendChild($),E._blur=$,A(E.node,{filter:"url(#"+$.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},a._engine.circle=function(T,E,$,y){var C=A("circle");T.canvas&&T.canvas.appendChild(C);var M=new Ct(C,T);return M.attrs={cx:E,cy:$,r:y,fill:"none",stroke:"#000"},M.type="circle",A(C,M.attrs),M},a._engine.rect=function(T,E,$,y,C,M){var I=A("rect");T.canvas&&T.canvas.appendChild(I);var G=new Ct(I,T);return G.attrs={x:E,y:$,width:y,height:C,rx:M||0,ry:M||0,fill:"none",stroke:"#000"},G.type="rect",A(I,G.attrs),G},a._engine.ellipse=function(T,E,$,y,C){var M=A("ellipse");T.canvas&&T.canvas.appendChild(M);var I=new Ct(M,T);return I.attrs={cx:E,cy:$,rx:y,ry:C,fill:"none",stroke:"#000"},I.type="ellipse",A(M,I.attrs),I},a._engine.image=function(T,E,$,y,C,M){var I=A("image");A(I,{x:$,y,width:C,height:M,preserveAspectRatio:"none"}),I.setAttributeNS(S,"href",E),T.canvas&&T.canvas.appendChild(I);var G=new Ct(I,T);return G.attrs={x:$,y,width:C,height:M,src:E},G.type="image",G},a._engine.text=function(T,E,$,y){var C=A("text");T.canvas&&T.canvas.appendChild(C);var M=new Ct(C,T);return M.attrs={x:E,y:$,"text-anchor":"middle",text:y,"font-family":a._availableAttrs["font-family"],"font-size":a._availableAttrs["font-size"],stroke:"none",fill:"#000"},M.type="text",rt(M,M.attrs),M},a._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},a._engine.create=function(){var T=a._getContainer.apply(0,arguments),E=T&&T.container;if(!E)throw new Error("SVG container not found.");var $,y=T.x,C=T.y,M=T.width,I=T.height,G=A("svg"),q="overflow:hidden;";return y=y||0,C=C||0,A(G,{height:I=I||342,version:1.1,width:M=M||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(G.style.cssText=q+"position:absolute;left:"+y+"px;top:"+C+"px",a._g.doc.body.appendChild(G),$=1):(G.style.cssText=q+"position:relative",E.firstChild?E.insertBefore(G,E.firstChild):E.appendChild(G)),(E=new a._Paper).width=M,E.height=I,E.canvas=G,E.clear(),E._left=E._top=0,$&&(E.renderfix=function(){}),E.renderfix(),E},a._engine.setViewBox=function(T,E,$,y,C){b("raphael.setViewBox",this,this._viewBox,[T,E,$,y,C]);var M,I,G=this.getSize(),q=h($/G.width,y/G.height),et=this.top,it=C?"xMidYMid meet":"xMinYMin";for(T==null?(this._vbSize&&(q=1),delete this._vbSize,M="0 0 "+this.width+m+this.height):(this._vbSize=q,M=T+m+E+m+$+m+y),A(this.canvas,{viewBox:M,preserveAspectRatio:it});q&&et;)I="stroke-width"in et.attrs?et.attrs["stroke-width"]:1,et.attr({"stroke-width":I}),et._.dirty=1,et._.dirtyT=1,et=et.prev;return this._viewBox=[T,E,$,y,!!C],this},a.prototype.renderfix=function(){var T,E=this.canvas,$=E.style;try{T=E.getScreenCTM()||E.createSVGMatrix()}catch{T=E.createSVGMatrix()}var y=-T.e%1,C=-T.f%1;(y||C)&&(y&&(this._left=(this._left+y)%1,$.left=this._left+"px"),C&&(this._top=(this._top+C)%1,$.top=this._top+"px"))},a.prototype.clear=function(){a.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(a._g.doc.createTextNode("Created with Raphaël "+a.version)),T.appendChild(this.desc),T.appendChild(this.defs=A("defs"))},a.prototype.remove=function(){for(var T in b("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[T]=typeof this[T]=="function"?a._removedFactory(T):null};var st=a.st;for(var X in $t)$t[c](X)&&!st[c](X)&&(st[X]=function(T){return function(){var E=arguments;return this.forEach(function($){$[T].apply($,E)})}}(X))}}).apply(n,o))===void 0||(r.exports=s)},function(r,n,i){var o,s;o=[i(0)],(s=(function(a){if(!a||a.vml){var c="hasOwnProperty",l=String,u=parseFloat,d=Math,f=d.round,h=d.max,p=d.min,g=d.abs,v=/[, ]+/,b=a.eve,_=" ",m="",S={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},N=/([clmz]),?([^clmz]*)/gi,k=/ progid:\S+Blur\([^\)]+\)/g,A=/-?[^,\s-]+/g,R="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",z=21600,B={path:1,rect:1,image:1},Y={circle:1,ellipse:1},W=function(E,$,y){var C=a.matrix();return C.rotate(-E,.5,.5),{dx:C.x($,y),dy:C.y($,y)}},nt=function(E,$,y,C,M,I){var G=E._,q=E.matrix,et=G.fillpos,it=E.node,ut=it.style,Tt=1,Ut="",Pt=z/$,Nt=z/y;if(ut.visibility="hidden",$&&y){if(it.coordsize=g(Pt)+_+g(Nt),ut.rotation=I*($*y<0?-1:1),I){var qt=W(I,C,M);C=qt.dx,M=qt.dy}if($<0&&(Ut+="x"),y<0&&(Ut+=" y")&&(Tt=-1),ut.flip=Ut,it.coordorigin=C*-Pt+_+M*-Nt,et||G.fillsize){var Qt=it.getElementsByTagName("fill");Qt=Qt&&Qt[0],it.removeChild(Qt),et&&(qt=W(I,q.x(et[0],et[1]),q.y(et[0],et[1])),Qt.position=qt.dx*Tt+_+qt.dy*Tt),G.fillsize&&(Qt.size=G.fillsize[0]*g($)+_+G.fillsize[1]*g(y)),it.appendChild(Qt)}ut.visibility="visible"}};a.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,$,y){for(var C=l($).toLowerCase().split("-"),M=y?"end":"start",I=C.length,G="classic",q="medium",et="medium";I--;)switch(C[I]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":G=C[I];break;case"wide":case"narrow":et=C[I];break;case"long":case"short":q=C[I]}var it=E.node.getElementsByTagName("stroke")[0];it[M+"arrow"]=G,it[M+"arrowlength"]=q,it[M+"arrowwidth"]=et},xt=function(E,$){E.attrs=E.attrs||{};var y=E.node,C=E.attrs,M=y.style,I=B[E.type]&&($.x!=C.x||$.y!=C.y||$.width!=C.width||$.height!=C.height||$.cx!=C.cx||$.cy!=C.cy||$.rx!=C.rx||$.ry!=C.ry||$.r!=C.r),G=Y[E.type]&&(C.cx!=$.cx||C.cy!=$.cy||C.r!=$.r||C.rx!=$.rx||C.ry!=$.ry),q=E;for(var et in $)$[c](et)&&(C[et]=$[et]);if(I&&(C.path=a._getPath[E.type](E),E._.dirty=1),$.href&&(y.href=$.href),$.title&&(y.title=$.title),$.target&&(y.target=$.target),$.cursor&&(M.cursor=$.cursor),"blur"in $&&E.blur($.blur),($.path&&E.type=="path"||I)&&(y.path=function(Ze){var Zr=/[ahqstv]/gi,tn=a._pathToAbsolute;if(l(Ze).match(Zr)&&(tn=a._path2curve),Zr=/[clmz]/g,tn==a._pathToAbsolute&&!l(Ze).match(Zr)){var be=l(Ze).replace(N,function(co,en,fn){var $r=[],Sn=en.toLowerCase()=="m",pn=S[en];return fn.replace(A,function(Hr){Sn&&$r.length==2&&(pn+=$r+S[en=="m"?"l":"L"],$r=[]),$r.push(f(Hr*z))}),pn+$r});return be}var Br,Tr,Bn=tn(Ze);be=[];for(var dn=0,xn=Bn.length;dn<xn;dn++){Br=Bn[dn],(Tr=Bn[dn][0].toLowerCase())=="z"&&(Tr="x");for(var Dr=1,Ne=Br.length;Dr<Ne;Dr++)Tr+=f(Br[Dr]*z)+(Dr!=Ne-1?",":m);be.push(Tr)}return be.join(_)}(~l(C.path).toLowerCase().indexOf("r")?a._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 $&&E.transform($.transform),G){var it=+C.cx,ut=+C.cy,Tt=+C.rx||+C.r||0,Ut=+C.ry||+C.r||0;y.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",f((it-Tt)*z),f((ut-Ut)*z),f((it+Tt)*z),f((ut+Ut)*z),f(it*z)),E._.dirty=1}if("clip-rect"in $){var Pt=l($["clip-rect"]).split(v);if(Pt.length==4){Pt[2]=+Pt[2]+ +Pt[0],Pt[3]=+Pt[3]+ +Pt[1];var Nt=y.clipRect||a._g.doc.createElement("div"),qt=Nt.style;qt.clip=a.format("rect({1}px {2}px {3}px {0}px)",Pt),y.clipRect||(qt.position="absolute",qt.top=0,qt.left=0,qt.width=E.paper.width+"px",qt.height=E.paper.height+"px",y.parentNode.insertBefore(Nt,y),Nt.appendChild(y),y.clipRect=Nt)}$["clip-rect"]||y.clipRect&&(y.clipRect.style.clip="auto")}if(E.textpath){var Qt=E.textpath.style;$.font&&(Qt.font=$.font),$["font-family"]&&(Qt.fontFamily='"'+$["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,m)+'"'),$["font-size"]&&(Qt.fontSize=$["font-size"]),$["font-weight"]&&(Qt.fontWeight=$["font-weight"]),$["font-style"]&&(Qt.fontStyle=$["font-style"])}if("arrow-start"in $&&lt(q,$["arrow-start"]),"arrow-end"in $&&lt(q,$["arrow-end"],1),$.opacity!=null||$.fill!=null||$.src!=null||$.stroke!=null||$["stroke-width"]!=null||$["stroke-opacity"]!=null||$["fill-opacity"]!=null||$["stroke-dasharray"]!=null||$["stroke-miterlimit"]!=null||$["stroke-linejoin"]!=null||$["stroke-linecap"]!=null){var It=y.getElementsByTagName("fill");if(!(It=It&&It[0])&&(It=rt("fill")),E.type=="image"&&$.src&&(It.src=$.src),$.fill&&(It.on=!0),It.on!=null&&$.fill!="none"&&$.fill!==null||(It.on=!1),It.on&&$.fill){var de=l($.fill).match(a._ISURL);if(de){It.parentNode==y&&y.removeChild(It),It.rotate=!0,It.src=de[1],It.type="tile";var re=E.getBBox(1);It.position=re.x+_+re.y,E._.fillpos=[re.x,re.y],a._preload(de[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else It.color=a.getRGB($.fill).hex,It.src=m,It.type="solid",a.getRGB($.fill).error&&(q.type in{circle:1,ellipse:1}||l($.fill).charAt()!="r")&&Ct(q,$.fill,It)&&(C.fill="none",C.gradient=$.fill,It.rotate=!1)}if("fill-opacity"in $||"opacity"in $){var he=((+C["fill-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+a.getRGB($.fill).o+1||2)-1);he=p(h(he,0),1),It.opacity=he,It.src&&(It.color="none")}y.appendChild(It);var Vt=y.getElementsByTagName("stroke")&&y.getElementsByTagName("stroke")[0],Ie=!1;!Vt&&(Ie=Vt=rt("stroke")),($.stroke&&$.stroke!="none"||$["stroke-width"]||$["stroke-opacity"]!=null||$["stroke-dasharray"]||$["stroke-miterlimit"]||$["stroke-linejoin"]||$["stroke-linecap"])&&(Vt.on=!0),($.stroke=="none"||$.stroke===null||Vt.on==null||$.stroke==0||$["stroke-width"]==0)&&(Vt.on=!1);var Fe=a.getRGB($.stroke);Vt.on&&$.stroke&&(Vt.color=Fe.hex),he=((+C["stroke-opacity"]+1||2)-1)*((+C.opacity+1||2)-1)*((+Fe.o+1||2)-1);var Ke=.75*(u($["stroke-width"])||1);if(he=p(h(he,0),1),$["stroke-width"]==null&&(Ke=C["stroke-width"]),$["stroke-width"]&&(Vt.weight=Ke),Ke&&Ke<1&&(he*=Ke)&&(Vt.weight=1),Vt.opacity=he,$["stroke-linejoin"]&&(Vt.joinstyle=$["stroke-linejoin"]||"miter"),Vt.miterlimit=$["stroke-miterlimit"]||8,$["stroke-linecap"]&&(Vt.endcap=$["stroke-linecap"]=="butt"?"flat":$["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in $){var pr={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Vt.dashstyle=pr[c]($["stroke-dasharray"])?pr[$["stroke-dasharray"]]:m}Ie&&y.appendChild(Vt)}if(q.type=="text"){q.paper.canvas.style.display=m;var ur=q.paper.span,xe=C.font&&C.font.match(/\d+(?:\.\d*)?(?=px)/);M=ur.style,C.font&&(M.font=C.font),C["font-family"]&&(M.fontFamily=C["font-family"]),C["font-weight"]&&(M.fontWeight=C["font-weight"]),C["font-style"]&&(M.fontStyle=C["font-style"]),xe=u(C["font-size"]||xe&&xe[0])||10,M.fontSize=100*xe+"px",q.textpath.string&&(ur.innerHTML=l(q.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var We=ur.getBoundingClientRect();q.W=C.w=(We.right-We.left)/100,q.H=C.h=(We.bottom-We.top)/100,q.X=C.x,q.Y=C.y+q.H/2,("x"in $||"y"in $)&&(q.path.v=a.format("m{0},{1}l{2},{1}",f(C.x*z),f(C.y*z),f(C.x*z)+1));for(var Rr=["x","y","text","font","font-family","font-weight","font-style","font-size"],jr=0,Sr=Rr.length;jr<Sr;jr++)if(Rr[jr]in $){q._.dirty=1;break}switch(C["text-anchor"]){case"start":q.textpath.style["v-text-align"]="left",q.bbx=q.W/2;break;case"end":q.textpath.style["v-text-align"]="right",q.bbx=-q.W/2;break;default:q.textpath.style["v-text-align"]="center",q.bbx=0}q.textpath.style["v-text-kern"]=!0}},Ct=function(E,$,y){E.attrs=E.attrs||{},E.attrs;var C=Math.pow,M="linear",I=".5 .5";if(E.attrs.gradient=$,$=($=l($).replace(a._radial_gradient,function(Tt,Ut,Pt){return M="radial",Ut&&Pt&&(Ut=u(Ut),Pt=u(Pt),C(Ut-.5,2)+C(Pt-.5,2)>.25&&(Pt=d.sqrt(.25-C(Ut-.5,2))*(2*(Pt>.5)-1)+.5),I=Ut+_+Pt),m})).split(/\s*\-\s*/),M=="linear"){var G=$.shift();if(G=-u(G),isNaN(G))return null}var q=a._parseDots($);if(!q)return null;if(E=E.shape||E.node,q.length){E.removeChild(y),y.on=!0,y.method="none",y.color=q[0].color,y.color2=q[q.length-1].color;for(var et=[],it=0,ut=q.length;it<ut;it++)q[it].offset&&et.push(q[it].offset+_+q[it].color);y.colors=et.length?et.join():"0% "+y.color,M=="radial"?(y.type="gradientTitle",y.focus="100%",y.focussize="0 0",y.focusposition=I,y.angle=0):(y.type="gradient",y.angle=(270-G)%360),E.appendChild(y)}return 1},$t=function(E,$){this[0]=this.node=E,E.raphael=!0,this.id=a._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=$,this.matrix=a.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!$.bottom&&($.bottom=this),this.prev=$.top,$.top&&($.top.next=this),$.top=this,this.next=null},st=a.el;$t.prototype=st,st.constructor=$t,st.transform=function(E){if(E==null)return this._.transform;var $,y=this.paper._viewBoxShift,C=y?"s"+[y.scale,y.scale]+"-1-1t"+[y.dx,y.dy]:m;y&&($=E=l(E).replace(/\.{3}|\u2026/g,this._.transform||m)),a._extractTransform(this,C+E);var M,I=this.matrix.clone(),G=this.skew,q=this.node,et=~l(this.attrs.fill).indexOf("-"),it=!l(this.attrs.fill).indexOf("url(");if(I.translate(1,1),it||et||this.type=="image")if(G.matrix="1 0 0 1",G.offset="0 0",M=I.split(),et&&M.noRotation||!M.isSimple){q.style.filter=I.toFilter();var ut=this.getBBox(),Tt=this.getBBox(1),Ut=ut.x-Tt.x,Pt=ut.y-Tt.y;q.coordorigin=Ut*-z+_+Pt*-z,nt(this,1,1,Ut,Pt,0)}else q.style.filter=m,nt(this,M.scalex,M.scaley,M.dx,M.dy,M.rotate);else q.style.filter=m,G.matrix=l(I),G.offset=I.offset();return $!==null&&(this._.transform=$,a._extractTransform(this,$)),this},st.rotate=function(E,$,y){if(this.removed)return this;if(E!=null){if((E=l(E).split(v)).length-1&&($=u(E[1]),y=u(E[2])),E=u(E[0]),y==null&&($=y),$==null||y==null){var C=this.getBBox(1);$=C.x+C.width/2,y=C.y+C.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,$,y]])),this}},st.translate=function(E,$){return this.removed?this:((E=l(E).split(v)).length-1&&($=u(E[1])),E=u(E[0])||0,$=+$||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=$),this.transform(this._.transform.concat([["t",E,$]])),this)},st.scale=function(E,$,y,C){if(this.removed)return this;if((E=l(E).split(v)).length-1&&($=u(E[1]),y=u(E[2]),C=u(E[3]),isNaN(y)&&(y=null),isNaN(C)&&(C=null)),E=u(E[0]),$==null&&($=E),C==null&&(y=C),y==null||C==null)var M=this.getBBox(1);return y=y??M.x+M.width/2,C=C??M.y+M.height/2,this.transform(this._.transform.concat([["s",E,$,y,C]])),this._.dirtyT=1,this},st.hide=function(){return!this.removed&&(this.node.style.display="none"),this},st.show=function(){return!this.removed&&(this.node.style.display=m),this},st.auxGetBBox=a.el.getBBox,st.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var $={},y=1/this.paper._viewBoxShift.scale;return $.x=E.x-this.paper._viewBoxShift.dx,$.x*=y,$.y=E.y-this.paper._viewBoxShift.dy,$.y*=y,$.width=E.width*y,$.height=E.height*y,$.x2=$.x+$.width,$.y2=$.y+$.height,$}return E},st._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}},st.remove=function(){if(!this.removed&&this.node.parentNode){for(var E in this.paper.__set__&&this.paper.__set__.exclude(this),a.eve.unbind("raphael.*.*."+this.id),a._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?a._removedFactory(E):null;this.removed=!0}},st.attr=function(E,$){if(this.removed)return this;if(E==null){var y={};for(var C in this.attrs)this.attrs[c](C)&&(y[C]=this.attrs[C]);return y.gradient&&y.fill=="none"&&(y.fill=y.gradient)&&delete y.gradient,y.transform=this._.transform,y}if($==null&&a.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var M=E.split(v),I={},G=0,q=M.length;G<q;G++)(E=M[G])in this.attrs?I[E]=this.attrs[E]:a.is(this.paper.customAttributes[E],"function")?I[E]=this.paper.customAttributes[E].def:I[E]=a._availableAttrs[E];return q-1?I:I[M[0]]}if(this.attrs&&$==null&&a.is(E,"array")){for(I={},G=0,q=E.length;G<q;G++)I[E[G]]=this.attr(E[G]);return I}var et;for(var it in $!=null&&((et={})[E]=$),$==null&&a.is(E,"object")&&(et=E),et)b("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)&&a.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},st.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&a._tofront(this,this.paper),this},st.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),a._toback(this,this.paper)),this)},st.insertAfter=function(E){return this.removed?this:(E.constructor==a.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),a._insertafter(this,E,this.paper),this)},st.insertBefore=function(E){return this.removed?this:(E.constructor==a.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),a._insertbefore(this,E,this.paper),this)},st.blur=function(E){var $=this.node.runtimeStyle,y=$.filter;return y=y.replace(k,m),+E!=0?(this.attrs.blur=E,$.filter=y+_+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",$.margin=a.format("-{0}px 0 0 -{0}px",f(+E||1.5))):($.filter=y,$.margin=0,delete this.attrs.blur),this},a._engine.path=function(E,$){var y=rt("shape");y.style.cssText=R,y.coordsize=z+_+z,y.coordorigin=$.coordorigin;var C=new $t(y,$),M={fill:"none",stroke:"#000"};E&&(M.path=E),C.type="path",C.path=[],C.Path=m,xt(C,M),$.canvas&&$.canvas.appendChild(y);var I=rt("skew");return I.on=!0,y.appendChild(I),C.skew=I,C.transform(m),C},a._engine.rect=function(E,$,y,C,M,I){var G=a._rectPath($,y,C,M,I),q=E.path(G),et=q.attrs;return q.X=et.x=$,q.Y=et.y=y,q.W=et.width=C,q.H=et.height=M,et.r=I,et.path=G,q.type="rect",q},a._engine.ellipse=function(E,$,y,C,M){var I=E.path();return I.attrs,I.X=$-C,I.Y=y-M,I.W=2*C,I.H=2*M,I.type="ellipse",xt(I,{cx:$,cy:y,rx:C,ry:M}),I},a._engine.circle=function(E,$,y,C){var M=E.path();return M.attrs,M.X=$-C,M.Y=y-C,M.W=M.H=2*C,M.type="circle",xt(M,{cx:$,cy:y,r:C}),M},a._engine.image=function(E,$,y,C,M,I){var G=a._rectPath(y,C,M,I),q=E.path(G).attr({stroke:"none"}),et=q.attrs,it=q.node,ut=it.getElementsByTagName("fill")[0];return et.src=$,q.X=et.x=y,q.Y=et.y=C,q.W=et.width=M,q.H=et.height=I,et.path=G,q.type="image",ut.parentNode==it&&it.removeChild(ut),ut.rotate=!0,ut.src=$,ut.type="tile",q._.fillpos=[y,C],q._.fillsize=[M,I],it.appendChild(ut),nt(q,1,1,0,0,0),q},a._engine.text=function(E,$,y,C){var M=rt("shape"),I=rt("path"),G=rt("textpath");$=$||0,y=y||0,C=C||"",I.v=a.format("m{0},{1}l{2},{1}",f($*z),f(y*z),f($*z)+1),I.textpathok=!0,G.string=l(C),G.on=!0,M.style.cssText=R,M.coordsize=z+_+z,M.coordorigin="0 0";var q=new $t(M,E),et={fill:"#000",stroke:"none",font:a._availableAttrs.font,text:C};q.shape=M,q.path=I,q.textpath=G,q.type="text",q.attrs.text=l(C),q.attrs.x=$,q.attrs.y=y,q.attrs.w=1,q.attrs.h=1,xt(q,et),M.appendChild(G),M.appendChild(I),E.canvas.appendChild(M);var it=rt("skew");return it.on=!0,M.appendChild(it),q.skew=it,q.transform(m),q},a._engine.setSize=function(E,$){var y=this.canvas.style;return this.width=E,this.height=$,E==+E&&(E+="px"),$==+$&&($+="px"),y.width=E,y.height=$,y.clip="rect(0 "+E+" "+$+" 0)",this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox),this},a._engine.setViewBox=function(E,$,y,C,M){a.eve("raphael.setViewBox",this,this._viewBox,[E,$,y,C,M]);var I,G,q=this.getSize(),et=q.width,it=q.height;return M&&(y*(I=it/C)<et&&(E-=(et-y*I)/2/I),C*(G=et/y)<it&&($-=(it-C*G)/2/G)),this._viewBox=[E,$,y,C,!!M],this._viewBoxShift={dx:-E,dy:-$,scale:q},this.forEach(function(ut){ut.transform("...")}),this},a._engine.initWin=function(E){var $=E.document;$.styleSheets.length<31?$.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):$.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!$.namespaces.rvml&&$.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),rt=function(y){return $.createElement("<rvml:"+y+' class="rvml">')}}catch{rt=function(y){return $.createElement("<"+y+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},a._engine.initWin(a._g.win),a._engine.create=function(){var E=a._getContainer.apply(0,arguments),$=E.container,y=E.height,C=E.width,M=E.x,I=E.y;if(!$)throw new Error("VML container not found.");var G=new a._Paper,q=G.canvas=a._g.doc.createElement("div"),et=q.style;return M=M||0,I=I||0,C=C||512,y=y||342,G.width=C,G.height=y,C==+C&&(C+="px"),y==+y&&(y+="px"),G.coordsize=216e5+_+216e5,G.coordorigin="0 0",G.span=a._g.doc.createElement("span"),G.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",q.appendChild(G.span),et.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",C,y),$==1?(a._g.doc.body.appendChild(q),et.left=M+"px",et.top=I+"px",et.position="absolute"):$.firstChild?$.insertBefore(q,$.firstChild):$.appendChild(q),G.renderfix=function(){},G},a.prototype.clear=function(){a.eve("raphael.clear",this),this.canvas.innerHTML=m,this.span=a._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},a.prototype.remove=function(){for(var E in a.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?a._removedFactory(E):null;return!0};var X=a.st;for(var T in st)st[c](T)&&!X[c](T)&&(X[T]=function(E){return function(){var $=arguments;return this.forEach(function(y){y[E].apply(y,$)})}}(T))}}).apply(n,o))===void 0||(r.exports=s)}])})})(Ky);var uA=Ky.exports;const Yr=an(uA);let Yy=class D${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 s=2e-10;for(let a=0,c=i-1;a<i;c=a,a++){const l=this.points[a].x,u=this.points[a].y,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)<s)return!0;p>r&&(o=!o)}}return o}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generateInMultiplePoint(t,r,n,i,o=1){const s=new D$;for(let a=0;a<=o*n;a+=1){const c=Math.floor(a/o)/n*2*Math.PI,l=t+Math.cos(c)*i,u=r+Math.sin(c)*i;s.addPoint(new la({x:l,y:u}))}return s}};Yr.easing_formulas.swing=function(e){return e+Math.sin(e*Math.PI*2)/2},Yr.easing_formulas.may_cause_seizures=function(e){return e+.2*Math.random()-.1},Yr.fn.importSVG=function(e,t){const r=hA.fromRawSVG(e);return r.toRaphael(this,(n,i)=>{r.save(),t&&t(n),i(),r.restore()}),this},Yr.fn.NPolygonPath=function(e,t,r,n,i=2){return{shape:this.path(Yy.generateInMultiplePoint(e,t,r,n,i).toSVGPathD()),afterPath:Yy.generateInMultiplePoint(e,t,r*i,n,1).toSVGPathD()}},Yr.fn.zoom=function(e=1){return this.setViewBox(0,0,this.width/e,this.height/e),this},Yr.fn.brickwall=function(e,t,r,n,i){for(var o=n/i,s=r/3,a={fill:"firebrick",stroke:"#CCC"},c=0;c<i;c+=1){var l=this.rect(0,0,s,o).attr(a),u=this.rect(0,0,2*s,o).attr(a);c%2?(l.transform("T"+e+","+(t+c*o)),u.transform("T"+(e+s)+","+(t+c*o))):(u.transform("T"+e+","+(t+c*o)),l.transform("T"+(e+2*s)+","+(t+c*o)))}},Yr.fn.rosetta=function(e,t,r,n,i){const o=ls.generateRosetta(e,t,r,n,i);return o.center,this.path(o.toSVGPathD())},Yr.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))}}},Yr.fn.star=function(e,t,r){let n="M"+e+","+(t-r);for(var i=0;i<6;i+=1){const o=270+i*144,s=e+r*Math.cos(o*Math.PI/180),a=t+r*Math.sin(o*Math.PI/180);n+="L"+s+","+a}return this.path(n).attr("stroke-width",0).attr("fill","red")},Yr.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")},Yr.el.redder=function(){const e=Yr.getRGB(this.attr("fill"));e.r+=51,this.attr("fill","rgb("+e.r+","+e.g+","+e.b+")")},Yr.installCustomAttributes=function(e){e.customAttributes.redness=function(t){const r=255*(1-t/100);return{fill:"rgb(255,"+r+", "+r+")"}},e.customAttributes.progress=function(t){const r=this.data("progresspath"),n=this.attr(),i={x:0,y:0},o=this.data("progresstrail");if(!r)return{transform:"t0,0"};Object.prototype.hasOwnProperty.call(n,"width")&&(i.x=-this.attr("width")/2,i.y=-this.attr("height")/2);const s=r.getTotalLength(),a=r.getPointAtLength(t*s);return o&&o.attr("path",r.getSubpath(0,t*s)),{transform:"t"+(a.x+i.x)+","+(a.y+i.y)+"r"+a.alpha}}};const Xy=Yr;let Jy=class Wl{constructor(){jt(this,"pgs",[]);jt(this,"history",[])}save(){this.history.push(_g(this.pgs))}restore(){const t=this.history.pop();t&&(this.pgs=t)}get size(){let t=0,r=0;return this.pgs.forEach(n=>{const i=n.pg;if(i){const[o,s,a,c]=i.bounds,[l,u]=i.size;t=Math.max(t,o,o+l,a),r=Math.max(r,s,s+u,c)}}),[Math.ceil(t),Math.ceil(r)]}static fromRawSVG(t){return Wl.fromRawSVGUseRappar(t)}static fromRawSVGUseRappar(t){const r=new Wl,n=oA(t);for(let i=0,o=n.length;i<o;i++){const s=n[i];if(s.type=="viewbox"&&s.width&&s.height)continue;const a={attrs:{}};for(const c in s)c==="type"||c==="path"||c==="transform"||(a.attrs[c]=s[c]);switch(s.type){case"path":a.d=s.path,a.pg=ls.fromSVGPathD(s.path,s.transform);break}r.pgs.push(a)}return r}toRaphael(t,r){let n;t instanceof HTMLElement?n=Xy(HTMLElement):typeof t=="string"?n=Xy(document.getElementById(t)):n=t;const[i,o]=this.size;n.setSize(i,o);const s=(a=!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)),a&&r){const h=p=>{const{x:g,y:v}=ky(n.canvas,p),b=this.pgs.find(_=>{var m;return(m=_.raphaelPath)==null?void 0:m.isPointInside(g,v)});b&&(r==null||r(b,s))};(c=f.raphaelPath)==null||c.unclick(h),(l=f.raphaelPath)==null||l.click(h)}}};return s(!0),n}toCanvasOperation(t,r){let n;typeof t=="string"?n=document.getElementById(t):n=t;const[i,o]=this.size;n.width=i,n.height=o;const s=new dA(n),a=()=>{s.clearRect(0,0,i,o);for(let l=0,u=this.pgs.length;l<u;l++){const d=this.pgs[l];d.pg&&(s.save(),this.toCanvasAttrs(s,d.attrs),d.pg.toCanvas(s),d.attrs.stroke!=="none"&&s.stroke(),d.attrs.fill!=="none"&&s.fill(),s.restore())}};a();const c=l=>{const{x:u,y:d}=ky(s.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,a))};return n.removeEventListener("click",c),n.addEventListener("click",c),s}toCanvasAttrs(t,r){for(const n in r){const i=r[n];switch(n){case"fill":t.fillStyle=String(i);break;case"stroke":t.strokeStyle=String(i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":t.lineJoin=i;break}}}static toDownloadSVGElement(t,r="shape"){xy(wO(t),`${r}.svg`)}toDownloadSVGElement(t,r="shape"){return Wl.toDownloadSVGElement(t,r),this}static toDownloadSVGString(t,r="shape"){xy(wy(t),`${r}.svg`)}toDownloadSVGString(t,r="shape"){return Wl.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 hA=Jy;let dA=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 cA({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(t){this.context.lineWidth=t,this.customContext.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext.globalAlpha=t}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext.fillStyle=t):(this.context.fillStyle=t.gradient,this.customContext.fillStyle=t.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}fill(){return this.context.fill(),this.customContext.fill(),this}fillRect(t,r,n,i){return this.context.fillRect(t,r,n,i),this.customContext.fillRect(t,r,n,i),this}fillText(t,r,n,i){return this.context.fillText(t,r,n,i),this.customContext.fillText(t,r,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(){return this.context.stroke(),this.customContext.stroke(),this}strokeText(t,r,n,i){return this.context.strokeText(t,r,n,i),this.customContext.strokeText(t,r,n),this}strokeRect(t,r,n,i){return this.context.strokeRect(t,r,n,i),this.customContext.strokeRect(t,r,n,i),this}clearRect(t=0,r=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,r,n,i),this.customContext.clearRect(t,r,n,i),this}save(){return this.context.save(),this.customContext.save(),this}restore(){return this.context.restore(),this.customContext.restore(),this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this}moveTo(t,r){return this.context.moveTo(t,r),this.customContext.moveTo(t,r),this}lineTo(t,r){return this.context.lineTo(t,r),this.customContext.lineTo(t,r),this}arc(t,r,n,i,o,s){return this.context.arc(t,r,n,i,o,s),this.customContext.arc(t,r,n,i,o,s?-1:1),this}arcTo(t,r,n,i,o){return this.context.arcTo(t,r,n,i,o),this.customContext.arcTo(t,r,n,i,o),this}quadraticCurveTo(t,r,n,i){return this.context.quadraticCurveTo(t,r,n,i),this.customContext.quadraticCurveTo(t,r,n,i),this}bezierCurveTo(t,r,n,i,o,s){return this.context.bezierCurveTo(t,r,n,i,o,s),this.customContext.bezierCurveTo(t,r,n,i,o,s),this}rect(t,r,n,i){return this.context.rect(t,r,n,i),this.customContext.rect(t,r,n,i),this}translate(t,r){return this.context.translate(t,r),this.customContext.translate(t,r),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this}scale(t,r){return this.context.scale(t,r),this.customContext.scale(t,r),this}createLinearGradient(t,r,n,i,o){const s=this.context.createLinearGradient(t,r,n,i),a=this.customContext.createLinearGradient(t,r,n,i);return o&&Object.keys(o).forEach(c=>{const l=parseFloat(c);s.addColorStop(l,o[l]),a.addColorStop(l,o[l])}),{gradient:s,gradientCustom:a}}createRadialGradient(t,r,n,i,o,s,a){const c=this.context.createRadialGradient(t,r,n,i,o,s),l=this.customContext.createRadialGradient(t,r,n,i,o,s);return a&&Object.keys(a).forEach(u=>{const d=parseFloat(u);c.addColorStop(d,a[d]),l.addColorStop(d,a[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 Jy.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 Le={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")},fA=function(e){return e[0]==="#"&&(e=e.slice(1)),parseInt(e,16)},pA=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+")"},mA=function(e,t=1){const r=fA(e);return pA(r,t)};function da(e,t){let r=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);r==0&&(r=32),n==0&&(n=32),i==0&&(i=32),r=r*(100+t)/100,n=n*(100+t)/100,i=i*(100+t)/100,r=r<255?r:255,n=n<255?n:255,i=i<255?i:255,r=Math.round(r),n=Math.round(n),i=Math.round(i);const o=r.toString(16).length==1?"0"+r.toString(16):r.toString(16),s=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+s+a}var Wy={exports:{}};(function(e){var t={};e.exports=t,t.parse=function(r,n){for(var i=t.bin.readUshort,o=t.bin.readUint,l=0,s={},a=new Uint8Array(r),c=a.length-4;o(a,c)!=101010256;)c--;var l=c;l+=4,l+=4;var u=i(a,l);l+=2,i(a,l),l+=2;var d=o(a,l);l+=4;var f=o(a,l);l+=4,l=f;for(var h=0;h<u;h++){o(a,l),l+=4,l+=4,l+=4,l+=4,o(a,l),l+=4;var d=o(a,l);l+=4;var p=o(a,l);l+=4;var g=i(a,l),v=i(a,l+2),b=i(a,l+4);l+=6,l+=8;var _=o(a,l);l+=4,l+=g+v+b,t._readLocal(a,_,s,d,p,n)}return s},t._readLocal=function(r,n,i,o,s,a){var c=t.bin.readUshort,l=t.bin.readUint;l(r,n),n+=4,c(r,n),n+=2,c(r,n),n+=2;var u=c(r,n);n+=2,l(r,n),n+=4,l(r,n),n+=4,n+=8;var 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,a){i[h]={size:s,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(s);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 s=t.adler(r,0,r.length);return o[i+0]=s>>>24&255,o[i+1]=s>>>16&255,o[i+2]=s>>>8&255,o[i+3]=s>>>0&255,new Uint8Array(o.buffer,0,i+4)},t.deflateRaw=function(r,n){n==null&&(n={level:6});var i=new Uint8Array(50+Math.floor(r.length*1.1)),o=t.F.deflateRaw(r,i,o,n.level);return new Uint8Array(i.buffer,0,o)},t.encode=function(r,n){n==null&&(n=!1);var i=0,o=t.bin.writeUint,s=t.bin.writeUshort,a={};for(var c in r){var l=!t._noNeed(c)&&!n,u=r[c],d=t.crc.crc(u,0,u.length);a[c]={cpr:l,usize:u.length,crc:d,file:l?t.deflateRaw(u):u}}for(var c in a)i+=a[c].file.length+30+46+2*t.bin.sizeUTF8(c);i+=22;var f=new Uint8Array(i),h=0,p=[];for(var c in a){var g=a[c];p.push(h),h=t._writeHeader(f,h,c,g,0)}var v=0,b=h;for(var c in a){var g=a[c];p.push(h),h=t._writeHeader(f,h,c,g,1,p[v++])}var _=h-b;return o(f,h,101010256),h+=4,h+=4,s(f,h,v),h+=2,s(f,h,v),h+=2,o(f,h,_),h+=4,o(f,h,b),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,s,a){var c=t.bin.writeUint,l=t.bin.writeUshort,u=o.file;c(r,n,s==0?67324752:33639248),n+=4,s==1&&(n+=2),l(r,n,20),n+=2,l(r,n,0),n+=2,l(r,n,o.cpr?8:0),n+=2,c(r,n,0),n+=4,c(r,n,o.crc),n+=4,c(r,n,u.length),n+=4,c(r,n,o.usize),n+=4,l(r,n,t.bin.sizeUTF8(i)),n+=2,l(r,n,0),n+=2,s==1&&(n+=2,n+=2,n+=6,c(r,n,a),n+=4);var d=t.bin.writeUTF8(r,n,i);return n+=d,s==0&&(r.set(u,n),n+=u.length),n},t.crc={table:function(){for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,o=0;o<8;o++)i&1?i=3988292384^i>>>1:i=i>>>1;r[n]=i}return r}(),update:function(r,n,i,o){for(var s=0;s<o;s++)r=t.crc.table[(r^n[i+s])&255]^r>>>8;return r},crc:function(r,n,i){return t.crc.update(4294967295,r,n,i)^4294967295}},t.adler=function(r,n,i){for(var o=1,s=0,a=n,c=n+i;a<c;){for(var l=Math.min(a+5552,c);a<l;)o+=r[a++],s+=o;o=o%65521,s=s%65521}return s<<16|o},t.bin={readUshort:function(r,n){return r[n]|r[n+1]<<8},writeUshort:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255},readUint:function(r,n){return r[n+3]*(256*256*256)+(r[n+2]<<16|r[n+1]<<8|r[n])},writeUint:function(r,n,i){r[n]=i&255,r[n+1]=i>>8&255,r[n+2]=i>>16&255,r[n+3]=i>>24&255},readASCII:function(r,n,i){for(var o="",s=0;s<i;s++)o+=String.fromCharCode(r[n+s]);return o},writeASCII:function(r,n,i){for(var o=0;o<i.length;o++)r[n+o]=i.charCodeAt(o)},pad:function(r){return r.length<2?"0"+r:r},readUTF8:function(r,n,i){for(var o="",s,a=0;a<i;a++)o+="%"+t.bin.pad(r[n+a].toString(16));try{s=decodeURIComponent(o)}catch{return t.bin.readASCII(r,n,i)}return s},writeUTF8:function(r,n,i){for(var o=i.length,s=0,a=0;a<o;a++){var c=i.charCodeAt(a);if(!(c&4294967168))r[n+s]=c,s++;else if(!(c&4294965248))r[n+s]=192|c>>6,r[n+s+1]=128|c>>0&63,s+=2;else if(!(c&4294901760))r[n+s]=224|c>>12,r[n+s+1]=128|c>>6&63,r[n+s+2]=128|c>>0&63,s+=3;else if(!(c&4294967295-(1<<21)+1))r[n+s]=240|c>>18,r[n+s+1]=128|c>>12&63,r[n+s+2]=128|c>>6&63,r[n+s+3]=128|c>>0&63,s+=4;else throw"e"}return s},sizeUTF8:function(r){for(var n=r.length,i=0,o=0;o<n;o++){var s=r.charCodeAt(o);if(!(s&4294967168))i++;else if(!(s&4294965248))i+=2;else if(!(s&4294901760))i+=3;else if(!(s&4294967295-(1<<21)+1))i+=4;else throw"e"}return i}},t.F={},t.F.deflateRaw=function(r,n,i,o){var s=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]],a=s[o],c=t.F.U,l=t.F._goodIndex;t.F._hash;var u=t.F._putsE,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,b=c.strt,_=c.prev,m=0,S=0,N=0,k=0,A=0,R=0;for(p>2&&(R=t.F._hash(r,0),b[R]=0),d=0;d<p;d++){if(A=R,d+1<p-2){R=t.F._hash(r,d+1);var z=d+1&32767;_[z]=b[R],b[R]=z}if(h<=d){(m>14e3||S>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,k,r,N,d-N,n,f),m=S=k=0,N=d);var B=0;d<p-2&&(B=t.F._bestMatch(r,d,_,A,Math.min(a[2],p-d),a[3]));var g=B>>>16,Y=B&65535;if(B!=0){var g=B>>>16,Y=B&65535,W=l(g,c.of0);c.lhst[257+W]++;var nt=l(Y,c.df0);c.dhst[nt]++,k+=c.exb[W]+c.dxb[nt],v[m]=g<<23|d-h,v[m+1]=Y<<16|W<<8|nt,m+=2,h=d+g}else c.lhst[r[d]]++;S++}}for((N!=d||r.length==0)&&(h<d&&(v[m]=d-h,m+=2,h=d),f=t.F._writeBlock(1,v,m,k,r,N,d-N,n,f),m=0,S=0,m=S=k=0,N=d);f&7;)f++;return f>>>3},t.F._bestMatch=function(r,n,i,o,s,a){var c=n&32767,l=i[c],u=c-l+32768&32767;if(l==c||o!=t.F._hash(r,n-u))return 0;for(var d=0,f=0,h=Math.min(32767,n);u<=h&&--a!=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>=s)break;u+2<p&&(p=u+2);for(var g=0,v=0;v<p-2;v++){var b=n-u+v+32768&32767,_=i[b],m=b-_+32768&32767;m>g&&(g=m,l=b)}}}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,s=Math.min(r.length,n+258);for(n+=3;n<s&&r[n]==r[n-i];)n++;return n-o},t.F._hash=function(r,n){return(r[n]<<8|r[n+1])+(r[n+2]<<4)&65535},t.saved=0,t.F._writeBlock=function(r,n,i,o,s,a,c,l,u){var d=t.F.U,f=t.F._putsF,h=t.F._putsE,p,g,v,b,_,m,S,N,k;d.lhst[256]++,p=t.F.getTrees(),g=p[0],v=p[1],b=p[2],_=p[3],m=p[4],S=p[5],N=p[6],k=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),z=o+t.F.contSize(d.ltree,d.lhst)+t.F.contSize(d.dtree,d.dhst);z+=14+3*S+t.F.contSize(d.itree,d.ihst)+(d.ihst[16]*2+d.ihst[17]*3+d.ihst[18]*7);for(var B=0;B<286;B++)d.lhst[B]=0;for(var B=0;B<30;B++)d.dhst[B]=0;for(var B=0;B<19;B++)d.ihst[B]=0;var Y=A<R&&A<z?0:R<z?1:2;if(f(l,u,r),f(l,u+1,Y),u+=3,Y==0){for(;u&7;)u++;u=t.F._copyExact(s,a,c,l,u)}else{var W,nt;if(Y==1&&(W=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,b),t.F.revCodes(d.itree,b),W=d.ltree,nt=d.dtree,h(l,u,_-257),u+=5,h(l,u,m-1),u+=5,h(l,u,S-4),u+=4;for(var rt=0;rt<S;rt++)h(l,u+rt*3,d.itree[(d.ordr[rt]<<1)+1]);u+=3*S,u=t.F._codeTiny(N,d.itree,l,u),u=t.F._codeTiny(k,d.itree,l,u)}for(var lt=a,xt=0;xt<i;xt+=2){for(var Ct=n[xt],$t=Ct>>>23,st=lt+(Ct&(1<<23)-1);lt<st;)u=t.F._writeLit(s[lt++],W,l,u);if($t!=0){var X=n[xt+1],T=X>>16,E=X>>8&255,$=X&255;u=t.F._writeLit(257+E,W,l,u),h(l,u,$t-d.of0[E]),u+=d.exb[E],u=t.F._writeLit($,nt,l,u),f(l,u,T-d.df0[$]),u+=d.dxb[$],lt+=$t}}u=t.F._writeLit(256,W,l,u)}return u},t.F._copyExact=function(r,n,i,o,s){var a=s>>>3;return o[a]=i,o[a+1]=i>>>8,o[a+2]=255-o[a],o[a+3]=255-o[a+1],a+=4,o.set(new Uint8Array(r.buffer,n,i),a),s+(i+4<<3)},t.F.getTrees=function(){for(var r=t.F.U,n=t.F._hufTree(r.lhst,r.ltree,15),i=t.F._hufTree(r.dhst,r.dtree,15),o=[],s=t.F._lenCodes(r.ltree,o),a=[],c=t.F._lenCodes(r.dtree,a),l=0;l<o.length;l+=2)r.ihst[o[l]]++;for(var l=0;l<a.length;l+=2)r.ihst[a[l]]++;for(var u=t.F._hufTree(r.ihst,r.itree,7),d=19;d>4&&r.itree[(r.ordr[d-1]<<1)+1]==0;)d--;return[n,i,u,s,c,d,o,a]},t.F.getSecond=function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(r[i+1]);return n},t.F.nonZero=function(r){for(var n="",i=0;i<r.length;i+=2)r[i+1]!=0&&(n+=(i>>1)+",");return n},t.F.contSize=function(r,n){for(var i=0,o=0;o<n.length;o++)i+=n[o]*r[(o<<1)+1];return i},t.F._codeTiny=function(r,n,i,o){for(var s=0;s<r.length;s+=2){var a=r[s],c=r[s+1];o=t.F._writeLit(a,n,i,o);var l=a==16?2:a==17?3:7;a>15&&(t.F._putsE(i,o,c,l),o+=l)}return o},t.F._lenCodes=function(r,n){for(var i=r.length;i!=2&&r[i-1]==0;)i-=2;for(var o=0;o<i;o+=2){var s=r[o+1],a=o+3<i?r[o+3]:-1,c=o+5<i?r[o+5]:-1,l=o==0?-1:r[o-1];if(s==0&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var 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(s==l&&a==s&&c==s){for(var u=o+5;u+2<i&&r[u+2]==s;)u+=2;var d=Math.min(u+1-o>>>1,6);n.push(16,d-3),o+=d*2-2}else n.push(s,0)}return i>>>1},t.F._hufTree=function(r,n,i){var o=[],s=r.length,a=n.length,c=0;for(c=0;c<a;c+=2)n[c]=0,n[c+1]=0;for(c=0;c<s;c++)r[c]!=0&&o.push({lit:c,f:r[c]});var l=o.length,u=o.slice(0);if(l==0)return 0;if(l==1){var d=o[0].lit,u=d==0?1:0;return n[(d<<1)+1]=1,n[(u<<1)+1]=1,1}o.sort(function(_,m){return _.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 b=t.F.setDepth(o[g-1],0);for(b>i&&(t.F.restrictDepth(u,i,b),b=i),c=0;c<l;c++)n[(u[c].lit<<1)+1]=u[c].d;return b},t.F.setDepth=function(r,n){return r.lit!=-1?(r.d=n,n):Math.max(t.F.setDepth(r.l,n+1),t.F.setDepth(r.r,n+1))},t.F.restrictDepth=function(r,n,i){var o=0,s=1<<i-n,a=0;for(r.sort(function(l,u){return u.d==l.d?l.f-u.f:u.d-l.d}),o=0;o<r.length&&r[o].d>n;o++){var c=r[o].d;r[o].d=n,a+=s-(1<<i-c)}for(a=a>>>i-n;a>0;){var c=r[o].d;c<n?(r[o].d++,a-=1<<n-c-1):o++}for(;o>=0;o--)r[o].d==n&&a<0&&(r[o].d--,a++);a!=0&&console.log("debt left")},t.F._goodIndex=function(r,n){var i=0;return n[i|16]<=r&&(i|=16),n[i|8]<=r&&(i|=8),n[i|4]<=r&&(i|=4),n[i|2]<=r&&(i|=2),n[i|1]<=r&&(i|=1),i},t.F._writeLit=function(r,n,i,o){return t.F._putsF(i,o,n[r<<1]),o+n[(r<<1)+1]},t.F.inflate=function(r,n){var i=Uint8Array;if(r[0]==3&&r[1]==0)return n||new i(0);var o=t.F,s=o._bitsF,a=o._bitsE,c=o._decodeTiny,l=o.makeCodes,u=o.codes2map,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,b=0,_=0,m=0,S=0,N=0,k=0,A,R;p==0;){if(p=s(r,k,1),g=s(r,k+1,2),k+=3,g==0){k&7&&(k+=8-(k&7));var z=(k>>>3)+4,B=r[z-4]|r[z-3]<<8;h&&(n=t.F._check(n,N+B)),n.set(new i(r.buffer,r.byteOffset+z,B),N),k=z+B<<3,N+=B;continue}if(h&&(n=t.F._check(n,N+(1<<17))),g==1&&(A=f.flmap,R=f.fdmap,m=511,S=31),g==2){v=a(r,k,5)+257,b=a(r,k+5,5)+1,_=a(r,k+10,4)+4,k+=14;for(var Y=0;Y<38;Y+=2)f.itree[Y]=0,f.itree[Y+1]=0;for(var W=1,Y=0;Y<_;Y++){var nt=a(r,k+Y*3,3);f.itree[(f.ordr[Y]<<1)+1]=nt,nt>W&&(W=nt)}k+=3*_,l(f.itree,W),u(f.itree,W,f.imap),A=f.lmap,R=f.dmap,k=c(f.imap,(1<<W)-1,v+b,r,k,f.ttree);var rt=o._copyOut(f.ttree,0,v,f.ltree);m=(1<<rt)-1;var lt=o._copyOut(f.ttree,v,b,f.dtree);S=(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,k)&m];k+=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 st=f.ldef[Ct-257];$t=N+(st>>>3)+a(r,k,st&7),k+=st&7}var X=R[d(r,k)&S];k+=X&15;var T=X>>>4,E=f.ddef[T],$=(E>>>4)+s(r,k,E&15);for(k+=E&15,h&&(n=t.F._check(n,N+(1<<17)));N<$t;)n[N]=n[N++-$],n[N]=n[N++-$],n[N]=n[N++-$],n[N]=n[N++-$];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,s,a){for(var c=t.F._bitsE,l=t.F._get17,u=0;u<i;){var d=r[l(o,s)&n];s+=d&15;var f=d>>>4;if(f<=15)a[u]=f,u++;else{var h=0,p=0;f==16?(p=3+c(o,s,2),s+=2,h=a[u-1]):f==17?(p=3+c(o,s,3),s+=3):f==18&&(p=11+c(o,s,7),s+=7);for(var g=u+p;u<g;)a[u]=h,u++}}return s},t.F._copyOut=function(r,n,i,o){for(var s=0,a=0,c=o.length>>>1;a<i;){var l=r[a+n];o[a<<1]=0,o[(a<<1)+1]=l,l>s&&(s=l),a++}for(;a<c;)o[a<<1]=0,o[(a<<1)+1]=0,a++;return s},t.F.makeCodes=function(r,n){for(var i=t.F.U,o=r.length,s,a,c,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(s=0,u[0]=0,a=1;a<=n;a++)s=s+u[a-1]<<1,f[a]=s;for(c=0;c<o;c+=2)l=r[c+1],l!=0&&(r[c]=f[l],f[l]++)},t.F.codes2map=function(r,n,i){for(var o=r.length,s=t.F.U,a=s.rev15,c=0;c<o;c+=2)if(r[c+1]!=0)for(var l=c>>1,u=r[c+1],d=l<<4|u,f=n-u,h=r[c]<<f,p=h+(1<<f);h!=p;){var g=a[h]>>>15-n;i[g]=d,h++}},t.F.revCodes=function(r,n){for(var i=t.F.U.rev15,o=15-n,s=0;s<r.length;s+=2){var a=r[s]<<n-r[s+1];r[s]=i[a]>>>o}},t.F._putsE=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8},t.F._putsF=function(r,n,i){i=i<<(n&7);var o=n>>>3;r[o]|=i,r[o+1]|=i>>>8,r[o+2]|=i>>>16},t.F._bitsE=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8)>>>(n&7)&(1<<i)-1},t.F._bitsF=function(r,n,i){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)&(1<<i)-1},t.F._get17=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16)>>>(n&7)},t.F._get25=function(r,n){return(r[n>>>3]|r[(n>>>3)+1]<<8|r[(n>>>3)+2]<<16|r[(n>>>3)+3]<<24)>>>(n&7)},t.F.U=function(){var r=Uint16Array,n=Uint32Array;return{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new n(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new r(65536),prev:new r(32768)}}(),function(){for(var r=t.F.U,n=32768,i=0;i<n;i++){var o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,r.rev15[i]=(o>>>16|o<<16)>>>17}function s(a,c,l){for(;c--!=0;)a.push(0,l)}for(var i=0;i<32;i++)r.ldef[i]=r.of0[i]<<3|r.exb[i],r.ddef[i]=r.df0[i]<<4|r.dxb[i];s(r.fltree,144,8),s(r.fltree,112,9),s(r.fltree,24,7),s(r.fltree,8,8),t.F.makeCodes(r.fltree,9),t.F.codes2map(r.fltree,9,r.flmap),t.F.revCodes(r.fltree,9),s(r.fdtree,32,5),t.F.makeCodes(r.fdtree,5),t.F.codes2map(r.fdtree,5,r.fdmap),t.F.revCodes(r.fdtree,5),s(r.itree,19,0),s(r.ltree,286,0),s(r.dtree,30,0),s(r.ttree,320,0)}()})(Wy);var gA=Wy.exports;const Qy=an(gA);/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const vA=4,Zy=0,t_=1,yA=2;function cs(e){let t=e.length;for(;--t>=0;)e[t]=0}const _A=0,e_=1,bA=2,wA=3,xA=258,Cf=29,fa=256,pa=fa+1+Cf,us=30,Pf=19,r_=2*pa+1,wo=15,Tf=16,SA=7,Of=256,n_=16,i_=17,o_=18,Af=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]),Vc=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]),$A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kA=512,yi=new Array((pa+2)*2);cs(yi);const ma=new Array(us*2);cs(ma);const ga=new Array(kA);cs(ga);const va=new Array(xA-wA+1);cs(va);const Nf=new Array(Cf);cs(Nf);const Bc=new Array(us);cs(Bc);function Rf(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 a_,l_,c_;function jf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const u_=e=>e<256?ga[e]:ga[256+(e>>>7)],ya=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Xr=(e,t,r)=>{e.bi_valid>Tf-r?(e.bi_buf|=t<<e.bi_valid&65535,ya(e,e.bi_buf),e.bi_buf=t>>Tf-e.bi_valid,e.bi_valid+=r-Tf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Jn=(e,t,r)=>{Xr(e,r[t*2],r[t*2+1])},h_=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},EA=e=>{e.bi_valid===16?(ya(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)},CA=(e,t)=>{const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,f,h,p,g=0;for(f=0;f<=wo;f++)e.bl_count[f]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<r_;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>=a&&(h=s[u-a]),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--)}},d_=(e,t,r)=>{const n=new Array(wo+1);let i=0,o,s;for(o=1;o<=wo;o++)i=i+r[o-1]<<1,n[o]=i;for(s=0;s<=t;s++){let a=e[s*2+1];a!==0&&(e[s*2]=h_(n[a]++,a))}},PA=()=>{let e,t,r,n,i;const o=new Array(wo+1);for(r=0,n=0;n<Cf-1;n++)for(Nf[n]=r,e=0;e<1<<Af[n];e++)va[r++]=n;for(va[r-1]=n,i=0,n=0;n<16;n++)for(Bc[n]=i,e=0;e<1<<Vc[n];e++)ga[i++]=n;for(i>>=7;n<us;n++)for(Bc[n]=i<<7,e=0;e<1<<Vc[n]-7;e++)ga[256+i++]=n;for(t=0;t<=wo;t++)o[t]=0;for(e=0;e<=143;)yi[e*2+1]=8,e++,o[8]++;for(;e<=255;)yi[e*2+1]=9,e++,o[9]++;for(;e<=279;)yi[e*2+1]=7,e++,o[7]++;for(;e<=287;)yi[e*2+1]=8,e++,o[8]++;for(d_(yi,pa+1,o),e=0;e<us;e++)ma[e*2+1]=5,ma[e*2]=h_(e,5);a_=new Rf(yi,Af,fa+1,pa,wo),l_=new Rf(ma,Vc,0,us,wo),c_=new Rf(new Array(0),$A,0,Pf,SA)},f_=e=>{let t;for(t=0;t<pa;t++)e.dyn_ltree[t*2]=0;for(t=0;t<us;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Pf;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Of*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},p_=e=>{e.bi_valid>8?ya(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},m_=(e,t,r,n)=>{const i=t*2,o=r*2;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]},Df=(e,t,r)=>{const n=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&m_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!m_(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n},g_=(e,t,r)=>{let n,i,o=0,s,a;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],n===0?Jn(e,i,t):(s=va[i],Jn(e,s+fa+1,t),a=Af[s],a!==0&&(i-=Nf[s],Xr(e,i,a)),n--,s=u_(n),Jn(e,s,r),a=Vc[s],a!==0&&(n-=Bc[s],Xr(e,n,a)));while(o<e.sym_next);Jn(e,Of,t)},If=(e,t)=>{const r=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c=-1,l;for(e.heap_len=0,e.heap_max=r_,s=0;s<o;s++)r[s*2]!==0?(e.heap[++e.heap_len]=c=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=n[l*2+1]);for(t.max_code=c,s=e.heap_len>>1;s>=1;s--)Df(e,r,s);l=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Df(e,r,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,r[l*2]=r[s*2]+r[a*2],e.depth[l]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,r[s*2+1]=r[a*2+1]=l,e.heap[1]=l++,Df(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],CA(e,t),d_(r,c,e.bl_count)},v_=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)&&(a<l?e.bl_tree[o*2]+=a:o!==0?(o!==i&&e.bl_tree[o*2]++,e.bl_tree[n_*2]++):a<=10?e.bl_tree[i_*2]++:e.bl_tree[o_*2]++,a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4))},y_=(e,t,r)=>{let n,i=-1,o,s=t[0*2+1],a=0,c=7,l=4;for(s===0&&(c=138,l=3),n=0;n<=r;n++)if(o=s,s=t[(n+1)*2+1],!(++a<c&&o===s)){if(a<l)do Jn(e,o,e.bl_tree);while(--a!==0);else o!==0?(o!==i&&(Jn(e,o,e.bl_tree),a--),Jn(e,n_,e.bl_tree),Xr(e,a-3,2)):a<=10?(Jn(e,i_,e.bl_tree),Xr(e,a-3,3)):(Jn(e,o_,e.bl_tree),Xr(e,a-11,7));a=0,i=o,s===0?(c=138,l=3):o===s?(c=6,l=3):(c=7,l=4)}},TA=e=>{let t;for(v_(e,e.dyn_ltree,e.l_desc.max_code),v_(e,e.dyn_dtree,e.d_desc.max_code),If(e,e.bl_desc),t=Pf-1;t>=3&&e.bl_tree[s_[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},OA=(e,t,r,n)=>{let i;for(Xr(e,t-257,5),Xr(e,r-1,5),Xr(e,n-4,4),i=0;i<n;i++)Xr(e,e.bl_tree[s_[i]*2+1],3);y_(e,e.dyn_ltree,t-1),y_(e,e.dyn_dtree,r-1)},AA=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Zy;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return t_;for(r=32;r<fa;r++)if(e.dyn_ltree[r*2]!==0)return t_;return Zy};let __=!1;const NA=e=>{__||(PA(),__=!0),e.l_desc=new jf(e.dyn_ltree,a_),e.d_desc=new jf(e.dyn_dtree,l_),e.bl_desc=new jf(e.bl_tree,c_),e.bi_buf=0,e.bi_valid=0,f_(e)},b_=(e,t,r,n)=>{Xr(e,(_A<<1)+(n?1:0),3),p_(e),ya(e,r),ya(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},RA=e=>{Xr(e,e_<<1,3),Jn(e,Of,yi),EA(e)},jA=(e,t,r,n)=>{let i,o,s=0;e.level>0?(e.strm.data_type===yA&&(e.strm.data_type=AA(e)),If(e,e.l_desc),If(e,e.d_desc),s=TA(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?b_(e,t,r,n):e.strategy===vA||o===i?(Xr(e,(e_<<1)+(n?1:0),3),g_(e,yi,ma)):(Xr(e,(bA<<1)+(n?1:0),3),OA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),g_(e,e.dyn_ltree,e.dyn_dtree)),f_(e),n&&p_(e)},DA=(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[(va[r]+fa+1)*2]++,e.dyn_dtree[u_(t)*2]++),e.sym_next===e.sym_end);var IA=NA,FA=b_,MA=jA,LA=DA,UA=RA,zA={_tr_init:IA,_tr_stored_block:FA,_tr_flush_block:MA,_tr_tally:LA,_tr_align:UA},_a=(e,t,r,n)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;r!==0;){s=r>2e3?2e3:r,r-=s;do i=i+t[n++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0};const GA=()=>{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},VA=new Uint32Array(GA());var wr=(e,t,r,n)=>{const i=VA,o=n+r;e^=-1;for(let s=n;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1},xo={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"},So={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:BA,_tr_stored_block:Ff,_tr_flush_block:HA,_tr_tally:Vi,_tr_align:qA}=zA,{Z_NO_FLUSH:Bi,Z_PARTIAL_FLUSH:KA,Z_FULL_FLUSH:YA,Z_FINISH:yn,Z_BLOCK:w_,Z_OK:Cr,Z_STREAM_END:x_,Z_STREAM_ERROR:Wn,Z_DATA_ERROR:XA,Z_BUF_ERROR:Mf,Z_DEFAULT_COMPRESSION:JA,Z_FILTERED:WA,Z_HUFFMAN_ONLY:Hc,Z_RLE:QA,Z_FIXED:ZA,Z_DEFAULT_STRATEGY:t9,Z_UNKNOWN:e9,Z_DEFLATED:qc}=So,r9=9,n9=15,i9=8,o9=29,s9=256,Lf=s9+1+o9,a9=30,l9=19,c9=2*Lf+1,u9=15,we=3,Hi=258,Qn=Hi+we+1,h9=32,hs=42,Uf=57,zf=69,Gf=73,Vf=91,Bf=103,$o=113,ba=666,Ur=1,ds=2,ko=3,fs=4,d9=3,Eo=(e,t)=>(e.msg=xo[t],t),S_=e=>e*2-(e>4?9:0),qi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},f9=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 p9=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,Ki=p9;const ln=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))},cn=(e,t)=>{HA(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ln(e.strm)},Oe=(e,t)=>{e.pending_buf[e.pending++]=t},wa=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Hf=(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=_a(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)},$_=(e,t)=>{let r=e.max_chain_length,n=e.strstart,i,o,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-Qn?e.strstart-(e.w_size-Qn):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+Hi;let h=l[n+s-1],p=l[n+s];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(l[i+s]!==p||l[i+s-1]!==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=Hi-(f-n),n=f-Hi,o>s){if(e.match_start=t,s=o,o>=a)break;h=l[n+s-1],p=l[n+s]}}while((t=d[t&u])>c&&--r!==0);return s<=e.lookahead?s:e.lookahead},ps=e=>{const t=e.w_size;let r,n,i;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Qn)&&(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),f9(e),n+=t),e.strm.avail_in===0)break;if(r=Hf(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=r,e.lookahead+e.insert>=we)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ki(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ki(e,e.ins_h,e.window[i+we-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<we)););}while(e.lookahead<Qn&&e.strm.avail_in!==0)},k_=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,i,o,s=0,a=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,i=e.strstart-e.block_start,n>i+e.strm.avail_in&&(n=i+e.strm.avail_in),n>o&&(n=o),n<r&&(n===0&&t!==yn||t===Bi||n!==i+e.strm.avail_in)))break;s=t===yn&&n===i+e.strm.avail_in?1:0,Ff(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,ln(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&&(Hf(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(s===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?fs:t!==Bi&&t!==yn&&e.strm.avail_in===0&&e.strstart===e.block_start?ds:(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&&(Hf(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===yn)&&t!==Bi&&e.strm.avail_in===0&&i<=o)&&(n=i>o?o:i,s=t===yn&&e.strm.avail_in===0&&n===i?1:0,Ff(e,e.block_start,n,s),e.block_start+=n,ln(e.strm)),s?ko:Ur)},qf=(e,t)=>{let r,n;for(;;){if(e.lookahead<Qn){if(ps(e),e.lookahead<Qn&&t===Bi)return Ur;if(e.lookahead===0)break}if(r=0,e.lookahead>=we&&(e.ins_h=Ki(e,e.ins_h,e.window[e.strstart+we-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-Qn&&(e.match_length=$_(e,r)),e.match_length>=we)if(n=Vi(e,e.strstart-e.match_start,e.match_length-we),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=we){e.match_length--;do e.strstart++,e.ins_h=Ki(e,e.ins_h,e.window[e.strstart+we-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=Ki(e,e.ins_h,e.window[e.strstart+1]);else n=Vi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(cn(e,!1),e.strm.avail_out===0))return Ur}return e.insert=e.strstart<we-1?e.strstart:we-1,t===yn?(cn(e,!0),e.strm.avail_out===0?ko:fs):e.sym_next&&(cn(e,!1),e.strm.avail_out===0)?Ur:ds},ms=(e,t)=>{let r,n,i;for(;;){if(e.lookahead<Qn){if(ps(e),e.lookahead<Qn&&t===Bi)return Ur;if(e.lookahead===0)break}if(r=0,e.lookahead>=we&&(e.ins_h=Ki(e,e.ins_h,e.window[e.strstart+we-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=we-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Qn&&(e.match_length=$_(e,r),e.match_length<=5&&(e.strategy===WA||e.match_length===we&&e.strstart-e.match_start>4096)&&(e.match_length=we-1)),e.prev_length>=we&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-we,n=Vi(e,e.strstart-1-e.prev_match,e.prev_length-we),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ki(e,e.ins_h,e.window[e.strstart+we-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=we-1,e.strstart++,n&&(cn(e,!1),e.strm.avail_out===0))return Ur}else if(e.match_available){if(n=Vi(e,0,e.window[e.strstart-1]),n&&cn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ur}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Vi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<we-1?e.strstart:we-1,t===yn?(cn(e,!0),e.strm.avail_out===0?ko:fs):e.sym_next&&(cn(e,!1),e.strm.avail_out===0)?Ur:ds},m9=(e,t)=>{let r,n,i,o;const s=e.window;for(;;){if(e.lookahead<=Hi){if(ps(e),e.lookahead<=Hi&&t===Bi)return Ur;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=we&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+Hi;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o);e.match_length=Hi-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=we?(r=Vi(e,1,e.match_length-we),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Vi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(cn(e,!1),e.strm.avail_out===0))return Ur}return e.insert=0,t===yn?(cn(e,!0),e.strm.avail_out===0?ko:fs):e.sym_next&&(cn(e,!1),e.strm.avail_out===0)?Ur:ds},g9=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(ps(e),e.lookahead===0)){if(t===Bi)return Ur;break}if(e.match_length=0,r=Vi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(cn(e,!1),e.strm.avail_out===0))return Ur}return e.insert=0,t===yn?(cn(e,!0),e.strm.avail_out===0?ko:fs):e.sym_next&&(cn(e,!1),e.strm.avail_out===0)?Ur:ds};function Zn(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 xa=[new Zn(0,0,0,0,k_),new Zn(4,4,8,4,qf),new Zn(4,5,16,8,qf),new Zn(4,6,32,32,qf),new Zn(4,4,16,16,ms),new Zn(8,16,32,32,ms),new Zn(8,16,128,128,ms),new Zn(8,32,128,256,ms),new Zn(32,128,258,1024,ms),new Zn(32,258,258,4096,ms)],v9=e=>{e.window_size=2*e.w_size,qi(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=we-1,e.match_available=0,e.ins_h=0};function y9(){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=qc,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(c9*2),this.dyn_dtree=new Uint16Array((2*a9+1)*2),this.bl_tree=new Uint16Array((2*l9+1)*2),qi(this.dyn_ltree),qi(this.dyn_dtree),qi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(u9+1),this.heap=new Uint16Array(2*Lf+1),qi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Lf+1),qi(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 Sa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==hs&&t.status!==Uf&&t.status!==zf&&t.status!==Gf&&t.status!==Vf&&t.status!==Bf&&t.status!==$o&&t.status!==ba?1:0},E_=e=>{if(Sa(e))return Eo(e,Wn);e.total_in=e.total_out=0,e.data_type=e9;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Uf:t.wrap?hs:$o,e.adler=t.wrap===2?0:1,t.last_flush=-2,BA(t),Cr},C_=e=>{const t=E_(e);return t===Cr&&v9(e.state),t},_9=(e,t)=>Sa(e)||e.state.wrap!==2?Wn:(e.state.gzhead=t,Cr),P_=(e,t,r,n,i,o)=>{if(!e)return Wn;let s=1;if(t===JA&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>r9||r!==qc||n<8||n>15||t<0||t>9||o<0||o>ZA||n===8&&s!==1)return Eo(e,Wn);n===8&&(n=9);const a=new y9;return e.state=a,a.strm=e,a.status=hs,a.wrap=s,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+we-1)/we),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=o,a.method=r,C_(e)},b9=(e,t)=>P_(e,t,qc,n9,i9,t9),w9=(e,t)=>{if(Sa(e)||t>w_||t<0)return e?Eo(e,Wn):Wn;const r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===ba&&t!==yn)return Eo(e,e.avail_out===0?Mf:Wn);const n=r.last_flush;if(r.last_flush=t,r.pending!==0){if(ln(e),e.avail_out===0)return r.last_flush=-1,Cr}else if(e.avail_in===0&&S_(t)<=S_(n)&&t!==yn)return Eo(e,Mf);if(r.status===ba&&e.avail_in!==0)return Eo(e,Mf);if(r.status===hs&&r.wrap===0&&(r.status=$o),r.status===hs){let i=qc+(r.w_bits-8<<4)<<8,o=-1;if(r.strategy>=Hc||r.level<2?o=0:r.level<6?o=1:r.level===6?o=2:o=3,i|=o<<6,r.strstart!==0&&(i|=h9),i+=31-i%31,wa(r,i),r.strstart!==0&&(wa(r,e.adler>>>16),wa(r,e.adler&65535)),e.adler=1,r.status=$o,ln(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===Uf){if(e.adler=0,Oe(r,31),Oe(r,139),Oe(r,8),r.gzhead)Oe(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)),Oe(r,r.gzhead.time&255),Oe(r,r.gzhead.time>>8&255),Oe(r,r.gzhead.time>>16&255),Oe(r,r.gzhead.time>>24&255),Oe(r,r.level===9?2:r.strategy>=Hc||r.level<2?4:0),Oe(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(Oe(r,r.gzhead.extra.length&255),Oe(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=zf;else if(Oe(r,0),Oe(r,0),Oe(r,0),Oe(r,0),Oe(r,0),Oe(r,r.level===9?2:r.strategy>=Hc||r.level<2?4:0),Oe(r,d9),r.status=$o,ln(e),r.pending!==0)return r.last_flush=-1,Cr}if(r.status===zf){if(r.gzhead.extra){let i=r.pending,o=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+o>r.pending_buf_size;){let a=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex+=a,ln(e),r.pending!==0)return r.last_flush=-1,Cr;i=0,o-=a}let s=new Uint8Array(r.gzhead.extra);r.pending_buf.set(s.subarray(r.gzindex,r.gzindex+o),r.pending),r.pending+=o,r.gzhead.hcrc&&r.pending>i&&(e.adler=wr(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex=0}r.status=Gf}if(r.status===Gf){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)),ln(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,Oe(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=Vf}if(r.status===Vf){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)),ln(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,Oe(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=Bf}if(r.status===Bf){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(ln(e),r.pending!==0))return r.last_flush=-1,Cr;Oe(r,e.adler&255),Oe(r,e.adler>>8&255),e.adler=0}if(r.status=$o,ln(e),r.pending!==0)return r.last_flush=-1,Cr}if(e.avail_in!==0||r.lookahead!==0||t!==Bi&&r.status!==ba){let i=r.level===0?k_(r,t):r.strategy===Hc?g9(r,t):r.strategy===QA?m9(r,t):xa[r.level].func(r,t);if((i===ko||i===fs)&&(r.status=ba),i===Ur||i===ko)return e.avail_out===0&&(r.last_flush=-1),Cr;if(i===ds&&(t===KA?qA(r):t!==w_&&(Ff(r,0,0,!1),t===YA&&(qi(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),ln(e),e.avail_out===0))return r.last_flush=-1,Cr}return t!==yn?Cr:r.wrap<=0?x_:(r.wrap===2?(Oe(r,e.adler&255),Oe(r,e.adler>>8&255),Oe(r,e.adler>>16&255),Oe(r,e.adler>>24&255),Oe(r,e.total_in&255),Oe(r,e.total_in>>8&255),Oe(r,e.total_in>>16&255),Oe(r,e.total_in>>24&255)):(wa(r,e.adler>>>16),wa(r,e.adler&65535)),ln(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Cr:x_)},x9=e=>{if(Sa(e))return Wn;const t=e.state.status;return e.state=null,t===$o?Eo(e,XA):Cr},S9=(e,t)=>{let r=t.length;if(Sa(e))return Wn;const n=e.state,i=n.wrap;if(i===2||i===1&&n.status!==hs||n.lookahead)return Wn;if(i===1&&(e.adler=_a(e.adler,t,r,0)),n.wrap=0,r>=n.w_size){i===0&&(qi(n.head),n.strstart=0,n.block_start=0,n.insert=0);let c=new Uint8Array(n.w_size);c.set(t.subarray(r-n.w_size,r),0),t=c,r=n.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,ps(n);n.lookahead>=we;){let c=n.strstart,l=n.lookahead-(we-1);do n.ins_h=Ki(n,n.ins_h,n.window[c+we-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=we-1,ps(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=we-1,n.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,n.wrap=i,Cr};var $9=b9,k9=P_,E9=C_,C9=E_,P9=_9,T9=w9,O9=x9,A9=S9,N9="pako deflate (from Nodeca project)",$a={deflateInit:$9,deflateInit2:k9,deflateReset:E9,deflateResetKeep:C9,deflateSetHeader:P9,deflate:T9,deflateEnd:O9,deflateSetDictionary:A9,deflateInfo:N9};const R9=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var j9=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)R9(r,n)&&(e[n]=r[n])}}return e},D9=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,o=e.length;n<o;n++){let s=e[n];r.set(s,i),i+=s.length}return r},Kc={assign:j9,flattenChunks:D9};let T_=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{T_=!1}const ka=new Uint8Array(256);for(let e=0;e<256;e++)ka[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ka[254]=ka[254]=1;var I9=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,o,s=e.length,a=0;for(i=0;i<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),a+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(a),o=0,i=0;o<a;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[o++]=r:r<2048?(t[o++]=192|r>>>6,t[o++]=128|r&63):r<65536?(t[o++]=224|r>>>12,t[o++]=128|r>>>6&63,t[o++]=128|r&63):(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63,t[o++]=128|r>>>6&63,t[o++]=128|r&63);return t};const F9=(e,t)=>{if(t<65534&&e.subarray&&T_)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 M9=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const o=new Array(r*2);for(i=0,n=0;n<r;){let s=e[n++];if(s<128){o[i++]=s;continue}let a=ka[s];if(a>4){o[i++]=65533,n+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&n<r;)s=s<<6|e[n++]&63,a--;if(a>1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return F9(o,i)},L9=(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+ka[e[r]]>t?r:t},Ea={string2buf:I9,buf2string:M9,utf8border:L9};function U9(){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 O_=U9;const A_=Object.prototype.toString,{Z_NO_FLUSH:z9,Z_SYNC_FLUSH:G9,Z_FULL_FLUSH:V9,Z_FINISH:B9,Z_OK:Yc,Z_STREAM_END:H9,Z_DEFAULT_COMPRESSION:q9,Z_DEFAULT_STRATEGY:K9,Z_DEFLATED:Y9}=So;function Ca(e){this.options=Kc.assign({level:q9,method:Y9,chunkSize:16384,windowBits:15,memLevel:8,strategy:K9},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 O_,this.strm.avail_out=0;let r=$a.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Yc)throw new Error(xo[r]);if(t.header&&$a.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=Ea.string2buf(t.dictionary):A_.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,r=$a.deflateSetDictionary(this.strm,n),r!==Yc)throw new Error(xo[r]);this._dict_set=!0}}Ca.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?B9:z9,typeof e=="string"?r.input=Ea.string2buf(e):A_.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===G9||o===V9)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(i=$a.deflate(r,o),i===H9)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=$a.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Yc;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},Ca.prototype.onData=function(e){this.chunks.push(e)},Ca.prototype.onEnd=function(e){e===Yc&&(this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kf(e,t){const r=new Ca(t);if(r.push(e,!0),r.err)throw r.msg||xo[r.err];return r.result}function X9(e,t){return t=t||{},t.raw=!0,Kf(e,t)}function J9(e,t){return t=t||{},t.gzip=!0,Kf(e,t)}var W9=Ca,Q9=Kf,Z9=X9,t7=J9,e7=So,r7={Deflate:W9,deflate:Q9,deflateRaw:Z9,gzip:t7,constants:e7};const Xc=16209,n7=16191;var i7=function(e,t){let r,n,i,o,s,a,c,l,u,d,f,h,p,g,v,b,_,m,S,N,k,A,R,z;const B=e.state;r=e.next_in,R=e.input,n=r+(e.avail_in-5),i=e.next_out,z=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=B.dmax,c=B.wsize,l=B.whave,u=B.wnext,d=B.window,f=B.hold,h=B.bits,p=B.lencode,g=B.distcode,v=(1<<B.lenbits)-1,b=(1<<B.distbits)-1;t:do{h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),_=p[f&v];e:for(;;){if(m=_>>>24,f>>>=m,h-=m,m=_>>>16&255,m===0)z[i++]=_&65535;else if(m&16){S=_&65535,m&=15,m&&(h<m&&(f+=R[r++]<<h,h+=8),S+=f&(1<<m)-1,f>>>=m,h-=m),h<15&&(f+=R[r++]<<h,h+=8,f+=R[r++]<<h,h+=8),_=g[f&b];r:for(;;){if(m=_>>>24,f>>>=m,h-=m,m=_>>>16&255,m&16){if(N=_&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>a){e.msg="invalid distance too far back",B.mode=Xc;break t}if(f>>>=m,h-=m,m=i-o,N>m){if(m=N-m,m>l&&B.sane){e.msg="invalid distance too far back",B.mode=Xc;break t}if(k=0,A=d,u===0){if(k+=c-m,m<S){S-=m;do z[i++]=d[k++];while(--m);k=i-N,A=z}}else if(u<m){if(k+=c+u-m,m-=u,m<S){S-=m;do z[i++]=d[k++];while(--m);if(k=0,u<S){m=u,S-=m;do z[i++]=d[k++];while(--m);k=i-N,A=z}}}else if(k+=u-m,m<S){S-=m;do z[i++]=d[k++];while(--m);k=i-N,A=z}for(;S>2;)z[i++]=A[k++],z[i++]=A[k++],z[i++]=A[k++],S-=3;S&&(z[i++]=A[k++],S>1&&(z[i++]=A[k++]))}else{k=i-N;do z[i++]=z[k++],z[i++]=z[k++],z[i++]=z[k++],S-=3;while(S>2);S&&(z[i++]=z[k++],S>1&&(z[i++]=z[k++]))}}else if(m&64){e.msg="invalid distance code",B.mode=Xc;break t}else{_=g[(_&65535)+(f&(1<<m)-1)];continue r}break}}else if(m&64)if(m&32){B.mode=n7;break t}else{e.msg="invalid literal/length code",B.mode=Xc;break t}else{_=p[(_&65535)+(f&(1<<m)-1)];continue e}break}}while(r<n&&i<s);S=h>>3,r-=S,h-=S<<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<s?257+(s-i):257-(i-s),B.hold=f,B.bits=h};const gs=15,N_=852,R_=592,j_=0,Yf=1,D_=2,o7=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]),s7=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]),a7=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]),l7=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 Pa=(e,t,r,n,i,o,s,a)=>{const c=a.bits;let l=0,u=0,d=0,f=0,h=0,p=0,g=0,v=0,b=0,_=0,m,S,N,k,A,R=null,z;const B=new Uint16Array(gs+1),Y=new Uint16Array(gs+1);let W=null,nt,rt,lt;for(l=0;l<=gs;l++)B[l]=0;for(u=0;u<n;u++)B[t[r+u]]++;for(h=c,f=gs;f>=1&&B[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,a.bits=1,0;for(d=1;d<f&&B[d]===0;d++);for(h<d&&(h=d),v=1,l=1;l<=gs;l++)if(v<<=1,v-=B[l],v<0)return-1;if(v>0&&(e===j_||f!==1))return-1;for(Y[1]=0,l=1;l<gs;l++)Y[l+1]=Y[l]+B[l];for(u=0;u<n;u++)t[r+u]!==0&&(s[Y[t[r+u]]++]=u);if(e===j_?(R=W=s,z=20):e===Yf?(R=o7,W=s7,z=257):(R=a7,W=l7,z=0),_=0,u=0,l=d,A=o,p=h,g=0,N=-1,b=1<<h,k=b-1,e===Yf&&b>N_||e===D_&&b>R_)return 1;for(;;){nt=l-g,s[u]+1<z?(rt=0,lt=s[u]):s[u]>=z?(rt=W[s[u]-z],lt=R[s[u]-z]):(rt=96,lt=0),m=1<<l-g,S=1<<p,d=S;do S-=m,i[A+(_>>g)+S]=nt<<24|rt<<16|lt|0;while(S!==0);for(m=1<<l-1;_&m;)m>>=1;if(m!==0?(_&=m-1,_+=m):_=0,u++,--B[l]===0){if(l===f)break;l=t[r+s[u]]}if(l>h&&(_&k)!==N){for(g===0&&(g=h),A+=d,p=l-g,v=1<<p;p+g<f&&(v-=B[p+g],!(v<=0));)p++,v<<=1;if(b+=1<<p,e===Yf&&b>N_||e===D_&&b>R_)return 1;N=_&k,i[N]=h<<24|p<<16|A-o|0}}return _!==0&&(i[A+_]=l-g<<24|64<<16|0),a.bits=h,0};const c7=0,I_=1,F_=2,{Z_FINISH:M_,Z_BLOCK:u7,Z_TREES:Jc,Z_OK:Co,Z_STREAM_END:h7,Z_NEED_DICT:d7,Z_STREAM_ERROR:Dn,Z_DATA_ERROR:L_,Z_MEM_ERROR:U_,Z_BUF_ERROR:f7,Z_DEFLATED:z_}=So,Wc=16180,G_=16181,V_=16182,B_=16183,H_=16184,q_=16185,K_=16186,Y_=16187,X_=16188,J_=16189,Qc=16190,_i=16191,Xf=16192,W_=16193,Jf=16194,Q_=16195,Z_=16196,tb=16197,eb=16198,Zc=16199,tu=16200,rb=16201,nb=16202,ib=16203,ob=16204,sb=16205,Wf=16206,ab=16207,lb=16208,Qe=16209,cb=16210,ub=16211,p7=852,m7=592,g7=15,v7=g7,hb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function y7(){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 Po=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Wc||t.mode>ub?1:0},db=e=>{if(Po(e))return Dn;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=Wc,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(p7),t.distcode=t.distdyn=new Int32Array(m7),t.sane=1,t.back=-1,Co},fb=e=>{if(Po(e))return Dn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,db(e)},pb=(e,t)=>{let r;if(Po(e))return Dn;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Dn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,fb(e))},mb=(e,t)=>{if(!e)return Dn;const r=new y7;e.state=r,r.strm=e,r.window=null,r.mode=Wc;const n=pb(e,t);return n!==Co&&(e.state=null),n},_7=e=>mb(e,v7);let gb=!0,Qf,Zf;const b7=e=>{if(gb){Qf=new Int32Array(512),Zf=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(Pa(I_,e.lens,0,288,Qf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Pa(F_,e.lens,0,32,Zf,0,e.work,{bits:5}),gb=!1}e.lencode=Qf,e.lenbits=9,e.distcode=Zf,e.distbits=5},vb=(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},w7=(e,t)=>{let r,n,i,o,s,a,c,l,u,d,f,h,p,g,v=0,b,_,m,S,N,k,A,R;const z=new Uint8Array(4);let B,Y;const W=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Po(e)||!e.output||!e.input&&e.avail_in!==0)return Dn;r=e.state,r.mode===_i&&(r.mode=Xf),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,d=a,f=c,R=Co;t:for(;;)switch(r.mode){case Wc:if(r.wrap===0){r.mode=Xf;break}for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,z[0]=l&255,z[1]=l>>>8&255,r.check=wr(r.check,z,2,0),l=0,u=0,r.mode=G_;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Qe;break}if((l&15)!==z_){e.msg="unknown compression method",r.mode=Qe;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=Qe;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?J_:_i,l=0,u=0;break;case G_:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==z_){e.msg="unknown compression method",r.mode=Qe;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Qe;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(z[0]=l&255,z[1]=l>>>8&255,r.check=wr(r.check,z,2,0)),l=0,u=0,r.mode=V_;case V_:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(z[0]=l&255,z[1]=l>>>8&255,z[2]=l>>>16&255,z[3]=l>>>24&255,r.check=wr(r.check,z,4,0)),l=0,u=0,r.mode=B_;case B_:for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(z[0]=l&255,z[1]=l>>>8&255,r.check=wr(r.check,z,2,0)),l=0,u=0,r.mode=H_;case H_:if(r.flags&1024){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(z[0]=l&255,z[1]=l>>>8&255,r.check=wr(r.check,z,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=q_;case q_:if(r.flags&1024&&(h=r.length,h>a&&(h=a),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)),a-=h,o+=h,r.length-=h),r.length))break t;r.length=0,r.mode=K_;case K_:if(r.flags&2048){if(a===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<a);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),a-=h,o+=h,A)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=Y_;case Y_:if(r.flags&4096){if(a===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<a);if(r.flags&512&&r.wrap&4&&(r.check=wr(r.check,n,h,o)),a-=h,o+=h,A)break t}else r.head&&(r.head.comment=null);r.mode=X_;case X_:if(r.flags&512){for(;u<16;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Qe;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=_i;break;case J_:for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}e.adler=r.check=hb(l),l=0,u=0,r.mode=Qc;case Qc:if(r.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,d7;e.adler=r.check=1,r.mode=_i;case _i:if(t===u7||t===Jc)break t;case Xf:if(r.last){l>>>=u&7,u-=u&7,r.mode=Wf;break}for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=W_;break;case 1:if(b7(r),r.mode=Zc,t===Jc){l>>>=2,u-=2;break t}break;case 2:r.mode=Z_;break;case 3:e.msg="invalid block type",r.mode=Qe}l>>>=2,u-=2;break;case W_:for(l>>>=u&7,u-=u&7;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Qe;break}if(r.length=l&65535,l=0,u=0,r.mode=Jf,t===Jc)break t;case Jf:r.mode=Q_;case Q_:if(h=r.length,h){if(h>a&&(h=a),h>c&&(h=c),h===0)break t;i.set(n.subarray(o,o+h),s),a-=h,o+=h,c-=h,s+=h,r.length-=h;break}r.mode=_i;break;case Z_:for(;u<14;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.nlen=(l&31)+257,l>>>=5,u-=5,r.ndist=(l&31)+1,l>>>=5,u-=5,r.ncode=(l&15)+4,l>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Qe;break}r.have=0,r.mode=tb;case tb:for(;r.have<r.ncode;){for(;u<3;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.lens[W[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[W[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},R=Pa(c7,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,R){e.msg="invalid code lengths set",r.mode=Qe;break}r.have=0,r.mode=eb;case eb:for(;r.have<r.nlen+r.ndist;){for(;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(m<16)l>>>=b,u-=b,r.lens[r.have++]=m;else{if(m===16){for(Y=b+2;u<Y;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(l>>>=b,u-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=Qe;break}A=r.lens[r.have-1],h=3+(l&3),l>>>=2,u-=2}else if(m===17){for(Y=b+3;u<Y;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,A=0,h=3+(l&7),l>>>=3,u-=3}else{for(Y=b+7;u<Y;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=b,u-=b,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=Qe;break}for(;h--;)r.lens[r.have++]=A}}if(r.mode===Qe)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Qe;break}if(r.lenbits=9,B={bits:r.lenbits},R=Pa(I_,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,R){e.msg="invalid literal/lengths set",r.mode=Qe;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},R=Pa(F_,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,R){e.msg="invalid distances set",r.mode=Qe;break}if(r.mode=Zc,t===Jc)break t;case Zc:r.mode=tu;case tu:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,i7(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,u=r.bits,r.mode===_i&&(r.back=-1);break}for(r.back=0;v=r.lencode[l&(1<<r.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(_&&!(_&240)){for(S=b,N=_,k=m;v=r.lencode[k+((l&(1<<S+N)-1)>>S)],b=v>>>24,_=v>>>16&255,m=v&65535,!(S+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=S,u-=S,r.back+=S}if(l>>>=b,u-=b,r.back+=b,r.length=m,_===0){r.mode=sb;break}if(_&32){r.back=-1,r.mode=_i;break}if(_&64){e.msg="invalid literal/length code",r.mode=Qe;break}r.extra=_&15,r.mode=rb;case rb:if(r.extra){for(Y=r.extra;u<Y;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=nb;case nb:for(;v=r.distcode[l&(1<<r.distbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,!(b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(!(_&240)){for(S=b,N=_,k=m;v=r.distcode[k+((l&(1<<S+N)-1)>>S)],b=v>>>24,_=v>>>16&255,m=v&65535,!(S+b<=u);){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}l>>>=S,u-=S,r.back+=S}if(l>>>=b,u-=b,r.back+=b,_&64){e.msg="invalid distance code",r.mode=Qe;break}r.offset=m,r.extra=_&15,r.mode=ib;case ib:if(r.extra){for(Y=r.extra;u<Y;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Qe;break}r.mode=ob;case ob: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=Qe;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=s-r.offset,h=r.length;h>c&&(h=c),c-=h,r.length-=h;do i[s++]=g[p++];while(--h);r.length===0&&(r.mode=tu);break;case sb:if(c===0)break t;i[s++]=r.length,c--,r.mode=tu;break;case Wf:if(r.wrap){for(;u<32;){if(a===0)break t;a--,l|=n[o++]<<u,u+=8}if(f-=c,e.total_out+=f,r.total+=f,r.wrap&4&&f&&(e.adler=r.check=r.flags?wr(r.check,i,f,s-f):_a(r.check,i,f,s-f)),f=c,r.wrap&4&&(r.flags?l:hb(l))!==r.check){e.msg="incorrect data check",r.mode=Qe;break}l=0,u=0}r.mode=ab;case ab:if(r.wrap&&r.flags){for(;u<32;){if(a===0)break t;a--,l+=n[o++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Qe;break}l=0,u=0}r.mode=lb;case lb:R=h7;break t;case Qe:R=L_;break t;case cb:return U_;case ub:default:return Dn}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<Qe&&(r.mode<Wf||t!==M_))&&vb(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):_a(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===_i?128:0)+(r.mode===Zc||r.mode===Jf?256:0),(d===0&&f===0||t===M_)&&R===Co&&(R=f7),R},x7=e=>{if(Po(e))return Dn;let t=e.state;return t.window&&(t.window=null),e.state=null,Co},S7=(e,t)=>{if(Po(e))return Dn;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Co):Dn},$7=(e,t)=>{const r=t.length;let n,i,o;return Po(e)||(n=e.state,n.wrap!==0&&n.mode!==Qc)?Dn:n.mode===Qc&&(i=1,i=_a(i,t,r,0),i!==n.check)?L_:(o=vb(e,t,r,r),o?(n.mode=cb,U_):(n.havedict=1,Co))};var k7=fb,E7=pb,C7=db,P7=_7,T7=mb,O7=w7,A7=x7,N7=S7,R7=$7,j7="pako inflate (from Nodeca project)",bi={inflateReset:k7,inflateReset2:E7,inflateResetKeep:C7,inflateInit:P7,inflateInit2:T7,inflate:O7,inflateEnd:A7,inflateGetHeader:N7,inflateSetDictionary:R7,inflateInfo:j7};function D7(){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 I7=D7;const yb=Object.prototype.toString,{Z_NO_FLUSH:F7,Z_FINISH:M7,Z_OK:Ta,Z_STREAM_END:tp,Z_NEED_DICT:ep,Z_STREAM_ERROR:L7,Z_DATA_ERROR:_b,Z_MEM_ERROR:U7}=So;function Oa(e){this.options=Kc.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 O_,this.strm.avail_out=0;let r=bi.inflateInit2(this.strm,t.windowBits);if(r!==Ta)throw new Error(xo[r]);if(this.header=new I7,bi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Ea.string2buf(t.dictionary):yb.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=bi.inflateSetDictionary(this.strm,t.dictionary),r!==Ta)))throw new Error(xo[r])}Oa.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?M7:F7,yb.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=bi.inflate(r,s),o===ep&&i&&(o=bi.inflateSetDictionary(r,i),o===Ta?o=bi.inflate(r,s):o===_b&&(o=ep));r.avail_in>0&&o===tp&&r.state.wrap>0&&e[r.next_in]!==0;)bi.inflateReset(r),o=bi.inflate(r,s);switch(o){case L7:case _b:case ep:case U7:return this.onEnd(o),this.ended=!0,!1}if(a=r.avail_out,r.next_out&&(r.avail_out===0||o===tp))if(this.options.to==="string"){let c=Ea.utf8border(r.output,r.next_out),l=r.next_out-c,u=Ea.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===Ta&&a===0)){if(o===tp)return o=bi.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(r.avail_in===0)break}}return!0},Oa.prototype.onData=function(e){this.chunks.push(e)},Oa.prototype.onEnd=function(e){e===Ta&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function rp(e,t){const r=new Oa(t);if(r.push(e),r.err)throw r.msg||xo[r.err];return r.result}function z7(e,t){return t=t||{},t.raw=!0,rp(e,t)}var G7=Oa,V7=rp,B7=z7,H7=rp,q7=So,K7={Inflate:G7,inflate:V7,inflateRaw:B7,ungzip:H7,constants:q7};const{Deflate:Y7,deflate:X7,deflateRaw:J7,gzip:W7}=r7,{Inflate:Q7,inflate:Z7,inflateRaw:tN,ungzip:eN}=K7;var rN=Y7,nN=X7,iN=J7,oN=W7,sN=Q7,aN=Z7,lN=tN,cN=eN,uN=So,hN={Deflate:rN,deflate:nN,deflateRaw:iN,gzip:oN,Inflate:sN,inflate:aN,inflateRaw:lN,ungzip:cN,constants:uN};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),s=new Uint8Array(i),a=new Uint8Array(i);for(let c=0;c<e.frames.length;c++){const l=e.frames[c],u=l.rect.x,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++)a[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(s,f,h,o,t,r,u,d,0);else if(l.dispose===2)for(let g=0;g<i;g++)o[g]=a[g]}return n},St.toRGBA8.decodeImage=function(e,t,r,n){const i=t*r,o=St.decode._getBPP(n),s=Math.ceil(t*o/8),a=new Uint8Array(i*4),c=new Uint32Array(a.buffer),l=n.ctype,u=n.depth,d=St._bin.readUshort;if(l===6){const f=i<<2;if(u===8)for(let h=0;h<f;h+=4)a[h]=e[h],a[h+1]=e[h+1],a[h+2]=e[h+2],a[h+3]=e[h+3];if(u===16)for(let h=0;h<f;h++)a[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 b=v<<2,_=v*3;c[v]=255<<24|e[_+2]<<16|e[_+1]<<8|e[_],e[_]===h&&e[_+1]===p&&e[_+2]===g&&(a[b+3]=0)}if(u===16)for(let v=0;v<i;v++){const b=v<<2,_=v*6;c[v]=255<<24|e[_+4]<<16|e[_+2]<<8|e[_],d(e,_)===h&&d(e,_+2)===p&&d(e,_+4)===g&&(a[b+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*s,b=g*t;for(let _=0;_<t;_++){const m=b+_<<2,S=e[v+(_>>3)]>>7-((_&7)<<0)&1,N=3*S;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=S<p?h[S]:255}}if(u===2)for(let g=0;g<r;g++){const v=g*s,b=g*t;for(let _=0;_<t;_++){const m=b+_<<2,S=e[v+(_>>2)]>>6-((_&3)<<1)&3,N=3*S;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=S<p?h[S]:255}}if(u===4)for(let g=0;g<r;g++){const v=g*s,b=g*t;for(let _=0;_<t;_++){const m=b+_<<2,S=e[v+(_>>1)]>>4-((_&1)<<2)&15,N=3*S;a[m]=f[N],a[m+1]=f[N+1],a[m+2]=f[N+2],a[m+3]=S<p?h[S]:255}}if(u===8)for(let g=0;g<i;g++){const v=g<<2,b=e[g],_=3*b;a[v]=f[_],a[v+1]=f[_+1],a[v+2]=f[_+2],a[v+3]=b<p?h[b]: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];a[h]=g,a[h+1]=g,a[h+2]=g,a[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];a[h]=g,a[h+1]=g,a[h+2]=g,a[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*s,g=h*t;if(u===1)for(let v=0;v<t;v++){const b=255*(e[p+(v>>>3)]>>>7-(v&7)&1),_=b===f*255?0:255;c[g+v]=_<<24|b<<16|b<<8|b}else if(u===2)for(let v=0;v<t;v++){const b=85*(e[p+(v>>>2)]>>>6-((v&3)<<1)&3),_=b===f*85?0:255;c[g+v]=_<<24|b<<16|b<<8|b}else if(u===4)for(let v=0;v<t;v++){const b=17*(e[p+(v>>>1)]>>>4-((v&1)<<2)&15),_=b===f*17?0:255;c[g+v]=_<<24|b<<16|b<<8|b}else if(u===8)for(let v=0;v<t;v++){const b=e[p+v],_=b===f?0:255;c[g+v]=_<<24|b<<16|b<<8|b}else if(u===16)for(let v=0;v<t;v++){const b=e[p+(v<<1)],_=d(e,p+(v<<1))===f?0:255;c[g+v]=_<<24|b<<16|b<<8|b}}}return a},St.decode=function(e){const t=new Uint8Array(e);let r=8;const n=St._bin,i=n.readUshort,o=n.readUint,s={tabs:{},frames:[]},a=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,s);else if(h==="CgBI")s.tabs[h]=t.slice(r,r+4);else if(h==="IDAT"){for(let p=0;p<f;p++)a[c+p]=t[r+p];c+=f}else if(h==="acTL")s.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 b=s.frames[s.frames.length-1];b.data=St.decode._decompress(s,l.slice(0,u),b.rect.width,b.rect.height),u=0}const p={x:o(t,r+12),y:o(t,r+16),width:o(t,r+4),height:o(t,r+8)};let g=i(t,r+22);g=i(t,r+20)/(g===0?100:g);const v={rect:p,delay:Math.round(g*1e3),dispose:t[r+24],blend:t[r+25]};s.frames.push(v)}else if(h==="fdAT"){for(let p=0;p<f-4;p++)l[u+p]=t[r+p+4];u+=f-4}else if(h==="pHYs")s.tabs[h]=[n.readUint(t,r),n.readUint(t,r+4),t[r+8]];else if(h==="cHRM"){s.tabs[h]=[];for(let p=0;p<8;p++)s.tabs[h].push(n.readUint(t,r+p*4))}else if(h==="tEXt"||h==="zTXt"){s.tabs[h]===null&&(s.tabs[h]={});const p=n.nextZero(t,r),g=n.readASCII(t,r,p-r);let v;const b=r+f-p-1;if(h==="tEXt")v=n.readASCII(t,p+1,b);else{const _=St.decode._inflate(t.slice(p+2,p+2+b));v=n.readUTF8(_,0,_.length)}s.tabs[h][g]=v}else if(h==="iTXt"){s.tabs[h]==null&&(s.tabs[h]={});let p=0,g=r;p=n.nextZero(t,g);const v=n.readASCII(t,g,p-g);g=p+1;const b=t[g];g+=2,p=n.nextZero(t,g),g=p+1,p=n.nextZero(t,g),g=p+1;let _;const m=f-(g-r);if(b===0)_=n.readUTF8(t,g,m);else{const S=St.decode._inflate(t.slice(g,g+m));_=n.readUTF8(S,0,S.length)}s.tabs[h][v]=_}else if(h==="PLTE")s.tabs[h]=n.readBytes(t,r,f);else if(h==="hIST"){const p=s.tabs.PLTE.length/3;s.tabs[h]=[];for(let g=0;g<p;g++)s.tabs[h].push(i(t,r+g*2))}else if(h==="tRNS")s.ctype===3?s.tabs[h]=n.readBytes(t,r,f):s.ctype===0?s.tabs[h]=i(t,r):s.ctype===2&&(s.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]);else if(h==="gAMA")s.tabs[h]=n.readUint(t,r)/1e5;else if(h==="sRGB")s.tabs[h]=t[r];else if(h==="bKGD")s.ctype===0||s.ctype===4?s.tabs[h]=[i(t,r)]:s.ctype===2||s.ctype===6?s.tabs[h]=[i(t,r),i(t,r+2),i(t,r+4)]:s.ctype===3&&(s.tabs[h]=t[r]);else if(h==="IEND")break;r+=f,r+=4}if(u!==0){const f=s.frames[s.frames.length-1];f.data=St.decode._decompress(s,l.slice(0,u),f.rect.width,f.rect.height),u=0}return s.data=St.decode._decompress(s,a,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},St.decode._decompress=function(e,t,r,n){const i=St.decode._getBPP(e),o=Math.ceil(r*i/8),s=new Uint8Array((o+1+e.interlace)*n);return e.tabs.CgBI?t=St.inflateRaw(t,s):t=St.decode._inflate(t,s),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,s=0,a=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,b=g.e,_=g.R,m=g.n,S=g.A,N=g.Z,k=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,z=t[R-4]|t[R-3]<<8;A&&(r=e.H.W(r,d+z)),r.set(new n(t.buffer,t.byteOffset+R,z),d),f=R+z<<3,d+=z;continue}if(A&&(r=e.H.W(r,d+(1<<17))),o===1&&(h=k.J,p=k.h,l=511,u=31),o===2){s=b(t,f,5)+257,a=b(t,f+5,5)+1,c=b(t,f+10,4)+4,f+=14;let R=1;for(let Y=0;Y<38;Y+=2)k.Q[Y]=0,k.Q[Y+1]=0;for(let Y=0;Y<c;Y++){const W=b(t,f+Y*3,3);k.Q[(k.X[Y]<<1)+1]=W,W>R&&(R=W)}f+=3*c,m(k.Q,R),S(k.Q,R,k.u),h=k.w,p=k.d,f=_(k.u,(1<<R)-1,s+a,t,f,k.v);const z=g.V(k.v,0,s,k.C);l=(1<<z)-1;const B=g.V(k.v,s,a,k.D);u=(1<<B)-1,m(k.C,z),S(k.C,z,h),m(k.D,B),S(k.D,B,p)}for(;;){const R=h[N(t,f)&l];f+=R&15;const z=R>>>4;if(!(z>>>8))r[d++]=z;else{if(z===256)break;{let B=d+z-254;if(z>264){const lt=k.q[z-257];B=d+(lt>>>3)+b(t,f,lt&7),f+=lt&7}const Y=p[N(t,f)&u];f+=Y&15;const W=Y>>>4,nt=k.c[W],rt=(nt>>>4)+v(t,f,nt&15);for(f+=nt&15;d<B;)r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt],r[d]=r[d++-rt];d=B}}}}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,s){const a=e.H.e,c=e.H.Z;let l=0;for(;l<n;){const u=t[c(i,o)&r];o+=u&15;const d=u>>>4;if(d<=15)s[l]=d,l++;else{let f=0,h=0;d===16?(h=3+a(i,o,2),o+=2,f=s[l-1]):d===17?(h=3+a(i,o,3),o+=3):d===18&&(h=11+a(i,o,7),o+=7);const p=l+h;for(;l<p;)s[l]=f,l++}}return o},e.H.V=function(t,r,n,i){let o=0,s=0;const a=i.length>>>1;for(;s<n;){const c=t[s+r];i[s<<1]=0,i[(s<<1)+1]=c,c>o&&(o=c),s++}for(;s<a;)i[s<<1]=0,i[(s<<1)+1]=0,s++;return o},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,s,a,c,l;const u=n.j;for(let f=0;f<=r;f++)u[f]=0;for(c=1;c<i;c+=2)u[t[c]]++;const d=n.K;for(o=0,u[0]=0,s=1;s<=r;s++)o=o+u[s-1]<<1,d[s]=o;for(a=0;a<i;a+=2)l=t[a+1],l!==0&&(t[a]=d[l],d[l]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let s=0;s<i;s+=2)if(t[s+1]!==0){const a=s>>1,c=t[s+1],l=a<<4|c,u=r-c;let d=t[s]<<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 s=t[o]<<r-t[o+1];t[o]=n[s]>>>i}},e.H.M=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8},e.H.I=function(t,r,n){n=n<<(r&7);const i=r>>>3;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},e.H.e=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8)>>>(r&7)&(1<<n)-1},e.H.b=function(t,r,n){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)&(1<<n)-1},e.H.Z=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16)>>>(r&7)},e.H.i=function(t,r){return(t[r>>>3]|t[(r>>>3)+1]<<8|t[(r>>>3)+2]<<16|t[(r>>>3)+3]<<24)>>>(r&7)},e.H.m=function(){const t=Uint16Array,r=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new r(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new r(286),Y:new r(30),a:new r(19),t:new r(15e3),k:new t(65536),g:new t(32768)}}(),function(){const t=e.H.m,r=32768;for(let i=0;i<r;i++){let o=i;o=(o&2863311530)>>>1|(o&1431655765)<<1,o=(o&3435973836)>>>2|(o&858993459)<<2,o=(o&4042322160)>>>4|(o&252645135)<<4,o=(o&4278255360)>>>8|(o&16711935)<<8,t.r[i]=(o>>>16|o<<16)>>>17}function n(i,o,s){for(;o--!==0;)i.push(0,s)}for(let i=0;i<32;i++)t.q[i]=t.S[i]<<3|t.T[i],t.c[i]=t.p[i]<<4|t.z[i];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),n(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),e.H.N}(),St.decode._readInterlace=function(e,t){const r=t.width,n=t.height,i=St.decode._getBPP(t),o=i>>3,s=Math.ceil(r*i/8),a=new Uint8Array(n*s);let c=0;const l=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],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,b=0,_=l[h];for(;_<n;)_+=p,b++;let m=u[h];for(;m<r;)m+=g,v++;const S=Math.ceil(v*i/8);St.decode._filterZero(e,t,c,v,b);let N=0,k=l[h];for(;k<n;){let A=u[h],R=c+N*S<<3;for(;A<r;){if(i===1){let z=e[R>>3];z=z>>7-(R&7)&1,a[k*s+(A>>3)]|=z<<7-((A&7)<<0)}if(i===2){let z=e[R>>3];z=z>>6-(R&7)&3,a[k*s+(A>>2)]|=z<<6-((A&3)<<1)}if(i===4){let z=e[R>>3];z=z>>4-(R&7)&15,a[k*s+(A>>1)]|=z<<4-((A&1)<<2)}if(i>=8){const z=k*s+A*o;for(let B=0;B<o;B++)a[z+B]=e[(R>>3)+B]}R+=i,A+=g}N++,k+=p}v*b!==0&&(c+=b*(1+S)),h=h+1}return a},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 s=Math.ceil(n*o/8),a=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<s;d++)e[d+1]=e[d+1]+(e[d+1-o]>>>1)&255;for(let f=0;f<i;f++)if(c=r+f*s,l=c+f+1,u=e[l-1],d=0,u===0)for(;d<s;d++)e[c+d]=e[l+d];else if(u===1){for(;d<o;d++)e[c+d]=e[l+d];for(;d<s;d++)e[c+d]=e[l+d]+e[c+d-o]}else if(u===2)for(;d<s;d++)e[c+d]=e[l+d]+e[c+d-s];else if(u===3){for(;d<o;d++)e[c+d]=e[l+d]+(e[c+d-s]>>>1);for(;d<s;d++)e[c+d]=e[l+d]+(e[c+d-s]+e[c+d-o]>>>1)}else{for(;d<o;d++)e[c+d]=e[l+d]+a(0,e[c+d-s],0);for(;d<s;d++)e[c+d]=e[l+d]+a(e[c+d-o],e[c+d-s],e[c+d-o-s])}return e},St.decode._paeth=function(e,t,r){const n=e+t-r,i=n-e,o=n-t,s=n-r;return i*i<=o*o&&i*i<=s*s?e:o*o<=s*s?t:r},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,s,a,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(s>=0&&a>=0?(d=h*t+p<<2,f=(a+h)*i+s+p<<2):(d=(-a+h)*t-s+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,b=e[d+1]*g,_=e[d+2]*g,m=n[f+3]*(1/255),S=n[f]*m,N=n[f+1]*m,k=n[f+2]*m,A=1-g,R=g+m*A,z=R===0?0:1/R;n[f+3]=255*R,n[f+0]=(v+S*A)*z,n[f+1]=(b+N*A)*z,n[f+2]=(_+k*A)*z}else if(c===2){const g=e[d+3],v=e[d],b=e[d+1],_=e[d+2],m=n[f+3],S=n[f],N=n[f+1],k=n[f+2];g===m&&v===S&&b===N&&_===k?(n[f]=0,n[f+1]=0,n[f+2]=0,n[f+3]=0):(n[f]=v,n[f+1]=b,n[f+2]=_,n[f+3]=g)}else if(c===3){const g=e[d+3],v=e[d],b=e[d+1],_=e[d+2],m=n[f+3],S=n[f],N=n[f+1],k=n[f+2];if(g===m&&v===S&&b===N&&_===k)continue;if(g<220&&m>20)return!1}return!0},St.encode=function(e,t,r,n,i,o,s){n===null&&(n=0),s===null&&(s=!1);const a=St.encode.compress(e,t,r,n,[!1,!1,!1,0,s]);return St.encode.compressPNG(a,-1),St.encode._main(a,t,r,i,o)},St.encodeLL=function(e,t,r,n,i,o,s,a){const c={ctype:0+(n===1?0:2)+(i===0?0:4),depth:o,frames:[]},l=(n+i)*o,u=l*t;for(let 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,s,a)},St.encode._main=function(e,t,r,n,i){i||(i={});const o=St.crc.crc,s=St._bin.writeUint,a=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 b=0;b<v;b++)e.plte[b]>>>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 b=e.frames[v];u&&(f+=38),f+=b.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(s(h,l,13),l+=4,c(h,l,"IHDR"),l+=4,s(h,l,t),l+=4,s(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++,s(h,l,o(h,l-17,17)),l+=4,i.sRGB!==null&&i.sRGB!==void 0&&(s(h,l,1),l+=4,c(h,l,"sRGB"),l+=4,h[l]=i.sRGB,l++,s(h,l,o(h,l-5,5)),l+=4),i.pHYs!==null&&i.pHYs!==void 0&&(s(h,l,9),l+=4,c(h,l,"pHYs"),l+=4,s(h,l,i.pHYs[0]),l+=4,s(h,l,i.pHYs[1]),l+=4,h[l]=i.pHYs[2],l++,s(h,l,o(h,l-13,13)),l+=4),u&&(s(h,l,8),l+=4,c(h,l,"acTL"),l+=4,s(h,l,e.frames.length),l+=4,s(h,l,i.loop!=null?i.loop:0),l+=4,s(h,l,o(h,l-12,12)),l+=4),e.ctype===3){const v=e.plte.length;s(h,l,v*3),l+=4,c(h,l,"PLTE"),l+=4;for(let b=0;b<v;b++){const _=b*3,m=e.plte[b],S=m&255,N=m>>>8&255,k=m>>>16&255;h[l+_+0]=S,h[l+_+1]=N,h[l+_+2]=k}if(l+=v*3,s(h,l,o(h,l-v*3-4,v*3+4)),l+=4,d){s(h,l,v),l+=4,c(h,l,"tRNS"),l+=4;for(let b=0;b<v;b++)h[l+b]=e.plte[b]>>>24&255;l+=v,s(h,l,o(h,l-v-4,v+4)),l+=4}}let g=0;for(let v=0;v<e.frames.length;v++){const b=e.frames[v];u&&(s(h,l,26),l+=4,c(h,l,"fcTL"),l+=4,s(h,l,g++),l+=4,s(h,l,b.rect.width),l+=4,s(h,l,b.rect.height),l+=4,s(h,l,b.rect.x),l+=4,s(h,l,b.rect.y),l+=4,a(h,l,n[v]),l+=2,a(h,l,1e3),l+=2,h[l]=b.dispose,l++,h[l]=b.blend,l++,s(h,l,o(h,l-30,30)),l+=4);const _=b.cimg,m=_.length;s(h,l,m+(v===0?0:4)),l+=4;const S=l;c(h,l,v===0?"IDAT":"fdAT"),l+=4,v!==0&&(s(h,l,g++),l+=4),h.set(_,l),l+=m,s(h,l,o(h,S,l-S)),l+=4}return s(h,l,0),l+=4,c(h,l,"IEND"),l+=4,s(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,s=new Uint8Array(o*i.bpl+o);i.cimg=St.encode._filterZero(i.img,o,i.bpp,i.bpl,s,t,r)}},St.encode.compress=function(e,t,r,n,i){const o=i[0],s=i[1],a=i[2],c=i[3],l=i[4];let u=6,d=8,f=255;for(let m=0;m<e.length;m++){const S=new Uint8Array(e[m]),N=S.length;for(let k=0;k<N;k+=4)f&=S[k+3]}const h=f!==255,p=St.encode.framize(e,t,r,o,s,a),g={},v=[],b=[];if(n!==0){const m=[];for(let R=0;R<p.length;R++)m.push(p[R].img.buffer);const S=St.encode.concatRGBA(m),N=St.quantize(S,n);let k=0;const A=new Uint8Array(N.abuf);for(let R=0;R<p.length;R++){const z=p[R].img,B=z.length;b.push(new Uint8Array(N.inds.buffer,k>>2,B>>2));for(let Y=0;Y<B;Y+=4)z[Y]=A[k+Y],z[Y+1]=A[k+Y+1],z[Y+2]=A[k+Y+2],z[Y+3]=A[k+Y+3];k+=B}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 S=p[m],N=new Uint32Array(S.img.buffer),k=S.rect.width,A=N.length,R=new Uint8Array(A);b.push(R);for(let z=0;z<A;z++){const B=N[z];if(z!==0&&B===N[z-1])R[z]=R[z-1];else if(z>k&&B===N[z-k])R[z]=R[z-k];else{let Y=g[B];if(Y===null&&(g[B]=Y=v.length,v.push(B),v.length>=300))break;R[z]=Y}}}const _=v.length;_<=256&&l===!1&&(_<=2?d=1:_<=4?d=2:_<=16?d=4:d=8,d=Math.max(d,c));for(let m=0;m<p.length;m++){const S=p[m],N=S.rect.width,k=S.rect.height;let A=S.img,R=4*N,z=4;if(_<=256&&l===!1){R=Math.ceil(d*N/8);const B=new Uint8Array(R*k),Y=b[m];for(let W=0;W<k;W++){const nt=W*R,rt=W*N;if(d===8)for(let lt=0;lt<N;lt++)B[nt+lt]=Y[rt+lt];else if(d===4)for(let lt=0;lt<N;lt++)B[nt+(lt>>1)]|=Y[rt+lt]<<4-(lt&1)*4;else if(d===2)for(let lt=0;lt<N;lt++)B[nt+(lt>>2)]|=Y[rt+lt]<<6-(lt&3)*2;else if(d===1)for(let lt=0;lt<N;lt++)B[nt+(lt>>3)]|=Y[rt+lt]<<7-(lt&7)*1}A=B,u=3,z=1}else if(h===!1&&p.length===1){const B=new Uint8Array(N*k*3),Y=N*k;for(let W=0;W<Y;W++){const nt=W*3,rt=W*4;B[nt]=A[rt],B[nt+1]=A[rt+1],B[nt+2]=A[rt+2]}A=B,u=2,z=3,R=3*N}S.img=A,S.bpl=R,S.bpp=z}return{ctype:u,depth:d,plte:v,frames:p}},St.encode.framize=function(e,t,r,n,i,o){const s=[];for(let a=0;a<e.length;a++){const c=new Uint8Array(e[a]),l=new Uint32Array(c.buffer);let u,d=0,f=0,h=t,p=r,g=n?1:0;if(a!==0){const v=o||n||a===1||s[a-2].dispose!==0?1:2;let b=0,_=1e9;for(let S=0;S<v;S++){const N=new Uint32Array(e[a-1-S]);let k=t,A=r,R=-1,z=-1;for(let Y=0;Y<r;Y++)for(let W=0;W<t;W++){const nt=Y*t+W;l[nt]!==N[nt]&&(W<k&&(k=W),W>R&&(R=W),Y<A&&(A=Y),Y>z&&(z=Y))}R===-1&&(k=A=R=z=0),i&&((k&1)===1&&k--,(A&1)===1&&A--);const B=(R-k+1)*(z-A+1);B<_&&(_=B,b=S,d=k,f=A,h=R-k+1,p=z-A+1)}const m=new Uint8Array(e[a-1-b]);b===1&&(s[a-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);s.push({rect:{x:d,y:f,width:h,height:p},img:u,blend:g,dispose:0})}if(n)for(let a=0;a<s.length;a++){const c=s[a];if(c.blend===1)continue;const l=c.rect,u=s[a-1].rect,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};s[a-1].dispose=1,a-1!==0&&St.encode._updateFrame(e,t,r,s,a-1,g,i),St.encode._updateFrame(e,t,r,s,a,g,i)}return s},St.encode._updateFrame=function(e,t,r,n,i,o,s){const a=Uint8Array,c=Uint32Array,l=new a(e[i-1]),u=new c(e[i-1]),d=i+1<e.length?new a(e[i+1]):null,f=new a(e[i]),h=new c(f.buffer);let p=t,g=r,v=-1,b=-1;for(let m=0;m<o.height;m++)for(let S=0;S<o.width;S++){const N=o.x+S,k=o.y+m,A=k*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),k<g&&(g=k),k>b&&(b=k))}v===-1&&(p=g=v=b=0),s&&((p&1)===1&&p--,(g&1)===1&&g--),o={x:p,y:g,width:v-p+1,height:b-g+1};const _=n[i];_.rect=o,_.blend=1,_.img=new Uint8Array(o.width*o.height*4),n[i-1].dispose===0?(St._copyTile(l,t,r,_.img,o.width,o.height,-o.x,-o.y,0),St.encode._prepareDiff(f,t,r,_.img,o)):St._copyTile(f,t,r,_.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,s){const a=[];let c=[0,1,2,3,4];o!==-1?c=[o]:(t*n>5e5||r===1)&&(c=[0]);let l;s&&(l={level:0});const u=i.length>1e7&&Qy!=null?Qy:hN;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]);a.push(u.deflate(i,l))}let d,f=1e9;for(let h=0;h<a.length;h++)a[h].length<f&&(d=h,f=a[h].length);return a[d]},St.encode._filterLine=function(e,t,r,n,i,o){const s=r*n;let a=s+r;const c=St.decode._paeth;if(e[a]=o,a++,o===0)if(n<500)for(let l=0;l<n;l++)e[a+l]=t[s+l];else e.set(new Uint8Array(t.buffer,s,n),a);else if(o===1){for(let l=0;l<i;l++)e[a+l]=t[s+l];for(let l=i;l<n;l++)e[a+l]=t[s+l]-t[s+l-i]+256&255}else if(r===0){for(let l=0;l<i;l++)e[a+l]=t[s+l];if(o===2)for(let l=i;l<n;l++)e[a+l]=t[s+l];if(o===3)for(let l=i;l<n;l++)e[a+l]=t[s+l]-(t[s+l-i]>>1)+256&255;if(o===4)for(let l=i;l<n;l++)e[a+l]=t[s+l]-c(t[s+l-i],0,0)+256&255}else{if(o===2)for(let l=0;l<n;l++)e[a+l]=t[s+l]+256-t[s+l-n]&255;if(o===3){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-(t[s+l-n]>>1)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-(t[s+l-n]+t[s+l-i]>>1)&255}if(o===4){for(let l=0;l<i;l++)e[a+l]=t[s+l]+256-c(0,t[s+l-n],0)&255;for(let l=i;l<n;l++)e[a+l]=t[s+l]+256-c(t[s+l-i],t[s+l-n],t[s+l-i-n])&255}}},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),s=o[0],a=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),b=l[p+2]*(1/255),_=l[p+3]*(1/255);h=St.quantize.getNearest(s,g,v,b,_),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),b=l[p+2]*(1/255),_=l[p+3]*(1/255);for(h=s;h.left;)h=c(h.est,g,v,b,_)<=0?h.left:h.right;f[p>>2]=h.ind,u[p>>2]=h.est.rgba}return{abuf:n.buffer,inds:f,plte:a}},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 s=0,a=0;for(let f=0;f<o.length;f++)o[f].est.L>s&&(s=o[f].est.L,a=f);if(s<r)break;const c=o[a],l=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[a]=u,o.push(d)}o.sort(function(s,a){return a.bst.N-s.bst.N});for(let s=0;s<o.length;s++)o[s].ind=s;return[i,o]},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 s=e.left,a=e.right;o>0&&(s=e.right,a=e.left);const c=St.quantize.getNearest(s,t,r,n,i);if(c.tdst<=o*o)return c;const l=St.quantize.getNearest(a,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],s=r-e[1],a=n-e[2],c=i-e[3];return o*o+s*s+a*a+c*c},St.quantize.splitPixels=function(e,t,r,n,i,o){const s=St.quantize.vecDot;for(n-=4;r<n;){for(;s(e,r,i)<=o;)r+=4;for(;s(e,n,i)>o;)n-=4;if(r>=n)break;const a=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=a,r+=4,n-=4}for(;s(e,r,i)>o;)r-=4;return r+4},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 s=t;s<r;s+=4){const a=e[s]*.00392156862745098,c=e[s+1]*(1/255),l=e[s+2]*(1/255),u=e[s+3]*(1/255);i[0]+=a,i[1]+=c,i[2]+=l,i[3]+=u,n[0]+=a*a,n[1]+=a*c,n[2]+=a*l,n[3]+=a*u,n[5]+=c*c,n[6]+=c*l,n[7]+=c*u,n[10]+=l*l,n[11]+=l*u,n[15]+=u*u}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:i,N:o}},St.quantize.estats=function(e){const t=e.R,r=e.m,n=e.N,i=r[0],o=r[1],s=r[2],a=r[3],c=n===0?0:1/n,l=[t[0]-i*i*c,t[1]-i*o*c,t[2]-i*s*c,t[3]-i*a*c,t[4]-o*i*c,t[5]-o*o*c,t[6]-o*s*c,t[7]-o*a*c,t[8]-s*i*c,t[9]-s*o*c,t[10]-s*s*c,t[11]-s*a*c,t[12]-a*i*c,t[13]-a*o*c,t[14]-a*s*c,t[15]-a*a*c],u=l,d=St.M4;let f=[Math.random(),Math.random(),Math.random(),Math.random()],h=0,p=0;if(n!==0)for(let b=0;b<16&&(f=d.multVec(u,f),p=Math.sqrt(d.dot(f,f)),f=d.sml(1/p,f),!(b!==0&&Math.abs(p-h)<1e-9));b++)h=p;const g=[i*c,o*c,s*c,a*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]),s=o.length;for(let a=0;a<s;a+=4){let c=o[a],l=o[a+1],u=o[a+2];const d=o[a+3];d===0&&(c=l=u=0),r[n+a]=c,r[n+a+1]=l,r[n+a+2]=u,r[n+a+3]=d}n+=s}return r.buffer};const ti={glog:function(e){if(e<1)throw new Error("glog("+e+")");return ti.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return ti.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)ti.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)ti.EXP_TABLE[e]=ti.EXP_TABLE[e-4]^ti.EXP_TABLE[e-5]^ti.EXP_TABLE[e-6]^ti.EXP_TABLE[e-8];for(let e=0;e<255;e++)ti.LOG_TABLE[ti.EXP_TABLE[e]]=e;let Aa;typeof self>"u"&&typeof process<"u"&&process.hrtime?Aa=function(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Aa=self.performance.now.bind(self.performance):Date.now!==void 0?Aa=Date.now:Aa=function(){return new Date().getTime()};const dN=Aa;let fN=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=dN(),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 ei=new fN;ei.getAll.bind(ei),ei.removeAll.bind(ei),ei.add.bind(ei),ei.remove.bind(ei),ei.update.bind(ei);function bb(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 pN={attributeName:["display"],values:[["block","block"]]},Jr={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class wb{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=vi(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((s,a)=>{var c;(c=s.dom)==null||c.css({position:"absolute","z-index":String(1e3+a),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let n=0;const i=()=>{this.actions.forEach((s,a)=>{var p;const c=this.objects[s.objectIndex];let l=[],u=[];Array.isArray(s.attributeName)?(l=s.attributeName,u=s.values):s.attributeName&&(l=[s.attributeName],u=[s.values]);const d=s.keyTimes.length,f=Lc(((p=c.dom)==null?void 0:p.css("transform"))??"");let h=s.begin;s.keyTimes.forEach((g,v)=>{var _;const b={_matrix:f};l.forEach((m,S)=>{const N=u[S][s.direction=="reverse"?d-v-1:v];this._transformAttributeToCSSObjectUseMatrix(m,N,b)}),v==0?(_=c.dom)==null||_.css(Object.assign(b,{transition:""})):(setTimeout(()=>{var m;(m=c.dom)==null||m.css(Object.assign(b,{transition:`all ${s.realKeyTimes[v]}ms cubic-bezier(${s.keySplines[v-1].join(",")})`}))},h),h+=s.realKeyTimes[v])}),setTimeout(()=>{var g;s.fill==="remove"&&((g=c.dom)==null||g.css(c.originCSSObject??{})),a==this.actions.length-1&&(typeof s.repeatCount=="number"&&++n<s.repeatCount||s.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===t&&i()})},s.begin+s.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=pN,r=Jr,n=0,i=!1){const o=r.keyTimes??[0,1],s=[];return o.forEach((a,c)=>{c>0&&s.push(bb(r.easeName??"linear"))}),this._addAction({objectIndex:n,attributeName:t.attributeName,values:t.values,begin:r.begin??0,dur:r.dur??300,keyTimes:o,keySplines:s,repeatCount:r.repeatCount??1,direction:r.direction??"normal",fill:r.fill??"freeze"},i),this}_predefinedAnimate(t,r,n,i,o=Jr,s=this.objects.length-1){let a=!0,c=!1,l=!1,u=!1;const d=this.objects.length;s=(s+d)%d;const f=(s-1+d)%d,h=(s+1+d)%d,p=this.objects[s],g=this.objects[f],v=this.objects[h];if(g&&f!==s){const b=t(g);b&&(this._addAnimate(b,o,f,a),a=!1,c=!0)}if(p){const b=r(p);b&&(this._addAnimate(b,o,s,a),a=!1,l=!0)}if(v&&h!==s){const b=n(v);b&&(this._addAnimate(b,o,h,a),a=!1,u=!0)}this.objects.forEach((b,_)=>{if(!(_==f&&c||_==s&&l||_==h&&u)){const m=i(b);m&&(this._addAnimate(m,o,_,a),a=!1)}})}flip(t=Jr,r=this.objects.length-1){var p,g,v,b,_,m,S,N,k,A,R;const n=r-1,i=this.objects[n],o=this.objects[r],s=Lc(((p=o.dom)==null?void 0:p.css("transform"))??""),a=s.clone();(g=i.dom)==null||g.show(),(v=i.dom)==null||v.css("opacity","1");const c=(b=i.el)==null?void 0:b.getBoundingClientRect();(_=i.dom)==null||_.css("opacity","0"),(m=o.dom)==null||m.show(),(S=o.dom)==null||S.css("opacity","1");const l=(N=o.el)==null?void 0:N.getBoundingClientRect(),u=(k=i.dom)==null?void 0:k.css("background-color"),d=(A=o.dom)==null?void 0:A.css("background-color");a.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)),a.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:a.toString(),transition:""};u&&Object.assign(f,{"background-color":u}),(R=o.dom)==null||R.css(f);const h={transform:s.toString(),transition:`all ${t.dur}ms cubic-bezier(${bb(t.easeName??"linear").join(",")})`};d&&Object.assign(h,{"background-color":d}),setTimeout(()=>{var z;(z=o.dom)==null||z.css(h)},t.begin)}slideLeft(t=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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=Jr,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 xb=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=xb,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 Sb=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);Sb!==null?window.webrtcDetectedVersion=parseInt(Sb[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=xb,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 np={exports:{}},Na={},ip={},op={};(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 pf<"u"?pf: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)})(op);const mN=an(op),gN=Jt({__proto__:null,default:mN},[op]),ve=Wt(gN);var sp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ve;class r{constructor(S=[1,0,0,1,0,0]){this.dirty=!1,this.m=S&&S.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(S){S.m[0]=this.m[0],S.m[1]=this.m[1],S.m[2]=this.m[2],S.m[3]=this.m[3],S.m[4]=this.m[4],S.m[5]=this.m[5]}point(S){var N=this.m;return{x:N[0]*S.x+N[2]*S.y+N[4],y:N[1]*S.x+N[3]*S.y+N[5]}}translate(S,N){return this.m[4]+=this.m[0]*S+this.m[2]*N,this.m[5]+=this.m[1]*S+this.m[3]*N,this}scale(S,N){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=N,this.m[3]*=N,this}rotate(S){var N=Math.cos(S),k=Math.sin(S),A=this.m[0]*N+this.m[2]*k,R=this.m[1]*N+this.m[3]*k,z=this.m[0]*-k+this.m[2]*N,B=this.m[1]*-k+this.m[3]*N;return this.m[0]=A,this.m[1]=R,this.m[2]=z,this.m[3]=B,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,N){var k=this.m[0]+this.m[2]*N,A=this.m[1]+this.m[3]*N,R=this.m[2]+this.m[0]*S,z=this.m[3]+this.m[1]*S;return this.m[0]=k,this.m[1]=A,this.m[2]=R,this.m[3]=z,this}multiply(S){var N=this.m[0]*S.m[0]+this.m[2]*S.m[1],k=this.m[1]*S.m[0]+this.m[3]*S.m[1],A=this.m[0]*S.m[2]+this.m[2]*S.m[3],R=this.m[1]*S.m[2]+this.m[3]*S.m[3],z=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],B=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=N,this.m[1]=k,this.m[2]=A,this.m[3]=R,this.m[4]=z,this.m[5]=B,this}invert(){var S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),N=this.m[3]*S,k=-this.m[1]*S,A=-this.m[2]*S,R=this.m[0]*S,z=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),B=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=N,this.m[1]=k,this.m[2]=A,this.m[3]=R,this.m[4]=z,this.m[5]=B,this}getMatrix(){return this.m}decompose(){var S=this.m[0],N=this.m[1],k=this.m[2],A=this.m[3],R=this.m[4],z=this.m[5],B=S*A-N*k;let Y={x:R,y:z,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||N!=0){var W=Math.sqrt(S*S+N*N);Y.rotation=N>0?Math.acos(S/W):-Math.acos(S/W),Y.scaleX=W,Y.scaleY=B/W,Y.skewX=(S*k+N*A)/B,Y.skewY=0}else if(k!=0||A!=0){var nt=Math.sqrt(k*k+A*A);Y.rotation=Math.PI/2-(A>0?Math.acos(-k/nt):-Math.acos(k/nt)),Y.scaleX=B/nt,Y.scaleY=nt,Y.skewX=0,Y.skewY=(S*k+N*A)/B}return Y.rotation=e.Util._getRotation(Y.rotation),Y}}e.Transform=r;var n="[object Array]",i="[object Number]",o="[object String]",s="[object Boolean]",a=Math.PI/180,c=180/Math.PI,l="#",u="",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})\)/,b=[];const _=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(m){setTimeout(m,60)};e.Util={_isElement(m){return!!(m&&m.nodeType==1)},_isFunction(m){return!!(m&&m.constructor&&m.call&&m.apply)},_isPlainObject(m){return!!m&&m.constructor===Object},_isArray(m){return Object.prototype.toString.call(m)===n},_isNumber(m){return Object.prototype.toString.call(m)===i&&!isNaN(m)&&isFinite(m)},_isString(m){return Object.prototype.toString.call(m)===o},_isBoolean(m){return Object.prototype.toString.call(m)===s},isObject(m){return m instanceof Object},isValidSelector(m){if(typeof m!="string")return!1;var S=m[0];return S==="#"||S==="."||S===S.toUpperCase()},_sign(m){return m===0||m>0?1:-1},requestAnimFrame(m){b.push(m),b.length===1&&_(function(){const S=b;b=[],S.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,S){var N=e.Util.createImageElement();N.onload=function(){S(N)},N.src=m},_rgbToHex(m,S,N){return((1<<24)+(m<<16)+(S<<8)+N).toString(16).slice(1)},_hexToRgb(m){m=m.replace(l,u);var S=parseInt(m,16);return{r:S>>16&255,g:S>>8&255,b:S&255}},getRandomColor(){for(var m=(Math.random()*16777215<<0).toString(16);m.length<6;)m=d+m;return l+m},getRGB(m){var S;return m in g?(S=g[m],{r:S[0],g:S[1],b:S[2]}):m[0]===l?this._hexToRgb(m.substring(1)):m.substr(0,4)===p?(S=v.exec(m.replace(/ /g,"")),{r:parseInt(S[1],10),g:parseInt(S[2],10),b:parseInt(S[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 S=g[m.toLowerCase()];return S?{r:S[0],g:S[1],b:S[2],a:1}:null},_rgbColorToRGBA(m){if(m.indexOf("rgb(")===0){m=m.match(/rgb\(([^)]+)\)/)[1];var S=m.split(/ *, */).map(Number);return{r:S[0],g:S[1],b:S[2],a:1}}},_rgbaColorToRGBA(m){if(m.indexOf("rgba(")===0){m=m.match(/rgba\(([^)]+)\)/)[1];var S=m.split(/ *, */).map((N,k)=>N.slice(-1)==="%"?k===3?parseInt(N)/100:parseInt(N)/100*255:Number(N));return{r:S[0],g:S[1],b:S[2],a:S[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[S,...N]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(m),k=Number(N[0])/360,A=Number(N[1])/100,R=Number(N[2])/100;let z,B,Y;if(A===0)return Y=R*255,{r:Math.round(Y),g:Math.round(Y),b:Math.round(Y),a:1};R<.5?z=R*(1+A):z=R+A-R*A;const W=2*R-z,nt=[0,0,0];for(let rt=0;rt<3;rt++)B=k+1/3*-(rt-1),B<0&&B++,B>1&&B--,6*B<1?Y=W+(z-W)*6*B:2*B<1?Y=z:3*B<2?Y=W+(z-W)*(2/3-B)*6:Y=W,nt[rt]=Y*255;return{r:Math.round(nt[0]),g:Math.round(nt[1]),b:Math.round(nt[2]),a:1}}},haveIntersection(m,S){return!(S.x>m.x+m.width||S.x+S.width<m.x||S.y>m.y+m.height||S.y+S.height<m.y)},cloneObject(m){var S={};for(var N in m)this._isPlainObject(m[N])?S[N]=this.cloneObject(m[N]):this._isArray(m[N])?S[N]=this.cloneArray(m[N]):S[N]=m[N];return S},cloneArray(m){return m.slice(0)},degToRad(m){return m*a},radToDeg(m){return m*c},_degToRad(m){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(m)},_radToDeg(m){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(m)},_getRotation(m){return t.Konva.angleDeg?e.Util.radToDeg(m):m},_capitalize(m){return m.charAt(0).toUpperCase()+m.slice(1)},throw(m){throw new Error(h+m)},error(m){console.error(h+m)},warn(m){t.Konva.showWarnings&&console.warn(f+m)},each(m,S){for(var N in m)S(N,m[N])},_inRange(m,S,N){return S<=m&&m<N},_getProjectionToSegment(m,S,N,k,A,R){var z,B,Y,W=(m-N)*(m-N)+(S-k)*(S-k);if(W==0)z=m,B=S,Y=(A-N)*(A-N)+(R-k)*(R-k);else{var nt=((A-m)*(N-m)+(R-S)*(k-S))/W;nt<0?(z=m,B=S,Y=(m-A)*(m-A)+(S-R)*(S-R)):nt>1?(z=N,B=k,Y=(N-A)*(N-A)+(k-R)*(k-R)):(z=m+nt*(N-m),B=S+nt*(k-S),Y=(z-A)*(z-A)+(B-R)*(B-R))}return[z,B,Y]},_getProjectionToLine(m,S,N){var k=e.Util.cloneObject(m),A=Number.MAX_VALUE;return S.forEach(function(R,z){if(!(!N&&z===S.length-1)){var B=S[(z+1)%S.length],Y=e.Util._getProjectionToSegment(R.x,R.y,B.x,B.y,m.x,m.y),W=Y[0],nt=Y[1],rt=Y[2];rt<A&&(k.x=W,k.y=nt,A=rt)}}),k},_prepareArrayForTween(m,S,N){var k,A=[],R=[];if(m.length>S.length){var z=S;S=m,m=z}for(k=0;k<m.length;k+=2)A.push({x:m[k],y:m[k+1]});for(k=0;k<S.length;k+=2)R.push({x:S[k],y:S[k+1]});var B=[];return R.forEach(function(Y){var W=e.Util._getProjectionToLine(Y,A,N);B.push(W.x),B.push(W.y)}),B},_prepareToStringify(m){var S;m.visitedByCircularReferenceRemoval=!0;for(var N in m)if(m.hasOwnProperty(N)&&m[N]&&typeof m[N]=="object"){if(S=Object.getOwnPropertyDescriptor(m,N),m[N].visitedByCircularReferenceRemoval||e.Util._isElement(m[N]))if(S.configurable)delete m[N];else return null;else if(e.Util._prepareToStringify(m[N])===null)if(S.configurable)delete m[N];else return null}return delete m.visitedByCircularReferenceRemoval,m},_assign(m,S){for(var N in S)m[N]=S[N];return m},_getFirstPointerId(m){return m.touches?m.changedTouches[0].identifier:m.pointerId||999},releaseCanvas(...m){t.Konva.releaseCanvasOnDestroy&&m.forEach(S=>{S.width=0,S.height=0})},drawRoundedRectPath(m,S,N,k){let A=0,R=0,z=0,B=0;typeof k=="number"?A=R=z=B=Math.min(k,S/2,N/2):(A=Math.min(k[0]||0,S/2,N/2),R=Math.min(k[1]||0,S/2,N/2),B=Math.min(k[2]||0,S/2,N/2),z=Math.min(k[3]||0,S/2,N/2)),m.moveTo(A,0),m.lineTo(S-R,0),m.arc(S-R,R,R,Math.PI*3/2,0,!1),m.lineTo(S,N-B),m.arc(S-B,N-B,B,0,Math.PI/2,!1),m.lineTo(z,N),m.arc(z,N-z,z,Math.PI/2,Math.PI,!1),m.lineTo(0,A),m.arc(A,A,A,Math.PI,Math.PI*3/2,!1)}}})(sp);const vN=an(sp),yN=Jt({__proto__:null,default:vN},[sp]),rr=Wt(yN);var Ra={},ap={},Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});var $b=Xe.getComponentValidator=jb=Xe.getBooleanValidator=Rb=Xe.getNumberArrayValidator=Nb=Xe.getFunctionValidator=Ab=Xe.getStringOrGradientValidator=Ob=Xe.getStringValidator=Tb=Xe.getNumberOrAutoValidator=Pb=Xe.getNumberOrArrayOfNumbersValidator=Cb=Xe.getNumberValidator=Eb=Xe.alphaComponent=kb=Xe.RGBComponent=void 0;const wi=ve,nr=rr;function xi(e){return nr.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||nr.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function _N(e){return e>255?255:e<0?0:Math.round(e)}var kb=Xe.RGBComponent=_N;function bN(e){return e>1?1:e<1e-4?1e-4:e}var Eb=Xe.alphaComponent=bN;function wN(){if(wi.Konva.isUnminified)return function(e,t){return nr.Util._isNumber(e)||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var Cb=Xe.getNumberValidator=wN;function xN(e){if(wi.Konva.isUnminified)return function(t,r){let n=nr.Util._isNumber(t),i=nr.Util._isArray(t)&&t.length==e;return!n&&!i&&nr.Util.warn(xi(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array<number>('+e+")"),t}}var Pb=Xe.getNumberOrArrayOfNumbersValidator=xN;function SN(){if(wi.Konva.isUnminified)return function(e,t){var r=nr.Util._isNumber(e),n=e==="auto";return r||n||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}var Tb=Xe.getNumberOrAutoValidator=SN;function $N(){if(wi.Konva.isUnminified)return function(e,t){return nr.Util._isString(e)||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}var Ob=Xe.getStringValidator=$N;function kN(){if(wi.Konva.isUnminified)return function(e,t){const r=nr.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}var Ab=Xe.getStringOrGradientValidator=kN;function EN(){if(wi.Konva.isUnminified)return function(e,t){return nr.Util._isFunction(e)||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}var Nb=Xe.getFunctionValidator=EN;function CN(){if(wi.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(nr.Util._isArray(e)?e.forEach(function(n){nr.Util._isNumber(n)||nr.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}var Rb=Xe.getNumberArrayValidator=CN;function PN(){if(wi.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||nr.Util.warn(xi(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}var jb=Xe.getBooleanValidator=PN;function TN(e){if(wi.Konva.isUnminified)return function(t,r){return t==null||nr.Util.isObject(t)||nr.Util.warn(xi(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}$b=Xe.getComponentValidator=TN;const ON=Jt({__proto__:null,get RGBComponent(){return kb},get alphaComponent(){return Eb},default:Xe,get getBooleanValidator(){return jb},get getComponentValidator(){return $b},get getFunctionValidator(){return Nb},get getNumberArrayValidator(){return Rb},get getNumberOrArrayOfNumbersValidator(){return Pb},get getNumberOrAutoValidator(){return Tb},get getNumberValidator(){return Cb},get getStringOrGradientValidator(){return Ab},get getStringValidator(){return Ob}},[Xe]),ye=Wt(ON);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=rr,r=ye;var n="get",i="set";e.Factory={addGetterSetter(o,s,a,c,l){e.Factory.addGetter(o,s,a),e.Factory.addSetter(o,s,c,l),e.Factory.addOverloadedGetterSetter(o,s)},addGetter(o,s,a){var c=n+t.Util._capitalize(s);o.prototype[c]=o.prototype[c]||function(){var l=this.attrs[s];return l===void 0?a:l}},addSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]||e.Factory.overWriteSetter(o,s,a,c)},overWriteSetter(o,s,a,c){var l=i+t.Util._capitalize(s);o.prototype[l]=function(u){return a&&u!==void 0&&u!==null&&(u=a.call(this,u,s)),this._setAttr(s,u),c&&c.call(this),this}},addComponentsGetterSetter(o,s,a,c,l){var u=a.length,d=t.Util._capitalize,f=n+d(s),h=i+d(s),p,g;o.prototype[f]=function(){var b={};for(p=0;p<u;p++)g=a[p],b[g]=this.getAttr(s+d(g));return b};var v=(0,r.getComponentValidator)(a);o.prototype[h]=function(b){var _=this.attrs[s],m;c&&(b=c.call(this,b)),v&&v.call(this,b,s);for(m in b)b.hasOwnProperty(m)&&this._setAttr(s+d(m),b[m]);return b||a.forEach(S=>{this._setAttr(s+d(S),void 0)}),this._fireChangeEvent(s,_,b),l&&l.call(this),this},e.Factory.addOverloadedGetterSetter(o,s)},addOverloadedGetterSetter(o,s){var a=t.Util._capitalize(s),c=i+a,l=n+a;o.prototype[s]=function(){return arguments.length?(this[c](arguments[0]),this):this[l]()}},addDeprecatedGetterSetter(o,s,a,c){t.Util.error("Adding deprecated "+s);var l=n+t.Util._capitalize(s),u=s+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[l]=function(){t.Util.error(u);var d=this.attrs[s];return d===void 0?a:d},e.Factory.addSetter(o,s,c,function(){t.Util.error(u)}),e.Factory.addOverloadedGetterSetter(o,s)},backCompat(o,s){t.Util.each(s,function(a,c){var l=o.prototype[c],u=n+t.Util._capitalize(a),d=i+t.Util._capitalize(a);function f(){l.apply(this,arguments),t.Util.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[a]=f,o.prototype[u]=f,o.prototype[d]=f})},afterSetFilter(){this._filterUpToDate=!1}}})(ap);const AN=an(ap),NN=Jt({__proto__:null,default:AN},[ap]),me=Wt(NN);var Si={},$i={};Object.defineProperty($i,"__esModule",{value:!0});var Db=$i.HitContext=Ub=$i.SceneContext=Lb=$i.Context=void 0;const Ib=rr,RN=ve;function jN(e){var t=[],r=e.length,n=Ib.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 Fb=",",DN="(",IN=")",FN="([",MN="])",LN=";",UN="()",zN="=",Mb=["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"],GN=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const VN=100;let eu=class{constructor(t){this.canvas=t,RN.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,r){var n=this.traceArr,i=n.length,o="",s,a,c,l;for(s=0;s<i;s++)a=n[s],c=a.method,c?(l=a.args,o+=c,t?o+=UN:Ib.Util._isArray(l[0])?o+=FN+l.join(Fb)+MN:(r&&(l=l.map(u=>typeof u=="number"?Math.floor(u):u)),o+=DN+l.join(Fb)+IN)):(o+=a.property,t||(o+=zN+a.val)),o+=LN;return o}clearTrace(){this.traceArr=[]}_trace(t){var r=this.traceArr,n;r.push(t),n=r.length,n>=VN&&r.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){var r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,i,o,s){this._context.arc(t,r,n,i,o,s)}arcTo(t,r,n,i,o){this._context.arcTo(t,r,n,i,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,i,o,s){this._context.bezierCurveTo(t,r,n,i,o,s)}clearRect(t,r,n,i){this._context.clearRect(t,r,n,i)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){var n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,i){return this._context.createLinearGradient(t,r,n,i)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,i,o,s){return this._context.createRadialGradient(t,r,n,i,o,s)}drawImage(t,r,n,i,o,s,a,c,l){var u=arguments,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,s,a,c,l)}ellipse(t,r,n,i,o,s,a,c){this._context.ellipse(t,r,n,i,o,s,a,c)}isPointInPath(t,r,n,i){return n?this._context.isPointInPath(n,t,r,i):this._context.isPointInPath(t,r,i)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,i){this._context.fillRect(t,r,n,i)}strokeRect(t,r,n,i){this._context.strokeRect(t,r,n,i)}fillText(t,r,n,i){i?this._context.fillText(t,r,n,i):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,i){return this._context.getImageData(t,r,n,i)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,i){this._context.rect(t,r,n,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,i){this._context.quadraticCurveTo(t,r,n,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,i,o,s){this._context.setTransform(t,r,n,i,o,s)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,i){this._context.strokeText(t,r,n,i)}transform(t,r,n,i,o,s){this._context.transform(t,r,n,i,o,s)}translate(t,r){this._context.translate(t,r)}_enableTrace(){var t=this,r=Mb.length,n=this.setAttr,i,o,s=function(a){var c=t[a],l;t[a]=function(){return o=jN(Array.prototype.slice.call(arguments,0)),l=c.apply(t,arguments),t._trace({method:a,args:o}),l}};for(i=0;i<r;i++)s(Mb[i]);t.setAttr=function(){n.apply(t,arguments);var a=arguments[0],c=arguments[1];(a==="shadowOffsetX"||a==="shadowOffsetY"||a==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:a,val:c})}}_applyGlobalCompositeOperation(t){const r=t.attrs.globalCompositeOperation;var n=!r||r==="source-over";n||this.setAttr("globalCompositeOperation",r)}};var Lb=$i.Context=eu;GN.forEach(function(e){Object.defineProperty(eu.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class BN extends eu{constructor(t,{willReadFrequently:r=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:r})}_fillColor(t){var r=t.fill();this.setAttr("fillStyle",r),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var r=t._getLinearGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fillRadialGradient(t){const r=t._getRadialGradient();r&&(this.setAttr("fillStyle",r),t._fillFunc(this))}_fill(t){const r=t.fill(),n=t.getFillPriority();if(r&&n==="color"){this._fillColor(t);return}const i=t.getFillPatternImage();if(i&&n==="pattern"){this._fillPattern(t);return}const o=t.getFillLinearGradientColorStops();if(o&&n==="linear-gradient"){this._fillLinearGradient(t);return}const s=t.getFillRadialGradientColorStops();if(s&&n==="radial-gradient"){this._fillRadialGradient(t);return}r?this._fillColor(t):i?this._fillPattern(t):o?this._fillLinearGradient(t):s&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const r=t.getStrokeLinearGradientStartPoint(),n=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(r.x,r.y,n.x,n.y);if(i){for(var s=0;s<i.length;s+=2)o.addColorStop(i[s],i[s+1]);this.setAttr("strokeStyle",o)}}_stroke(t){var r=t.dash(),n=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!n){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),r&&t.dashEnabled()&&(this.setLineDash(r),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=t.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),n||this.restore()}}_applyShadow(t){var r,n,i,o=(r=t.getShadowRGBA())!==null&&r!==void 0?r:"black",s=(n=t.getShadowBlur())!==null&&n!==void 0?n:5,a=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=c.x*l,d=c.y*l;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",s*Math.min(Math.abs(u),Math.abs(d))),this.setAttr("shadowOffsetX",a.x*u),this.setAttr("shadowOffsetY",a.y*d)}}var Ub=$i.SceneContext=BN;class HN extends eu{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()}}}Db=$i.HitContext=HN;const qN=Jt({__proto__:null,get Context(){return Lb},get HitContext(){return Db},get SceneContext(){return Ub},default:$i},[$i]),zb=Wt(qN);Object.defineProperty(Si,"__esModule",{value:!0});var Gb=Si.HitCanvas=qb=Si.SceneCanvas=Hb=Si.Canvas=void 0;const ru=rr,Vb=zb,Bb=ve,KN=me,YN=ye;var nu;function XN(){if(nu)return nu;var e=ru.Util.createCanvasElement(),t=e.getContext("2d");return nu=function(){var r=Bb.Konva._global.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return r/n}(),ru.Util.releaseCanvas(e),nu}let iu=class{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var r=t||{},n=r.pixelRatio||Bb.Konva.pixelRatio||XN();this.pixelRatio=n,this._canvas=ru.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 ru.Util.error("Unable to get data URL. "+n.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}};var Hb=Si.Canvas=iu;KN.Factory.addGetterSetter(iu,"pixelRatio",void 0,(0,YN.getNumberValidator)());class JN extends iu{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new Vb.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}var qb=Si.SceneCanvas=JN;class WN extends iu{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new Vb.HitContext(this),this.setSize(t.width,t.height)}}Gb=Si.HitCanvas=WN;const QN=Jt({__proto__:null,get Canvas(){return Hb},get HitCanvas(){return Gb},get SceneCanvas(){return qb},default:Si},[Si]),ou=Wt(QN);var lp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=ve,r=rr;e.DD={get isDragging(){var n=!1;return e.DD._dragElements.forEach(i=>{i.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){var n;return e.DD._dragElements.forEach(i=>{n=i.node}),n},_dragElements:new Map,_drag(n){const i=[];e.DD._dragElements.forEach((o,s)=>{const{node:a}=o,c=a.getStage();c.setPointersPositions(n),o.pointerId===void 0&&(o.pointerId=r.Util._getFirstPointerId(n));const l=c._changedPointerPositions.find(f=>f.id===o.pointerId);if(l){if(o.dragStatus!=="dragging"){var u=a.dragDistance(),d=Math.max(Math.abs(l.x-o.startPointerPos.x),Math.abs(l.y-o.startPointerPos.y));if(d<u||(a.startDrag({evt:n}),!a.isDragging()))return}a._setDragPosition(n,o),i.push(a)}}),i.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:n},!0)})},_endDragBefore(n){const i=[];e.DD._dragElements.forEach(o=>{const{node:s}=o,a=s.getStage();if(n&&a.setPointersPositions(n),!a._changedPointerPositions.find(l=>l.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,o.dragStatus="stopped");const c=o.node.getLayer()||o.node instanceof t.Konva.Stage&&o.node;c&&i.indexOf(c)===-1&&i.push(c)}),i.forEach(o=>{o.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((i,o)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:n},!0),i.dragStatus!=="dragging"&&e.DD._dragElements.delete(o)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(lp);const ZN=an(lp),tR=Jt({__proto__:null,default:ZN},[lp]),cp=Wt(tR);Object.defineProperty(Ra,"__esModule",{value:!0});var Kb=Ra.Node=void 0;const _e=rr,ja=me,su=ou,To=ve,_n=cp,ar=ye;var au="absoluteOpacity",lu="allEventListeners",ki="absoluteTransform",Yb="absoluteScale",Oo="canvas",eR="Change",rR="children",nR="konva",up="listening",Xb="mouseenter",Jb="mouseleave",Wb="set",Qb="Shape",cu=" ",Zb="stage",Yi="transform",iR="Stage",hp="visible",oR=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(cu);let sR=1,ue=class Gm{constructor(t){this._id=sR++,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===Yi||t===ki)&&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===Yi||t===ki,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(cu);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Oo)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===ki&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Oo)){const{scene:t,filter:r,hit:n}=this._cache.get(Oo);_e.Util.releaseCanvas(t,r,n),this._cache.delete(Oo)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var r=t||{},n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(r.width||n.width),o=Math.ceil(r.height||n.height),s=r.pixelRatio,a=r.x===void 0?Math.floor(n.x):r.x,c=r.y===void 0?Math.floor(n.y):r.y,l=r.offset||0,u=r.drawBorder||!1,d=r.hitCanvasPixelRatio||1;if(!i||!o){_e.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=l*2+1,o+=l*2+1,a-=l,c-=l;var f=new su.SceneCanvas({pixelRatio:s,width:i,height:o}),h=new su.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),p=new su.HitCanvas({pixelRatio:d,width:i,height:o}),g=f.getContext(),v=p.getContext();return p.isCache=!0,f.isCache=!0,this._cache.delete(Oo),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(f.getContext()._context.imageSmoothingEnabled=!1,h.getContext()._context.imageSmoothingEnabled=!1),g.save(),v.save(),g.translate(-a,-c),v.translate(-a,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(au),this._clearSelfAndDescendantCache(Yb),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(Oo,{scene:f,filter:h,hit:p,x:a,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Oo)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=1/0,o=1/0,s=-1/0,a=-1/0,c=this.getAbsoluteTransform(r);return n.forEach(function(l){var u=c.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),{x:i,y:o,width:s-i,height:a-o}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);var n=this._getCachedSceneCanvas(),i=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/i,n.height/i),t.restore()}_drawCachedHitCanvas(t){var r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),r=this._getCanvasCache(),n=r.scene,i=r.filter,o=i.getContext(),s,a,c,l;if(t){if(!this._filterUpToDate){var u=n.pixelRatio;i.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(s=t.length,o.clear(),o.drawImage(n._canvas,0,0,n.getWidth()/u,n.getHeight()/u),a=o.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<s;c++){if(l=t[c],typeof l!="function"){_e.Util.error("Filter should be type of function, but got "+typeof l+" instead. Please check correct filters");continue}l.call(this,a),o.putImageData(a,0,0)}}catch(d){_e.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(lu),arguments.length===3)return this._delegate.apply(this,arguments);var n=t.split(cu),i=n.length,o,s,a,c,l;for(o=0;o<i;o++)s=n[o],a=s.split("."),c=a[0],l=a[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:l,handler:r});return this}off(t,r){var n=(t||"").split(cu),i=n.length,o,s,a,c,l,u;if(this._cache&&this._cache.delete(lu),!t)for(s in this.eventListeners)this._off(s);for(o=0;o<i;o++)if(a=n[o],c=a.split("."),l=c[0],u=c[1],l)this.eventListeners[l]&&this._off(l,u,r);else for(s in this.eventListeners)this._off(s,u,r);return this}dispatchEvent(t){var r={target:this,type:t.type,evt:t};return this.fire(t.type,r),this}addEventListener(t,r){return this.on(t,function(n){r.call(this,n.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,r,n){var i=this;this.on(t,function(o){for(var s=o.target.findAncestors(r,!0,i),a=0;a<s.length;a++)o=_e.Util.cloneObject(o),o.currentTarget=s[a],n.call(s[a],o)})}remove(){return this.isDragging()&&this.stopDrag(),_n.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(ki),this._clearSelfAndDescendantCache(au),this._clearSelfAndDescendantCache(Yb),this._clearSelfAndDescendantCache(Zb),this._clearSelfAndDescendantCache(hp),this._clearSelfAndDescendantCache(up)}_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"+_e.Util._capitalize(t);return _e.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!==rR&&(n=Wb+_e.Util._capitalize(r),_e.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(up,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(hp,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;_n.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(s.node.nodeType==="Stage"||s.node.getLayer()===n)&&(i=!0)});var o=!r&&!To.Konva.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),r=this,n=0,i,o,s,a;function c(u){for(i=[],o=u.length,s=0;s<o;s++)a=u[s],n++,a.nodeType!==Qb&&(i=i.concat(a.getChildren().slice())),a._id===r._id&&(s=o);i.length>0&&i[0].getDepth()<=t&&c(i)}const l=this.getStage();return r.nodeType!==iR&&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(Yi),this._clearSelfAndDescendantCache(ki)),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 _e.Transform,s=this.offset();return o.m=i.slice(),o.translate(s.x,s.y),o.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...i}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Yi);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(Yi),this._clearSelfAndDescendantCache(ki),this}_setTransform(t){var r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var r=t.x,n=t.y,i=this.x(),o=this.y();return r!==void 0&&(i+=r),n!==void 0&&(o+=n),this.setPosition({x:i,y:o}),this}_eachAncestorReverse(t,r){var n=[],i=this.getParent(),o,s;if(!(r&&r._id===this._id)){for(n.unshift(this);i&&(!r||i._id!==r._id);)n.unshift(i),i=i.parent;for(o=n.length,s=0;s<o;s++)t(n[s])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return _e.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 _e.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 _e.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 _e.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 _e.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&_e.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(au,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},r=this.getAttrs(),n,i,o,s,a;t.attrs={};for(n in r)i=r[n],a=_e.Util.isObject(i)&&!_e.Util._isPlainObject(i)&&!_e.Util._isArray(i),!a&&(o=typeof this[n]=="function"&&this[n],delete r[n],s=o?o.call(this):null,r[n]=i,s!==i&&(t.attrs[n]=i));return t.className=this.getClassName(),_e.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],_e.Util.isValidSelector(o)||(_e.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),_e.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),_e.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(Zb,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(ki,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var r;if(t)return r=new _e.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(ki)||new _e.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(r):r.reset();var n=this.transformsEnabled();if(n==="all")r.multiply(this.getTransform());else if(n==="position"){const i=this.attrs.x||0,o=this.attrs.y||0,s=this.attrs.offsetX||0,a=this.attrs.offsetY||0;r.translate(i-s,o-a)}return r.dirty=!1,r}getAbsoluteScale(t){for(var r=this;r;)r._isUnderCache&&(t=r),r=r.getParent();const n=this.getAbsoluteTransform(t).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Yi,this._getTransform)}_getTransform(){var t,r,n=this._cache.get(Yi)||new _e.Transform;n.reset();var i=this.x(),o=this.y(),s=To.Konva.getAngle(this.rotation()),a=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(r=this.attrs.scaleY)!==null&&r!==void 0?r:1,l=this.attrs.skewX||0,u=this.attrs.skewY||0,d=this.attrs.offsetX||0,f=this.attrs.offsetY||0;return(i!==0||o!==0)&&n.translate(i,o),s!==0&&n.rotate(s),(l!==0||u!==0)&&n.skew(l,u),(a!==1||c!==1)&&n.scale(a,c),(d!==0||f!==0)&&n.translate(-1*d,-1*f),n.dirty=!1,n}clone(t){var r=_e.Util.cloneObject(this.attrs),n,i,o,s,a;for(n in t)r[n]=t[n];var c=new this.constructor(r);for(n in this.eventListeners)for(i=this.eventListeners[n],o=i.length,s=0;s<o;s++)a=i[s],a.name.indexOf(nR)<0&&(c.eventListeners[n]||(c.eventListeners[n]=[]),c.eventListeners[n].push(a));return c}_toKonvaCanvas(t){t=t||{};var r=this.getClientRect(),n=this.getStage(),i=t.x!==void 0?t.x:Math.floor(r.x),o=t.y!==void 0?t.y:Math.floor(r.y),s=t.pixelRatio||1,a=new su.SceneCanvas({width:t.width||Math.ceil(r.width)||(n?n.width():0),height:t.height||Math.ceil(r.height)||(n?n.height():0),pixelRatio:s}),c=a.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||o)&&c.translate(-1*i,-1*o),this.drawScene(a),c.restore(),a}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var r=t.mimeType||null,n=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(r,n);return t.callback&&t.callback(i),i}toImage(t){return new Promise((r,n)=>{try{const i=t==null?void 0:t.callback;i&&delete t.callback,_e.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():To.Konva.dragDistance}_off(t,r,n){var i=this.eventListeners[t],o,s,a;for(o=0;o<i.length;o++)if(s=i[o].name,a=i[o].handler,(s!=="konva"||r==="konva")&&(!r||s===r)&&(!n||n===a)){if(i.splice(o,1),i.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,r,n){this._fire(t+eR,{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[Wb+_e.Util._capitalize(t)];return _e.Util._isFunction(n)?n.call(this,r):this._setAttr(t,r),this}_requestDraw(){if(To.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,r){var n=this.attrs[t];n===r&&!_e.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===Qb&&(r.target=this);var i=(t===Xb||t===Jb)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||this.nodeType==="Stage"&&!n);if(!i){this._fire(t,r);var o=(t===Xb||t===Jb)&&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(lu))!==null&&r!==void 0?r:{};let s=o==null?void 0:o[t];if(s===void 0){s=[];let a=Object.getPrototypeOf(this);for(;a;){const c=(i=(n=a.eventListeners)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:[];s.push(...c),a=Object.getPrototypeOf(a)}o[t]=s,this._cache.set(lu,o)}return s}_fire(t,r){r=r||{},r.currentTarget=this,r.type=t;const n=this._getProtoListeners(t);if(n)for(var i=0;i<n.length;i++)n[i].handler.call(this,r);const o=this.eventListeners[t];if(o)for(var i=0;i<o.length;i++)o[i].handler.call(this,r)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var r=t?t.pointerId:void 0,n=this.getStage(),i=this.getAbsolutePosition();if(n){var o=n._getPointerById(r)||n._changedPointerPositions[0]||i;_n.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){_n.DD._dragElements.has(this._id)||this._createDragElement(t);const n=_n.DD._dragElements.get(this._id);n.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},r)}_setDragPosition(t,r){const n=this.getStage()._getPointerById(r.pointerId);if(n){var i={x:n.x-r.offset.x,y:n.y-r.offset.y},o=this.dragBoundFunc();if(o!==void 0){const s=o.call(this,i,t);s?i=s:_e.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=_n.DD._dragElements.get(this._id);r&&(r.dragStatus="stopped"),_n.DD._endDragBefore(t),_n.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=_n.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||To.Konva.dragButtons.indexOf(t.evt.button)>=0;if(n&&!this.isDragging()){var i=!1;_n.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=_n.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",i=r&&r.dragStatus==="ready";n?this.stopDrag():i&&_n.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 _e.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return _e.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){var n=Gm.prototype.getClassName.call(t),i=t.children,o,s,a;r&&(t.attrs.container=r),To.Konva[n]||(_e.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const c=To.Konva[n];if(o=new c(t.attrs),i)for(s=i.length,a=0;a<s;a++)o.add(Gm._createNode(i[a]));return o}};Kb=Ra.Node=ue,ue.prototype.nodeType="Node",ue.prototype._attrsAffectingSize=[],ue.prototype.eventListeners={},ue.prototype.on.call(ue.prototype,oR,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Yi),this._clearSelfAndDescendantCache(ki)}),ue.prototype.on.call(ue.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(hp)}),ue.prototype.on.call(ue.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(up)}),ue.prototype.on.call(ue.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(au)});const Ve=ja.Factory.addGetterSetter;Ve(ue,"zIndex"),Ve(ue,"absolutePosition"),Ve(ue,"position"),Ve(ue,"x",0,(0,ar.getNumberValidator)()),Ve(ue,"y",0,(0,ar.getNumberValidator)()),Ve(ue,"globalCompositeOperation","source-over",(0,ar.getStringValidator)()),Ve(ue,"opacity",1,(0,ar.getNumberValidator)()),Ve(ue,"name","",(0,ar.getStringValidator)()),Ve(ue,"id","",(0,ar.getStringValidator)()),Ve(ue,"rotation",0,(0,ar.getNumberValidator)()),ja.Factory.addComponentsGetterSetter(ue,"scale",["x","y"]),Ve(ue,"scaleX",1,(0,ar.getNumberValidator)()),Ve(ue,"scaleY",1,(0,ar.getNumberValidator)()),ja.Factory.addComponentsGetterSetter(ue,"skew",["x","y"]),Ve(ue,"skewX",0,(0,ar.getNumberValidator)()),Ve(ue,"skewY",0,(0,ar.getNumberValidator)()),ja.Factory.addComponentsGetterSetter(ue,"offset",["x","y"]),Ve(ue,"offsetX",0,(0,ar.getNumberValidator)()),Ve(ue,"offsetY",0,(0,ar.getNumberValidator)()),Ve(ue,"dragDistance",null,(0,ar.getNumberValidator)()),Ve(ue,"width",0,(0,ar.getNumberValidator)()),Ve(ue,"height",0,(0,ar.getNumberValidator)()),Ve(ue,"listening",!0,(0,ar.getBooleanValidator)()),Ve(ue,"preventDefault",!0,(0,ar.getBooleanValidator)()),Ve(ue,"filters",null,function(e){return this._filterUpToDate=!1,e}),Ve(ue,"visible",!0,(0,ar.getBooleanValidator)()),Ve(ue,"transformsEnabled","all",(0,ar.getStringValidator)()),Ve(ue,"size"),Ve(ue,"dragBoundFunc"),Ve(ue,"draggable",!1,(0,ar.getBooleanValidator)()),ja.Factory.backCompat(ue,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});const aR=Jt({__proto__:null,get Node(){return Kb},default:Ra},[Ra]),lr=Wt(aR);var Da={};Object.defineProperty(Da,"__esModule",{value:!0});var t2=Da.Container=void 0;const vs=me,dp=lr,uu=ye;let Ao=class extends dp.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=dp.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=dp.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){var r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas(),o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(a){o.save();var l=this.getAbsoluteTransform(r).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,r);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;var n=this.getLayer(),i=t||n&&n.hitCanvas,o=i&&i.getContext(),s=this._getCanvasCache(),a=s&&s.hit;if(a){o.save();var c=this.getAbsoluteTransform(r).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",i,r);return this}_drawChildren(t,r,n){var i,o=r&&r.getContext(),s=this.clipWidth(),a=this.clipHeight(),c=this.clipFunc(),l=s&&a||c;const u=n===this;if(l){o.save();var 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,s,a)}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,s,a,c,l={x:1/0,y:1/0,width:0,height:0},u=this;(r=this.children)===null||r===void 0||r.forEach(function(g){if(g.visible()){var v=g.getClientRect({relativeTo:u,skipShadow:t.skipShadow,skipStroke:t.skipStroke});v.width===0&&v.height===0||(o===void 0?(o=v.x,s=v.y,a=v.x+v.width,c=v.y+v.height):(o=Math.min(o,v.x),s=Math.min(s,v.y),a=Math.max(a,v.x+v.width),c=Math.max(c,v.y+v.height)))}});for(var 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:s,width:a-o,height:c-s}:l={x:0,y:0,width:0,height:0},n?l:this._transformedRect(l,i)}};t2=Da.Container=Ao,vs.Factory.addComponentsGetterSetter(Ao,"clip",["x","y","width","height"]),vs.Factory.addGetterSetter(Ao,"clipX",void 0,(0,uu.getNumberValidator)()),vs.Factory.addGetterSetter(Ao,"clipY",void 0,(0,uu.getNumberValidator)()),vs.Factory.addGetterSetter(Ao,"clipWidth",void 0,(0,uu.getNumberValidator)()),vs.Factory.addGetterSetter(Ao,"clipHeight",void 0,(0,uu.getNumberValidator)()),vs.Factory.addGetterSetter(Ao,"clipFunc");const lR=Jt({__proto__:null,get Container(){return t2},default:Da},[Da]),hu=Wt(lR);var fp={},un={};Object.defineProperty(un,"__esModule",{value:!0});var e2=un.releaseCapture=s2=un.setPointerCapture=o2=un.hasPointerCapture=i2=un.createEvent=n2=un.getCapturedShape=void 0;const cR=ve,Ia=new Map,r2=cR.Konva._global.PointerEvent!==void 0;function uR(e){return Ia.get(e)}var n2=un.getCapturedShape=uR;function pp(e){return{evt:e,pointerId:e.pointerId}}var i2=un.createEvent=pp;function hR(e,t){return Ia.get(e)===t}var o2=un.hasPointerCapture=hR;function dR(e,t){a2(e),t.getStage()&&(Ia.set(e,t),r2&&t._fire("gotpointercapture",pp(new PointerEvent("gotpointercapture"))))}var s2=un.setPointerCapture=dR;function a2(e,t){const r=Ia.get(e);if(!r)return;const n=r.getStage();n&&n.content,Ia.delete(e),r2&&r._fire("lostpointercapture",pp(new PointerEvent("lostpointercapture")))}e2=un.releaseCapture=a2;const fR=Jt({__proto__:null,get createEvent(){return i2},default:un,get getCapturedShape(){return n2},get hasPointerCapture(){return o2},get releaseCapture(){return e2},get setPointerCapture(){return s2}},[un]),l2=Wt(fR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=rr,r=me,n=hu,i=ve,o=ou,s=cp,a=ve,c=l2;var l="Stage",u="string",d="px",f="mouseout",h="mouseleave",p="mouseover",g="mouseenter",v="mousemove",b="mousedown",_="mouseup",m="pointermove",S="pointerdown",N="pointerup",k="pointercancel",A="lostpointercapture",R="pointerout",z="pointerleave",B="pointerover",Y="pointerenter",W="contextmenu",nt="touchstart",rt="touchend",lt="touchmove",xt="touchcancel",Ct="wheel",$t=5,st=[[g,"_pointerenter"],[b,"_pointerdown"],[v,"_pointermove"],[_,"_pointerup"],[h,"_pointerleave"],[nt,"_pointerdown"],[lt,"_pointermove"],[rt,"_pointerup"],[xt,"_pointercancel"],[p,"_pointerover"],[Ct,"_wheel"],[W,"_contextmenu"],[S,"_pointerdown"],[m,"_pointermove"],[N,"_pointerup"],[k,"_pointercancel"],[A,"_lostpointercapture"]];const X={mouse:{[R]:f,[z]:h,[B]:p,[Y]:g,[m]:v,[S]:b,[N]:_,[k]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[R]:"touchout",[z]:"touchleave",[B]:"touchover",[Y]:"touchenter",[m]:lt,[S]:nt,[N]:rt,[k]:xt,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[R]:R,[z]:z,[B]:B,[Y]:Y,[m]:m,[S]:S,[N]:N,[k]:k,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},T=M=>M.indexOf("pointer")>=0?"pointer":M.indexOf("touch")>=0?"touch":"mouse",E=M=>{const I=T(M);if(I==="pointer")return i.Konva.pointerEventsEnabled&&X.pointer;if(I==="touch")return X.touch;if(I==="mouse")return X.mouse};function $(M={}){return(M.clipFunc||M.clipWidth||M.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),M}const y="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(I){super($(I)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{$(this.attrs)}),this._checkVisibility()}_validateAdd(I){const G=I.getType()==="Layer",q=I.getType()==="FastLayer";G||q||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const I=this.visible()?"":"none";this.content.style.display=I}setContainer(I){if(typeof I===u){if(I.charAt(0)==="."){var G=I.slice(1);I=document.getElementsByClassName(G)[0]}else{var q;I.charAt(0)!=="#"?q=I:q=I.slice(1),I=document.getElementById(q)}if(!I)throw"Can not find container in document with id "+q}return this._setAttr("container",I),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),I.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var I=this.children,G=I.length,q;for(q=0;q<G;q++)I[q].clear();return this}clone(I){return I||(I={}),I.container=typeof document<"u"&&document.createElement("div"),n.Container.prototype.clone.call(this,I)}destroy(){super.destroy();var I=this.content;I&&t.Util._isInDocument(I)&&this.container().removeChild(I);var G=e.stages.indexOf(this);return G>-1&&e.stages.splice(G,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const I=this._pointerPositions[0]||this._changedPointerPositions[0];return I?{x:I.x,y:I.y}:(t.Util.warn(y),null)}_getPointerById(I){return this._pointerPositions.find(G=>G.id===I)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(I){I=I||{},I.x=I.x||0,I.y=I.y||0,I.width=I.width||this.width(),I.height=I.height||this.height();var G=new o.SceneCanvas({width:I.width,height:I.height,pixelRatio:I.pixelRatio||1}),q=G.getContext()._context,et=this.children;return(I.x||I.y)&&q.translate(-1*I.x,-1*I.y),et.forEach(function(it){if(it.isVisible()){var ut=it._toKonvaCanvas(I);q.drawImage(ut._canvas,I.x,I.y,ut.getWidth()/ut.getPixelRatio(),ut.getHeight()/ut.getPixelRatio())}}),G}getIntersection(I){if(!I)return null;var G=this.children,q=G.length,et=q-1,it;for(it=et;it>=0;it--){const ut=G[it].getIntersection(I);if(ut)return ut}return null}_resizeDOM(){var I=this.width(),G=this.height();this.content&&(this.content.style.width=I+d,this.content.style.height=G+d),this.bufferCanvas.setSize(I,G),this.bufferHitCanvas.setSize(I,G),this.children.forEach(q=>{q.setSize({width:I,height:G}),q.draw()})}add(I,...G){if(arguments.length>1){for(var q=0;q<arguments.length;q++)this.add(arguments[q]);return this}super.add(I);var et=this.children.length;return et>$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."),I.setSize({width:this.width(),height:this.height()}),I.draw(),i.Konva.isBrowser&&this.content.appendChild(I.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(I){return c.hasPointerCapture(I,this)}setPointerCapture(I){c.setPointerCapture(I,this)}releaseCapture(I){c.releaseCapture(I,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&st.forEach(([I,G])=>{this.content.addEventListener(I,q=>{this[G](q)},{passive:!1})})}_pointerenter(I){this.setPointersPositions(I);const G=E(I.type);G&&this._fire(G.pointerenter,{evt:I,target:this,currentTarget:this})}_pointerover(I){this.setPointersPositions(I);const G=E(I.type);G&&this._fire(G.pointerover,{evt:I,target:this,currentTarget:this})}_getTargetShape(I){let G=this[I+"targetShape"];return G&&!G.getStage()&&(G=null),G}_pointerleave(I){const G=E(I.type),q=T(I.type);if(G){this.setPointersPositions(I);var et=this._getTargetShape(q),it=!s.DD.isDragging||i.Konva.hitOnDragEnabled;et&&it?(et._fireAndBubble(G.pointerout,{evt:I}),et._fireAndBubble(G.pointerleave,{evt:I}),this._fire(G.pointerleave,{evt:I,target:this,currentTarget:this}),this[q+"targetShape"]=null):it&&(this._fire(G.pointerleave,{evt:I,target:this,currentTarget:this}),this._fire(G.pointerout,{evt:I,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(I){const G=E(I.type),q=T(I.type);if(G){this.setPointersPositions(I);var et=!1;this._changedPointerPositions.forEach(it=>{var ut=this.getIntersection(it);if(s.DD.justDragged=!1,i.Konva["_"+q+"ListenClick"]=!0,!ut||!ut.isListening())return;i.Konva.capturePointerEventsEnabled&&ut.setPointerCapture(it.id),this[q+"ClickStartShape"]=ut,ut._fireAndBubble(G.pointerdown,{evt:I,pointerId:it.id}),et=!0;const Tt=I.type.indexOf("touch")>=0;ut.preventDefault()&&I.cancelable&&Tt&&I.preventDefault()}),et||this._fire(G.pointerdown,{evt:I,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(I){const G=E(I.type),q=T(I.type);if(!G)return;s.DD.isDragging&&s.DD.node.preventDefault()&&I.cancelable&&I.preventDefault(),this.setPointersPositions(I);var et=!s.DD.isDragging||i.Konva.hitOnDragEnabled;if(!et)return;var it={};let ut=!1;var Tt=this._getTargetShape(q);this._changedPointerPositions.forEach(Ut=>{const Pt=c.getCapturedShape(Ut.id)||this.getIntersection(Ut),Nt=Ut.id,qt={evt:I,pointerId:Nt};var Qt=Tt!==Pt;if(Qt&&Tt&&(Tt._fireAndBubble(G.pointerout,{...qt},Pt),Tt._fireAndBubble(G.pointerleave,{...qt},Pt)),Pt){if(it[Pt._id])return;it[Pt._id]=!0}Pt&&Pt.isListening()?(ut=!0,Qt&&(Pt._fireAndBubble(G.pointerover,{...qt},Tt),Pt._fireAndBubble(G.pointerenter,{...qt},Tt),this[q+"targetShape"]=Pt),Pt._fireAndBubble(G.pointermove,{...qt})):Tt&&(this._fire(G.pointerover,{evt:I,target:this,currentTarget:this,pointerId:Nt}),this[q+"targetShape"]=null)}),ut||this._fire(G.pointermove,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(I){const G=E(I.type),q=T(I.type);if(!G)return;this.setPointersPositions(I);const et=this[q+"ClickStartShape"],it=this[q+"ClickEndShape"];var ut={};let Tt=!1;this._changedPointerPositions.forEach(Ut=>{const Pt=c.getCapturedShape(Ut.id)||this.getIntersection(Ut);if(Pt){if(Pt.releaseCapture(Ut.id),ut[Pt._id])return;ut[Pt._id]=!0}const Nt=Ut.id,qt={evt:I,pointerId:Nt};let Qt=!1;i.Konva["_"+q+"InDblClickWindow"]?(Qt=!0,clearTimeout(this[q+"DblTimeout"])):s.DD.justDragged||(i.Konva["_"+q+"InDblClickWindow"]=!0,clearTimeout(this[q+"DblTimeout"])),this[q+"DblTimeout"]=setTimeout(function(){i.Konva["_"+q+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Pt&&Pt.isListening()?(Tt=!0,this[q+"ClickEndShape"]=Pt,Pt._fireAndBubble(G.pointerup,{...qt}),i.Konva["_"+q+"ListenClick"]&&et&&et===Pt&&(Pt._fireAndBubble(G.pointerclick,{...qt}),Qt&&it&&it===Pt&&Pt._fireAndBubble(G.pointerdblclick,{...qt}))):(this[q+"ClickEndShape"]=null,i.Konva["_"+q+"ListenClick"]&&this._fire(G.pointerclick,{evt:I,target:this,currentTarget:this,pointerId:Nt}),Qt&&this._fire(G.pointerdblclick,{evt:I,target:this,currentTarget:this,pointerId:Nt}))}),Tt||this._fire(G.pointerup,{evt:I,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+q+"ListenClick"]=!1,I.cancelable&&q!=="touch"&&I.preventDefault()}_contextmenu(I){this.setPointersPositions(I);var G=this.getIntersection(this.getPointerPosition());G&&G.isListening()?G._fireAndBubble(W,{evt:I}):this._fire(W,{evt:I,target:this,currentTarget:this})}_wheel(I){this.setPointersPositions(I);var G=this.getIntersection(this.getPointerPosition());G&&G.isListening()?G._fireAndBubble(Ct,{evt:I}):this._fire(Ct,{evt:I,target:this,currentTarget:this})}_pointercancel(I){this.setPointersPositions(I);const G=c.getCapturedShape(I.pointerId)||this.getIntersection(this.getPointerPosition());G&&G._fireAndBubble(N,c.createEvent(I)),c.releaseCapture(I.pointerId)}_lostpointercapture(I){c.releaseCapture(I.pointerId)}setPointersPositions(I){var G=this._getContentPosition(),q=null,et=null;I=I||window.event,I.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(I.touches,it=>{this._pointerPositions.push({id:it.identifier,x:(it.clientX-G.left)/G.scaleX,y:(it.clientY-G.top)/G.scaleY})}),Array.prototype.forEach.call(I.changedTouches||I.touches,it=>{this._changedPointerPositions.push({id:it.identifier,x:(it.clientX-G.left)/G.scaleX,y:(it.clientY-G.top)/G.scaleY})})):(q=(I.clientX-G.left)/G.scaleX,et=(I.clientY-G.top)/G.scaleY,this.pointerPos={x:q,y:et},this._pointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}],this._changedPointerPositions=[{x:q,y:et,id:t.Util._getFirstPointerId(I)}])}_setPointerPosition(I){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(I)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var I=this.content.getBoundingClientRect();return{top:I.top,left:I.left,scaleX:I.width/this.content.clientWidth||1,scaleY:I.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!i.Konva.isBrowser){var I=this.container();if(!I)throw"Stage has no container. A container is required.";I.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),I.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(I){I.batchDraw()}),this}}e.Stage=C,C.prototype.nodeType=l,(0,a._registerNode)(C),r.Factory.addGetterSetter(C,"container")})(fp);const pR=an(fp),mR=Jt({__proto__:null,default:pR},[fp]),gR=Wt(mR);var Fa={},mp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ve,r=rr,n=me,i=lr,o=ye,s=ve,a=l2;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(z){const B=this.attrs.fillRule;B?z.fill(B):z.fill()}function v(z){z.stroke()}function b(z){z.fill()}function _(z){z.stroke()}function m(){this._clearCache(c)}function S(){this._clearCache(l)}function N(){this._clearCache(u)}function k(){this._clearCache(d)}function A(){this._clearCache(f)}class R extends i.Node{constructor(B){super(B);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 B=p();const Y=B.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(Y&&Y.setTransform){const W=new r.Transform;W.translate(this.fillPatternX(),this.fillPatternY()),W.rotate(t.Konva.getAngle(this.fillPatternRotation())),W.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),W.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const nt=W.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 B=this.fillLinearGradientColorStops();if(B){for(var Y=p(),W=this.fillLinearGradientStartPoint(),nt=this.fillLinearGradientEndPoint(),rt=Y.createLinearGradient(W.x,W.y,nt.x,nt.y),lt=0;lt<B.length;lt+=2)rt.addColorStop(B[lt],B[lt+1]);return rt}}_getRadialGradient(){return this._getCache(f,this.__getRadialGradient)}__getRadialGradient(){var B=this.fillRadialGradientColorStops();if(B){for(var Y=p(),W=this.fillRadialGradientStartPoint(),nt=this.fillRadialGradientEndPoint(),rt=Y.createRadialGradient(W.x,W.y,this.fillRadialGradientStartRadius(),nt.x,nt.y,this.fillRadialGradientEndRadius()),lt=0;lt<B.length;lt+=2)rt.addColorStop(B[lt],B[lt+1]);return rt}}getShadowRGBA(){return this._getCache(l,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var B=r.Util.colorToRGBA(this.shadowColor());if(B)return"rgba("+B.r+","+B.g+","+B.b+","+B.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 B=this.hitStrokeWidth();return B==="auto"?this.hasStroke():this.strokeEnabled()&&!!B}intersects(B){var Y=this.getStage();if(!Y)return!1;const W=Y.bufferHitCanvas;return W.getContext().clear(),this.drawHit(W,void 0,!0),W.context.getImageData(Math.round(B.x),Math.round(B.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(B){var Y;if(!this.getStage()||!(!((Y=this.attrs.perfectDrawEnabled)!==null&&Y!==void 0)||Y))return!1;const W=B||this.hasFill(),nt=this.hasStroke(),rt=this.getAbsoluteOpacity()!==1;if(W&&nt&&rt)return!0;const lt=this.hasShadow(),xt=this.shadowForStrokeEnabled();return!!(W&&nt&&lt&&xt)}setStrokeHitEnabled(B){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),B?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var B=this.size();return{x:this._centroid?-B.width/2:0,y:this._centroid?-B.height/2:0,width:B.width,height:B.height}}getClientRect(B={}){const Y=B.skipTransform,W=B.relativeTo,nt=this.getSelfRect(),rt=!B.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,lt=nt.width+rt,xt=nt.height+rt,Ct=!B.skipShadow&&this.hasShadow(),$t=Ct?this.shadowOffsetX():0,st=Ct?this.shadowOffsetY():0,X=lt+Math.abs($t),T=xt+Math.abs(st),E=Ct&&this.shadowBlur()||0,$=X+E*2,y=T+E*2,C={width:$,height:y,x:-(rt/2+E)+Math.min($t,0)+nt.x,y:-(rt/2+E)+Math.min(st,0)+nt.y};return Y?C:this._transformedRect(C,W)}drawScene(B,Y){var W=this.getLayer(),nt=B||W.getCanvas(),rt=nt.getContext(),lt=this._getCanvasCache(),xt=this.getSceneFunc(),Ct=this.hasShadow(),$t,st,X,T=nt.isCache,E=Y===this;if(!this.isVisible()&&!E)return this;if(lt){rt.save();var $=this.getAbsoluteTransform(Y).getMatrix();return rt.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(rt),rt.restore(),this}if(!xt)return this;if(rt.save(),this._useBufferCanvas()&&!T){$t=this.getStage(),st=$t.bufferCanvas,X=st.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var y=this.getAbsoluteTransform(Y).getMatrix();X.transform(y[0],y[1],y[2],y[3],y[4],y[5]),xt.call(this,X,this),X.restore();var C=st.pixelRatio;Ct&&rt._applyShadow(this),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this),rt.drawImage(st._canvas,0,0,st.width/C,st.height/C)}else{if(rt._applyLineJoin(this),!E){var y=this.getAbsoluteTransform(Y).getMatrix();rt.transform(y[0],y[1],y[2],y[3],y[4],y[5]),rt._applyOpacity(this),rt._applyGlobalCompositeOperation(this)}Ct&&rt._applyShadow(this),xt.call(this,rt,this)}return rt.restore(),this}drawHit(B,Y,W=!1){if(!this.shouldDrawHit(Y,W))return this;var nt=this.getLayer(),rt=B||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 st=this.getAbsoluteTransform(Y).getMatrix();return lt.transform(st[0],st[1],st[2],st[3],st[4],st[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(B=0){var Y=this._getCanvasCache(),W=this._getCachedSceneCanvas(),nt=Y.hit,rt=nt.getContext(),lt=nt.getWidth(),xt=nt.getHeight(),Ct,$t,st,X,T,E;rt.clear(),rt.drawImage(W._canvas,0,0,lt,xt);try{for(Ct=rt.getImageData(0,0,lt,xt),$t=Ct.data,st=$t.length,X=r.Util._hexToRgb(this.colorKey),T=0;T<st;T+=4)E=$t[T+3],E>B?($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($){r.Util.error("Unable to draw hit graph from cached scene canvas. "+$.message)}return this}hasPointerCapture(B){return a.hasPointerCapture(B,this)}setPointerCapture(B){a.setPointerCapture(B,this)}releaseCapture(B){a.releaseCapture(B,this)}}e.Shape=R,R.prototype._fillFunc=g,R.prototype._strokeFunc=v,R.prototype._fillFuncHit=b,R.prototype._strokeFuncHit=_,R.prototype._centroid=!1,R.prototype.nodeType="Shape",(0,s._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",S),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",k),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"})})(mp);const vR=an(mp),yR=Jt({__proto__:null,default:vR},[mp]),xr=Wt(yR);Object.defineProperty(Fa,"__esModule",{value:!0});var c2=Fa.Layer=void 0;const Ei=rr,gp=hu,ys=lr,vp=me,u2=ou,_R=ye,bR=xr,wR=ve;var xR="#",SR="beforeDraw",$R="draw",h2=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kR=h2.length;let _s=class extends gp.Container{constructor(t){super(t),this.canvas=new u2.SceneCanvas,this.hitCanvas=new u2.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(){ys.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=ys.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(ys.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(ys.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 ys.Node.prototype.remove.call(this),t&&t.parentNode&&Ei.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"&&Ei.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(),ys.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(){Ei.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){Ei.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,Ei.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<kR;i++){const o=h2[i],s=this._getIntersection({x:t.x+o.x*r,y:t.y+o.y*r}),a=s.shape;if(a)return a;if(n=!!s.antialiased,!s.antialiased)break}if(n)r+=1;else return null}}_getIntersection(t){const r=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,i=n[3];if(i===255){const o=Ei.Util._rgbToHex(n[0],n[1],n[2]),s=bR.shapes[xR+o];return s?{shape:s}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(t,r){var n=this.getLayer(),i=t||n&&n.getCanvas();return this._fire(SR,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),gp.Container.prototype.drawScene.call(this,i,r),this._fire($R,{node:this}),this}drawHit(t,r){var n=this.getLayer(),i=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),gp.Container.prototype.drawHit.call(this,i,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Ei.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Ei.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 Ei.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};c2=Fa.Layer=_s,_s.prototype.nodeType="Layer",(0,wR._registerNode)(_s),vp.Factory.addGetterSetter(_s,"imageSmoothingEnabled",!0),vp.Factory.addGetterSetter(_s,"clearBeforeDraw",!0),vp.Factory.addGetterSetter(_s,"hitGraphEnabled",!0,(0,_R.getBooleanValidator)());const ER=Jt({__proto__:null,get Layer(){return c2},default:Fa},[Fa]),d2=Wt(ER);var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});var f2=Ma.FastLayer=void 0;const CR=rr,PR=d2,TR=ve;let yp=class extends PR.Layer{constructor(t){super(t),this.listening(!1),CR.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};f2=Ma.FastLayer=yp,yp.prototype.nodeType="FastLayer",(0,TR._registerNode)(yp);const OR=Jt({__proto__:null,get FastLayer(){return f2},default:Ma},[Ma]),AR=Wt(OR);var La={};Object.defineProperty(La,"__esModule",{value:!0});var p2=La.Group=void 0;const NR=rr,RR=hu,jR=ve;let _p=class extends RR.Container{_validateAdd(t){var r=t.getType();r!=="Group"&&r!=="Shape"&&NR.Util.throw("You may only add groups and shapes to groups.")}};p2=La.Group=_p,_p.prototype.nodeType="Group",(0,jR._registerNode)(_p);const DR=Jt({__proto__:null,get Group(){return p2},default:La},[La]),bp=Wt(DR);var Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});var m2=Ua.Animation=void 0;const wp=ve,g2=rr,xp=function(){return wp.glob.performance&&wp.glob.performance.now?function(){return wp.glob.performance.now()}:function(){return new Date().getTime()}}();let du=class Fs{constructor(t,r){this.id=Fs.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:xp(),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=Fs.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=xp(),Fs._addAnimation(this),this}stop(){return Fs._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const r=t.id,n=this.animations,i=n.length;for(let o=0;o<i;o++)if(n[o].id===r){this.animations.splice(o,1);break}}static _runFrames(){const t={},r=this.animations;for(let n=0;n<r.length;n++){const i=r[n],o=i.layers,s=i.func;i._updateFrameObject(xp());const a=o.length;let c;if(s?c=s.call(i,i.frame)!==!1:c=!0,!!c)for(let l=0;l<a;l++){const u=o[l];u._id!==void 0&&(t[u._id]=u)}}for(let n in t)t.hasOwnProperty(n)&&t[n].batchDraw()}static _animationLoop(){const t=Fs;t.animations.length?(t._runFrames(),g2.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,g2.Util.requestAnimFrame(this._animationLoop))}};m2=Ua.Animation=du,du.animations=[],du.animIdCounter=0,du.animRunning=!1;const IR=Jt({__proto__:null,get Animation(){return m2},default:Ua},[Ua]),Sp=Wt(IR);var $p={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=rr,r=Sp,n=lr,i=ve;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},s=1,a=2,c=3,l=0,u=["fill","stroke","shadowColor"];class d{constructor(p,g,v,b,_,m,S){this.prop=p,this.propFunc=g,this.begin=b,this._pos=b,this.duration=m,this._change=0,this.prevPos=0,this.yoyo=S,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=v,this._change=_-this.begin,this.pause()}fire(p){var g=this[p];g&&g()}setTime(p){p>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():p<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=p,this.update())}getTime(){return this._time}setPosition(p){this.prevPos=this._pos,this.propFunc(p),this._pos=p}getPosition(p){return p===void 0&&(p=this._time),this.func(p,this.begin,this._change,this.duration)}play(){this.state=a,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(p){this.pause(),this._time=p,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var p=this.getTimer()-this._startTime;this.state===a?this.setTime(p):this.state===c&&this.setTime(this.duration-p)}pause(){this.state=s,this.fire("onPause")}getTimer(){return new Date().getTime()}}class f{constructor(p){var g=this,v=p.node,b=v._id,_,m=p.easing||e.Easings.Linear,S=!!p.yoyo,N;typeof p.duration>"u"?_=.3:p.duration===0?_=.001:_=p.duration,this.node=v,this._id=l++;var k=v.getLayer()||(v instanceof i.Konva.Stage?v.getLayers():null);k||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()},k),this.tween=new d(N,function(A){g._tweenFunc(A)},m,0,1,_*1e3,S),this._addListeners(),f.attrs[b]||(f.attrs[b]={}),f.attrs[b][this._id]||(f.attrs[b][this._id]={}),f.tweens[b]||(f.tweens[b]={});for(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,b=v._id,_,m,S,N,k,A,R,z;if(S=f.tweens[b][p],S&&delete f.attrs[b][S][p],_=v.getAttr(p),t.Util._isArray(g))if(m=[],k=Math.max(g.length,_.length),p==="points"&&g.length!==_.length&&(g.length>_.length?(R=_,_=t.Util._prepareArrayForTween(_,g,v.closed())):(A=g,g=t.Util._prepareArrayForTween(g,_,v.closed()))),p.indexOf("fill")===0)for(N=0;N<k;N++)if(N%2===0)m.push(g[N]-_[N]);else{var B=t.Util.colorToRGBA(_[N]);z=t.Util.colorToRGBA(g[N]),_[N]=B,m.push({r:z.r-B.r,g:z.g-B.g,b:z.b-B.b,a:z.a-B.a})}else for(N=0;N<k;N++)m.push(g[N]-_[N]);else u.indexOf(p)!==-1?(_=t.Util.colorToRGBA(_),z=t.Util.colorToRGBA(g),m={r:z.r-_.r,g:z.g-_.g,b:z.b-_.b,a:z.a-_.a}):m=g-_;f.attrs[b][this._id][p]={start:_,diff:m,end:g,trueEnd:A,trueStart:R},f.tweens[b][p]=this._id}_tweenFunc(p){var g=this.node,v=f.attrs[g._id][this._id],b,_,m,S,N,k,A,R;for(b in v){if(_=v[b],m=_.start,S=_.diff,R=_.end,t.Util._isArray(m))if(N=[],A=Math.max(m.length,R.length),b.indexOf("fill")===0)for(k=0;k<A;k++)k%2===0?N.push((m[k]||0)+S[k]*p):N.push("rgba("+Math.round(m[k].r+S[k].r*p)+","+Math.round(m[k].g+S[k].g*p)+","+Math.round(m[k].b+S[k].b*p)+","+(m[k].a+S[k].a*p)+")");else for(k=0;k<A;k++)N.push((m[k]||0)+S[k]*p);else u.indexOf(b)!==-1?N="rgba("+Math.round(m.r+S.r*p)+","+Math.round(m.g+S.g*p)+","+Math.round(m.b+S.b*p)+","+(m.a+S.a*p)+")":N=m+S*p;g.setAttr(b,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],b;this.pause();for(b in v)delete f.tweens[p][b];delete f.attrs[p][g]}}e.Tween=f,f.attrs={},f.tweens={},n.Node.prototype.to=function(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 b=1.70158;return g*(h/=v)*h*((b+1)*h-b)+p},BackEaseOut(h,p,g,v){var b=1.70158;return g*((h=h/v-1)*h*((b+1)*h+b)+1)+p},BackEaseInOut(h,p,g,v){var b=1.70158;return(h/=v/2)<1?g/2*(h*h*(((b*=1.525)+1)*h-b))+p:g/2*((h-=2)*h*(((b*=1.525)+1)*h+b)+2)+p},ElasticEaseIn(h,p,g,v,b,_){var m=0;return h===0?p:(h/=v)===1?p+g:(_||(_=v*.3),!b||b<Math.abs(g)?(b=g,m=_/4):m=_/(2*Math.PI)*Math.asin(g/b),-(b*Math.pow(2,10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/_))+p)},ElasticEaseOut(h,p,g,v,b,_){var m=0;return h===0?p:(h/=v)===1?p+g:(_||(_=v*.3),!b||b<Math.abs(g)?(b=g,m=_/4):m=_/(2*Math.PI)*Math.asin(g/b),b*Math.pow(2,-10*h)*Math.sin((h*v-m)*(2*Math.PI)/_)+g+p)},ElasticEaseInOut(h,p,g,v,b,_){var m=0;return h===0?p:(h/=v/2)===2?p+g:(_||(_=v*(.3*1.5)),!b||b<Math.abs(g)?(b=g,m=_/4):m=_/(2*Math.PI)*Math.asin(g/b),h<1?-.5*(b*Math.pow(2,10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/_))+p:b*Math.pow(2,-10*(h-=1))*Math.sin((h*v-m)*(2*Math.PI)/_)*.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}}})($p);const FR=an($p),MR=Jt({__proto__:null,default:FR},[$p]),LR=Wt(MR);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=ve,r=rr,n=lr,i=hu,o=gR,s=d2,a=AR,c=bp,l=cp,u=xr,d=Sp,f=LR,h=zb,p=ou;e.Konva=r.Util._assign(t.Konva,{Util:r.Util,Transform:r.Transform,Node:n.Node,Container:i.Container,Stage:o.Stage,stages:o.stages,Layer:s.Layer,FastLayer:a.FastLayer,Group:c.Group,DD:l.DD,Shape:u.Shape,shapes:u.shapes,Animation:d.Animation,Tween:f.Tween,Easings:f.Easings,Context:h.Context,Canvas:p.Canvas}),e.default=e.Konva})(ip);const UR=an(ip),zR=Jt({__proto__:null,default:UR},[ip]),GR=Wt(zR);var za={};Object.defineProperty(za,"__esModule",{value:!0});var v2=za.Arc=void 0;const fu=me,VR=xr,y2=ve,pu=ye,BR=ve;let Ci=class extends VR.Shape{_sceneFunc(t){var r=y2.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=y2.Konva.getAngle(n?360-this.angle():this.angle()),o=Math.cos(Math.min(i,Math.PI)),s=1,a=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),l=o*(o>0?t:r),u=s*r,d=a*(a>0?t:r),f=c*(c>0?r:t);return{x:l,y:n?-1*f:d,width:u-l,height:f-d}}};v2=za.Arc=Ci,Ci.prototype._centroid=!0,Ci.prototype.className="Arc",Ci.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,BR._registerNode)(Ci),fu.Factory.addGetterSetter(Ci,"innerRadius",0,(0,pu.getNumberValidator)()),fu.Factory.addGetterSetter(Ci,"outerRadius",0,(0,pu.getNumberValidator)()),fu.Factory.addGetterSetter(Ci,"angle",0,(0,pu.getNumberValidator)()),fu.Factory.addGetterSetter(Ci,"clockwise",!1,(0,pu.getBooleanValidator)());const HR=Jt({__proto__:null,get Arc(){return v2},default:za},[za]),qR=Wt(HR);var Ga={},Va={};Object.defineProperty(Va,"__esModule",{value:!0});var _2=Va.Line=void 0;const mu=me,KR=xr,b2=ye,YR=ve;function kp(e,t,r,n,i,o,s){var a=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),c=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-n,2)),l=s*a/(a+c),u=s*c/(a+c),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 w2(e,t){var r=e.length,n=[],i,o;for(i=2;i<r-2;i+=2)o=kp(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 Xi=class extends KR.Shape{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var r=this.points(),n=r.length,i=this.tension(),o=this.closed(),s=this.bezier(),a,c,l;if(n){if(t.beginPath(),t.moveTo(r[0],r[1]),i!==0&&n>4){for(a=this.getTensionPoints(),c=a.length,l=o?0:4,o||t.quadraticCurveTo(a[0],a[1],a[2],a[3]);l<c-2;)t.bezierCurveTo(a[l++],a[l++],a[l++],a[l++],a[l++],a[l++]);o||t.quadraticCurveTo(a[c-2],a[c-1],r[n-2],r[n-1])}else if(s)for(l=2;l<n;)t.bezierCurveTo(r[l++],r[l++],r[l++],r[l++],r[l++],r[l++]);else for(l=2;l<n;l+=2)t.lineTo(r[l],r[l+1]);o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():w2(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),r=t.length,n=this.tension(),i=kp(t[r-2],t[r-1],t[0],t[1],t[2],t[3],n),o=kp(t[r-4],t[r-3],t[r-2],t[r-1],t[0],t[1],n),s=w2(t,n),a=[i[2],i[3]].concat(s).concat([o[0],o[1],t[r-2],t[r-1],o[2],o[3],i[0],i[1],t[0],t[1]]);return a}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);return{x:r,y:i,width:n-r,height:o-i}}};_2=Va.Line=Xi,Xi.prototype.className="Line",Xi.prototype._attrsAffectingSize=["points","bezier","tension"],(0,YR._registerNode)(Xi),mu.Factory.addGetterSetter(Xi,"closed",!1),mu.Factory.addGetterSetter(Xi,"bezier",!1),mu.Factory.addGetterSetter(Xi,"tension",0,(0,b2.getNumberValidator)()),mu.Factory.addGetterSetter(Xi,"points",[],(0,b2.getNumberArrayValidator)());const XR=Jt({__proto__:null,get Line(){return _2},default:Va},[Va]),x2=Wt(XR);var Ba={},Ep={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(s,a,c)=>{let l,u,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(s,a,d);return l*u};e.getCubicArcLength=t;const r=(s,a,c)=>{c===void 0&&(c=1);const l=s[0]-2*s[1]+s[2],u=a[0]-2*a[1]+a[2],d=2*s[1]-2*s[0],f=2*a[1]-2*a[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(s[2]-s[0],2)+Math.pow(a[2]-a[0],2));const v=p/(2*h),b=g/h,_=c+v,m=b-v*v,S=_*_+m>0?Math.sqrt(_*_+m):0,N=v*v+m>0?Math.sqrt(v*v+m):0,k=v+Math.sqrt(v*v+m)!==0?m*Math.log(Math.abs((_+S)/(v+N))):0;return Math.sqrt(h)/2*(_*S-v*N+k)};e.getQuadraticArcLength=r;function n(s,a,c){const l=i(1,c,s),u=i(1,c,a),d=l*l+u*u;return Math.sqrt(d)}const i=(s,a,c)=>{const l=c.length-1;let u,d;if(l===0)return 0;if(s===0){d=0;for(let f=0;f<=l;f++)d+=e.binomialCoefficients[l][f]*Math.pow(1-a,l-f)*Math.pow(a,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(s-1,a,u)}},o=(s,a,c)=>{let l=1,u=s/a,d=(s-c(u))/a,f=0;for(;l>.001;){const h=c(u+d),p=Math.abs(s-h)/a;if(p<l)l=p,u+=d;else{const g=c(u-d),v=Math.abs(s-g)/a;v<l?(l=v,u-=d):d/=2}if(f++,f>500)break}return u};e.t2length=o})(Ep);const JR=an(Ep),WR=Jt({__proto__:null,default:JR},[Ep]),QR=Wt(WR);Object.defineProperty(Ba,"__esModule",{value:!0});var S2=Ba.Path=void 0;const ZR=me,tj=xr,ej=ve,bs=QR;let Ha=class on extends tj.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=on.parsePathData(this.data()),this.pathLength=on.getPathLength(this.dataArray)}_sceneFunc(t){var r=this.dataArray;t.beginPath();for(var n=!1,i=0;i<r.length;i++){var o=r[i].command,s=r[i].points;switch(o){case"L":t.lineTo(s[0],s[1]);break;case"M":t.moveTo(s[0],s[1]);break;case"C":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],c=s[1],l=s[2],u=s[3],d=s[4],f=s[5],h=s[6],p=s[7],g=l>u?l:u,v=l>u?1:l/u,b=l>u?u/l:1;t.translate(a,c),t.rotate(h),t.scale(v,b),t.arc(0,0,g,d,d+f,1-p),t.scale(1/v,1/b),t.rotate(-h),t.translate(-a,-c);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(l){if(l.command==="A"){var u=l.points[4],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=on.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=on.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=on.getPointOnCubicBezier(p,l.start.x,l.start.y,l.points[0],l.points[1],l.points[2],l.points[3],l.points[4],l.points[5]);t.push(g.x,g.y)}else t=t.concat(l.points)});for(var r=t[0],n=t[0],i=t[1],o=t[1],s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],isNaN(s)||(r=Math.min(r,s),n=Math.max(n,s)),isNaN(a)||(i=Math.min(i,a),o=Math.max(o,a));return{x:r,y:i,width:n-r,height:o-i}}getLength(){return this.pathLength}getPointAtLength(t){return on.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,r,n,i){return Math.sqrt((n-t)*(n-t)+(i-r)*(i-r))}static getPathLength(t){let r=0;for(var n=0;n<t.length;++n)r+=t[n].pathLength;return r}static getPointAtLengthOfDataArray(t,r){var n,i=0,o=r.length;if(!o)return null;for(;i<o&&t>r[i].pathLength;)t-=r[i].pathLength,++i;if(i===o)return n=r[i-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[i].points.slice(0,2),{x:n[0],y:n[1]};var s=r[i],a=s.points;switch(s.command){case"L":return on.getPointOnLine(t,s.start.x,s.start.y,a[0],a[1]);case"C":return on.getPointOnCubicBezier((0,bs.t2length)(t,on.getPathLength(r),g=>(0,bs.getCubicArcLength)([s.start.x,a[0],a[2],a[4]],[s.start.y,a[1],a[3],a[5]],g)),s.start.x,s.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return on.getPointOnQuadraticBezier((0,bs.t2length)(t,on.getPathLength(r),g=>(0,bs.getQuadraticArcLength)([s.start.x,a[0],a[2]],[s.start.y,a[1],a[3]],g)),s.start.x,s.start.y,a[0],a[1],a[2],a[3]);case"A":var c=a[0],l=a[1],u=a[2],d=a[3],f=a[4],h=a[5],p=a[6];return f+=h*t/s.pathLength,on.getPointOnEllipticalArc(c,l,u,d,f,p)}return null}static getPointOnLine(t,r,n,i,o,s,a){s===void 0&&(s=r),a===void 0&&(a=n);var c=(o-n)/(i-r+1e-8),l=Math.sqrt(t*t/(1+c*c));i<r&&(l*=-1);var u=c*l,d;if(i===r)d={x:s,y:a+u};else if((a-n)/(s-r+1e-8)===c)d={x:s+l,y:a+u};else{var f,h,p=this.getLineLength(r,n,i,o),g=(s-r)*(i-r)+(a-n)*(o-n);g=g/(p*p),f=r+g*(i-r),h=n+g*(o-n);var v=this.getLineLength(s,a,f,h),b=Math.sqrt(t*t-v*v);l=Math.sqrt(b*b/(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,s,a,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)+s*d(t)+i*f(t)+r*h(t),g=l*u(t)+a*d(t)+o*f(t)+n*h(t);return{x:p,y:g}}static getPointOnQuadraticBezier(t,r,n,i,o,s,a){function c(h){return h*h}function l(h){return 2*h*(1-h)}function u(h){return(1-h)*(1-h)}var d=s*c(t)+i*l(t)+r*u(t),f=a*c(t)+o*l(t)+n*u(t);return{x:d,y:f}}static getPointOnEllipticalArc(t,r,n,i,o,s){var a=Math.cos(s),c=Math.sin(s),l={x:n*Math.cos(o),y:i*Math.sin(o)};return{x:t+(l.x*a-l.y*c),y:r+(l.x*c+l.y*a)}}static parsePathData(t){if(!t)return[];var r=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];r=r.replace(new RegExp(" ","g"),",");for(var i=0;i<n.length;i++)r=r.replace(new RegExp(n[i],"g"),"|"+n[i]);var o=r.split("|"),s=[],a=[],c=0,l=0,u=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,d;for(i=1;i<o.length;i++){var f=o[i],h=f.charAt(0);for(f=f.slice(1),a.length=0;d=u.exec(f);)a.push(d[0]);for(var p=[],g=0,v=a.length;g<v;g++){if(a[g]==="00"){p.push(0,0);continue}var b=parseFloat(a[g]);isNaN(b)?p.push(0):p.push(b)}for(;p.length>0&&!isNaN(p[0]);){var _="",m=[],S=c,N=l,k,A,R,z,B,Y,W,nt,rt,lt;switch(h){case"l":c+=p.shift(),l+=p.shift(),_="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,_="M",s.length>2&&s[s.length-1].command==="z"){for(var $t=s.length-2;$t>=0;$t--)if(s[$t].command==="M"){c=s[$t].points[0]+xt,l=s[$t].points[1]+Ct;break}}m.push(c,l),h="l";break;case"M":c=p.shift(),l=p.shift(),_="M",m.push(c,l),h="L";break;case"h":c+=p.shift(),_="L",m.push(c,l);break;case"H":c=p.shift(),_="L",m.push(c,l);break;case"v":l+=p.shift(),_="L",m.push(c,l);break;case"V":l=p.shift(),_="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(),_="C",m.push(c,l);break;case"S":A=c,R=l,k=s[s.length-1],k.command==="C"&&(A=c+(c-k.points[2]),R=l+(l-k.points[3])),m.push(A,R,p.shift(),p.shift()),c=p.shift(),l=p.shift(),_="C",m.push(c,l);break;case"s":A=c,R=l,k=s[s.length-1],k.command==="C"&&(A=c+(c-k.points[2]),R=l+(l-k.points[3])),m.push(A,R,c+p.shift(),l+p.shift()),c+=p.shift(),l+=p.shift(),_="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(),_="Q",m.push(c,l);break;case"T":A=c,R=l,k=s[s.length-1],k.command==="Q"&&(A=c+(c-k.points[0]),R=l+(l-k.points[1])),c=p.shift(),l=p.shift(),_="Q",m.push(A,R,c,l);break;case"t":A=c,R=l,k=s[s.length-1],k.command==="Q"&&(A=c+(c-k.points[0]),R=l+(l-k.points[1])),c+=p.shift(),l+=p.shift(),_="Q",m.push(A,R,c,l);break;case"A":z=p.shift(),B=p.shift(),Y=p.shift(),W=p.shift(),nt=p.shift(),rt=c,lt=l,c=p.shift(),l=p.shift(),_="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,W,nt,z,B,Y);break;case"a":z=p.shift(),B=p.shift(),Y=p.shift(),W=p.shift(),nt=p.shift(),rt=c,lt=l,c+=p.shift(),l+=p.shift(),_="A",m=this.convertEndpointToCenterParameterization(rt,lt,c,l,W,nt,z,B,Y);break}s.push({command:_||h,points:m,start:{x:S,y:N},pathLength:this.calcLength(S,N,_||h,m)})}(h==="z"||h==="Z")&&s.push({command:"z",points:[],start:void 0,pathLength:0})}return s}static calcLength(t,r,n,i){var o,s,a,c,l=on;switch(n){case"L":return l.getLineLength(t,r,i[0],i[1]);case"C":return(0,bs.getCubicArcLength)([t,i[0],i[2],i[4]],[r,i[1],i[3],i[5]],1);case"Q":return(0,bs.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)),s=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),d<0)for(c=u-h;c>f;c-=h)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(c=u+h;c<f;c+=h)a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=l.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],f,0),o+=l.getLineLength(s.x,s.y,a.x,a.y),o}return 0}static convertEndpointToCenterParameterization(t,r,n,i,o,s,a,c,l){var u=l*(Math.PI/180),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/(a*a)+f*f/(c*c);h>1&&(a*=Math.sqrt(h),c*=Math.sqrt(h));var p=Math.sqrt((a*a*(c*c)-a*a*(f*f)-c*c*(d*d))/(a*a*(f*f)+c*c*(d*d)));o===s&&(p*=-1),isNaN(p)&&(p=0);var g=p*a*f/c,v=p*-c*d/a,b=(t+n)/2+Math.cos(u)*g-Math.sin(u)*v,_=(r+i)/2+Math.sin(u)*g+Math.cos(u)*v,m=function(B){return Math.sqrt(B[0]*B[0]+B[1]*B[1])},S=function(B,Y){return(B[0]*Y[0]+B[1]*Y[1])/(m(B)*m(Y))},N=function(B,Y){return(B[0]*Y[1]<B[1]*Y[0]?-1:1)*Math.acos(S(B,Y))},k=N([1,0],[(d-g)/a,(f-v)/c]),A=[(d-g)/a,(f-v)/c],R=[(-1*d-g)/a,(-1*f-v)/c],z=N(A,R);return S(A,R)<=-1&&(z=Math.PI),S(A,R)>=1&&(z=0),s===0&&z>0&&(z=z-2*Math.PI),s===1&&z<0&&(z=z+2*Math.PI),[b,_,a,c,k,z,u,s]}};S2=Ba.Path=Ha,Ha.prototype.className="Path",Ha.prototype._attrsAffectingSize=["data"],(0,ej._registerNode)(Ha),ZR.Factory.addGetterSetter(Ha,"data");const rj=Jt({__proto__:null,get Path(){return S2},default:Ba},[Ba]),Cp=Wt(rj);Object.defineProperty(Ga,"__esModule",{value:!0});var $2=Ga.Arrow=void 0;const gu=me,nj=x2,k2=ye,ij=ve,E2=Cp;let No=class extends nj.Line{_sceneFunc(t){super._sceneFunc(t);var r=Math.PI*2,n=this.points(),i=n,o=this.tension()!==0&&n.length>4;o&&(i=this.getTensionPoints());var s=this.pointerLength(),a=n.length,c,l;if(o){const f=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],n[a-2],n[a-1]],h=E2.Path.calcLength(i[i.length-4],i[i.length-3],"C",f),p=E2.Path.getPointOnQuadraticBezier(Math.min(1,1-s/h),f[0],f[1],f[2],f[3],f[4],f[5]);c=n[a-2]-p.x,l=n[a-1]-p.y}else c=n[a-2]-n[a-4],l=n[a-1]-n[a-3];var u=(Math.atan2(l,c)+r)%r,d=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[a-2],n[a-1]),t.rotate(u),t.moveTo(0,0),t.lineTo(-s,d/2),t.lineTo(-s,-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(-s,d/2),t.lineTo(-s,-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}}};$2=Ga.Arrow=No,No.prototype.className="Arrow",(0,ij._registerNode)(No),gu.Factory.addGetterSetter(No,"pointerLength",10,(0,k2.getNumberValidator)()),gu.Factory.addGetterSetter(No,"pointerWidth",10,(0,k2.getNumberValidator)()),gu.Factory.addGetterSetter(No,"pointerAtBeginning",!1),gu.Factory.addGetterSetter(No,"pointerAtEnding",!0);const oj=Jt({__proto__:null,get Arrow(){return $2},default:Ga},[Ga]),sj=Wt(oj);var qa={};Object.defineProperty(qa,"__esModule",{value:!0});var C2=qa.Circle=void 0;const aj=me,lj=xr,cj=ye,uj=ve;class ws extends lj.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)}}C2=qa.Circle=ws,ws.prototype._centroid=!0,ws.prototype.className="Circle",ws.prototype._attrsAffectingSize=["radius"],(0,uj._registerNode)(ws),aj.Factory.addGetterSetter(ws,"radius",0,(0,cj.getNumberValidator)());const hj=Jt({__proto__:null,get Circle(){return C2},default:qa},[qa]),dj=Wt(hj);var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});var P2=Ka.Ellipse=void 0;const Pp=me,fj=xr,T2=ye,pj=ve;let Ji=class extends fj.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)}};P2=Ka.Ellipse=Ji,Ji.prototype.className="Ellipse",Ji.prototype._centroid=!0,Ji.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,pj._registerNode)(Ji),Pp.Factory.addComponentsGetterSetter(Ji,"radius",["x","y"]),Pp.Factory.addGetterSetter(Ji,"radiusX",0,(0,T2.getNumberValidator)()),Pp.Factory.addGetterSetter(Ji,"radiusY",0,(0,T2.getNumberValidator)());const mj=Jt({__proto__:null,get Ellipse(){return P2},default:Ka},[Ka]),gj=Wt(mj);var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});var O2=Ya.Image=void 0;const Tp=rr,Ro=me,vj=xr,yj=ve,Xa=ye;let ri=class I$ extends vj.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let s;if(o){const a=this.attrs.cropWidth,c=this.attrs.cropHeight;a&&c?s=[o,this.cropX(),this.cropY(),a,c,0,0,r,n]:s=[o,0,0,r,n]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?Tp.Util.drawRoundedRectPath(t,r,n,i):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),o&&(i&&t.clip(),t.drawImage.apply(t,s))}_hitFunc(t){var r=this.width(),n=this.height(),i=this.cornerRadius();t.beginPath(),i?Tp.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=Tp.Util.createImageElement();i.onload=function(){var o=new I$({image:i});r(o)},i.onerror=n,i.crossOrigin="Anonymous",i.src=t}};O2=Ya.Image=ri,ri.prototype.className="Image",(0,yj._registerNode)(ri),Ro.Factory.addGetterSetter(ri,"cornerRadius",0,(0,Xa.getNumberOrArrayOfNumbersValidator)(4)),Ro.Factory.addGetterSetter(ri,"image"),Ro.Factory.addComponentsGetterSetter(ri,"crop",["x","y","width","height"]),Ro.Factory.addGetterSetter(ri,"cropX",0,(0,Xa.getNumberValidator)()),Ro.Factory.addGetterSetter(ri,"cropY",0,(0,Xa.getNumberValidator)()),Ro.Factory.addGetterSetter(ri,"cropWidth",0,(0,Xa.getNumberValidator)()),Ro.Factory.addGetterSetter(ri,"cropHeight",0,(0,Xa.getNumberValidator)());const _j=Jt({__proto__:null,get Image(){return O2},default:Ya},[Ya]),bj=Wt(_j);var jo={};Object.defineProperty(jo,"__esModule",{value:!0});var A2=jo.Tag=j2=jo.Label=void 0;const vu=me,wj=xr,xj=bp,Op=ye,N2=ve;var R2=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Sj="Change.konva",$j="none",Ap="up",Np="right",Rp="down",jp="left",kj=R2.length;let Dp=class extends xj.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<kj;n++)t.on(R2[n]+Sj,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),r=this.getTag(),n,i,o,s,a,c,l;if(t&&r){switch(n=t.width(),i=t.height(),o=r.pointerDirection(),s=r.pointerWidth(),l=r.pointerHeight(),a=0,c=0,o){case Ap:a=n/2,c=-1*l;break;case Np:a=n+s,c=i/2;break;case Rp:a=n/2,c=i+l;break;case jp:a=-1*s,c=i/2;break}r.setAttrs({x:-1*a,y:-1*c,width:n,height:i}),t.setAttrs({x:-1*a,y:-1*c})}}};var j2=jo.Label=Dp;Dp.prototype.className="Label",(0,N2._registerNode)(Dp);let Do=class extends wj.Shape{_sceneFunc(t){var r=this.width(),n=this.height(),i=this.pointerDirection(),o=this.pointerWidth(),s=this.pointerHeight(),a=this.cornerRadius();let c=0,l=0,u=0,d=0;typeof a=="number"?c=l=u=d=Math.min(a,r/2,n/2):(c=Math.min(a[0]||0,r/2,n/2),l=Math.min(a[1]||0,r/2,n/2),d=Math.min(a[2]||0,r/2,n/2),u=Math.min(a[3]||0,r/2,n/2)),t.beginPath(),t.moveTo(c,0),i===Ap&&(t.lineTo((r-o)/2,0),t.lineTo(r/2,-1*s),t.lineTo((r+o)/2,0)),t.lineTo(r-l,0),t.arc(r-l,l,l,Math.PI*3/2,0,!1),i===Np&&(t.lineTo(r,(n-s)/2),t.lineTo(r+o,n/2),t.lineTo(r,(n+s)/2)),t.lineTo(r,n-d),t.arc(r-d,n-d,d,0,Math.PI/2,!1),i===Rp&&(t.lineTo((r+o)/2,n),t.lineTo(r/2,n+s),t.lineTo((r-o)/2,n)),t.lineTo(u,n),t.arc(u,n-u,u,Math.PI/2,Math.PI,!1),i===jp&&(t.lineTo(0,(n+s)/2),t.lineTo(-1*o,n/2),t.lineTo(0,(n-s)/2)),t.lineTo(0,c),t.arc(c,c,c,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,r=0,n=this.pointerWidth(),i=this.pointerHeight(),o=this.pointerDirection(),s=this.width(),a=this.height();return o===Ap?(r-=i,a+=i):o===Rp?a+=i:o===jp?(t-=n*1.5,s+=n):o===Np&&(s+=n*1.5),{x:t,y:r,width:s,height:a}}};A2=jo.Tag=Do,Do.prototype.className="Tag",(0,N2._registerNode)(Do),vu.Factory.addGetterSetter(Do,"pointerDirection",$j),vu.Factory.addGetterSetter(Do,"pointerWidth",0,(0,Op.getNumberValidator)()),vu.Factory.addGetterSetter(Do,"pointerHeight",0,(0,Op.getNumberValidator)()),vu.Factory.addGetterSetter(Do,"cornerRadius",0,(0,Op.getNumberOrArrayOfNumbersValidator)(4));const Ej=Jt({__proto__:null,get Label(){return j2},get Tag(){return A2},default:jo},[jo]),Cj=Wt(Ej);var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});var D2=Ja.Rect=void 0;const Pj=me,Tj=xr,Oj=ve,Aj=rr,Nj=ye;class yu extends Tj.Shape{_sceneFunc(t){var r=this.cornerRadius(),n=this.width(),i=this.height();t.beginPath(),r?Aj.Util.drawRoundedRectPath(t,n,i,r):t.rect(0,0,n,i),t.closePath(),t.fillStrokeShape(this)}}D2=Ja.Rect=yu,yu.prototype.className="Rect",(0,Oj._registerNode)(yu),Pj.Factory.addGetterSetter(yu,"cornerRadius",0,(0,Nj.getNumberOrArrayOfNumbersValidator)(4));const Rj=Jt({__proto__:null,get Rect(){return D2},default:Ja},[Ja]),I2=Wt(Rj);var Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});var F2=Wa.RegularPolygon=void 0;const M2=me,jj=xr,L2=ye,Dj=ve;let Io=class extends jj.Shape{_sceneFunc(t){const r=this._getPoints();t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var n=1;n<r.length;n++)t.lineTo(r[n].x,r[n].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,r=this.attrs.radius||0,n=[];for(var i=0;i<t;i++)n.push({x:r*Math.sin(i*2*Math.PI/t),y:-1*r*Math.cos(i*2*Math.PI/t)});return n}getSelfRect(){const t=this._getPoints();var r=t[0].x,n=t[0].y,i=t[0].x,o=t[0].y;return t.forEach(s=>{r=Math.min(r,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),o=Math.max(o,s.y)}),{x:r,y:i,width:n-r,height:o-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}};F2=Wa.RegularPolygon=Io,Io.prototype.className="RegularPolygon",Io.prototype._centroid=!0,Io.prototype._attrsAffectingSize=["radius"],(0,Dj._registerNode)(Io),M2.Factory.addGetterSetter(Io,"radius",0,(0,L2.getNumberValidator)()),M2.Factory.addGetterSetter(Io,"sides",0,(0,L2.getNumberValidator)());const Ij=Jt({__proto__:null,get RegularPolygon(){return F2},default:Wa},[Wa]),Fj=Wt(Ij);var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0});var U2=Qa.Ring=void 0;const z2=me,Mj=xr,G2=ye,Lj=ve;var V2=Math.PI*2;let Fo=class extends Mj.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,V2,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),V2,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)}};U2=Qa.Ring=Fo,Fo.prototype.className="Ring",Fo.prototype._centroid=!0,Fo.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,Lj._registerNode)(Fo),z2.Factory.addGetterSetter(Fo,"innerRadius",0,(0,G2.getNumberValidator)()),z2.Factory.addGetterSetter(Fo,"outerRadius",0,(0,G2.getNumberValidator)());const Uj=Jt({__proto__:null,get Ring(){return U2},default:Qa},[Qa]),zj=Wt(Uj);var Za={};Object.defineProperty(Za,"__esModule",{value:!0});var B2=Za.Sprite=void 0;const Mo=me,Gj=xr,Vj=Sp,H2=ye,Bj=ve;let ni=class extends Gj.Shape{constructor(t){super(t),this._updated=!0,this.anim=new Vj.Animation(()=>{var r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+0],c=o[i+1],l=o[i+2],u=o[i+3],d=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),d)if(s){var f=s[r],h=n*2;t.drawImage(d,a,c,l,u,f[h+0],f[h+1],l,u)}else t.drawImage(d,a,c,l,u,0,0,l,u)}_hitFunc(t){var r=this.animation(),n=this.frameIndex(),i=n*4,o=this.animations()[r],s=this.frameOffsets(),a=o[i+2],c=o[i+3];if(t.beginPath(),s){var l=s[r],u=n*2;t.rect(l[u+0],l[u+1],a,c)}else t.rect(0,0,a,c);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),r=this.animation(),n=this.animations(),i=n[r],o=i.length/4;t<o-1?this.frameIndex(t+1):this.frameIndex(0)}};B2=Za.Sprite=ni,ni.prototype.className="Sprite",(0,Bj._registerNode)(ni),Mo.Factory.addGetterSetter(ni,"animation"),Mo.Factory.addGetterSetter(ni,"animations"),Mo.Factory.addGetterSetter(ni,"frameOffsets"),Mo.Factory.addGetterSetter(ni,"image"),Mo.Factory.addGetterSetter(ni,"frameIndex",0,(0,H2.getNumberValidator)()),Mo.Factory.addGetterSetter(ni,"frameRate",17,(0,H2.getNumberValidator)()),Mo.Factory.backCompat(ni,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});const Hj=Jt({__proto__:null,get Sprite(){return B2},default:Za},[Za]),qj=Wt(Hj);var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var q2=tl.Star=void 0;const Ip=me,Kj=xr,Fp=ye,Yj=ve;let Wi=class extends Kj.Shape{_sceneFunc(t){var r=this.innerRadius(),n=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var o=1;o<i*2;o++){var s=o%2===0?n:r,a=s*Math.sin(o*Math.PI/i),c=-1*s*Math.cos(o*Math.PI/i);t.lineTo(a,c)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}};q2=tl.Star=Wi,Wi.prototype.className="Star",Wi.prototype._centroid=!0,Wi.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,Yj._registerNode)(Wi),Ip.Factory.addGetterSetter(Wi,"numPoints",5,(0,Fp.getNumberValidator)()),Ip.Factory.addGetterSetter(Wi,"innerRadius",0,(0,Fp.getNumberValidator)()),Ip.Factory.addGetterSetter(Wi,"outerRadius",0,(0,Fp.getNumberValidator)());const Xj=Jt({__proto__:null,get Star(){return q2},default:tl},[tl]),Jj=Wt(Xj);var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});var K2=Lo.Text=X2=Lo.stringToArray=void 0;const Mp=rr,Ar=me,Wj=xr,Qi=ye,Qj=ve;function Y2(e){return Array.from(e)}var X2=Lo.stringToArray=Y2,xs="auto",Zj="center",J2="inherit",el="justify",tD="Change.konva",eD="2d",W2="-",Q2="left",rD="text",nD="Text",iD="top",oD="bottom",Z2="middle",tw="normal",sD="px ",_u=" ",aD="right",ew="rtl",lD="word",cD="char",rw="none",Lp="…",nw=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],uD=nw.length;function hD(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 Up;function zp(){return Up||(Up=Mp.Util.createCanvasElement().getContext(eD),Up)}function dD(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function fD(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function pD(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class ir extends Wj.Shape{constructor(t){super(pD(t)),this._partialTextX=0,this._partialTextY=0;for(var r=0;r<uD;r++)this.on(nw[r]+tD,this._setTextData);this._setTextData()}_sceneFunc(t){var r=this.textArr,n=r.length;if(this.text()){var i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,a=this.verticalAlign(),c=this.direction(),l=0,u=this.align(),d=this.getWidth(),f=this.letterSpacing(),h=this.fill(),p=this.textDecoration(),g=p.indexOf("underline")!==-1,v=p.indexOf("line-through")!==-1,b;c=c===J2?t.direction:c;var _=0,_=s/2,m=0,S=0;for(c===ew&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",Z2),t.setAttr("textAlign",Q2),a===Z2?l=(this.getHeight()-n*s-i*2)/2:a===oD&&(l=this.getHeight()-n*s-i*2),t.translate(i,l+i),b=0;b<n;b++){var m=0,S=0,N=r[b],k=N.text,A=N.width,R=N.lastInParagraph,z,B,Y;if(t.save(),u===aD?m+=d-A-i*2:u===Zj&&(m+=(d-A-i*2)/2),g){t.save(),t.beginPath(),t.moveTo(m,_+S+Math.round(o/2)),z=k.split(" ").length-1,B=z===0,Y=u===el&&!R?d-i*2:A,t.lineTo(m+Math.round(Y),_+S+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,_+S),z=k.split(" ").length-1,B=z===0,Y=u===el&&R&&!B?d-i*2:A,t.lineTo(m+Math.round(Y),_+S),t.lineWidth=o/15;const Ct=this._getLinearGradient();t.strokeStyle=Ct||h,t.stroke(),t.restore()}if(c!==ew&&(f!==0||u===el)){z=k.split(" ").length-1;for(var W=Y2(k),nt=0;nt<W.length;nt++){var rt=W[nt];rt===" "&&!R&&u===el&&(m+=(d-i*2-A)/z),this._partialTextX=m,this._partialTextY=_+S,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=_+S,this._partialText=k,t.fillStrokeShape(this);t.restore(),n>1&&(_+=s)}}}_hitFunc(t){var r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){var r=Mp.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(rD,r),this}getWidth(){var t=this.attrs.width===xs||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===xs||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 Mp.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=zp(),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()+_u+this.fontVariant()+_u+(this.fontSize()+sD)+hD(this.fontFamily())}_addTextLine(t){this.align()===el&&(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 zp().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,s=this.attrs.height,a=o!==xs&&o!==void 0,c=s!==xs&&s!==void 0,l=this.padding(),u=o-l*2,d=s-l*2,f=0,h=this.wrap(),p=h!==rw,g=h!==cD&&p,v=this.ellipsis();this.textArr=[],zp().font=this._getContextFont();for(var b=v?this._getTextWidth(Lp):0,_=0,m=t.length;_<m;++_){var S=t[_],N=this._getTextWidth(S);if(a&&N>u)for(;S.length>0;){for(var k=0,A=S.length,R="",z=0;k<A;){var B=k+A>>>1,Y=S.slice(0,B+1),W=this._getTextWidth(Y)+b;W<=u?(k=B+1,R=Y,z=W):A=B}if(R){if(g){var nt,rt=S[R.length],lt=rt===_u||rt===W2;lt&&z<=u?nt=R.length:nt=Math.max(R.lastIndexOf(_u),R.lastIndexOf(W2))+1,nt>0&&(k=nt,R=R.slice(0,k),z=this._getTextWidth(R))}R=R.trimRight(),this._addTextLine(R),n=Math.max(n,z),f+=i;var xt=this._shouldHandleEllipsis(f);if(xt){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(k),S=S.trimLeft(),S.length>0&&(N=this._getTextWidth(S),N<=u)){this._addTextLine(S),f+=i,n=Math.max(n,N);break}}else break}else this._addTextLine(S),f+=i,n=Math.max(n,N),this._shouldHandleEllipsis(f)&&_<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!==xs&&i!==void 0,s=this.padding(),a=i-s*2,c=this.wrap(),l=c!==rw;return!l||o&&t+n>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,r=t!==xs&&t!==void 0,n=this.padding(),i=t-n*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(r){var a=this._getTextWidth(s.text+Lp)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Lp)}}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()}}K2=Lo.Text=ir,ir.prototype._fillFunc=dD,ir.prototype._strokeFunc=fD,ir.prototype.className=nD,ir.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,Qj._registerNode)(ir),Ar.Factory.overWriteSetter(ir,"width",(0,Qi.getNumberOrAutoValidator)()),Ar.Factory.overWriteSetter(ir,"height",(0,Qi.getNumberOrAutoValidator)()),Ar.Factory.addGetterSetter(ir,"direction",J2),Ar.Factory.addGetterSetter(ir,"fontFamily","Arial"),Ar.Factory.addGetterSetter(ir,"fontSize",12,(0,Qi.getNumberValidator)()),Ar.Factory.addGetterSetter(ir,"fontStyle",tw),Ar.Factory.addGetterSetter(ir,"fontVariant",tw),Ar.Factory.addGetterSetter(ir,"padding",0,(0,Qi.getNumberValidator)()),Ar.Factory.addGetterSetter(ir,"align",Q2),Ar.Factory.addGetterSetter(ir,"verticalAlign",iD),Ar.Factory.addGetterSetter(ir,"lineHeight",1,(0,Qi.getNumberValidator)()),Ar.Factory.addGetterSetter(ir,"wrap",lD),Ar.Factory.addGetterSetter(ir,"ellipsis",!1,(0,Qi.getBooleanValidator)()),Ar.Factory.addGetterSetter(ir,"letterSpacing",0,(0,Qi.getNumberValidator)()),Ar.Factory.addGetterSetter(ir,"text","",(0,Qi.getStringValidator)()),Ar.Factory.addGetterSetter(ir,"textDecoration","");const mD=Jt({__proto__:null,get Text(){return K2},default:Lo,get stringToArray(){return X2}},[Lo]),iw=Wt(mD);var rl={};Object.defineProperty(rl,"__esModule",{value:!0});var ow=rl.TextPath=void 0;const Gp=rr,In=me,gD=xr,nl=Cp,Vp=iw,sw=ye,vD=ve;var yD="",aw="normal";function lw(e){e.fillText(this.partialText,0,0)}function cw(e){e.strokeText(this.partialText,0,0)}let gr=class extends gD.Shape{constructor(t){super(t),this.dummyCanvas=Gp.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 nl.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const r=this.pathLength;return t-1>r?null:nl.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=nl.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var r=this.textDecoration(),n=this.fill(),i=this.fontSize(),o=this.glyphInfo;r==="underline"&&t.beginPath();for(var s=0;s<o.length;s++){t.save();var a=o[s].p0;t.translate(a.x,a.y),t.rotate(o[s].rotation),this.partialText=o[s].text,t.fillStrokeShape(this),r==="underline"&&(s===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}r==="underline"&&(t.strokeStyle=n,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var r=this.glyphInfo;if(r.length>=1){var n=r[0].p0;t.moveTo(n.x,n.y)}for(var i=0;i<r.length;i++){var o=r[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return Gp.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 Vp.Text.prototype.setText.call(this,t)}_getContextFont(){return Vp.Text.prototype._getContextFont.call(this)}_getTextSize(t){var r=this.dummyCanvas,n=r.getContext("2d");n.save(),n.font=this._getContextFont();var i=n.measureText(t);return n.restore(),{width:i.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const{width:t,height:r}=this._getTextSize(this.attrs.text);if(this.textWidth=t,this.textHeight=r,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),i=this.align(),o=this.kerningFunc(),s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let a=0;i==="center"&&(a=Math.max(0,this.pathLength/2-s/2)),i==="right"&&(a=Math.max(0,this.pathLength-s));const c=(0,Vp.stringToArray)(this.text());let l=a;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 _=this.text().split(" ").length-1;f+=(this.pathLength-s)/_}const h=this._getPointAtLength(l+f);if(!h)return;const p=nl.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=nl.Path.getPointOnLine(g+p/2,d.x,d.y,h.x,h.y),b=Math.atan2(h.y-d.y,h.x-d.x);this.glyphInfo.push({transposeX:v.x,transposeY:v.y,text:c[u],rotation:b,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,s,a,c=0;c<t.length/2;c++)s=t[c*2],a=t[c*2+1],r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,a),o=Math.max(o,a);var l=this.fontSize();return{x:r-l/2,y:i-l/2,width:n-r+l,height:o-i+l}}destroy(){return Gp.Util.releaseCanvas(this.dummyCanvas),super.destroy()}};ow=rl.TextPath=gr,gr.prototype._fillFunc=lw,gr.prototype._strokeFunc=cw,gr.prototype._fillFuncHit=lw,gr.prototype._strokeFuncHit=cw,gr.prototype.className="TextPath",gr.prototype._attrsAffectingSize=["text","fontSize","data"],(0,vD._registerNode)(gr),In.Factory.addGetterSetter(gr,"data"),In.Factory.addGetterSetter(gr,"fontFamily","Arial"),In.Factory.addGetterSetter(gr,"fontSize",12,(0,sw.getNumberValidator)()),In.Factory.addGetterSetter(gr,"fontStyle",aw),In.Factory.addGetterSetter(gr,"align","left"),In.Factory.addGetterSetter(gr,"letterSpacing",0,(0,sw.getNumberValidator)()),In.Factory.addGetterSetter(gr,"textBaseline","middle"),In.Factory.addGetterSetter(gr,"fontVariant",aw),In.Factory.addGetterSetter(gr,"text",yD),In.Factory.addGetterSetter(gr,"textDecoration",null),In.Factory.addGetterSetter(gr,"kerningFunc",null);const _D=Jt({__proto__:null,get TextPath(){return ow},default:rl},[rl]),bD=Wt(_D);var il={};Object.defineProperty(il,"__esModule",{value:!0});var uw=il.Transformer=void 0;const Ue=rr,Ae=me,hw=lr,wD=xr,xD=I2,dw=bp,Fn=ve,Zi=ye,SD=ve;var fw="tr-konva",$D=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(e=>e+`.${fw}`).join(" "),pw="nodesRect",kD=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],ED={"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 CD="ontouchstart"in Fn.Konva._global;function PD(e,t,r){if(e==="rotater")return r;t+=Ue.Util.degToRad(ED[e]||0);var n=(Ue.Util.radToDeg(t)%360+360)%360;return Ue.Util._inRange(n,315+22.5,360)||Ue.Util._inRange(n,0,22.5)?"ns-resize":Ue.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":Ue.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":Ue.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":Ue.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":Ue.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":Ue.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":Ue.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(Ue.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var bu=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],mw=1e8;function TD(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 gw(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 OD(e,t){const r=TD(e);return gw(e,t,r)}function AD(e,t,r){let n=t;for(let i=0;i<e.length;i++){const o=Fn.Konva.getAngle(e[i]),s=Math.abs(o-t)%(Math.PI*2);Math.min(s,Math.PI*2-s)<r&&(n=o)}return n}class Ce extends dw.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($D,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return Ue.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 fw+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const r=t.filter(i=>i.isAncestorOf(this)?(Ue.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const o=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},s=i._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");i.on(s,o),i.on(kD.map(a=>a+`.${this._getEventNamespace()}`).join(" "),o),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,o),this._proxyDrag(i)}),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const i=t.getAbsolutePosition(),o=i.x-r.x,s=i.y-r.y;this.nodes().forEach(a=>{if(a===t||a.isDragging())return;const c=a.getAbsolutePosition();a.setAbsolutePosition({x:c.x+o,y:c.y+s}),a.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(pw),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(pw,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),o=t.getAbsoluteScale(n),s=t.getAbsolutePosition(n),a=i.x*o.x-t.offsetX()*o.x,c=i.y*o.y-t.offsetY()*o.y;const l=(Fn.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),u={x:s.x+a*Math.cos(l)+c*Math.sin(-l),y:s.y+c*Math.cos(l)+a*Math.sin(l),width:i.width*o.x,height:i.height*o.y,rotation:l};return gw(u,-Fn.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-mw,y:-mw,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 Ue.Transform;n.rotate(-Fn.Konva.getAngle(this.rotation()));var i=1/0,o=1/0,s=-1/0,a=-1/0;r.forEach(function(l){var u=n.point(l);i===void 0&&(i=s=u.x,o=a=u.y),i=Math.min(i,u.x),o=Math.min(o,u.y),s=Math.max(s,u.x),a=Math.max(a,u.y)}),n.invert();const c=n.point({x:i,y:o});return{x:c.x,y:c.y,width:s-i,height:a-o,rotation:Fn.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(),bu.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var r=new xD.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:CD?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=Fn.Konva.getAngle(this.rotation()),o=this.rotateAnchorCursor(),s=PD(t,i,o);r.getStage().content&&(r.getStage().content.style.cursor=s),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){var t=new wD.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()*Ue.Util._sign(n.height())-o),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.fillStrokeShape(n)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var r=this._getNodeRect(),n=r.width,i=r.height,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2));this.sin=Math.abs(i/o),this.cos=Math.abs(n/o),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var s=t.target.getAbsolutePosition(),a=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-s.x,y:a.y-s.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:t.evt,target:c})})}_handleMouseMove(t){var r,n,i,o=this.findOne("."+this._movingAnchorName),s=o.getStage();s.setPointersPositions(t);const a=s.getPointerPosition();let c={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=o.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(l,c,t)),o.setAbsolutePosition(c);const u=o.getAbsolutePosition();if(!(l.x===u.x&&l.y===u.y)){if(this._movingAnchorName==="rotater"){var 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=Fn.Konva.getAngle(this.rotation());const rt=f+nt,lt=Fn.Konva.getAngle(this.rotationSnapTolerance()),xt=AD(this.rotationSnaps(),rt,lt)-d.rotation,Ct=OD(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,b=this.findOne(".top-left").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-left").x(g.x-r),this.findOne(".top-left").y(g.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(o.y());else if(this._movingAnchorName==="top-right"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(o.x()-g.x,2)+Math.pow(g.y-o.y(),2));var v=this.findOne(".top-right").x()<g.x?-1:1,b=this.findOne(".top-right").y()>g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".top-right").x(g.x+r),this.findOne(".top-right").y(g.y-n)}var _=o.position();this.findOne(".top-left").y(_.y),this.findOne(".bottom-right").x(_.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(o.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(o.x());else if(this._movingAnchorName==="bottom-left"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(g.x-o.x(),2)+Math.pow(o.y()-g.y,2));var v=g.x<o.x()?-1:1,b=o.y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,o.x(g.x-r),o.y(g.y+n)}_=o.position(),this.findOne(".top-left").x(_.x),this.findOne(".bottom-right").y(_.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(o.y());else if(this._movingAnchorName==="bottom-right"){if(p){var g=m?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(o.x()-g.x,2)+Math.pow(o.y()-g.y,2));var v=this.findOne(".bottom-right").x()<g.x?-1:1,b=this.findOne(".bottom-right").y()<g.y?-1:1;r=i*this.cos*v,n=i*this.sin*b,this.findOne(".bottom-right").x(g.x+r),this.findOne(".bottom-right").y(g.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var m=this.centeredScaling()||t.altKey;if(m){var S=this.findOne(".top-left"),N=this.findOne(".bottom-right"),k=S.x(),A=S.y(),R=this.getWidth()-N.x(),z=this.getHeight()-N.y();N.move({x:-k,y:-A}),S.move({x:R,y:z})}var B=this.findOne(".top-left").getAbsolutePosition();r=B.x,n=B.y;var Y=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),W=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:r,y:n,width:Y,height:W,rotation:Fn.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(Ue.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(Ue.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const o=this.flipEnabled();var s=new Ue.Transform;if(s.rotate(Fn.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const d=s.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=s.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=s.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=s.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:Ue.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,c=new Ue.Transform;c.translate(n.x,n.y),c.rotate(n.rotation),c.scale(n.width/a,n.height/a);const l=new Ue.Transform;l.translate(t.x,t.y),l.rotate(t.rotation),l.scale(t.width/a,t.height/a);const u=l.multiply(c.invert());this._nodes.forEach(d=>{var f;const h=d.getParent().getAbsoluteTransform(),p=d.getTransform().copy();p.translate(d.offsetX(),d.offsetY());const g=new Ue.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(Ue.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(Ue.Util._getRotation(r.rotation));var n=r.width,i=r.height,o=this.enabledAnchors(),s=this.resizeEnabled(),a=this.padding(),c=this.anchorSize();const l=this.find("._anchor");l.forEach(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+a,offsetY:c/2+a,visible:s&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:c/2+a,visible:s&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:c/2-a,offsetY:c/2+a,visible:s&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+a,visible:s&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:c/2-a,visible:s&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:c/2-a,visible:s&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:c/2-a,offsetY:c/2-a,visible:s&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*Ue.Util._sign(i)-a,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const u=this.anchorStyleFunc();u&&l.forEach(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=""),dw.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return hw.Node.prototype.toObject.call(this)}clone(t){var r=hw.Node.prototype.clone.call(this,t);return r}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}uw=il.Transformer=Ce;function ND(e){return e instanceof Array||Ue.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){bu.indexOf(t)===-1&&Ue.Util.warn("Unknown anchor name: "+t+". Available names are: "+bu.join(", "))}),e||[]}Ce.prototype.className="Transformer",(0,SD._registerNode)(Ce),Ae.Factory.addGetterSetter(Ce,"enabledAnchors",bu,ND),Ae.Factory.addGetterSetter(Ce,"flipEnabled",!0,(0,Zi.getBooleanValidator)()),Ae.Factory.addGetterSetter(Ce,"resizeEnabled",!0),Ae.Factory.addGetterSetter(Ce,"anchorSize",10,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"rotateEnabled",!0),Ae.Factory.addGetterSetter(Ce,"rotationSnaps",[]),Ae.Factory.addGetterSetter(Ce,"rotateAnchorOffset",50,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"rotateAnchorCursor","crosshair"),Ae.Factory.addGetterSetter(Ce,"rotationSnapTolerance",5,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"borderEnabled",!0),Ae.Factory.addGetterSetter(Ce,"anchorStroke","rgb(0, 161, 255)"),Ae.Factory.addGetterSetter(Ce,"anchorStrokeWidth",1,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"anchorFill","white"),Ae.Factory.addGetterSetter(Ce,"anchorCornerRadius",0,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"borderStroke","rgb(0, 161, 255)"),Ae.Factory.addGetterSetter(Ce,"borderStrokeWidth",1,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"borderDash"),Ae.Factory.addGetterSetter(Ce,"keepRatio",!0),Ae.Factory.addGetterSetter(Ce,"shiftBehavior","default"),Ae.Factory.addGetterSetter(Ce,"centeredScaling",!1),Ae.Factory.addGetterSetter(Ce,"ignoreStroke",!1),Ae.Factory.addGetterSetter(Ce,"padding",0,(0,Zi.getNumberValidator)()),Ae.Factory.addGetterSetter(Ce,"node"),Ae.Factory.addGetterSetter(Ce,"nodes"),Ae.Factory.addGetterSetter(Ce,"boundBoxFunc"),Ae.Factory.addGetterSetter(Ce,"anchorDragBoundFunc"),Ae.Factory.addGetterSetter(Ce,"anchorStyleFunc"),Ae.Factory.addGetterSetter(Ce,"shouldOverdrawWholeArea",!1),Ae.Factory.addGetterSetter(Ce,"useSingleNodeRotation",!0),Ae.Factory.backCompat(Ce,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});const RD=Jt({__proto__:null,get Transformer(){return uw},default:il},[il]),jD=Wt(RD);var ol={};Object.defineProperty(ol,"__esModule",{value:!0});var vw=ol.Wedge=void 0;const wu=me,DD=xr,ID=ve,yw=ye,FD=ve;let Pi=class extends DD.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,ID.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)}};vw=ol.Wedge=Pi,Pi.prototype.className="Wedge",Pi.prototype._centroid=!0,Pi.prototype._attrsAffectingSize=["radius"],(0,FD._registerNode)(Pi),wu.Factory.addGetterSetter(Pi,"radius",0,(0,yw.getNumberValidator)()),wu.Factory.addGetterSetter(Pi,"angle",0,(0,yw.getNumberValidator)()),wu.Factory.addGetterSetter(Pi,"clockwise",!1),wu.Factory.backCompat(Pi,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});const MD=Jt({__proto__:null,get Wedge(){return vw},default:ol},[ol]),LD=Wt(MD);var sl={};Object.defineProperty(sl,"__esModule",{value:!0});var _w=sl.Blur=void 0;const bw=me,UD=lr,zD=ye;function ww(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var GD=[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],VD=[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 BD(e,t){var r=e.data,n=e.width,i=e.height,o,s,a,c,l,u,d,f,h,p,g,v,b,_,m,S,N,k,A,R,z,B,Y,W,nt=t+t+1,rt=n-1,lt=i-1,xt=t+1,Ct=xt*(xt+1)/2,$t=new ww,st=null,X=$t,T=null,E=null,$=GD[t],y=VD[t];for(a=1;a<nt;a++)X=X.next=new ww,a===xt&&(st=X);for(X.next=$t,d=u=0,s=0;s<i;s++){for(S=N=k=A=f=h=p=g=0,v=xt*(R=r[u]),b=xt*(z=r[u+1]),_=xt*(B=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*z,p+=Ct*B,g+=Ct*Y,X=$t,a=0;a<xt;a++)X.r=R,X.g=z,X.b=B,X.a=Y,X=X.next;for(a=1;a<xt;a++)c=u+((rt<a?rt:a)<<2),f+=(X.r=R=r[c])*(W=xt-a),h+=(X.g=z=r[c+1])*W,p+=(X.b=B=r[c+2])*W,g+=(X.a=Y=r[c+3])*W,S+=R,N+=z,k+=B,A+=Y,X=X.next;for(T=$t,E=st,o=0;o<n;o++)r[u+3]=Y=g*$>>y,Y!==0?(Y=255/Y,r[u]=(f*$>>y)*Y,r[u+1]=(h*$>>y)*Y,r[u+2]=(p*$>>y)*Y):r[u]=r[u+1]=r[u+2]=0,f-=v,h-=b,p-=_,g-=m,v-=T.r,b-=T.g,_-=T.b,m-=T.a,c=d+((c=o+t+1)<rt?c:rt)<<2,S+=T.r=r[c],N+=T.g=r[c+1],k+=T.b=r[c+2],A+=T.a=r[c+3],f+=S,h+=N,p+=k,g+=A,T=T.next,v+=R=E.r,b+=z=E.g,_+=B=E.b,m+=Y=E.a,S-=R,N-=z,k-=B,A-=Y,E=E.next,u+=4;d+=n}for(o=0;o<n;o++){for(N=k=A=S=h=p=g=f=0,u=o<<2,v=xt*(R=r[u]),b=xt*(z=r[u+1]),_=xt*(B=r[u+2]),m=xt*(Y=r[u+3]),f+=Ct*R,h+=Ct*z,p+=Ct*B,g+=Ct*Y,X=$t,a=0;a<xt;a++)X.r=R,X.g=z,X.b=B,X.a=Y,X=X.next;for(l=n,a=1;a<=t;a++)u=l+o<<2,f+=(X.r=R=r[u])*(W=xt-a),h+=(X.g=z=r[u+1])*W,p+=(X.b=B=r[u+2])*W,g+=(X.a=Y=r[u+3])*W,S+=R,N+=z,k+=B,A+=Y,X=X.next,a<lt&&(l+=n);for(u=o,T=$t,E=st,s=0;s<i;s++)c=u<<2,r[c+3]=Y=g*$>>y,Y>0?(Y=255/Y,r[c]=(f*$>>y)*Y,r[c+1]=(h*$>>y)*Y,r[c+2]=(p*$>>y)*Y):r[c]=r[c+1]=r[c+2]=0,f-=v,h-=b,p-=_,g-=m,v-=T.r,b-=T.g,_-=T.b,m-=T.a,c=o+((c=s+xt)<lt?c:lt)*n<<2,f+=S+=T.r=r[c],h+=N+=T.g=r[c+1],p+=k+=T.b=r[c+2],g+=A+=T.a=r[c+3],T=T.next,v+=R=E.r,b+=z=E.g,_+=B=E.b,m+=Y=E.a,S-=R,N-=z,k-=B,A-=Y,E=E.next,u+=n}}const HD=function(e){var t=Math.round(this.blurRadius());t>0&&BD(e,t)};_w=sl.Blur=HD,bw.Factory.addGetterSetter(UD.Node,"blurRadius",0,(0,zD.getNumberValidator)(),bw.Factory.afterSetFilter);const qD=Jt({__proto__:null,get Blur(){return _w},default:sl},[sl]),KD=Wt(qD);var al={};Object.defineProperty(al,"__esModule",{value:!0});var xw=al.Brighten=void 0;const Sw=me,YD=lr,XD=ye,JD=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};xw=al.Brighten=JD,Sw.Factory.addGetterSetter(YD.Node,"brightness",0,(0,XD.getNumberValidator)(),Sw.Factory.afterSetFilter);const WD=Jt({__proto__:null,get Brighten(){return xw},default:al},[al]),QD=Wt(WD);var ll={};Object.defineProperty(ll,"__esModule",{value:!0});var $w=ll.Contrast=void 0;const kw=me,ZD=lr,tI=ye,eI=function(e){var t=Math.pow((this.contrast()+100)/100,2),r=e.data,n=r.length,i=150,o=150,s=150,a;for(a=0;a<n;a+=4)i=r[a],o=r[a+1],s=r[a+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,s/=255,s-=.5,s*=t,s+=.5,s*=255,i=i<0?0:i>255?255:i,o=o<0?0:o>255?255:o,s=s<0?0:s>255?255:s,r[a]=i,r[a+1]=o,r[a+2]=s};$w=ll.Contrast=eI,kw.Factory.addGetterSetter(ZD.Node,"contrast",0,(0,tI.getNumberValidator)(),kw.Factory.afterSetFilter);const rI=Jt({__proto__:null,get Contrast(){return $w},default:ll},[ll]),nI=Wt(rI);var cl={};Object.defineProperty(cl,"__esModule",{value:!0});var Ew=cl.Emboss=void 0;const to=me,xu=lr,iI=rr,Cw=ye,oI=function(e){var t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),i=this.embossBlend(),o=0,s=0,a=e.data,c=e.width,l=e.height,u=c*4,d=l;switch(n){case"top-left":o=-1,s=-1;break;case"top":o=-1,s=0;break;case"top-right":o=-1,s=1;break;case"right":o=0,s=1;break;case"bottom-right":o=1,s=1;break;case"bottom":o=1,s=0;break;case"bottom-left":o=1,s=-1;break;case"left":o=0,s=-1;break;default:iI.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,b=s;g+b<1&&(b=0),g+b>c&&(b=0);var _=p+(g-1+b)*4,m=a[v]-a[_],S=a[v+1]-a[_+1],N=a[v+2]-a[_+2],k=m,A=k>0?k:-k,R=S>0?S:-S,z=N>0?N:-N;if(R>A&&(k=S),z>A&&(k=N),k*=t,i){var B=a[v]+k,Y=a[v+1]+k,W=a[v+2]+k;a[v]=B>255?255:B<0?0:B,a[v+1]=Y>255?255:Y<0?0:Y,a[v+2]=W>255?255:W<0?0:W}else{var nt=r-k;nt<0?nt=0:nt>255&&(nt=255),a[v]=a[v+1]=a[v+2]=nt}}while(--g)}while(--d)};Ew=cl.Emboss=oI,to.Factory.addGetterSetter(xu.Node,"embossStrength",.5,(0,Cw.getNumberValidator)(),to.Factory.afterSetFilter),to.Factory.addGetterSetter(xu.Node,"embossWhiteLevel",.5,(0,Cw.getNumberValidator)(),to.Factory.afterSetFilter),to.Factory.addGetterSetter(xu.Node,"embossDirection","top-left",null,to.Factory.afterSetFilter),to.Factory.addGetterSetter(xu.Node,"embossBlend",!1,null,to.Factory.afterSetFilter);const sI=Jt({__proto__:null,get Emboss(){return Ew},default:cl},[cl]),aI=Wt(sI);var ul={};Object.defineProperty(ul,"__esModule",{value:!0});var Pw=ul.Enhance=void 0;const Tw=me,lI=lr,cI=ye;function Bp(e,t,r,n,i){var o=r-t,s=i-n,a;return o===0?n+s/2:s===0?n:(a=(e-t)/o,a=s*a+n,a)}const uI=function(e){var t=e.data,r=t.length,n=t[0],i=n,o,s=t[1],a=s,c,l=t[2],u=l,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<s?s=c:c>a&&(a=c),d=t[f+2],d<l?l=d:d>u&&(u=d);i===n&&(i=255,n=0),a===s&&(a=255,s=0),u===l&&(u=255,l=0);var p,g,v,b,_,m,S,N,k;for(h>0?(g=i+h*(255-i),v=n-h*(n-0),_=a+h*(255-a),m=s-h*(s-0),N=u+h*(255-u),k=l-h*(l-0)):(p=(i+n)*.5,g=i+h*(i-p),v=n+h*(n-p),b=(a+s)*.5,_=a+h*(a-b),m=s+h*(s-b),S=(u+l)*.5,N=u+h*(u-S),k=l+h*(l-S)),f=0;f<r;f+=4)t[f+0]=Bp(t[f+0],n,i,v,g),t[f+1]=Bp(t[f+1],s,a,m,_),t[f+2]=Bp(t[f+2],l,u,k,N)}};Pw=ul.Enhance=uI,Tw.Factory.addGetterSetter(lI.Node,"enhance",0,(0,cI.getNumberValidator)(),Tw.Factory.afterSetFilter);const hI=Jt({__proto__:null,get Enhance(){return Pw},default:ul},[ul]),dI=Wt(hI);var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var Ow=hl.Grayscale=void 0;const fI=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};Ow=hl.Grayscale=fI;const pI=Jt({__proto__:null,get Grayscale(){return Ow},default:hl},[hl]),mI=Wt(pI);var dl={};Object.defineProperty(dl,"__esModule",{value:!0});var Aw=dl.HSL=void 0;const Ss=me,Hp=lr,qp=ye;Ss.Factory.addGetterSetter(Hp.Node,"hue",0,(0,qp.getNumberValidator)(),Ss.Factory.afterSetFilter),Ss.Factory.addGetterSetter(Hp.Node,"saturation",0,(0,qp.getNumberValidator)(),Ss.Factory.afterSetFilter),Ss.Factory.addGetterSetter(Hp.Node,"luminance",0,(0,qp.getNumberValidator)(),Ss.Factory.afterSetFilter);const gI=function(e){var t=e.data,r=t.length,n=1,i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s=this.luminance()*127,a,c=n*i*Math.cos(o*Math.PI/180),l=n*i*Math.sin(o*Math.PI/180),u=.299*n+.701*c+.167*l,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,b=.587*n-.586*c-1.05*l,_=.114*n+.886*c-.2*l,m,S,N,k;for(a=0;a<r;a+=4)m=t[a+0],S=t[a+1],N=t[a+2],k=t[a+3],t[a+0]=u*m+d*S+f*N+s,t[a+1]=h*m+p*S+g*N+s,t[a+2]=v*m+b*S+_*N+s,t[a+3]=k};Aw=dl.HSL=gI;const vI=Jt({__proto__:null,get HSL(){return Aw},default:dl},[dl]),yI=Wt(vI);var fl={};Object.defineProperty(fl,"__esModule",{value:!0});var Nw=fl.HSV=void 0;const $s=me,Kp=lr,Yp=ye,_I=function(e){var t=e.data,r=t.length,n=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),o=Math.abs(this.hue()+360)%360,s,a=n*i*Math.cos(o*Math.PI/180),c=n*i*Math.sin(o*Math.PI/180),l=.299*n+.701*a+.167*c,u=.587*n-.587*a+.33*c,d=.114*n-.114*a-.497*c,f=.299*n-.299*a-.328*c,h=.587*n+.413*a+.035*c,p=.114*n-.114*a+.293*c,g=.299*n-.3*a+1.25*c,v=.587*n-.586*a-1.05*c,b=.114*n+.886*a-.2*c,_,m,S,N;for(s=0;s<r;s+=4)_=t[s+0],m=t[s+1],S=t[s+2],N=t[s+3],t[s+0]=l*_+u*m+d*S,t[s+1]=f*_+h*m+p*S,t[s+2]=g*_+v*m+b*S,t[s+3]=N};Nw=fl.HSV=_I,$s.Factory.addGetterSetter(Kp.Node,"hue",0,(0,Yp.getNumberValidator)(),$s.Factory.afterSetFilter),$s.Factory.addGetterSetter(Kp.Node,"saturation",0,(0,Yp.getNumberValidator)(),$s.Factory.afterSetFilter),$s.Factory.addGetterSetter(Kp.Node,"value",0,(0,Yp.getNumberValidator)(),$s.Factory.afterSetFilter);const bI=Jt({__proto__:null,get HSV(){return Nw},default:fl},[fl]),wI=Wt(bI);var pl={};Object.defineProperty(pl,"__esModule",{value:!0});var Rw=pl.Invert=void 0;const xI=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]};Rw=pl.Invert=xI;const SI=Jt({__proto__:null,get Invert(){return Rw},default:pl},[pl]),$I=Wt(SI);var ml={};Object.defineProperty(ml,"__esModule",{value:!0});var jw=ml.Kaleidoscope=void 0;const Su=me,Dw=lr,Iw=rr,Fw=ye;var kI=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,d,f=0,h=0,p=0,g=0,v,b=Math.sqrt(a*a+c*c);u=o-a,d=s-c,v=Math.sqrt(u*u+d*d),b=v>b?v:b;var _=s,m=o,S,N,k=360/m*Math.PI/180,A,R;for(N=0;N<m;N+=1)for(A=Math.sin(N*k),R=Math.cos(N*k),S=0;S<_;S+=1)u=Math.floor(a+b*S/_*R),d=Math.floor(c+b*S/_*A),l=(d*o+u)*4,f=n[l+0],h=n[l+1],p=n[l+2],g=n[l+3],l=(N+S*o)*4,i[l+0]=f,i[l+1]=h,i[l+2]=p,i[l+3]=g},EI=function(e,t,r){var n=e.data,i=t.data,o=e.width,s=e.height,a=r.polarCenterX||o/2,c=r.polarCenterY||s/2,l,u,d,f,h,p=0,g=0,v=0,b=0,_,m=Math.sqrt(a*a+c*c);u=o-a,d=s-c,_=Math.sqrt(u*u+d*d),m=_>m?_:m;var S=s,N=o,k,A,R=0,z,B;for(u=0;u<o;u+=1)for(d=0;d<s;d+=1)f=u-a,h=d-c,k=Math.sqrt(f*f+h*h)*S/m,A=(Math.atan2(h,f)*180/Math.PI+360+R)%360,A=A*N/360,z=Math.floor(A),B=Math.floor(k),l=(B*o+z)*4,p=n[l+0],g=n[l+1],v=n[l+2],b=n[l+3],l=(d*o+u)*4,i[l+0]=p,i[l+1]=g,i[l+2]=v,i[l+3]=b};const CI=function(e){var t=e.width,r=e.height,n,i,o,s,a,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=Iw.Util.createCanvasElement();v.width=t,v.height=r;var b=v.getContext("2d").getImageData(0,0,t,r);Iw.Util.releaseCanvas(v),kI(e,b,{polarCenterX:t/2,polarCenterY:r/2});for(var _=t/Math.pow(2,h);_<=8;)_=_*2,h-=1;_=Math.ceil(_);var m=_,S=0,N=m,k=1;for(g+_>t&&(S=m,N=0,k=-1),i=0;i<r;i+=1)for(n=S;n!==N;n+=k)o=Math.round(n+g)%t,d=(t*i+o)*4,a=b.data[d+0],c=b.data[d+1],l=b.data[d+2],u=b.data[d+3],f=(t*i+n)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;for(i=0;i<r;i+=1)for(m=Math.floor(_),s=0;s<h;s+=1){for(n=0;n<m+1;n+=1)d=(t*i+n)*4,a=b.data[d+0],c=b.data[d+1],l=b.data[d+2],u=b.data[d+3],f=(t*i+m*2-n-1)*4,b.data[f+0]=a,b.data[f+1]=c,b.data[f+2]=l,b.data[f+3]=u;m*=2}EI(b,e,{polarRotation:0})}};jw=ml.Kaleidoscope=CI,Su.Factory.addGetterSetter(Dw.Node,"kaleidoscopePower",2,(0,Fw.getNumberValidator)(),Su.Factory.afterSetFilter),Su.Factory.addGetterSetter(Dw.Node,"kaleidoscopeAngle",0,(0,Fw.getNumberValidator)(),Su.Factory.afterSetFilter);const PI=Jt({__proto__:null,get Kaleidoscope(){return jw},default:ml},[ml]),TI=Wt(PI);var gl={};Object.defineProperty(gl,"__esModule",{value:!0});var Mw=gl.Mask=void 0;const Lw=me,OI=lr,AI=ye;function $u(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 vl(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 NI(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 RI(e,t){var r=$u(e,0,0),n=$u(e,e.width-1,0),i=$u(e,0,e.height-1),o=$u(e,e.width-1,e.height-1),s=t||10;if(vl(r,n)<s&&vl(n,o)<s&&vl(o,i)<s&&vl(i,r)<s){for(var a=NI([n,r,o,i]),c=[],l=0;l<e.width*e.height;l++){var u=vl(a,[e.data[l*4],e.data[l*4+1],e.data[l*4+2]]);c[l]=u<s?0:255}return c}}function jI(e,t){for(var r=0;r<e.width*e.height;r++)e.data[4*r+3]=t[r]}function DI(e,t,r){for(var n=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=a+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}}s[l]=u===255*8?255:0}return s}function II(e,t,r){for(var n=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=a+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}}s[l]=u>=255*4?255:0}return s}function FI(e,t,r){for(var n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),s=[],a=0;a<r;a++)for(var c=0;c<t;c++){for(var l=a*t+c,u=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=a+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}}s[l]=u}return s}const MI=function(e){var t=this.threshold(),r=RI(e,t);return r&&(r=DI(r,e.width,e.height),r=II(r,e.width,e.height),r=FI(r,e.width,e.height),jI(e,r)),e};Mw=gl.Mask=MI,Lw.Factory.addGetterSetter(OI.Node,"threshold",0,(0,AI.getNumberValidator)(),Lw.Factory.afterSetFilter);const LI=Jt({__proto__:null,get Mask(){return Mw},default:gl},[gl]),UI=Wt(LI);var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var Uw=yl.Noise=void 0;const zw=me,zI=lr,GI=ye,VI=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()};Uw=yl.Noise=VI,zw.Factory.addGetterSetter(zI.Node,"noise",.2,(0,GI.getNumberValidator)(),zw.Factory.afterSetFilter);const BI=Jt({__proto__:null,get Noise(){return Uw},default:yl},[yl]),HI=Wt(BI);var _l={};Object.defineProperty(_l,"__esModule",{value:!0});var Gw=_l.Pixelate=void 0;const Vw=me,qI=rr,KI=lr,YI=ye,XI=function(e){var t=Math.ceil(this.pixelSize()),r=e.width,n=e.height,i,o,s,a,c,l,u,d=Math.ceil(r/t),f=Math.ceil(n/t),h,p,g,v,b,_,m,S=e.data;if(t<=0){qI.Util.error("pixelSize value can not be <= 0");return}for(b=0;b<d;b+=1)for(_=0;_<f;_+=1){for(a=0,c=0,l=0,u=0,h=b*t,p=h+t,g=_*t,v=g+t,m=0,i=h;i<p;i+=1)if(!(i>=r))for(o=g;o<v;o+=1)o>=n||(s=(r*o+i)*4,a+=S[s+0],c+=S[s+1],l+=S[s+2],u+=S[s+3],m+=1);for(a=a/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||(s=(r*o+i)*4,S[s+0]=a,S[s+1]=c,S[s+2]=l,S[s+3]=u)}};Gw=_l.Pixelate=XI,Vw.Factory.addGetterSetter(KI.Node,"pixelSize",8,(0,YI.getNumberValidator)(),Vw.Factory.afterSetFilter);const JI=Jt({__proto__:null,get Pixelate(){return Gw},default:_l},[_l]),WI=Wt(JI);var bl={};Object.defineProperty(bl,"__esModule",{value:!0});var Bw=bl.Posterize=void 0;const Hw=me,QI=lr,ZI=ye,tF=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};Bw=bl.Posterize=tF,Hw.Factory.addGetterSetter(QI.Node,"levels",.5,(0,ZI.getNumberValidator)(),Hw.Factory.afterSetFilter);const eF=Jt({__proto__:null,get Posterize(){return Bw},default:bl},[bl]),rF=Wt(eF);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});var qw=wl.RGB=void 0;const ku=me,Xp=lr,nF=ye,iF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s,a;for(s=0;s<r;s+=4)a=(.34*t[s]+.5*t[s+1]+.16*t[s+2])/255,t[s]=a*n,t[s+1]=a*i,t[s+2]=a*o,t[s+3]=t[s+3]};qw=wl.RGB=iF,ku.Factory.addGetterSetter(Xp.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),ku.Factory.addGetterSetter(Xp.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),ku.Factory.addGetterSetter(Xp.Node,"blue",0,nF.RGBComponent,ku.Factory.afterSetFilter);const oF=Jt({__proto__:null,get RGB(){return qw},default:wl},[wl]),sF=Wt(oF);var xl={};Object.defineProperty(xl,"__esModule",{value:!0});var Kw=xl.RGBA=void 0;const Sl=me,Eu=lr,aF=ye,lF=function(e){var t=e.data,r=t.length,n=this.red(),i=this.green(),o=this.blue(),s=this.alpha(),a,c;for(a=0;a<r;a+=4)c=1-s,t[a]=n*s+t[a]*c,t[a+1]=i*s+t[a+1]*c,t[a+2]=o*s+t[a+2]*c};Kw=xl.RGBA=lF,Sl.Factory.addGetterSetter(Eu.Node,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Sl.Factory.addGetterSetter(Eu.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Sl.Factory.addGetterSetter(Eu.Node,"blue",0,aF.RGBComponent,Sl.Factory.afterSetFilter),Sl.Factory.addGetterSetter(Eu.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const cF=Jt({__proto__:null,get RGBA(){return Kw},default:xl},[xl]),uF=Wt(cF);var $l={};Object.defineProperty($l,"__esModule",{value:!0});var Yw=$l.Sepia=void 0;const hF=function(e){var t=e.data,r=t.length,n,i,o,s;for(n=0;n<r;n+=4)i=t[n+0],o=t[n+1],s=t[n+2],t[n+0]=Math.min(255,i*.393+o*.769+s*.189),t[n+1]=Math.min(255,i*.349+o*.686+s*.168),t[n+2]=Math.min(255,i*.272+o*.534+s*.131)};Yw=$l.Sepia=hF;const dF=Jt({__proto__:null,get Sepia(){return Yw},default:$l},[$l]),fF=Wt(dF);var kl={};Object.defineProperty(kl,"__esModule",{value:!0});var Xw=kl.Solarize=void 0;const pF=function(e){var t=e.data,r=e.width,n=e.height,i=r*4,o=n;do{var s=(o-1)*i,a=r;do{var c=s+(a-1)*4,l=t[c],u=t[c+1],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(--a)}while(--o)};Xw=kl.Solarize=pF;const mF=Jt({__proto__:null,get Solarize(){return Xw},default:kl},[kl]),gF=Wt(mF);var El={};Object.defineProperty(El,"__esModule",{value:!0});var Jw=El.Threshold=void 0;const Ww=me,vF=lr,yF=ye,_F=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};Jw=El.Threshold=_F,Ww.Factory.addGetterSetter(vF.Node,"threshold",.5,(0,yF.getNumberValidator)(),Ww.Factory.afterSetFilter);const bF=Jt({__proto__:null,get Threshold(){return Jw},default:El},[El]),wF=Wt(bF);Object.defineProperty(Na,"__esModule",{value:!0});var Qw=Na.Konva=void 0;const Zw=GR,xF=qR,SF=sj,$F=dj,kF=gj,EF=bj,tx=Cj,CF=x2,PF=Cp,TF=I2,OF=Fj,AF=zj,NF=qj,RF=Jj,jF=iw,DF=bD,IF=jD,FF=LD,MF=KD,LF=QD,UF=nI,zF=aI,GF=dI,VF=mI,BF=yI,HF=wI,qF=$I,KF=TI,YF=UI,XF=HI,JF=WI,WF=rF,QF=sF,ZF=uF,tM=fF,eM=gF,rM=wF;Qw=Na.Konva=Zw.Konva.Util._assign(Zw.Konva,{Arc:xF.Arc,Arrow:SF.Arrow,Circle:$F.Circle,Ellipse:kF.Ellipse,Image:EF.Image,Label:tx.Label,Tag:tx.Tag,Line:CF.Line,Path:PF.Path,Rect:TF.Rect,RegularPolygon:OF.RegularPolygon,Ring:AF.Ring,Sprite:NF.Sprite,Star:RF.Star,Text:jF.Text,TextPath:DF.TextPath,Transformer:IF.Transformer,Wedge:FF.Wedge,Filters:{Blur:MF.Blur,Brighten:LF.Brighten,Contrast:UF.Contrast,Emboss:zF.Emboss,Enhance:GF.Enhance,Grayscale:VF.Grayscale,HSL:BF.HSL,HSV:HF.HSV,Invert:qF.Invert,Kaleidoscope:KF.Kaleidoscope,Mask:YF.Mask,Noise:XF.Noise,Pixelate:JF.Pixelate,Posterize:WF.Posterize,RGB:QF.RGB,RGBA:ZF.RGBA,Sepia:tM.Sepia,Solarize:eM.Solarize,Threshold:rM.Threshold}});const nM=Jt({__proto__:null,get Konva(){return Qw},default:Na},[Na]),iM=Wt(nM);var oM=np.exports;Object.defineProperty(oM,"__esModule",{value:!0});const sM=iM;np.exports=sM.Konva;var aM=np.exports;const qe=an(aM),lM=qe.Ellipse.prototype.toObject;qe.Ellipse.prototype.toObject=function(){const e=lM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const cM=qe.Line.prototype.toObject;qe.Line.prototype.toObject=function(){const e=cM.call(this);return{...e,attrs:{...e.attrs,x:this.getAbsolutePosition().x,y:this.getAbsolutePosition().y,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const uM=qe.Node.prototype.toObject,hM=function(){const e=uM.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()}}};qe.Node.prototype.toObject=hM;const dM=qe.Node.prototype.remove;qe.Node.prototype.remove=function(){return dM.call(this),this.fire("removed",{target:this}),this};const fM=qe.Node.prototype.moveUp;qe.Node.prototype.moveUp=function(){const e=fM.call(this);return e&&this.fire("move:up"),e};const pM=qe.Node.prototype.moveDown;qe.Node.prototype.moveDown=function(){const e=pM.call(this);return e&&this.fire("move:down"),e};const mM=qe.Node.prototype.moveToTop;qe.Node.prototype.moveToTop=function(){const e=mM.call(this);return e&&this.fire("move:top"),e};const gM=qe.Node.prototype.moveToBottom;qe.Node.prototype.moveToBottom=function(){const e=gM.call(this);return e&&this.fire("move:bottom"),e};const vM=qe.Node.prototype.moveTo;qe.Node.prototype.moveTo=function(e){const t=vM.call(this,e);return this.fire("move:to"),t};const yM=qe.Rect.prototype.toObject;qe.Rect.prototype.toObject=function(){const e=yM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),cornerRadius:this.cornerRadius()}}};const _M=qe.RegularPolygon.prototype.toObject;qe.RegularPolygon.prototype.toObject=function(){const e=_M.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash()}}};const bM=qe.Text.prototype.toObject;qe.Text.prototype.toObject=function(){const e=bM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth()}}};const wM=qe.Image.prototype.toObject;qe.Image.prototype.toObject=function(){const e=wM.call(this);return{...e,attrs:{...e.attrs,strokeWidth:this.strokeWidth(),dash:this.dash(),image:this.image()}}};var xM=Object.defineProperty,SM=Object.getOwnPropertyDescriptor,eo=(e,t,r,n)=>{for(var i=SM(t,r),o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=s(t,r,i)||i);return i&&xM(t,r,i),i};function ro(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 no=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 s=i.toObject(),a=r[o].x-n;return s.attrs={...s.attrs,x:s.attrs.x-a},s}))}alignRight(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.x+i.width));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignTop(t){const r=t.map(i=>i.getClientRect()),n=Math.min(...r.map(i=>i.y));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=r[o].y-n;return s.attrs={...s.attrs,y:s.attrs.y-a},s}))}alignBottom(t){const r=t.map(i=>i.getClientRect()),n=Math.max(...r.map(i=>i.y+i.height));this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}alignCenterX(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.x+o.width/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].x+r[o].width/2);return s.attrs={...s.attrs,x:s.attrs.x+a},s}))}alignCenterY(t){const r=t.map(i=>i.getClientRect()),n=r.reduce((i,o)=>i+(o.y+o.height/2),0)/r.length;this.app.update(...t.map((i,o)=>{const s=i.toObject(),a=n-(r[o].y+r[o].height/2);return s.attrs={...s.attrs,y:s.attrs.y+a},s}))}dispersionX(t){t.map(r=>r.getClientRect().x+r.getClientRect().width/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"x")}dispersionY(t){t.map(r=>r.getClientRect().y+r.getClientRect().height/2).every((r,n,i)=>r===i[0])||this.distributeNodes(t,"y")}distributeNodes(t,r){if(t.length<=2)return;t.sort((u,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),s=i.getClientRect()[r]-o,a=t.slice(1,-1).reduce((u,d)=>u+(r==="x"?d.getClientRect().width:d.getClientRect().height),0),c=Math.max((s-a)/(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}))}};eo([ro],no.prototype,"alignLeft"),eo([ro],no.prototype,"alignRight"),eo([ro],no.prototype,"alignTop"),eo([ro],no.prototype,"alignBottom"),eo([ro],no.prototype,"alignCenterX"),eo([ro],no.prototype,"alignCenterY"),eo([ro],no.prototype,"dispersionX"),eo([ro],no.prototype,"dispersionY");const $M=K.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Le.colorPrimary}},setup(e){const t=e;return(r,n)=>(K.openBlock(),K.createElementBlock("span",{class:"icon",style:K.normalizeStyle(["color: "+r.color])},[K.createVNode(K.unref(M3),{icon:t.icon,color:r.color},null,8,["icon","color"])],4))}}),Ti=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},Uo=Ti($M,[["__scopeId","data-v-a5ce002f"]]),kM=K.defineComponent({__name:"Button",props:{label:{},icon:{},isDisabled:{type:Boolean,default:!1},height:{default:Le.height44},iconPosition:{default:"right"},padding:{default:Le.gap12},fontSize:{default:Le.fontSize14},borderRadius:{default:Le.borderRadius},borderColor:{default:Le.colorPrimary},bgColor:{default:Le.colorPrimary},fontColor:{default:Le.colorGrayFF}},emits:["ceClick","click"],setup(e,{emit:t}){const r=e,n=t,i=K.ref(r.borderColor),o=K.ref(r.bgColor),s=K.ref(r.fontColor),a=K.ref(r.isDisabled?"0.6":"1"),c=K.ref(r.isDisabled?"not-allowed":"pointer");let l=!1;const u=()=>{r.isDisabled||(l=!0,i.value=da(r.borderColor,10),o.value=da(r.bgColor,10))},d=()=>{r.isDisabled||(l=!1,i.value=r.borderColor,o.value=r.bgColor)},f=()=>{r.isDisabled||(i.value=da(r.borderColor,-10),o.value=da(r.bgColor,-10),setTimeout(()=>{l?u():d()},150),n("ceClick"),n("click"))};return(h,p)=>(K.openBlock(),K.createElementBlock("div",K.mergeProps({class:"button",style:[`opacity: ${a.value}`,`border: 1px solid ${i.value}`,`border-radius: ${r.borderRadius}`,`background-color: ${o.value}`,`color: ${s.value}`,`height: ${r.height}`,`line-height: ${r.height}`,`font-size: ${r.fontSize}`,`cursor: ${c.value}`]},h.$attrs,{onMouseover:u,onMouseleave:d,onClick:f}),[K.createElementVNode("label",{class:"label truncate",style:K.normalizeStyle({padding:"0 "+h.padding,cursor:c.value})},[K.renderSlot(h.$slots,"default",{},()=>[h.icon&&h.iconPosition==="right"?(K.openBlock(),K.createBlock(Uo,{key:0,icon:h.icon,color:s.value,style:K.normalizeStyle({marginRight:K.unref(Le).gap4,cursor:c.value})},null,8,["icon","color","style"])):K.createCommentVNode("",!0),K.createElementVNode("span",{style:K.normalizeStyle({cursor:c.value})},K.toDisplayString(h.label),5),h.icon&&h.iconPosition==="left"?(K.openBlock(),K.createBlock(Uo,{key:1,icon:h.icon,color:s.value,style:K.normalizeStyle({marginLeft:K.unref(Le).gap4,cursor:c.value})},null,8,["icon","color","style"])):K.createCommentVNode("",!0)],!0)],4)],16))}}),ks=Ti(kM,[["__scopeId","data-v-05688e75"]]),EM={id:"page"},CM=Ti(K.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;CO(n.designWidth);const i=r,o=K.ref(),s=K.ref(),a=K.ref(),c=K.ref(),l=K.ref("0");K.watch(o,(k,A)=>{typeof k<"u"&&k!==A&&(l.value=vi(o.value).css("height"))});const u=K.ref("0");K.watch(s,(k,A)=>{typeof k<"u"&&k!==A&&(u.value=vi(s.value).css("height"))});const d=K.ref("0");K.watch(a,(k,A)=>{typeof k<"u"&&k!==A&&(d.value=vi(a.value).css("width"))});const f=K.ref("0");K.watch(c,(k,A)=>{typeof k<"u"&&k!==A&&(f.value=vi(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=vi(o.value).css("height"),u.value=vi(s.value).css("height"),d.value=vi(a.value).css("width"),f.value=vi(c.value).css("width")},!1);const h=new wb;let p=K.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=K.ref(n.footer);const b=()=>{s.value&&(h.fromDOM([s.value]),h.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,i("triggerFooter",v.value))};let _=K.ref(n.left);const m=()=>{a.value&&(h.fromDOM([a.value]),h.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:_.value?"reverse":"normal"}),_.value=!_.value,i("triggerLeft",_.value))};let S=K.ref(n.right);return t({triggerHeader:g,triggerFooter:b,triggerLeft:m,triggerRight:()=>{c.value&&(h.fromDOM([c.value]),h.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:S.value?"reverse":"normal"}),S.value=!S.value,i("triggerRight",S.value))}}),(k,A)=>(K.openBlock(),K.createElementBlock("div",EM,[K.createElementVNode("header",{id:"header",ref_key:"refHeader",ref:o,style:K.normalizeStyle({transform:k.header?"translate(0, 0)":`translate(0, -${l.value})`})},[K.renderSlot(k.$slots,"header",{},void 0,!0)],4),K.createElementVNode("div",{id:"main",style:K.normalizeStyle({paddingTop:K.unref(p)?l.value:0,paddingBottom:K.unref(v)?u.value:0})},[K.renderSlot(k.$slots,"main",{},void 0,!0)],4),K.createElementVNode("footer",{id:"footer",ref_key:"refFooter",ref:s,style:K.normalizeStyle({transform:k.footer?"translate(0, 0)":`translate(0, ${u.value})`})},[K.renderSlot(k.$slots,"footer",{},void 0,!0)],4),K.createElementVNode("div",{id:"left",ref_key:"refLeft",ref:a,style:K.normalizeStyle({transform:k.left?"translate(0, 0)":`translate(-${d.value}, 0)`})},[K.renderSlot(k.$slots,"left",{},void 0,!0)],4),K.createElementVNode("div",{id:"right",ref_key:"refRight",ref:c,style:K.normalizeStyle({transform:k.right?"translate(0, 0)":`translate(${f.value}, 0)`})},[K.renderSlot(k.$slots,"right",{},void 0,!0)],4)]))}}),[["__scopeId","data-v-aded2ce3"]]),PM={class:"content"},TM={class:"content-inner"},OM={key:0,class:"title"},AM={key:0,class:"title-inner truncate"},NM={class:"custom-content"},RM={key:1,class:"btns"},Jp=Ti(K.defineComponent({customOptions:{Icon:Uo,Button:ks},__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=K.ref(),s=new wb,a=(f=!0)=>{f?K.watch(o,()=>{o.value&&(s.fromDOM(o.value),s.toCSS("popIn",{easeName:"ease",dur:n.openDurTime}))},{once:!0}):s.toCSS("popIn",{easeName:"ease",dur:n.closeDurTime,direction:"reverse"})},c=K.ref();K.watch(c,(f,h)=>{f!==h&&a(c.value)}),K.watch(()=>n.open,()=>{(n.open===!0||n.open===!1)&&(c.value=n.open)},{immediate:!0});function l(){a(!1),setTimeout(()=>{c.value=!1,i("close")},n.closeDurTime)}function u(){l(),i("cancel")}function d(){l(),i("confirm")}return t({close:l}),(f,h)=>c.value?(K.openBlock(),K.createElementBlock("div",{key:0,class:"overlay",style:K.normalizeStyle(["background-color: "+K.unref(mA)(K.unref(Le).colorGray0,.25)])},[K.createElementVNode("div",PM,[K.createElementVNode("div",TM,[K.createElementVNode("div",{ref_key:"dialog",ref:o,class:"panel",style:K.normalizeStyle(["background-color: "+K.unref(Le).colorGrayFF,"opacity: 0"])},[f.showTitle||f.showClose?(K.openBlock(),K.createElementBlock("div",OM,[f.showTitle?(K.openBlock(),K.createElementBlock("div",AM,K.toDisplayString(f.title),1)):K.createCommentVNode("",!0),f.showClose?(K.openBlock(),K.createBlock(Uo,{key:1,class:"close",icon:"ic:baseline-close",color:K.unref(Le).colorGrayCC,onClick:l},null,8,["color"])):K.createCommentVNode("",!0)])):K.createCommentVNode("",!0),K.createElementVNode("div",NM,[K.renderSlot(f.$slots,"default",{},()=>[K.createTextVNode(K.toDisplayString(f.content),1)],!0)]),f.showCancel||f.showConfirm?(K.openBlock(),K.createElementBlock("div",RM,[f.showCancel?(K.openBlock(),K.createBlock(ks,{key:0,onClick:u,class:"btn",bgColor:K.unref(Le).colorGrayE6,borderColor:K.unref(Le).colorGrayE6,fontColor:K.unref(Le).colorGray3,borderRadius:"0"},{default:K.withCtx(()=>[K.createTextVNode(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):K.createCommentVNode("",!0),f.showConfirm?(K.openBlock(),K.createBlock(ks,{key:1,onClick:d,class:"btn",borderRadius:"0"},{default:K.withCtx(()=>[K.createTextVNode(" 确定 ")]),_:1})):K.createCommentVNode("",!0)])):K.createCommentVNode("",!0)],4)])])],4)):K.createCommentVNode("",!0)}}),[["__scopeId","data-v-04990eca"]]),jM=K.defineComponent({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:Le.colorPrimary}},setup(e){const t=e;return(r,n)=>(K.openBlock(),K.createElementBlock("svg",{viewBox:"25 25 50 50",style:K.normalizeStyle(["width: "+t.width])},[K.createElementVNode("circle",{cx:"50",cy:"50",r:"20",style:K.normalizeStyle(["stroke: "+t.color])},null,4)],4))}}),ex=Ti(jM,[["__scopeId","data-v-294be3ac"]]),DM={class:"loading"},IM={class:"icon"},FM={key:0,class:"content"},MM=Ti(K.defineComponent({customOptions:{Dialog:Jp,SVGLoading:ex},__name:"DialogLoading",props:{open:{type:Boolean,default:!1},content:{}},setup(e){const t=e;return(r,n)=>(K.openBlock(),K.createBlock(Jp,{open:t.open,showConfirm:!1,showTitle:!1},{default:K.withCtx(()=>[K.createElementVNode("div",DM,[K.createElementVNode("div",IM,[K.renderSlot(r.$slots,"default",{},()=>[K.createVNode(ex)],!0)]),r.content?(K.openBlock(),K.createElementBlock("div",FM,K.toDisplayString(r.content),1)):K.createCommentVNode("",!0)])]),_:3},8,["open"]))}}),[["__scopeId","data-v-4c219302"]]),LM=["value"],UM=["value"],zM=Ti(K.defineComponent({__name:"Select",props:{options:{},initIndex:{default:0}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=K.ref(r.initIndex),o=a=>{i.value=parseInt(a.target.value),n("change",r.options[i.value])},s=a=>{a.target.style.borderColor=Le.colorPrimary};return(a,c)=>(K.openBlock(),K.createElementBlock("select",{value:i.value,onChange:o,onFocus:s,class:"select",style:K.normalizeStyle({border:"1px solid "+K.unref(Le).colorGrayCC,fontSize:K.unref(Le).fontSize14})},[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(a.options,(l,u)=>(K.openBlock(),K.createElementBlock("option",{key:u,value:u},K.toDisplayString(l),9,UM))),128))],44,LM))}}),[["__scopeId","data-v-258e6373"]]);function rx(e,t,r){let n=K.ref(r==null?void 0:r.value),i=K.computed(()=>e.value!==void 0);return[K.computed(()=>i.value?e.value:n.value),function(o){return i.value||(n.value=o),t==null?void 0:t(o)}]}let GM=Symbol("headlessui.useid"),VM=0;function zo(){return K.inject(GM,()=>`${++VM}`)()}function or(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 Mn(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,Mn),n}var BM=Object.defineProperty,HM=(e,t,r)=>t in e?BM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nx=(e,t,r)=>(HM(e,typeof t!="symbol"?t+"":t,r),r);let qM=class{constructor(){nx(this,"current",this.detect()),nx(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"}},Wp=new qM;function KM(e){if(Wp.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=or(e);if(t)return t.ownerDocument}return document}let ix=["[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 YM=(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))(YM||{}),XM=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(XM||{}),JM=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(JM||{}),Qp=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Qp||{});function ox(e,t=0){var r;return e===((r=KM(e))==null?void 0:r.body)?!1:Mn(t,{0(){return e.matches(ix)},1(){let n=e;for(;n!==null;){if(n.matches(ix))return!0;n=n.parentElement}return!1}})}var WM=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(WM||{});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));function QM(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ZM(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function tL(){return/Android/gi.test(window.navigator.userAgent)}function eL(){return ZM()||tL()}function Cu(e,t,r){Wp.isServer||K.watchEffect(n=>{document.addEventListener(e,t,r),n(()=>document.removeEventListener(e,t,r))})}function rL(e,t,r){Wp.isServer||K.watchEffect(n=>{window.addEventListener(e,t,r),n(()=>window.removeEventListener(e,t,r))})}function nL(e,t,r=K.computed(()=>!0)){function n(o,s){if(!r.value||o.defaultPrevented)return;let a=s(o);if(a===null||!a.getRootNode().contains(a))return;let c=function l(u){return typeof u=="function"?l(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let l of c){if(l===null)continue;let u=l instanceof HTMLElement?l:or(l);if(u!=null&&u.contains(a)||o.composed&&o.composedPath().includes(u))return}return!ox(a,Qp.Loose)&&a.tabIndex!==-1&&o.preventDefault(),t(o,a)}let i=K.ref(null);Cu("pointerdown",o=>{var s,a;r.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),Cu("mousedown",o=>{var s,a;r.value&&(i.value=((a=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:a[0])||o.target)},!0),Cu("click",o=>{eL()||i.value&&(n(o,()=>i.value),i.value=null)},!0),Cu("touchend",o=>n(o,()=>o.target instanceof HTMLElement?o.target:null),!0),rL("blur",o=>n(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function sx(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function ax(e,t){let r=K.ref(sx(e.value.type,e.value.as));return K.onMounted(()=>{r.value=sx(e.value.type,e.value.as)}),K.watchEffect(()=>{var n;r.value||or(t)&&or(t)instanceof HTMLButtonElement&&!((n=or(t))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function lx(e){return[e.screenX,e.screenY]}function iL(){let e=K.ref([-1,-1]);return{wasMoved(t){let r=lx(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=lx(t)}}}var Zp=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zp||{}),oL=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(oL||{});function ii({visible:e=!0,features:t=0,ourProps:r,theirProps:n,...i}){var o;let s=ux(n,r),a=Object.assign(i,{props:s});if(e||t&2&&s.static)return t0(a);if(t&1){let c=(o=s.unmount)==null||o?0:1;return Mn(c,{0(){return null},1(){return t0({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return t0(a)}function t0({props:e,attrs:t,slots:r,slot:n,name:i}){var o,s;let{as:a,...c}=e0(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(a==="template"){if(l=cx(l??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[d,...f]=l??[];if(!sL(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,b)=>b.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=ux((s=d.props)!=null?s:{},c,u),p=K.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 K.h(a,Object.assign({},c,u),{default:()=>l})}function cx(e){return e.flatMap(t=>t.type===K.Fragment?cx(t.children):[t])}function ux(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let s=r[n];for(let a of s){if(i instanceof Event&&i.defaultPrevented)return;a(i,...o)}}});return t}function hx(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function e0(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function sL(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var r0=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(r0||{});let dx=K.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,s={"aria-hidden":(i&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return ii({ourProps:s,theirProps:o,slot:{},attrs:r,slots:t,name:"Hidden"})}}}),fx=Symbol("Context");var Cl=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Cl||{});function aL(){return K.inject(fx,null)}function lL(e){K.provide(fx,e)}var fr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(fr||{});function cL(e){throw new Error("Unexpected object: "+e)}var zr=(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))(zr||{});function uL(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:cL(e)}}function px(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))gx(r,mx(t,n),i);return r}function mx(e,t){return e?e+"["+t+"]":t}function gx(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())gx(e,mx(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,""]):px(r,t,e)}function hL(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 vx=Symbol("DescriptionContext");function dL(){let e=K.inject(vx,null);if(e===null)throw new Error("Missing parent");return e}function fL({slot:e=K.ref({}),name:t="Description",props:r={}}={}){let n=K.ref([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return K.provide(vx,{register:i,slot:e,name:t,props:r}),K.computed(()=>n.value.length>0?n.value.join(" "):void 0)}K.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-${zo()}`,o=dL();return K.onMounted(()=>K.onUnmounted(o.register(i))),()=>{let{name:s="Description",slot:a=K.ref({}),props:c={}}=o,{...l}=e,u={...Object.entries(c).reduce((d,[f,h])=>Object.assign(d,{[f]:K.unref(h)}),{}),id:i};return ii({ourProps:u,theirProps:l,slot:a.value,attrs:t,slots:r,name:s})}}});let yx=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function _x(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(r=i.innerText)!=null?r:"":n;return yx.test(s)&&(s=s.replace(yx,"")),s}function pL(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():_x(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return _x(e).trim()}function mL(e){let t=K.ref(""),r=K.ref("");return()=>{let n=or(e);if(!n)return"";let i=n.innerText;if(t.value===i)return r.value;let o=pL(n).trim().toLowerCase();return t.value=i,r.value=o,o}}function gL(e,t){return e===t}var vL=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vL||{}),yL=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(yL||{}),_L=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_L||{});function bL(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let bx=Symbol("ListboxContext");function Pl(e){let t=K.inject(bx,null);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Pl),r}return t}let wL=K.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:()=>gL},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=K.ref(1),o=K.ref(null),s=K.ref(null),a=K.ref(null),c=K.ref([]),l=K.ref(""),u=K.ref(null),d=K.ref(1);function f(m=S=>S){let S=u.value!==null?c.value[u.value]:null,N=QM(m(c.value.slice()),A=>or(A.dataRef.domRef)),k=S?N.indexOf(S):null;return k===-1&&(k=null),{options:N,activeOptionIndex:k}}let h=K.computed(()=>e.multiple?1:0),[p,g]=rx(K.computed(()=>e.modelValue),m=>n("update:modelValue",m),K.computed(()=>e.defaultValue)),v=K.computed(()=>p.value===void 0?Mn(h.value,{1:[],0:void 0}):p.value),b={listboxState:i,value:v,mode:h,compare(m,S){if(typeof e.by=="string"){let N=e.by;return(m==null?void 0:m[N])===(S==null?void 0:S[N])}return e.by(m,S)},orientation:K.computed(()=>e.horizontal?"horizontal":"vertical"),labelRef:o,buttonRef:s,optionsRef:a,disabled:K.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,S,N){if(e.disabled||i.value===1)return;let k=f(),A=uL(m===zr.Specific?{focus:zr.Specific,id:S}:{focus:m},{resolveItems:()=>k.options,resolveActiveIndex:()=>k.activeOptionIndex,resolveId:R=>R.id,resolveDisabled:R=>R.dataRef.disabled});l.value="",u.value=A,d.value=N??1,c.value=k.options},search(m){if(e.disabled||i.value===1)return;let S=l.value!==""?0:1;l.value+=m.toLowerCase();let N=(u.value!==null?c.value.slice(u.value+S).concat(c.value.slice(0,u.value+S)):c.value).find(A=>A.dataRef.textValue.startsWith(l.value)&&!A.dataRef.disabled),k=N?c.value.indexOf(N):-1;k===-1||k===u.value||(u.value=k,d.value=1)},clearSearch(){e.disabled||i.value!==1&&l.value!==""&&(l.value="")},registerOption(m,S){let N=f(k=>[...k,{id:m,dataRef:S}]);c.value=N.options,u.value=N.activeOptionIndex},unregisterOption(m){let S=f(N=>{let k=N.findIndex(A=>A.id===m);return k!==-1&&N.splice(k,1),N});c.value=S.options,u.value=S.activeOptionIndex,d.value=1},theirOnChange(m){e.disabled||g(m)},select(m){e.disabled||g(Mn(h.value,{0:()=>m,1:()=>{let S=K.toRaw(b.value.value).slice(),N=K.toRaw(m),k=S.findIndex(A=>b.compare(N,K.toRaw(A)));return k===-1?S.push(N):S.splice(k,1),S}}))}};nL([s,a],(m,S)=>{var N;b.closeListbox(),ox(S,Qp.Loose)||(m.preventDefault(),(N=or(s))==null||N.focus())},K.computed(()=>i.value===0)),K.provide(bx,b),lL(K.computed(()=>Mn(i.value,{0:Cl.Open,1:Cl.Closed})));let _=K.computed(()=>{var m;return(m=or(s))==null?void 0:m.closest("form")});return K.onMounted(()=>{K.watch([_],()=>{if(!_.value||e.defaultValue===void 0)return;function m(){b.theirOnChange(e.defaultValue)}return _.value.addEventListener("reset",m),()=>{var S;(S=_.value)==null||S.removeEventListener("reset",m)}},{immediate:!0})}),()=>{let{name:m,modelValue:S,disabled:N,form:k,...A}=e,R={open:i.value===0,disabled:N,value:v.value};return K.h(K.Fragment,[...m!=null&&v.value!=null?px({[m]:v.value}).map(([z,B])=>K.h(dx,hx({features:r0.Hidden,key:z,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:k,disabled:N,name:z,value:B}))):[],ii({ourProps:{},theirProps:{...r,...e0(A,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:R,slots:t,attrs:r,name:"Listbox"})])}}});K.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-${zo()}`,o=Pl("ListboxLabel");function s(){var a;(a=or(o.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:o.listboxState.value===0,disabled:o.disabled.value},{...c}=e,l={id:i,ref:o.labelRef,onClick:s};return ii({ourProps:l,theirProps:c,slot:a,attrs:t,slots:r,name:"ListboxLabel"})}}});let xL=K.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-${zo()}`,s=Pl("ListboxButton");n({el:s.buttonRef,$el:s.buttonRef});function a(d){switch(d.key){case fr.Space:case fr.Enter:case fr.ArrowDown:d.preventDefault(),s.openListbox(),K.nextTick(()=>{var f;(f=or(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(zr.First)});break;case fr.ArrowUp:d.preventDefault(),s.openListbox(),K.nextTick(()=>{var f;(f=or(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(zr.Last)});break}}function c(d){switch(d.key){case fr.Space:d.preventDefault();break}}function l(d){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),K.nextTick(()=>{var f;return(f=or(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),s.openListbox(),bL(()=>{var f;return(f=or(s.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=ax(K.computed(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var d,f;let h={open:s.listboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...p}=e,g={ref:s.buttonRef,id:o,type:u.value,"aria-haspopup":"listbox","aria-controls":(d=or(s.optionsRef))==null?void 0:d.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(f=or(s.labelRef))==null?void 0:f.id,o].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:l};return ii({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,name:"ListboxButton"})}}}),SL=K.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-${zo()}`,s=Pl("ListboxOptions"),a=K.ref(null);n({el:s.optionsRef,$el:s.optionsRef});function c(d){switch(a.value&&clearTimeout(a.value),d.key){case fr.Space:if(s.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),s.search(d.key);case fr.Enter:if(d.preventDefault(),d.stopPropagation(),s.activeOptionIndex.value!==null){let f=s.options.value[s.activeOptionIndex.value];s.select(f.dataRef.value)}s.mode.value===0&&(s.closeListbox(),K.nextTick(()=>{var f;return(f=or(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case Mn(s.orientation.value,{vertical:fr.ArrowDown,horizontal:fr.ArrowRight}):return d.preventDefault(),d.stopPropagation(),s.goToOption(zr.Next);case Mn(s.orientation.value,{vertical:fr.ArrowUp,horizontal:fr.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),s.goToOption(zr.Previous);case fr.Home:case fr.PageUp:return d.preventDefault(),d.stopPropagation(),s.goToOption(zr.First);case fr.End:case fr.PageDown:return d.preventDefault(),d.stopPropagation(),s.goToOption(zr.Last);case fr.Escape:d.preventDefault(),d.stopPropagation(),s.closeListbox(),K.nextTick(()=>{var f;return(f=or(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case fr.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(s.search(d.key),a.value=setTimeout(()=>s.clearSearch(),350));break}}let l=aL(),u=K.computed(()=>l!==null?(l.value&Cl.Open)===Cl.Open:s.listboxState.value===0);return()=>{var d,f;let h={open:s.listboxState.value===0},{...p}=e,g={"aria-activedescendant":s.activeOptionIndex.value===null||(d=s.options.value[s.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":s.mode.value===1?!0:void 0,"aria-labelledby":(f=or(s.buttonRef))==null?void 0:f.id,"aria-orientation":s.orientation.value,id:o,onKeydown:c,role:"listbox",tabIndex:0,ref:s.optionsRef};return ii({ourProps:g,theirProps:p,slot:h,attrs:t,slots:r,features:Zp.RenderStrategy|Zp.Static,visible:u.value,name:"ListboxOptions"})}}}),$L=K.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-${zo()}`,s=Pl("ListboxOption"),a=K.ref(null);n({el:a,$el:a});let c=K.computed(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===o:!1),l=K.computed(()=>Mn(s.mode.value,{0:()=>s.compare(K.toRaw(s.value.value),K.toRaw(e.value)),1:()=>K.toRaw(s.value.value).some(m=>s.compare(K.toRaw(m),K.toRaw(e.value)))})),u=K.computed(()=>Mn(s.mode.value,{1:()=>{var m;let S=K.toRaw(s.value.value);return((m=s.options.value.find(N=>S.some(k=>s.compare(K.toRaw(k),K.toRaw(N.dataRef.value)))))==null?void 0:m.id)===o},0:()=>l.value})),d=mL(a),f=K.computed(()=>({disabled:e.disabled,value:e.value,get textValue(){return d()},domRef:a}));K.onMounted(()=>s.registerOption(o,f)),K.onUnmounted(()=>s.unregisterOption(o)),K.onMounted(()=>{K.watch([s.listboxState,l],()=>{s.listboxState.value===0&&l.value&&Mn(s.mode.value,{1:()=>{u.value&&s.goToOption(zr.Specific,o)},0:()=>{s.goToOption(zr.Specific,o)}})},{immediate:!0})}),K.watchEffect(()=>{s.listboxState.value===0&&c.value&&s.activationTrigger.value!==0&&K.nextTick(()=>{var m,S;return(S=(m=or(a))==null?void 0:m.scrollIntoView)==null?void 0:S.call(m,{block:"nearest"})})});function h(m){if(e.disabled)return m.preventDefault();s.select(e.value),s.mode.value===0&&(s.closeListbox(),K.nextTick(()=>{var S;return(S=or(s.buttonRef))==null?void 0:S.focus({preventScroll:!0})}))}function p(){if(e.disabled)return s.goToOption(zr.Nothing);s.goToOption(zr.Specific,o)}let g=iL();function v(m){g.update(m)}function b(m){g.wasMoved(m)&&(e.disabled||c.value||s.goToOption(zr.Specific,o,0))}function _(m){g.wasMoved(m)&&(e.disabled||c.value&&s.goToOption(zr.Nothing))}return()=>{let{disabled:m}=e,S={active:c.value,selected:l.value,disabled:m},{value:N,disabled:k,...A}=e,R={id:o,ref:a,role:"option",tabIndex:m===!0?void 0:-1,"aria-disabled":m===!0?!0:void 0,"aria-selected":l.value,disabled:void 0,onClick:h,onFocus:p,onPointerenter:v,onMouseenter:v,onPointermove:b,onMousemove:b,onPointerleave:_,onMouseleave:_};return ii({ourProps:R,theirProps:A,slot:S,attrs:r,slots:t,name:"ListboxOption"})}}}),wx=Symbol("LabelContext");function xx(){let e=K.inject(wx,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,xx),t}return e}function kL({slot:e={},name:t="Label",props:r={}}={}){let n=K.ref([]);function i(o){return n.value.push(o),()=>{let s=n.value.indexOf(o);s!==-1&&n.value.splice(s,1)}}return K.provide(wx,{register:i,slot:e,name:t,props:r}),K.computed(()=>n.value.length>0?n.value.join(" "):void 0)}K.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-${zo()}`,o=xx();return K.onMounted(()=>K.onUnmounted(o.register(i))),()=>{let{name:s="Label",slot:a={},props:c={}}=o,{passive:l,...u}=e,d={...Object.entries(c).reduce((f,[h,p])=>Object.assign(f,{[h]:K.unref(p)}),{}),id:i};return l&&(delete d.onClick,delete d.htmlFor,delete u.onClick),ii({ourProps:d,theirProps:u,slot:a,attrs:r,slots:t,name:s})}}});let Sx=Symbol("GroupContext"),EL=K.defineComponent({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=K.ref(null),i=kL({name:"SwitchLabel",props:{htmlFor:K.computed(()=>{var s;return(s=n.value)==null?void 0:s.id}),onClick(s){n.value&&(s.currentTarget.tagName==="LABEL"&&s.preventDefault(),n.value.click(),n.value.focus({preventScroll:!0}))}}}),o=fL({name:"SwitchDescription"});return K.provide(Sx,{switchRef:n,labelledby:i,describedby:o}),()=>ii({theirProps:e,ourProps:{},slot:{},slots:t,attrs:r,name:"SwitchGroup"})}}),CL=K.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 s=(o=e.id)!=null?o:`headlessui-switch-${zo()}`,a=K.inject(Sx,null),[c,l]=rx(K.computed(()=>e.modelValue),_=>t("update:modelValue",_),K.computed(()=>e.defaultChecked));function u(){l(!c.value)}let d=K.ref(null),f=a===null?d:a.switchRef,h=ax(K.computed(()=>({as:e.as,type:r.type})),f);i({el:f,$el:f});function p(_){_.preventDefault(),u()}function g(_){_.key===fr.Space?(_.preventDefault(),u()):_.key===fr.Enter&&hL(_.currentTarget)}function v(_){_.preventDefault()}let b=K.computed(()=>{var _,m;return(m=(_=or(f))==null?void 0:_.closest)==null?void 0:m.call(_,"form")});return K.onMounted(()=>{K.watch([b],()=>{if(!b.value||e.defaultChecked===void 0)return;function _(){l(e.defaultChecked)}return b.value.addEventListener("reset",_),()=>{var m;(m=b.value)==null||m.removeEventListener("reset",_)}},{immediate:!0})}),()=>{let{name:_,value:m,form:S,tabIndex:N,...k}=e,A={checked:c.value},R={id:s,ref:f,role:"switch",type:h.value,tabIndex:N===-1?0:N,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:p,onKeyup:g,onKeypress:v};return K.h(K.Fragment,[_!=null&&c.value!=null?K.h(dx,hx({features:r0.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:S,disabled:k.disabled,name:_,value:m})):null,ii({ourProps:R,theirProps:{...r,...e0(k,["modelValue","defaultChecked"])},slot:A,attrs:r,slots:n,name:"Switch"})])}}});const PL=Ti(K.defineComponent({customOptions:{Icon:Uo,Button:ks},__name:"SelectHeadlessUI",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(e,{emit:t}){const r=e,n=t,i=K.ref(r.initIndex);return K.watch(i,function(){n("change",r.options[i.value])}),(o,s)=>(K.openBlock(),K.createBlock(K.unref(wL),{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value=a)},{default:K.withCtx(({open:a})=>[K.createElementVNode("div",{class:"wrap",style:K.normalizeStyle(["font-size:"+o.fontSize])},[K.createVNode(K.unref(xL),{class:"button"},{default:K.withCtx(()=>[K.renderSlot(o.$slots,"button",{selectedIndex:i.value},()=>[K.createVNode(ks,{icon:"carbon:chevron-sort",label:o.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),_:3}),K.createVNode(K.Transition,{name:"transition"},{default:K.withCtx(()=>[K.withDirectives(K.createElementVNode("div",null,[K.createVNode(K.unref(SL),{static:"",class:"options",style:K.normalizeStyle({border:"1px solid "+K.unref(Le).colorGrayCC})},{default:K.withCtx(()=>[(K.openBlock(!0),K.createElementBlock(K.Fragment,null,K.renderList(o.options,(c,l)=>(K.openBlock(),K.createBlock(K.unref($L),{as:"div",class:"option",key:l,value:l,style:K.normalizeStyle({borderTop:(l==0?"0":"1px")+" solid "+K.unref(Le).colorGrayCC})},{default:K.withCtx(({active:u,selected:d})=>[K.createElementVNode("div",{class:"option-inner",style:K.normalizeStyle({backgroundColor:u?K.unref(Le).colorGrayF5:K.unref(Le).colorGrayFF})},[K.renderSlot(o.$slots,"default",{active:u,selected:d,item:c,index:l},()=>[d||l==i.value?(K.openBlock(),K.createBlock(Uo,{key:0,icon:"mingcute:check-fill",class:"icon"})):K.createCommentVNode("",!0),K.createElementVNode("span",null,K.toDisplayString(c),1)],!0)],4)]),_:2},1032,["value","style"]))),128))]),_:3},8,["style"])],512),[[K.vShow,a]])]),_:2},1024)],4)]),_:3},8,["modelValue"]))}}),[["__scopeId","data-v-02a8e28b"]]);function zt(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 TL=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 OL(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 AL=(e,t)=>{typeof e=="string"&&(e=TL(e)||new RegExp(e));const r=t.match(e);return OL(r)};function $x(e,t){return function(){return e.apply(t,arguments)}}const{toString:NL}=Object.prototype,{getPrototypeOf:n0}=Object,Pu=(e=>t=>{const r=NL.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),oi=e=>(e=e.toLowerCase(),t=>Pu(t)===e),Tu=e=>t=>typeof t===e,{isArray:Es}=Array,Tl=Tu("undefined");function RL(e){return e!==null&&!Tl(e)&&e.constructor!==null&&!Tl(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kx=oi("ArrayBuffer");function jL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kx(e.buffer),t}const DL=Tu("string"),bn=Tu("function"),Ex=Tu("number"),Ou=e=>e!==null&&typeof e=="object",IL=e=>e===!0||e===!1,Au=e=>{if(Pu(e)!=="object")return!1;const t=n0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},FL=oi("Date"),ML=oi("File"),LL=oi("Blob"),UL=oi("FileList"),zL=e=>Ou(e)&&bn(e.pipe),GL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bn(e.append)&&((t=Pu(e))==="formdata"||t==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"))},VL=oi("URLSearchParams"),BL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ol(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Es(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function Cx(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 Px=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tx=e=>!Tl(e)&&e!==Px;function i0(){const{caseless:e}=Tx(this)&&this||{},t={},r=(n,i)=>{const o=e&&Cx(t,i)||i;Au(t[o])&&Au(n)?t[o]=i0(t[o],n):Au(n)?t[o]=i0({},n):Es(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Ol(arguments[n],r);return t}const HL=(e,t,r,{allOwnKeys:n}={})=>(Ol(t,(i,o)=>{r&&bn(i)?e[o]=$x(i,r):e[o]=i},{allOwnKeys:n}),e),qL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KL=(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)},YL=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&n0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},XL=(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},JL=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!Ex(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},WL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&n0(Uint8Array)),QL=(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])}},ZL=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},tU=oi("HTMLFormElement"),eU=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Ox=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),rU=oi("RegExp"),Ax=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ol(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},nU=e=>{Ax(e,(t,r)=>{if(bn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(bn(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+"'")})}})},iU=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Es(e)?n(e):n(String(e).split(t)),r},oU=()=>{},sU=(e,t)=>(e=+e,Number.isFinite(e)?e:t),o0="abcdefghijklmnopqrstuvwxyz",Nx="0123456789",Rx={DIGIT:Nx,ALPHA:o0,ALPHA_DIGIT:o0+o0.toUpperCase()+Nx},aU=(e=16,t=Rx.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function lU(e){return!!(e&&bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cU=e=>{const t=new Array(10),r=(n,i)=>{if(Ou(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Es(n)?[]:{};return Ol(n,(s,a)=>{const c=r(s,i+1);!Tl(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},uU=oi("AsyncFunction"),hU=e=>e&&(Ou(e)||bn(e))&&bn(e.then)&&bn(e.catch),gt={isArray:Es,isArrayBuffer:kx,isBuffer:RL,isFormData:GL,isArrayBufferView:jL,isString:DL,isNumber:Ex,isBoolean:IL,isObject:Ou,isPlainObject:Au,isUndefined:Tl,isDate:FL,isFile:ML,isBlob:LL,isRegExp:rU,isFunction:bn,isStream:zL,isURLSearchParams:VL,isTypedArray:WL,isFileList:UL,forEach:Ol,merge:i0,extend:HL,trim:BL,stripBOM:qL,inherits:KL,toFlatObject:YL,kindOf:Pu,kindOfTest:oi,endsWith:XL,toArray:JL,forEachEntry:QL,matchAll:ZL,isHTMLForm:tU,hasOwnProperty:Ox,hasOwnProp:Ox,reduceDescriptors:Ax,freezeMethods:nU,toObjectSet:iU,toCamelCase:eU,noop:oU,toFiniteNumber:sU,findKey:Cx,global:Px,isContextDefined:Tx,ALPHABET:Rx,generateString:aU,isSpecCompliantForm:lU,toJSONObject:cU,isAsyncFn:uU,isThenable:hU};function ke(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(ke,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 jx=ke.prototype,Dx={};["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=>{Dx[e]={value:e}}),Object.defineProperties(ke,Dx),Object.defineProperty(jx,"isAxiosError",{value:!0}),ke.from=(e,t,r,n,i,o)=>{const s=Object.create(jx);return gt.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ke.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const dU=null;function s0(e){return gt.isPlainObject(e)||gt.isArray(e)}function Ix(e){return gt.endsWith(e,"[]")?e.slice(0,-2):e}function Fx(e,t,r){return e?e.concat(t).map(function(n,i){return n=Ix(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function fU(e){return gt.isArray(e)&&!e.some(s0)}const pU=gt.toFlatObject(gt,{},null,function(e){return/^is[A-Z]/.test(e)});function Nu(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,s=r.indexes,a=(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(!a&&gt.isBlob(h))throw new ke("Blob is not supported. Use a Buffer instead.");return gt.isArrayBuffer(h)||gt.isTypedArray(h)?a&&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)&&fU(h)||(gt.isFileList(h)||gt.endsWith(p,"[]"))&&(v=gt.toArray(h)))return p=Ix(p),v.forEach(function(b,_){!(gt.isUndefined(b)||b===null)&&t.append(s===!0?Fx([p],_,o):s===null?p:p+"[]",c(b))}),!1}return s0(h)?!0:(t.append(Fx(g,p,o),c(h)),!1)}const u=[],d=Object.assign(pU,{defaultVisitor:l,convertValue:c,isVisitable:s0});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 Mx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function a0(e,t){this._pairs=[],e&&Nu(e,this,t)}const Lx=a0.prototype;Lx.append=function(e,t){this._pairs.push([e,t])},Lx.toString=function(e){const t=e?function(r){return e.call(this,r,Mx)}:Mx;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function mU(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ux(e,t,r){if(!t)return e;const n=r&&r.encode||mU,i=r&&r.serialize;let o;if(i?o=i(t,r):o=gt.isURLSearchParams(t)?t.toString():new a0(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class gU{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 zx=gU,Gx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vU=typeof URLSearchParams<"u"?URLSearchParams:a0,yU=typeof FormData<"u"?FormData:null,_U=typeof Blob<"u"?Blob:null,bU=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),wU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",si={isBrowser:!0,classes:{URLSearchParams:vU,FormData:yU,Blob:_U},isStandardBrowserEnv:bU,isStandardBrowserWebWorkerEnv:wU,protocols:["http","https","file","blob","url","data"]};function xU(e,t){return Nu(e,new si.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return si.isNode&&gt.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function SU(e){return gt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $U(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 Vx(e){function t(r,n,i,o){let s=r[o++];const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&gt.isArray(i)?i.length:s,c?(gt.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!gt.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&gt.isArray(i[s])&&(i[s]=$U(i[s])),!a)}if(gt.isFormData(e)&&gt.isFunction(e.entries)){const r={};return gt.forEachEntry(e,(n,i)=>{t(SU(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 l0={transitional:Gx,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(Vx(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 xU(e,this.formSerializer).toString();if((o=gt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Nu(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),kU(e)):e}],transformResponse:[function(e){const t=this.transitional||l0.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"?ke.from(o,ke.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:si.classes.FormData,Blob:si.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=>{l0.headers[e]={}});const c0=l0,EU=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"]),CU=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]&&EU[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Bx=Symbol("internals");function Al(e){return e&&String(e).trim().toLowerCase()}function Ru(e){return e===!1||e==null?e:gt.isArray(e)?e.map(Ru):String(e)}function PU(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 TU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u0(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 OU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function AU(e,t){const r=gt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}class ju{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,l){const u=Al(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]=Ru(a))}const s=(a,c)=>gt.forEach(a,(l,u)=>o(l,u,c));return gt.isPlainObject(t)||t instanceof this.constructor?s(t,r):gt.isString(t)&&(t=t.trim())&&!TU(t)?s(CU(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Al(t),t){const n=gt.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return PU(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=Al(t),t){const n=gt.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||u0(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Al(s),s){const a=gt.findKey(n,s);a&&(!r||u0(n,n[a],a,r))&&(delete n[a],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||u0(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 s=gt.findKey(n,o);if(s){r[s]=Ru(i),delete r[o];return}const a=t?OU(o):String(o).trim();a!==o&&delete r[o],r[a]=Ru(i),n[a]=!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[Bx]=this[Bx]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=Al(o);r[s]||(AU(n,o),r[s]=!0)}return gt.isArray(t)?t.forEach(i):i(t),this}}ju.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),gt.reduceDescriptors(ju.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),gt.freezeMethods(ju);const Oi=ju;function h0(e,t){const r=this||c0,n=t||r,i=Oi.from(n.headers);let o=n.data;return gt.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Hx(e){return!!(e&&e.__CANCEL__)}function Nl(e,t,r){ke.call(this,e??"canceled",ke.ERR_CANCELED,t,r),this.name="CanceledError"}gt.inherits(Nl,ke,{__CANCEL__:!0});function NU(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ke("Request failed with status code "+r.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const RU=si.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,i,o){const s=[];s.push(e+"="+encodeURIComponent(t)),gt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),gt.isString(n)&&s.push("path="+n),gt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function jU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DU(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function qx(e,t){return e&&!jU(t)?DU(e,t):t}const IU=si.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 FU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function MU(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),l=n[o];s||(s=c),r[i]=a,n[i]=c;let u=o,d=0;for(;u!==i;)d+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Kx(e,t){let r=0;const n=MU(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-r,c=n(a),l=o<=s;r=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const LU=typeof XMLHttpRequest<"u",UU=LU&&function(e){return new Promise(function(t,r){let n=e.data;const i=Oi.from(e.headers).normalize(),o=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;gt.isFormData(n)&&(si.isStandardBrowserEnv||si.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=qx(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ux(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=Oi.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};NU(function(g){t(g),a()},function(g){r(g),a()},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 ke("Request aborted",ke.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new ke("Network Error",ke.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||Gx;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new ke(h,p.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,l)),l=null},si.isStandardBrowserEnv){const h=(e.withCredentials||IU(u))&&e.xsrfCookieName&&RU.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",Kx(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Kx(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{l&&(r(!h||h.type?new Nl(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const f=FU(u);if(f&&si.protocols.indexOf(f)===-1){r(new ke("Unsupported protocol "+f+":",ke.ERR_BAD_REQUEST,e));return}l.send(n||null)})},d0={http:dU,xhr:UU};gt.forEach(d0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yx=e=>`- ${e}`,zU=e=>gt.isFunction(e)||e===null||e===!1,Xx={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 s;if(n=r,!zU(r)&&(n=d0[(s=String(r)).toLowerCase()],n===void 0))throw new ke(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
58
- `+o.map(Yx).join(`
59
- `):" "+Yx(o[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:d0};function f0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nl(null,e)}function Jx(e){return f0(e),e.headers=Oi.from(e.headers),e.data=h0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xx.getAdapter(e.adapter||c0.adapter)(e).then(function(t){return f0(e),t.data=h0.call(e,e.transformResponse,t),t.headers=Oi.from(t.headers),t},function(t){return Hx(t)||(f0(e),t&&t.response&&(t.response.data=h0.call(e,e.transformResponse,t.response),t.response.headers=Oi.from(t.response.headers))),Promise.reject(t)})}const Wx=e=>e instanceof Oi?e.toJSON():e;function Cs(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 s(l,u){if(gt.isUndefined(u)){if(!gt.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,u)=>i(Wx(l),Wx(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!==a||(r[l]=d)}),r}const Qx="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 Zx={};p0.transitional=function(e,t,r){function n(i,o){return"[Axios v"+Qx+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new ke(n(o," has been removed"+(t?" in "+t:"")),ke.ERR_DEPRECATED);return t&&!Zx[o]&&(Zx[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function GU(e,t,r){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new ke("option "+o+" must be "+c,ke.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ke("Unknown option "+o,ke.ERR_BAD_OPTION)}}const m0={assertOptions:GU,validators:p0},io=m0.validators;class Du{constructor(t){this.defaults=t,this.interceptors={request:new zx,response:new zx}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Cs(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&m0.assertOptions(n,{silentJSONParsing:io.transitional(io.boolean),forcedJSONParsing:io.transitional(io.boolean),clarifyTimeoutError:io.transitional(io.boolean)},!1),i!=null&&(gt.isFunction(i)?r.paramsSerializer={serialize:i}:m0.assertOptions(i,{encode:io.function,serialize:io.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&gt.merge(o.common,o[r.method]);o&&gt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=Oi.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const p=[Jx.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,u=Promise.resolve(r);d<f;)u=u.then(p[d++],p[d++]);return u}f=a.length;let h=r;for(d=0;d<f;){const p=a[d++],g=a[d++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=Jx.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=Cs(this.defaults,t);const r=qx(t.baseURL,t.url);return Ux(r,t.params,t.paramsSerializer)}}gt.forEach(["delete","get","head","options"],function(e){Du.prototype[e]=function(t,r){return this.request(Cs(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(Cs(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Du.prototype[e]=t(),Du.prototype[e+"Form"]=t(!0)});const Iu=Du;class g0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new Nl(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new g0(function(r){t=r}),cancel:t}}}const VU=g0;function BU(e){return function(t){return e.apply(null,t)}}function HU(e){return gt.isObject(e)&&e.isAxiosError===!0}const v0={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(v0).forEach(([e,t])=>{v0[t]=e});const qU=v0;function t5(e){const t=new Iu(e),r=$x(Iu.prototype.request,t);return gt.extend(r,Iu.prototype,t,{allOwnKeys:!0}),gt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return t5(Cs(e,n))},r}const vr=t5(c0);vr.Axios=Iu,vr.CanceledError=Nl,vr.CancelToken=VU,vr.isCancel=Hx,vr.VERSION=Qx,vr.toFormData=Nu,vr.AxiosError=ke,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=BU,vr.isAxiosError=HU,vr.mergeConfig=Cs,vr.AxiosHeaders=Oi,vr.formToJSON=e=>Vx(gt.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=Xx.getAdapter,vr.HttpStatusCode=qU,vr.default=vr;var y0=function(e,t){return y0=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])},y0(e,t)};function oo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");y0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function _0(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 Rl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function jl(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 Ai(e){return typeof e=="function"}function b0(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 w0=b0(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 Fu(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Dl=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=_0(s),c=a.next();!c.done;c=a.next()){var l=c.value;l.remove(this)}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(Ai(u))try{u()}catch(g){o=g instanceof w0?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=_0(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{n5(p)}catch(g){o=o??[],g instanceof w0?o=jl(jl([],Rl(o)),Rl(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 w0(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)n5(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)&&Fu(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Fu(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),e5=Dl.EMPTY;function r5(e){return e instanceof Dl||e&&"closed"in e&&Ai(e.remove)&&Ai(e.add)&&Ai(e.unsubscribe)}function n5(e){Ai(e)?e():e.unsubscribe()}var i5={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},KU={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,jl([e,t],Rl(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function YU(e){KU.setTimeout(function(){throw e})}function o5(){}function Mu(e){e()}var x0=function(e){oo(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,r5(r)&&r.add(n)):n.destination=QU,n}return t.create=function(r,n,i){return new $0(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}(Dl),XU=Function.prototype.bind;function S0(e,t){return XU.call(e,t)}var JU=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){Lu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Lu(n)}else Lu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Lu(r)}},e}(),$0=function(e){oo(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(Ai(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&i5.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&S0(r.next,a),error:r.error&&S0(r.error,a),complete:r.complete&&S0(r.complete,a)}):s=r}return o.destination=new JU(s),o}return t}(x0);function Lu(e){YU(e)}function WU(e){throw e}var QU={closed:!0,next:o5,error:WU,complete:o5},ZU=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tz(e){return e}function ez(e){return e.length===0?tz:e.length===1?e[0]:function(t){return e.reduce(function(r,n){return n(r)},t)}}var s5=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=nz(t)?t:new $0(t,r,n);return Mu(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=a5(r),new r(function(i,o){var s=new $0({next:function(a){try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ZU]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ez(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=a5(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function a5(e){var t;return(t=e??i5.Promise)!==null&&t!==void 0?t:Promise}function rz(e){return e&&Ai(e.next)&&Ai(e.error)&&Ai(e.complete)}function nz(e){return e&&e instanceof x0||rz(e)&&r5(e)}(function(e){oo(t,e);function t(r,n,i,o,s,a){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=o?function(l){try{o(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=i?function(){try{i()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(x0);var iz=b0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),oz=function(e){oo(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 l5(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new iz},t.prototype.next=function(r){var n=this;Mu(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=_0(n.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Mu(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;Mu(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?e5:(this.currentObservers=null,a.push(r),new Dl(function(){n.currentObservers=null,Fu(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new s5;return r.source=this,r},t.create=function(r,n){return new l5(r,n)},t}(s5),l5=function(e){oo(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:e5},t}(oz),sz={now:function(){return Date.now()},delegate:void 0},az=function(e){oo(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Dl),k0={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=k0.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,jl([e,t],Rl(r))):setInterval.apply(void 0,jl([e,t],Rl(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},lz=function(e){oo(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),k0.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&&k0.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Fu(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(az),c5=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=sz.now,e}(),cz=function(e){oo(t,e);function t(r,n){n===void 0&&(n=c5.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}(c5);new cz(lz);function uz(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 u5=b0(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=uz(r)}catch{i=r.responseText}this.response=i}});(function(){function e(t,r){return u5.call(this,"ajax timeout",t,r),this.name="AjaxTimeoutError",this}return e.prototype=Object.create(u5.prototype),e})();var hz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var E0={exports:{}},Ps=typeof Reflect=="object"?Reflect:null,h5=Ps&&typeof Ps.apply=="function"?Ps.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},Uu;Ps&&typeof Ps.ownKeys=="function"?Uu=Ps.ownKeys:Object.getOwnPropertySymbols?Uu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Uu=function(e){return Object.getOwnPropertyNames(e)};function dz(e){console&&console.warn&&console.warn(e)}var d5=Number.isNaN||function(e){return e!==e};function ze(){ze.init.call(this)}E0.exports=ze,E0.exports.once=gz,ze.EventEmitter=ze,ze.prototype._events=void 0,ze.prototype._eventsCount=0,ze.prototype._maxListeners=void 0;var f5=10;function zu(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 f5},set:function(e){if(typeof e!="number"||e<0||d5(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");f5=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||d5(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 p5(e){return e._maxListeners===void 0?ze.defaultMaxListeners:e._maxListeners}ze.prototype.getMaxListeners=function(){return p5(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 s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")h5(a,this,t);else for(var c=a.length,l=_5(a,c),r=0;r<c;++r)h5(l[r],this,t);return!0};function m5(e,t,r,n){var i,o,s;if(zu(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=p5(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,dz(a)}return e}ze.prototype.addListener=function(e,t){return m5(this,e,t,!1)},ze.prototype.on=ze.prototype.addListener,ze.prototype.prependListener=function(e,t){return m5(this,e,t,!0)};function fz(){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 g5(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fz.bind(n);return i.listener=r,n.wrapFn=i,i}ze.prototype.once=function(e,t){return zu(t),this.on(e,g5(this,e,t)),this},ze.prototype.prependOnceListener=function(e,t){return zu(t),this.prependListener(e,g5(this,e,t)),this},ze.prototype.removeListener=function(e,t){var r,n,i,o,s;if(zu(t),n=this._events,n===void 0)return this;if(r=n[e],r===void 0)return this;if(r===t||r.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!="function"){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():pz(r,i),r.length===1&&(n[e]=r[0]),n.removeListener!==void 0&&this.emit("removeListener",e,s||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 v5(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?mz(i):_5(i,i.length)}ze.prototype.listeners=function(e){return v5(this,e,!0)},ze.prototype.rawListeners=function(e){return v5(this,e,!1)},ze.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):y5.call(e,t)},ze.prototype.listenerCount=y5;function y5(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?Uu(this._events):[]};function _5(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function pz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function mz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function gz(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}b5(e,t,o,{once:!0}),t!=="error"&&vz(e,i,{once:!0})})}function vz(e,t,r){typeof e.on=="function"&&b5(e,"error",t,r)}function b5(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 yz=E0.exports;class wY extends yz.EventEmitter{constructor(){super()}on(t,r){return super.on(t,r)}addListener(t,r){return this.on(t,r)}prependListener(t,r){return super.prependListener(t,r)}once(t,r){return super.once(t,r)}prependOnceListener(t,r){return super.prependOnceListener(t,r)}removeListener(t,r){return super.removeListener(t,r)}off(t,r){return super.off(t,r)}removeAllListeners(t){return super.removeAllListeners(t)}emit(t,...r){return super.emit(t,...r)}listeners(t){return super.listeners(t)}rawListeners(t){return super.rawListeners(t)}listenerCount(t){return super.listenerCount(t)}}var C0={exports:{}},P0={},Ni={},Go={},T0={},O0={},A0={};(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(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((m,S)=>`${m}${S}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((m,S)=>(S instanceof r&&(m[S.str]=(m[S.str]||0)+1),m),{})}}e._Code=n,e.nil=new n("");function i(b,..._){const m=[b[0]];let S=0;for(;S<_.length;)a(m,_[S]),m.push(b[++S]);return new n(m)}e._=i;const o=new n("+");function s(b,..._){const m=[h(b[0])];let S=0;for(;S<_.length;)m.push(o),a(m,_[S]),m.push(o,h(b[++S]));return c(m),new n(m)}e.str=s;function a(b,_){_ instanceof n?b.push(..._._items):_ instanceof r?b.push(_):b.push(d(_))}e.addCodeArg=a;function c(b){let _=1;for(;_<b.length-1;){if(b[_]===o){const m=l(b[_-1],b[_+1]);if(m!==void 0){b.splice(_-1,3,m);continue}b[_++]="+"}_++}}function l(b,_){if(_==='""')return b;if(b==='""')return _;if(typeof b=="string")return _ instanceof r||b[b.length-1]!=='"'?void 0:typeof _!="string"?`${b.slice(0,-1)}${_}"`:_[0]==='"'?b.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(b instanceof r))return`"${b}${_.slice(1)}`}function u(b,_){return _.emptyStr()?b:b.emptyStr()?_:s`${b}${_}`}e.strConcat=u;function d(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function f(b){return new n(h(b))}e.stringify=f;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function p(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new n(`.${b}`):i`[${b}]`}e.getProperty=p;function g(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new n(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=g;function v(b){return new n(b.toString())}e.regexpCode=v})(A0);const _z=Wr(A0),bz=zt({__proto__:null,default:_z},[A0]),Il=Gt(bz);var N0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Il;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 s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var 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 _=g.get(p);if(_)return _}else g=this._values[h]=new Map;g.set(p,f);const v=this._scope[h]||(this._scope[h]=[]),b=v.length;return v[b]=u.ref,f.setValue(u,{property:h,itemIndex:b}),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(b=>{if(v.has(b))return;v.set(b,n.Started);let _=u(b);if(_){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${m} ${b} = ${_};${this.opts._n}`}else if(_=f==null?void 0:f(b))h=(0,t._)`${h}${_}${this.opts._n}`;else throw new r(b);v.set(b,n.Completed)})}return h}}e.ValueScope=a})(N0);const wz=Wr(N0),xz=zt({__proto__:null,default:wz},[N0]),w5=Gt(xz);(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=Il,r=w5;var n=Il;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=w5;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(y,C){return this}}class s extends o{constructor(y,C,M){super(),this.varKind=y,this.name=C,this.rhs=M}render({es5:y,_n:C}){const M=y?r.varKinds.var:this.varKind,I=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${I};`+C}optimizeNames(y,C){if(y[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,y,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(y,C,M){super(),this.lhs=y,this.rhs=C,this.sideEffects=M}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,C){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,y,C),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return nt(y,this.rhs)}}class c extends a{constructor(y,C,M,I){super(y,M,I),this.op=C}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class l extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class u extends o{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class d extends o{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class f extends o{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,C){return this.code=rt(this.code,y,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((C,M)=>C+M.render(y),"")}optimizeNodes(){const{nodes:y}=this;let C=y.length;for(;C--;){const M=y[C].optimizeNodes();Array.isArray(M)?y.splice(C,1,...M):M?y[C]=M:y.splice(C,1)}return y.length>0?this:void 0}optimizeNames(y,C){const{nodes:M}=this;let I=M.length;for(;I--;){const G=M[I];G.optimizeNames(y,C)||(lt(y,G.names),M.splice(I,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((y,C)=>W(y,C.names),{})}}class p extends h{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class g extends h{}class v extends p{}v.kind="else";class b extends p{constructor(y,C){super(C),this.condition=y}render(y){let C=`if(${this.condition})`+super.render(y);return this.else&&(C+="else "+this.else.render(y)),C}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let C=this.else;if(C){const M=C.optimizeNodes();C=this.else=Array.isArray(M)?new v(M):M}if(C)return y===!1?C instanceof b?C:C.nodes:this.nodes.length?this:new b(xt(y),C instanceof b?[C]:C.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,C){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(y,C),!!(super.optimizeNames(y,C)||this.else))return this.condition=rt(this.condition,y,C),this}get names(){const y=super.names;return nt(y,this.condition),this.else&&W(y,this.else.names),y}}b.kind="if";class _ extends p{}_.kind="for";class m extends _{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,C){if(super.optimizeNames(y,C))return this.iteration=rt(this.iteration,y,C),this}get names(){return W(super.names,this.iteration.names)}}class S extends _{constructor(y,C,M,I){super(),this.varKind=y,this.name=C,this.from=M,this.to=I}render(y){const C=y.es5?r.varKinds.var:this.varKind,{name:M,from:I,to:G}=this;return`for(${C} ${M}=${I}; ${M}<${G}; ${M}++)`+super.render(y)}get names(){const y=nt(super.names,this.from);return nt(y,this.to)}}class N extends _{constructor(y,C,M,I){super(),this.loop=y,this.varKind=C,this.name=M,this.iterable=I}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,C){if(super.optimizeNames(y,C))return this.iterable=rt(this.iterable,y,C),this}get names(){return W(super.names,this.iterable.names)}}class k extends p{constructor(y,C,M){super(),this.name=y,this.args=C,this.async=M}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}k.kind="func";class A extends h{render(y){return"return "+super.render(y)}}A.kind="return";class R extends p{render(y){let C="try"+super.render(y);return this.catch&&(C+=this.catch.render(y)),this.finally&&(C+=this.finally.render(y)),C}optimizeNodes(){var y,C;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(y,C){var M,I;return super.optimizeNames(y,C),(M=this.catch)===null||M===void 0||M.optimizeNames(y,C),(I=this.finally)===null||I===void 0||I.optimizeNames(y,C),this}get names(){const y=super.names;return this.catch&&W(y,this.catch.names),this.finally&&W(y,this.finally.names),y}}class z extends p{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}z.kind="catch";class B extends p{render(y){return"finally"+super.render(y)}}B.kind="finally";class Y{constructor(y,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
62
- `:""},this._extScope=y,this._scope=new r.Scope({parent:y}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,C){const M=this._extScope.value(y,C);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(y,C){return this._extScope.getValue(y,C)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,C,M,I){const G=this._scope.toName(C);return M!==void 0&&I&&(this._constants[G.str]=M),this._leafNode(new s(y,G,M)),G}const(y,C,M){return this._def(r.varKinds.const,y,C,M)}let(y,C,M){return this._def(r.varKinds.let,y,C,M)}var(y,C,M){return this._def(r.varKinds.var,y,C,M)}assign(y,C,M){return this._leafNode(new a(y,C,M))}add(y,C){return this._leafNode(new c(y,e.operators.ADD,C))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new f(y)),this}object(...y){const C=["{"];for(const[M,I]of y)C.length>1&&C.push(","),C.push(M),(M!==I||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,I));return C.push("}"),new t._Code(C)}if(y,C,M){if(this._blockNode(new b(y)),C&&M)this.code(C).else().code(M).endIf();else if(C)this.code(C).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new b(y))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(y,C){return this._blockNode(y),C&&this.code(C).endFor(),this}for(y,C){return this._for(new m(y),C)}forRange(y,C,M,I,G=this.opts.es5?r.varKinds.var:r.varKinds.let){const q=this._scope.toName(y);return this._for(new S(G,q,C,M),()=>I(q))}forOf(y,C,M,I=r.varKinds.const){const G=this._scope.toName(y);if(this.opts.es5){const q=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${q}.length`,et=>{this.var(G,(0,t._)`${q}[${et}]`),M(G)})}return this._for(new N("of",I,G,C),()=>M(G))}forIn(y,C,M,I=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${C})`,M);const G=this._scope.toName(y);return this._for(new N("in",I,G,C),()=>M(G))}endFor(){return this._endBlockNode(_)}label(y){return this._leafNode(new l(y))}break(y){return this._leafNode(new u(y))}return(y){const C=new A;if(this._blockNode(C),this.code(y),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(y,C,M){if(!C&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const I=new R;if(this._blockNode(I),this.code(y),C){const G=this.name("e");this._currNode=I.catch=new z(G),C(G)}return M&&(this._currNode=I.finally=new B,this.code(M)),this._endBlockNode(z,B)}throw(y){return this._leafNode(new d(y))}block(y,C){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(C),this}endBlock(y){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-C;if(M<0||y!==void 0&&M!==y)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${y} expected`);return this._nodes.length=C,this}func(y,C=t.nil,M,I){return this._blockNode(new k(y,C,M)),I&&this.code(I).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,C){const M=this._currNode;if(M instanceof y||C&&M instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${y.kind}/${C.kind}`:y.kind}"`)}_elseNode(y){const C=this._currNode;if(!(C instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const C=this._nodes;C[C.length-1]=y}}e.CodeGen=Y;function W($,y){for(const C in y)$[C]=($[C]||0)+(y[C]||0);return $}function nt($,y){return y instanceof t._CodeOrName?W($,y.names):$}function rt($,y,C){if($ instanceof t.Name)return M($);if(!I($))return $;return new t._Code($._items.reduce((G,q)=>(q instanceof t.Name&&(q=M(q)),q instanceof t._Code?G.push(...q._items):G.push(q),G),[]));function M(G){const q=C[G.str];return q===void 0||y[G.str]!==1?G:(delete y[G.str],q)}function I(G){return G instanceof t._Code&&G._items.some(q=>q instanceof t.Name&&y[q.str]===1&&C[q.str]!==void 0)}}function lt($,y){for(const C in y)$[C]=($[C]||0)-(y[C]||0)}function xt($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:(0,t._)`!${E($)}`}e.not=xt;const Ct=T(e.operators.AND);function $t(...$){return $.reduce(Ct)}e.and=$t;const st=T(e.operators.OR);function X(...$){return $.reduce(st)}e.or=X;function T($){return(y,C)=>y===t.nil?C:C===t.nil?y:(0,t._)`${E(y)} ${$} ${E(C)}`}function E($){return $ instanceof t.Name?$:(0,t._)`(${$})`}})(O0);const Sz=Wr(O0),$z=zt({__proto__:null,default:Sz},[O0]),ge=Gt($z);var R0={};(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=ge,r=Il;function n(k){const A={};for(const R of k)A[R]=!0;return A}e.toHash=n;function i(k,A){return typeof A=="boolean"?A:Object.keys(A).length===0?!0:(o(k,A),!s(A,k.self.RULES.all))}e.alwaysValidSchema=i;function o(k,A=k.schema){const{opts:R,self:z}=k;if(!R.strictSchema||typeof A=="boolean")return;const B=z.RULES.keywords;for(const Y in A)B[Y]||N(k,`unknown keyword: "${Y}"`)}e.checkUnknownRules=o;function s(k,A){if(typeof k=="boolean")return!k;for(const R in k)if(A[R])return!0;return!1}e.schemaHasRules=s;function a(k,A){if(typeof k=="boolean")return!k;for(const R in k)if(R!=="$ref"&&A.all[R])return!0;return!1}e.schemaHasRulesButRef=a;function c({topSchemaRef:k,schemaPath:A},R,z,B){if(!B){if(typeof R=="number"||typeof R=="boolean")return R;if(typeof R=="string")return(0,t._)`${R}`}return(0,t._)`${k}${A}${(0,t.getProperty)(z)}`}e.schemaRefOrVal=c;function l(k){return f(decodeURIComponent(k))}e.unescapeFragment=l;function u(k){return encodeURIComponent(d(k))}e.escapeFragment=u;function d(k){return typeof k=="number"?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function f(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=f;function h(k,A){if(Array.isArray(k))for(const R of k)A(R);else A(k)}e.eachItem=h;function p({mergeNames:k,mergeToName:A,mergeValues:R,resultToName:z}){return(B,Y,W,nt)=>{const rt=W===void 0?Y:W instanceof t.Name?(Y instanceof t.Name?k(B,Y,W):A(B,Y,W),W):Y instanceof t.Name?(A(B,W,Y),Y):R(Y,W);return nt===t.Name&&!(rt instanceof t.Name)?z(B,rt):rt}}e.mergeEvaluated={props:p({mergeNames:(k,A,R)=>k.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>{k.if((0,t._)`${A} === true`,()=>k.assign(R,!0),()=>k.assign(R,(0,t._)`${R} || {}`).code((0,t._)`Object.assign(${R}, ${A})`))}),mergeToName:(k,A,R)=>k.if((0,t._)`${R} !== true`,()=>{A===!0?k.assign(R,!0):(k.assign(R,(0,t._)`${R} || {}`),v(k,R,A))}),mergeValues:(k,A)=>k===!0?!0:{...k,...A},resultToName:g}),items:p({mergeNames:(k,A,R)=>k.if((0,t._)`${R} !== true && ${A} !== undefined`,()=>k.assign(R,(0,t._)`${A} === true ? true : ${R} > ${A} ? ${R} : ${A}`)),mergeToName:(k,A,R)=>k.if((0,t._)`${R} !== true`,()=>k.assign(R,A===!0?!0:(0,t._)`${R} > ${A} ? ${R} : ${A}`)),mergeValues:(k,A)=>k===!0?!0:Math.max(k,A),resultToName:(k,A)=>k.var("items",A)})};function g(k,A){if(A===!0)return k.var("props",!0);const R=k.var("props",(0,t._)`{}`);return A!==void 0&&v(k,R,A),R}e.evaluatedPropsToName=g;function v(k,A,R){Object.keys(R).forEach(z=>k.assign((0,t._)`${A}${(0,t.getProperty)(z)}`,!0))}e.setEvaluated=v;const b={};function _(k,A){return k.scopeValue("func",{ref:A,code:b[A.code]||(b[A.code]=new r._Code(A.code))})}e.useFunc=_;var m;(function(k){k[k.Num=0]="Num",k[k.Str=1]="Str"})(m=e.Type||(e.Type={}));function S(k,A,R){if(k instanceof t.Name){const z=A===m.Num;return R?z?(0,t._)`"[" + ${k} + "]"`:(0,t._)`"['" + ${k} + "']"`:z?(0,t._)`"/" + ${k}`:(0,t._)`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return R?(0,t.getProperty)(k).toString():"/"+d(k)}e.getErrorPath=S;function N(k,A,R=k.opts.strictSchema){if(R){if(A=`strict mode: ${A}`,R===!0)throw new Error(A);k.self.logger.warn(A)}}e.checkStrictMode=N})(R0);const kz=Wr(R0),Ez=zt({__proto__:null,default:kz},[R0]),Te=Gt(Ez);var j0={};Object.defineProperty(j0,"__esModule",{value:!0});const Nr=ge,Cz={data:new Nr.Name("data"),valCxt:new Nr.Name("valCxt"),instancePath:new Nr.Name("instancePath"),parentData:new Nr.Name("parentData"),parentDataProperty:new Nr.Name("parentDataProperty"),rootData:new Nr.Name("rootData"),dynamicAnchors:new Nr.Name("dynamicAnchors"),vErrors:new Nr.Name("vErrors"),errors:new Nr.Name("errors"),this:new Nr.Name("this"),self:new Nr.Name("self"),scope:new Nr.Name("scope"),json:new Nr.Name("json"),jsonPos:new Nr.Name("jsonPos"),jsonLen:new Nr.Name("jsonLen"),jsonPart:new Nr.Name("jsonPart")};var Pz=j0.default=Cz;const Tz=zt({__proto__:null,default:Pz},[j0]),Ri=Gt(Tz);(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=ge,r=Te,n=Ri;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:b})=>b?(0,t.str)`"${v}" keyword must be ${b} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,b=e.keywordError,_,m){const{it:S}=v,{gen:N,compositeRule:k,allErrors:A}=S,R=d(v,b,_);m??(k||A)?c(N,R):l(S,(0,t._)`[${R}]`)}e.reportError=i;function o(v,b=e.keywordError,_){const{it:m}=v,{gen:S,compositeRule:N,allErrors:k}=m,A=d(v,b,_);c(S,A),N||k||l(m,n.default.vErrors)}e.reportExtraError=o;function s(v,b){v.assign(n.default.errors,b),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(b,()=>v.assign((0,t._)`${n.default.vErrors}.length`,b),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:v,keyword:b,schemaValue:_,data:m,errsCount:S,it:N}){if(S===void 0)throw new Error("ajv implementation error");const k=v.name("err");v.forRange("i",S,n.default.errors,A=>{v.const(k,(0,t._)`${n.default.vErrors}[${A}]`),v.if((0,t._)`${k}.instancePath === undefined`,()=>v.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,N.errorPath))),v.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${N.errSchemaPath}/${b}`),N.opts.verbose&&(v.assign((0,t._)`${k}.schema`,_),v.assign((0,t._)`${k}.data`,m))})}e.extendErrors=a;function c(v,b){const _=v.const("err",b);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${n.default.vErrors}.push(${_})`),v.code((0,t._)`${n.default.errors}++`)}function l(v,b){const{gen:_,validateName:m,schemaEnv:S}=v;S.$async?_.throw((0,t._)`new ${v.ValidationError}(${b})`):(_.assign((0,t._)`${m}.errors`,b),_.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,b,_){const{createErrors:m}=v.it;return m===!1?(0,t._)`{}`:f(v,b,_)}function f(v,b,_={}){const{gen:m,it:S}=v,N=[h(S,_),p(v,_)];return g(v,b,N),m.object(...N)}function h({errorPath:v},{instancePath:b}){const _=b?(0,t.str)`${v}${(0,r.getErrorPath)(b,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,_)]}function p({keyword:v,it:{errSchemaPath:b}},{schemaPath:_,parentSchema:m}){let S=m?b:(0,t.str)`${b}/${v}`;return _&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(_,r.Type.Str)}`),[u.schemaPath,S]}function g(v,{params:b,message:_},m){const{keyword:S,data:N,schemaValue:k,it:A}=v,{opts:R,propertyName:z,topSchemaRef:B,schemaPath:Y}=A;m.push([u.keyword,S],[u.params,typeof b=="function"?b(v):b||(0,t._)`{}`]),R.messages&&m.push([u.message,typeof _=="function"?_(v):_]),R.verbose&&m.push([u.schema,k],[u.parentSchema,(0,t._)`${B}${Y}`],[n.default.data,N]),z&&m.push([u.propertyName,z])}})(T0);const Oz=Wr(T0),Az=zt({__proto__:null,default:Oz},[T0]),Fl=Gt(Az);Object.defineProperty(Go,"__esModule",{value:!0});var x5=Go.boolOrEmptySchema=S5=Go.topBoolOrEmptySchema=void 0;const Nz=Fl,Rz=ge,jz=Ri,Dz={message:"boolean schema is false"};function Iz(e){const{gen:t,schema:r,validateName:n}=e;r===!1?$5(e,!1):typeof r=="object"&&r.$async===!0?t.return(jz.default.data):(t.assign((0,Rz._)`${n}.errors`,null),t.return(!0))}var S5=Go.topBoolOrEmptySchema=Iz;function Fz(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),$5(e)):r.var(t,!0)}x5=Go.boolOrEmptySchema=Fz;function $5(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,Nz.reportError)(i,Dz,void 0,t)}const Mz=zt({__proto__:null,get boolOrEmptySchema(){return x5},default:Go,get topBoolOrEmptySchema(){return S5}},[Go]),Lz=Gt(Mz);var D0={},Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});var k5=Vo.getRules=E5=Vo.isJSONType=void 0;const Uz=["string","number","integer","boolean","null","object","array"],zz=new Set(Uz);function Gz(e){return typeof e=="string"&&zz.has(e)}var E5=Vo.isJSONType=Gz;function Vz(){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:{}}}k5=Vo.getRules=Vz;const Bz=zt({__proto__:null,default:Vo,get getRules(){return k5},get isJSONType(){return E5}},[Vo]),C5=Gt(Bz);var ji={};Object.defineProperty(ji,"__esModule",{value:!0});var P5=ji.shouldUseRule=A5=ji.shouldUseGroup=T5=ji.schemaHasRulesForType=void 0;function Hz({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&O5(e,n)}var T5=ji.schemaHasRulesForType=Hz;function O5(e,t){return t.rules.some(r=>N5(e,r))}var A5=ji.shouldUseGroup=O5;function N5(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))}P5=ji.shouldUseRule=N5;const qz=zt({__proto__:null,default:ji,get schemaHasRulesForType(){return T5},get shouldUseGroup(){return A5},get shouldUseRule(){return P5}},[ji]),R5=Gt(qz);(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=C5,r=R5,n=Fl,i=ge,o=Te;var s;(function(m){m[m.Correct=0]="Correct",m[m.Wrong=1]="Wrong"})(s=e.DataType||(e.DataType={}));function a(m){const S=c(m.type);if(S.includes("null")){if(m.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!S.length&&m.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');m.nullable===!0&&S.push("null")}return S}e.getSchemaTypes=a;function c(m){const S=Array.isArray(m)?m:m?[m]:[];if(S.every(t.isJSONType))return S;throw new Error("type must be JSONType or JSONType[]: "+S.join(","))}e.getJSONTypes=c;function l(m,S){const{gen:N,data:k,opts:A}=m,R=d(S,A.coerceTypes),z=S.length>0&&!(R.length===0&&S.length===1&&(0,r.schemaHasRulesForType)(m,S[0]));if(z){const B=g(S,k,A.strictNumbers,s.Wrong);N.if(B,()=>{R.length?f(m,S,R):b(m)})}return z}e.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function d(m,S){return S?m.filter(N=>u.has(N)||S==="array"&&N==="array"):[]}function f(m,S,N){const{gen:k,data:A,opts:R}=m,z=k.let("dataType",(0,i._)`typeof ${A}`),B=k.let("coerced",(0,i._)`undefined`);R.coerceTypes==="array"&&k.if((0,i._)`${z} == 'object' && Array.isArray(${A}) && ${A}.length == 1`,()=>k.assign(A,(0,i._)`${A}[0]`).assign(z,(0,i._)`typeof ${A}`).if(g(S,A,R.strictNumbers),()=>k.assign(B,A))),k.if((0,i._)`${B} !== undefined`);for(const W of N)(u.has(W)||W==="array"&&R.coerceTypes==="array")&&Y(W);k.else(),b(m),k.endIf(),k.if((0,i._)`${B} !== undefined`,()=>{k.assign(A,B),h(m,B)});function Y(W){switch(W){case"string":k.elseIf((0,i._)`${z} == "number" || ${z} == "boolean"`).assign(B,(0,i._)`"" + ${A}`).elseIf((0,i._)`${A} === null`).assign(B,(0,i._)`""`);return;case"number":k.elseIf((0,i._)`${z} == "boolean" || ${A} === null
63
- || (${z} == "string" && ${A} && ${A} == +${A})`).assign(B,(0,i._)`+${A}`);return;case"integer":k.elseIf((0,i._)`${z} === "boolean" || ${A} === null
64
- || (${z} === "string" && ${A} && ${A} == +${A} && !(${A} % 1))`).assign(B,(0,i._)`+${A}`);return;case"boolean":k.elseIf((0,i._)`${A} === "false" || ${A} === 0 || ${A} === null`).assign(B,!1).elseIf((0,i._)`${A} === "true" || ${A} === 1`).assign(B,!0);return;case"null":k.elseIf((0,i._)`${A} === "" || ${A} === 0 || ${A} === false`),k.assign(B,null);return;case"array":k.elseIf((0,i._)`${z} === "string" || ${z} === "number"
65
- || ${z} === "boolean" || ${A} === null`).assign(B,(0,i._)`[${A}]`)}}}function h({gen:m,parentData:S,parentDataProperty:N},k){m.if((0,i._)`${S} !== undefined`,()=>m.assign((0,i._)`${S}[${N}]`,k))}function p(m,S,N,k=s.Correct){const A=k===s.Correct?i.operators.EQ:i.operators.NEQ;let R;switch(m){case"null":return(0,i._)`${S} ${A} null`;case"array":R=(0,i._)`Array.isArray(${S})`;break;case"object":R=(0,i._)`${S} && typeof ${S} == "object" && !Array.isArray(${S})`;break;case"integer":R=z((0,i._)`!(${S} % 1) && !isNaN(${S})`);break;case"number":R=z();break;default:return(0,i._)`typeof ${S} ${A} ${m}`}return k===s.Correct?R:(0,i.not)(R);function z(B=i.nil){return(0,i.and)((0,i._)`typeof ${S} == "number"`,B,N?(0,i._)`isFinite(${S})`:i.nil)}}e.checkDataType=p;function g(m,S,N,k){if(m.length===1)return p(m[0],S,N,k);let A;const R=(0,o.toHash)(m);if(R.array&&R.object){const z=(0,i._)`typeof ${S} != "object"`;A=R.null?z:(0,i._)`!${S} || ${z}`,delete R.null,delete R.array,delete R.object}else A=i.nil;R.number&&delete R.integer;for(const z in R)A=(0,i.and)(A,p(z,S,N,k));return A}e.checkDataTypes=g;const v={message:({schema:m})=>`must be ${m}`,params:({schema:m,schemaValue:S})=>typeof m=="string"?(0,i._)`{type: ${m}}`:(0,i._)`{type: ${S}}`};function b(m){const S=_(m);(0,n.reportError)(S,v)}e.reportTypeError=b;function _(m){const{gen:S,data:N,schema:k}=m,A=(0,o.schemaRefOrVal)(m,k,"type");return{gen:S,keyword:"type",data:N,schema:k.type,schemaCode:A,schemaValue:A,parentSchema:k,params:{},it:m}}})(D0);const Kz=Wr(D0),Yz=zt({__proto__:null,default:Kz},[D0]),Gu=Gt(Yz);var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});var j5=Ml.assignDefaults=void 0;const Ts=ge,Xz=Te;function Jz(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)D5(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>D5(e,o,i.default))}j5=Ml.assignDefaults=Jz;function D5(e,t,r){const{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;const a=(0,Ts._)`${o}${(0,Ts.getProperty)(t)}`;if(i){(0,Xz.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ts._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ts._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ts._)`${a} = ${(0,Ts.stringify)(r)}`)}const Wz=zt({__proto__:null,get assignDefaults(){return j5},default:Ml},[Ml]),Qz=Gt(Wz);var Ln={},De={};Object.defineProperty(De,"__esModule",{value:!0});var I5=De.validateUnion=J5=De.validateArray=X5=De.usePattern=Y5=De.callValidateCode=K5=De.schemaProperties=q5=De.allSchemaProperties=B5=De.noPropertyInData=V5=De.propertyInData=G5=De.isOwnProperty=z5=De.hasPropFunc=L5=De.reportMissingProp=M5=De.checkMissingProp=F5=De.checkReportMissingProp=void 0;const Je=ge,I0=Te,so=Ri,Zz=Te;function tG(e,t){const{gen:r,data:n,it:i}=e;r.if(M0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Je._)`${t}`},!0),e.error()})}var F5=De.checkReportMissingProp=tG;function eG({gen:e,data:t,it:{opts:r}},n,i){return(0,Je.or)(...n.map(o=>(0,Je.and)(M0(e,t,o,r.ownProperties),(0,Je._)`${i} = ${o}`)))}var M5=De.checkMissingProp=eG;function rG(e,t){e.setParams({missingProperty:t},!0),e.error()}var L5=De.reportMissingProp=rG;function U5(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Je._)`Object.prototype.hasOwnProperty`})}var z5=De.hasPropFunc=U5;function F0(e,t,r){return(0,Je._)`${U5(e)}.call(${t}, ${r})`}var G5=De.isOwnProperty=F0;function nG(e,t,r,n){const i=(0,Je._)`${t}${(0,Je.getProperty)(r)} !== undefined`;return n?(0,Je._)`${i} && ${F0(e,t,r)}`:i}var V5=De.propertyInData=nG;function M0(e,t,r,n){const i=(0,Je._)`${t}${(0,Je.getProperty)(r)} === undefined`;return n?(0,Je.or)(i,(0,Je.not)(F0(e,t,r))):i}var B5=De.noPropertyInData=M0;function H5(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}var q5=De.allSchemaProperties=H5;function iG(e,t){return H5(t).filter(r=>!(0,I0.alwaysValidSchema)(e,t[r]))}var K5=De.schemaProperties=iG;function oG({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){const u=l?(0,Je._)`${e}, ${t}, ${n}${i}`:t,d=[[so.default.instancePath,(0,Je.strConcat)(so.default.instancePath,o)],[so.default.parentData,s.parentData],[so.default.parentDataProperty,s.parentDataProperty],[so.default.rootData,so.default.rootData]];s.opts.dynamicRef&&d.push([so.default.dynamicAnchors,so.default.dynamicAnchors]);const f=(0,Je._)`${u}, ${r.object(...d)}`;return c!==Je.nil?(0,Je._)`${a}.call(${c}, ${f})`:(0,Je._)`${a}(${f})`}var Y5=De.callValidateCode=oG;const sG=(0,Je._)`new RegExp`;function aG({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,Je._)`${i.code==="new RegExp"?sG:(0,Zz.useFunc)(e,i)}(${r}, ${n})`})}var X5=De.usePattern=aG;function lG(e){const{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){const c=t.const("len",(0,Je._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:I0.Type.Num},o),t.if((0,Je.not)(o),a)})}}var J5=De.validateArray=lG;function cG(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(a=>(0,I0.alwaysValidSchema)(i,a))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((a,c)=>{const l=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},s);t.assign(o,(0,Je._)`${o} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,Je.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}I5=De.validateUnion=cG;const uG=zt({__proto__:null,get allSchemaProperties(){return q5},get callValidateCode(){return Y5},get checkMissingProp(){return M5},get checkReportMissingProp(){return F5},default:De,get hasPropFunc(){return z5},get isOwnProperty(){return G5},get noPropertyInData(){return B5},get propertyInData(){return V5},get reportMissingProp(){return L5},get schemaProperties(){return K5},get usePattern(){return X5},get validateArray(){return J5},get validateUnion(){return I5}},[De]),Un=Gt(uG);Object.defineProperty(Ln,"__esModule",{value:!0});var W5=Ln.validateKeywordUsage=rS=Ln.validSchemaType=Z5=Ln.funcKeywordCode=Q5=Ln.macroKeywordCode=void 0;const Gr=ge,Bo=Ri,hG=Un,dG=Fl;function fG(e,t){const{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=eS(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);const l=r.name("valid");e.subschema({schema:a,schemaPath:Gr.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}var Q5=Ln.macroKeywordCode=fG;function pG(e,t){var r;const{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;gG(c,t);const l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=eS(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&&tS(e),v(()=>e.error());else{const b=t.async?h():p();t.modifying&&tS(e),v(()=>mG(e,b))}}function h(){const b=n.let("ruleErrs",null);return n.try(()=>g((0,Gr._)`await `),_=>n.assign(d,!1).if((0,Gr._)`${_} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Gr._)`${_}.errors`),()=>n.throw(_))),b}function p(){const b=(0,Gr._)`${u}.errors`;return n.assign(b,null),g(Gr.nil),b}function g(b=t.async?(0,Gr._)`await `:Gr.nil){const _=c.opts.passContext?Bo.default.this:Bo.default.self,m=!("compile"in t&&!a||t.schema===!1);n.assign(d,(0,Gr._)`${b}${(0,hG.callValidateCode)(e,u,_,m)}`,t.modifying)}function v(b){var _;n.if((0,Gr.not)((_=t.valid)!==null&&_!==void 0?_:d),b)}}var Z5=Ln.funcKeywordCode=pG;function tS(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Gr._)`${n.parentData}[${n.parentDataProperty}]`))}function mG(e,t){const{gen:r}=e;r.if((0,Gr._)`Array.isArray(${t})`,()=>{r.assign(Bo.default.vErrors,(0,Gr._)`${Bo.default.vErrors} === null ? ${t} : ${Bo.default.vErrors}.concat(${t})`).assign(Bo.default.errors,(0,Gr._)`${Bo.default.vErrors}.length`),(0,dG.extendErrors)(e)},()=>e.error())}function gG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function eS(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,Gr.stringify)(r)})}function vG(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 rS=Ln.validSchemaType=vG;function yG({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const a=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(a);else throw new Error(a)}}W5=Ln.validateKeywordUsage=yG;const _G=zt({__proto__:null,default:Ln,get funcKeywordCode(){return Z5},get macroKeywordCode(){return Q5},get validSchemaType(){return rS},get validateKeywordUsage(){return W5}},[Ln]),bG=Gt(_G);var Di={};Object.defineProperty(Di,"__esModule",{value:!0});var nS=Di.extendSubschemaMode=sS=Di.extendSubschemaData=oS=Di.getSubschema=void 0;const ai=ge,iS=Te;function wG(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,ai._)`${e.schemaPath}${(0,ai.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,ai._)`${e.schemaPath}${(0,ai.getProperty)(t)}${(0,ai.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,iS.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}var oS=Di.getSubschema=wG;function xG(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:l,dataPathArr:u,opts:d}=t,f=a.let("data",(0,ai._)`${t.data}${(0,ai.getProperty)(r)}`,!0);c(f),e.errorPath=(0,ai.str)`${l}${(0,iS.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,ai._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){const l=i instanceof ai.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}var sS=Di.extendSubschemaData=xG;function SG(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}nS=Di.extendSubschemaMode=SG;const $G=zt({__proto__:null,default:Di,get extendSubschemaData(){return sS},get extendSubschemaMode(){return nS},get getSubschema(){return oS}},[Di]),kG=Gt($G);var Vr={},aS=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r};const EG=Wr(aS),CG=zt({__proto__:null,default:EG},[aS]),lS=Gt(CG);var cS={exports:{}},ao=cS.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(){};Vu(t,n,i,e,"",e)};ao.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ao.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ao.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ao.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 Vu(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var d=n[u];if(Array.isArray(d)){if(u in ao.arrayKeywords)for(var f=0;f<d.length;f++)Vu(e,t,r,d[f],i+"/"+u+"/"+f,o,i,u,n,f)}else if(u in ao.propsKeywords){if(d&&typeof d=="object")for(var h in d)Vu(e,t,r,d[h],i+"/"+u+"/"+PG(h),o,i,u,n,h)}else(u in ao.keywords||e.allKeys&&!(u in ao.skipKeywords))&&Vu(e,t,r,d,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function PG(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var uS=cS.exports;const TG=Wr(uS),OG=zt({__proto__:null,default:TG},[uS]),AG=Gt(OG);Object.defineProperty(Vr,"__esModule",{value:!0});var hS=Vr.getSchemaRefs=_S=Vr.resolveUrl=yS=Vr.normalizeId=vS=Vr._getFullPath=mS=Vr.getFullPath=dS=Vr.inlineRef=void 0;const NG=Te,RG=lS,jG=AG,DG=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function IG(e,t=!0){return typeof e=="boolean"?!0:t===!0?!L0(e):t?fS(e)<=t:!1}var dS=Vr.inlineRef=IG;const FG=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function L0(e){for(const t in e){if(FG.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(L0)||typeof r=="object"&&L0(r))return!0}return!1}function fS(e){let t=0;for(const r in e)if(r==="$ref"||(t++,!DG.has(r)&&(typeof e[r]=="object"&&(0,NG.eachItem)(e[r],n=>t+=fS(n)),t===1/0)))return 1/0;return t}function pS(e,t="",r){r!==!1&&(t=Os(t));const n=e.parse(t);return gS(e,n)}var mS=Vr.getFullPath=pS;function gS(e,t){return e.serialize(t).split("#")[0]+"#"}var vS=Vr._getFullPath=gS;const MG=/#\/?$/;function Os(e){return e?e.replace(MG,""):""}var yS=Vr.normalizeId=Os;function LG(e,t,r){return r=Os(r),e.resolve(t,r)}var _S=Vr.resolveUrl=LG;const UG=/^[a-z_][-a-z0-9._]*$/i;function zG(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Os(e[r]||t),o={"":i},s=pS(n,i,!1),a={},c=new Set;return jG(e,{allKeys:!0},(d,f,h,p)=>{if(p===void 0)return;const g=s+f;let v=o[p];typeof d[r]=="string"&&(v=b.call(this,d[r])),_.call(this,d.$anchor),_.call(this,d.$dynamicAnchor),o[f]=v;function b(m){const S=this.opts.uriResolver.resolve;if(m=Os(v?S(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!==Os(g)&&(m[0]==="#"?(l(d,a[m],m),a[m]=d):this.refs[m]=g),m}function _(m){if(typeof m=="string"){if(!UG.test(m))throw new Error(`invalid anchor "${m}"`);b.call(this,`#${m}`)}}}),a;function l(d,f,h){if(f!==void 0&&!RG(d,f))throw u(h)}function u(d){return new Error(`reference "${d}" resolves to more than one schema`)}}hS=Vr.getSchemaRefs=zG;const GG=zt({__proto__:null,get _getFullPath(){return vS},default:Vr,get getFullPath(){return mS},get getSchemaRefs(){return hS},get inlineRef(){return dS},get normalizeId(){return yS},get resolveUrl(){return _S}},[Vr]),Bu=Gt(GG);Object.defineProperty(Ni,"__esModule",{value:!0});var bS=Ni.getData=DS=Ni.KeywordCxt=SS=Ni.validateFunctionCode=void 0;const wS=Lz,xS=Gu,U0=R5,Hu=Gu,VG=Qz,Ll=bG,z0=kG,Yt=ge,ie=Ri,BG=Bu,Ii=Te,Ul=Fl;function HG(e){if(CS(e)&&(PS(e),ES(e))){YG(e);return}$S(e,()=>(0,wS.topBoolOrEmptySchema)(e))}var SS=Ni.validateFunctionCode=HG;function $S({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"; ${kS(r,i)}`),KG(e,i),e.code(o)}):e.func(t,(0,Yt._)`${ie.default.data}, ${qG(i)}`,n.$async,()=>e.code(kS(r,i)).code(o))}function qG(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 KG(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 YG(e){const{schema:t,opts:r,gen:n}=e;$S(e,()=>{r.$comment&&t.$comment&&OS(e),ZG(e),n.let(ie.default.vErrors,null),n.let(ie.default.errors,0),r.unevaluated&&XG(e),TS(e),rV(e)})}function XG(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 kS(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 JG(e,t){if(CS(e)&&(PS(e),ES(e))){WG(e,t);return}(0,wS.boolOrEmptySchema)(e,t)}function ES({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 CS(e){return typeof e.schema!="boolean"}function WG(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&OS(e),tV(e),eV(e);const o=n.const("_errs",ie.default.errors);TS(e,o),n.var(t,(0,Yt._)`${o} === ${ie.default.errors}`)}function PS(e){(0,Ii.checkUnknownRules)(e),QG(e)}function TS(e,t){if(e.opts.jtd)return AS(e,[],!1,t);const r=(0,xS.getSchemaTypes)(e.schema),n=(0,xS.coerceAndCheckDataType)(e,r);AS(e,r,!n,t)}function QG(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ii.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function ZG(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ii.checkStrictMode)(e,"default is ignored in the schema root")}function tV(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,BG.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function eV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function OS({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 s=(0,Yt.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Yt._)`${ie.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function rV(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&&nV(e),t.return((0,Yt._)`${ie.default.errors} === 0`))}function nV({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 AS(e,t,r,n){const{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Ii.schemaHasRulesButRef)(o,u))){i.block(()=>IS(e,"$ref",u.all.$ref.definition));return}c.jtd||iV(e,t),i.block(()=>{for(const f of u.rules)d(f);d(u.post)});function d(f){(0,U0.shouldUseGroup)(o,f)&&(f.type?(i.if((0,Hu.checkDataType)(f.type,s,c.strictNumbers)),NS(e,f),t.length===1&&t[0]===f.type&&r&&(i.else(),(0,Hu.reportTypeError)(e)),i.endIf()):NS(e,f),a||i.if((0,Yt._)`${ie.default.errors} === ${n||0}`))}}function NS(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,VG.assignDefaults)(e,t.type),r.block(()=>{for(const o of t.rules)(0,U0.shouldUseRule)(n,o)&&IS(e,o.keyword,o.definition,t.type)})}function iV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(oV(e,t),e.opts.allowUnionTypes||sV(e,t),aV(e,e.dataTypes))}function oV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{RS(e.dataTypes,r)||G0(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),cV(e,t)}}function sV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&G0(e,"use allowUnionTypes to allow union type keyword")}function aV(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,U0.shouldUseRule)(e.schema,i)){const{type:o}=i.definition;o.length&&!o.some(s=>lV(t,s))&&G0(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function lV(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function RS(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function cV(e,t){const r=[];for(const n of e.dataTypes)RS(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function G0(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ii.checkStrictMode)(e,t,e.opts.strictTypes)}class jS{constructor(t,r,n){if((0,Ll.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,Ii.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",FS(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ll.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?Ul.reportExtraError:Ul.reportError)(this,this.def.error,r)}$dataError(){(0,Ul.reportError)(this,this.def.$dataError||Ul.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ul.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:s}=this;n.if((0,Yt.or)((0,Yt._)`${i} === undefined`,r)),t!==Yt.nil&&n.assign(t,!0),(o.length||s.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)(s(),a());function s(){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,Hu.checkDataTypes)(c,r,o.opts.strictNumbers,Hu.DataType.Wrong)}`}return Yt.nil}function a(){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,z0.getSubschema)(this.it,t);(0,z0.extendSubschemaData)(n,this.it,t),(0,z0.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return JG(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ii.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ii.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 DS=Ni.KeywordCxt=jS;function IS(e,t,r,n){const i=new jS(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ll.funcKeywordCode)(i,r):"macro"in r?(0,Ll.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ll.funcKeywordCode)(i,r)}const uV=/^\/(?:[^~]|~0|~1)*$/,hV=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function FS(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return ie.default.rootData;if(e[0]==="/"){if(!uV.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ie.default.rootData}else{const l=hV.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o;const a=i.split("/");for(const l of a)l&&(o=(0,Yt._)`${o}${(0,Yt.getProperty)((0,Ii.unescapeJsonPointer)(l))}`,s=(0,Yt._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}bS=Ni.getData=FS;const dV=zt({__proto__:null,get KeywordCxt(){return DS},default:Ni,get getData(){return bS},get validateFunctionCode(){return SS}},[Ni]),zl=Gt(dV);var qu={},MS;function V0(){if(MS)return qu;MS=1,Object.defineProperty(qu,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return qu.default=e,qu}var B0={};Object.defineProperty(B0,"__esModule",{value:!0});const H0=Bu;class fV extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,H0.resolveUrl)(t,r,n),this.missingSchema=(0,H0.normalizeId)((0,H0.getFullPath)(t,this.missingRef))}}var pV=B0.default=fV;const mV=zt({__proto__:null,default:pV},[B0]),q0=Gt(mV);var hn={};Object.defineProperty(hn,"__esModule",{value:!0});var LS=hn.resolveSchema=HS=hn.getCompilingSchema=VS=hn.resolveRef=GS=hn.compileSchema=zS=hn.SchemaEnv=void 0;const zn=ge,gV=V0(),Ho=Ri,Gn=Bu,US=Te,vV=zl;class Ku{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,Gn.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 zS=hn.SchemaEnv=Ku;function K0(e){const t=BS.call(this,e);if(t)return t;const r=(0,Gn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new zn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o});let a;e.$async&&(a=s.scopeValue("Error",{ref:gV.default,code:(0,zn._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const l={gen:s,allErrors:this.opts.allErrors,data:Ho.default.data,parentData:Ho.default.parentData,parentDataProperty:Ho.default.parentDataProperty,dataNames:[Ho.default.data],dataPathArr:[zn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,zn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:zn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,zn._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,vV.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);const d=s.toString();u=`${s.scopeRefs(Ho.default.scope)}return ${d}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const f=new Function(`${Ho.default.self}`,`${Ho.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:s._values}),this.opts.unevaluated){const{props:h,items:p}=l;f.evaluated={props:h instanceof zn.Name?void 0:h,items:p instanceof zn.Name?void 0:p,dynamicProps:h instanceof zn.Name,dynamicItems:p instanceof zn.Name},f.source&&(f.source.evaluated=(0,zn.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 GS=hn.compileSchema=K0;function yV(e,t,r){var n;r=(0,Gn.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=wV.call(this,e,r);if(o===void 0){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Ku({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=_V.call(this,o)}var VS=hn.resolveRef=yV;function _V(e){return(0,Gn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:K0.call(this,e)}function BS(e){for(const t of this._compilations)if(bV(t,e))return t}var HS=hn.getCompilingSchema=BS;function bV(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function wV(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Yu.call(this,e,t)}function Yu(e,t){const r=this.opts.uriResolver.parse(t),n=(0,Gn._getFullPath)(this.opts.uriResolver,r);let i=(0,Gn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Y0.call(this,r,e);const o=(0,Gn.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){const a=Yu.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:Y0.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||K0.call(this,s),o===(0,Gn.normalizeId)(t)){const{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Gn.resolveUrl)(this.opts.uriResolver,i,l)),new Ku({schema:a,schemaId:c,root:e,baseId:i})}return Y0.call(this,r,s)}}LS=hn.resolveSchema=Yu;const xV=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Y0(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const c=r[(0,US.unescapeFragment)(a)];if(c===void 0)return;r=c;const l=typeof r=="object"&&r[this.opts.schemaId];!xV.has(a)&&l&&(t=(0,Gn.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,US.schemaHasRulesButRef)(r,this.RULES)){const a=(0,Gn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Yu.call(this,n,a)}const{schemaId:s}=this.opts;if(o=o||new Ku({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}const SV=zt({__proto__:null,get SchemaEnv(){return zS},get compileSchema(){return GS},default:hn,get getCompilingSchema(){return HS},get resolveRef(){return VS},get resolveSchema(){return LS}},[hn]),X0=Gt(SV),$V="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",kV="Meta-schema for $data reference (JSON AnySchema extension proposal)",EV="object",CV=["$data"],PV={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},TV=!1,OV={$id:$V,description:kV,type:EV,required:CV,properties:PV,additionalProperties:TV};var J0={},W0={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)})(hz,function(r){function n(){for(var j=arguments.length,L=Array(j),U=0;U<j;U++)L[U]=arguments[U];if(L.length>1){L[0]=L[0].slice(0,-1);for(var Q=L.length-1,Z=1;Z<Q;++Z)L[Z]=L[Z].slice(1,-1);return L[Q]=L[Q].slice(1),L.join("")}else return L[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 s(j){return j.toUpperCase()}function a(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,L){var U=j;if(L)for(var Q in L)U[Q]=L[Q];return U}function l(j){var L="[A-Za-z]",U="[0-9]",Q=n(U,"[A-Fa-f]"),Z=i(i("%[EFef]"+Q+"%"+Q+Q+"%"+Q+Q)+"|"+i("%[89A-Fa-f]"+Q+"%"+Q+Q)+"|"+i("%"+Q+Q)),yt="[\\:\\/\\?\\#\\[\\]\\@]",vt="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Dt=n(yt,vt),oe=j?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ht=j?"[\\uE000-\\uF8FF]":"[]",Ot=n(L,U,"[\\-\\.\\_\\~]",oe);i(L+n(L,U,"[\\+\\-\\.]")+"*"),i(i(Z+"|"+n(Ot,vt,"[\\:]"))+"*");var Ft=i(i("25[0-5]")+"|"+i("2[0-4]"+U)+"|"+i("1"+U+U)+"|"+i("0?[1-9]"+U)+"|0?0?"+U),Zt=i(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),kt=i(Q+"{1,4}"),At=i(i(kt+"\\:"+kt)+"|"+Zt),Xt=i(i(kt+"\\:")+"{6}"+At),Ee=i("\\:\\:"+i(kt+"\\:")+"{5}"+At),hr=i(i(kt)+"?\\:\\:"+i(kt+"\\:")+"{4}"+At),fe=i(i(i(kt+"\\:")+"{0,1}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{3}"+At),Re=i(i(i(kt+"\\:")+"{0,2}"+kt)+"?\\:\\:"+i(kt+"\\:")+"{2}"+At),Be=i(i(i(kt+"\\:")+"{0,3}"+kt)+"?\\:\\:"+kt+"\\:"+At),Ge=i(i(i(kt+"\\:")+"{0,4}"+kt)+"?\\:\\:"+At),Se=i(i(i(kt+"\\:")+"{0,5}"+kt)+"?\\:\\:"+kt),ce=i(i(i(kt+"\\:")+"{0,6}"+kt)+"?\\:\\:"),Bt=i([Xt,Ee,hr,fe,Re,Be,Ge,Se,ce].join("|")),He=i(i(Ot+"|"+Z)+"+");i("[vV]"+Q+"+\\."+n(Ot,vt,"[\\:]")+"+"),i(i(Z+"|"+n(Ot,vt))+"*");var Ir=i(Z+"|"+n(Ot,vt,"[\\:\\@]"));return i(i(Z+"|"+n(Ot,vt,"[\\@]"))+"+"),i(i(Ir+"|"+n("[\\/\\?]",Ht))+"*"),{NOT_SCHEME:new RegExp(n("[^]",L,U,"[\\+\\-\\.]"),"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,Dt),"g"),PCT_ENCODED:new RegExp(Z,"g"),IPV4ADDRESS:new RegExp("^("+Zt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Bt+")"+i(i("\\%25|\\%(?!"+Q+"{2})")+"("+He+")")+"?\\]?$")}}var u=l(!1),d=l(!0),f=function(){function j(L,U){var Q=[],Z=!0,yt=!1,vt=void 0;try{for(var Dt=L[Symbol.iterator](),oe;!(Z=(oe=Dt.next()).done)&&(Q.push(oe.value),!(U&&Q.length===U));Z=!0);}catch(Ht){yt=!0,vt=Ht}finally{try{!Z&&Dt.return&&Dt.return()}finally{if(yt)throw vt}}return Q}return function(L,U){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return j(L,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(j){if(Array.isArray(j)){for(var L=0,U=Array(j.length);L<j.length;L++)U[L]=j[L];return U}else return Array.from(j)},p=2147483647,g=36,v=1,b=26,_=38,m=700,S=72,N=128,k="-",A=/^xn--/,R=/[^\0-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,B={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,W=Math.floor,nt=String.fromCharCode;function rt(j){throw new RangeError(B[j])}function lt(j,L){for(var U=[],Q=j.length;Q--;)U[Q]=L(j[Q]);return U}function xt(j,L){var U=j.split("@"),Q="";U.length>1&&(Q=U[0]+"@",j=U[1]),j=j.replace(z,".");var Z=j.split("."),yt=lt(Z,L).join(".");return Q+yt}function Ct(j){for(var L=[],U=0,Q=j.length;U<Q;){var Z=j.charCodeAt(U++);if(Z>=55296&&Z<=56319&&U<Q){var yt=j.charCodeAt(U++);(yt&64512)==56320?L.push(((Z&1023)<<10)+(yt&1023)+65536):(L.push(Z),U--)}else L.push(Z)}return L}var $t=function(j){return String.fromCodePoint.apply(String,h(j))},st=function(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:g},X=function(j,L){return j+22+75*(j<26)-((L!=0)<<5)},T=function(j,L,U){var Q=0;for(j=U?W(j/m):j>>1,j+=W(j/L);j>Y*b>>1;Q+=g)j=W(j/Y);return W(Q+(Y+1)*j/(j+_))},E=function(j){var L=[],U=j.length,Q=0,Z=N,yt=S,vt=j.lastIndexOf(k);vt<0&&(vt=0);for(var Dt=0;Dt<vt;++Dt)j.charCodeAt(Dt)>=128&&rt("not-basic"),L.push(j.charCodeAt(Dt));for(var oe=vt>0?vt+1:0;oe<U;){for(var Ht=Q,Ot=1,Ft=g;;Ft+=g){oe>=U&&rt("invalid-input");var Zt=st(j.charCodeAt(oe++));(Zt>=g||Zt>W((p-Q)/Ot))&&rt("overflow"),Q+=Zt*Ot;var kt=Ft<=yt?v:Ft>=yt+b?b:Ft-yt;if(Zt<kt)break;var At=g-kt;Ot>W(p/At)&&rt("overflow"),Ot*=At}var Xt=L.length+1;yt=T(Q-Ht,Xt,Ht==0),W(Q/Xt)>p-Z&&rt("overflow"),Z+=W(Q/Xt),Q%=Xt,L.splice(Q++,0,Z)}return String.fromCodePoint.apply(String,L)},$=function(j){var L=[];j=Ct(j);var U=j.length,Q=N,Z=0,yt=S,vt=!0,Dt=!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&&L.push(nt(Ft))}}catch(kr){Dt=!0,oe=kr}finally{try{!vt&&Ht.return&&Ht.return()}finally{if(Dt)throw oe}}var Zt=L.length,kt=Zt;for(Zt&&L.push(k);kt<U;){var At=p,Xt=!0,Ee=!1,hr=void 0;try{for(var fe=j[Symbol.iterator](),Re;!(Xt=(Re=fe.next()).done);Xt=!0){var Be=Re.value;Be>=Q&&Be<At&&(At=Be)}}catch(kr){Ee=!0,hr=kr}finally{try{!Xt&&fe.return&&fe.return()}finally{if(Ee)throw hr}}var Ge=kt+1;At-Q>W((p-Z)/Ge)&&rt("overflow"),Z+=(At-Q)*Ge,Q=At;var Se=!0,ce=!1,Bt=void 0;try{for(var He=j[Symbol.iterator](),Ir;!(Se=(Ir=He.next()).done);Se=!0){var rn=Ir.value;if(rn<Q&&++Z>p&&rt("overflow"),rn==Q){for(var er=Z,tr=g;;tr+=g){var yr=tr<=yt?v:tr>=yt+b?b:tr-yt;if(er<yr)break;var kn=er-yr,En=g-yr;L.push(nt(X(yr+kn%En,0))),er=W(kn/En)}L.push(nt(X(er,0))),yt=T(Z,Ge,kt==Zt),Z=0,++kt}}}catch(kr){ce=!0,Bt=kr}finally{try{!Se&&He.return&&He.return()}finally{if(ce)throw Bt}}++Z,++Q}return L.join("")},y=function(j){return xt(j,function(L){return A.test(L)?E(L.slice(4).toLowerCase()):L})},C=function(j){return xt(j,function(L){return R.test(L)?"xn--"+$(L):L})},M={version:"2.1.0",ucs2:{decode:Ct,encode:$t},decode:E,encode:$,toASCII:C,toUnicode:y},I={};function G(j){var L=j.charCodeAt(0),U=void 0;return L<16?U="%0"+L.toString(16).toUpperCase():L<128?U="%"+L.toString(16).toUpperCase():L<2048?U="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():U="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),U}function q(j){for(var L="",U=0,Q=j.length;U<Q;){var Z=parseInt(j.substr(U+1,2),16);if(Z<128)L+=String.fromCharCode(Z),U+=3;else if(Z>=194&&Z<224){if(Q-U>=6){var yt=parseInt(j.substr(U+4,2),16);L+=String.fromCharCode((Z&31)<<6|yt&63)}else L+=j.substr(U,6);U+=6}else if(Z>=224){if(Q-U>=9){var vt=parseInt(j.substr(U+4,2),16),Dt=parseInt(j.substr(U+7,2),16);L+=String.fromCharCode((Z&15)<<12|(vt&63)<<6|Dt&63)}else L+=j.substr(U,9);U+=9}else L+=j.substr(U,3),U+=3}return L}function et(j,L){function U(Q){var Z=q(Q);return Z.match(L.UNRESERVED)?Z:Q}return j.scheme&&(j.scheme=String(j.scheme).replace(L.PCT_ENCODED,U).toLowerCase().replace(L.NOT_SCHEME,"")),j.userinfo!==void 0&&(j.userinfo=String(j.userinfo).replace(L.PCT_ENCODED,U).replace(L.NOT_USERINFO,G).replace(L.PCT_ENCODED,s)),j.host!==void 0&&(j.host=String(j.host).replace(L.PCT_ENCODED,U).toLowerCase().replace(L.NOT_HOST,G).replace(L.PCT_ENCODED,s)),j.path!==void 0&&(j.path=String(j.path).replace(L.PCT_ENCODED,U).replace(j.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,G).replace(L.PCT_ENCODED,s)),j.query!==void 0&&(j.query=String(j.query).replace(L.PCT_ENCODED,U).replace(L.NOT_QUERY,G).replace(L.PCT_ENCODED,s)),j.fragment!==void 0&&(j.fragment=String(j.fragment).replace(L.PCT_ENCODED,U).replace(L.NOT_FRAGMENT,G).replace(L.PCT_ENCODED,s)),j}function it(j){return j.replace(/^0*(.*)/,"$1")||"0"}function ut(j,L){var U=j.match(L.IPV4ADDRESS)||[],Q=f(U,2),Z=Q[1];return Z?Z.split(".").map(it).join("."):j}function Tt(j,L){var U=j.match(L.IPV6ADDRESS)||[],Q=f(U,3),Z=Q[1],yt=Q[2];if(Z){for(var vt=Z.toLowerCase().split("::").reverse(),Dt=f(vt,2),oe=Dt[0],Ht=Dt[1],Ot=Ht?Ht.split(":").map(it):[],Ft=oe.split(":").map(it),Zt=L.IPV4ADDRESS.test(Ft[Ft.length-1]),kt=Zt?7:8,At=Ft.length-kt,Xt=Array(kt),Ee=0;Ee<kt;++Ee)Xt[Ee]=Ot[Ee]||Ft[At+Ee]||"";Zt&&(Xt[kt-1]=ut(Xt[kt-1],L));var hr=Xt.reduce(function(Se,ce,Bt){if(!ce||ce==="0"){var He=Se[Se.length-1];He&&He.index+He.length===Bt?He.length++:Se.push({index:Bt,length:1})}return Se},[]),fe=hr.sort(function(Se,ce){return ce.length-Se.length})[0],Re=void 0;if(fe&&fe.length>1){var Be=Xt.slice(0,fe.index),Ge=Xt.slice(fe.index+fe.length);Re=Be.join(":")+"::"+Ge.join(":")}else Re=Xt.join(":");return yt&&(Re+="%"+yt),Re}else return j}var Ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Pt="".match(/(){0}/)[1]===void 0;function Nt(j){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U={},Q=L.iri!==!1?d:u;L.reference==="suffix"&&(j=(L.scheme?L.scheme+":":"")+"//"+j);var Z=j.match(Ut);if(Z){Pt?(U.scheme=Z[1],U.userinfo=Z[3],U.host=Z[4],U.port=parseInt(Z[5],10),U.path=Z[6]||"",U.query=Z[7],U.fragment=Z[8],isNaN(U.port)&&(U.port=Z[5])):(U.scheme=Z[1]||void 0,U.userinfo=j.indexOf("@")!==-1?Z[3]:void 0,U.host=j.indexOf("//")!==-1?Z[4]:void 0,U.port=parseInt(Z[5],10),U.path=Z[6]||"",U.query=j.indexOf("?")!==-1?Z[7]:void 0,U.fragment=j.indexOf("#")!==-1?Z[8]:void 0,isNaN(U.port)&&(U.port=j.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),U.host&&(U.host=Tt(ut(U.host,Q),Q)),U.scheme===void 0&&U.userinfo===void 0&&U.host===void 0&&U.port===void 0&&!U.path&&U.query===void 0?U.reference="same-document":U.scheme===void 0?U.reference="relative":U.fragment===void 0?U.reference="absolute":U.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==U.reference&&(U.error=U.error||"URI is not a "+L.reference+" reference.");var yt=I[(L.scheme||U.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!yt||!yt.unicodeSupport)){if(U.host&&(L.domainHost||yt&&yt.domainHost))try{U.host=M.toASCII(U.host.replace(Q.PCT_ENCODED,q).toLowerCase())}catch(vt){U.error=U.error||"Host's domain name can not be converted to ASCII via punycode: "+vt}et(U,u)}else et(U,Q);yt&&yt.parse&&yt.parse(U,L)}else U.error=U.error||"URI can not be parsed.";return U}function qt(j,L){var U=L.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),U),U).replace(U.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=/^\.\.?\//,It=/^\/\.(\/|$)/,de=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/;function he(j){for(var L=[];j.length;)if(j.match(Qt))j=j.replace(Qt,"");else if(j.match(It))j=j.replace(It,"/");else if(j.match(de))j=j.replace(de,"/"),L.pop();else if(j==="."||j==="..")j="";else{var U=j.match(re);if(U){var Q=U[0];j=j.slice(Q.length),L.push(Q)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function Vt(j){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=L.iri?d:u,Q=[],Z=I[(L.scheme||j.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(j,L),j.host&&!U.IPV6ADDRESS.test(j.host)&&(L.domainHost||Z&&Z.domainHost))try{j.host=L.iri?M.toUnicode(j.host):M.toASCII(j.host.replace(U.PCT_ENCODED,q).toLowerCase())}catch(Dt){j.error=j.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+Dt}et(j,U),L.reference!=="suffix"&&j.scheme&&(Q.push(j.scheme),Q.push(":"));var yt=qt(j,L);if(yt!==void 0&&(L.reference!=="suffix"&&Q.push("//"),Q.push(yt),j.path&&j.path.charAt(0)!=="/"&&Q.push("/")),j.path!==void 0){var vt=j.path;!L.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 Ie(j,L){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments[3],Z={};return Q||(j=Nt(Vt(j,U),U),L=Nt(Vt(L,U),U)),U=U||{},!U.tolerant&&L.scheme?(Z.scheme=L.scheme,Z.userinfo=L.userinfo,Z.host=L.host,Z.port=L.port,Z.path=he(L.path||""),Z.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(Z.userinfo=L.userinfo,Z.host=L.host,Z.port=L.port,Z.path=he(L.path||""),Z.query=L.query):(L.path?(L.path.charAt(0)==="/"?Z.path=he(L.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?Z.path="/"+L.path:j.path?Z.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+L.path:Z.path=L.path,Z.path=he(Z.path)),Z.query=L.query):(Z.path=j.path,L.query!==void 0?Z.query=L.query:Z.query=j.query),Z.userinfo=j.userinfo,Z.host=j.host,Z.port=j.port),Z.scheme=j.scheme),Z.fragment=L.fragment,Z}function Fe(j,L,U){var Q=c({scheme:"null"},U);return Vt(Ie(Nt(j,Q),Nt(L,Q),Q,!0),Q)}function Ke(j,L){return typeof j=="string"?j=Vt(Nt(j,L),L):o(j)==="object"&&(j=Nt(Vt(j,L),L)),j}function pr(j,L,U){return typeof j=="string"?j=Vt(Nt(j,U),U):o(j)==="object"&&(j=Vt(j,U)),typeof L=="string"?L=Vt(Nt(L,U),U):o(L)==="object"&&(L=Vt(L,U)),j===L}function ur(j,L){return j&&j.toString().replace(!L||!L.iri?u.ESCAPE:d.ESCAPE,G)}function xe(j,L){return j&&j.toString().replace(!L||!L.iri?u.PCT_ENCODED:d.PCT_ENCODED,q)}var We={scheme:"http",domainHost:!0,parse:function(j,L){return j.host||(j.error=j.error||"HTTP URIs must have a host."),j},serialize:function(j,L){var U=String(j.scheme).toLowerCase()==="https";return(j.port===(U?443:80)||j.port==="")&&(j.port=void 0),j.path||(j.path="/"),j}},Rr={scheme:"https",domainHost:We.domainHost,parse:We.parse,serialize:We.serialize};function jr(j){return typeof j.secure=="boolean"?j.secure:String(j.scheme).toLowerCase()==="wss"}var Sr={scheme:"ws",domainHost:!0,parse:function(j,L){var U=j;return U.secure=jr(U),U.resourceName=(U.path||"/")+(U.query?"?"+U.query:""),U.path=void 0,U.query=void 0,U},serialize:function(j,L){if((j.port===(jr(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 U=j.resourceName.split("?"),Q=f(U,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}},Ze={scheme:"wss",domainHost:Sr.domainHost,parse:Sr.parse,serialize:Sr.serialize},Zr={},tn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",Br=i(i("%[EFef]"+be+"%"+be+be+"%"+be+be)+"|"+i("%[89A-Fa-f]"+be+"%"+be+be)+"|"+i("%"+be+be)),Tr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Bn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",dn=n(Bn,'[\\"\\\\]'),xn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Dr=new RegExp(tn,"g"),Ne=new RegExp(Br,"g"),co=new RegExp(n("[^]",Tr,"[\\.]",'[\\"]',dn),"g"),en=new RegExp(n("[^]",tn,xn),"g"),fn=en;function $r(j){var L=q(j);return L.match(Dr)?L:j}var Sn={scheme:"mailto",parse:function(j,L){var U=j,Q=U.to=U.path?U.path.split(","):[];if(U.path=void 0,U.query){for(var Z=!1,yt={},vt=U.query.split("&"),Dt=0,oe=vt.length;Dt<oe;++Dt){var Ht=vt[Dt].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":U.subject=xe(Ht[1],L);break;case"body":U.body=xe(Ht[1],L);break;default:Z=!0,yt[xe(Ht[0],L)]=xe(Ht[1],L);break}}Z&&(U.headers=yt)}U.query=void 0;for(var kt=0,At=Q.length;kt<At;++kt){var Xt=Q[kt].split("@");if(Xt[0]=xe(Xt[0]),L.unicodeSupport)Xt[1]=xe(Xt[1],L).toLowerCase();else try{Xt[1]=M.toASCII(xe(Xt[1],L).toLowerCase())}catch(Ee){U.error=U.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ee}Q[kt]=Xt.join("@")}return U},serialize:function(j,L){var U=j,Q=a(j.to);if(Q){for(var Z=0,yt=Q.length;Z<yt;++Z){var vt=String(Q[Z]),Dt=vt.lastIndexOf("@"),oe=vt.slice(0,Dt).replace(Ne,$r).replace(Ne,s).replace(co,G),Ht=vt.slice(Dt+1);try{Ht=L.iri?M.toUnicode(Ht):M.toASCII(xe(Ht,L).toLowerCase())}catch(kt){U.error=U.error||"Email address's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+kt}Q[Z]=oe+"@"+Ht}U.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]!==Zr[Zt]&&Ft.push(Zt.replace(Ne,$r).replace(Ne,s).replace(en,G)+"="+Ot[Zt].replace(Ne,$r).replace(Ne,s).replace(fn,G));return Ft.length&&(U.query=Ft.join("&")),U}},pn=/^([^\:]+)\:(.*)/,Hr={scheme:"urn",parse:function(j,L){var U=j.path&&j.path.match(pn),Q=j;if(U){var Z=L.scheme||Q.scheme||"urn",yt=U[1].toLowerCase(),vt=U[2],Dt=Z+":"+(L.nid||yt),oe=I[Dt];Q.nid=yt,Q.nss=vt,Q.path=void 0,oe&&(Q=oe.parse(Q,L))}else Q.error=Q.error||"URN can not be parsed.";return Q},serialize:function(j,L){var U=L.scheme||j.scheme||"urn",Q=j.nid,Z=U+":"+(L.nid||Q),yt=I[Z];yt&&(j=yt.serialize(j,L));var vt=j,Dt=j.nss;return vt.path=(Q||L.nid)+":"+Dt,vt}},Hn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,$n={scheme:"urn:uuid",parse:function(j,L){var U=j;return U.uuid=U.nss,U.nss=void 0,!L.tolerant&&(!U.uuid||!U.uuid.match(Hn))&&(U.error=U.error||"UUID is not valid."),U},serialize:function(j,L){var U=j;return U.nss=(j.uuid||"").toLowerCase(),U}};I[We.scheme]=We,I[Rr.scheme]=Rr,I[Sr.scheme]=Sr,I[Ze.scheme]=Ze,I[Sn.scheme]=Sn,I[Hr.scheme]=Hr,I[$n.scheme]=$n,r.SCHEMES=I,r.pctEncChar=G,r.pctDecChars=q,r.parse=Nt,r.removeDotSegments=he,r.serialize=Vt,r.resolveComponents=Ie,r.resolve=Fe,r.normalize=Ke,r.equal=pr,r.escapeComponent=ur,r.unescapeComponent=xe,Object.defineProperty(r,"__esModule",{value:!0})})})(W0,W0.exports);var qS=W0.exports;const AV=Wr(qS),NV=zt({__proto__:null,default:AV},[qS]),RV=Gt(NV);Object.defineProperty(J0,"__esModule",{value:!0});const KS=RV;KS.code='require("ajv/dist/runtime/uri").default';var jV=J0.default=KS;const DV=zt({__proto__:null,default:jV},[J0]),IV=Gt(DV);(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=zl;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ge;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=V0(),i=q0,o=C5,s=X0,a=ge,c=Bu,l=Gu,u=Te,d=OV,f=IV,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."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_=200;function m(X){var T,E,$,y,C,M,I,G,q,et,it,ut,Tt,Ut,Pt,Nt,qt,Qt,It,de,re,he,Vt,Ie,Fe;const Ke=X.strict,pr=(T=X.code)===null||T===void 0?void 0:T.optimize,ur=pr===!0||pr===void 0?1:pr||0,xe=($=(E=X.code)===null||E===void 0?void 0:E.regExp)!==null&&$!==void 0?$:h,We=(y=X.uriResolver)!==null&&y!==void 0?y:f.default;return{strictSchema:(M=(C=X.strictSchema)!==null&&C!==void 0?C:Ke)!==null&&M!==void 0?M:!0,strictNumbers:(G=(I=X.strictNumbers)!==null&&I!==void 0?I:Ke)!==null&&G!==void 0?G:!0,strictTypes:(et=(q=X.strictTypes)!==null&&q!==void 0?q:Ke)!==null&&et!==void 0?et:"log",strictTuples:(ut=(it=X.strictTuples)!==null&&it!==void 0?it:Ke)!==null&&ut!==void 0?ut:"log",strictRequired:(Ut=(Tt=X.strictRequired)!==null&&Tt!==void 0?Tt:Ke)!==null&&Ut!==void 0?Ut:!1,code:X.code?{...X.code,optimize:ur,regExp:xe}:{optimize:ur,regExp:xe},loopRequired:(Pt=X.loopRequired)!==null&&Pt!==void 0?Pt:_,loopEnum:(Nt=X.loopEnum)!==null&&Nt!==void 0?Nt:_,meta:(qt=X.meta)!==null&&qt!==void 0?qt:!0,messages:(Qt=X.messages)!==null&&Qt!==void 0?Qt:!0,inlineRefs:(It=X.inlineRefs)!==null&&It!==void 0?It:!0,schemaId:(de=X.schemaId)!==null&&de!==void 0?de:"$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:(Ie=X.unicodeRegExp)!==null&&Ie!==void 0?Ie:!0,int32range:(Fe=X.int32range)!==null&&Fe!==void 0?Fe:!0,uriResolver:We}}class S{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:$}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:E,lines:$}),this.logger=W(T.logger);const y=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),N.call(this,v,T,"NOT SUPPORTED"),N.call(this,b,T,"DEPRECATED","warn"),this._metaOpts=B.call(this),T.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&z.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),A.call(this),T.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:E,schemaId:$}=this.opts;let y=d;$==="id"&&(y={...d},y.id=y.$id,delete y.$id),E&&T&&this.addMetaSchema(y,y[$],!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 $;if(typeof T=="string"){if($=this.getSchema(T),!$)throw new Error(`no schema with key or ref "${T}"`)}else $=this.compile(T);const y=$(E);return"$async"in $||(this.errors=$.errors),y}compile(T,E){const $=this._addSchema(T,E);return $.validate||this._compileSchemaEnv($)}compileAsync(T,E){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:$}=this.opts;return y.call(this,T,E);async function y(et,it){await C.call(this,et.$schema);const ut=this._addSchema(et,it);return ut.validate||M.call(this,ut)}async function C(et){et&&!this.getSchema(et)&&await y.call(this,{$ref:et},!0)}async function M(et){try{return this._compileSchemaEnv(et)}catch(it){if(!(it instanceof i.default))throw it;return I.call(this,it),await G.call(this,it.missingSchema),M.call(this,et)}}function I({missingSchema:et,missingRef:it}){if(this.refs[et])throw new Error(`AnySchema ${et} is loaded but ${it} cannot be resolved`)}async function G(et){const it=await q.call(this,et);this.refs[et]||await C.call(this,it.$schema),this.refs[et]||this.addSchema(it,et,E)}async function q(et){const it=this._loading[et];if(it)return it;try{return await(this._loading[et]=$(et))}finally{delete this._loading[et]}}}addSchema(T,E,$,y=this.opts.validateSchema){if(Array.isArray(T)){for(const M of T)this.addSchema(M,void 0,$,y);return this}let C;if(typeof T=="object"){const{schemaId:M}=this.opts;if(C=T[M],C!==void 0&&typeof C!="string")throw new Error(`schema ${M} must be string`)}return E=(0,c.normalizeId)(E||C),this._checkUnique(E),this.schemas[E]=this._addSchema(T,$,E,y,!0),this}addMetaSchema(T,E,$=this.opts.validateSchema){return this.addSchema(T,E,!0,$),this}validateSchema(T,E){if(typeof T=="boolean")return!0;let $;if($=T.$schema,$!==void 0&&typeof $!="string")throw new Error("$schema must be a string");if($=$||this.opts.defaultMeta||this.defaultMeta(),!$)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate($,T);if(!y&&E){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return y}getSchema(T){let E;for(;typeof(E=k.call(this,T))=="string";)T=E;if(E===void 0){const{schemaId:$}=this.opts,y=new s.SchemaEnv({schema:{},schemaId:$});if(E=s.resolveSchema.call(this,y,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=k.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 $=T[this.opts.schemaId];return $&&($=(0,c.normalizeId)($),delete this.schemas[$],delete this.refs[$]),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 $;if(typeof T=="string")$=T,typeof E=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),E.keyword=$);else if(typeof T=="object"&&E===void 0){if(E=T,$=E.keyword,Array.isArray($)&&!$.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(rt.call(this,$,E),!E)return(0,u.eachItem)($,C=>lt.call(this,C)),this;Ct.call(this,E);const y={...E,type:(0,l.getJSONTypes)(E.type),schemaType:(0,l.getJSONTypes)(E.schemaType)};return(0,u.eachItem)($,y.type.length===0?C=>lt.call(this,C,y):C=>y.type.forEach(M=>lt.call(this,C,y,M))),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 $ of E.rules){const y=$.rules.findIndex(C=>C.keyword===T);y>=0&&$.rules.splice(y,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:$="data"}={}){return!T||T.length===0?"No errors":T.map(y=>`${$}${y.instancePath} ${y.message}`).reduce((y,C)=>y+E+C)}$dataMetaSchema(T,E){const $=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const y of E){const C=y.split("/").slice(1);let M=T;for(const I of C)M=M[I];for(const I in $){const G=$[I];if(typeof G!="object")continue;const{$data:q}=G.definition,et=M[I];q&&et&&(M[I]=st(et))}}return T}_removeAllSchemas(T,E){for(const $ in T){const y=T[$];(!E||E.test($))&&(typeof y=="string"?delete T[$]:y&&!y.meta&&(this._cache.delete(y.schema),delete T[$]))}}_addSchema(T,E,$,y=this.opts.validateSchema,C=this.opts.addUsedSchema){let M;const{schemaId:I}=this.opts;if(typeof T=="object")M=T[I];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 G=this._cache.get(T);if(G!==void 0)return G;$=(0,c.normalizeId)(M||$);const q=c.getSchemaRefs.call(this,T,$);return G=new s.SchemaEnv({schema:T,schemaId:I,meta:E,baseId:$,localRefs:q}),this._cache.set(G.schema,G),C&&!$.startsWith("#")&&($&&this._checkUnique($),this.refs[$]=G),y&&this.validateSchema(T,!0),G}_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):s.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{s.compileSchema.call(this,T)}finally{this.opts=E}}}e.default=S,S.ValidationError=n.default,S.MissingRefError=i.default;function N(X,T,E,$="error"){for(const y in X){const C=y;C in T&&this.logger[$](`${E}: option ${y}. ${X[C]}`)}}function k(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 z(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 B(){const X={...this.opts};for(const T of p)delete X[T];return X}const Y={log(){},warn(){},error(){}};function W(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,$=>{if(E.keywords[$])throw new Error(`Keyword ${$} is already defined`);if(!nt.test($))throw new Error(`Keyword ${$} 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 $;const y=T==null?void 0:T.post;if(E&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let M=y?C.post:C.rules.find(({type:G})=>G===E);if(M||(M={type:E,rules:[]},C.rules.push(M)),C.keywords[X]=!0,!T)return;const I={keyword:X,definition:{...T,type:(0,l.getJSONTypes)(T.type),schemaType:(0,l.getJSONTypes)(T.schemaType)}};T.before?xt.call(this,M,I,T.before):M.rules.push(I),C.all[X]=I,($=T.implements)===null||$===void 0||$.forEach(G=>this.addKeyword(G))}function xt(X,T,E){const $=X.rules.findIndex(y=>y.keyword===E);$>=0?X.rules.splice($,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=st(T)),X.validateSchema=this.compile(T,!0))}const $t={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function st(X){return{anyOf:[X,$t]}}})(P0);const FV=Wr(P0),MV=zt({__proto__:null,default:FV},[P0]),LV=Gt(MV);var Q0={},Z0={},tm={};Object.defineProperty(tm,"__esModule",{value:!0});const UV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};var zV=tm.default=UV;const GV=zt({__proto__:null,default:zV},[tm]),VV=Gt(GV);var qo={};Object.defineProperty(qo,"__esModule",{value:!0});var YS=qo.callRef=QS=qo.getValidate=void 0;const BV=q0,XS=Un,Qr=ge,As=Ri,JS=X0,Xu=Te,HV={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return d();const u=JS.resolveRef.call(c,l,i,r);if(u===void 0)throw new BV.default(n.opts.uriResolver,i,r);if(u instanceof JS.SchemaEnv)return f(u);return h(u);function d(){if(o===l)return Ju(e,s,o,o.$async);const p=t.scopeValue("root",{ref:l});return Ju(e,(0,Qr._)`${p}.validate`,l,l.$async)}function f(p){const g=WS(e,p);Ju(e,g,p,p.$async)}function h(p){const g=t.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,Qr.stringify)(p)}:{ref:p}),v=t.name("valid"),b=e.subschema({schema:p,dataTypes:[],schemaPath:Qr.nil,topSchemaRef:g,errSchemaPath:r},v);e.mergeEvaluated(b),e.ok(v)}}};function WS(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Qr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}var QS=qo.getValidate=WS;function Ju(e,t,r,n){const{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?As.default.this:Qr.nil;n?u():d();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");const p=i.let("valid");i.try(()=>{i.code((0,Qr._)`await ${(0,XS.callValidateCode)(e,t,l)}`),h(t),s||i.assign(p,!0)},g=>{i.if((0,Qr._)`!(${g} instanceof ${o.ValidationError})`,()=>i.throw(g)),f(g),s||i.assign(p,!1)}),e.ok(p)}function d(){e.result((0,XS.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(p){const g=(0,Qr._)`${p}.errors`;i.assign(As.default.vErrors,(0,Qr._)`${As.default.vErrors} === null ? ${g} : ${As.default.vErrors}.concat(${g})`),i.assign(As.default.errors,(0,Qr._)`${As.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=Xu.mergeEvaluated.props(i,v.props,o.props));else{const b=i.var("props",(0,Qr._)`${p}.evaluated.props`);o.props=Xu.mergeEvaluated.props(i,b,o.props,Qr.Name)}if(o.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(o.items=Xu.mergeEvaluated.items(i,v.items,o.items));else{const b=i.var("items",(0,Qr._)`${p}.evaluated.items`);o.items=Xu.mergeEvaluated.items(i,b,o.items,Qr.Name)}}}YS=qo.callRef=Ju;var qV=qo.default=HV;const KV=zt({__proto__:null,get callRef(){return YS},default:qV,get getValidate(){return QS}},[qo]),YV=Gt(KV);Object.defineProperty(Z0,"__esModule",{value:!0});const XV=VV,JV=YV,WV=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",XV.default,JV.default];var QV=Z0.default=WV;const ZV=zt({__proto__:null,default:QV},[Z0]),tB=Gt(ZV);var em={},rm={};Object.defineProperty(rm,"__esModule",{value:!0});const Wu=ge,lo=Wu.operators,Qu={maximum:{okStr:"<=",ok:lo.LTE,fail:lo.GT},minimum:{okStr:">=",ok:lo.GTE,fail:lo.LT},exclusiveMaximum:{okStr:"<",ok:lo.LT,fail:lo.GTE},exclusiveMinimum:{okStr:">",ok:lo.GT,fail:lo.LTE}},eB={message:({keyword:e,schemaCode:t})=>(0,Wu.str)`must be ${Qu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Wu._)`{comparison: ${Qu[e].okStr}, limit: ${t}}`},rB={keyword:Object.keys(Qu),type:"number",schemaType:"number",$data:!0,error:eB,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Wu._)`${r} ${Qu[t].fail} ${n} || isNaN(${r})`)}};var nB=rm.default=rB;const iB=zt({__proto__:null,default:nB},[rm]),oB=Gt(iB);var nm={};Object.defineProperty(nm,"__esModule",{value:!0});const Gl=ge,sB={message:({schemaCode:e})=>(0,Gl.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Gl._)`{multipleOf: ${e}}`},aB={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sB,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Gl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Gl._)`${s} !== parseInt(${s})`;e.fail$data((0,Gl._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};var lB=nm.default=aB;const cB=zt({__proto__:null,default:lB},[nm]),uB=Gt(cB);var im={},om={};Object.defineProperty(om,"__esModule",{value:!0});function ZS(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 hB=om.default=ZS;ZS.code='require("ajv/dist/runtime/ucs2length").default';const dB=zt({__proto__:null,default:hB},[om]),fB=Gt(dB);Object.defineProperty(im,"__esModule",{value:!0});const Ko=ge,pB=Te,mB=fB,gB={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,Ko.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ko._)`{limit: ${e}}`},vB={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gB,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Ko.operators.GT:Ko.operators.LT,s=i.opts.unicode===!1?(0,Ko._)`${r}.length`:(0,Ko._)`${(0,pB.useFunc)(e.gen,mB.default)}(${r})`;e.fail$data((0,Ko._)`${s} ${o} ${n}`)}};var yB=im.default=vB;const _B=zt({__proto__:null,default:yB},[im]),bB=Gt(_B);var sm={};Object.defineProperty(sm,"__esModule",{value:!0});const wB=Un,Zu=ge,xB={message:({schemaCode:e})=>(0,Zu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Zu._)`{pattern: ${e}}`},SB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:xB,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Zu._)`(new RegExp(${i}, ${s}))`:(0,wB.usePattern)(e,n);e.fail$data((0,Zu._)`!${a}.test(${t})`)}};var $B=sm.default=SB;const kB=zt({__proto__:null,default:$B},[sm]),EB=Gt(kB);var am={};Object.defineProperty(am,"__esModule",{value:!0});const Vl=ge,CB={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Vl.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Vl._)`{limit: ${e}}`},PB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:CB,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Vl.operators.GT:Vl.operators.LT;e.fail$data((0,Vl._)`Object.keys(${r}).length ${i} ${n}`)}};var TB=am.default=PB;const OB=zt({__proto__:null,default:TB},[am]),AB=Gt(OB);var lm={};Object.defineProperty(lm,"__esModule",{value:!0});const Bl=Un,Hl=ge,NB=Te,RB={message:({params:{missingProperty:e}})=>(0,Hl.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Hl._)`{missingProperty: ${e}}`},jB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:RB,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;const c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){const 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=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${g}" is not defined at "${v}" (strictRequired)`;(0,NB.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(Hl.nil,d);else for(const h of r)(0,Bl.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,Bl.checkMissingProp)(e,r,h)),(0,Bl.reportMissingProp)(e,h),t.else()}function d(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Bl.noPropertyInData)(t,i,h,a.ownProperties),()=>e.error())})}function f(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,Bl.propertyInData)(t,i,h,a.ownProperties)),t.if((0,Hl.not)(p),()=>{e.error(),t.break()})},Hl.nil)}}};var DB=lm.default=jB;const IB=zt({__proto__:null,default:DB},[lm]),FB=Gt(IB);var cm={};Object.defineProperty(cm,"__esModule",{value:!0});const ql=ge,MB={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,ql.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ql._)`{limit: ${e}}`},LB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:MB,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?ql.operators.GT:ql.operators.LT;e.fail$data((0,ql._)`${r}.length ${i} ${n}`)}};var UB=cm.default=LB;const zB=zt({__proto__:null,default:UB},[cm]),GB=Gt(zB);var um={},hm={};Object.defineProperty(hm,"__esModule",{value:!0});const t$=lS;t$.code='require("ajv/dist/runtime/equal").default';var VB=hm.default=t$;const BB=zt({__proto__:null,default:VB},[hm]),dm=Gt(BB);Object.defineProperty(um,"__esModule",{value:!0});const fm=Gu,Pr=ge,HB=Te,qB=dm,KB={message:({params:{i:e,j:t}})=>(0,Pr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Pr._)`{i: ${e}, j: ${t}}`},YB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:KB,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;const c=t.let("valid"),l=o.items?(0,fm.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,Pr._)`${s} === false`),e.ok(c);function u(){const p=t.let("i",(0,Pr._)`${r}.length`),g=t.let("j");e.setParams({i:p,j:g}),t.assign(c,!0),t.if((0,Pr._)`${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"),b=(0,fm.checkDataTypes)(l,v,a.opts.strictNumbers,fm.DataType.Wrong),_=t.const("indices",(0,Pr._)`{}`);t.for((0,Pr._)`;${p}--;`,()=>{t.let(v,(0,Pr._)`${r}[${p}]`),t.if(b,(0,Pr._)`continue`),l.length>1&&t.if((0,Pr._)`typeof ${v} == "string"`,(0,Pr._)`${v} += "_"`),t.if((0,Pr._)`typeof ${_}[${v}] == "number"`,()=>{t.assign(g,(0,Pr._)`${_}[${v}]`),e.error(),t.assign(c,!1).break()}).code((0,Pr._)`${_}[${v}] = ${p}`)})}function h(p,g){const v=(0,HB.useFunc)(t,qB.default),b=t.name("outer");t.label(b).for((0,Pr._)`;${p}--;`,()=>t.for((0,Pr._)`${g} = ${p}; ${g}--;`,()=>t.if((0,Pr._)`${v}(${r}[${p}], ${r}[${g}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};var XB=um.default=YB;const JB=zt({__proto__:null,default:XB},[um]),WB=Gt(JB);var pm={};Object.defineProperty(pm,"__esModule",{value:!0});const mm=ge,QB=Te,ZB=dm,tH={message:"must be equal to constant",params:({schemaCode:e})=>(0,mm._)`{allowedValue: ${e}}`},eH={keyword:"const",$data:!0,error:tH,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,mm._)`!${(0,QB.useFunc)(t,ZB.default)}(${r}, ${i})`):e.fail((0,mm._)`${o} !== ${r}`)}};var rH=pm.default=eH;const nH=zt({__proto__:null,default:rH},[pm]),iH=Gt(nH);var gm={};Object.defineProperty(gm,"__esModule",{value:!0});const Kl=ge,oH=Te,sH=dm,aH={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Kl._)`{allowedValues: ${e}}`},lH={keyword:"enum",schemaType:"array",$data:!0,error:aH,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=s.opts.loopEnum;let c;const l=()=>c??(c=(0,oH.useFunc)(t,sH.default));let u;if(a||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,Kl.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,Kl._)`${l()}(${r}, ${h})`,()=>t.assign(u,!0).break()))}function f(h,p){const g=i[p];return typeof g=="object"&&g!==null?(0,Kl._)`${l()}(${r}, ${h}[${p}])`:(0,Kl._)`${r} === ${g}`}}};var cH=gm.default=lH;const uH=zt({__proto__:null,default:cH},[gm]),hH=Gt(uH);Object.defineProperty(em,"__esModule",{value:!0});const dH=oB,fH=uB,pH=bB,mH=EB,gH=AB,vH=FB,yH=GB,_H=WB,bH=iH,wH=hH,xH=[dH.default,fH.default,pH.default,mH.default,gH.default,vH.default,yH.default,_H.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},bH.default,wH.default];var SH=em.default=xH;const $H=zt({__proto__:null,default:SH},[em]),kH=Gt($H);var vm={},Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});var e$=Yl.validateAdditionalItems=void 0;const Yo=ge,ym=Te,EH={message:({params:{len:e}})=>(0,Yo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Yo._)`{limit: ${e}}`},CH={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:EH,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ym.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}r$(e,n)}};function r$(e,t){const{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;const a=r.const("len",(0,Yo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Yo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,ym.alwaysValidSchema)(s,n)){const l=r.var("valid",(0,Yo._)`${a} <= ${t.length}`);r.if((0,Yo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:ym.Type.Num},l),s.allErrors||r.if((0,Yo.not)(l),()=>r.break())})}}e$=Yl.validateAdditionalItems=r$;var PH=Yl.default=CH;const TH=zt({__proto__:null,default:PH,get validateAdditionalItems(){return e$}},[Yl]),n$=Gt(TH);var _m={},Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});var i$=Xl.validateTuple=void 0;const o$=ge,th=Te,OH=Un,AH={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return s$(e,"additionalItems",t);r.items=!0,!(0,th.alwaysValidSchema)(r,t)&&e.ok((0,OH.validateArray)(e))}};function s$(e,t,r=e.schema){const{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=th.mergeEvaluated.items(n,r.length,a.items));const c=n.name("valid"),l=n.const("len",(0,o$._)`${o}.length`);r.forEach((d,f)=>{(0,th.alwaysValidSchema)(a,d)||(n.if((0,o$._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function u(d){const{opts:f,errSchemaPath:h}=a,p=r.length,g=p===d.minItems&&(p===d.maxItems||d[t]===!1);if(f.strictTuples&&!g){const v=`"${s}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,th.checkStrictMode)(a,v,f.strictTuples)}}}i$=Xl.validateTuple=s$;var NH=Xl.default=AH;const RH=zt({__proto__:null,default:NH,get validateTuple(){return i$}},[Xl]),a$=Gt(RH);Object.defineProperty(_m,"__esModule",{value:!0});const jH=a$,DH={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,jH.validateTuple)(e,"items")};var IH=_m.default=DH;const FH=zt({__proto__:null,default:IH},[_m]),MH=Gt(FH);var bm={};Object.defineProperty(bm,"__esModule",{value:!0});const l$=ge,LH=Te,UH=Un,zH=n$,GH={message:({params:{len:e}})=>(0,l$.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,l$._)`{limit: ${e}}`},VH={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:GH,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,LH.alwaysValidSchema)(n,t)&&(i?(0,zH.validateAdditionalItems)(e,i):e.ok((0,UH.validateArray)(e)))}};var BH=bm.default=VH;const HH=zt({__proto__:null,default:BH},[bm]),qH=Gt(HH);var wm={};Object.defineProperty(wm,"__esModule",{value:!0});const wn=ge,eh=Te,KH={message:({params:{min:e,max:t}})=>t===void 0?(0,wn.str)`must contain at least ${e} valid item(s)`:(0,wn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,wn._)`{minContains: ${e}}`:(0,wn._)`{minContains: ${e}, maxContains: ${t}}`},YH={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:KH,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;let s,a;const{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;const u=t.const("len",(0,wn._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,eh.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,eh.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,eh.alwaysValidSchema)(o,r)){let g=(0,wn._)`${u} >= ${s}`;a!==void 0&&(g=(0,wn._)`${g} && ${u} <= ${a}`),e.pass(g);return}o.items=!0;const d=t.name("valid");a===void 0&&s===1?h(d,()=>t.if(d,()=>t.break())):s===0?(t.let(d,!0),a!==void 0&&t.if((0,wn._)`${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,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:eh.Type.Num,compositeRule:!0},g),v()})}function p(g){t.code((0,wn._)`${g}++`),a===void 0?t.if((0,wn._)`${g} >= ${s}`,()=>t.assign(d,!0).break()):(t.if((0,wn._)`${g} > ${a}`,()=>t.assign(d,!1).break()),s===1?t.assign(d,!0):t.if((0,wn._)`${g} >= ${s}`,()=>t.assign(d,!0)))}}};var XH=wm.default=YH;const JH=zt({__proto__:null,default:XH},[wm]),WH=Gt(JH);var xm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ge,r=Te,n=Un;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);s(c,l),a(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 s(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 b of g)(0,n.checkReportMissingProp)(c,b)}):(u.if((0,t._)`${v} && (${(0,n.checkMissingProp)(c,g,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=s;function a(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=a,e.default=i})(xm);const QH=Wr(xm),ZH=zt({__proto__:null,default:QH},[xm]),tq=Gt(ZH);var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});const c$=ge,eq=Te,rq={message:"property name must be valid",params:({params:e})=>(0,c$._)`{propertyName: ${e.propertyName}}`},nq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:rq,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,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,c$.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};var iq=Sm.default=nq;const oq=zt({__proto__:null,default:iq},[Sm]),sq=Gt(oq);var $m={};Object.defineProperty($m,"__esModule",{value:!0});const rh=Un,Vn=ge,aq=Ri,nh=Te,lq={message:"must NOT have additional properties",params:({params:e})=>(0,Vn._)`{additionalProperty: ${e.additionalProperty}}`},cq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:lq,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,nh.alwaysValidSchema)(s,r))return;const l=(0,rh.allSchemaProperties)(n.properties),u=(0,rh.allSchemaProperties)(n.patternProperties);d(),e.ok((0,Vn._)`${o} === ${aq.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 b;if(l.length>8){const _=(0,nh.schemaRefOrVal)(s,n.properties,"properties");b=(0,rh.isOwnProperty)(t,_,v)}else l.length?b=(0,Vn.or)(...l.map(_=>(0,Vn._)`${v} === ${_}`)):b=Vn.nil;return u.length&&(b=(0,Vn.or)(b,...u.map(_=>(0,Vn._)`${(0,rh.usePattern)(e,_)}.test(${v})`))),(0,Vn.not)(b)}function h(v){t.code((0,Vn._)`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(),a||t.break();return}if(typeof r=="object"&&!(0,nh.alwaysValidSchema)(s,r)){const b=t.name("valid");c.removeAdditional==="failing"?(g(v,b,!1),t.if((0,Vn.not)(b),()=>{e.reset(),h(v)})):(g(v,b),a||t.if((0,Vn.not)(b),()=>t.break()))}}function g(v,b,_){const m={keyword:"additionalProperties",dataProp:v,dataPropType:nh.Type.Str};_===!1&&Object.assign(m,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(m,b)}}};var uq=$m.default=cq;const hq=zt({__proto__:null,default:uq},[$m]),u$=Gt(hq);var km={};Object.defineProperty(km,"__esModule",{value:!0});const dq=zl,h$=Un,Em=Te,d$=u$,fq={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&&d$.default.code(new dq.KeywordCxt(o,d$.default,"additionalProperties"));const s=(0,h$.allSchemaProperties)(r);for(const d of s)o.definedProperties.add(d);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Em.mergeEvaluated.props(t,(0,Em.toHash)(s),o.props));const a=s.filter(d=>!(0,Em.alwaysValidSchema)(o,r[d]));if(a.length===0)return;const c=t.name("valid");for(const d of a)l(d)?u(d):(t.if((0,h$.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 pq=km.default=fq;const mq=zt({__proto__:null,default:pq},[km]),gq=Gt(mq);var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});const f$=Un,ih=ge,p$=Te,m$=Te,vq={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,f$.allSchemaProperties)(r),c=a.filter(g=>(0,p$.alwaysValidSchema)(o,r[g]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;const l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof ih.Name)&&(o.props=(0,m$.evaluatedPropsToName)(t,o.props));const{props:d}=o;f();function f(){for(const g of a)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,p$.checkStrictMode)(o,`property ${v} matches pattern ${g} (use allowMatchingProperties)`)}function p(g){t.forIn("key",n,v=>{t.if((0,ih._)`${(0,f$.usePattern)(e,g)}.test(${v})`,()=>{const b=c.includes(g);b||e.subschema({keyword:"patternProperties",schemaProp:g,dataProp:v,dataPropType:m$.Type.Str},u),o.opts.unevaluated&&d!==!0?t.assign((0,ih._)`${d}[${v}]`,!0):!b&&!o.allErrors&&t.if((0,ih.not)(u),()=>t.break())})})}}};var yq=Cm.default=vq;const _q=zt({__proto__:null,default:yq},[Cm]),bq=Gt(_q);var Pm={};Object.defineProperty(Pm,"__esModule",{value:!0});const wq=Te,xq={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,wq.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 Sq=Pm.default=xq;const $q=zt({__proto__:null,default:Sq},[Pm]),kq=Gt($q);var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0});const Eq=Un,Cq={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Eq.validateUnion,error:{message:"must match a schema in anyOf"}};var Pq=Tm.default=Cq;const Tq=zt({__proto__:null,default:Pq},[Tm]),Oq=Gt(Tq);var Om={};Object.defineProperty(Om,"__esModule",{value:!0});const oh=ge,Aq=Te,Nq={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,oh._)`{passingSchemas: ${e.passing}}`},Rq={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Nq,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,d)=>{let f;(0,Aq.alwaysValidSchema)(i,u)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},c),d>0&&t.if((0,oh._)`${c} && ${s}`).assign(s,!1).assign(a,(0,oh._)`[${a}, ${d}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,d),f&&e.mergeEvaluated(f,oh.Name)})})}}};var jq=Om.default=Rq;const Dq=zt({__proto__:null,default:jq},[Om]),Iq=Gt(Dq);var Am={};Object.defineProperty(Am,"__esModule",{value:!0});const Fq=Te,Mq={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((o,s)=>{if((0,Fq.alwaysValidSchema)(n,o))return;const a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};var Lq=Am.default=Mq;const Uq=zt({__proto__:null,default:Lq},[Am]),zq=Gt(Uq);var Nm={};Object.defineProperty(Nm,"__esModule",{value:!0});const sh=ge,g$=Te,Gq={message:({params:e})=>(0,sh.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,sh._)`{failingKeyword: ${e.ifClause}}`},Vq={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Gq,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,g$.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=v$(n,"then"),o=v$(n,"else");if(!i&&!o)return;const s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,sh.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,d){return()=>{const f=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(f,s),d?t.assign(d,(0,sh._)`${u}`):e.setParams({ifClause:u})}}}};function v$(e,t){const r=e.schema[t];return r!==void 0&&!(0,g$.alwaysValidSchema)(e,r)}var Bq=Nm.default=Vq;const Hq=zt({__proto__:null,default:Bq},[Nm]),qq=Gt(Hq);var Rm={};Object.defineProperty(Rm,"__esModule",{value:!0});const Kq=Te,Yq={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Kq.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};var Xq=Rm.default=Yq;const Jq=zt({__proto__:null,default:Xq},[Rm]),Wq=Gt(Jq);Object.defineProperty(vm,"__esModule",{value:!0});const Qq=n$,Zq=MH,tK=a$,eK=qH,rK=WH,nK=tq,iK=sq,oK=u$,sK=gq,aK=bq,lK=kq,cK=Oq,uK=Iq,hK=zq,dK=qq,fK=Wq;function pK(e=!1){const t=[lK.default,cK.default,uK.default,hK.default,dK.default,fK.default,iK.default,oK.default,nK.default,sK.default,aK.default];return e?t.push(Zq.default,eK.default):t.push(Qq.default,tK.default),t.push(rK.default),t}var mK=vm.default=pK;const gK=zt({__proto__:null,default:mK},[vm]),vK=Gt(gK);var jm={},Dm={};Object.defineProperty(Dm,"__esModule",{value:!0});const cr=ge,yK={message:({schemaCode:e})=>(0,cr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,cr._)`{format: ${e}}`},_K={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yK,code(e,t){const{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:d}=a;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,cr._)`${p}[${s}]`),v=r.let("fType"),b=r.let("format");r.if((0,cr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(v,(0,cr._)`${g}.type || "string"`).assign(b,(0,cr._)`${g}.validate`),()=>r.assign(v,(0,cr._)`"string"`).assign(b,g)),e.fail$data((0,cr.or)(_(),m()));function _(){return c.strictSchema===!1?cr.nil:(0,cr._)`${s} && !${b}`}function m(){const S=u.$async?(0,cr._)`(${g}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,cr._)`${b}(${n})`,N=(0,cr._)`(typeof ${b} == "function" ? ${S} : ${b}.test(${n}))`;return(0,cr._)`${b} && ${b} !== true && ${v} === ${t} && !${N}`}}function h(){const p=d.formats[o];if(!p){_();return}if(p===!0)return;const[g,v,b]=m(p);g===t&&e.pass(S());function _(){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 k=N instanceof RegExp?(0,cr.regexpCode)(N):c.code.formats?(0,cr._)`${c.code.formats}${(0,cr.getProperty)(o)}`:void 0,A=r.scopeValue("formats",{key:o,ref:N,code:k});return typeof N=="object"&&!(N instanceof RegExp)?[N.type||"string",N.validate,(0,cr._)`${A}.validate`]:["string",N,A]}function S(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,cr._)`await ${b}(${n})`}return typeof v=="function"?(0,cr._)`${b}(${n})`:(0,cr._)`${b}.test(${n})`}}}};var bK=Dm.default=_K;const wK=zt({__proto__:null,default:bK},[Dm]),xK=Gt(wK);Object.defineProperty(jm,"__esModule",{value:!0});const SK=xK,$K=[SK.default];var kK=jm.default=$K;const EK=zt({__proto__:null,default:kK},[jm]),CK=Gt(EK);var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});var y$=Xo.contentVocabulary=_$=Xo.metadataVocabulary=void 0,_$=Xo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];y$=Xo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const PK=zt({__proto__:null,get contentVocabulary(){return y$},default:Xo,get metadataVocabulary(){return _$}},[Xo]),TK=Gt(PK);Object.defineProperty(Q0,"__esModule",{value:!0});const OK=tB,AK=kH,NK=vK,RK=CK,b$=TK,jK=[OK.default,AK.default,(0,NK.default)(),RK.default,b$.metadataVocabulary,b$.contentVocabulary];var DK=Q0.default=jK;const IK=zt({__proto__:null,default:DK},[Q0]),FK=Gt(IK);var Im={},Fm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(Fm);const MK=Wr(Fm),LK=zt({__proto__:null,default:MK},[Fm]),UK=Gt(LK);Object.defineProperty(Im,"__esModule",{value:!0});const Ns=ge,Mm=UK,w$=X0,zK=Te,GK={message:({params:{discrError:e,tagName:t}})=>e===Mm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ns._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},VK={keyword:"discriminator",type:"object",schemaType:"object",error:GK,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),l=t.const("tag",(0,Ns._)`${r}${(0,Ns.getProperty)(a)}`);t.if((0,Ns._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Mm.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){const h=f();t.if(!1);for(const p in h)t.elseIf((0,Ns._)`${l} === ${p}`),t.assign(c,d(h[p]));t.else(),e.error(!1,{discrError:Mm.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function d(h){const p=t.name("valid"),g=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(g,Ns.Name),p}function f(){var h;const p={},g=b(i);let v=!0;for(let S=0;S<s.length;S++){let N=s[S];N!=null&&N.$ref&&!(0,zK.schemaHasRulesButRef)(N,o.self.RULES)&&(N=w$.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,N==null?void 0:N.$ref),N instanceof w$.SchemaEnv&&(N=N.schema));const k=(h=N==null?void 0:N.properties)===null||h===void 0?void 0:h[a];if(typeof k!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(g||b(N)),_(k,S)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return p;function b({required:S}){return Array.isArray(S)&&S.includes(a)}function _(S,N){if(S.const)m(S.const,N);else if(S.enum)for(const k of S.enum)m(k,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function m(S,N){if(typeof S!="string"||S in p)throw new Error(`discriminator: "${a}" values must be unique strings`);p[S]=N}}}};var BK=Im.default=VK;const HK=zt({__proto__:null,default:BK},[Im]),qK=Gt(HK),KK="http://json-schema.org/draft-07/schema#",YK="http://json-schema.org/draft-07/schema#",XK="Core schema meta-schema",JK={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:[]}},WK=["object","boolean"],QK={$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:"#"}},ZK={$schema:KK,$id:YK,title:XK,definitions:JK,type:WK,properties:QK,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=LV,n=FK,i=qK,o=ZK,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(p,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=zl;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=ge;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=V0();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=q0;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(C0,C0.exports);var x$=C0.exports;const S$=Wr(x$),tY=zt({__proto__:null,default:S$},[x$]);var Lm={exports:{}};const eY=Gt(tY);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=eY,n=ge,i=Il,o=zl,s=Fl,a=Ri,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(b){const{gen:_,data:m,schema:S,schemaValue:N,it:k}=b;if(k.createErrors===!1)return;const A=S,R=n.strConcat(a.default.instancePath,k.errorPath);_.if(r._`${a.default.errors} > 0`,()=>{if(typeof A=="object"){const[$,y]=B(A);y&&Y(y),$&&W($),nt(z(A))}const E=typeof A=="string"?A:A._;E&&rt(E),v.keepErrors||lt()});function z({properties:E,items:$}){const y={};if(E){y.props={};for(const C in E)y.props[C]=[]}if($){y.items={};for(let C=0;C<$.length;C++)y.items[C]=[]}return y}function B(E){let $,y;for(const C in E){if(C==="properties"||C==="items")continue;const M=E[C];if(typeof M=="object"){$||($={});const I=$[C]={};for(const G in M)I[G]=[]}else y||(y={}),y[C]=[]}return[$,y]}function Y(E){const $=_.const("emErrors",r.stringify(E)),y=_.const("templates",st(E,S));_.forOf("err",a.default.vErrors,G=>_.if(xt(G,$),()=>_.code(r._`${$}[${G}.keyword].push(${G})`).assign(r._`${G}.${l}`,!0)));const{singleError:C}=v;if(C){const G=_.let("message",r._`""`),q=_.let("paramsErrors",r._`[]`);M(et=>{_.if(G,()=>_.code(r._`${G} += ${typeof C=="string"?C:";"}`)),_.code(r._`${G} += ${I(et)}`),_.assign(q,r._`${q}.concat(${$}[${et}])`)}),s.reportError(b,{message:G,params:r._`{errors: ${q}}`})}else M(G=>s.reportError(b,{message:I(G),params:r._`{errors: ${$}[${G}]}`}));function M(G){_.forIn("key",$,q=>_.if(r._`${$}[${q}].length`,()=>G(q)))}function I(G){return r._`${G} in ${y} ? ${y}[${G}]() : ${N}[${G}]`}}function W(E){const $=_.const("emErrors",r.stringify(E)),y=[];for(const q in E)y.push([q,st(E[q],S[q])]);const C=_.const("templates",_.object(...y)),M=_.scopeValue("obj",{ref:u,code:r.stringify(u)}),I=_.let("emPropParams"),G=_.let("emParamsErrors");_.forOf("err",a.default.vErrors,q=>_.if(xt(q,$),()=>{_.assign(I,r._`${M}[${q}.keyword]`),_.assign(G,r._`${$}[${q}.keyword][${q}.params[${I}]]`),_.if(G,()=>_.code(r._`${G}.push(${q})`).assign(r._`${q}.${l}`,!0))})),_.forIn("key",$,q=>_.forIn("keyProp",r._`${$}[${q}]`,et=>{_.assign(G,r._`${$}[${q}][${et}]`),_.if(r._`${G}.length`,()=>{const it=_.const("tmpl",r._`${C}[${q}] && ${C}[${q}][${et}]`);s.reportError(b,{message:r._`${it} ? ${it}() : ${N}[${q}][${et}]`,params:r._`{errors: ${G}}`})})}))}function nt(E){const{props:$,items:y}=E;if(!$&&!y)return;const C=r._`typeof ${m} == "object"`,M=r._`Array.isArray(${m})`,I=_.let("emErrors");let G,q;const et=_.let("templates");$&&y?(G=_.let("emChildKwd"),_.if(C),_.if(M,()=>{it(y,S.items),_.assign(G,r.str`items`)},()=>{it($,S.properties),_.assign(G,r.str`properties`)}),q=r._`[${G}]`):y?(_.if(M),it(y,S.items),q=r._`.items`):$&&(_.if(n.and(C,n.not(M))),it($,S.properties),q=r._`.properties`),_.forOf("err",a.default.vErrors,ut=>Ct(ut,I,Tt=>_.code(r._`${I}[${Tt}].push(${ut})`).assign(r._`${ut}.${l}`,!0))),_.forIn("key",I,ut=>_.if(r._`${I}[${ut}].length`,()=>{s.reportError(b,{message:r._`${ut} in ${et} ? ${et}[${ut}]() : ${N}${q}[${ut}]`,params:r._`{errors: ${I}[${ut}]}`}),_.assign(r._`${a.default.vErrors}[${a.default.errors}-1].instancePath`,r._`${R} + "/" + ${ut}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),_.endIf();function it(ut,Tt){_.assign(I,r.stringify(ut)),_.assign(et,st(ut,Tt))}}function rt(E){const $=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,y=>_.if($t(y),()=>_.code(r._`${$}.push(${y})`).assign(r._`${y}.${l}`,!0))),_.if(r._`${$}.length`,()=>s.reportError(b,{message:X(E),params:r._`{errors: ${$}}`}))}function lt(){const E=_.const("emErrs",r._`[]`);_.forOf("err",a.default.vErrors,$=>_.if(r._`!${$}.${l}`,()=>_.code(r._`${E}.push(${$})`))),_.assign(a.default.vErrors,E).assign(a.default.errors,r._`${E}.length`)}function xt(E,$){return n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath === ${R}`,r._`${E}.keyword in ${$}`,r._`${E}.schemaPath.indexOf(${k.errSchemaPath}) === 0`,r._`/^\\/[^\\/]*$/.test(${E}.schemaPath.slice(${k.errSchemaPath.length}))`)}function Ct(E,$,y){_.if(n.and(r._`${E}.keyword !== ${c}`,r._`!${E}.${l}`,r._`${E}.instancePath.indexOf(${R}) === 0`),()=>{const C=_.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:r._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),M=_.const("emMatches",r._`${C}.exec(${E}.instancePath.slice(${R}.length))`),I=_.const("emChild",r._`${M} && ${M}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);_.if(r._`${I} !== undefined && ${I} in ${$}`,()=>y(I))})}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(${k.errSchemaPath}) === 0`,r._`${E}.schemaPath[${k.errSchemaPath}.length] === "/"`)}function st(E,$){const y=[];for(const C in E){const M=$[C];d.test(M)&&y.push([C,T(M)])}return _.object(...y)}function X(E){return d.test(E)?new i._Code(i.safeStringify(E).replace(f,($,y)=>`" + JSON.stringify(${o.getData(y,k)}) + "`).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,b={})=>{if(!v.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(v.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return v.addKeyword(p(b))};t.default=g,e.exports=g,e.exports.default=g})(Lm,Lm.exports);var rY=Lm.exports;const nY=Wr(rY),iY=new S$({allErrors:!0});nY(iY);const oY={class:"group"},sY=Ti(K.defineComponent({__name:"SwitchHeadlessUI",props:{init:{type:Boolean,default:!1},name:{},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"}},emits:["change"],setup(e,{emit:t}){const r=e;function n(f){const h=AL("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),s=n(r.padding),a=o.number-s.number*2+o.suffix,c=r.padding,l=i.number-n(c).number-n(a).number+i.suffix,u=t,d=K.ref(r.init);return K.watch(d,function(){u("change",d.value)}),(f,h)=>(K.openBlock(),K.createBlock(K.unref(EL),null,{default:K.withCtx(()=>[K.createElementVNode("div",oY,[K.createVNode(K.unref(CL),{modelValue:d.value,"onUpdate:modelValue":h[0]||(h[0]=p=>d.value=p),name:f.name,style:K.normalizeStyle(["padding: 0","margin: 0","border: 0","background-color: transparent"])},{default:K.withCtx(()=>[K.createElementVNode("div",{class:"switch",style:K.normalizeStyle(["width: "+r.width,"height: "+r.height,"background-color: "+(d.value?K.unref(Le).colorGrayEF:K.unref(Le).colorGrayF5)])},[K.createElementVNode("span",{class:"round",style:K.normalizeStyle(["width: "+a,"height: "+a,"background-color: "+(d.value?K.unref(Le).colorPrimary:K.unref(da)(K.unref(Le).colorPrimary,30)),"transform: translate("+(d.value?l:K.unref(c))+", 0)"])},null,4)],4)]),_:1},8,["modelValue","name"])])]),_:1}))}}),[["__scopeId","data-v-d8d53e6f"]]);dr.Button=ks,dr.Dialog=Jp,dr.DialogLoading=MM,dr.Icon=Uo,dr.MobileLayout=CM,dr.Select=zM,dr.SelectHeadlessUI=PL,dr.SwitchHeadlessUI=sY,Object.defineProperty(dr,Symbol.toStringTag,{value:"Module"})});
44
+ })`}static safeHtml(e,n="encode"){const s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e=e.replace(new RegExp(n=="decode"?o:s[o],"g"),n=="decode"?s[o]:o));return e}static loadScript(e,n=()=>{},s=(o,r,i,a,c)=>{}){const o=document.createElement("script");o.type="text/javascript",o.src=e,o.async=!1,document.body.appendChild(o),o.onload=n,o.onerror=s}static loadStyle(e){const n=document.createElement("link");n.rel="stylesheet",n.href=e,document.head.insertBefore(n,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const o=()=>s>=n.length?(e(),!0):!1;o()||n.forEach(r=>{r.onload=()=>{s+=1,o()}})});static lazyloadImages(){const e=document.getElementsByTagName("img"),n=kr().height;let s=0;return()=>{for(let o=s;o<e.length;o++)e[o].getBoundingClientRect().top<n&&(e[o].src=e[o].getAttribute("data-src")??"",s=o+1)}}static iframePostMessage(e,n="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=n,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,n)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,n,s=400)=>{const o=document.createElement("span");o.style.visibility="hidden",o.style.padding="0",o.style.whiteSpace="nowrap",o.style.overflow="visible",o.style.fontSize=n>12?n+"px":"12px",o.style.fontWeight=s.toString(),o.innerText=e,document.body.appendChild(o);const r=o.offsetWidth;return document.body.removeChild(o),r};static getFixedWidthText=(e,n,s=12,o=400,r=!0)=>{let i="",a="",c="";if(!e||n<s||typeof e!="string")return i;const l=e.split(""),f=document.createElement("span");f.style.visibility="hidden",f.style.padding="0",f.style.whiteSpace="nowrap",f.style.overflow="visible",f.style.fontSize=s>12?s+"px":"12px",f.style.fontWeight=o.toString(),document.body.appendChild(f);for(let d=0,u=l.length;d<u;d++){const p=l[d];if(a=c,c+=p,i=c,f.innerText=c,f.offsetWidth>n){r?i=a+"...":i=a;break}}return document.body.removeChild(f),i};static getLocation(){return new Promise((e,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):n("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static copyToClipboard=e=>navigator.clipboard.writeText(e);static getSelectedText=()=>window.getSelection()?.toString();static siblings=e=>Array.prototype.slice.call(e.parentNode?.children).filter(n=>n!==e);static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static addDebuggerOnBeforeUnload=()=>{window.addEventListener("beforeunload",()=>{debugger})}}function ve(t,e=document){return new U(t,e)}class U{context;nodes;prefixs=["moz","o","ms","webkit"];constructor(e,n=document){if(this.context=n,typeof e=="string"?this.nodes=Array.from(this.context.querySelectorAll(e)):e instanceof HTMLElement?this.nodes=[e]:this.nodes=e,this.nodes.length===0)throw new Error(`can not find ${e}`);this.each((s,o)=>{s instanceof HTMLInputElement&&s.addEventListener("change",r=>{this.changeRadioChecked(r.currentTarget.value)}),s instanceof HTMLSelectElement&&s.addEventListener("change",r=>{this.changeSelectSelected(r.currentTarget.value)})})}get(e){return e<0&&(e=this.nodes.length+e),this.nodes[e]}concat(e){return new U(this.nodes.concat(e.nodes),this.context)}then(e){return e(this)??this}each(e){return this.nodes.forEach((n,s)=>{e(n,s)}),this}_save(e,n,s){e._mQuery||(e._mQuery={}),Array.isArray(s)?(e._mQuery[n]=e._mQuery[n]??[],e._mQuery[n].push(...s)):s!=null?e._mQuery[n]=s:delete e._mQuery[n]}on(e,n,s){return this.nodes.forEach(o=>{this._save(o,"events",[{event:e,callback:n,options:s}]),o.addEventListener(e,n,s)}),this}off(e,n,s){return this.nodes.forEach(o=>{o.removeEventListener(e,n,s)}),this}dispatchEvent(e,n){let s;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];return typeof e=="string"?o.includes(e)?s=new MouseEvent(e,n):r.includes(e)?s=new KeyboardEvent(e,n):s=new Event(e,n):s=e,this.nodes.forEach(i=>{i.dispatchEvent(s)}),this}change(){return this.dispatchEvent("change")}click(){return this.dispatchEvent("click")}static hasEvent(e,n){return"on"+n in e}static _fragment(e){const n=document.createElement("template");return n.innerHTML=e,n.content.childNodes.forEach(s=>{const o=U._scriptConvert(s);o!=s&&n.content.replaceChild(o,s)}),n.content}static _scriptConvert(e){const n=s=>{const r=s.ownerDocument.createElement("script");r.text=s.text;const i=s.attributes;for(let a=0;a<i.length;a++)r.setAttribute(i[a].name,i[a].value);return r};return e.tagName=="SCRIPT"&&(e=n(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(n(s),s)}),e}static _fixProp(e){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[e]?n[e]:e}static isSVG(e){return(e||document.documentElement).nodeName.toLowerCase()==="svg"}static createElement(e){return U.isSVG()?document.createElementNS.call(document,"http://www.w3.org/2000/svg",e):document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}_insert(e,n){const s=this.nodes.length;if(s<1)return this;const o=[];if(typeof n=="string")this.nodes.forEach(r=>{const i=U._fragment(n);o.push(...i.children),r[e](i)});else if(n instanceof HTMLElement)this.each(r=>{const i=s===1?n:U._fragment(n.outerHTML);o.push(...s===1?[n]:i.children),r[e](i)}),s>1&&n.remove();else if(n instanceof U){const r=s==1;n.each(i=>{this.each(a=>{const c=r?i:i.cloneNode(!0);o.push(c),a[e](c),U._scriptConvert(c)})}),r||n.remove()}return e=="replaceWith"&&(this.nodes=o),this}append(e){return this._insert("append",e)}prepend(e){return this._insert("prepend",e)}after(e){return this._insert("after",e)}before(e){return this._insert("before",e)}replace(e){return this._insert("replaceWith",e)}remove(){return this.nodes.forEach(e=>{e.remove()}),this}static removeChild(e){e.parentElement?.removeChild(e)}find(e){const n=[];return this.nodes.forEach(s=>{n.push(...Array.from(s.querySelectorAll(e)))}),new U(n,this.context)}filter(e){const n=[];return this.nodes.forEach(s=>{(s===e||typeof e=="string"&&s.matches&&s.matches(e))&&n.push(s)}),new U(n,this.context)}next(){const e=[];return this.nodes.forEach(n=>{const s=n.nextElementSibling;s&&e.push(s)}),new U(e,this.context)}prev(){const e=[];return this.nodes.forEach(n=>{const s=n.previousElementSibling;s&&e.push(s)}),new U(e,this.context)}closest(e){const n=[];return this.nodes.forEach(s=>{const o=s.closest(e);o&&n.push(o)}),new U(n,this.context)}shadow(e){const n=[];this.nodes.forEach(o=>{o.shadowRoot&&n.push(o.shadowRoot)});const s=new U(n,this.context);return e!==void 0?s.find(e):s}parent(e){return this.parents(e,!0)}parents(e,n=!1){const s=[],o=i=>{if(s.indexOf(i)==-1&&s.push(i),!n&&i.parentElement)return o(i.parentElement)};this.nodes.forEach(i=>{i.parentElement&&o(i.parentElement)});const r=new U(s,this.context);return e!==void 0?r.filter(e):r}static getComputedStyle(e,n,s){let o;const r=e.style.getPropertyPriority(n);return"getComputedStyle"in window?(o=getComputedStyle.call(window,e,s),o=o.getPropertyValue(n)):o=e.style.getPropertyValue(n),o+(r?"!"+r:"")}css(e,n){if((e===void 0||typeof e=="string")&&n===void 0){const s=this.nodes[0].style;if(typeof e=="string"){const o=s.getPropertyPriority(e),r=s.getPropertyValue(e).trim();return r?r+(o?"!"+o:""):U.getComputedStyle(this.nodes[0],e)}else{const o=Object.fromEntries(this.nodes[0].style.cssText.split(";").filter(r=>!!r).map(r=>r.split(":").map(i=>i.trim())));return Object.assign(o,getComputedStyle.call(window,this.nodes[0])),o}}else{let s={};return typeof e=="string"&&n!==void 0?s[e]=n:typeof e=="object"&&(s=e),this.nodes.forEach(o=>{Object.keys(s).forEach(r=>{const i=String(s[r]).toLowerCase().includes("!important")?"important":"";o.style.setProperty(r,String(s[r]).replace(/!important/i,""),i)})}),this}}addClass(e){return this.toggleClass(e,!0)}removeClass(e){return this.toggleClass(e,!1)}toggleClass(e,n){const s=e.split(/[,\s]+/);return this.nodes.forEach(o=>{s.forEach(r=>{if(r.trim()!==""){let i="toggle";n!==void 0&&(i=n?"add":"remove"),o.classList[i](r.trim())}})}),this}hasClass(e){const n=e.split(/[,\s]+/);let s=!1;return this.nodes.forEach(o=>{s=s||n.every(r=>Array.from(o.classList??[]).includes(r.trim()))}),s}attr(e,n){if(n===void 0&&typeof e=="string")return this.nodes[0].getAttribute(e);let s={};return typeof e=="object"?s=e:n!==void 0&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{o.setAttribute(r,i)})}),this}removeAttr(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{s.removeAttribute(o)})}),this}prop(e,n){if(n===void 0&&typeof e=="string")return this.nodes[0][e];{let s={};return typeof e=="object"?s=e:typeof e=="string"&&n!==void 0&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{const a=U._fixProp(r);o[a]=i,a=="innerHTML"&&U._scriptConvert(o)})}),this}}removeProp(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{delete s[U._fixProp(o)]})}),this}changeSelectSelected(e){this.nodes.forEach(n=>{if(n instanceof HTMLSelectElement){const s=n.options;for(let o=0,r=s.length;o<r;o++)s[o].value==e?s[o].selected=!0:s[o].selected=!1}})}changeRadioChecked(e){this.nodes.forEach(n=>{n instanceof HTMLInputElement&&(n.value==e?n.checked=!0:n.checked=!1)})}data(e,n){if(typeof e=="string"&&e.indexOf("-")!=-1)throw new Error(`Key "${e}" contains "-" (dash). Dashes are not allowed in property names. Use camelCase instead.`);if((typeof e=="string"||e===void 0)&&n===void 0){const s=Object.assign({},this.nodes[0].dataset);return Object.keys(s).forEach(o=>{if(s[o]?.startsWith("[")||s[o]?.startsWith("{"))try{s[o]=JSON.parse(s[o]??"")}catch{}}),typeof e=="string"?s[e]:s}else{let s={};return typeof e=="object"?s=e:typeof e=="string"&&(s[e]=n),this.nodes.forEach(o=>{Object.entries(s).forEach(([r,i])=>{i!=null?o.dataset[r]=i instanceof Object?JSON.stringify(i):i:delete o.dataset[r]})}),this}}removeData(e){const n=e.split(/[,\s]+/);return this.nodes.forEach(s=>{n.forEach(o=>{delete s.dataset[o]})}),this}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}toggle(e){return this.nodes.forEach(n=>{const s=n.style.display,o=getComputedStyle(n).display,r=s=="none"||o=="none";if(r&&(e===void 0||e===!0)){const i=n instanceof HTMLTableRowElement?"table-row":n instanceof HTMLTableCellElement?"table-cell":"block";n.style.display=n._mQuery?.prevDisplay??(s==o&&o!="none"?"":i),this._save(n,"prevDisplay",null)}!r&&(e==null||e===!1)&&(o!="none"&&this._save(n,"prevDisplay",o),n.style.setProperty("display","none"))})}empty(){return this.html("")}html(e){return e instanceof HTMLElement?this.empty().append(e.innerHTML):this.prop("innerHTML",e)}text(e){return this.prop("textContent",e)}val(e){return this.prop("value",e)}}function Qn(t){return t*Math.PI/180}function Or(t){return t*180/Math.PI}function Gc(t,e,n,s){const o=t-n,r=e-s;return Math.sqrt(o*o+r*r)}function Pr(t,e,n,s){const o=n-t,r=s-e;return Math.atan2(r,o)}function es(t){return t[0]*t[0]+t[1]*t[1]}function Nr(t){const e=Math.sqrt(es(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}function Uc(t,e,n,s,o=10){if(Math.abs(n-t)<o&&Math.abs(s-e)<o)return"no";const r=Or(Pr(t,e,n,s));return r>=-135&&r<=-45?"up":r>45&&r<135?"down":r>=135&&r<=180||r>=-180&&r<-135?"left":r>=-45&&r<=45?"right":"no"}class yt{x;y;vx;vy;ax;ay;mass;constructor(e){this.x=e.x,this.y=e.y,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0}fromAngleAndLength(e,n){return new yt({x:Math.cos(e)*n,y:Math.sin(e)*n})}distanceTo(e){return Gc(this.x,this.y,e.x,e.y)}angleTo(e){return Pr(this.x,this.y,e.x,e.y)}followTo(e,n=3){const s=this.angleTo(e),{x:o,y:r}=this.fromAngleAndLength(s,n);this.vx=o,this.vy=r,this.nextFrame()}followAccelerationTo(e,n=.05){const s=this.angleTo(e),{x:o,y:r}=this.fromAngleAndLength(s,n);this.ax=o,this.ay=r,this.nextFrame()}nextFrame(e){const n=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,s>0){const o=Math.atan2(this.vy,this.vx);let r=Math.sqrt(this.vx*this.vx+this.vy*this.vy);r>s?r-=s:r=0,this.vx=Math.cos(o)*r,this.vy=Math.sin(o)*r}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,n){const s=n?.gravity??0,o=n?.friction??1,r=n?.easing??.05,i=e.x-this.x,a=e.y-this.y;this.vx=i*r,this.vy=a*r,this.vy+=s,this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,n){const s=n?.gravity??0,o=n?.friction??.95,r=n?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const c=a.x-this.x,l=a.y-this.y,f=c*r,d=l*r;this.vx+=f,this.vy+=d}),this.vy+=s,this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,n){const s=n?.gravity??0,o=n?.friction??.95,r=n?.spring??.03,i=n?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new yt({x:e.x-Math.cos(a)*i,y:e.y-Math.sin(a)*i}),{spring:r,friction:o,gravity:s})}}class Kc extends yt{width;height;constructor(e){super(e),this.width=e.width,this.height=e.height}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e){return!(e.x<this.x||e.x>this.x+this.width||e.y<this.y||e.y>this.y+this.height)}toArray(){return[this.x,this.y,this.width,this.height]}clone(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}}class Zt extends yt{radius;constructor(e){super(e),this.radius=e?.radius??0}toSVGPathData(){return[this.x,this.y]}toSVGPathD(){return`${this.x},${this.y}`}setX(e){this.x=e}setY(e){this.y=e}setXY(e,n){this.x=e,this.y=n}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new Zt({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}toArray(){return[this.x,this.y]}clone(e){this.setXY(e.x,e.y)}getBounds(){return new Kc({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}nextFrameCollisionTo(e){const n=e.x-this.x,s=e.y-this.y;if(Math.sqrt(n*n+s*s)<this.radius+e.radius){const i=Math.atan2(s,n),a=Math.sin(i),c=Math.cos(i),l={x:0,y:0},f=r(n,s,a,c,!0),d=r(this.vx,this.vy,a,c,!0),u=r(e.vx,e.vy,a,c,!0),p=d.x-u.x;d.x=((this.mass-e.mass)*d.x+2*e.mass*u.x)/(this.mass+e.mass),u.x=p+d.x;const g=Math.abs(d.x)+Math.abs(u.x),_=this.radius+e.radius-Math.abs(l.x-f.x);l.x+=d.x/g*_,f.x+=u.x/g*_;const v=r(l.x,l.y,a,c,!1),S=r(f.x,f.y,a,c,!1);e.x=this.x+S.x,e.y=this.y+S.y,this.x=this.x+v.x,this.y=this.y+v.y;const m=r(d.x,d.y,a,c,!1),b=r(u.x,u.y,a,c,!1);this.vx=m.x,this.vy=m.y,e.vx=b.x,e.vy=b.y}function r(i,a,c,l,f=!1){return{x:f?i*l+a*c:i*l-a*c,y:f?a*l-i*c:a*l+i*c}}}nextFrameBounce(e){const n=e.left,s=e.top,o=e.right,r=e.bottom,i=e?.bounce??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=i):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=i),this.y+this.radius>r?(this.y=r-this.radius,this.vy*=i):this.y-this.radius<s&&(this.y=s+this.radius,this.vy*=i)}}class ts extends Zt{startPoint;startTime;slideDetectDuration=300;slideDetectDistance=10;directionDebounceDuration=100;getDirectionDebounce=e=>Ic((n,s,o,r)=>e(Uc(n,s,o,r)),this.directionDebounceDuration);constructor(e={x:0,y:0}){super(e),this.startPoint=new Zt({x:this.x,y:this.y}),this.startTime=new Date}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}capture(e,n={}){return ts.isTouchEnabled()?this.capturePointer(e,n):this.captureMouse(e,n)}captureMouse(e,n={}){const s=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",o,!1),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,document.removeEventListener("mouseup",o,!1),document.removeEventListener("mousemove",a,!1),e.style.userSelect="",e.style.webkitUserSelect="",n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("mousedown",s,!1),document.addEventListener("mousedown",i,!1),()=>{e.removeEventListener("mousedown",s,!1),document.removeEventListener("mousedown",i,!1)}}captureTouch(e,n={}){const s=c=>{c.preventDefault();const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=c.changedTouches[0],f=ge(e,l);this.x=f.x,this.y=f.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("touchstart",s,!1),e.addEventListener("touchend",o,!1),e.addEventListener("touchcancel",o,!1),e.addEventListener("touchmove",a,!1),document.addEventListener("touchstart",i,!1),()=>{e.removeEventListener("touchstart",s,!1),e.removeEventListener("touchend",o,!1),e.removeEventListener("touchcancel",o,!1),e.removeEventListener("touchmove",a,!1),document.removeEventListener("touchstart",i,!1)}}capturePointer(e,n={}){const s=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,e.setPointerCapture(c.pointerId),e.style.userSelect="none",e.style.webkitUserSelect="",this.startPoint.x=this.x,this.startPoint.y=this.y,this.startTime=new Date,n.start?.(this)},o=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,e.style.userSelect="",e.style.webkitUserSelect="",n.end?.(this)},r=this.getDirectionDebounce(c=>{new Date().getTime()-this.startTime.getTime()>this.slideDetectDuration||(c=="left"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance?n.slideLeft?.(this.x-this.startPoint.x,this.y-this.startPoint.y):c=="right"&&Math.abs(this.x-this.startPoint.x)>=this.slideDetectDistance&&n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y))}),i=c=>{!c.target||e==c.target||e.contains(c.target)||n.slideRight?.(this.x-this.startPoint.x,this.y-this.startPoint.y)},a=c=>{const l=ge(e,c);this.x=l.x,this.y=l.y,r(this.startPoint.x,this.startPoint.y,this.x,this.y),n.move?.(this)};return e.addEventListener("pointerdown",s,!1),e.addEventListener("pointerup",o,!1),e.addEventListener("pointercancel",o,!1),e.addEventListener("pointermove",a,!1),document.addEventListener("pointerdown",i,!1),()=>{e.removeEventListener("pointerdown",s,!1),e.removeEventListener("pointerup",o,!1),e.removeEventListener("pointercancel",o,!1),e.removeEventListener("pointermove",a,!1),document.removeEventListener("pointerdown",i,!1)}}static clickEvent=typeof document<"u"&&document.ontouchstart?"touchstart":"click";static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}const Lr=[1,0,0,1,0,0],$r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class de{value;matrix3d;isEverTo3d=!1;_prev_rotatex=0;_prev_rotatey=0;constructor(e=Lr){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(Lr),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,n,s=0,o=0){const r=e-s,i=n-o;return e=r*this.value[0]+i*this.value[2]+this.value[4],n=r*this.value[1]+i*this.value[3]+this.value[5],[e+s,n+o]}fromString(e){const n=dr("number",e);return n.length===6?n.forEach((s,o)=>{s.fullMatch&&(this.value[o]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=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 e?(e.value=n,e):new Ge(n)}offset(e=0,n=0){return[e-this.value[4],n-this.value[5]]}clone(){return new de(this.value)}multiply(e){const n=this.value;let s;e instanceof de?s=e.value:s=e;const o=n[0]*s[0]+n[2]*s[1],r=n[1]*s[0]+n[3]*s[1],i=n[0]*s[2]+n[2]*s[3],a=n[1]*s[2]+n[3]*s[3],c=n[0]*s[4]+n[2]*s[5]+n[4],l=n[1]*s[4]+n[3]*s[5]+n[5];return n[0]=o,n[1]=r,n[2]=i,n[3]=a,n[4]=c,n[5]=l,this}inverse(){const e=new de(this.value),n=e.value,s=1/(n[0]*n[3]-n[1]*n[2]),o=n[3]*s,r=-n[1]*s,i=-n[2]*s,a=n[0]*s,c=s*(n[2]*n[5]-n[3]*n[4]),l=s*(n[1]*n[4]-n[0]*n[5]);return n[0]=o,n[1]=r,n[2]=i,n[3]=a,n[4]=c,n[5]=l,e}translate(e,n){return this.matrix3d.translate(e,n,0),this.multiply([1,0,0,1,e,n])}translateTo(e,n){const s=this.offset(e,n);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateY(e){return this.translate(0,e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,n,s)}rotate(e,n=0,s=0){const o=Qn(e),r=+Math.cos(o).toFixed(9),i=+Math.sin(o).toFixed(9);return this.multiply([r,i,-i,r,n,s]),this.translate(-n,-s),this}rotateX(e){return this._prev_rotatex=e,this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotatex)}rotateY(e){return this._prev_rotatey=e,this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotatey)}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",n).rotate("z",s)}scale(e,n=e,s=0,o=0){return this.matrix3d.scale(e,n,1),this.translate(s,o),this.multiply([e,0,0,n,0,0]),this.translate(-s,-o),this}scaleTo(e,n=e){return this.scale(e/this.value[0],n/this.value[3]),this}scaleX(e){return this.scale(e,1)}scaleY(e){return this.scale(1,e)}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scale3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,n,s)}skew(e,n=0){const s=e*Math.PI/180,o=n*Math.PI/180,r=Math.tan(s),i=Math.tan(o);return this.multiply([1,i,r,1,0,0])}skewX(e){return this.skew(e,0)}skewY(e){return this.skew(0,e)}skewZ(e){return this}skew3d(e,n,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(es(n[0])),Nr(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=Math.sqrt(es(n[1])),Nr(n[1]),e.shear/=e.scaley;const s=-n[0][1],o=n[1][1];return o<0?(e.rotate=Or(Math.acos(o)),s<0&&(e.rotate=360-e.rotate)):e.rotate=Qn(Math.asin(s)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>fr(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class Ge{value;constructor(e=$r){this.value=Array.from(e)}unit(){return this.value=Array.from($r),this}fromString(e){const n=dr("number",e);return n.length===16?n.forEach((s,o)=>{s.fullMatch&&(this.value[o]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=n,e):new de(n)}multiplyMatrix(e){const n=this.value[0],s=this.value[1],o=this.value[2],r=this.value[3],i=this.value[4],a=this.value[5],c=this.value[6],l=this.value[7],f=this.value[8],d=this.value[9],u=this.value[10],p=this.value[11],g=this.value[12],_=this.value[13],v=this.value[14],S=this.value[15],m=e.value[0],b=e.value[1],y=e.value[2],A=e.value[3],w=m*n+b*i+y*f+A*g,x=m*s+b*a+y*d+A*_,Z=m*o+b*c+y*u+A*v,fe=m*r+b*l+y*p+A*S;return new de([w,x,Z,fe,0,0])}multiply(e){const n=new de([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new de([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),o=new de([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),r=new de([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),i=this.multiplyMatrix(n),a=this.multiplyMatrix(s),c=this.multiplyMatrix(o),l=this.multiplyMatrix(r);return this.value[0]=i.value[0],this.value[1]=i.value[1],this.value[2]=i.value[2],this.value[3]=i.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=c.value[0],this.value[9]=c.value[1],this.value[10]=c.value[2],this.value[11]=c.value[3],this.value[12]=l.value[0],this.value[13]=l.value[1],this.value[14]=l.value[2],this.value[15]=l.value[3],this}translate(e=0,n=0,s=0){return this.multiply(new Ge([1,0,0,0,0,1,0,0,0,0,1,0,e,n,s,1]))}scale(e=1,n=1,s=1){return this.multiply(new Ge([e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1]))}rotate(e,n){const s=Qn(n),o=Math.sin,r=Math.cos;let i;switch(e){case"x":i=[1,0,0,0,0,r(s),o(s),0,0,-o(s),r(s),0,0,0,0,1];break;case"y":i=[r(s),0,-o(s),0,0,1,0,0,o(s),0,r(s),0,0,0,0,1];break;case"z":i=[r(s),o(s),0,0,-o(s),r(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Ge(i))}toString(){return`matrix3d(${this.value.map(e=>fr(e,6)).join(",")})`}}function Ir(t){const e=new de;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,s,o){o.indexOf(",")>=0?o=o.split(/\s*,\s*/):o=o.split(/\s+/);const r=[];for(let i=0,a=o.length;i<a;i++)o[i].trim()&&r.push(parseFloat(""+o[i]));switch(s.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]);break;case"matrix3d":e.matrix3d.multiply(new Ge(r));break}return""}),e}const P={safeAreaTop:O.getCSSVar("--safe-area-inset-top"),safeAreaRight:O.getCSSVar("--safe-area-inset-right"),safeAreaBottom:O.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:O.getCSSVar("--safe-area-inset-left"),colorPrimary:O.getCSSVar("--color-primary"),colorRed:O.getCSSVar("--color-red"),colorOrange:O.getCSSVar("--color-orange"),colorYellow:O.getCSSVar("--color-yellow"),colorGreen:O.getCSSVar("--color-green"),colorBlue:O.getCSSVar("--color-blue"),colorPurple:O.getCSSVar("--color-purple"),colorBlack:O.getCSSVar("--color-black"),colorGray0:O.getCSSVar("--color-gray-0"),colorGray3:O.getCSSVar("--color-gray-3"),colorGray6:O.getCSSVar("--color-gray-6"),colorGray9:O.getCSSVar("--color-gray-9"),colorGrayCC:O.getCSSVar("--color-gray-cc"),colorGrayDD:O.getCSSVar("--color-gray-dd"),colorGrayE6:O.getCSSVar("--color-gray-e6"),colorGrayEE:O.getCSSVar("--color-gray-ee"),colorGrayEF:O.getCSSVar("--color-gray-ef"),colorGrayF5:O.getCSSVar("--color-gray-f5"),colorGrayFF:O.getCSSVar("--color-gray-ff"),fontLineHeight:O.getCSSVar("--font-line-height"),fontSize32:O.getCSSVar("--font-size-32"),fontSize24:O.getCSSVar("--font-size-24"),fontSize20:O.getCSSVar("--font-size-20"),fontSize18:O.getCSSVar("--font-size-18"),fontSize16:O.getCSSVar("--font-size-16"),fontSize14:O.getCSSVar("--font-size-14"),fontSize12:O.getCSSVar("--font-size-12"),fontSize11:O.getCSSVar("--font-size-11"),gap4:O.getCSSVar("--gap-4"),gap8:O.getCSSVar("--gap-8"),gap12:O.getCSSVar("--gap-12"),gap16:O.getCSSVar("--gap-16"),gap20:O.getCSSVar("--gap-20"),gap40:O.getCSSVar("--gap-40"),height44:O.getCSSVar("--height-44"),height32:O.getCSSVar("--height-32"),borderRadius:O.getCSSVar("--border-radius")},qc=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},Yc=function(t,e=1){const n=t>>16&255,s=t>>8&255,o=t&255,r=e<0?0:e>1?1:e;return r===1?"rgb("+n+","+s+","+o+")":"rgba("+n+","+s+","+o+","+r+")"},Xc=function(t,e=1){const n=qc(t);return Yc(n,e)};function _t(t,e){let n=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),o=parseInt(t.substring(5,7),16);n==0&&(n=32),s==0&&(s=32),o==0&&(o=32),n=n*(100+e)/100,s=s*(100+e)/100,o=o*(100+e)/100,n=n<255?n:255,s=s<255?s:255,o=o<255?o:255,n=Math.round(n),s=Math.round(s),o=Math.round(o);const r=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),i=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=o.toString(16).length==1?"0"+o.toString(16):o.toString(16);return"#"+r+i+a}function Mr(t){switch(t){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Zc={attributeName:["display"],values:[["block","block"]]},oe={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ar{currentAnimateName;objects=[];actions=[];constructor(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(n=>{const s=ve(n);this.objects.push({width:parseFloat(s.css("width")),height:parseFloat(s.css("height")),dom:s,el:n,originCSSObject:s.css()})}),this}toCSS(e,...n){if(!this.hasObjects())return;switch(this.currentAnimateName=e,this[e](...n),this.objects[0].dom?.parent().css({position:"relative",perspective:"1000px",overflow:"hidden"}),e){default:this.objects.forEach((r,i)=>{r.dom?.css({position:"absolute","z-index":String(1e3+i),"transform-style":"preserve-3d","backface-visibility":"hidden"})});break}let s=0;const o=()=>{this.actions.forEach((r,i)=>{const a=this.objects[r.objectIndex];let c=[],l=[];Array.isArray(r.attributeName)?(c=r.attributeName,l=r.values):r.attributeName&&(c=[r.attributeName],l=[r.values]);const f=r.keyTimes.length,d=Ir(a.dom?.css("transform")??"");let u=r.begin;r.keyTimes.forEach((p,g)=>{const _={_matrix:d};c.forEach((v,S)=>{const m=l[S][r.direction=="reverse"?f-g-1:g];this._transformAttributeToCSSObjectUseMatrix(v,m,_)}),g==0?a.dom?.css(Object.assign(_,{transition:""})):(setTimeout(()=>{a.dom?.css(Object.assign(_,{transition:`all ${r.realKeyTimes[g]}ms cubic-bezier(${r.keySplines[g-1].join(",")})`}))},u),u+=r.realKeyTimes[g])}),setTimeout(()=>{r.fill==="remove"&&a.dom?.css(a.originCSSObject??{}),i==this.actions.length-1&&(typeof r.repeatCount=="number"&&++s<r.repeatCount||r.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentAnimateName===e&&o()})},r.begin+r.dur)})};o()}_transformAttributeToCSSObjectUseMatrix(e,n,s={}){switch(e){case"translateTo":s._matrix.translateTo(n[0]??0,n[1]??0);break;case"translate":s._matrix.translate(n[0]??0,n[1]??0);break;case"rotate":s._matrix.rotate(n??0);break;case"rotateXTo":s._matrix.rotateXTo(n??0);break;case"rotateYTo":s._matrix.rotateYTo(n??0);break;case"scaleTo":typeof n=="number"?s._matrix.scaleTo(n??1):s._matrix.scaleTo(n[0]??1,n[1]??1);break;case"scale":typeof n=="number"?s._matrix.scale(n??1):s._matrix.scale(n[0]??1,n[1]??1);break;case"scaleX":s._matrix.scale(n??1,1);break;case"scaleY":s._matrix.scale(1,n??1);break;default:Object.assign(s,{[e]:`${n??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addAction(e,n=!1){return this.actions=n?[]:this.actions,Array.isArray(e)||(e=[e]),e.forEach(s=>{this.actions.push(Object.assign(s,{realKeyTimes:s.keyTimes.map(o=>s.dur*o)}))}),this}_addAnimate(e=Zc,n=oe,s=0,o=!1){const r=n.keyTimes??[0,1],i=[];return r.forEach((a,c)=>{c>0&&i.push(Mr(n.easeName??"linear"))}),this._addAction({objectIndex:s,attributeName:e.attributeName,values:e.values,begin:n.begin??0,dur:n.dur??300,keyTimes:r,keySplines:i,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze"},o),this}_predefinedAnimate(e,n,s,o,r=oe,i=this.objects.length-1){let a=!0,c=!1,l=!1,f=!1;const d=this.objects.length;i=(i+d)%d;const u=(i-1+d)%d,p=(i+1+d)%d,g=this.objects[i],_=this.objects[u],v=this.objects[p];if(_&&u!==i){const S=e(_);S&&(this._addAnimate(S,r,u,a),a=!1,c=!0)}if(g){const S=n(g);S&&(this._addAnimate(S,r,i,a),a=!1,l=!0)}if(v&&p!==i){const S=s(v);S&&(this._addAnimate(S,r,p,a),a=!1,f=!0)}this.objects.forEach((S,m)=>{if(!(m==u&&c||m==i&&l||m==p&&f)){const b=o(S);b&&(this._addAnimate(b,r,m,a),a=!1)}})}flip(e=oe,n=this.objects.length-1){const s=n-1,o=this.objects[s],r=this.objects[n],i=Ir(r.dom?.css("transform")??""),a=i.clone();o.dom?.show(),o.dom?.css("opacity","1");const c=o.el?.getBoundingClientRect();o.dom?.css("opacity","0"),r.dom?.show(),r.dom?.css("opacity","1");const l=r.el?.getBoundingClientRect(),f=o.dom?.css("background-color"),d=r.dom?.css("background-color");a.translate((c?.left??0)-(l?.left??0),(c?.top??0)-(l?.top??0)),a.scale((c?.width??1)/(l?.width??1),(c?.height??1)/(l?.height??1));const u={transform:a.toString(),transition:""};f&&Object.assign(u,{"background-color":f}),r.dom?.css(u);const p={transform:i.toString(),transition:`all ${e.dur}ms cubic-bezier(${Mr(e.easeName??"linear").join(",")})`};d&&Object.assign(p,{"background-color":d}),setTimeout(()=>{r.dom?.css(p)},e.begin)}slideLeft(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[-s.width,0],[-s.width,0]]]}),e,n)}slideRight(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["translateTo"],values:[[[0,0],[s.width,0]]]}),s=>({attributeName:["translateTo"],values:[[[s.width,0],[s.width,0]]]}),e,n)}slideDown(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[0,s.height],[0,s.height]]]}),e,n)}slideUp(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["translateTo"],values:[[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["translateTo"],values:[[[0,-s.height],[0,-s.height]]]}),e,n)}flipLeft(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipRight(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipDown(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}flipUp(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}popIn(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}popOut(e=oe,n=this.objects.length-1){this._predefinedAnimate(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}rotate(e=oe,n=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._predefinedAnimate(o=>{},o=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),o=>{},o=>({attributeName:["opacity"],values:[[0,0]]}),e,n)}}class Jc{map;constructor(e,n=120.619585,s=31.299379,o=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(n,s),o)}}const Qc=F({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("span",{class:"icon",style:k(["color: "+n.color])},[K(W(Lc),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),fd="",j=(t,e)=>{const n=t.__vccOpts||t;for(const[s,o]of e)n[s]=o;return n},De=j(Qc,[["__scopeId","data-v-8789b4ce"]]),el=F({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();let i,a;const c=E(s.borderColor),l=E(s.bgColor),f=E(s.fontColor);function d(){switch(s.stylePattern){case"outline":i=i??s.borderColor??P.colorPrimary,a=a??s.bgColor??P.colorGrayFF,c.value=c.value??P.colorPrimary,l.value=l.value??P.colorGrayFF,f.value=f.value??P.colorPrimary;break;default:i=i??s.borderColor??P.colorPrimary,a=a??s.bgColor??P.colorPrimary,c.value=c.value??P.colorPrimary,l.value=l.value??P.colorPrimary,f.value=f.value??P.colorGrayFF;break}}d();const u=E(s.isDisabled?"0.6":"1"),p=E(s.isDisabled?"not-allowed":"pointer");let g=!1;const _=()=>{s.isDisabled||(g=!0,c.value=_t(i,10),l.value=_t(a,10))},v=()=>{s.isDisabled||(g=!1,c.value=i,l.value=a)},S=()=>{s.isDisabled||(c.value=_t(i,-10),l.value=_t(a,-10),setTimeout(()=>{g?_():v()},150),o("ceClick"),o("click"))};return e({wrapper:r}),(m,b)=>(C(),N("div",{ref_key:"wrapper",ref:r,class:"button",style:k([`opacity: ${u.value}`,`border: 1px solid ${c.value}`,`border-radius: ${s.borderRadius}`,`background-color: ${l.value}`,`color: ${f.value}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`]),onMouseover:_,onMouseleave:v,onClick:S},[h("label",{class:"label truncate",style:k({padding:"0 "+m.padding,cursor:p.value})},[G(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(C(),ee(De,{key:0,icon:m.icon,color:f.value,style:k({marginRight:W(P).gap4,cursor:p.value})},null,8,["icon","color","style"])):te("",!0),h("span",{style:k({cursor:p.value})},ne(m.label),5),m.icon&&m.iconPosition==="right"?(C(),ee(De,{key:1,icon:m.icon,color:f.value,style:k({marginLeft:W(P).gap4,cursor:p.value})},null,8,["icon","color","style"])):te("",!0)],!0)],4)],36))}}),hd="",Se=j(el,[["__scopeId","data-v-bfabd99a"]]),pd="",tl={id:"page"},nl=F({__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(t,{expose:e,emit:n}){const s=t;Wc(s.designWidth);const o=n,r=E(),i=E(),a=E(),c=E(),l=E("0");H(r,(w,x)=>{typeof w<"u"&&w!==x&&(l.value=ve(r.value).css("height"))});const f=E("0");H(i,(w,x)=>{typeof w<"u"&&w!==x&&(f.value=ve(i.value).css("height"))});const d=E("0");H(a,(w,x)=>{typeof w<"u"&&w!==x&&(d.value=ve(a.value).css("width"))});const u=E("0");H(c,(w,x)=>{typeof w<"u"&&w!==x&&(u.value=ve(c.value).css("width"))}),window.addEventListener("orientationchange"in window?"orientationchange":"resize",()=>{l.value=ve(r.value).css("height"),f.value=ve(i.value).css("height"),d.value=ve(a.value).css("width"),u.value=ve(c.value).css("width")},!1);const p=new Ar;let g=E(s.header);const _=()=>{r.value&&(p.fromDOM([r.value]),p.toCSS("slideDown",{easeName:"ease-in",dur:150,direction:g.value?"reverse":"normal"}),g.value=!g.value,o("triggerHeader",g.value))};let v=E(s.footer);const S=()=>{i.value&&(p.fromDOM([i.value]),p.toCSS("slideUp",{easeName:"ease-in",dur:150,direction:v.value?"reverse":"normal"}),v.value=!v.value,o("triggerFooter",v.value))};let m=E(s.left);const b=()=>{a.value&&(p.fromDOM([a.value]),p.toCSS("slideRight",{easeName:"ease-in",dur:150,direction:m.value?"reverse":"normal"}),m.value=!m.value,o("triggerLeft",m.value))};let y=E(s.right);return e({triggerHeader:_,triggerFooter:S,triggerLeft:b,triggerRight:()=>{c.value&&(p.fromDOM([c.value]),p.toCSS("slideLeft",{easeName:"ease-in",dur:150,direction:y.value?"reverse":"normal"}),y.value=!y.value,o("triggerRight",y.value))}}),(w,x)=>(C(),N("div",tl,[h("header",{id:"header",ref_key:"refHeader",ref:r,style:k({transform:w.header?"translate(0, 0)":`translate(0, -${l.value})`})},[G(w.$slots,"header",{},void 0,!0)],4),h("div",{id:"main",style:k({paddingTop:W(g)?l.value:0,paddingBottom:W(v)?f.value:0})},[G(w.$slots,"main",{},void 0,!0)],4),h("footer",{id:"footer",ref_key:"refFooter",ref:i,style:k({transform:w.footer?"translate(0, 0)":`translate(0, ${f.value})`})},[G(w.$slots,"footer",{},void 0,!0)],4),h("div",{id:"left",ref_key:"refLeft",ref:a,style:k({transform:w.left?"translate(0, 0)":`translate(-${d.value}, 0)`})},[G(w.$slots,"left",{},void 0,!0)],4),h("div",{id:"right",ref_key:"refRight",ref:c,style:k({transform:w.right?"translate(0, 0)":`translate(${u.value}, 0)`})},[G(w.$slots,"right",{},void 0,!0)],4)]))}}),md="",sl=j(nl,[["__scopeId","data-v-aea09f8f"]]),ol={class:"content-fixed",style:{position:"fixed","z-index":"2001",inset:"0","overflow-y":"auto"}},rl={class:"content-relative",style:{position:"relative",width:"100%",height:"100%"}},il=F({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Xc(P.colorGray0,.25)}},setup(t,{expose:e,emit:n}){const s=t;function o(r){r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow="")}return H(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,i)=>r.visible?(C(),N("div",{key:0,class:"overlay",style:k([{position:"fixed","z-index":"2000",inset:"0"},["background-color: "+s.bgColor]])},[h("div",ol,[h("div",rl,[G(r.$slots,"default",{},void 0,!0)])])],4)):te("",!0)}}),gd="",bt=j(il,[["__scopeId","data-v-00083274"]]),al=F({customOptions:{Overlay:bt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();let i;const a=pe({}),c=pe({});H(()=>s.directionFrom,()=>{switch(s.directionFrom){case"absolute":i="",a.display="block";break;case"top":i="slideDown",a.display="block",c.width="100%",c.top="0",c.left="0";break;case"left":i="slideRight",a.display="block",c.height="100%",c.top="0",c.left="0";break;case"right":i="slideLeft",a.display="block",c.height="100%",c.top="0",c.right="0";break;case"bottom":i="slideUp",a.display="block",c.width="100%",c.bottom="0",c.left="0";break;case"center":default:i="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}},{immediate:!0});const l=new Ar,f=(_=!0)=>{i&&(_?H(r,()=>{r.value&&(l.fromDOM(r.value),l.toCSS(i,{easeName:"ease",dur:s.openDurTime}))},{once:!0}):l.toCSS(i,{easeName:"ease",dur:s.closeDurTime,direction:"reverse"}))},d=E(!1);function u(_){_.target.contains(r.value)&&s.closeWhenClickOverlay&&g()}function p(){d.value=!0,f(!0),o("open")}function g(){f(!1),o("close"),setTimeout(()=>{d.value=!1},s.closeDurTime)}return e({open:p,close:g}),(_,v)=>(C(),ee(bt,{visible:d.value},{default:he(()=>[h("div",{class:"pop-parent",style:k([{position:"relative",width:"100%",height:"100%"},a]),onClick:u},[h("div",{ref_key:"pop",ref:r,class:"pop",style:k([{position:"absolute"},c])},[G(_.$slots,"default",{},void 0,!0)],4)],4)]),_:3},8,["visible"]))}}),vd="",ke=j(al,[["__scopeId","data-v-0fad8ec7"]]),cl={class:"dialog-wrap"},ll={class:"dialog"},ul={key:0,class:"title"},dl={key:0,class:"title-inner truncate"},fl={class:"custom-content"},hl={key:1,class:"btns"},pl=F({customOptions:{Overlay:bt,Pop:ke,Icon:De,Button:Se},inheritAttrs:!0,__name:"Dialog",props:{title:{default:"通知"},content:{default:"..."},showTitle:{type:Boolean,default:!0},showClose:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();function i(){r.value.open(),o("open")}function a(){r.value.close(),o("close")}function c(){a(),o("cancel")}function l(){a(),o("confirm")}return e({open:i,close:a}),(f,d)=>(C(),ee(ke,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:he(()=>[h("div",cl,[h("div",ll,[f.showTitle||f.showClose?(C(),N("div",ul,[f.showTitle?(C(),N("div",dl,ne(f.title),1)):te("",!0),f.showClose?(C(),ee(De,{key:1,class:"close",icon:"ic:baseline-close",color:W(P).colorGrayCC,onClick:a},null,8,["color"])):te("",!0)])):te("",!0),h("div",fl,[G(f.$slots,"default",{},()=>[ut(ne(f.content),1)],!0)]),f.showCancel||f.showConfirm?(C(),N("div",hl,[f.showCancel?(C(),ee(Se,{key:0,onClick:c,class:"btn",bgColor:W(P).colorGrayE6,borderColor:W(P).colorGrayE6,fontColor:W(P).colorGray3,borderRadius:"0"},{default:he(()=>[ut(" 取消 ")]),_:1},8,["bgColor","borderColor","fontColor"])):te("",!0),f.showConfirm?(C(),ee(Se,{key:1,onClick:l,class:"btn",borderRadius:"0"},{default:he(()=>[ut(" 确定 ")]),_:1})):te("",!0)])):te("",!0)])])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),yd="",ns=j(pl,[["__scopeId","data-v-002ae342"]]),ml=F({__name:"SVGLoading",props:{width:{default:"4em"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{viewBox:"25 25 50 50",style:k(["width: "+e.width])},[h("circle",{cx:"50",cy:"50",r:"20",style:k(["stroke: "+e.color])},null,4)],4))}}),_d="",Rr=j(ml,[["__scopeId","data-v-29f8de14"]]),gl={class:"loading"},vl={class:"icon"},yl={key:0,class:"content"},_l=F({customOptions:{Overlay:bt,Pop:ke,Dialog:ns,SVGLoading:Rr},inheritAttrs:!0,__name:"DialogLoading",props:{content:{},closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E();function i(){r.value.open(),o("open")}function a(){r.value.close(),o("close")}return e({open:i,close:a}),(c,l)=>(C(),ee(ns,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:he(()=>[h("div",gl,[h("div",vl,[G(c.$slots,"default",{},()=>[K(Rr)],!0)]),c.content?(C(),N("div",yl,ne(c.content),1)):te("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),bd="",bl=j(_l,[["__scopeId","data-v-d2aea832"]]),wl=["onClick","value"],xl=F({customOptions:{Icon:De,Button:Se},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=function(){return{"--select-option-bg-color":P.colorGrayFF,"--select-option-bg-color-hover":P.colorGrayF5}},r=E(!1),i=E(n.initIndex);H(i,function(){s("change",n.options[i.value])});function a(){r.value=!r.value}function c(l){i.value=l,r.value=!1}return(l,f)=>(C(),N("div",{class:"wrap",style:k(["font-size:"+l.fontSize])},[h("div",{onClick:a},[G(l.$slots,"button",{selectedIndex:i.value},()=>[K(Se,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),Tn(h("div",{class:"options",style:k({border:"1px solid "+W(P).colorGrayCC})},[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("div",{onClick:p=>c(u),class:"option",key:u,value:u,style:k({borderTop:(u==0?"0":"1px")+" solid "+W(P).colorGrayCC})},[h("div",{class:"option-inner",style:o},[G(l.$slots,"default",{item:d,index:u},()=>[h("span",null,ne(d),1),u==i.value?(C(),ee(De,{key:0,icon:"mingcute:check-fill",class:"icon"})):te("",!0)],!0)])],12,wl))),128))],4),[[Vt,r.value]])],4))}}),wd="",Cl=j(xl,[["__scopeId","data-v-fa343805"]]),El=F({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:P.colorPrimary},colorBgOn:{default:P.colorGrayEF},colorBgOff:{default:P.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const n=t;function s(p){const g=$c("number",p);return{number:g.fullMatch?parseFloat(g.fullMatch):0,suffix:g.fullMatch?p.substring(g.matchIndex+g.fullMatch.length+1):""}}const o=s(n.width),r=s(n.height),i=s(n.padding),a=r.number-i.number*2+r.suffix,c=n.padding,l=o.number-s(c).number-s(a).number+o.suffix,f=e,d=E(n.init);H(d,function(){f("change",d.value)});function u(){d.value=!d.value}return(p,g)=>(C(),N("div",{class:"switch",onClick:u,style:k(["width: "+n.width,"height: "+n.height,"background-color: "+(d.value?n.colorBgOn:n.colorBgOff)])},[h("span",{class:"round",style:k(["width: "+a,"height: "+a,"background-color: "+(d.value?n.colorPrimary:W(_t)(n.colorPrimary,30)),"transform: translate("+(d.value?l:W(c))+", 0)"])},null,4)],4))}}),xd="",Sl=j(El,[["__scopeId","data-v-2f656d49"]]),kl={class:"wrap"},Tl=["onClick"],Ol=["stroke","fill"],Pl=["stroke","fill"],Nl=["stroke"],Ll=F({customOptions:{},__name:"RadioGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:P.colorPrimary},colorBg:{default:P.colorGrayFF},colorBorder:{default:P.colorGrayCC},fontSize:{default:P.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.colorPath),r=E(n.colorBg),i=E(n.colorBorder);n.isFullfilled&&(o.value=n.colorBg,r.value=n.colorPath,i.value=n.colorPath);let a=E(n.initIndexs??0);H(a,function(){s("change",n.options[a.value])});const c=function(l){a.value=l};return(l,f)=>(C(),N("div",kl,[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("span",{class:"item",key:u,onClick:p=>c(u),style:k(["margin-left:"+(u>0?n.itemPadding:0)])},[G(l.$slots,"default",{label:d,index:u},()=>[(C(),N("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:k(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?te("",!0):(C(),N("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Ol)),n.isRounded?(C(),N("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Pl)):te("",!0),Tn(h("path",{d:"M7 13l3 3 7-7",stroke:o.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Nl),[[Vt,W(a)===u]])],4)),h("span",{style:k(["font-size:"+n.fontSize])},ne(d),5)],!0)],12,Tl))),128))]))}}),Cd="",$l=j(Ll,[["__scopeId","data-v-18ca2a3d"]]),Il={class:"wrap"},Ml=["onClick"],Al=["stroke","fill"],Rl=["stroke","fill"],Dl=["stroke"],Fl=F({customOptions:{},__name:"CheckboxGroup",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:P.colorPrimary},colorBg:{default:P.colorGrayFF},colorBorder:{default:P.colorGrayCC},fontSize:{default:P.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.colorPath),r=E(n.colorBg),i=E(n.colorBorder);n.isFullfilled&&(o.value=n.colorBg,r.value=n.colorPath,i.value=n.colorPath);let a=pe(n.initIndexs??[0]);H(a,function(){s("change",a.map(l=>n.options[l]))});const c=function(l){const f=a.findIndex(d=>d===l);f>=0?a.splice(f,1):a.push(l)};return(l,f)=>(C(),N("div",Il,[(C(!0),N(ae,null,Be(l.options,(d,u)=>(C(),N("span",{class:"item",key:u,onClick:p=>c(u),style:k(["margin-left:"+(u>0?n.itemPadding:0)])},[G(l.$slots,"default",{label:d,index:u},()=>[(C(),N("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:k(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?te("",!0):(C(),N("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Al)),n.isRounded?(C(),N("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:i.value,"strke-width":"1",fill:r.value,"fill-opacity":1},null,8,Rl)):te("",!0),Tn(h("path",{d:"M7 13l3 3 7-7",stroke:o.value,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Dl),[[Vt,W(a).findIndex(p=>p===u)>=0]])],4)),h("span",{style:k(["font-size:"+n.fontSize])},ne(d),5)],!0)],12,Ml))),128))]))}}),Ed="",jl=j(Fl,[["__scopeId","data-v-2616b69e"]]),Vl=(t=>(Sn("data-v-943bcc32"),t=t(),kn(),t))(()=>h("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),zl=F({customOptions:{Pop:ke,Button:Se},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10}},setup(t){const e=t,n=E(),s=E(),o=E(),r=pe({left:"0",top:"0"});H(s,()=>{i()}),H(o,()=>{i()});function i(){if(!s.value||!o.value)return;const c=kr(),l=s.value.getBoundingClientRect(),f=o.value.getBoundingClientRect(),d=f.width,u=f.height;let p=l.x+l.width+e.gap,g=l.y;p=Math.max(e.gap,Math.min(p,c.width-d-e.gap)),g=Math.max(e.gap,Math.min(g,c.height-u-e.gap)),r.left=`${p}px`,r.top=`${g}px`}function a(){n.value.open()}return(c,l)=>(C(),N(ae,null,[h("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[G(c.$slots,"button",{},()=>[K(Se,null,{default:he(()=>[ut("popover-default-button")]),_:1})],!0)],512),K(ke,{ref_key:"popRef",ref:n,"direction-from":"absolute"},{default:he(()=>[h("div",{ref_key:"popoverPanelRef",ref:o,style:k([{display:"inline-block",position:"absolute"},r])},[G(c.$slots,"panel",{},()=>[Vl],!0)],4)]),_:3},512)],64))}}),kd="",ss=j(zl,[["__scopeId","data-v-943bcc32"]]),Ue=(t,e=0,n=1)=>t>n?n:t<e?e:t,Y=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,Hl=t=>Ul(os(t)),os=t=>(t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Y(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Y(parseInt(t.substring(6,8),16)/255,2):1}),Bl=t=>Gl(Wl(t)),Dr=({h:t,s:e,v:n,a:s})=>{const o=(200-e)*n/100;return{h:Y(t),s:Y(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:Y(o/2),a:Y(s,2)}},rs=t=>{const{h:e,s:n,l:s}=Dr(t);return`hsl(${e}, ${n}%, ${s}%)`},is=t=>{const{h:e,s:n,l:s,a:o}=Dr(t);return`hsla(${e}, ${n}%, ${s}%, ${o})`},Wl=({h:t,s:e,v:n,a:s})=>{t=t/360*6,e=e/100,n=n/100;const o=Math.floor(t),r=n*(1-e),i=n*(1-(t-o)*e),a=n*(1-(1-t+o)*e),c=o%6;return{r:Y([n,i,r,r,a,n][c]*255),g:Y([a,n,n,i,r,r][c]*255),b:Y([r,r,a,n,n,i][c]*255),a:Y(s,2)}},Jt=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},Gl=({r:t,g:e,b:n,a:s})=>{const o=s<1?Jt(Y(s*255)):"";return"#"+Jt(t)+Jt(e)+Jt(n)+o},Ul=({r:t,g:e,b:n,a:s})=>{const o=Math.max(t,e,n),r=o-Math.min(t,e,n),i=r?o===t?(e-n)/r:o===e?2+(n-t)/r:4+(t-e)/r:0;return{h:Y(60*(i<0?i+6:i)),s:Y(o?r/o*100:0),v:Y(o/255*100),a:s}},Fr=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},Kl=(t,e)=>t.toLowerCase()===e.toLowerCase()?!0:Fr(os(t),os(e)),jr={},Vr=t=>{let e=jr[t];return e||(e=document.createElement("template"),e.innerHTML=t,jr[t]=e),e},as=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Ke=!1;const cs=t=>"touches"in t,ql=t=>Ke&&!cs(t)?!1:(Ke||(Ke=cs(t)),!0),zr=(t,e)=>{const n=cs(e)?e.touches[0]:e,s=t.el.getBoundingClientRect();as(t.el,"move",t.getMove({x:Ue((n.pageX-(s.left+window.pageXOffset))/s.width),y:Ue((n.pageY-(s.top+window.pageYOffset))/s.height)}))},Yl=(t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),as(t.el,"move",t.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 ls{constructor(e,n,s,o){const r=Vr(`<div role="slider" tabindex="0" part="${n}" ${s}><div part="${n}-pointer"></div></div>`);e.appendChild(r.content.cloneNode(!0));const i=e.querySelector(`[part=${n}]`);i.addEventListener("mousedown",this),i.addEventListener("touchstart",this),i.addEventListener("keydown",this),this.el=i,this.xy=o,this.nodes=[i.firstChild,i]}set dragging(e){const n=e?document.addEventListener:document.removeEventListener;n(Ke?"touchmove":"mousemove",this),n(Ke?"touchend":"mouseup",this)}handleEvent(e){switch(e.type){case"mousedown":case"touchstart":if(e.preventDefault(),!ql(e)||!Ke&&e.button!=0)return;this.el.focus(),zr(this,e),this.dragging=!0;break;case"mousemove":case"touchmove":e.preventDefault(),zr(this,e);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Yl(this,e);break}}style(e){e.forEach((n,s)=>{for(const o in n)this.nodes[s].style.setProperty(o,n[o])})}}class Xl extends ls{constructor(e){super(e,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:e}){this.h=e,this.style([{left:`${e/360*100}%`,color:rs({h:e,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Y(e)}`)}getMove(e,n){return{h:n?Ue(this.h+e.x*360,0,360):360*e.x}}}class Zl extends ls{constructor(e){super(e,"saturation",'aria-label="Color"',!0)}update(e){this.hsva=e,this.style([{top:`${100-e.v}%`,left:`${e.s}%`,color:rs(e)},{"background-color":rs({h:e.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Y(e.s)}%, Brightness ${Y(e.v)}%`)}getMove(e,n){return{s:n?Ue(this.hsva.s+e.x*100,0,100):e.x*100,v:n?Ue(this.hsva.v-e.y*100,0,100):Math.round(100-e.y*100)}}}const Jl=':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)}',Ql="[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}",eu="[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}",Qt=Symbol("same"),us=Symbol("color"),Hr=Symbol("hsva"),ds=Symbol("update"),Br=Symbol("parts"),en=Symbol("css"),tn=Symbol("sliders");let tu=class extends HTMLElement{static get observedAttributes(){return["color"]}get[en](){return[Jl,Ql,eu]}get[tn](){return[Zl,Xl]}get color(){return this[us]}set color(e){if(!this[Qt](e)){const n=this.colorModel.toHsva(e);this[ds](n),this[us]=e}}constructor(){super();const e=Vr(`<style>${this[en].join("")}</style>`),n=this.attachShadow({mode:"open"});n.appendChild(e.content.cloneNode(!0)),n.addEventListener("move",this),this[Br]=this[tn].map(s=>new s(n))}connectedCallback(){if(this.hasOwnProperty("color")){const e=this.color;delete this.color,this.color=e}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(e,n,s){const o=this.colorModel.fromAttr(s);this[Qt](o)||(this.color=o)}handleEvent(e){const n=this[Hr],s={...n,...e.detail};this[ds](s);let o;!Fr(s,n)&&!this[Qt](o=this.colorModel.fromHsva(s))&&(this[us]=o,as(this,"color-changed",{value:o}))}[Qt](e){return this.color&&this.colorModel.equal(e,this.color)}[ds](e){this[Hr]=e,this[Br].forEach(n=>n.update(e))}};class nu extends ls{constructor(e){super(e,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(e){this.hsva=e;const n=is({...e,a:0}),s=is({...e,a:1}),o=e.a*100;this.style([{left:`${o}%`,color:is(e)},{"--gradient":`linear-gradient(90deg, ${n}, ${s}`}]);const r=Y(o);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(e,n){return{a:n?Ue(this.hsva.a+e.x):e.x}}}const su=`[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 ou extends tu{get[en](){return[...super[en],su]}get[tn](){return[...super[tn],nu]}}const ru={defaultColor:"#0001",toHsva:Hl,fromHsva:Bl,equal:Kl,fromAttr:t=>t};class iu extends ou{get colorModel(){return ru}}class au extends iu{}customElements.define("hex-alpha-color-picker",au);const cu=F({customOptions:{Popover:ss},__name:"ColorPicker",props:{color:{default:P.colorPrimary}},emits:["change"],setup(t,{emit:e}){const n=t,s=e,o=E(n.color);H(o,(a,c)=>{a!==c&&s("change",a)});const r=E(),i=a=>{o.value=a.detail.value};return H(r,()=>{r.value&&(r.value.removeEventListener("color-changed",i),r.value.addEventListener("color-changed",i))}),(a,c)=>{const l=Yi("hex-alpha-color-picker");return C(),ee(ss,null,{button:he(()=>[G(a.$slots,"default",{},()=>[h("span",{class:"button",style:k({backgroundColor:o.value})},null,4)],!0)]),panel:he(()=>[K(l,{ref_key:"colorPickerRef",ref:r,color:o.value},null,8,["color"])]),_:3})}}}),Td="",lu=j(cu,[["__scopeId","data-v-ac12603f"]]),Od="",uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Jn&&this.$el.appendChild(t),t.data="about:blank",Jn||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Jn&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},du={class:"resize-observer",tabindex:"-1"};function fu(t,e,n,s,o,r){return C(),N("div",du)}const hu=j(uu,[["render",fu],["__scopeId","data-v-97c2da37"]]),pu=()=>{const t=E(window.innerWidth),e=E(window.innerHeight),n=s=>{t.value=s.target.innerWidth,e.value=s.target.innerHeight};return Nn(()=>window.addEventListener("resize",n)),fo(()=>window.removeEventListener("resize",n)),{width:t,height:e}},mu=F({__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(t,{expose:e,emit:n}){const s=t,{width:o,height:r}=pu(),i=E(s.mapWidth??o.value+"px"),a=E(s.mapHeight??r.value+"px");return H(o,(c,l)=>{c!=l&&!s.mapWidth&&(i.value=c+"px")}),H(r,(c,l)=>{c!=l&&!s.mapHeight&&(a.value=c+"px")}),Nn(()=>{O.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Jc(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},c=>{console.log("error",c)})}),e({}),(c,l)=>(C(),N("div",Mn({class:"mapDivWrap"},c.$attrs,{style:{position:"relative",width:i.value,height:a.value}}),[G(c.$slots,"default",{width:i.value,height:a.value})],16))}}),gu=["fill"],vu=["fill"],yu=F({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{style:k(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[h("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,gu),h("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,vu)],4))}}),Pd="",fs=j(yu,[["__scopeId","data-v-987aed3d"]]),hs=t=>(Sn("data-v-85491020"),t=t(),kn(),t),_u=[hs(()=>h("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),hs(()=>h("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),hs(()=>h("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],bu=F({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{style:k(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},_u,4))}}),Id="",nn=j(bu,[["__scopeId","data-v-85491020"]]),wu=["data-unactive"],xu=["data-unactive"],Cu=["data-unactive"],Eu=["data-unactive"],Su=["data-unactive"],ku=["data-unactive"],Tu=["data-unactive"],Ou=["data-unactive"],Pu=["data-unactive"],Nu=["data-unactive"],Lu=["data-unactive"],$u=["data-unactive"],Iu=["data-unactive"],Mu=["data-unactive"],Au=["data-unactive"],Ru=["data-unactive"],Du=["data-unactive"],Fu=F({customOptions:{Pop:ke,SVGCleanUp:nn},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(),i=E(0),a=pe([]);function c(){a.length==0?i.value=0:a.length==1?i.value=1:i.value=2,a.length>=s.completePlateLength&&f()}H(()=>[...s.initPlates],()=>{vt(a,s.initPlates),c()},{immediate:!0});const l=()=>{r.value.open(),o("open")},f=()=>{r.value.close(),o("close")},d=()=>{a.pop(),c(),o("plates",a)},u=p=>{if(p.target.dataset.unactive||"")return;let _=p.target.dataset.number;_&&(a.push(_),c(),o("plates",a))};return e({open:l,close:f}),(p,g)=>(C(),ee(ke,{ref_key:"popRef",ref:r,directionFrom:"bottom",closeWhenClickOverlay:!1},{default:he(()=>[h("div",{class:"popup-plate",style:k({paddingBottom:W(P).safeAreaBottom})},[h("div",null,[h("div",{onClick:f},"关闭")]),h("div",{class:R(["step",i.value==0?"":"hide"])},[h("div",{class:"popitem",onClick:u,"data-number":"京"}," 京 "),h("div",{class:"popitem",onClick:u,"data-number":"沪"}," 沪 "),h("div",{class:"popitem",onClick:u,"data-number":"津"}," 津 "),h("div",{class:"popitem",onClick:u,"data-number":"渝"}," 渝 "),h("div",{class:"popitem",onClick:u,"data-number":"黑"}," 黑 "),h("div",{class:"popitem",onClick:u,"data-number":"吉"}," 吉 "),h("div",{class:"popitem",onClick:u,"data-number":"辽"}," 辽 "),h("div",{class:"popitem",onClick:u,"data-number":"蒙"}," 蒙 "),h("div",{class:"popitem",onClick:u,"data-number":"冀"}," 冀 "),h("div",{class:"popitem",onClick:u,"data-number":"新"}," 新 "),h("div",{class:"popitem",onClick:u,"data-number":"甘"}," 甘 "),h("div",{class:"popitem",onClick:u,"data-number":"青"}," 青 "),h("div",{class:"popitem",onClick:u,"data-number":"陕"}," 陕 "),h("div",{class:"popitem",onClick:u,"data-number":"宁"}," 宁 "),h("div",{class:"popitem",onClick:u,"data-number":"豫"}," 豫 "),h("div",{class:"popitem",onClick:u,"data-number":"鲁"}," 鲁 "),h("div",{class:"popitem",onClick:u,"data-number":"晋"}," 晋 "),h("div",{class:"popitem",onClick:u,"data-number":"皖"}," 皖 "),h("div",{class:"popitem",onClick:u,"data-number":"鄂"}," 鄂 "),h("div",{class:"popitem",onClick:u,"data-number":"湘"}," 湘 "),h("div",{class:"popitem",onClick:u,"data-number":"苏"}," 苏 "),h("div",{class:"popitem",onClick:u,"data-number":"川"}," 川 "),h("div",{class:"popitem",onClick:u,"data-number":"云"}," 云 "),h("div",{class:"popitem",onClick:u,"data-number":"桂"}," 桂 "),h("div",{class:"popitem",onClick:u,"data-number":"藏"}," 藏 "),h("div",{class:"popitem",onClick:u,"data-number":"浙"}," 浙 "),h("div",{class:"popitem",onClick:u,"data-number":"赣"}," 赣 "),h("div",{class:"popitem",onClick:u,"data-number":"粤"}," 粤 "),h("div",{class:"popitem",onClick:u,"data-number":"闽"}," 闽 "),h("div",{class:"popitem",onClick:u,"data-number":"琼"}," 琼 "),h("div",{class:"popitem",onClick:u,"data-number":"贵"}," 贵 "),h("div",{class:"popitem popitem-clear",onClick:d},[K(nn,{width:"16px"})])],2),h("div",{class:R(["step",i.value!=0?"":"hide"])},[h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"1","data-unactive":i.value!=2?"unactive":""}," 1 ",10,wu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"2","data-unactive":i.value!=2?"unactive":""}," 2 ",10,xu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"3","data-unactive":i.value!=2?"unactive":""}," 3 ",10,Cu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"4","data-unactive":i.value!=2?"unactive":""}," 4 ",10,Eu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"5","data-unactive":i.value!=2?"unactive":""}," 5 ",10,Su),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"6","data-unactive":i.value!=2?"unactive":""}," 6 ",10,ku),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"7","data-unactive":i.value!=2?"unactive":""}," 7 ",10,Tu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"8","data-unactive":i.value!=2?"unactive":""}," 8 ",10,Ou),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"9","data-unactive":i.value!=2?"unactive":""}," 9 ",10,Pu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"0","data-unactive":i.value!=2?"unactive":""}," 0 ",10,Nu),h("div",{class:"popitem",onClick:u,"data-number":"A"}," A "),h("div",{class:"popitem",onClick:u,"data-number":"B"}," B "),h("div",{class:"popitem",onClick:u,"data-number":"C"}," C "),h("div",{class:"popitem",onClick:u,"data-number":"D"}," D "),h("div",{class:"popitem",onClick:u,"data-number":"E"}," E "),h("div",{class:"popitem",onClick:u,"data-number":"F"}," F "),h("div",{class:"popitem",onClick:u,"data-number":"G"}," G "),h("div",{class:"popitem",onClick:u,"data-number":"H"}," H "),h("div",{class:"popitem",onClick:u,"data-number":"J"}," J "),h("div",{class:"popitem",onClick:u,"data-number":"K"}," K "),h("div",{class:"popitem",onClick:u,"data-number":"L"}," L "),h("div",{class:"popitem",onClick:u,"data-number":"M"}," M "),h("div",{class:"popitem",onClick:u,"data-number":"N"}," N "),h("div",{class:"popitem",onClick:u,"data-number":"P"}," P "),h("div",{class:"popitem",onClick:u,"data-number":"Q"}," Q "),h("div",{class:"popitem",onClick:u,"data-number":"R"}," R "),h("div",{class:"popitem",onClick:u,"data-number":"S"}," S "),h("div",{class:"popitem",onClick:u,"data-number":"T"}," T "),h("div",{class:"popitem",onClick:u,"data-number":"U"}," U "),h("div",{class:"popitem",onClick:u,"data-number":"V"}," V "),h("div",{class:"popitem",onClick:u,"data-number":"W"}," W "),h("div",{class:"popitem",onClick:u,"data-number":"X"}," X "),h("div",{class:"popitem",onClick:u,"data-number":"Y"}," Y "),h("div",{class:"popitem",onClick:u,"data-number":"Z"}," Z "),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"港","data-unactive":i.value!=2?"unactive":""}," 港 ",10,Lu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"澳","data-unactive":i.value!=2?"unactive":""}," 澳 ",10,$u),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"学","data-unactive":i.value!=2?"unactive":""}," 学 ",10,Iu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"警","data-unactive":i.value!=2?"unactive":""}," 警 ",10,Mu),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"使","data-unactive":i.value!=2?"unactive":""}," 使 ",10,Au),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"领","data-unactive":i.value!=2?"unactive":""}," 领 ",10,Ru),h("div",{class:R(["popitem",i.value!=2?"unactive":""]),onClick:u,"data-number":"挂","data-unactive":i.value!=2?"unactive":""}," 挂 ",10,Du),h("div",{class:"popitem popitem-clear",onClick:d},[K(nn,{width:"16px"})])],2)],4)]),_:1},512))}}),Md="",ps=j(Fu,[["__scopeId","data-v-6e8b6f81"]]),sn=t=>(Sn("data-v-50f7545d"),t=t(),kn(),t),ju=sn(()=>h("div",{class:"title"},"车牌颜色",-1)),Vu={class:"plate-types"},zu=["onClick"],Hu=sn(()=>h("div",{class:"title"},"车牌号码",-1)),Bu={class:"plate-numbers"},Wu=sn(()=>h("div",{class:"dot"},"·",-1)),Gu=["onClick"],Uu=sn(()=>h("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ku=F({customOptions:{SVGCheck:fs,PlateKeyboard:ps},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=[{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}],i=E(),a=E(0),c=pe([]),l=E(-1),f=p=>{a.value=p,l.value<=r[p].completePlateLength&&c.length<r[p].completePlateLength?(l.value=c.length,i.value.open(),o("clear")):vt(c,c.slice(0,r[p].completePlateLength)),r[p].completePlateLength===c.length&&o("complete",r[a.value].name,c.join(""))},d=p=>{vt(c,c.slice(0,p)),l.value=Math.min(Math.max(0,l.value),p),i.value.open(),o("clear")},u=p=>{vt(c,p),l.value=c.length,c.length===r[a.value].completePlateLength&&o("complete",r[a.value].name,c.join(""))};return e({}),(p,g)=>(C(),N(ae,null,[h("div",Mn(p.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[ju,h("div",Vu,[(C(),N(ae,null,Be(r,(_,v)=>h("div",{key:v,class:R(v==a.value?"checked":""),onClick:S=>f(v)},[h("div",{style:k(_.style)},null,4),h("div",null,ne(_.name),1),h("div",null,[K(fs,{color:"#ffffff",width:"0.14rem"})])],10,zu)),64))]),Hu,h("div",Bu,[h("div",{onClick:g[0]||(g[0]=_=>d(0)),class:R(l.value==0?"current":"")},ne(c[0]),3),h("div",{onClick:g[1]||(g[1]=_=>d(1)),class:R(l.value==1?"current":"")},ne(c[1]),3),Wu,(C(!0),N(ae,null,Be(r[a.value].completePlateLength-2,_=>(C(),N("div",{key:_,class:R(_+1==l.value?"current":""),onClick:v=>d(_+1)},ne(c[_+1]),11,Gu))),128))]),Uu],16),K(ps,{ref_key:"plateKeyboardRef",ref:i,initPlates:c,completePlateLength:r[a.value].completePlateLength,onPlates:u},null,8,["initPlates","completePlateLength"])],64))}}),Ad="",qu=j(Ku,[["__scopeId","data-v-50f7545d"]]),Yu=["width","height"],Xu=["fill"],Zu=F({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:P.colorPrimary}},setup(t){const e=t;return(n,s)=>(C(),N("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[h("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Xu)],8,Yu))}}),Rd="",ms=j(Zu,[["__scopeId","data-v-4747d4a7"]]),Ju=F({customOptions:{SVGDelete:ms},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:P.colorGrayFF},deleteColor:{default:P.colorRed},fontColor:{default:P.colorGrayFF},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(!1),i=()=>{o("delete"),r.value=!1},a=new ts;let c;const l=E();return H(l,()=>{l.value&&(c=a.capture(l.value,{slideLeft:(f,d)=>{r.value=!0},slideRight:(f,d)=>{r.value=!1}}))}),fo(()=>{c?.()}),e({}),(f,d)=>(C(),N("div",{class:"parent",ref_key:"item",ref:l,style:k({backgroundColor:s.bgColor})},[h("div",{class:"content",style:k({transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[G(f.$slots,"default",{},void 0,!0)],4),h("div",{class:"delete",onClick:i,style:k({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[K(ms,{color:s.fontColor},null,8,["color"])],4)],4))}}),Dd="",Qu=j(Ju,[["__scopeId","data-v-9ea935aa"]]),ed={class:"parent"},td=F({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:n}){const s=t,o=[{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 r(d){return d.length>2?d.substring(0,2)+"·"+d.substring(2):d}function i(d){const u=o.filter(p=>p.name===d);return u.length?u[0]:i("未知")}const a=r(s.plate),c=E(i(s.plateType));let l=s.fontColor,f=s.fontSize;switch(s.displayType){case"dot":l=l??"#999999",f=f??"14px";break;case"chinese":l=l??"#333333",f=f??"20px";break}return e({}),(d,u)=>(C(),N("div",ed,[h("div",{class:R(["leading",s.displayType]),style:k(c.value.style)},ne(c.value.name),7),h("div",{class:"text",style:k({color:W(l),"font-size":W(f)})},ne(W(a)),5)]))}}),Fd="",nd=j(td,[["__scopeId","data-v-8d55b13b"]]),sd={class:"tab"},od=F({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(t,{expose:e}){return e({}),(n,s)=>(C(),N("div",sd,[G(n.$slots,"default",{},void 0,!0)]))}}),jd="",Wr=j(od,[["__scopeId","data-v-6589e7fa"]]),rd=["onClick"],id={class:"content"},ad=F({customOptions:{Tab:Wr},inheritAttrs:!0,__name:"Tabs",props:{initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:n}){const s=t,o=n,r=E(s.initIndex),i=pe([]),a=E(),c=E(0),l=E(0),f=E(0),d=E([]),u=[],p=ca(),g=p.default&&p.default();g&&(vt(i,g),S(r.value));const _=(m,b)=>{if(m){if(u.push({index:b,el:m}),u.length<i.length)return;d.value=u}};H([a,d],()=>{v()});function v(){if(a.value&&d.value.length){const m=a.value.getBoundingClientRect(),b=d.value[r.value].el.getBoundingClientRect();c.value=b.x-m.x,l.value=b.y-m.y+b.height,f.value=b.width}}function S(m){r.value=m,o("changedIndex",m),v()}return e({}),(m,b)=>(C(),N("div",null,[h("div",{class:"header",ref_key:"headerRef",ref:a},[(C(!0),N(ae,null,Be(i,(y,A)=>(C(),N("div",{key:y.props?.label,class:R(A==r.value?"active":""),onClick:w=>S(A)},[h("div",{ref_for:!0,ref:w=>_(w,A)},ne(y.props?.label),513)],10,rd))),128)),h("div",{class:"indicator",style:k({top:l.value+"px",left:c.value+"px",width:f.value+"px",height:"2px"})},null,4)],512),h("div",id,[(C(),ee(na,{include:"Tab"},[(C(),ee(Xi(i[r.value]),{key:i[r.value]?.props?.label}))],1024))])]))}}),Vd="",cd=j(ad,[["__scopeId","data-v-e8093875"]]);M.Button=Se,M.CheckboxGroup=jl,M.ColorPicker=lu,M.Dialog=ns,M.DialogLoading=bl,M.Icon=De,M.MapTianditu=mu,M.MobileLayout=sl,M.Overlay=bt,M.PlateDisplay=nd,M.PlateKeyboard=ps,M.PlateMobile=qu,M.Pop=ke,M.Popover=ss,M.RadioGroup=$l,M.ResizeObserver=hu,M.SVGCheck=fs,M.SVGCleanUp=nn,M.SVGDelete=ms,M.Select=Cl,M.SlideLeftItem=Qu,M.Switch=Sl,M.Tab=Wr,M.Tabs=cd,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
45
+ //# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map