ambient-display 1.1.16 → 1.1.18

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 (101) hide show
  1. package/build/client/_app/immutable/assets/3.VTEzhx9-.css +1 -0
  2. package/build/client/_app/immutable/assets/3.VTEzhx9-.css.br +0 -0
  3. package/build/client/_app/immutable/assets/3.VTEzhx9-.css.gz +0 -0
  4. package/build/client/_app/immutable/assets/_page.VTEzhx9-.css +1 -0
  5. package/build/client/_app/immutable/assets/_page.VTEzhx9-.css.br +0 -0
  6. package/build/client/_app/immutable/assets/_page.VTEzhx9-.css.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{B-DtXKX3.js → BFU9wwXC.js} +2 -2
  8. package/build/client/_app/immutable/chunks/BFU9wwXC.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BFU9wwXC.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{-6v_nyr3.js → BQ2eCqC3.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BQ2eCqC3.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BQ2eCqC3.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/D5aAvvqP.js +2 -0
  14. package/build/client/_app/immutable/chunks/D5aAvvqP.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/D5aAvvqP.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{D1JCCJf3.js → DiaFwogD.js} +1 -1
  17. package/build/client/_app/immutable/chunks/DiaFwogD.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/DiaFwogD.js.gz +0 -0
  19. package/build/client/_app/immutable/entry/{app.Dw9QiwYt.js → app.DBhY8_4y.js} +2 -2
  20. package/build/client/_app/immutable/entry/app.DBhY8_4y.js.br +0 -0
  21. package/build/client/_app/immutable/entry/app.DBhY8_4y.js.gz +0 -0
  22. package/build/client/_app/immutable/entry/start.DwC31x2f.js +1 -0
  23. package/build/client/_app/immutable/entry/start.DwC31x2f.js.br +2 -0
  24. package/build/client/_app/immutable/entry/start.DwC31x2f.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/0.BXpO8PDa.js +2 -0
  26. package/build/client/_app/immutable/nodes/0.BXpO8PDa.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/0.BXpO8PDa.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{1.ENhX25AD.js → 1.ByCIm58b.js} +1 -1
  29. package/build/client/_app/immutable/nodes/1.ByCIm58b.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/1.ByCIm58b.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{2.BCvH_-7k.js → 2.DxFkPkVM.js} +1 -1
  32. package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js +1 -0
  35. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.gz +0 -0
  37. package/build/client/_app/version.json +1 -1
  38. package/build/client/_app/version.json.br +0 -0
  39. package/build/client/_app/version.json.gz +0 -0
  40. package/build/server/chunks/{0-CPnhpTjC.js → 0-BvYWjFDA.js} +3 -3
  41. package/build/server/chunks/{0-CPnhpTjC.js.map → 0-BvYWjFDA.js.map} +1 -1
  42. package/build/server/chunks/{1-75N2Qxv9.js → 1-Nhr7ZMI3.js} +2 -2
  43. package/build/server/chunks/{1-75N2Qxv9.js.map → 1-Nhr7ZMI3.js.map} +1 -1
  44. package/build/server/chunks/{2-B3ii1avX.js → 2-cxDj5MEl.js} +3 -3
  45. package/build/server/chunks/{2-B3ii1avX.js.map → 2-cxDj5MEl.js.map} +1 -1
  46. package/build/server/chunks/3-Bd5ZeRiN.js +9 -0
  47. package/build/server/chunks/{3-Cz5Rp48l.js.map → 3-Bd5ZeRiN.js.map} +1 -1
  48. package/build/server/chunks/{LoadingIndicator-BjVqwEwa.js → LoadingIndicator-BgSuwc17.js} +2 -2
  49. package/build/server/chunks/{LoadingIndicator-BjVqwEwa.js.map → LoadingIndicator-BgSuwc17.js.map} +1 -1
  50. package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-CzuFb3Rb.js → LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js} +4 -1
  51. package/build/server/chunks/LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js.map +1 -0
  52. package/build/server/chunks/{PlayingTracker-DagWUwKl.js → PlayingTracker-DuFebO2_.js} +2 -2
  53. package/build/server/chunks/{PlayingTracker-DagWUwKl.js.map → PlayingTracker-DuFebO2_.js.map} +1 -1
  54. package/build/server/chunks/{_layout.svelte-D_Vfu08M.js → _layout.svelte-CADTy4fg.js} +3 -3
  55. package/build/server/chunks/{_layout.svelte-D_Vfu08M.js.map → _layout.svelte-CADTy4fg.js.map} +1 -1
  56. package/build/server/chunks/{_page.svelte-Csehl0cs.js → _page.svelte-B1q4zDaO.js} +9 -9
  57. package/build/server/chunks/_page.svelte-B1q4zDaO.js.map +1 -0
  58. package/build/server/chunks/{_page.svelte-CY_oFa2x.js → _page.svelte-CYugZxLe.js} +3 -3
  59. package/build/server/chunks/{_page.svelte-CY_oFa2x.js.map → _page.svelte-CYugZxLe.js.map} +1 -1
  60. package/build/server/index.js +1 -1
  61. package/build/server/index.js.map +1 -1
  62. package/build/server/manifest.js +5 -5
  63. package/build/server/manifest.js.map +1 -1
  64. package/package.json +2 -1
  65. package/server/api/index.js +4 -0
  66. package/server/index.js +8 -1
  67. package/server/spotify/index.js +4 -0
  68. package/server/spotify/sdk.js +7 -0
  69. package/build/client/_app/immutable/assets/3.BvcZlbFP.css +0 -1
  70. package/build/client/_app/immutable/assets/3.BvcZlbFP.css.br +0 -0
  71. package/build/client/_app/immutable/assets/3.BvcZlbFP.css.gz +0 -0
  72. package/build/client/_app/immutable/assets/_page.BvcZlbFP.css +0 -1
  73. package/build/client/_app/immutable/assets/_page.BvcZlbFP.css.br +0 -0
  74. package/build/client/_app/immutable/assets/_page.BvcZlbFP.css.gz +0 -0
  75. package/build/client/_app/immutable/chunks/-6v_nyr3.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/-6v_nyr3.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/B-DtXKX3.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/B-DtXKX3.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/D1JCCJf3.js.br +0 -0
  80. package/build/client/_app/immutable/chunks/D1JCCJf3.js.gz +0 -0
  81. package/build/client/_app/immutable/chunks/DGTGMr-5.js +0 -2
  82. package/build/client/_app/immutable/chunks/DGTGMr-5.js.br +0 -0
  83. package/build/client/_app/immutable/chunks/DGTGMr-5.js.gz +0 -0
  84. package/build/client/_app/immutable/entry/app.Dw9QiwYt.js.br +0 -0
  85. package/build/client/_app/immutable/entry/app.Dw9QiwYt.js.gz +0 -0
  86. package/build/client/_app/immutable/entry/start.C213Gs6Z.js +0 -1
  87. package/build/client/_app/immutable/entry/start.C213Gs6Z.js.br +0 -2
  88. package/build/client/_app/immutable/entry/start.C213Gs6Z.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/0.BZsTTCpd.js +0 -2
  90. package/build/client/_app/immutable/nodes/0.BZsTTCpd.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/0.BZsTTCpd.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/1.ENhX25AD.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/1.ENhX25AD.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/2.BCvH_-7k.js.br +0 -0
  95. package/build/client/_app/immutable/nodes/2.BCvH_-7k.js.gz +0 -0
  96. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js +0 -1
  97. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js.br +0 -0
  98. package/build/client/_app/immutable/nodes/3.CkzNUk9P.js.gz +0 -0
  99. package/build/server/chunks/3-Cz5Rp48l.js +0 -9
  100. package/build/server/chunks/LoadingIndicator.svelte_svelte_type_style_lang-CzuFb3Rb.js.map +0 -1
  101. package/build/server/chunks/_page.svelte-Csehl0cs.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{t as Ii,a as Ce,f as Ee,r as eo}from"./qSIFE6bv.js";import{v as yc,u as Ri,I as Vr,J as Ti,z as rl,o as Or,B as el,A as tl,x as Me,y as dc}from"./CDVeMiAl.js";import{i as to,p as Qr,b as ie,s as nl,a as no}from"./CvUX3i4L.js";import{s as al,e as ao,n as Rr,r as il,g as ol,m as ul,f as sl}from"./DGTGMr-5.js";var fl=Ii('<img class="full svelte-1nicoyy" alt="">'),cl=Ii('<img class="low svelte-1nicoyy" alt="">'),ll=Ii("<span><!> <!></span>");function ov(r,e){yc(e,!0);const t={INITIAL:0,LOAD:1,FULL:2,COMPLETE:3};let n=Ti(void 0);function a(){Or(n)===t.INITIAL&&Vr(n,Qr(t.LOAD))}function i(){Vr(n,Qr(t.FULL))}let o=Ti(!1);Ri(()=>{setTimeout(()=>{Vr(o,!0)},50)});var u=ll();let g;var _=rl(u);{var b=s=>{var l=fl();Me(()=>ao(l,"src",e.full)),Ee("load",l,i),Ee("transitionend",l,()=>Vr(n,Qr(t.COMPLETE))),eo(l),Ce(s,l)};to(_,s=>{Or(n)!==t.INITIAL&&Or(o)&&s(b)})}var c=el(_,2);{var v=s=>{var l=cl();Me(()=>ao(l,"src",e.low)),Ee("load",l,a),eo(l),Ce(s,l)};to(c,s=>{Or(n)!==t.COMPLETE&&s(v)})}tl(u),Me(s=>g=al(u,1,"image svelte-1nicoyy",null,g,s),[()=>({display:(Or(n)===t.FULL||Or(n)===t.COMPLETE)&&Or(o)})]),Ce(r,u),dc()}var hr={},Ur={},xe={},io;function ce(){return io||(io=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.getColorIndex=r.getColorDiffStatus=r.hexDiff=r.rgbDiff=r.deltaE94=r.rgbToCIELab=r.xyzToCIELab=r.rgbToXyz=r.hslToRgb=r.rgbToHsl=r.rgbToHex=r.hexToRgb=r.defer=r.RSHIFT=r.SIGBITS=r.DELTAE94_DIFF_STATUS=void 0,r.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},r.SIGBITS=5,r.RSHIFT=8-r.SIGBITS;function e(){var l,d,f=new Promise(function(h,m){l=h,d=m});return{resolve:l,reject:d,promise:f}}r.defer=e;function t(l){var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l);return d===null?null:[d[1],d[2],d[3]].map(function(f){return parseInt(f,16)})}r.hexToRgb=t;function n(l,d,f){return"#"+((1<<24)+(l<<16)+(d<<8)+f).toString(16).slice(1,7)}r.rgbToHex=n;function a(l,d,f){l/=255,d/=255,f/=255;var h=Math.max(l,d,f),m=Math.min(l,d,f),O,S,y=(h+m)/2;if(h===m)O=S=0;else{var q=h-m;switch(S=y>.5?q/(2-h-m):q/(h+m),h){case l:O=(d-f)/q+(d<f?6:0);break;case d:O=(f-l)/q+2;break;case f:O=(l-d)/q+4;break}O/=6}return[O,S,y]}r.rgbToHsl=a;function i(l,d,f){var h,m,O;function S(p,T,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?p+(T-p)*6*I:I<1/2?T:I<2/3?p+(T-p)*(2/3-I)*6:p}if(d===0)h=m=O=f;else{var y=f<.5?f*(1+d):f+d-f*d,q=2*f-y;h=S(q,y,l+1/3),m=S(q,y,l),O=S(q,y,l-1/3)}return[h*255,m*255,O*255]}r.hslToRgb=i;function o(l,d,f){l/=255,d/=255,f/=255,l=l>.04045?Math.pow((l+.005)/1.055,2.4):l/12.92,d=d>.04045?Math.pow((d+.005)/1.055,2.4):d/12.92,f=f>.04045?Math.pow((f+.005)/1.055,2.4):f/12.92,l*=100,d*=100,f*=100;var h=l*.4124+d*.3576+f*.1805,m=l*.2126+d*.7152+f*.0722,O=l*.0193+d*.1192+f*.9505;return[h,m,O]}r.rgbToXyz=o;function u(l,d,f){var h=95.047,m=100,O=108.883;l/=h,d/=m,f/=O,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116;var S=116*d-16,y=500*(l-d),q=200*(d-f);return[S,y,q]}r.xyzToCIELab=u;function g(l,d,f){var h=o(l,d,f),m=h[0],O=h[1],S=h[2];return u(m,O,S)}r.rgbToCIELab=g;function _(l,d){var f=1,h=1,m=1,O=l[0],S=l[1],y=l[2],q=d[0],p=d[1],T=d[2],I=O-q,C=S-p,P=y-T,R=Math.sqrt(S*S+y*y),H=Math.sqrt(p*p+T*T),F=q-O,K=H-R,er=Math.sqrt(I*I+C*C+P*P),Q=Math.sqrt(er)>Math.sqrt(Math.abs(F))+Math.sqrt(Math.abs(K))?Math.sqrt(er*er-F*F-K*K):0,E=1+.045*R,Z=1+.015*R;return F/=f,K/=h*E,Q/=m*Z,Math.sqrt(F*F+K*K+Q*Q)}r.deltaE94=_;function b(l,d){var f=g.apply(void 0,l),h=g.apply(void 0,d);return _(f,h)}r.rgbDiff=b;function c(l,d){var f=t(l),h=t(d);return b(f,h)}r.hexDiff=c;function v(l){return l<r.DELTAE94_DIFF_STATUS.NA?"N/A":l<=r.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":l<=r.DELTAE94_DIFF_STATUS.CLOSE?"Close":l<=r.DELTAE94_DIFF_STATUS.GOOD?"Good":l<r.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"}r.getColorDiffStatus=v;function s(l,d,f){return(l<<2*r.SIGBITS)+(d<<r.SIGBITS)+f}r.getColorIndex=s}(xe)),xe}var De,oo;function gc(){if(oo)return De;oo=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}return De=r,De}var Fe,uo;function hl(){if(uo)return Fe;uo=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),g=u.length;g--;){var _=u[e?g:++i];if(n(o[_],_,o)===!1)break}return t}}return Fe=r,Fe}var Le,so;function pl(){if(so)return Le;so=1;var r=hl(),e=r();return Le=e,Le}var je,fo;function vl(){if(fo)return je;fo=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return je=r,je}var Be,co;function _c(){if(co)return Be;co=1;var r=typeof Rr=="object"&&Rr&&Rr.Object===Object&&Rr;return Be=r,Be}var Ne,lo;function br(){if(lo)return Ne;lo=1;var r=_c(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ne=t,Ne}var Ge,ho;function Jr(){if(ho)return Ge;ho=1;var r=br(),e=r.Symbol;return Ge=e,Ge}var Ue,po;function yl(){if(po)return Ue;po=1;var r=Jr(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var u=t.call(o,a),g=o[a];try{o[a]=void 0;var _=!0}catch{}var b=n.call(o);return _&&(u?o[a]=g:delete o[a]),b}return Ue=i,Ue}var He,vo;function dl(){if(vo)return He;vo=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return He=t,He}var $e,yo;function Xr(){if(yo)return $e;yo=1;var r=Jr(),e=yl(),t=dl(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?e(u):t(u)}return $e=o,$e}var Ve,go;function Pr(){if(go)return Ve;go=1;function r(e){return e!=null&&typeof e=="object"}return Ve=r,Ve}var Ke,_o;function gl(){if(_o)return Ke;_o=1;var r=Xr(),e=Pr(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Ke=n,Ke}var ze,bo;function bc(){if(bo)return ze;bo=1;var r=gl(),e=Pr(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return ze=i,ze}var We,mo;function mr(){if(mo)return We;mo=1;var r=Array.isArray;return We=r,We}var Kr={exports:{}},ke,So;function _l(){if(So)return ke;So=1;function r(){return!1}return ke=r,ke}Kr.exports;var qo;function Pi(){return qo||(qo=1,function(r,e){var t=br(),n=_l(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,u=o?t.Buffer:void 0,g=u?u.isBuffer:void 0,_=g||n;r.exports=_}(Kr,Kr.exports)),Kr.exports}var Qe,Ao;function Ci(){if(Ao)return Qe;Ao=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Qe=t,Qe}var Je,wo;function Ei(){if(wo)return Je;wo=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Je=e,Je}var Xe,Oo;function bl(){if(Oo)return Xe;Oo=1;var r=Xr(),e=Ei(),t=Pr(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",g="[object Function]",_="[object Map]",b="[object Number]",c="[object Object]",v="[object RegExp]",s="[object Set]",l="[object String]",d="[object WeakMap]",f="[object ArrayBuffer]",h="[object DataView]",m="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",y="[object Int16Array]",q="[object Int32Array]",p="[object Uint8Array]",T="[object Uint8ClampedArray]",I="[object Uint16Array]",C="[object Uint32Array]",P={};P[m]=P[O]=P[S]=P[y]=P[q]=P[p]=P[T]=P[I]=P[C]=!0,P[n]=P[a]=P[f]=P[i]=P[h]=P[o]=P[u]=P[g]=P[_]=P[b]=P[c]=P[v]=P[s]=P[l]=P[d]=!1;function R(H){return t(H)&&e(H.length)&&!!P[r(H)]}return Xe=R,Xe}var Ye,Ro;function Mi(){if(Ro)return Ye;Ro=1;function r(e){return function(t){return e(t)}}return Ye=r,Ye}var zr={exports:{}};zr.exports;var To;function xi(){return To||(To=1,function(r,e){var t=_c(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var g=a&&a.require&&a.require("util").types;return g||o&&o.binding&&o.binding("util")}catch{}}();r.exports=u}(zr,zr.exports)),zr.exports}var Ze,Io;function mc(){if(Io)return Ze;Io=1;var r=bl(),e=Mi(),t=xi(),n=t&&t.isTypedArray,a=n?e(n):r;return Ze=a,Ze}var rt,Po;function Sc(){if(Po)return rt;Po=1;var r=vl(),e=bc(),t=mr(),n=Pi(),a=Ci(),i=mc(),o=Object.prototype,u=o.hasOwnProperty;function g(_,b){var c=t(_),v=!c&&e(_),s=!c&&!v&&n(_),l=!c&&!v&&!s&&i(_),d=c||v||s||l,f=d?r(_.length,String):[],h=f.length;for(var m in _)(b||u.call(_,m))&&!(d&&(m=="length"||s&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||a(m,h)))&&f.push(m);return f}return rt=g,rt}var et,Co;function Di(){if(Co)return et;Co=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return et=e,et}var tt,Eo;function qc(){if(Eo)return tt;Eo=1;function r(e,t){return function(n){return e(t(n))}}return tt=r,tt}var nt,Mo;function ml(){if(Mo)return nt;Mo=1;var r=qc(),e=r(Object.keys,Object);return nt=e,nt}var at,xo;function Sl(){if(xo)return at;xo=1;var r=Di(),e=ml(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return at=a,at}var it,Do;function Cr(){if(Do)return it;Do=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return it=r,it}var ot,Fo;function Ac(){if(Fo)return ot;Fo=1;var r=Xr(),e=Cr(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!e(u))return!1;var g=r(u);return g==n||g==a||g==t||g==i}return ot=o,ot}var ut,Lo;function le(){if(Lo)return ut;Lo=1;var r=Ac(),e=Ei();function t(n){return n!=null&&e(n.length)&&!r(n)}return ut=t,ut}var st,jo;function Yr(){if(jo)return st;jo=1;var r=Sc(),e=Sl(),t=le();function n(a){return t(a)?r(a):e(a)}return st=n,st}var ft,Bo;function ql(){if(Bo)return ft;Bo=1;var r=pl(),e=Yr();function t(n,a){return n&&r(n,a,e)}return ft=t,ft}var ct,No;function Al(){if(No)return ct;No=1;var r=le();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,u=n?o:-1,g=Object(a);(n?u--:++u<o)&&i(g[u],u,g)!==!1;);return a}}return ct=e,ct}var lt,Go;function wl(){if(Go)return lt;Go=1;var r=ql(),e=Al(),t=e(r);return lt=t,lt}var ht,Uo;function Ol(){if(Uo)return ht;Uo=1;var r=wl();function e(t,n){var a=[];return r(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return ht=e,ht}var pt,Ho;function Rl(){if(Ho)return pt;Ho=1;function r(){this.__data__=[],this.size=0}return pt=r,pt}var vt,$o;function Zr(){if($o)return vt;$o=1;function r(e,t){return e===t||e!==e&&t!==t}return vt=r,vt}var yt,Vo;function he(){if(Vo)return yt;Vo=1;var r=Zr();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return yt=e,yt}var dt,Ko;function Tl(){if(Ko)return dt;Ko=1;var r=he(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var u=i.length-1;return o==u?i.pop():t.call(i,o,1),--this.size,!0}return dt=n,dt}var gt,zo;function Il(){if(zo)return gt;zo=1;var r=he();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return gt=e,gt}var _t,Wo;function Pl(){if(Wo)return _t;Wo=1;var r=he();function e(t){return r(this.__data__,t)>-1}return _t=e,_t}var bt,ko;function Cl(){if(ko)return bt;ko=1;var r=he();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return bt=e,bt}var mt,Qo;function pe(){if(Qo)return mt;Qo=1;var r=Rl(),e=Tl(),t=Il(),n=Pl(),a=Cl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,mt=i,mt}var St,Jo;function El(){if(Jo)return St;Jo=1;var r=pe();function e(){this.__data__=new r,this.size=0}return St=e,St}var qt,Xo;function Ml(){if(Xo)return qt;Xo=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return qt=r,qt}var At,Yo;function xl(){if(Yo)return At;Yo=1;function r(e){return this.__data__.get(e)}return At=r,At}var wt,Zo;function Dl(){if(Zo)return wt;Zo=1;function r(e){return this.__data__.has(e)}return wt=r,wt}var Ot,ru;function Fl(){if(ru)return Ot;ru=1;var r=br(),e=r["__core-js_shared__"];return Ot=e,Ot}var Rt,eu;function Ll(){if(eu)return Rt;eu=1;var r=Fl(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Rt=t,Rt}var Tt,tu;function wc(){if(tu)return Tt;tu=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Tt=t,Tt}var It,nu;function jl(){if(nu)return It;nu=1;var r=Ac(),e=Ll(),t=Cr(),n=wc(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,g=o.toString,_=u.hasOwnProperty,b=RegExp("^"+g.call(_).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(v){if(!t(v)||e(v))return!1;var s=r(v)?b:i;return s.test(n(v))}return It=c,It}var Pt,au;function Bl(){if(au)return Pt;au=1;function r(e,t){return e==null?void 0:e[t]}return Pt=r,Pt}var Ct,iu;function Er(){if(iu)return Ct;iu=1;var r=jl(),e=Bl();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return Ct=t,Ct}var Et,ou;function Fi(){if(ou)return Et;ou=1;var r=Er(),e=br(),t=r(e,"Map");return Et=t,Et}var Mt,uu;function ve(){if(uu)return Mt;uu=1;var r=Er(),e=r(Object,"create");return Mt=e,Mt}var xt,su;function Nl(){if(su)return xt;su=1;var r=ve();function e(){this.__data__=r?r(null):{},this.size=0}return xt=e,xt}var Dt,fu;function Gl(){if(fu)return Dt;fu=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Dt=r,Dt}var Ft,cu;function Ul(){if(cu)return Ft;cu=1;var r=ve(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var u=o[i];return u===e?void 0:u}return n.call(o,i)?o[i]:void 0}return Ft=a,Ft}var Lt,lu;function Hl(){if(lu)return Lt;lu=1;var r=ve(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return Lt=n,Lt}var jt,hu;function $l(){if(hu)return jt;hu=1;var r=ve(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return jt=t,jt}var Bt,pu;function Vl(){if(pu)return Bt;pu=1;var r=Nl(),e=Gl(),t=Ul(),n=Hl(),a=$l();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,Bt=i,Bt}var Nt,vu;function Kl(){if(vu)return Nt;vu=1;var r=Vl(),e=pe(),t=Fi();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Nt=n,Nt}var Gt,yu;function zl(){if(yu)return Gt;yu=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Gt=r,Gt}var Ut,du;function ye(){if(du)return Ut;du=1;var r=zl();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Ut=e,Ut}var Ht,gu;function Wl(){if(gu)return Ht;gu=1;var r=ye();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Ht=e,Ht}var $t,_u;function kl(){if(_u)return $t;_u=1;var r=ye();function e(t){return r(this,t).get(t)}return $t=e,$t}var Vt,bu;function Ql(){if(bu)return Vt;bu=1;var r=ye();function e(t){return r(this,t).has(t)}return Vt=e,Vt}var Kt,mu;function Jl(){if(mu)return Kt;mu=1;var r=ye();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Kt=e,Kt}var zt,Su;function Li(){if(Su)return zt;Su=1;var r=Kl(),e=Wl(),t=kl(),n=Ql(),a=Jl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,zt=i,zt}var Wt,qu;function Xl(){if(qu)return Wt;qu=1;var r=pe(),e=Fi(),t=Li(),n=200;function a(i,o){var u=this.__data__;if(u instanceof r){var g=u.__data__;if(!e||g.length<n-1)return g.push([i,o]),this.size=++u.size,this;u=this.__data__=new t(g)}return u.set(i,o),this.size=u.size,this}return Wt=a,Wt}var kt,Au;function ji(){if(Au)return kt;Au=1;var r=pe(),e=El(),t=Ml(),n=xl(),a=Dl(),i=Xl();function o(u){var g=this.__data__=new r(u);this.size=g.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,kt=o,kt}var Qt,wu;function Yl(){if(wu)return Qt;wu=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Qt=e,Qt}var Jt,Ou;function Zl(){if(Ou)return Jt;Ou=1;function r(e){return this.__data__.has(e)}return Jt=r,Jt}var Xt,Ru;function rh(){if(Ru)return Xt;Ru=1;var r=Li(),e=Yl(),t=Zl();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Xt=n,Xt}var Yt,Tu;function eh(){if(Tu)return Yt;Tu=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Yt=r,Yt}var Zt,Iu;function th(){if(Iu)return Zt;Iu=1;function r(e,t){return e.has(t)}return Zt=r,Zt}var rn,Pu;function Oc(){if(Pu)return rn;Pu=1;var r=rh(),e=eh(),t=th(),n=1,a=2;function i(o,u,g,_,b,c){var v=g&n,s=o.length,l=u.length;if(s!=l&&!(v&&l>s))return!1;var d=c.get(o),f=c.get(u);if(d&&f)return d==u&&f==o;var h=-1,m=!0,O=g&a?new r:void 0;for(c.set(o,u),c.set(u,o);++h<s;){var S=o[h],y=u[h];if(_)var q=v?_(y,S,h,u,o,c):_(S,y,h,o,u,c);if(q!==void 0){if(q)continue;m=!1;break}if(O){if(!e(u,function(p,T){if(!t(O,T)&&(S===p||b(S,p,g,_,c)))return O.push(T)})){m=!1;break}}else if(!(S===y||b(S,y,g,_,c))){m=!1;break}}return c.delete(o),c.delete(u),m}return rn=i,rn}var en,Cu;function Rc(){if(Cu)return en;Cu=1;var r=br(),e=r.Uint8Array;return en=e,en}var tn,Eu;function nh(){if(Eu)return tn;Eu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return tn=r,tn}var nn,Mu;function ah(){if(Mu)return nn;Mu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return nn=r,nn}var an,xu;function ih(){if(xu)return an;xu=1;var r=Jr(),e=Rc(),t=Zr(),n=Oc(),a=nh(),i=ah(),o=1,u=2,g="[object Boolean]",_="[object Date]",b="[object Error]",c="[object Map]",v="[object Number]",s="[object RegExp]",l="[object Set]",d="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,S=O?O.valueOf:void 0;function y(q,p,T,I,C,P,R){switch(T){case m:if(q.byteLength!=p.byteLength||q.byteOffset!=p.byteOffset)return!1;q=q.buffer,p=p.buffer;case h:return!(q.byteLength!=p.byteLength||!P(new e(q),new e(p)));case g:case _:case v:return t(+q,+p);case b:return q.name==p.name&&q.message==p.message;case s:case d:return q==p+"";case c:var H=a;case l:var F=I&o;if(H||(H=i),q.size!=p.size&&!F)return!1;var K=R.get(q);if(K)return K==p;I|=u,R.set(q,p);var er=n(H(q),H(p),I,C,P,R);return R.delete(q),er;case f:if(S)return S.call(q)==S.call(p)}return!1}return an=y,an}var on,Du;function Tc(){if(Du)return on;Du=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return on=r,on}var un,Fu;function Ic(){if(Fu)return un;Fu=1;var r=Tc(),e=mr();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return un=t,un}var sn,Lu;function Pc(){if(Lu)return sn;Lu=1;function r(){return[]}return sn=r,sn}var fn,ju;function Bi(){if(ju)return fn;ju=1;var r=gc(),e=Pc(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(u){return n.call(o,u)}))}:e;return fn=i,fn}var cn,Bu;function Cc(){if(Bu)return cn;Bu=1;var r=Ic(),e=Bi(),t=Yr();function n(a){return r(a,t,e)}return cn=n,cn}var ln,Nu;function oh(){if(Nu)return ln;Nu=1;var r=Cc(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,g,_,b){var c=u&e,v=r(i),s=v.length,l=r(o),d=l.length;if(s!=d&&!c)return!1;for(var f=s;f--;){var h=v[f];if(!(c?h in o:n.call(o,h)))return!1}var m=b.get(i),O=b.get(o);if(m&&O)return m==o&&O==i;var S=!0;b.set(i,o),b.set(o,i);for(var y=c;++f<s;){h=v[f];var q=i[h],p=o[h];if(g)var T=c?g(p,q,h,o,i,b):g(q,p,h,i,o,b);if(!(T===void 0?q===p||_(q,p,u,g,b):T)){S=!1;break}y||(y=h=="constructor")}if(S&&!y){var I=i.constructor,C=o.constructor;I!=C&&"constructor"in i&&"constructor"in o&&!(typeof I=="function"&&I instanceof I&&typeof C=="function"&&C instanceof C)&&(S=!1)}return b.delete(i),b.delete(o),S}return ln=a,ln}var hn,Gu;function uh(){if(Gu)return hn;Gu=1;var r=Er(),e=br(),t=r(e,"DataView");return hn=t,hn}var pn,Uu;function sh(){if(Uu)return pn;Uu=1;var r=Er(),e=br(),t=r(e,"Promise");return pn=t,pn}var vn,Hu;function fh(){if(Hu)return vn;Hu=1;var r=Er(),e=br(),t=r(e,"Set");return vn=t,vn}var yn,$u;function ch(){if($u)return yn;$u=1;var r=Er(),e=br(),t=r(e,"WeakMap");return yn=t,yn}var dn,Vu;function de(){if(Vu)return dn;Vu=1;var r=uh(),e=Fi(),t=sh(),n=fh(),a=ch(),i=Xr(),o=wc(),u="[object Map]",g="[object Object]",_="[object Promise]",b="[object Set]",c="[object WeakMap]",v="[object DataView]",s=o(r),l=o(e),d=o(t),f=o(n),h=o(a),m=i;return(r&&m(new r(new ArrayBuffer(1)))!=v||e&&m(new e)!=u||t&&m(t.resolve())!=_||n&&m(new n)!=b||a&&m(new a)!=c)&&(m=function(O){var S=i(O),y=S==g?O.constructor:void 0,q=y?o(y):"";if(q)switch(q){case s:return v;case l:return u;case d:return _;case f:return b;case h:return c}return S}),dn=m,dn}var gn,Ku;function lh(){if(Ku)return gn;Ku=1;var r=ji(),e=Oc(),t=ih(),n=oh(),a=de(),i=mr(),o=Pi(),u=mc(),g=1,_="[object Arguments]",b="[object Array]",c="[object Object]",v=Object.prototype,s=v.hasOwnProperty;function l(d,f,h,m,O,S){var y=i(d),q=i(f),p=y?b:a(d),T=q?b:a(f);p=p==_?c:p,T=T==_?c:T;var I=p==c,C=T==c,P=p==T;if(P&&o(d)){if(!o(f))return!1;y=!0,I=!1}if(P&&!I)return S||(S=new r),y||u(d)?e(d,f,h,m,O,S):t(d,f,p,h,m,O,S);if(!(h&g)){var R=I&&s.call(d,"__wrapped__"),H=C&&s.call(f,"__wrapped__");if(R||H){var F=R?d.value():d,K=H?f.value():f;return S||(S=new r),O(F,K,h,m,S)}}return P?(S||(S=new r),n(d,f,h,m,O,S)):!1}return gn=l,gn}var _n,zu;function Ec(){if(zu)return _n;zu=1;var r=lh(),e=Pr();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,u)}return _n=t,_n}var bn,Wu;function hh(){if(Wu)return bn;Wu=1;var r=ji(),e=Ec(),t=1,n=2;function a(i,o,u,g){var _=u.length,b=_,c=!g;if(i==null)return!b;for(i=Object(i);_--;){var v=u[_];if(c&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++_<b;){v=u[_];var s=v[0],l=i[s],d=v[1];if(c&&v[2]){if(l===void 0&&!(s in i))return!1}else{var f=new r;if(g)var h=g(l,d,s,i,o,f);if(!(h===void 0?e(d,l,t|n,g,f):h))return!1}}return!0}return bn=a,bn}var mn,ku;function Mc(){if(ku)return mn;ku=1;var r=Cr();function e(t){return t===t&&!r(t)}return mn=e,mn}var Sn,Qu;function ph(){if(Qu)return Sn;Qu=1;var r=Mc(),e=Yr();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,r(u)]}return a}return Sn=t,Sn}var qn,Ju;function xc(){if(Ju)return qn;Ju=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return qn=r,qn}var An,Xu;function vh(){if(Xu)return An;Xu=1;var r=hh(),e=ph(),t=xc();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return An=n,An}var wn,Yu;function Ni(){if(Yu)return wn;Yu=1;var r=Xr(),e=Pr(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return wn=n,wn}var On,Zu;function Gi(){if(Zu)return On;Zu=1;var r=mr(),e=Ni(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return On=a,On}var Rn,rs;function yh(){if(rs)return Rn;rs=1;var r=Li(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,u=a?a.apply(this,o):o[0],g=i.cache;if(g.has(u))return g.get(u);var _=n.apply(this,o);return i.cache=g.set(u,_)||g,_};return i.cache=new(t.Cache||r),i}return t.Cache=r,Rn=t,Rn}var Tn,es;function dh(){if(es)return Tn;es=1;var r=yh(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Tn=t,Tn}var In,ts;function gh(){if(ts)return In;ts=1;var r=dh(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,u,g,_){i.push(g?_.replace(t,"$1"):u||o)}),i});return In=n,In}var Pn,ns;function _h(){if(ns)return Pn;ns=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Pn=r,Pn}var Cn,as;function bh(){if(as)return Cn;as=1;var r=Jr(),e=_h(),t=mr(),n=Ni(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return e(u,o)+"";if(n(u))return i?i.call(u):"";var g=u+"";return g=="0"&&1/u==-1/0?"-0":g}return Cn=o,Cn}var En,is;function mh(){if(is)return En;is=1;var r=bh();function e(t){return t==null?"":r(t)}return En=e,En}var Mn,os;function Dc(){if(os)return Mn;os=1;var r=mr(),e=Gi(),t=gh(),n=mh();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return Mn=a,Mn}var xn,us;function ge(){if(us)return xn;us=1;var r=Ni();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return xn=e,xn}var Dn,ss;function Fc(){if(ss)return Dn;ss=1;var r=Dc(),e=ge();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return Dn=t,Dn}var Fn,fs;function Sh(){if(fs)return Fn;fs=1;var r=Fc();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return Fn=e,Fn}var Ln,cs;function qh(){if(cs)return Ln;cs=1;function r(e,t){return e!=null&&t in Object(e)}return Ln=r,Ln}var jn,ls;function Ah(){if(ls)return jn;ls=1;var r=Dc(),e=bc(),t=mr(),n=Ci(),a=Ei(),i=ge();function o(u,g,_){g=r(g,u);for(var b=-1,c=g.length,v=!1;++b<c;){var s=i(g[b]);if(!(v=u!=null&&_(u,s)))break;u=u[s]}return v||++b!=c?v:(c=u==null?0:u.length,!!c&&a(c)&&n(s,c)&&(t(u)||e(u)))}return jn=o,jn}var Bn,hs;function wh(){if(hs)return Bn;hs=1;var r=qh(),e=Ah();function t(n,a){return n!=null&&e(n,a,r)}return Bn=t,Bn}var Nn,ps;function Oh(){if(ps)return Nn;ps=1;var r=Ec(),e=Sh(),t=wh(),n=Gi(),a=Mc(),i=xc(),o=ge(),u=1,g=2;function _(b,c){return n(b)&&a(c)?i(o(b),c):function(v){var s=e(v,b);return s===void 0&&s===c?t(v,b):r(c,s,u|g)}}return Nn=_,Nn}var Gn,vs;function Ui(){if(vs)return Gn;vs=1;function r(e){return e}return Gn=r,Gn}var Un,ys;function Rh(){if(ys)return Un;ys=1;function r(e){return function(t){return t==null?void 0:t[e]}}return Un=r,Un}var Hn,ds;function Th(){if(ds)return Hn;ds=1;var r=Fc();function e(t){return function(n){return r(n,t)}}return Hn=e,Hn}var $n,gs;function Ih(){if(gs)return $n;gs=1;var r=Rh(),e=Th(),t=Gi(),n=ge();function a(i){return t(i)?r(n(i)):e(i)}return $n=a,$n}var Vn,_s;function Ph(){if(_s)return Vn;_s=1;var r=vh(),e=Oh(),t=Ui(),n=mr(),a=Ih();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return Vn=i,Vn}var Kn,bs;function Ch(){if(bs)return Kn;bs=1;var r=gc(),e=Ol(),t=Ph(),n=mr();function a(i,o){var u=n(i)?r:e;return u(i,t(o,3))}return Kn=a,Kn}var ms;function Hi(){if(ms)return Ur;ms=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.Swatch=void 0;var r=ce(),e=Ch(),t=function(){function n(a,i){this._rgb=a,this._population=i}return n.applyFilter=function(a,i){return typeof i=="function"?e(a,function(o){var u=o.r,g=o.g,_=o.b;return i(u,g,_,255)}):a},Object.defineProperty(n.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rgb",{get:function(){return this._rgb},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hsl",{get:function(){if(!this._hsl){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hsl=r.rgbToHsl(i,o,u)}return this._hsl},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hex",{get:function(){if(!this._hex){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hex=r.rgbToHex(i,o,u)}return this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"population",{get:function(){return this._population},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},n.prototype.getRgb=function(){return this._rgb},n.prototype.getHsl=function(){return this.hsl},n.prototype.getPopulation=function(){return this._population},n.prototype.getHex=function(){return this.hex},n.prototype.getYiq=function(){if(!this._yiq){var a=this._rgb;this._yiq=(a[0]*299+a[1]*587+a[2]*114)/1e3}return this._yiq},Object.defineProperty(n.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!1,configurable:!0}),n.prototype.getTitleTextColor=function(){return this.titleTextColor},n.prototype.getBodyTextColor=function(){return this.bodyTextColor},n}();return Ur.Swatch=t,Ur}var Lr={},zn,Ss;function Eh(){if(Ss)return zn;Ss=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return zn=r,zn}var Wn,qs;function Lc(){if(qs)return Wn;qs=1;var r=Er(),e=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Wn=e,Wn}var kn,As;function jc(){if(As)return kn;As=1;var r=Lc();function e(t,n,a){n=="__proto__"&&r?r(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}return kn=e,kn}var Qn,ws;function Bc(){if(ws)return Qn;ws=1;var r=jc(),e=Zr(),t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u){var g=i[o];(!(n.call(i,o)&&e(g,u))||u===void 0&&!(o in i))&&r(i,o,u)}return Qn=a,Qn}var Jn,Os;function _e(){if(Os)return Jn;Os=1;var r=Bc(),e=jc();function t(n,a,i,o){var u=!i;i||(i={});for(var g=-1,_=a.length;++g<_;){var b=a[g],c=o?o(i[b],n[b],b,i,n):void 0;c===void 0&&(c=n[b]),u?e(i,b,c):r(i,b,c)}return i}return Jn=t,Jn}var Xn,Rs;function Mh(){if(Rs)return Xn;Rs=1;var r=_e(),e=Yr();function t(n,a){return n&&r(a,e(a),n)}return Xn=t,Xn}var Yn,Ts;function xh(){if(Ts)return Yn;Ts=1;function r(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}return Yn=r,Yn}var Zn,Is;function Dh(){if(Is)return Zn;Is=1;var r=Cr(),e=Di(),t=xh(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!r(o))return t(o);var u=e(o),g=[];for(var _ in o)_=="constructor"&&(u||!a.call(o,_))||g.push(_);return g}return Zn=i,Zn}var ra,Ps;function be(){if(Ps)return ra;Ps=1;var r=Sc(),e=Dh(),t=le();function n(a){return t(a)?r(a,!0):e(a)}return ra=n,ra}var ea,Cs;function Fh(){if(Cs)return ea;Cs=1;var r=_e(),e=be();function t(n,a){return n&&r(a,e(a),n)}return ea=t,ea}var Wr={exports:{}};Wr.exports;var Es;function Lh(){return Es||(Es=1,function(r,e){var t=br(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i?t.Buffer:void 0,u=o?o.allocUnsafe:void 0;function g(_,b){if(b)return _.slice();var c=_.length,v=u?u(c):new _.constructor(c);return _.copy(v),v}r.exports=g}(Wr,Wr.exports)),Wr.exports}var ta,Ms;function jh(){if(Ms)return ta;Ms=1;function r(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}return ta=r,ta}var na,xs;function Bh(){if(xs)return na;xs=1;var r=_e(),e=Bi();function t(n,a){return r(n,e(n),a)}return na=t,na}var aa,Ds;function Nc(){if(Ds)return aa;Ds=1;var r=qc(),e=r(Object.getPrototypeOf,Object);return aa=e,aa}var ia,Fs;function Gc(){if(Fs)return ia;Fs=1;var r=Tc(),e=Nc(),t=Bi(),n=Pc(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var u=[];o;)r(u,t(o)),o=e(o);return u}:n;return ia=i,ia}var oa,Ls;function Nh(){if(Ls)return oa;Ls=1;var r=_e(),e=Gc();function t(n,a){return r(n,e(n),a)}return oa=t,oa}var ua,js;function Gh(){if(js)return ua;js=1;var r=Ic(),e=Gc(),t=be();function n(a){return r(a,t,e)}return ua=n,ua}var sa,Bs;function Uh(){if(Bs)return sa;Bs=1;var r=Object.prototype,e=r.hasOwnProperty;function t(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return sa=t,sa}var fa,Ns;function $i(){if(Ns)return fa;Ns=1;var r=Rc();function e(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}return fa=e,fa}var ca,Gs;function Hh(){if(Gs)return ca;Gs=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}return ca=e,ca}var la,Us;function $h(){if(Us)return la;Us=1;var r=/\w*$/;function e(t){var n=new t.constructor(t.source,r.exec(t));return n.lastIndex=t.lastIndex,n}return la=e,la}var ha,Hs;function Vh(){if(Hs)return ha;Hs=1;var r=Jr(),e=r?r.prototype:void 0,t=e?e.valueOf:void 0;function n(a){return t?Object(t.call(a)):{}}return ha=n,ha}var pa,$s;function Kh(){if($s)return pa;$s=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}return pa=e,pa}var va,Vs;function zh(){if(Vs)return va;Vs=1;var r=$i(),e=Hh(),t=$h(),n=Vh(),a=Kh(),i="[object Boolean]",o="[object Date]",u="[object Map]",g="[object Number]",_="[object RegExp]",b="[object Set]",c="[object String]",v="[object Symbol]",s="[object ArrayBuffer]",l="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",h="[object Int8Array]",m="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",y="[object Uint8ClampedArray]",q="[object Uint16Array]",p="[object Uint32Array]";function T(I,C,P){var R=I.constructor;switch(C){case s:return r(I);case i:case o:return new R(+I);case l:return e(I,P);case d:case f:case h:case m:case O:case S:case y:case q:case p:return a(I,P);case u:return new R;case g:case c:return new R(I);case _:return t(I);case b:return new R;case v:return n(I)}}return va=T,va}var ya,Ks;function Wh(){if(Ks)return ya;Ks=1;var r=Cr(),e=Object.create,t=function(){function n(){}return function(a){if(!r(a))return{};if(e)return e(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}}();return ya=t,ya}var da,zs;function kh(){if(zs)return da;zs=1;var r=Wh(),e=Nc(),t=Di();function n(a){return typeof a.constructor=="function"&&!t(a)?r(e(a)):{}}return da=n,da}var ga,Ws;function Qh(){if(Ws)return ga;Ws=1;var r=de(),e=Pr(),t="[object Map]";function n(a){return e(a)&&r(a)==t}return ga=n,ga}var _a,ks;function Jh(){if(ks)return _a;ks=1;var r=Qh(),e=Mi(),t=xi(),n=t&&t.isMap,a=n?e(n):r;return _a=a,_a}var ba,Qs;function Xh(){if(Qs)return ba;Qs=1;var r=de(),e=Pr(),t="[object Set]";function n(a){return e(a)&&r(a)==t}return ba=n,ba}var ma,Js;function Yh(){if(Js)return ma;Js=1;var r=Xh(),e=Mi(),t=xi(),n=t&&t.isSet,a=n?e(n):r;return ma=a,ma}var Sa,Xs;function Zh(){if(Xs)return Sa;Xs=1;var r=ji(),e=Eh(),t=Bc(),n=Mh(),a=Fh(),i=Lh(),o=jh(),u=Bh(),g=Nh(),_=Cc(),b=Gh(),c=de(),v=Uh(),s=zh(),l=kh(),d=mr(),f=Pi(),h=Jh(),m=Cr(),O=Yh(),S=Yr(),y=be(),q=1,p=2,T=4,I="[object Arguments]",C="[object Array]",P="[object Boolean]",R="[object Date]",H="[object Error]",F="[object Function]",K="[object GeneratorFunction]",er="[object Map]",Q="[object Number]",E="[object Object]",Z="[object RegExp]",x="[object Set]",D="[object String]",B="[object Symbol]",M="[object WeakMap]",j="[object ArrayBuffer]",k="[object DataView]",V="[object Float32Array]",J="[object Float64Array]",nr="[object Int8Array]",z="[object Int16Array]",L="[object Int32Array]",U="[object Uint8Array]",$="[object Uint8ClampedArray]",X="[object Uint16Array]",Y="[object Uint32Array]",N={};N[I]=N[C]=N[j]=N[k]=N[P]=N[R]=N[V]=N[J]=N[nr]=N[z]=N[L]=N[er]=N[Q]=N[E]=N[Z]=N[x]=N[D]=N[B]=N[U]=N[$]=N[X]=N[Y]=!0,N[H]=N[F]=N[M]=!1;function tr(G,or,cr,gr,sr,fr){var ur,vr=or&q,Mr=or&p,qe=or&T;if(cr&&(ur=sr?cr(G,gr,sr,fr):cr(G)),ur!==void 0)return ur;if(!m(G))return G;var Nr=d(G);if(Nr){if(ur=v(G),!vr)return o(G,ur)}else{var Sr=c(G),qr=Sr==F||Sr==K;if(f(G))return i(G,vr);if(Sr==E||Sr==I||qr&&!sr){if(ur=Mr||qr?{}:l(G),!vr)return Mr?g(G,a(ur,G)):u(G,n(ur,G))}else{if(!N[Sr])return sr?G:{};ur=s(G,Sr,vr)}}fr||(fr=new r);var xr=fr.get(G);if(xr)return xr;fr.set(G,ur),O(G)?G.forEach(function(_r){ur.add(tr(_r,or,cr,_r,G,fr))}):h(G)&&G.forEach(function(_r,yr){ur.set(yr,tr(_r,or,cr,yr,G,fr))});var re=qe?Mr?b:_:Mr?y:S,ee=Nr?void 0:re(G);return e(ee||G,function(_r,yr){ee&&(yr=_r,_r=G[yr]),t(ur,yr,tr(_r,or,cr,yr,G,fr))}),ur}return Sa=tr,Sa}var qa,Ys;function rp(){if(Ys)return qa;Ys=1;var r=Zh(),e=4;function t(n){return r(n,e)}return qa=t,qa}var Zs;function ep(){if(Zs)return Lr;Zs=1;var r=Lr&&Lr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Lr,"__esModule",{value:!0});var e=r(Hc()),t=rp(),n=function(){function a(i,o){o===void 0&&(o={}),this._src=i,this._opts=o,this._opts.filters=t(e.default.DefaultOpts.filters)}return a.prototype.maxColorCount=function(i){return this._opts.colorCount=i,this},a.prototype.maxDimension=function(i){return this._opts.maxDimension=i,this},a.prototype.addFilter=function(i){return this._opts.filters.push(i),this},a.prototype.removeFilter=function(i){var o=this._opts.filters.indexOf(i);return o>0&&this._opts.filters.splice(o),this},a.prototype.clearFilters=function(){return this._opts.filters=[],this},a.prototype.quality=function(i){return this._opts.quality=i,this},a.prototype.useImageClass=function(i){return this._opts.ImageClass=i,this},a.prototype.useGenerator=function(i){return this._opts.generator=i,this},a.prototype.useQuantizer=function(i){return this._opts.quantizer=i,this},a.prototype.build=function(){return new e.default(this._src,this._opts)},a.prototype.getPalette=function(i){return this.build().getPalette(i)},a.prototype.getSwatches=function(i){return this.build().getPalette(i)},a}();return Lr.default=n,Lr}var Aa={},jr={},oe={},rf;function tp(){if(rf)return oe;rf=1,Object.defineProperty(oe,"__esModule",{value:!0});var r=ce(),e=function(){function t(n,a,i,o,u,g,_){this._volume=-1,this._count=-1,this.dimension={r1:n,r2:a,g1:i,g2:o,b1:u,b2:g},this.hist=_}return t.build=function(n,a){var i=1<<3*r.SIGBITS,o=new Uint32Array(i),u,g,_,b,c,v,s,l,d,f;u=_=c=0,g=b=v=Number.MAX_VALUE;for(var h=n.length/4,m=0;m<h;){var O=m*4;if(m++,s=n[O+0],l=n[O+1],d=n[O+2],f=n[O+3],f!==0){s=s>>r.RSHIFT,l=l>>r.RSHIFT,d=d>>r.RSHIFT;var S=r.getColorIndex(s,l,d);o[S]+=1,s>u&&(u=s),s<g&&(g=s),l>_&&(_=l),l<b&&(b=l),d>c&&(c=d),d<v&&(v=d)}}return new t(g,u,b,_,v,c,o)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(this._volume<0){var n=this.dimension,a=n.r1,i=n.r2,o=n.g1,u=n.g2,g=n.b1,_=n.b2;this._volume=(i-a+1)*(u-o+1)*(_-g+1)}return this._volume},t.prototype.count=function(){if(this._count<0){for(var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=i;v<=o;v++)for(var s=u;s<=g;s++)for(var l=_;l<=b;l++){var d=r.getColorIndex(v,s,l);c+=n[d]}this._count=c}return this._count},t.prototype.clone=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2;return new t(i,o,u,g,_,b,n)},t.prototype.avg=function(){if(!this._avg){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=1<<8-r.SIGBITS,s=void 0,l=void 0,d=void 0;s=l=d=0;for(var f=i;f<=o;f++)for(var h=u;h<=g;h++)for(var m=_;m<=b;m++){var O=r.getColorIndex(f,h,m),S=n[O];c+=S,s+=S*(f+.5)*v,l+=S*(h+.5)*v,d+=S*(m+.5)*v}c?this._avg=[~~(s/c),~~(l/c),~~(d/c)]:this._avg=[~~(v*(i+o+1)/2),~~(v*(u+g+1)/2),~~(v*(_+b+1)/2)]}return this._avg},t.prototype.contains=function(n){var a=n[0],i=n[1],o=n[2],u=this.dimension,g=u.r1,_=u.r2,b=u.g1,c=u.g2,v=u.b1,s=u.b2;return a>>=r.RSHIFT,i>>=r.RSHIFT,o>>=r.RSHIFT,a>=g&&a<=_&&i>=b&&i<=c&&o>=v&&o<=s},t.prototype.split=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=this.count();if(!c)return[];if(c===1)return[this.clone()];var v=o-i+1,s=g-u+1,l=b-_+1,d=Math.max(v,s,l),f=null,h,m;h=m=0;var O=null;if(d===v){O="r",f=new Uint32Array(o+1);for(var S=i;S<=o;S++){h=0;for(var y=u;y<=g;y++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[S]=m}}else if(d===s){O="g",f=new Uint32Array(g+1);for(var y=u;y<=g;y++){h=0;for(var S=i;S<=o;S++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[y]=m}}else{O="b",f=new Uint32Array(b+1);for(var q=_;q<=b;q++){h=0;for(var S=i;S<=o;S++)for(var y=u;y<=g;y++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[q]=m}}for(var T=-1,I=new Uint32Array(f.length),C=0;C<f.length;C++){var P=f[C];T<0&&P>m/2&&(T=C),I[C]=m-P}var R=this;function H(F){var K=F+"1",er=F+"2",Q=R.dimension[K],E=R.dimension[er],Z=R.clone(),x=R.clone(),D=T-Q,B=E-T;for(D<=B?(E=Math.min(E-1,~~(T+B/2)),E=Math.max(0,E)):(E=Math.max(Q,~~(T-1-D/2)),E=Math.min(R.dimension[er],E));!f[E];)E++;for(var M=I[E];!M&&f[E-1];)M=I[--E];return Z.dimension[er]=E,x.dimension[K]=E+1,[Z,x]}return H(O)},t}();return oe.default=e,oe}var ue={},ef;function np(){if(ef)return ue;ef=1,Object.defineProperty(ue,"__esModule",{value:!0});var r=function(){function e(t){this._comparator=t,this.contents=[],this._sorted=!1}return e.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},e.prototype.push=function(t){this.contents.push(t),this._sorted=!1},e.prototype.peek=function(t){return this._sort(),t=typeof t=="number"?t:this.contents.length-1,this.contents[t]},e.prototype.pop=function(){return this._sort(),this.contents.pop()},e.prototype.size=function(){return this.contents.length},e.prototype.map=function(t){return this._sort(),this.contents.map(t)},e}();return ue.default=r,ue}var tf;function ap(){if(tf)return jr;tf=1;var r=jr&&jr.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(jr,"__esModule",{value:!0});var e=Hi(),t=r(tp()),n=r(np()),a=.75;function i(g,_){for(var b=g.size();g.size()<_;){var c=g.pop();if(c&&c.count()>0){var v=c.split(),s=v[0],l=v[1];if(g.push(s),l&&l.count()>0&&g.push(l),g.size()===b)break;b=g.size()}else break}}var o=function(g,_){if(g.length===0||_.colorCount<2||_.colorCount>256)throw new Error("Wrong MMCQ parameters");var b=t.default.build(g),c=b.hist;Object.keys(c).length;var v=new n.default(function(l,d){return l.count()-d.count()});v.push(b),i(v,a*_.colorCount);var s=new n.default(function(l,d){return l.count()*l.volume()-d.count()*d.volume()});return s.contents=v.contents,i(s,_.colorCount-s.size()),u(s)};function u(g){for(var _=[];g.size();){var b=g.pop(),c=b.avg();c[0],c[1],c[2],_.push(new e.Swatch(c,b.count()))}return _}return jr.default=o,jr}var nf;function ip(){return nf||(nf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorker=void 0;var e=ap();Object.defineProperty(r,"MMCQ",{enumerable:!0,get:function(){return e.default}}),r.WebWorker=null}(Aa)),Aa}var wa={},se={},Oa,af;function op(){if(af)return Oa;af=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return Oa=r,Oa}var Ra,of;function up(){if(of)return Ra;of=1;var r=op(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,g=e(o.length-a,0),_=Array(g);++u<g;)_[u]=o[a+u];u=-1;for(var b=Array(a+1);++u<a;)b[u]=o[u];return b[a]=i(_),r(n,this,b)}}return Ra=t,Ra}var Ta,uf;function sp(){if(uf)return Ta;uf=1;function r(e){return function(){return e}}return Ta=r,Ta}var Ia,sf;function fp(){if(sf)return Ia;sf=1;var r=sp(),e=Lc(),t=Ui(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Ia=n,Ia}var Pa,ff;function cp(){if(ff)return Pa;ff=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),g=e-(u-o);if(o=u,g>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Pa=n,Pa}var Ca,cf;function lp(){if(cf)return Ca;cf=1;var r=fp(),e=cp(),t=e(r);return Ca=t,Ca}var Ea,lf;function hp(){if(lf)return Ea;lf=1;var r=Ui(),e=up(),t=lp();function n(a,i){return t(e(a,i,r),a+"")}return Ea=n,Ea}var Ma,hf;function pp(){if(hf)return Ma;hf=1;var r=Zr(),e=le(),t=Ci(),n=Cr();function a(i,o,u){if(!n(u))return!1;var g=typeof o;return(g=="number"?e(u)&&t(o,u.length):g=="string"&&o in u)?r(u[o],i):!1}return Ma=a,Ma}var xa,pf;function Uc(){if(pf)return xa;pf=1;var r=hp(),e=Zr(),t=pp(),n=be(),a=Object.prototype,i=a.hasOwnProperty,o=r(function(u,g){u=Object(u);var _=-1,b=g.length,c=b>2?g[2]:void 0;for(c&&t(g[0],g[1],c)&&(b=1);++_<b;)for(var v=g[_],s=n(v),l=-1,d=s.length;++l<d;){var f=s[l],h=u[f];(h===void 0||e(h,a[f])&&!i.call(u,f))&&(u[f]=v[f])}return u});return xa=o,xa}var vf;function vp(){if(vf)return se;vf=1,Object.defineProperty(se,"__esModule",{value:!0});var r=Hi(),e=ce(),t=Uc(),n={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function a(c){var v=0;return c.forEach(function(s){v=Math.max(v,s.getPopulation())}),v}function i(c,v){return c.Vibrant===v||c.DarkVibrant===v||c.LightVibrant===v||c.Muted===v||c.DarkMuted===v||c.LightMuted===v}function o(c,v,s,l,d,f,h){function m(){for(var S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];for(var q=0,p=0,T=0;T<S.length;T+=2){var I=S[T],C=S[T+1];q+=I*C,p+=C}return q/p}function O(S,y){return 1-Math.abs(S-y)}return m(O(c,v),h.weightSaturation,O(s,l),h.weightLuma,d/f,h.weightPopulation)}function u(c,v,s,l,d,f,h,m,O,S){var y=null,q=0;return v.forEach(function(p){var T=p.getHsl(),I=T[1],C=T[2];if(I>=m&&I<=O&&C>=d&&C<=f&&!i(c,p)){var P=o(I,h,C,l,p.getPopulation(),s,S);(y===null||P>q)&&(y=p,q=P)}}),y}function g(c,v,s){var l={};return l.Vibrant=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.LightVibrant=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.DarkVibrant=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.Muted=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.LightMuted=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.DarkMuted=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l}function _(c,v,s){if(c.Vibrant===null&&c.DarkVibrant===null&&c.LightVibrant===null){if(c.DarkVibrant===null&&c.DarkMuted!==null){var l=c.DarkMuted.getHsl(),d=l[0],f=l[1],h=l[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.LightMuted!==null){var m=c.LightMuted.getHsl(),d=m[0],f=m[1],h=m[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}}if(c.Vibrant===null&&c.DarkVibrant!==null){var O=c.DarkVibrant.getHsl(),d=O[0],f=O[1],h=O[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}else if(c.Vibrant===null&&c.LightVibrant!==null){var S=c.LightVibrant.getHsl(),d=S[0],f=S[1],h=S[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkVibrant===null&&c.Vibrant!==null){var y=c.Vibrant.getHsl(),d=y[0],f=y[1],h=y[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.Vibrant!==null){var q=c.Vibrant.getHsl(),d=q[0],f=q[1],h=q[2];h=s.targetLightLuma,c.LightVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.Muted===null&&c.Vibrant!==null){var p=c.Vibrant.getHsl(),d=p[0],f=p[1],h=p[2];h=s.targetMutesSaturation,c.Muted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkMuted===null&&c.DarkVibrant!==null){var T=c.DarkVibrant.getHsl(),d=T[0],f=T[1],h=T[2];h=s.targetMutesSaturation,c.DarkMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightMuted===null&&c.LightVibrant!==null){var I=c.LightVibrant.getHsl(),d=I[0],f=I[1],h=I[2];h=s.targetMutesSaturation,c.LightMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}}var b=function(c,v){v=t({},v,n);var s=a(c),l=g(c,s,v);return _(l,s,v),l};return se.default=b,se}var yf;function yp(){return yf||(yf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var e=vp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}})}(wa)),wa}var Da={},fe={},df;function dp(){if(df)return fe;df=1,Object.defineProperty(fe,"__esModule",{value:!0});function r(e,t,n,a){return a>=125&&!(e>250&&t>250&&n>250)}return fe.default=r,fe}var gf;function gp(){return gf||(gf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineFilters=void 0;var e=dp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}});function t(n){return!Array.isArray(n)||n.length===0?null:function(a,i,o,u){if(u===0)return!1;for(var g=0;g<n.length;g++)if(!n[g](a,i,o,u))return!1;return!0}}r.combineFilters=t}(Da)),Da}var _f;function Hc(){if(_f)return hr;_f=1;var r=hr&&hr.__createBinding||(Object.create?function(v,s,l,d){d===void 0&&(d=l),Object.defineProperty(v,d,{enumerable:!0,get:function(){return s[l]}})}:function(v,s,l,d){d===void 0&&(d=l),v[d]=s[l]}),e=hr&&hr.__setModuleDefault||(Object.create?function(v,s){Object.defineProperty(v,"default",{enumerable:!0,value:s})}:function(v,s){v.default=s}),t=hr&&hr.__importStar||function(v){if(v&&v.__esModule)return v;var s={};if(v!=null)for(var l in v)l!=="default"&&Object.hasOwnProperty.call(v,l)&&r(s,v,l);return e(s,v),s},n=hr&&hr.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(hr,"__esModule",{value:!0});var a=Hi(),i=n(ep()),o=t(ce()),u=t(ip()),g=t(yp()),_=t(gp()),b=Uc(),c=function(){function v(s,l){this._src=s,this.opts=b({},l,v.DefaultOpts),this.opts.combinedFilter=_.combineFilters(this.opts.filters)}return v.from=function(s){return new i.default(s)},v.prototype._process=function(s,l){var d=l.quantizer,f=l.generator;return s.scaleDown(l),s.applyFilter(l.combinedFilter).then(function(h){return d(h.data,l)}).then(function(h){return a.Swatch.applyFilter(h,l.combinedFilter)}).then(function(h){return Promise.resolve(f(h))})},v.prototype.palette=function(){return this.swatches()},v.prototype.swatches=function(){return this._palette},v.prototype.getPalette=function(s){var l=this,d=new this.opts.ImageClass,f=d.load(this._src).then(function(h){return l._process(h,l.opts)}).then(function(h){return l._palette=h,d.remove(),h},function(h){throw d.remove(),h});return s&&f.then(function(h){return s(null,h)},function(h){return s(h)}),f},v.Builder=i.default,v.Quantizer=u,v.Generator=g,v.Filter=_,v.Util=o,v.Swatch=a.Swatch,v.DefaultOpts={colorCount:64,quality:5,generator:g.Default,ImageClass:null,quantizer:u.MMCQ,filters:[_.Default]},v}();return hr.default=c,hr}var pr={},Hr={},bf;function _p(){if(bf)return Hr;bf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.ImageBase=void 0;var r=function(){function e(){}return e.prototype.scaleDown=function(t){var n=this.getWidth(),a=this.getHeight(),i=1;if(t.maxDimension>0){var o=Math.max(n,a);o>t.maxDimension&&(i=t.maxDimension/o)}else i=1/t.quality;i<1&&this.resize(n*i,a*i,i)},e.prototype.applyFilter=function(t){var n=this.getImageData();if(typeof t=="function")for(var a=n.data,i=a.length/4,o=void 0,u=void 0,g=void 0,_=void 0,b=void 0,c=0;c<i;c++)o=c*4,u=a[o+0],g=a[o+1],_=a[o+2],b=a[o+3],t(u,g,_,b)||(a[o+3]=0);return Promise.resolve(n)},e}();return Hr.ImageBase=r,Hr}var Ir={},kr={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var bp=kr.exports,mf;function mp(){return mf||(mf=1,function(r,e){(function(t){var n=e&&!e.nodeType&&e,a=r&&!r.nodeType&&r,i=typeof Rr=="object"&&Rr;(i.global===i||i.window===i||i.self===i)&&(t=i);var o,u=2147483647,g=36,_=1,b=26,c=38,v=700,s=72,l=128,d="-",f=/^xn--/,h=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=g-_,y=Math.floor,q=String.fromCharCode,p;function T(x){throw new RangeError(O[x])}function I(x,D){for(var B=x.length,M=[];B--;)M[B]=D(x[B]);return M}function C(x,D){var B=x.split("@"),M="";B.length>1&&(M=B[0]+"@",x=B[1]),x=x.replace(m,".");var j=x.split("."),k=I(j,D).join(".");return M+k}function P(x){for(var D=[],B=0,M=x.length,j,k;B<M;)j=x.charCodeAt(B++),j>=55296&&j<=56319&&B<M?(k=x.charCodeAt(B++),(k&64512)==56320?D.push(((j&1023)<<10)+(k&1023)+65536):(D.push(j),B--)):D.push(j);return D}function R(x){return I(x,function(D){var B="";return D>65535&&(D-=65536,B+=q(D>>>10&1023|55296),D=56320|D&1023),B+=q(D),B}).join("")}function H(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g}function F(x,D){return x+22+75*(x<26)-((D!=0)<<5)}function K(x,D,B){var M=0;for(x=B?y(x/v):x>>1,x+=y(x/D);x>S*b>>1;M+=g)x=y(x/S);return y(M+(S+1)*x/(x+c))}function er(x){var D=[],B=x.length,M,j=0,k=l,V=s,J,nr,z,L,U,$,X,Y,N;for(J=x.lastIndexOf(d),J<0&&(J=0),nr=0;nr<J;++nr)x.charCodeAt(nr)>=128&&T("not-basic"),D.push(x.charCodeAt(nr));for(z=J>0?J+1:0;z<B;){for(L=j,U=1,$=g;z>=B&&T("invalid-input"),X=H(x.charCodeAt(z++)),(X>=g||X>y((u-j)/U))&&T("overflow"),j+=X*U,Y=$<=V?_:$>=V+b?b:$-V,!(X<Y);$+=g)N=g-Y,U>y(u/N)&&T("overflow"),U*=N;M=D.length+1,V=K(j-L,M,L==0),y(j/M)>u-k&&T("overflow"),k+=y(j/M),j%=M,D.splice(j++,0,k)}return R(D)}function Q(x){var D,B,M,j,k,V,J,nr,z,L,U,$=[],X,Y,N,tr;for(x=P(x),X=x.length,D=l,B=0,k=s,V=0;V<X;++V)U=x[V],U<128&&$.push(q(U));for(M=j=$.length,j&&$.push(d);M<X;){for(J=u,V=0;V<X;++V)U=x[V],U>=D&&U<J&&(J=U);for(Y=M+1,J-D>y((u-B)/Y)&&T("overflow"),B+=(J-D)*Y,D=J,V=0;V<X;++V)if(U=x[V],U<D&&++B>u&&T("overflow"),U==D){for(nr=B,z=g;L=z<=k?_:z>=k+b?b:z-k,!(nr<L);z+=g)tr=nr-L,N=g-L,$.push(q(F(L+tr%N,0))),nr=y(tr/N);$.push(q(F(nr,0))),k=K(B,Y,M==j),B=0,++M}++B,++D}return $.join("")}function E(x){return C(x,function(D){return f.test(D)?er(D.slice(4).toLowerCase()):D})}function Z(x){return C(x,function(D){return h.test(D)?"xn--"+Q(D):D})}if(o={version:"1.4.1",ucs2:{decode:P,encode:R},decode:er,encode:Q,toASCII:Z,toUnicode:E},n&&a)if(r.exports==n)a.exports=o;else for(p in o)o.hasOwnProperty(p)&&(n[p]=o[p]);else t.punycode=o})(bp)}(kr,kr.exports)),kr.exports}var Fa,Sf;function Br(){return Sf||(Sf=1,Fa=TypeError),Fa}var La,qf;function me(){if(qf)return La;qf=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,u=a&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,_=g?WeakMap.prototype.has:null,b=typeof WeakSet=="function"&&WeakSet.prototype,c=b?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,s=v?WeakRef.prototype.deref:null,l=Boolean.prototype.valueOf,d=Object.prototype.toString,f=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,O=String.prototype.replace,S=String.prototype.toUpperCase,y=String.prototype.toLowerCase,q=RegExp.prototype.test,p=Array.prototype.concat,T=Array.prototype.join,I=Array.prototype.slice,C=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||!0)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,Q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function E(A,w){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||q.call(/e/,w))return w;var rr=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var ar=A<0?-C(-A):C(A);if(ar!==A){var ir=String(ar),W=m.call(w,ir.length+1);return O.call(ir,rr,"$&_")+"."+O.call(O.call(W,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(w,rr,"$&_")}var Z=il,x=Z.custom,D=Y(x)?x:null,B={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};La=function A(w,rr,ar,ir){var W=rr||{};if(G(W,"quoteStyle")&&!G(B,W.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(W,"maxStringLength")&&(typeof W.maxStringLength=="number"?W.maxStringLength<0&&W.maxStringLength!==1/0:W.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ar=G(W,"customInspect")?W.customInspect:!0;if(typeof Ar!="boolean"&&Ar!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(W,"indent")&&W.indent!==null&&W.indent!==" "&&!(parseInt(W.indent,10)===W.indent&&W.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(W,"numericSeparator")&&typeof W.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Tr=W.numericSeparator;if(typeof w>"u")return"undefined";if(w===null)return"null";if(typeof w=="boolean")return w?"true":"false";if(typeof w=="string")return Nr(w,W);if(typeof w=="number"){if(w===0)return 1/0/w>0?"0":"-0";var lr=String(w);return Tr?E(w,lr):lr}if(typeof w=="bigint"){var wr=String(w)+"n";return Tr?E(w,wr):wr}var Ae=typeof W.depth>"u"?5:W.depth;if(typeof ar>"u"&&(ar=0),ar>=Ae&&Ae>0&&typeof w=="object")return J(w)?"[Array]":"[Object]";var Dr=_r(W,ar);if(typeof ir>"u")ir=[];else if(gr(ir,w)>=0)return"[Circular]";function dr(Fr,ae,Zc){if(ae&&(ir=I.call(ir),ir.push(ae)),Zc){var ro={depth:W.depth};return G(W,"quoteStyle")&&(ro.quoteStyle=W.quoteStyle),A(Fr,ro,ar+1,ir)}return A(Fr,W,ar+1,ir)}if(typeof w=="function"&&!z(w)){var Wi=cr(w),ki=te(w,dr);return"[Function"+(Wi?": "+Wi:" (anonymous)")+"]"+(ki.length>0?" { "+T.call(ki,", ")+" }":"")}if(Y(w)){var Qi=F?O.call(String(w),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(w);return typeof w=="object"&&!F?qr(Qi):Qi}if(qe(w)){for(var Gr="<"+y.call(String(w.nodeName)),we=w.attributes||[],ne=0;ne<we.length;ne++)Gr+=" "+we[ne].name+"="+j(k(we[ne].value),"double",W);return Gr+=">",w.childNodes&&w.childNodes.length&&(Gr+="..."),Gr+="</"+y.call(String(w.nodeName))+">",Gr}if(J(w)){if(w.length===0)return"[]";var Oe=te(w,dr);return Dr&&!ee(Oe)?"["+yr(Oe,Dr)+"]":"[ "+T.call(Oe,", ")+" ]"}if(L(w)){var Re=te(w,dr);return!("cause"in Error.prototype)&&"cause"in w&&!er.call(w,"cause")?"{ ["+String(w)+"] "+T.call(p.call("[cause]: "+dr(w.cause),Re),", ")+" }":Re.length===0?"["+String(w)+"]":"{ ["+String(w)+"] "+T.call(Re,", ")+" }"}if(typeof w=="object"&&Ar){if(D&&typeof w[D]=="function"&&Z)return Z(w,{depth:Ae-ar});if(Ar!=="symbol"&&typeof w.inspect=="function")return w.inspect()}if(sr(w)){var Ji=[];return n&&n.call(w,function(Fr,ae){Ji.push(dr(ae,w,!0)+" => "+dr(Fr,w))}),re("Map",t.call(w),Ji,Dr)}if(vr(w)){var Xi=[];return u&&u.call(w,function(Fr){Xi.push(dr(Fr,w))}),re("Set",o.call(w),Xi,Dr)}if(fr(w))return xr("WeakMap");if(Mr(w))return xr("WeakSet");if(ur(w))return xr("WeakRef");if($(w))return qr(dr(Number(w)));if(N(w))return qr(dr(P.call(w)));if(X(w))return qr(l.call(w));if(U(w))return qr(dr(String(w)));if(typeof window<"u"&&w===window)return"{ [object Window] }";if(typeof globalThis<"u"&&w===globalThis||typeof Rr<"u"&&w===Rr)return"{ [object globalThis] }";if(!nr(w)&&!z(w)){var Te=te(w,dr),Yi=Q?Q(w)===Object.prototype:w instanceof Object||w.constructor===Object,Ie=w instanceof Object?"":"null prototype",Zi=!Yi&&K&&Object(w)===w&&K in w?m.call(or(w),8,-1):Ie?"Object":"",Yc=Yi||typeof w.constructor!="function"?"":w.constructor.name?w.constructor.name+" ":"",Pe=Yc+(Zi||Ie?"["+T.call(p.call([],Zi||[],Ie||[]),": ")+"] ":"");return Te.length===0?Pe+"{}":Dr?Pe+"{"+yr(Te,Dr)+"}":Pe+"{ "+T.call(Te,", ")+" }"}return String(w)};function j(A,w,rr){var ar=rr.quoteStyle||w,ir=B[ar];return ir+A+ir}function k(A){return O.call(String(A),/"/g,"&quot;")}function V(A){return!K||!(typeof A=="object"&&(K in A||typeof A[K]<"u"))}function J(A){return or(A)==="[object Array]"&&V(A)}function nr(A){return or(A)==="[object Date]"&&V(A)}function z(A){return or(A)==="[object RegExp]"&&V(A)}function L(A){return or(A)==="[object Error]"&&V(A)}function U(A){return or(A)==="[object String]"&&V(A)}function $(A){return or(A)==="[object Number]"&&V(A)}function X(A){return or(A)==="[object Boolean]"&&V(A)}function Y(A){if(F)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!H)return!1;try{return H.call(A),!0}catch{}return!1}function N(A){if(!A||typeof A!="object"||!P)return!1;try{return P.call(A),!0}catch{}return!1}var tr=Object.prototype.hasOwnProperty||function(A){return A in this};function G(A,w){return tr.call(A,w)}function or(A){return d.call(A)}function cr(A){if(A.name)return A.name;var w=h.call(f.call(A),/^function\s*([\w$]+)/);return w?w[1]:null}function gr(A,w){if(A.indexOf)return A.indexOf(w);for(var rr=0,ar=A.length;rr<ar;rr++)if(A[rr]===w)return rr;return-1}function sr(A){if(!t||!A||typeof A!="object")return!1;try{t.call(A);try{o.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function fr(A){if(!_||!A||typeof A!="object")return!1;try{_.call(A,_);try{c.call(A,c)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function ur(A){if(!s||!A||typeof A!="object")return!1;try{return s.call(A),!0}catch{}return!1}function vr(A){if(!o||!A||typeof A!="object")return!1;try{o.call(A);try{t.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function Mr(A){if(!c||!A||typeof A!="object")return!1;try{c.call(A,c);try{_.call(A,_)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function qe(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function Nr(A,w){if(A.length>w.maxStringLength){var rr=A.length-w.maxStringLength,ar="... "+rr+" more character"+(rr>1?"s":"");return Nr(m.call(A,0,w.maxStringLength),w)+ar}var ir=M[w.quoteStyle||"single"];ir.lastIndex=0;var W=O.call(O.call(A,ir,"\\$1"),/[\x00-\x1f]/g,Sr);return j(W,"single",w)}function Sr(A){var w=A.charCodeAt(0),rr={8:"b",9:"t",10:"n",12:"f",13:"r"}[w];return rr?"\\"+rr:"\\x"+(w<16?"0":"")+S.call(w.toString(16))}function qr(A){return"Object("+A+")"}function xr(A){return A+" { ? }"}function re(A,w,rr,ar){var ir=ar?yr(rr,ar):T.call(rr,", ");return A+" ("+w+") {"+ir+"}"}function ee(A){for(var w=0;w<A.length;w++)if(gr(A[w],`
1
+ import{t as Ii,a as Ce,f as Ee,r as eo}from"./qSIFE6bv.js";import{v as yc,u as Ri,I as Vr,J as Ti,z as rl,o as Or,B as el,A as tl,x as Me,y as dc}from"./CDVeMiAl.js";import{i as to,p as Qr,b as ie,s as nl,a as no}from"./CvUX3i4L.js";import{s as al,e as ao,n as Rr,r as il,g as ol,m as ul,f as sl}from"./D5aAvvqP.js";var fl=Ii('<img class="full svelte-1nicoyy" alt="">'),cl=Ii('<img class="low svelte-1nicoyy" alt="">'),ll=Ii("<span><!> <!></span>");function ov(r,e){yc(e,!0);const t={INITIAL:0,LOAD:1,FULL:2,COMPLETE:3};let n=Ti(void 0);function a(){Or(n)===t.INITIAL&&Vr(n,Qr(t.LOAD))}function i(){Vr(n,Qr(t.FULL))}let o=Ti(!1);Ri(()=>{setTimeout(()=>{Vr(o,!0)},50)});var u=ll();let g;var _=rl(u);{var b=s=>{var l=fl();Me(()=>ao(l,"src",e.full)),Ee("load",l,i),Ee("transitionend",l,()=>Vr(n,Qr(t.COMPLETE))),eo(l),Ce(s,l)};to(_,s=>{Or(n)!==t.INITIAL&&Or(o)&&s(b)})}var c=el(_,2);{var v=s=>{var l=cl();Me(()=>ao(l,"src",e.low)),Ee("load",l,a),eo(l),Ce(s,l)};to(c,s=>{Or(n)!==t.COMPLETE&&s(v)})}tl(u),Me(s=>g=al(u,1,"image svelte-1nicoyy",null,g,s),[()=>({display:(Or(n)===t.FULL||Or(n)===t.COMPLETE)&&Or(o)})]),Ce(r,u),dc()}var hr={},Ur={},xe={},io;function ce(){return io||(io=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.getColorIndex=r.getColorDiffStatus=r.hexDiff=r.rgbDiff=r.deltaE94=r.rgbToCIELab=r.xyzToCIELab=r.rgbToXyz=r.hslToRgb=r.rgbToHsl=r.rgbToHex=r.hexToRgb=r.defer=r.RSHIFT=r.SIGBITS=r.DELTAE94_DIFF_STATUS=void 0,r.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},r.SIGBITS=5,r.RSHIFT=8-r.SIGBITS;function e(){var l,d,f=new Promise(function(h,m){l=h,d=m});return{resolve:l,reject:d,promise:f}}r.defer=e;function t(l){var d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l);return d===null?null:[d[1],d[2],d[3]].map(function(f){return parseInt(f,16)})}r.hexToRgb=t;function n(l,d,f){return"#"+((1<<24)+(l<<16)+(d<<8)+f).toString(16).slice(1,7)}r.rgbToHex=n;function a(l,d,f){l/=255,d/=255,f/=255;var h=Math.max(l,d,f),m=Math.min(l,d,f),O,S,y=(h+m)/2;if(h===m)O=S=0;else{var q=h-m;switch(S=y>.5?q/(2-h-m):q/(h+m),h){case l:O=(d-f)/q+(d<f?6:0);break;case d:O=(f-l)/q+2;break;case f:O=(l-d)/q+4;break}O/=6}return[O,S,y]}r.rgbToHsl=a;function i(l,d,f){var h,m,O;function S(p,T,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?p+(T-p)*6*I:I<1/2?T:I<2/3?p+(T-p)*(2/3-I)*6:p}if(d===0)h=m=O=f;else{var y=f<.5?f*(1+d):f+d-f*d,q=2*f-y;h=S(q,y,l+1/3),m=S(q,y,l),O=S(q,y,l-1/3)}return[h*255,m*255,O*255]}r.hslToRgb=i;function o(l,d,f){l/=255,d/=255,f/=255,l=l>.04045?Math.pow((l+.005)/1.055,2.4):l/12.92,d=d>.04045?Math.pow((d+.005)/1.055,2.4):d/12.92,f=f>.04045?Math.pow((f+.005)/1.055,2.4):f/12.92,l*=100,d*=100,f*=100;var h=l*.4124+d*.3576+f*.1805,m=l*.2126+d*.7152+f*.0722,O=l*.0193+d*.1192+f*.9505;return[h,m,O]}r.rgbToXyz=o;function u(l,d,f){var h=95.047,m=100,O=108.883;l/=h,d/=m,f/=O,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116;var S=116*d-16,y=500*(l-d),q=200*(d-f);return[S,y,q]}r.xyzToCIELab=u;function g(l,d,f){var h=o(l,d,f),m=h[0],O=h[1],S=h[2];return u(m,O,S)}r.rgbToCIELab=g;function _(l,d){var f=1,h=1,m=1,O=l[0],S=l[1],y=l[2],q=d[0],p=d[1],T=d[2],I=O-q,C=S-p,P=y-T,R=Math.sqrt(S*S+y*y),H=Math.sqrt(p*p+T*T),F=q-O,K=H-R,er=Math.sqrt(I*I+C*C+P*P),Q=Math.sqrt(er)>Math.sqrt(Math.abs(F))+Math.sqrt(Math.abs(K))?Math.sqrt(er*er-F*F-K*K):0,E=1+.045*R,Z=1+.015*R;return F/=f,K/=h*E,Q/=m*Z,Math.sqrt(F*F+K*K+Q*Q)}r.deltaE94=_;function b(l,d){var f=g.apply(void 0,l),h=g.apply(void 0,d);return _(f,h)}r.rgbDiff=b;function c(l,d){var f=t(l),h=t(d);return b(f,h)}r.hexDiff=c;function v(l){return l<r.DELTAE94_DIFF_STATUS.NA?"N/A":l<=r.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":l<=r.DELTAE94_DIFF_STATUS.CLOSE?"Close":l<=r.DELTAE94_DIFF_STATUS.GOOD?"Good":l<r.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"}r.getColorDiffStatus=v;function s(l,d,f){return(l<<2*r.SIGBITS)+(d<<r.SIGBITS)+f}r.getColorIndex=s}(xe)),xe}var De,oo;function gc(){if(oo)return De;oo=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,o=[];++n<a;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o}return De=r,De}var Fe,uo;function hl(){if(uo)return Fe;uo=1;function r(e){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),g=u.length;g--;){var _=u[e?g:++i];if(n(o[_],_,o)===!1)break}return t}}return Fe=r,Fe}var Le,so;function pl(){if(so)return Le;so=1;var r=hl(),e=r();return Le=e,Le}var je,fo;function vl(){if(fo)return je;fo=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return je=r,je}var Be,co;function _c(){if(co)return Be;co=1;var r=typeof Rr=="object"&&Rr&&Rr.Object===Object&&Rr;return Be=r,Be}var Ne,lo;function br(){if(lo)return Ne;lo=1;var r=_c(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ne=t,Ne}var Ge,ho;function Jr(){if(ho)return Ge;ho=1;var r=br(),e=r.Symbol;return Ge=e,Ge}var Ue,po;function yl(){if(po)return Ue;po=1;var r=Jr(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(o){var u=t.call(o,a),g=o[a];try{o[a]=void 0;var _=!0}catch{}var b=n.call(o);return _&&(u?o[a]=g:delete o[a]),b}return Ue=i,Ue}var He,vo;function dl(){if(vo)return He;vo=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return He=t,He}var $e,yo;function Xr(){if(yo)return $e;yo=1;var r=Jr(),e=yl(),t=dl(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?e(u):t(u)}return $e=o,$e}var Ve,go;function Pr(){if(go)return Ve;go=1;function r(e){return e!=null&&typeof e=="object"}return Ve=r,Ve}var Ke,_o;function gl(){if(_o)return Ke;_o=1;var r=Xr(),e=Pr(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Ke=n,Ke}var ze,bo;function bc(){if(bo)return ze;bo=1;var r=gl(),e=Pr(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r(function(){return arguments}())?r:function(o){return e(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return ze=i,ze}var We,mo;function mr(){if(mo)return We;mo=1;var r=Array.isArray;return We=r,We}var Kr={exports:{}},ke,So;function _l(){if(So)return ke;So=1;function r(){return!1}return ke=r,ke}Kr.exports;var qo;function Pi(){return qo||(qo=1,function(r,e){var t=br(),n=_l(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,u=o?t.Buffer:void 0,g=u?u.isBuffer:void 0,_=g||n;r.exports=_}(Kr,Kr.exports)),Kr.exports}var Qe,Ao;function Ci(){if(Ao)return Qe;Ao=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Qe=t,Qe}var Je,wo;function Ei(){if(wo)return Je;wo=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Je=e,Je}var Xe,Oo;function bl(){if(Oo)return Xe;Oo=1;var r=Xr(),e=Ei(),t=Pr(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",g="[object Function]",_="[object Map]",b="[object Number]",c="[object Object]",v="[object RegExp]",s="[object Set]",l="[object String]",d="[object WeakMap]",f="[object ArrayBuffer]",h="[object DataView]",m="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",y="[object Int16Array]",q="[object Int32Array]",p="[object Uint8Array]",T="[object Uint8ClampedArray]",I="[object Uint16Array]",C="[object Uint32Array]",P={};P[m]=P[O]=P[S]=P[y]=P[q]=P[p]=P[T]=P[I]=P[C]=!0,P[n]=P[a]=P[f]=P[i]=P[h]=P[o]=P[u]=P[g]=P[_]=P[b]=P[c]=P[v]=P[s]=P[l]=P[d]=!1;function R(H){return t(H)&&e(H.length)&&!!P[r(H)]}return Xe=R,Xe}var Ye,Ro;function Mi(){if(Ro)return Ye;Ro=1;function r(e){return function(t){return e(t)}}return Ye=r,Ye}var zr={exports:{}};zr.exports;var To;function xi(){return To||(To=1,function(r,e){var t=_c(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var g=a&&a.require&&a.require("util").types;return g||o&&o.binding&&o.binding("util")}catch{}}();r.exports=u}(zr,zr.exports)),zr.exports}var Ze,Io;function mc(){if(Io)return Ze;Io=1;var r=bl(),e=Mi(),t=xi(),n=t&&t.isTypedArray,a=n?e(n):r;return Ze=a,Ze}var rt,Po;function Sc(){if(Po)return rt;Po=1;var r=vl(),e=bc(),t=mr(),n=Pi(),a=Ci(),i=mc(),o=Object.prototype,u=o.hasOwnProperty;function g(_,b){var c=t(_),v=!c&&e(_),s=!c&&!v&&n(_),l=!c&&!v&&!s&&i(_),d=c||v||s||l,f=d?r(_.length,String):[],h=f.length;for(var m in _)(b||u.call(_,m))&&!(d&&(m=="length"||s&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||a(m,h)))&&f.push(m);return f}return rt=g,rt}var et,Co;function Di(){if(Co)return et;Co=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return et=e,et}var tt,Eo;function qc(){if(Eo)return tt;Eo=1;function r(e,t){return function(n){return e(t(n))}}return tt=r,tt}var nt,Mo;function ml(){if(Mo)return nt;Mo=1;var r=qc(),e=r(Object.keys,Object);return nt=e,nt}var at,xo;function Sl(){if(xo)return at;xo=1;var r=Di(),e=ml(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return at=a,at}var it,Do;function Cr(){if(Do)return it;Do=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return it=r,it}var ot,Fo;function Ac(){if(Fo)return ot;Fo=1;var r=Xr(),e=Cr(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!e(u))return!1;var g=r(u);return g==n||g==a||g==t||g==i}return ot=o,ot}var ut,Lo;function le(){if(Lo)return ut;Lo=1;var r=Ac(),e=Ei();function t(n){return n!=null&&e(n.length)&&!r(n)}return ut=t,ut}var st,jo;function Yr(){if(jo)return st;jo=1;var r=Sc(),e=Sl(),t=le();function n(a){return t(a)?r(a):e(a)}return st=n,st}var ft,Bo;function ql(){if(Bo)return ft;Bo=1;var r=pl(),e=Yr();function t(n,a){return n&&r(n,a,e)}return ft=t,ft}var ct,No;function Al(){if(No)return ct;No=1;var r=le();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var o=a.length,u=n?o:-1,g=Object(a);(n?u--:++u<o)&&i(g[u],u,g)!==!1;);return a}}return ct=e,ct}var lt,Go;function wl(){if(Go)return lt;Go=1;var r=ql(),e=Al(),t=e(r);return lt=t,lt}var ht,Uo;function Ol(){if(Uo)return ht;Uo=1;var r=wl();function e(t,n){var a=[];return r(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return ht=e,ht}var pt,Ho;function Rl(){if(Ho)return pt;Ho=1;function r(){this.__data__=[],this.size=0}return pt=r,pt}var vt,$o;function Zr(){if($o)return vt;$o=1;function r(e,t){return e===t||e!==e&&t!==t}return vt=r,vt}var yt,Vo;function he(){if(Vo)return yt;Vo=1;var r=Zr();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return yt=e,yt}var dt,Ko;function Tl(){if(Ko)return dt;Ko=1;var r=he(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var u=i.length-1;return o==u?i.pop():t.call(i,o,1),--this.size,!0}return dt=n,dt}var gt,zo;function Il(){if(zo)return gt;zo=1;var r=he();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return gt=e,gt}var _t,Wo;function Pl(){if(Wo)return _t;Wo=1;var r=he();function e(t){return r(this.__data__,t)>-1}return _t=e,_t}var bt,ko;function Cl(){if(ko)return bt;ko=1;var r=he();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return bt=e,bt}var mt,Qo;function pe(){if(Qo)return mt;Qo=1;var r=Rl(),e=Tl(),t=Il(),n=Pl(),a=Cl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,mt=i,mt}var St,Jo;function El(){if(Jo)return St;Jo=1;var r=pe();function e(){this.__data__=new r,this.size=0}return St=e,St}var qt,Xo;function Ml(){if(Xo)return qt;Xo=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return qt=r,qt}var At,Yo;function xl(){if(Yo)return At;Yo=1;function r(e){return this.__data__.get(e)}return At=r,At}var wt,Zo;function Dl(){if(Zo)return wt;Zo=1;function r(e){return this.__data__.has(e)}return wt=r,wt}var Ot,ru;function Fl(){if(ru)return Ot;ru=1;var r=br(),e=r["__core-js_shared__"];return Ot=e,Ot}var Rt,eu;function Ll(){if(eu)return Rt;eu=1;var r=Fl(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Rt=t,Rt}var Tt,tu;function wc(){if(tu)return Tt;tu=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Tt=t,Tt}var It,nu;function jl(){if(nu)return It;nu=1;var r=Ac(),e=Ll(),t=Cr(),n=wc(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,g=o.toString,_=u.hasOwnProperty,b=RegExp("^"+g.call(_).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(v){if(!t(v)||e(v))return!1;var s=r(v)?b:i;return s.test(n(v))}return It=c,It}var Pt,au;function Bl(){if(au)return Pt;au=1;function r(e,t){return e==null?void 0:e[t]}return Pt=r,Pt}var Ct,iu;function Er(){if(iu)return Ct;iu=1;var r=jl(),e=Bl();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return Ct=t,Ct}var Et,ou;function Fi(){if(ou)return Et;ou=1;var r=Er(),e=br(),t=r(e,"Map");return Et=t,Et}var Mt,uu;function ve(){if(uu)return Mt;uu=1;var r=Er(),e=r(Object,"create");return Mt=e,Mt}var xt,su;function Nl(){if(su)return xt;su=1;var r=ve();function e(){this.__data__=r?r(null):{},this.size=0}return xt=e,xt}var Dt,fu;function Gl(){if(fu)return Dt;fu=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Dt=r,Dt}var Ft,cu;function Ul(){if(cu)return Ft;cu=1;var r=ve(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(r){var u=o[i];return u===e?void 0:u}return n.call(o,i)?o[i]:void 0}return Ft=a,Ft}var Lt,lu;function Hl(){if(lu)return Lt;lu=1;var r=ve(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return Lt=n,Lt}var jt,hu;function $l(){if(hu)return jt;hu=1;var r=ve(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return jt=t,jt}var Bt,pu;function Vl(){if(pu)return Bt;pu=1;var r=Nl(),e=Gl(),t=Ul(),n=Hl(),a=$l();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,Bt=i,Bt}var Nt,vu;function Kl(){if(vu)return Nt;vu=1;var r=Vl(),e=pe(),t=Fi();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Nt=n,Nt}var Gt,yu;function zl(){if(yu)return Gt;yu=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Gt=r,Gt}var Ut,du;function ye(){if(du)return Ut;du=1;var r=zl();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Ut=e,Ut}var Ht,gu;function Wl(){if(gu)return Ht;gu=1;var r=ye();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Ht=e,Ht}var $t,_u;function kl(){if(_u)return $t;_u=1;var r=ye();function e(t){return r(this,t).get(t)}return $t=e,$t}var Vt,bu;function Ql(){if(bu)return Vt;bu=1;var r=ye();function e(t){return r(this,t).has(t)}return Vt=e,Vt}var Kt,mu;function Jl(){if(mu)return Kt;mu=1;var r=ye();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Kt=e,Kt}var zt,Su;function Li(){if(Su)return zt;Su=1;var r=Kl(),e=Wl(),t=kl(),n=Ql(),a=Jl();function i(o){var u=-1,g=o==null?0:o.length;for(this.clear();++u<g;){var _=o[u];this.set(_[0],_[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,zt=i,zt}var Wt,qu;function Xl(){if(qu)return Wt;qu=1;var r=pe(),e=Fi(),t=Li(),n=200;function a(i,o){var u=this.__data__;if(u instanceof r){var g=u.__data__;if(!e||g.length<n-1)return g.push([i,o]),this.size=++u.size,this;u=this.__data__=new t(g)}return u.set(i,o),this.size=u.size,this}return Wt=a,Wt}var kt,Au;function ji(){if(Au)return kt;Au=1;var r=pe(),e=El(),t=Ml(),n=xl(),a=Dl(),i=Xl();function o(u){var g=this.__data__=new r(u);this.size=g.size}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,kt=o,kt}var Qt,wu;function Yl(){if(wu)return Qt;wu=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Qt=e,Qt}var Jt,Ou;function Zl(){if(Ou)return Jt;Ou=1;function r(e){return this.__data__.has(e)}return Jt=r,Jt}var Xt,Ru;function rh(){if(Ru)return Xt;Ru=1;var r=Li(),e=Yl(),t=Zl();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Xt=n,Xt}var Yt,Tu;function eh(){if(Tu)return Yt;Tu=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Yt=r,Yt}var Zt,Iu;function th(){if(Iu)return Zt;Iu=1;function r(e,t){return e.has(t)}return Zt=r,Zt}var rn,Pu;function Oc(){if(Pu)return rn;Pu=1;var r=rh(),e=eh(),t=th(),n=1,a=2;function i(o,u,g,_,b,c){var v=g&n,s=o.length,l=u.length;if(s!=l&&!(v&&l>s))return!1;var d=c.get(o),f=c.get(u);if(d&&f)return d==u&&f==o;var h=-1,m=!0,O=g&a?new r:void 0;for(c.set(o,u),c.set(u,o);++h<s;){var S=o[h],y=u[h];if(_)var q=v?_(y,S,h,u,o,c):_(S,y,h,o,u,c);if(q!==void 0){if(q)continue;m=!1;break}if(O){if(!e(u,function(p,T){if(!t(O,T)&&(S===p||b(S,p,g,_,c)))return O.push(T)})){m=!1;break}}else if(!(S===y||b(S,y,g,_,c))){m=!1;break}}return c.delete(o),c.delete(u),m}return rn=i,rn}var en,Cu;function Rc(){if(Cu)return en;Cu=1;var r=br(),e=r.Uint8Array;return en=e,en}var tn,Eu;function nh(){if(Eu)return tn;Eu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return tn=r,tn}var nn,Mu;function ah(){if(Mu)return nn;Mu=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return nn=r,nn}var an,xu;function ih(){if(xu)return an;xu=1;var r=Jr(),e=Rc(),t=Zr(),n=Oc(),a=nh(),i=ah(),o=1,u=2,g="[object Boolean]",_="[object Date]",b="[object Error]",c="[object Map]",v="[object Number]",s="[object RegExp]",l="[object Set]",d="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",m="[object DataView]",O=r?r.prototype:void 0,S=O?O.valueOf:void 0;function y(q,p,T,I,C,P,R){switch(T){case m:if(q.byteLength!=p.byteLength||q.byteOffset!=p.byteOffset)return!1;q=q.buffer,p=p.buffer;case h:return!(q.byteLength!=p.byteLength||!P(new e(q),new e(p)));case g:case _:case v:return t(+q,+p);case b:return q.name==p.name&&q.message==p.message;case s:case d:return q==p+"";case c:var H=a;case l:var F=I&o;if(H||(H=i),q.size!=p.size&&!F)return!1;var K=R.get(q);if(K)return K==p;I|=u,R.set(q,p);var er=n(H(q),H(p),I,C,P,R);return R.delete(q),er;case f:if(S)return S.call(q)==S.call(p)}return!1}return an=y,an}var on,Du;function Tc(){if(Du)return on;Du=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return on=r,on}var un,Fu;function Ic(){if(Fu)return un;Fu=1;var r=Tc(),e=mr();function t(n,a,i){var o=a(n);return e(n)?o:r(o,i(n))}return un=t,un}var sn,Lu;function Pc(){if(Lu)return sn;Lu=1;function r(){return[]}return sn=r,sn}var fn,ju;function Bi(){if(ju)return fn;ju=1;var r=gc(),e=Pc(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(u){return n.call(o,u)}))}:e;return fn=i,fn}var cn,Bu;function Cc(){if(Bu)return cn;Bu=1;var r=Ic(),e=Bi(),t=Yr();function n(a){return r(a,t,e)}return cn=n,cn}var ln,Nu;function oh(){if(Nu)return ln;Nu=1;var r=Cc(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,g,_,b){var c=u&e,v=r(i),s=v.length,l=r(o),d=l.length;if(s!=d&&!c)return!1;for(var f=s;f--;){var h=v[f];if(!(c?h in o:n.call(o,h)))return!1}var m=b.get(i),O=b.get(o);if(m&&O)return m==o&&O==i;var S=!0;b.set(i,o),b.set(o,i);for(var y=c;++f<s;){h=v[f];var q=i[h],p=o[h];if(g)var T=c?g(p,q,h,o,i,b):g(q,p,h,i,o,b);if(!(T===void 0?q===p||_(q,p,u,g,b):T)){S=!1;break}y||(y=h=="constructor")}if(S&&!y){var I=i.constructor,C=o.constructor;I!=C&&"constructor"in i&&"constructor"in o&&!(typeof I=="function"&&I instanceof I&&typeof C=="function"&&C instanceof C)&&(S=!1)}return b.delete(i),b.delete(o),S}return ln=a,ln}var hn,Gu;function uh(){if(Gu)return hn;Gu=1;var r=Er(),e=br(),t=r(e,"DataView");return hn=t,hn}var pn,Uu;function sh(){if(Uu)return pn;Uu=1;var r=Er(),e=br(),t=r(e,"Promise");return pn=t,pn}var vn,Hu;function fh(){if(Hu)return vn;Hu=1;var r=Er(),e=br(),t=r(e,"Set");return vn=t,vn}var yn,$u;function ch(){if($u)return yn;$u=1;var r=Er(),e=br(),t=r(e,"WeakMap");return yn=t,yn}var dn,Vu;function de(){if(Vu)return dn;Vu=1;var r=uh(),e=Fi(),t=sh(),n=fh(),a=ch(),i=Xr(),o=wc(),u="[object Map]",g="[object Object]",_="[object Promise]",b="[object Set]",c="[object WeakMap]",v="[object DataView]",s=o(r),l=o(e),d=o(t),f=o(n),h=o(a),m=i;return(r&&m(new r(new ArrayBuffer(1)))!=v||e&&m(new e)!=u||t&&m(t.resolve())!=_||n&&m(new n)!=b||a&&m(new a)!=c)&&(m=function(O){var S=i(O),y=S==g?O.constructor:void 0,q=y?o(y):"";if(q)switch(q){case s:return v;case l:return u;case d:return _;case f:return b;case h:return c}return S}),dn=m,dn}var gn,Ku;function lh(){if(Ku)return gn;Ku=1;var r=ji(),e=Oc(),t=ih(),n=oh(),a=de(),i=mr(),o=Pi(),u=mc(),g=1,_="[object Arguments]",b="[object Array]",c="[object Object]",v=Object.prototype,s=v.hasOwnProperty;function l(d,f,h,m,O,S){var y=i(d),q=i(f),p=y?b:a(d),T=q?b:a(f);p=p==_?c:p,T=T==_?c:T;var I=p==c,C=T==c,P=p==T;if(P&&o(d)){if(!o(f))return!1;y=!0,I=!1}if(P&&!I)return S||(S=new r),y||u(d)?e(d,f,h,m,O,S):t(d,f,p,h,m,O,S);if(!(h&g)){var R=I&&s.call(d,"__wrapped__"),H=C&&s.call(f,"__wrapped__");if(R||H){var F=R?d.value():d,K=H?f.value():f;return S||(S=new r),O(F,K,h,m,S)}}return P?(S||(S=new r),n(d,f,h,m,O,S)):!1}return gn=l,gn}var _n,zu;function Ec(){if(zu)return _n;zu=1;var r=lh(),e=Pr();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,o,t,u)}return _n=t,_n}var bn,Wu;function hh(){if(Wu)return bn;Wu=1;var r=ji(),e=Ec(),t=1,n=2;function a(i,o,u,g){var _=u.length,b=_,c=!g;if(i==null)return!b;for(i=Object(i);_--;){var v=u[_];if(c&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++_<b;){v=u[_];var s=v[0],l=i[s],d=v[1];if(c&&v[2]){if(l===void 0&&!(s in i))return!1}else{var f=new r;if(g)var h=g(l,d,s,i,o,f);if(!(h===void 0?e(d,l,t|n,g,f):h))return!1}}return!0}return bn=a,bn}var mn,ku;function Mc(){if(ku)return mn;ku=1;var r=Cr();function e(t){return t===t&&!r(t)}return mn=e,mn}var Sn,Qu;function ph(){if(Qu)return Sn;Qu=1;var r=Mc(),e=Yr();function t(n){for(var a=e(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,r(u)]}return a}return Sn=t,Sn}var qn,Ju;function xc(){if(Ju)return qn;Ju=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return qn=r,qn}var An,Xu;function vh(){if(Xu)return An;Xu=1;var r=hh(),e=ph(),t=xc();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return An=n,An}var wn,Yu;function Ni(){if(Yu)return wn;Yu=1;var r=Xr(),e=Pr(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return wn=n,wn}var On,Zu;function Gi(){if(Zu)return On;Zu=1;var r=mr(),e=Ni(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(r(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return On=a,On}var Rn,rs;function yh(){if(rs)return Rn;rs=1;var r=Li(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,u=a?a.apply(this,o):o[0],g=i.cache;if(g.has(u))return g.get(u);var _=n.apply(this,o);return i.cache=g.set(u,_)||g,_};return i.cache=new(t.Cache||r),i}return t.Cache=r,Rn=t,Rn}var Tn,es;function dh(){if(es)return Tn;es=1;var r=yh(),e=500;function t(n){var a=r(n,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Tn=t,Tn}var In,ts;function gh(){if(ts)return In;ts=1;var r=dh(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,u,g,_){i.push(g?_.replace(t,"$1"):u||o)}),i});return In=n,In}var Pn,ns;function _h(){if(ns)return Pn;ns=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Pn=r,Pn}var Cn,as;function bh(){if(as)return Cn;as=1;var r=Jr(),e=_h(),t=mr(),n=Ni(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return e(u,o)+"";if(n(u))return i?i.call(u):"";var g=u+"";return g=="0"&&1/u==-1/0?"-0":g}return Cn=o,Cn}var En,is;function mh(){if(is)return En;is=1;var r=bh();function e(t){return t==null?"":r(t)}return En=e,En}var Mn,os;function Dc(){if(os)return Mn;os=1;var r=mr(),e=Gi(),t=gh(),n=mh();function a(i,o){return r(i)?i:e(i,o)?[i]:t(n(i))}return Mn=a,Mn}var xn,us;function ge(){if(us)return xn;us=1;var r=Ni();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return xn=e,xn}var Dn,ss;function Fc(){if(ss)return Dn;ss=1;var r=Dc(),e=ge();function t(n,a){a=r(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[e(a[i++])];return i&&i==o?n:void 0}return Dn=t,Dn}var Fn,fs;function Sh(){if(fs)return Fn;fs=1;var r=Fc();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return Fn=e,Fn}var Ln,cs;function qh(){if(cs)return Ln;cs=1;function r(e,t){return e!=null&&t in Object(e)}return Ln=r,Ln}var jn,ls;function Ah(){if(ls)return jn;ls=1;var r=Dc(),e=bc(),t=mr(),n=Ci(),a=Ei(),i=ge();function o(u,g,_){g=r(g,u);for(var b=-1,c=g.length,v=!1;++b<c;){var s=i(g[b]);if(!(v=u!=null&&_(u,s)))break;u=u[s]}return v||++b!=c?v:(c=u==null?0:u.length,!!c&&a(c)&&n(s,c)&&(t(u)||e(u)))}return jn=o,jn}var Bn,hs;function wh(){if(hs)return Bn;hs=1;var r=qh(),e=Ah();function t(n,a){return n!=null&&e(n,a,r)}return Bn=t,Bn}var Nn,ps;function Oh(){if(ps)return Nn;ps=1;var r=Ec(),e=Sh(),t=wh(),n=Gi(),a=Mc(),i=xc(),o=ge(),u=1,g=2;function _(b,c){return n(b)&&a(c)?i(o(b),c):function(v){var s=e(v,b);return s===void 0&&s===c?t(v,b):r(c,s,u|g)}}return Nn=_,Nn}var Gn,vs;function Ui(){if(vs)return Gn;vs=1;function r(e){return e}return Gn=r,Gn}var Un,ys;function Rh(){if(ys)return Un;ys=1;function r(e){return function(t){return t==null?void 0:t[e]}}return Un=r,Un}var Hn,ds;function Th(){if(ds)return Hn;ds=1;var r=Fc();function e(t){return function(n){return r(n,t)}}return Hn=e,Hn}var $n,gs;function Ih(){if(gs)return $n;gs=1;var r=Rh(),e=Th(),t=Gi(),n=ge();function a(i){return t(i)?r(n(i)):e(i)}return $n=a,$n}var Vn,_s;function Ph(){if(_s)return Vn;_s=1;var r=vh(),e=Oh(),t=Ui(),n=mr(),a=Ih();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?e(o[0],o[1]):r(o):a(o)}return Vn=i,Vn}var Kn,bs;function Ch(){if(bs)return Kn;bs=1;var r=gc(),e=Ol(),t=Ph(),n=mr();function a(i,o){var u=n(i)?r:e;return u(i,t(o,3))}return Kn=a,Kn}var ms;function Hi(){if(ms)return Ur;ms=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.Swatch=void 0;var r=ce(),e=Ch(),t=function(){function n(a,i){this._rgb=a,this._population=i}return n.applyFilter=function(a,i){return typeof i=="function"?e(a,function(o){var u=o.r,g=o.g,_=o.b;return i(u,g,_,255)}):a},Object.defineProperty(n.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rgb",{get:function(){return this._rgb},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hsl",{get:function(){if(!this._hsl){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hsl=r.rgbToHsl(i,o,u)}return this._hsl},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hex",{get:function(){if(!this._hex){var a=this._rgb,i=a[0],o=a[1],u=a[2];this._hex=r.rgbToHex(i,o,u)}return this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"population",{get:function(){return this._population},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},n.prototype.getRgb=function(){return this._rgb},n.prototype.getHsl=function(){return this.hsl},n.prototype.getPopulation=function(){return this._population},n.prototype.getHex=function(){return this.hex},n.prototype.getYiq=function(){if(!this._yiq){var a=this._rgb;this._yiq=(a[0]*299+a[1]*587+a[2]*114)/1e3}return this._yiq},Object.defineProperty(n.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!1,configurable:!0}),n.prototype.getTitleTextColor=function(){return this.titleTextColor},n.prototype.getBodyTextColor=function(){return this.bodyTextColor},n}();return Ur.Swatch=t,Ur}var Lr={},zn,Ss;function Eh(){if(Ss)return zn;Ss=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return zn=r,zn}var Wn,qs;function Lc(){if(qs)return Wn;qs=1;var r=Er(),e=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Wn=e,Wn}var kn,As;function jc(){if(As)return kn;As=1;var r=Lc();function e(t,n,a){n=="__proto__"&&r?r(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}return kn=e,kn}var Qn,ws;function Bc(){if(ws)return Qn;ws=1;var r=jc(),e=Zr(),t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u){var g=i[o];(!(n.call(i,o)&&e(g,u))||u===void 0&&!(o in i))&&r(i,o,u)}return Qn=a,Qn}var Jn,Os;function _e(){if(Os)return Jn;Os=1;var r=Bc(),e=jc();function t(n,a,i,o){var u=!i;i||(i={});for(var g=-1,_=a.length;++g<_;){var b=a[g],c=o?o(i[b],n[b],b,i,n):void 0;c===void 0&&(c=n[b]),u?e(i,b,c):r(i,b,c)}return i}return Jn=t,Jn}var Xn,Rs;function Mh(){if(Rs)return Xn;Rs=1;var r=_e(),e=Yr();function t(n,a){return n&&r(a,e(a),n)}return Xn=t,Xn}var Yn,Ts;function xh(){if(Ts)return Yn;Ts=1;function r(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}return Yn=r,Yn}var Zn,Is;function Dh(){if(Is)return Zn;Is=1;var r=Cr(),e=Di(),t=xh(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!r(o))return t(o);var u=e(o),g=[];for(var _ in o)_=="constructor"&&(u||!a.call(o,_))||g.push(_);return g}return Zn=i,Zn}var ra,Ps;function be(){if(Ps)return ra;Ps=1;var r=Sc(),e=Dh(),t=le();function n(a){return t(a)?r(a,!0):e(a)}return ra=n,ra}var ea,Cs;function Fh(){if(Cs)return ea;Cs=1;var r=_e(),e=be();function t(n,a){return n&&r(a,e(a),n)}return ea=t,ea}var Wr={exports:{}};Wr.exports;var Es;function Lh(){return Es||(Es=1,function(r,e){var t=br(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i?t.Buffer:void 0,u=o?o.allocUnsafe:void 0;function g(_,b){if(b)return _.slice();var c=_.length,v=u?u(c):new _.constructor(c);return _.copy(v),v}r.exports=g}(Wr,Wr.exports)),Wr.exports}var ta,Ms;function jh(){if(Ms)return ta;Ms=1;function r(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}return ta=r,ta}var na,xs;function Bh(){if(xs)return na;xs=1;var r=_e(),e=Bi();function t(n,a){return r(n,e(n),a)}return na=t,na}var aa,Ds;function Nc(){if(Ds)return aa;Ds=1;var r=qc(),e=r(Object.getPrototypeOf,Object);return aa=e,aa}var ia,Fs;function Gc(){if(Fs)return ia;Fs=1;var r=Tc(),e=Nc(),t=Bi(),n=Pc(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var u=[];o;)r(u,t(o)),o=e(o);return u}:n;return ia=i,ia}var oa,Ls;function Nh(){if(Ls)return oa;Ls=1;var r=_e(),e=Gc();function t(n,a){return r(n,e(n),a)}return oa=t,oa}var ua,js;function Gh(){if(js)return ua;js=1;var r=Ic(),e=Gc(),t=be();function n(a){return r(a,t,e)}return ua=n,ua}var sa,Bs;function Uh(){if(Bs)return sa;Bs=1;var r=Object.prototype,e=r.hasOwnProperty;function t(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return sa=t,sa}var fa,Ns;function $i(){if(Ns)return fa;Ns=1;var r=Rc();function e(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}return fa=e,fa}var ca,Gs;function Hh(){if(Gs)return ca;Gs=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}return ca=e,ca}var la,Us;function $h(){if(Us)return la;Us=1;var r=/\w*$/;function e(t){var n=new t.constructor(t.source,r.exec(t));return n.lastIndex=t.lastIndex,n}return la=e,la}var ha,Hs;function Vh(){if(Hs)return ha;Hs=1;var r=Jr(),e=r?r.prototype:void 0,t=e?e.valueOf:void 0;function n(a){return t?Object(t.call(a)):{}}return ha=n,ha}var pa,$s;function Kh(){if($s)return pa;$s=1;var r=$i();function e(t,n){var a=n?r(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}return pa=e,pa}var va,Vs;function zh(){if(Vs)return va;Vs=1;var r=$i(),e=Hh(),t=$h(),n=Vh(),a=Kh(),i="[object Boolean]",o="[object Date]",u="[object Map]",g="[object Number]",_="[object RegExp]",b="[object Set]",c="[object String]",v="[object Symbol]",s="[object ArrayBuffer]",l="[object DataView]",d="[object Float32Array]",f="[object Float64Array]",h="[object Int8Array]",m="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",y="[object Uint8ClampedArray]",q="[object Uint16Array]",p="[object Uint32Array]";function T(I,C,P){var R=I.constructor;switch(C){case s:return r(I);case i:case o:return new R(+I);case l:return e(I,P);case d:case f:case h:case m:case O:case S:case y:case q:case p:return a(I,P);case u:return new R;case g:case c:return new R(I);case _:return t(I);case b:return new R;case v:return n(I)}}return va=T,va}var ya,Ks;function Wh(){if(Ks)return ya;Ks=1;var r=Cr(),e=Object.create,t=function(){function n(){}return function(a){if(!r(a))return{};if(e)return e(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}}();return ya=t,ya}var da,zs;function kh(){if(zs)return da;zs=1;var r=Wh(),e=Nc(),t=Di();function n(a){return typeof a.constructor=="function"&&!t(a)?r(e(a)):{}}return da=n,da}var ga,Ws;function Qh(){if(Ws)return ga;Ws=1;var r=de(),e=Pr(),t="[object Map]";function n(a){return e(a)&&r(a)==t}return ga=n,ga}var _a,ks;function Jh(){if(ks)return _a;ks=1;var r=Qh(),e=Mi(),t=xi(),n=t&&t.isMap,a=n?e(n):r;return _a=a,_a}var ba,Qs;function Xh(){if(Qs)return ba;Qs=1;var r=de(),e=Pr(),t="[object Set]";function n(a){return e(a)&&r(a)==t}return ba=n,ba}var ma,Js;function Yh(){if(Js)return ma;Js=1;var r=Xh(),e=Mi(),t=xi(),n=t&&t.isSet,a=n?e(n):r;return ma=a,ma}var Sa,Xs;function Zh(){if(Xs)return Sa;Xs=1;var r=ji(),e=Eh(),t=Bc(),n=Mh(),a=Fh(),i=Lh(),o=jh(),u=Bh(),g=Nh(),_=Cc(),b=Gh(),c=de(),v=Uh(),s=zh(),l=kh(),d=mr(),f=Pi(),h=Jh(),m=Cr(),O=Yh(),S=Yr(),y=be(),q=1,p=2,T=4,I="[object Arguments]",C="[object Array]",P="[object Boolean]",R="[object Date]",H="[object Error]",F="[object Function]",K="[object GeneratorFunction]",er="[object Map]",Q="[object Number]",E="[object Object]",Z="[object RegExp]",x="[object Set]",D="[object String]",B="[object Symbol]",M="[object WeakMap]",j="[object ArrayBuffer]",k="[object DataView]",V="[object Float32Array]",J="[object Float64Array]",nr="[object Int8Array]",z="[object Int16Array]",L="[object Int32Array]",U="[object Uint8Array]",$="[object Uint8ClampedArray]",X="[object Uint16Array]",Y="[object Uint32Array]",N={};N[I]=N[C]=N[j]=N[k]=N[P]=N[R]=N[V]=N[J]=N[nr]=N[z]=N[L]=N[er]=N[Q]=N[E]=N[Z]=N[x]=N[D]=N[B]=N[U]=N[$]=N[X]=N[Y]=!0,N[H]=N[F]=N[M]=!1;function tr(G,or,cr,gr,sr,fr){var ur,vr=or&q,Mr=or&p,qe=or&T;if(cr&&(ur=sr?cr(G,gr,sr,fr):cr(G)),ur!==void 0)return ur;if(!m(G))return G;var Nr=d(G);if(Nr){if(ur=v(G),!vr)return o(G,ur)}else{var Sr=c(G),qr=Sr==F||Sr==K;if(f(G))return i(G,vr);if(Sr==E||Sr==I||qr&&!sr){if(ur=Mr||qr?{}:l(G),!vr)return Mr?g(G,a(ur,G)):u(G,n(ur,G))}else{if(!N[Sr])return sr?G:{};ur=s(G,Sr,vr)}}fr||(fr=new r);var xr=fr.get(G);if(xr)return xr;fr.set(G,ur),O(G)?G.forEach(function(_r){ur.add(tr(_r,or,cr,_r,G,fr))}):h(G)&&G.forEach(function(_r,yr){ur.set(yr,tr(_r,or,cr,yr,G,fr))});var re=qe?Mr?b:_:Mr?y:S,ee=Nr?void 0:re(G);return e(ee||G,function(_r,yr){ee&&(yr=_r,_r=G[yr]),t(ur,yr,tr(_r,or,cr,yr,G,fr))}),ur}return Sa=tr,Sa}var qa,Ys;function rp(){if(Ys)return qa;Ys=1;var r=Zh(),e=4;function t(n){return r(n,e)}return qa=t,qa}var Zs;function ep(){if(Zs)return Lr;Zs=1;var r=Lr&&Lr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Lr,"__esModule",{value:!0});var e=r(Hc()),t=rp(),n=function(){function a(i,o){o===void 0&&(o={}),this._src=i,this._opts=o,this._opts.filters=t(e.default.DefaultOpts.filters)}return a.prototype.maxColorCount=function(i){return this._opts.colorCount=i,this},a.prototype.maxDimension=function(i){return this._opts.maxDimension=i,this},a.prototype.addFilter=function(i){return this._opts.filters.push(i),this},a.prototype.removeFilter=function(i){var o=this._opts.filters.indexOf(i);return o>0&&this._opts.filters.splice(o),this},a.prototype.clearFilters=function(){return this._opts.filters=[],this},a.prototype.quality=function(i){return this._opts.quality=i,this},a.prototype.useImageClass=function(i){return this._opts.ImageClass=i,this},a.prototype.useGenerator=function(i){return this._opts.generator=i,this},a.prototype.useQuantizer=function(i){return this._opts.quantizer=i,this},a.prototype.build=function(){return new e.default(this._src,this._opts)},a.prototype.getPalette=function(i){return this.build().getPalette(i)},a.prototype.getSwatches=function(i){return this.build().getPalette(i)},a}();return Lr.default=n,Lr}var Aa={},jr={},oe={},rf;function tp(){if(rf)return oe;rf=1,Object.defineProperty(oe,"__esModule",{value:!0});var r=ce(),e=function(){function t(n,a,i,o,u,g,_){this._volume=-1,this._count=-1,this.dimension={r1:n,r2:a,g1:i,g2:o,b1:u,b2:g},this.hist=_}return t.build=function(n,a){var i=1<<3*r.SIGBITS,o=new Uint32Array(i),u,g,_,b,c,v,s,l,d,f;u=_=c=0,g=b=v=Number.MAX_VALUE;for(var h=n.length/4,m=0;m<h;){var O=m*4;if(m++,s=n[O+0],l=n[O+1],d=n[O+2],f=n[O+3],f!==0){s=s>>r.RSHIFT,l=l>>r.RSHIFT,d=d>>r.RSHIFT;var S=r.getColorIndex(s,l,d);o[S]+=1,s>u&&(u=s),s<g&&(g=s),l>_&&(_=l),l<b&&(b=l),d>c&&(c=d),d<v&&(v=d)}}return new t(g,u,b,_,v,c,o)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(this._volume<0){var n=this.dimension,a=n.r1,i=n.r2,o=n.g1,u=n.g2,g=n.b1,_=n.b2;this._volume=(i-a+1)*(u-o+1)*(_-g+1)}return this._volume},t.prototype.count=function(){if(this._count<0){for(var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=i;v<=o;v++)for(var s=u;s<=g;s++)for(var l=_;l<=b;l++){var d=r.getColorIndex(v,s,l);c+=n[d]}this._count=c}return this._count},t.prototype.clone=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2;return new t(i,o,u,g,_,b,n)},t.prototype.avg=function(){if(!this._avg){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=0,v=1<<8-r.SIGBITS,s=void 0,l=void 0,d=void 0;s=l=d=0;for(var f=i;f<=o;f++)for(var h=u;h<=g;h++)for(var m=_;m<=b;m++){var O=r.getColorIndex(f,h,m),S=n[O];c+=S,s+=S*(f+.5)*v,l+=S*(h+.5)*v,d+=S*(m+.5)*v}c?this._avg=[~~(s/c),~~(l/c),~~(d/c)]:this._avg=[~~(v*(i+o+1)/2),~~(v*(u+g+1)/2),~~(v*(_+b+1)/2)]}return this._avg},t.prototype.contains=function(n){var a=n[0],i=n[1],o=n[2],u=this.dimension,g=u.r1,_=u.r2,b=u.g1,c=u.g2,v=u.b1,s=u.b2;return a>>=r.RSHIFT,i>>=r.RSHIFT,o>>=r.RSHIFT,a>=g&&a<=_&&i>=b&&i<=c&&o>=v&&o<=s},t.prototype.split=function(){var n=this.hist,a=this.dimension,i=a.r1,o=a.r2,u=a.g1,g=a.g2,_=a.b1,b=a.b2,c=this.count();if(!c)return[];if(c===1)return[this.clone()];var v=o-i+1,s=g-u+1,l=b-_+1,d=Math.max(v,s,l),f=null,h,m;h=m=0;var O=null;if(d===v){O="r",f=new Uint32Array(o+1);for(var S=i;S<=o;S++){h=0;for(var y=u;y<=g;y++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[S]=m}}else if(d===s){O="g",f=new Uint32Array(g+1);for(var y=u;y<=g;y++){h=0;for(var S=i;S<=o;S++)for(var q=_;q<=b;q++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[y]=m}}else{O="b",f=new Uint32Array(b+1);for(var q=_;q<=b;q++){h=0;for(var S=i;S<=o;S++)for(var y=u;y<=g;y++){var p=r.getColorIndex(S,y,q);h+=n[p]}m+=h,f[q]=m}}for(var T=-1,I=new Uint32Array(f.length),C=0;C<f.length;C++){var P=f[C];T<0&&P>m/2&&(T=C),I[C]=m-P}var R=this;function H(F){var K=F+"1",er=F+"2",Q=R.dimension[K],E=R.dimension[er],Z=R.clone(),x=R.clone(),D=T-Q,B=E-T;for(D<=B?(E=Math.min(E-1,~~(T+B/2)),E=Math.max(0,E)):(E=Math.max(Q,~~(T-1-D/2)),E=Math.min(R.dimension[er],E));!f[E];)E++;for(var M=I[E];!M&&f[E-1];)M=I[--E];return Z.dimension[er]=E,x.dimension[K]=E+1,[Z,x]}return H(O)},t}();return oe.default=e,oe}var ue={},ef;function np(){if(ef)return ue;ef=1,Object.defineProperty(ue,"__esModule",{value:!0});var r=function(){function e(t){this._comparator=t,this.contents=[],this._sorted=!1}return e.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},e.prototype.push=function(t){this.contents.push(t),this._sorted=!1},e.prototype.peek=function(t){return this._sort(),t=typeof t=="number"?t:this.contents.length-1,this.contents[t]},e.prototype.pop=function(){return this._sort(),this.contents.pop()},e.prototype.size=function(){return this.contents.length},e.prototype.map=function(t){return this._sort(),this.contents.map(t)},e}();return ue.default=r,ue}var tf;function ap(){if(tf)return jr;tf=1;var r=jr&&jr.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(jr,"__esModule",{value:!0});var e=Hi(),t=r(tp()),n=r(np()),a=.75;function i(g,_){for(var b=g.size();g.size()<_;){var c=g.pop();if(c&&c.count()>0){var v=c.split(),s=v[0],l=v[1];if(g.push(s),l&&l.count()>0&&g.push(l),g.size()===b)break;b=g.size()}else break}}var o=function(g,_){if(g.length===0||_.colorCount<2||_.colorCount>256)throw new Error("Wrong MMCQ parameters");var b=t.default.build(g),c=b.hist;Object.keys(c).length;var v=new n.default(function(l,d){return l.count()-d.count()});v.push(b),i(v,a*_.colorCount);var s=new n.default(function(l,d){return l.count()*l.volume()-d.count()*d.volume()});return s.contents=v.contents,i(s,_.colorCount-s.size()),u(s)};function u(g){for(var _=[];g.size();){var b=g.pop(),c=b.avg();c[0],c[1],c[2],_.push(new e.Swatch(c,b.count()))}return _}return jr.default=o,jr}var nf;function ip(){return nf||(nf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorker=void 0;var e=ap();Object.defineProperty(r,"MMCQ",{enumerable:!0,get:function(){return e.default}}),r.WebWorker=null}(Aa)),Aa}var wa={},se={},Oa,af;function op(){if(af)return Oa;af=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return Oa=r,Oa}var Ra,of;function up(){if(of)return Ra;of=1;var r=op(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,g=e(o.length-a,0),_=Array(g);++u<g;)_[u]=o[a+u];u=-1;for(var b=Array(a+1);++u<a;)b[u]=o[u];return b[a]=i(_),r(n,this,b)}}return Ra=t,Ra}var Ta,uf;function sp(){if(uf)return Ta;uf=1;function r(e){return function(){return e}}return Ta=r,Ta}var Ia,sf;function fp(){if(sf)return Ia;sf=1;var r=sp(),e=Lc(),t=Ui(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Ia=n,Ia}var Pa,ff;function cp(){if(ff)return Pa;ff=1;var r=800,e=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),g=e-(u-o);if(o=u,g>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Pa=n,Pa}var Ca,cf;function lp(){if(cf)return Ca;cf=1;var r=fp(),e=cp(),t=e(r);return Ca=t,Ca}var Ea,lf;function hp(){if(lf)return Ea;lf=1;var r=Ui(),e=up(),t=lp();function n(a,i){return t(e(a,i,r),a+"")}return Ea=n,Ea}var Ma,hf;function pp(){if(hf)return Ma;hf=1;var r=Zr(),e=le(),t=Ci(),n=Cr();function a(i,o,u){if(!n(u))return!1;var g=typeof o;return(g=="number"?e(u)&&t(o,u.length):g=="string"&&o in u)?r(u[o],i):!1}return Ma=a,Ma}var xa,pf;function Uc(){if(pf)return xa;pf=1;var r=hp(),e=Zr(),t=pp(),n=be(),a=Object.prototype,i=a.hasOwnProperty,o=r(function(u,g){u=Object(u);var _=-1,b=g.length,c=b>2?g[2]:void 0;for(c&&t(g[0],g[1],c)&&(b=1);++_<b;)for(var v=g[_],s=n(v),l=-1,d=s.length;++l<d;){var f=s[l],h=u[f];(h===void 0||e(h,a[f])&&!i.call(u,f))&&(u[f]=v[f])}return u});return xa=o,xa}var vf;function vp(){if(vf)return se;vf=1,Object.defineProperty(se,"__esModule",{value:!0});var r=Hi(),e=ce(),t=Uc(),n={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function a(c){var v=0;return c.forEach(function(s){v=Math.max(v,s.getPopulation())}),v}function i(c,v){return c.Vibrant===v||c.DarkVibrant===v||c.LightVibrant===v||c.Muted===v||c.DarkMuted===v||c.LightMuted===v}function o(c,v,s,l,d,f,h){function m(){for(var S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];for(var q=0,p=0,T=0;T<S.length;T+=2){var I=S[T],C=S[T+1];q+=I*C,p+=C}return q/p}function O(S,y){return 1-Math.abs(S-y)}return m(O(c,v),h.weightSaturation,O(s,l),h.weightLuma,d/f,h.weightPopulation)}function u(c,v,s,l,d,f,h,m,O,S){var y=null,q=0;return v.forEach(function(p){var T=p.getHsl(),I=T[1],C=T[2];if(I>=m&&I<=O&&C>=d&&C<=f&&!i(c,p)){var P=o(I,h,C,l,p.getPopulation(),s,S);(y===null||P>q)&&(y=p,q=P)}}),y}function g(c,v,s){var l={};return l.Vibrant=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.LightVibrant=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.DarkVibrant=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetVibrantSaturation,s.minVibrantSaturation,1,s),l.Muted=u(l,c,v,s.targetNormalLuma,s.minNormalLuma,s.maxNormalLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.LightMuted=u(l,c,v,s.targetLightLuma,s.minLightLuma,1,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l.DarkMuted=u(l,c,v,s.targetDarkLuma,0,s.maxDarkLuma,s.targetMutesSaturation,0,s.maxMutesSaturation,s),l}function _(c,v,s){if(c.Vibrant===null&&c.DarkVibrant===null&&c.LightVibrant===null){if(c.DarkVibrant===null&&c.DarkMuted!==null){var l=c.DarkMuted.getHsl(),d=l[0],f=l[1],h=l[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.LightMuted!==null){var m=c.LightMuted.getHsl(),d=m[0],f=m[1],h=m[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}}if(c.Vibrant===null&&c.DarkVibrant!==null){var O=c.DarkVibrant.getHsl(),d=O[0],f=O[1],h=O[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}else if(c.Vibrant===null&&c.LightVibrant!==null){var S=c.LightVibrant.getHsl(),d=S[0],f=S[1],h=S[2];h=s.targetNormalLuma,c.Vibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkVibrant===null&&c.Vibrant!==null){var y=c.Vibrant.getHsl(),d=y[0],f=y[1],h=y[2];h=s.targetDarkLuma,c.DarkVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightVibrant===null&&c.Vibrant!==null){var q=c.Vibrant.getHsl(),d=q[0],f=q[1],h=q[2];h=s.targetLightLuma,c.LightVibrant=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.Muted===null&&c.Vibrant!==null){var p=c.Vibrant.getHsl(),d=p[0],f=p[1],h=p[2];h=s.targetMutesSaturation,c.Muted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.DarkMuted===null&&c.DarkVibrant!==null){var T=c.DarkVibrant.getHsl(),d=T[0],f=T[1],h=T[2];h=s.targetMutesSaturation,c.DarkMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}if(c.LightMuted===null&&c.LightVibrant!==null){var I=c.LightVibrant.getHsl(),d=I[0],f=I[1],h=I[2];h=s.targetMutesSaturation,c.LightMuted=new r.Swatch(e.hslToRgb(d,f,h),0)}}var b=function(c,v){v=t({},v,n);var s=a(c),l=g(c,s,v);return _(l,s,v),l};return se.default=b,se}var yf;function yp(){return yf||(yf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0});var e=vp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}})}(wa)),wa}var Da={},fe={},df;function dp(){if(df)return fe;df=1,Object.defineProperty(fe,"__esModule",{value:!0});function r(e,t,n,a){return a>=125&&!(e>250&&t>250&&n>250)}return fe.default=r,fe}var gf;function gp(){return gf||(gf=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineFilters=void 0;var e=dp();Object.defineProperty(r,"Default",{enumerable:!0,get:function(){return e.default}});function t(n){return!Array.isArray(n)||n.length===0?null:function(a,i,o,u){if(u===0)return!1;for(var g=0;g<n.length;g++)if(!n[g](a,i,o,u))return!1;return!0}}r.combineFilters=t}(Da)),Da}var _f;function Hc(){if(_f)return hr;_f=1;var r=hr&&hr.__createBinding||(Object.create?function(v,s,l,d){d===void 0&&(d=l),Object.defineProperty(v,d,{enumerable:!0,get:function(){return s[l]}})}:function(v,s,l,d){d===void 0&&(d=l),v[d]=s[l]}),e=hr&&hr.__setModuleDefault||(Object.create?function(v,s){Object.defineProperty(v,"default",{enumerable:!0,value:s})}:function(v,s){v.default=s}),t=hr&&hr.__importStar||function(v){if(v&&v.__esModule)return v;var s={};if(v!=null)for(var l in v)l!=="default"&&Object.hasOwnProperty.call(v,l)&&r(s,v,l);return e(s,v),s},n=hr&&hr.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(hr,"__esModule",{value:!0});var a=Hi(),i=n(ep()),o=t(ce()),u=t(ip()),g=t(yp()),_=t(gp()),b=Uc(),c=function(){function v(s,l){this._src=s,this.opts=b({},l,v.DefaultOpts),this.opts.combinedFilter=_.combineFilters(this.opts.filters)}return v.from=function(s){return new i.default(s)},v.prototype._process=function(s,l){var d=l.quantizer,f=l.generator;return s.scaleDown(l),s.applyFilter(l.combinedFilter).then(function(h){return d(h.data,l)}).then(function(h){return a.Swatch.applyFilter(h,l.combinedFilter)}).then(function(h){return Promise.resolve(f(h))})},v.prototype.palette=function(){return this.swatches()},v.prototype.swatches=function(){return this._palette},v.prototype.getPalette=function(s){var l=this,d=new this.opts.ImageClass,f=d.load(this._src).then(function(h){return l._process(h,l.opts)}).then(function(h){return l._palette=h,d.remove(),h},function(h){throw d.remove(),h});return s&&f.then(function(h){return s(null,h)},function(h){return s(h)}),f},v.Builder=i.default,v.Quantizer=u,v.Generator=g,v.Filter=_,v.Util=o,v.Swatch=a.Swatch,v.DefaultOpts={colorCount:64,quality:5,generator:g.Default,ImageClass:null,quantizer:u.MMCQ,filters:[_.Default]},v}();return hr.default=c,hr}var pr={},Hr={},bf;function _p(){if(bf)return Hr;bf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.ImageBase=void 0;var r=function(){function e(){}return e.prototype.scaleDown=function(t){var n=this.getWidth(),a=this.getHeight(),i=1;if(t.maxDimension>0){var o=Math.max(n,a);o>t.maxDimension&&(i=t.maxDimension/o)}else i=1/t.quality;i<1&&this.resize(n*i,a*i,i)},e.prototype.applyFilter=function(t){var n=this.getImageData();if(typeof t=="function")for(var a=n.data,i=a.length/4,o=void 0,u=void 0,g=void 0,_=void 0,b=void 0,c=0;c<i;c++)o=c*4,u=a[o+0],g=a[o+1],_=a[o+2],b=a[o+3],t(u,g,_,b)||(a[o+3]=0);return Promise.resolve(n)},e}();return Hr.ImageBase=r,Hr}var Ir={},kr={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var bp=kr.exports,mf;function mp(){return mf||(mf=1,function(r,e){(function(t){var n=e&&!e.nodeType&&e,a=r&&!r.nodeType&&r,i=typeof Rr=="object"&&Rr;(i.global===i||i.window===i||i.self===i)&&(t=i);var o,u=2147483647,g=36,_=1,b=26,c=38,v=700,s=72,l=128,d="-",f=/^xn--/,h=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=g-_,y=Math.floor,q=String.fromCharCode,p;function T(x){throw new RangeError(O[x])}function I(x,D){for(var B=x.length,M=[];B--;)M[B]=D(x[B]);return M}function C(x,D){var B=x.split("@"),M="";B.length>1&&(M=B[0]+"@",x=B[1]),x=x.replace(m,".");var j=x.split("."),k=I(j,D).join(".");return M+k}function P(x){for(var D=[],B=0,M=x.length,j,k;B<M;)j=x.charCodeAt(B++),j>=55296&&j<=56319&&B<M?(k=x.charCodeAt(B++),(k&64512)==56320?D.push(((j&1023)<<10)+(k&1023)+65536):(D.push(j),B--)):D.push(j);return D}function R(x){return I(x,function(D){var B="";return D>65535&&(D-=65536,B+=q(D>>>10&1023|55296),D=56320|D&1023),B+=q(D),B}).join("")}function H(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g}function F(x,D){return x+22+75*(x<26)-((D!=0)<<5)}function K(x,D,B){var M=0;for(x=B?y(x/v):x>>1,x+=y(x/D);x>S*b>>1;M+=g)x=y(x/S);return y(M+(S+1)*x/(x+c))}function er(x){var D=[],B=x.length,M,j=0,k=l,V=s,J,nr,z,L,U,$,X,Y,N;for(J=x.lastIndexOf(d),J<0&&(J=0),nr=0;nr<J;++nr)x.charCodeAt(nr)>=128&&T("not-basic"),D.push(x.charCodeAt(nr));for(z=J>0?J+1:0;z<B;){for(L=j,U=1,$=g;z>=B&&T("invalid-input"),X=H(x.charCodeAt(z++)),(X>=g||X>y((u-j)/U))&&T("overflow"),j+=X*U,Y=$<=V?_:$>=V+b?b:$-V,!(X<Y);$+=g)N=g-Y,U>y(u/N)&&T("overflow"),U*=N;M=D.length+1,V=K(j-L,M,L==0),y(j/M)>u-k&&T("overflow"),k+=y(j/M),j%=M,D.splice(j++,0,k)}return R(D)}function Q(x){var D,B,M,j,k,V,J,nr,z,L,U,$=[],X,Y,N,tr;for(x=P(x),X=x.length,D=l,B=0,k=s,V=0;V<X;++V)U=x[V],U<128&&$.push(q(U));for(M=j=$.length,j&&$.push(d);M<X;){for(J=u,V=0;V<X;++V)U=x[V],U>=D&&U<J&&(J=U);for(Y=M+1,J-D>y((u-B)/Y)&&T("overflow"),B+=(J-D)*Y,D=J,V=0;V<X;++V)if(U=x[V],U<D&&++B>u&&T("overflow"),U==D){for(nr=B,z=g;L=z<=k?_:z>=k+b?b:z-k,!(nr<L);z+=g)tr=nr-L,N=g-L,$.push(q(F(L+tr%N,0))),nr=y(tr/N);$.push(q(F(nr,0))),k=K(B,Y,M==j),B=0,++M}++B,++D}return $.join("")}function E(x){return C(x,function(D){return f.test(D)?er(D.slice(4).toLowerCase()):D})}function Z(x){return C(x,function(D){return h.test(D)?"xn--"+Q(D):D})}if(o={version:"1.4.1",ucs2:{decode:P,encode:R},decode:er,encode:Q,toASCII:Z,toUnicode:E},n&&a)if(r.exports==n)a.exports=o;else for(p in o)o.hasOwnProperty(p)&&(n[p]=o[p]);else t.punycode=o})(bp)}(kr,kr.exports)),kr.exports}var Fa,Sf;function Br(){return Sf||(Sf=1,Fa=TypeError),Fa}var La,qf;function me(){if(qf)return La;qf=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,u=a&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,_=g?WeakMap.prototype.has:null,b=typeof WeakSet=="function"&&WeakSet.prototype,c=b?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,s=v?WeakRef.prototype.deref:null,l=Boolean.prototype.valueOf,d=Object.prototype.toString,f=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,O=String.prototype.replace,S=String.prototype.toUpperCase,y=String.prototype.toLowerCase,q=RegExp.prototype.test,p=Array.prototype.concat,T=Array.prototype.join,I=Array.prototype.slice,C=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||!0)?Symbol.toStringTag:null,er=Object.prototype.propertyIsEnumerable,Q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function E(A,w){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||q.call(/e/,w))return w;var rr=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var ar=A<0?-C(-A):C(A);if(ar!==A){var ir=String(ar),W=m.call(w,ir.length+1);return O.call(ir,rr,"$&_")+"."+O.call(O.call(W,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(w,rr,"$&_")}var Z=il,x=Z.custom,D=Y(x)?x:null,B={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};La=function A(w,rr,ar,ir){var W=rr||{};if(G(W,"quoteStyle")&&!G(B,W.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(W,"maxStringLength")&&(typeof W.maxStringLength=="number"?W.maxStringLength<0&&W.maxStringLength!==1/0:W.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ar=G(W,"customInspect")?W.customInspect:!0;if(typeof Ar!="boolean"&&Ar!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(W,"indent")&&W.indent!==null&&W.indent!==" "&&!(parseInt(W.indent,10)===W.indent&&W.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(W,"numericSeparator")&&typeof W.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Tr=W.numericSeparator;if(typeof w>"u")return"undefined";if(w===null)return"null";if(typeof w=="boolean")return w?"true":"false";if(typeof w=="string")return Nr(w,W);if(typeof w=="number"){if(w===0)return 1/0/w>0?"0":"-0";var lr=String(w);return Tr?E(w,lr):lr}if(typeof w=="bigint"){var wr=String(w)+"n";return Tr?E(w,wr):wr}var Ae=typeof W.depth>"u"?5:W.depth;if(typeof ar>"u"&&(ar=0),ar>=Ae&&Ae>0&&typeof w=="object")return J(w)?"[Array]":"[Object]";var Dr=_r(W,ar);if(typeof ir>"u")ir=[];else if(gr(ir,w)>=0)return"[Circular]";function dr(Fr,ae,Zc){if(ae&&(ir=I.call(ir),ir.push(ae)),Zc){var ro={depth:W.depth};return G(W,"quoteStyle")&&(ro.quoteStyle=W.quoteStyle),A(Fr,ro,ar+1,ir)}return A(Fr,W,ar+1,ir)}if(typeof w=="function"&&!z(w)){var Wi=cr(w),ki=te(w,dr);return"[Function"+(Wi?": "+Wi:" (anonymous)")+"]"+(ki.length>0?" { "+T.call(ki,", ")+" }":"")}if(Y(w)){var Qi=F?O.call(String(w),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(w);return typeof w=="object"&&!F?qr(Qi):Qi}if(qe(w)){for(var Gr="<"+y.call(String(w.nodeName)),we=w.attributes||[],ne=0;ne<we.length;ne++)Gr+=" "+we[ne].name+"="+j(k(we[ne].value),"double",W);return Gr+=">",w.childNodes&&w.childNodes.length&&(Gr+="..."),Gr+="</"+y.call(String(w.nodeName))+">",Gr}if(J(w)){if(w.length===0)return"[]";var Oe=te(w,dr);return Dr&&!ee(Oe)?"["+yr(Oe,Dr)+"]":"[ "+T.call(Oe,", ")+" ]"}if(L(w)){var Re=te(w,dr);return!("cause"in Error.prototype)&&"cause"in w&&!er.call(w,"cause")?"{ ["+String(w)+"] "+T.call(p.call("[cause]: "+dr(w.cause),Re),", ")+" }":Re.length===0?"["+String(w)+"]":"{ ["+String(w)+"] "+T.call(Re,", ")+" }"}if(typeof w=="object"&&Ar){if(D&&typeof w[D]=="function"&&Z)return Z(w,{depth:Ae-ar});if(Ar!=="symbol"&&typeof w.inspect=="function")return w.inspect()}if(sr(w)){var Ji=[];return n&&n.call(w,function(Fr,ae){Ji.push(dr(ae,w,!0)+" => "+dr(Fr,w))}),re("Map",t.call(w),Ji,Dr)}if(vr(w)){var Xi=[];return u&&u.call(w,function(Fr){Xi.push(dr(Fr,w))}),re("Set",o.call(w),Xi,Dr)}if(fr(w))return xr("WeakMap");if(Mr(w))return xr("WeakSet");if(ur(w))return xr("WeakRef");if($(w))return qr(dr(Number(w)));if(N(w))return qr(dr(P.call(w)));if(X(w))return qr(l.call(w));if(U(w))return qr(dr(String(w)));if(typeof window<"u"&&w===window)return"{ [object Window] }";if(typeof globalThis<"u"&&w===globalThis||typeof Rr<"u"&&w===Rr)return"{ [object globalThis] }";if(!nr(w)&&!z(w)){var Te=te(w,dr),Yi=Q?Q(w)===Object.prototype:w instanceof Object||w.constructor===Object,Ie=w instanceof Object?"":"null prototype",Zi=!Yi&&K&&Object(w)===w&&K in w?m.call(or(w),8,-1):Ie?"Object":"",Yc=Yi||typeof w.constructor!="function"?"":w.constructor.name?w.constructor.name+" ":"",Pe=Yc+(Zi||Ie?"["+T.call(p.call([],Zi||[],Ie||[]),": ")+"] ":"");return Te.length===0?Pe+"{}":Dr?Pe+"{"+yr(Te,Dr)+"}":Pe+"{ "+T.call(Te,", ")+" }"}return String(w)};function j(A,w,rr){var ar=rr.quoteStyle||w,ir=B[ar];return ir+A+ir}function k(A){return O.call(String(A),/"/g,"&quot;")}function V(A){return!K||!(typeof A=="object"&&(K in A||typeof A[K]<"u"))}function J(A){return or(A)==="[object Array]"&&V(A)}function nr(A){return or(A)==="[object Date]"&&V(A)}function z(A){return or(A)==="[object RegExp]"&&V(A)}function L(A){return or(A)==="[object Error]"&&V(A)}function U(A){return or(A)==="[object String]"&&V(A)}function $(A){return or(A)==="[object Number]"&&V(A)}function X(A){return or(A)==="[object Boolean]"&&V(A)}function Y(A){if(F)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!H)return!1;try{return H.call(A),!0}catch{}return!1}function N(A){if(!A||typeof A!="object"||!P)return!1;try{return P.call(A),!0}catch{}return!1}var tr=Object.prototype.hasOwnProperty||function(A){return A in this};function G(A,w){return tr.call(A,w)}function or(A){return d.call(A)}function cr(A){if(A.name)return A.name;var w=h.call(f.call(A),/^function\s*([\w$]+)/);return w?w[1]:null}function gr(A,w){if(A.indexOf)return A.indexOf(w);for(var rr=0,ar=A.length;rr<ar;rr++)if(A[rr]===w)return rr;return-1}function sr(A){if(!t||!A||typeof A!="object")return!1;try{t.call(A);try{o.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function fr(A){if(!_||!A||typeof A!="object")return!1;try{_.call(A,_);try{c.call(A,c)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function ur(A){if(!s||!A||typeof A!="object")return!1;try{return s.call(A),!0}catch{}return!1}function vr(A){if(!o||!A||typeof A!="object")return!1;try{o.call(A);try{t.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function Mr(A){if(!c||!A||typeof A!="object")return!1;try{c.call(A,c);try{_.call(A,_)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function qe(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function Nr(A,w){if(A.length>w.maxStringLength){var rr=A.length-w.maxStringLength,ar="... "+rr+" more character"+(rr>1?"s":"");return Nr(m.call(A,0,w.maxStringLength),w)+ar}var ir=M[w.quoteStyle||"single"];ir.lastIndex=0;var W=O.call(O.call(A,ir,"\\$1"),/[\x00-\x1f]/g,Sr);return j(W,"single",w)}function Sr(A){var w=A.charCodeAt(0),rr={8:"b",9:"t",10:"n",12:"f",13:"r"}[w];return rr?"\\"+rr:"\\x"+(w<16?"0":"")+S.call(w.toString(16))}function qr(A){return"Object("+A+")"}function xr(A){return A+" { ? }"}function re(A,w,rr,ar){var ir=ar?yr(rr,ar):T.call(rr,", ");return A+" ("+w+") {"+ir+"}"}function ee(A){for(var w=0;w<A.length;w++)if(gr(A[w],`
2
2
  `)>=0)return!1;return!0}function _r(A,w){var rr;if(A.indent===" ")rr=" ";else if(typeof A.indent=="number"&&A.indent>0)rr=T.call(Array(A.indent+1)," ");else return null;return{base:rr,prev:T.call(Array(w+1),rr)}}function yr(A,w){if(A.length===0)return"";var rr=`
3
3
  `+w.prev+w.base;return rr+T.call(A,","+rr)+`
4
4
  `+w.prev}function te(A,w){var rr=J(A),ar=[];if(rr){ar.length=A.length;for(var ir=0;ir<A.length;ir++)ar[ir]=G(A,ir)?w(A[ir],A):""}var W=typeof R=="function"?R(A):[],Ar;if(F){Ar={};for(var Tr=0;Tr<W.length;Tr++)Ar["$"+W[Tr]]=W[Tr]}for(var lr in A)G(A,lr)&&(rr&&String(Number(lr))===lr&&lr<A.length||F&&Ar["$"+lr]instanceof Symbol||(q.call(/[^\w$]/,lr)?ar.push(w(lr,A)+": "+w(A[lr],A)):ar.push(lr+": "+w(A[lr],A))));if(typeof R=="function")for(var wr=0;wr<W.length;wr++)er.call(A,W[wr])&&ar.push("["+w(W[wr])+"]: "+w(A[W[wr]],A));return ar}return La}var ja,Af;function Sp(){if(Af)return ja;Af=1;var r=me(),e=Br(),t=function(u,g,_){for(var b=u,c;(c=b.next)!=null;b=c)if(c.key===g)return b.next=c.next,_||(c.next=u.next,u.next=c),c},n=function(u,g){if(u){var _=t(u,g);return _&&_.value}},a=function(u,g,_){var b=t(u,g);b?b.value=_:u.next={key:g,next:u.next,value:_}},i=function(u,g){return u?!!t(u,g):!1},o=function(u,g){if(u)return t(u,g,!0)};return ja=function(){var g,_={assert:function(b){if(!_.has(b))throw new e("Side channel does not contain "+r(b))},delete:function(b){var c=g&&g.next,v=o(g,b);return v&&c&&c===v&&(g=void 0),!!v},get:function(b){return n(g,b)},has:function(b){return i(g,b)},set:function(b,c){g||(g={next:void 0}),a(g,b,c)}};return _},ja}var Ba,wf;function $c(){return wf||(wf=1,Ba=Object),Ba}var Na,Of;function qp(){return Of||(Of=1,Na=Error),Na}var Ga,Rf;function Ap(){return Rf||(Rf=1,Ga=EvalError),Ga}var Ua,Tf;function wp(){return Tf||(Tf=1,Ua=RangeError),Ua}var Ha,If;function Op(){return If||(If=1,Ha=ReferenceError),Ha}var $a,Pf;function Rp(){return Pf||(Pf=1,$a=SyntaxError),$a}var Va,Cf;function Tp(){return Cf||(Cf=1,Va=URIError),Va}var Ka,Ef;function Ip(){return Ef||(Ef=1,Ka=Math.abs),Ka}var za,Mf;function Pp(){return Mf||(Mf=1,za=Math.floor),za}var Wa,xf;function Cp(){return xf||(xf=1,Wa=Math.max),Wa}var ka,Df;function Ep(){return Df||(Df=1,ka=Math.min),ka}var Qa,Ff;function Mp(){return Ff||(Ff=1,Qa=Math.pow),Qa}var Ja,Lf;function xp(){return Lf||(Lf=1,Ja=Math.round),Ja}var Xa,jf;function Dp(){return jf||(jf=1,Xa=Number.isNaN||function(e){return e!==e}),Xa}var Ya,Bf;function Fp(){if(Bf)return Ya;Bf=1;var r=Dp();return Ya=function(t){return r(t)||t===0?t:t<0?-1:1},Ya}var Za,Nf;function Lp(){return Nf||(Nf=1,Za=Object.getOwnPropertyDescriptor),Za}var ri,Gf;function Vc(){if(Gf)return ri;Gf=1;var r=Lp();if(r)try{r([],"length")}catch{r=null}return ri=r,ri}var ei,Uf;function jp(){if(Uf)return ei;Uf=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return ei=r,ei}var ti,Hf;function Bp(){return Hf||(Hf=1,ti=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==a||u.enumerable!==!0)return!1}return!0}),ti}var ni,$f;function Np(){if($f)return ni;$f=1;var r=typeof Symbol<"u"&&Symbol,e=Bp();return ni=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ni}var ai,Vf;function Kc(){return Vf||(Vf=1,ai=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ai}var ii,Kf;function zc(){if(Kf)return ii;Kf=1;var r=$c();return ii=r.getPrototypeOf||null,ii}var oi,zf;function Gp(){if(zf)return oi;zf=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",a=function(g,_){for(var b=[],c=0;c<g.length;c+=1)b[c]=g[c];for(var v=0;v<_.length;v+=1)b[v+g.length]=_[v];return b},i=function(g,_){for(var b=[],c=_,v=0;c<g.length;c+=1,v+=1)b[v]=g[c];return b},o=function(u,g){for(var _="",b=0;b<u.length;b+=1)_+=u[b],b+1<u.length&&(_+=g);return _};return oi=function(g){var _=this;if(typeof _!="function"||e.apply(_)!==n)throw new TypeError(r+_);for(var b=i(arguments,1),c,v=function(){if(this instanceof c){var h=_.apply(this,a(b,arguments));return Object(h)===h?h:this}return _.apply(g,a(b,arguments))},s=t(0,_.length-b.length),l=[],d=0;d<s;d++)l[d]="$"+d;if(c=Function("binder","return function ("+o(l,",")+"){ return binder.apply(this,arguments); }")(v),_.prototype){var f=function(){};f.prototype=_.prototype,c.prototype=new f,f.prototype=null}return c},oi}var ui,Wf;function Se(){if(Wf)return ui;Wf=1;var r=Gp();return ui=Function.prototype.bind||r,ui}var si,kf;function Vi(){return kf||(kf=1,si=Function.prototype.call),si}var fi,Qf;function Wc(){return Qf||(Qf=1,fi=Function.prototype.apply),fi}var ci,Jf;function Up(){return Jf||(Jf=1,ci=typeof Reflect<"u"&&Reflect&&Reflect.apply),ci}var li,Xf;function Hp(){if(Xf)return li;Xf=1;var r=Se(),e=Wc(),t=Vi(),n=Up();return li=n||r.call(t,e),li}var hi,Yf;function kc(){if(Yf)return hi;Yf=1;var r=Se(),e=Br(),t=Vi(),n=Hp();return hi=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},hi}var pi,Zf;function $p(){if(Zf)return pi;Zf=1;var r=kc(),e=Vc(),t;try{t=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!t&&e&&e(Object.prototype,"__proto__"),a=Object,i=a.getPrototypeOf;return pi=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(u){return i(u==null?u:a(u))}:!1,pi}var vi,rc;function Vp(){if(rc)return vi;rc=1;var r=Kc(),e=zc(),t=$p();return vi=r?function(a){return r(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:t?function(a){return t(a)}:null,vi}var yi,ec;function Kp(){if(ec)return yi;ec=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Se();return yi=t.call(r,e),yi}var di,tc;function Ki(){if(tc)return di;tc=1;var r,e=$c(),t=qp(),n=Ap(),a=wp(),i=Op(),o=Rp(),u=Br(),g=Tp(),_=Ip(),b=Pp(),c=Cp(),v=Ep(),s=Mp(),l=xp(),d=Fp(),f=Function,h=function(z){try{return f('"use strict"; return ('+z+").constructor;")()}catch{}},m=Vc(),O=jp(),S=function(){throw new u},y=m?function(){try{return arguments.callee,S}catch{try{return m(arguments,"callee").get}catch{return S}}}():S,q=Np()(),p=Vp(),T=zc(),I=Kc(),C=Wc(),P=Vi(),R={},H=typeof Uint8Array>"u"||!p?r:p(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":q&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&p?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!p?r:p(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!p?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&p?p(""[Symbol.iterator]()):r,"%Symbol%":q?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":H,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":C,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":T,"%Math.abs%":_,"%Math.floor%":b,"%Math.max%":c,"%Math.min%":v,"%Math.pow%":s,"%Math.round%":l,"%Math.sign%":d,"%Reflect.getPrototypeOf%":I};if(p)try{null.error}catch(z){var K=p(p(z));F["%Error.prototype%"]=K}var er=function z(L){var U;if(L==="%AsyncFunction%")U=h("async function () {}");else if(L==="%GeneratorFunction%")U=h("function* () {}");else if(L==="%AsyncGeneratorFunction%")U=h("async function* () {}");else if(L==="%AsyncGenerator%"){var $=z("%AsyncGeneratorFunction%");$&&(U=$.prototype)}else if(L==="%AsyncIteratorPrototype%"){var X=z("%AsyncGenerator%");X&&p&&(U=p(X.prototype))}return F[L]=U,U},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=Se(),Z=Kp(),x=E.call(P,Array.prototype.concat),D=E.call(C,Array.prototype.splice),B=E.call(P,String.prototype.replace),M=E.call(P,String.prototype.slice),j=E.call(P,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,J=function(L){var U=M(L,0,1),$=M(L,-1);if(U==="%"&&$!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if($==="%"&&U!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var X=[];return B(L,k,function(Y,N,tr,G){X[X.length]=tr?B(G,V,"$1"):N||Y}),X},nr=function(L,U){var $=L,X;if(Z(Q,$)&&(X=Q[$],$="%"+X[0]+"%"),Z(F,$)){var Y=F[$];if(Y===R&&(Y=er($)),typeof Y>"u"&&!U)throw new u("intrinsic "+L+" exists, but is not available. Please file an issue!");return{alias:X,name:$,value:Y}}throw new o("intrinsic "+L+" does not exist!")};return di=function(L,U){if(typeof L!="string"||L.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof U!="boolean")throw new u('"allowMissing" argument must be a boolean');if(j(/^%?[^%]*%?$/,L)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=J(L),X=$.length>0?$[0]:"",Y=nr("%"+X+"%",U),N=Y.name,tr=Y.value,G=!1,or=Y.alias;or&&(X=or[0],D($,x([0,1],or)));for(var cr=1,gr=!0;cr<$.length;cr+=1){var sr=$[cr],fr=M(sr,0,1),ur=M(sr,-1);if((fr==='"'||fr==="'"||fr==="`"||ur==='"'||ur==="'"||ur==="`")&&fr!==ur)throw new o("property names with quotes must have matching quotes");if((sr==="constructor"||!gr)&&(G=!0),X+="."+sr,N="%"+X+"%",Z(F,N))tr=F[N];else if(tr!=null){if(!(sr in tr)){if(!U)throw new u("base intrinsic for "+L+" exists, but the property is not available.");return}if(m&&cr+1>=$.length){var vr=m(tr,sr);gr=!!vr,gr&&"get"in vr&&!("originalValue"in vr.get)?tr=vr.get:tr=tr[sr]}else gr=Z(tr,sr),tr=tr[sr];gr&&!G&&(F[N]=tr)}}return tr},di}var gi,nc;function Qc(){if(nc)return gi;nc=1;var r=Ki(),e=kc(),t=e([r("%String.prototype.indexOf%")]);return gi=function(a,i){var o=r(a,!!i);return typeof o=="function"&&t(a,".prototype.")>-1?e([o]):o},gi}var _i,ac;function Jc(){if(ac)return _i;ac=1;var r=Ki(),e=Qc(),t=me(),n=Br(),a=r("%Map%",!0),i=e("Map.prototype.get",!0),o=e("Map.prototype.set",!0),u=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),_=e("Map.prototype.size",!0);return _i=!!a&&function(){var c,v={assert:function(s){if(!v.has(s))throw new n("Side channel does not contain "+t(s))},delete:function(s){if(c){var l=g(c,s);return _(c)===0&&(c=void 0),l}return!1},get:function(s){if(c)return i(c,s)},has:function(s){return c?u(c,s):!1},set:function(s,l){c||(c=new a),o(c,s,l)}};return v},_i}var bi,ic;function zp(){if(ic)return bi;ic=1;var r=Ki(),e=Qc(),t=me(),n=Jc(),a=Br(),i=r("%WeakMap%",!0),o=e("WeakMap.prototype.get",!0),u=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),_=e("WeakMap.prototype.delete",!0);return bi=i?function(){var c,v,s={assert:function(l){if(!s.has(l))throw new a("Side channel does not contain "+t(l))},delete:function(l){if(i&&l&&(typeof l=="object"||typeof l=="function")){if(c)return _(c,l)}else if(n&&v)return v.delete(l);return!1},get:function(l){return i&&l&&(typeof l=="object"||typeof l=="function")&&c?o(c,l):v&&v.get(l)},has:function(l){return i&&l&&(typeof l=="object"||typeof l=="function")&&c?g(c,l):!!v&&v.has(l)},set:function(l,d){i&&l&&(typeof l=="object"||typeof l=="function")?(c||(c=new i),u(c,l,d)):n&&(v||(v=n()),v.set(l,d))}};return s}:n,bi}var mi,oc;function Wp(){if(oc)return mi;oc=1;var r=Br(),e=me(),t=Sp(),n=Jc(),a=zp(),i=a||n||t;return mi=function(){var u,g={assert:function(_){if(!g.has(_))throw new r("Side channel does not contain "+e(_))},delete:function(_){return!!u&&u.delete(_)},get:function(_){return u&&u.get(_)},has:function(_){return!!u&&u.has(_)},set:function(_,b){u||(u=i()),u.set(_,b)}};return g},mi}var Si,uc;function zi(){if(uc)return Si;uc=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Si={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Si}var qi,sc;function Xc(){if(sc)return qi;sc=1;var r=zi(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var f=[],h=0;h<256;++h)f.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return f}(),a=function(h){for(;h.length>1;){var m=h.pop(),O=m.obj[m.prop];if(t(O)){for(var S=[],y=0;y<O.length;++y)typeof O[y]<"u"&&S.push(O[y]);m.obj[m.prop]=S}}},i=function(h,m){for(var O=m&&m.plainObjects?{__proto__:null}:{},S=0;S<h.length;++S)typeof h[S]<"u"&&(O[S]=h[S]);return O},o=function f(h,m,O){if(!m)return h;if(typeof m!="object"&&typeof m!="function"){if(t(h))h.push(m);else if(h&&typeof h=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,m))&&(h[m]=!0);else return[h,m];return h}if(!h||typeof h!="object")return[h].concat(m);var S=h;return t(h)&&!t(m)&&(S=i(h,O)),t(h)&&t(m)?(m.forEach(function(y,q){if(e.call(h,q)){var p=h[q];p&&typeof p=="object"&&y&&typeof y=="object"?h[q]=f(p,y,O):h.push(y)}else h[q]=y}),h):Object.keys(m).reduce(function(y,q){var p=m[q];return e.call(y,q)?y[q]=f(y[q],p,O):y[q]=p,y},S)},u=function(h,m){return Object.keys(m).reduce(function(O,S){return O[S]=m[S],O},h)},g=function(f,h,m){var O=f.replace(/\+/g," ");if(m==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},_=1024,b=function(h,m,O,S,y){if(h.length===0)return h;var q=h;if(typeof h=="symbol"?q=Symbol.prototype.toString.call(h):typeof h!="string"&&(q=String(h)),O==="iso-8859-1")return escape(q).replace(/%u[0-9a-f]{4}/gi,function(H){return"%26%23"+parseInt(H.slice(2),16)+"%3B"});for(var p="",T=0;T<q.length;T+=_){for(var I=q.length>=_?q.slice(T,T+_):q,C=[],P=0;P<I.length;++P){var R=I.charCodeAt(P);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||y===r.RFC1738&&(R===40||R===41)){C[C.length]=I.charAt(P);continue}if(R<128){C[C.length]=n[R];continue}if(R<2048){C[C.length]=n[192|R>>6]+n[128|R&63];continue}if(R<55296||R>=57344){C[C.length]=n[224|R>>12]+n[128|R>>6&63]+n[128|R&63];continue}P+=1,R=65536+((R&1023)<<10|I.charCodeAt(P)&1023),C[C.length]=n[240|R>>18]+n[128|R>>12&63]+n[128|R>>6&63]+n[128|R&63]}p+=C.join("")}return p},c=function(h){for(var m=[{obj:{o:h},prop:"o"}],O=[],S=0;S<m.length;++S)for(var y=m[S],q=y.obj[y.prop],p=Object.keys(q),T=0;T<p.length;++T){var I=p[T],C=q[I];typeof C=="object"&&C!==null&&O.indexOf(C)===-1&&(m.push({obj:q,prop:I}),O.push(C))}return a(m),h},v=function(h){return Object.prototype.toString.call(h)==="[object RegExp]"},s=function(h){return!h||typeof h!="object"?!1:!!(h.constructor&&h.constructor.isBuffer&&h.constructor.isBuffer(h))},l=function(h,m){return[].concat(h,m)},d=function(h,m){if(t(h)){for(var O=[],S=0;S<h.length;S+=1)O.push(m(h[S]));return O}return m(h)};return qi={arrayToObject:i,assign:u,combine:l,compact:c,decode:g,encode:b,isBuffer:s,isRegExp:v,maybeMap:d,merge:o},qi}var Ai,fc;function kp(){if(fc)return Ai;fc=1;var r=Wp(),e=Xc(),t=zi(),n=Object.prototype.hasOwnProperty,a={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,h){return f+"["+h+"]"},repeat:function(f){return f}},i=Array.isArray,o=Array.prototype.push,u=function(d,f){o.apply(d,i(f)?f:[f])},g=Date.prototype.toISOString,_=t.default,b={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:_,formatter:t.formatters[_],indices:!1,serializeDate:function(f){return g.call(f)},skipNulls:!1,strictNullHandling:!1},c=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},v={},s=function d(f,h,m,O,S,y,q,p,T,I,C,P,R,H,F,K,er,Q){for(var E=f,Z=Q,x=0,D=!1;(Z=Z.get(v))!==void 0&&!D;){var B=Z.get(f);if(x+=1,typeof B<"u"){if(B===x)throw new RangeError("Cyclic object value");D=!0}typeof Z.get(v)>"u"&&(x=0)}if(typeof I=="function"?E=I(h,E):E instanceof Date?E=R(E):m==="comma"&&i(E)&&(E=e.maybeMap(E,function(N){return N instanceof Date?R(N):N})),E===null){if(y)return T&&!K?T(h,b.encoder,er,"key",H):h;E=""}if(c(E)||e.isBuffer(E)){if(T){var M=K?h:T(h,b.encoder,er,"key",H);return[F(M)+"="+F(T(E,b.encoder,er,"value",H))]}return[F(h)+"="+F(String(E))]}var j=[];if(typeof E>"u")return j;var k;if(m==="comma"&&i(E))K&&T&&(E=e.maybeMap(E,T)),k=[{value:E.length>0?E.join(",")||null:void 0}];else if(i(I))k=I;else{var V=Object.keys(E);k=C?V.sort(C):V}var J=p?String(h).replace(/\./g,"%2E"):String(h),nr=O&&i(E)&&E.length===1?J+"[]":J;if(S&&i(E)&&E.length===0)return nr+"[]";for(var z=0;z<k.length;++z){var L=k[z],U=typeof L=="object"&&L&&typeof L.value<"u"?L.value:E[L];if(!(q&&U===null)){var $=P&&p?String(L).replace(/\./g,"%2E"):String(L),X=i(E)?typeof m=="function"?m(nr,$):nr:nr+(P?"."+$:"["+$+"]");Q.set(f,x);var Y=r();Y.set(v,Q),u(j,d(U,X,m,O,S,y,q,p,m==="comma"&&K&&i(E)?null:T,I,C,P,R,H,F,K,er,Y))}}return j},l=function(f){if(!f)return b;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var h=f.charset||b.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=t.default;if(typeof f.format<"u"){if(!n.call(t.formatters,f.format))throw new TypeError("Unknown format option provided.");m=f.format}var O=t.formatters[m],S=b.filter;(typeof f.filter=="function"||i(f.filter))&&(S=f.filter);var y;if(f.arrayFormat in a?y=f.arrayFormat:"indices"in f?y=f.indices?"indices":"repeat":y=b.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var q=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:b.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:b.addQueryPrefix,allowDots:q,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:b.allowEmptyArrays,arrayFormat:y,charset:h,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:b.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?b.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:b.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:b.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:b.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:b.encodeValuesOnly,filter:S,format:m,formatter:O,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:b.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:b.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:b.strictNullHandling}};return Ai=function(d,f){var h=d,m=l(f),O,S;typeof m.filter=="function"?(S=m.filter,h=S("",h)):i(m.filter)&&(S=m.filter,O=S);var y=[];if(typeof h!="object"||h===null)return"";var q=a[m.arrayFormat],p=q==="comma"&&m.commaRoundTrip;O||(O=Object.keys(h)),m.sort&&O.sort(m.sort);for(var T=r(),I=0;I<O.length;++I){var C=O[I],P=h[C];m.skipNulls&&P===null||u(y,s(P,C,q,p,m.allowEmptyArrays,m.strictNullHandling,m.skipNulls,m.encodeDotInKeys,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,T))}var R=y.join(m.delimiter),H=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?H+="utf8=%26%2310003%3B&":H+="utf8=%E2%9C%93&"),R.length>0?H+R:""},Ai}var wi,cc;function Qp(){if(cc)return wi;cc=1;var r=Xc(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(v){return v.replace(/&#(\d+);/g,function(s,l){return String.fromCharCode(parseInt(l,10))})},i=function(v,s,l){if(v&&typeof v=="string"&&s.comma&&v.indexOf(",")>-1)return v.split(",");if(s.throwOnLimitExceeded&&l>=s.arrayLimit)throw new RangeError("Array limit exceeded. Only "+s.arrayLimit+" element"+(s.arrayLimit===1?"":"s")+" allowed in an array.");return v},o="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",g=function(s,l){var d={__proto__:null},f=l.ignoreQueryPrefix?s.replace(/^\?/,""):s;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=l.parameterLimit===1/0?void 0:l.parameterLimit,m=f.split(l.delimiter,l.throwOnLimitExceeded?h+1:h);if(l.throwOnLimitExceeded&&m.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(h===1?"":"s")+" allowed.");var O=-1,S,y=l.charset;if(l.charsetSentinel)for(S=0;S<m.length;++S)m[S].indexOf("utf8=")===0&&(m[S]===u?y="utf-8":m[S]===o&&(y="iso-8859-1"),O=S,S=m.length);for(S=0;S<m.length;++S)if(S!==O){var q=m[S],p=q.indexOf("]="),T=p===-1?q.indexOf("="):p+1,I,C;T===-1?(I=l.decoder(q,n.decoder,y,"key"),C=l.strictNullHandling?null:""):(I=l.decoder(q.slice(0,T),n.decoder,y,"key"),C=r.maybeMap(i(q.slice(T+1),l,t(d[I])?d[I].length:0),function(R){return l.decoder(R,n.decoder,y,"value")})),C&&l.interpretNumericEntities&&y==="iso-8859-1"&&(C=a(String(C))),q.indexOf("[]=")>-1&&(C=t(C)?[C]:C);var P=e.call(d,I);P&&l.duplicates==="combine"?d[I]=r.combine(d[I],C):(!P||l.duplicates==="last")&&(d[I]=C)}return d},_=function(v,s,l,d){var f=0;if(v.length>0&&v[v.length-1]==="[]"){var h=v.slice(0,-1).join("");f=Array.isArray(s)&&s[h]?s[h].length:0}for(var m=d?s:i(s,l,f),O=v.length-1;O>=0;--O){var S,y=v[O];if(y==="[]"&&l.parseArrays)S=l.allowEmptyArrays&&(m===""||l.strictNullHandling&&m===null)?[]:r.combine([],m);else{S=l.plainObjects?{__proto__:null}:{};var q=y.charAt(0)==="["&&y.charAt(y.length-1)==="]"?y.slice(1,-1):y,p=l.decodeDotInKeys?q.replace(/%2E/g,"."):q,T=parseInt(p,10);!l.parseArrays&&p===""?S={0:m}:!isNaN(T)&&y!==p&&String(T)===p&&T>=0&&l.parseArrays&&T<=l.arrayLimit?(S=[],S[T]=m):p!=="__proto__"&&(S[p]=m)}m=S}return m},b=function(s,l,d,f){if(s){var h=d.allowDots?s.replace(/\.([^.[]+)/g,"[$1]"):s,m=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,S=d.depth>0&&m.exec(h),y=S?h.slice(0,S.index):h,q=[];if(y){if(!d.plainObjects&&e.call(Object.prototype,y)&&!d.allowPrototypes)return;q.push(y)}for(var p=0;d.depth>0&&(S=O.exec(h))!==null&&p<d.depth;){if(p+=1,!d.plainObjects&&e.call(Object.prototype,S[1].slice(1,-1))&&!d.allowPrototypes)return;q.push(S[1])}if(S){if(d.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+d.depth+" and strictDepth is true");q.push("["+h.slice(S.index)+"]")}return _(q,l,d,f)}},c=function(s){if(!s)return n;if(typeof s.allowEmptyArrays<"u"&&typeof s.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof s.decodeDotInKeys<"u"&&typeof s.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(s.decoder!==null&&typeof s.decoder<"u"&&typeof s.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof s.charset<"u"&&s.charset!=="utf-8"&&s.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof s.throwOnLimitExceeded<"u"&&typeof s.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var l=typeof s.charset>"u"?n.charset:s.charset,d=typeof s.duplicates>"u"?n.duplicates:s.duplicates;if(d!=="combine"&&d!=="first"&&d!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var f=typeof s.allowDots>"u"?s.decodeDotInKeys===!0?!0:n.allowDots:!!s.allowDots;return{allowDots:f,allowEmptyArrays:typeof s.allowEmptyArrays=="boolean"?!!s.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof s.allowPrototypes=="boolean"?s.allowPrototypes:n.allowPrototypes,allowSparse:typeof s.allowSparse=="boolean"?s.allowSparse:n.allowSparse,arrayLimit:typeof s.arrayLimit=="number"?s.arrayLimit:n.arrayLimit,charset:l,charsetSentinel:typeof s.charsetSentinel=="boolean"?s.charsetSentinel:n.charsetSentinel,comma:typeof s.comma=="boolean"?s.comma:n.comma,decodeDotInKeys:typeof s.decodeDotInKeys=="boolean"?s.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof s.decoder=="function"?s.decoder:n.decoder,delimiter:typeof s.delimiter=="string"||r.isRegExp(s.delimiter)?s.delimiter:n.delimiter,depth:typeof s.depth=="number"||s.depth===!1?+s.depth:n.depth,duplicates:d,ignoreQueryPrefix:s.ignoreQueryPrefix===!0,interpretNumericEntities:typeof s.interpretNumericEntities=="boolean"?s.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof s.parameterLimit=="number"?s.parameterLimit:n.parameterLimit,parseArrays:s.parseArrays!==!1,plainObjects:typeof s.plainObjects=="boolean"?s.plainObjects:n.plainObjects,strictDepth:typeof s.strictDepth=="boolean"?!!s.strictDepth:n.strictDepth,strictNullHandling:typeof s.strictNullHandling=="boolean"?s.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof s.throwOnLimitExceeded=="boolean"?s.throwOnLimitExceeded:!1}};return wi=function(v,s){var l=c(s);if(v===""||v===null||typeof v>"u")return l.plainObjects?{__proto__:null}:{};for(var d=typeof v=="string"?g(v,l):v,f=l.plainObjects?{__proto__:null}:{},h=Object.keys(d),m=0;m<h.length;++m){var O=h[m],S=b(O,d[O],l,typeof v=="string");f=r.merge(f,S,l)}return l.allowSparse===!0?f:r.compact(f)},wi}var Oi,lc;function Jp(){if(lc)return Oi;lc=1;var r=kp(),e=Qp(),t=zi();return Oi={formats:t,parse:e,stringify:r},Oi}var hc;function Xp(){if(hc)return Ir;hc=1;var r=mp();function e(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
@@ -0,0 +1,2 @@
1
+ import{q as We,Y as te,h as T,as as wt,ap as Et,C as At,d as kt,o as Ce,a6 as Tt,W as Ot,X as Ne,Z as F,i as I,ay as Rt,_ as je,f as ze,H as St,aC as Je,T as Ct,a1 as Nt,M as Be,aH as se,P as Le,aI as _e,aJ as Pe,aK as Bt,aB as Lt,aL as Pt,g as xt,aM as me,aN as qt,ar as It,aO as Xe,aP as Dt,aQ as Mt,R as Ut,aR as Vt,aS as Ft,aT as H,aU as $,x as Ht}from"./CDVeMiAl.js";import{k as $t,l as Kt,e as Yt,o as Wt,p as jt,t as zt,a as Jt}from"./qSIFE6bv.js";import{b as Xt}from"./CvUX3i4L.js";function Qt(s,e){if(e){const t=document.body;s.autofocus=!0,We(()=>{document.activeElement===t&&s.focus()})}}let re=null;function fr(s,e){return e}function Gt(s,e,t,r){for(var i=[],n=e.length,o=0;o<n;o++)Bt(e[o].e,i,!0);var a=n>0&&i.length===0&&t!==null;if(a){var c=t.parentNode;Lt(c),c.append(t),r.clear(),L(s,e[0].prev,e[n-1].next)}Pt(i,()=>{for(var f=0;f<n;f++){var l=e[f];a||(r.delete(l.k),L(s,l.prev,l.next)),xt(l.e,!a)}})}function lr(s,e,t,r,i,n=null){var o=s,a={flags:e,items:new Map,first:null},c=(e&Xe)!==0;if(c){var f=s;o=T?te(wt(f)):f.appendChild(Et())}T&&At();var l=null,_=!1,u=Tt(()=>{var v=t();return Ct(v)?v:v==null?[]:Je(v)});kt(()=>{var v=Ce(u),g=v.length;if(_&&g===0)return;_=g===0;let m=!1;if(T){var A=o.data===Ot;A!==(g===0)&&(o=Ne(),te(o),F(!1),m=!0)}if(T){for(var b=null,k,p=0;p<g;p++){if(I.nodeType===8&&I.data===Rt){o=I,m=!0,F(!1);break}var h=v[p],d=r(h,p);k=Qe(I,a,b,null,h,d,p,i,e,t),a.items.set(d,k),b=k}g>0&&te(Ne())}T||Zt(v,a,o,i,e,r,t),n!==null&&(g===0?l?je(l):l=ze(()=>n(o)):l!==null&&St(l,()=>{l=null})),m&&F(!0),Ce(u)}),T&&(o=I)}function Zt(s,e,t,r,i,n,o){var ke,Te,Oe,Re;var a=(i&Dt)!==0,c=(i&(me|_e))!==0,f=s.length,l=e.items,_=e.first,u=_,v,g=null,m,A=[],b=[],k,p,h,d;if(a)for(d=0;d<f;d+=1)k=s[d],p=n(k,d),h=l.get(p),h!==void 0&&((ke=h.a)==null||ke.measure(),(m??(m=new Set)).add(h));for(d=0;d<f;d+=1){if(k=s[d],p=n(k,d),h=l.get(p),h===void 0){var B=u?u.e.nodes_start:t;g=Qe(B,e,g,g===null?e.first:g.next,k,p,d,r,i,o),l.set(p,g),A=[],b=[],u=g.next;continue}if(c&&es(h,k,d,i),(h.e.f&se)!==0&&(je(h.e),a&&((Te=h.a)==null||Te.unfix(),(m??(m=new Set)).delete(h))),h!==u){if(v!==void 0&&v.has(h)){if(A.length<b.length){var w=b[0],S;g=w.prev;var K=A[0],Z=A[A.length-1];for(S=0;S<A.length;S+=1)xe(A[S],w,t);for(S=0;S<b.length;S+=1)v.delete(b[S]);L(e,K.prev,Z.next),L(e,g,K),L(e,Z,w),u=w,g=Z,d-=1,A=[],b=[]}else v.delete(h),xe(h,u,t),L(e,h.prev,h.next),L(e,h,g===null?e.first:g.next),L(e,g,h),g=h;continue}for(A=[],b=[];u!==null&&u.k!==p;)(u.e.f&se)===0&&(v??(v=new Set)).add(u),b.push(u),u=u.next;if(u===null)continue;h=u}A.push(h),g=h,u=h.next}if(u!==null||v!==void 0){for(var q=v===void 0?[]:Je(v);u!==null;)(u.e.f&se)===0&&q.push(u),u=u.next;var ee=q.length;if(ee>0){var bt=(i&Xe)!==0&&f===0?t:null;if(a){for(d=0;d<ee;d+=1)(Oe=q[d].a)==null||Oe.measure();for(d=0;d<ee;d+=1)(Re=q[d].a)==null||Re.fix()}Gt(e,q,bt,l)}}a&&We(()=>{var Se;if(m!==void 0)for(h of m)(Se=h.a)==null||Se.apply()}),Le.first=e.first&&e.first.e,Le.last=g&&g.e}function es(s,e,t,r){(r&me)!==0&&Pe(s.v,e),(r&_e)!==0?Pe(s.i,t):s.i=t}function Qe(s,e,t,r,i,n,o,a,c,f){var l=re,_=(c&me)!==0,u=(c&qt)===0,v=_?u?Nt(i):Be(i):i,g=(c&_e)===0?o:Be(o),m={i:g,v,k:n,a:null,e:null,prev:t,next:r};re=m;try{return m.e=ze(()=>a(s,v,g,f),T),m.e.prev=t&&t.e,m.e.next=r&&r.e,t===null?e.first=m:(t.next=m,t.e.next=m.e),r!==null&&(r.prev=m,r.e.prev=m.e),m}finally{re=l}}function xe(s,e,t){for(var r=s.next?s.next.e.nodes_start:t,i=e?e.e.nodes_start:t,n=s.e.nodes_start;n!==r;){var o=It(n);i.before(n),n=o}}function L(s,e,t){e===null?s.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ge(s){var e,t,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var i=s.length;for(e=0;e<i;e++)s[e]&&(t=Ge(s[e]))&&(r&&(r+=" "),r+=t)}else for(t in s)s[t]&&(r&&(r+=" "),r+=t);return r}function ts(){for(var s,e,t=0,r="",i=arguments.length;t<i;t++)(s=arguments[t])&&(e=Ge(s))&&(r&&(r+=" "),r+=e);return r}function ss(s){return typeof s=="object"?ts(s):s??""}const qe=[...`
2
+ \r\f \v\uFEFF`];function rs(s,e,t){var r=s==null?"":""+s;if(e&&(r=r?r+" "+e:e),t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+n;(o===0||qe.includes(r[o-1]))&&(a===r.length||qe.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Ie(s,e=!1){var t=e?" !important;":";",r="";for(var i in s){var n=s[i];n!=null&&n!==""&&(r+=" "+i+": "+n+t)}return r}function ie(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function is(s,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,o=0,a=!1,c=[];r&&c.push(...Object.keys(r).map(ie)),i&&c.push(...Object.keys(i).map(ie));var f=0,l=-1;const m=s.length;for(var _=0;_<m;_++){var u=s[_];if(a?u==="/"&&s[_-1]==="*"&&(a=!1):n?n===u&&(n=!1):u==="/"&&s[_+1]==="*"?a=!0:u==='"'||u==="'"?n=u:u==="("?o++:u===")"&&o--,!a&&n===!1&&o===0){if(u===":"&&l===-1)l=_;else if(u===";"||_===m-1){if(l!==-1){var v=ie(s.substring(f,l).trim());if(!c.includes(v)){u!==";"&&_++;var g=s.substring(f,_).trim();t+=" "+g+";"}}f=_+1,l=-1}}}}return r&&(t+=Ie(r)),i&&(t+=Ie(i,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function Ze(s,e,t,r,i,n){var o=s.__className;if(T||o!==t){var a=rs(t,r,n);(!T||a!==s.getAttribute("class"))&&(a==null?s.removeAttribute("class"):e?s.className=a:s.setAttribute("class",a)),s.__className=t}else if(n&&i!==n)for(var c in n){var f=!!n[c];(i==null||f!==!!i[c])&&s.classList.toggle(c,f)}return n}function ne(s,e={},t,r){for(var i in t){var n=t[i];e[i]!==n&&(t[i]==null?s.style.removeProperty(i):s.style.setProperty(i,n,r))}}function ns(s,e,t,r){var i=s.__style;if(T||i!==e){var n=is(e,r);(!T||n!==s.getAttribute("style"))&&(n==null?s.removeAttribute("style"):s.style.cssText=n),s.__style=e}else r&&(Array.isArray(r)?(ne(s,t==null?void 0:t[0],r[0]),ne(s,t==null?void 0:t[1],r[1],"important")):ne(s,t,r));return r}const D=Symbol("class"),M=Symbol("style"),et=Symbol("is custom element"),tt=Symbol("is html");function os(s,e){e?s.hasAttribute("selected")||s.setAttribute("selected",""):s.removeAttribute("selected")}function De(s,e,t,r){var i=st(s);T&&(i[e]=s.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&s.nodeName==="LINK")||i[e]!==(i[e]=t)&&(e==="loading"&&(s[Ft]=t),t==null?s.removeAttribute(e):typeof t!="string"&&rt(s).includes(e)?s[e]=t:s.setAttribute(e,t))}function dr(s,e,t,r,i=!1){var n=st(s),o=n[et],a=!n[tt];let c=T&&o;c&&F(!1);var f=e||{},l=s.tagName==="OPTION";for(var _ in e)_ in t||(t[_]=null);t.class?t.class=ss(t.class):t[D]&&(t.class=null),t[M]&&(t.style??(t.style=null));var u=rt(s);for(const p in t){let h=t[p];if(l&&p==="value"&&h==null){s.value=s.__value="",f[p]=h;continue}if(p==="class"){var v=s.namespaceURI==="http://www.w3.org/1999/xhtml";Ze(s,v,h,r,e==null?void 0:e[D],t[D]),f[p]=h,f[D]=t[D];continue}if(p==="style"){ns(s,h,e==null?void 0:e[M],t[M]),f[p]=h,f[M]=t[M];continue}var g=f[p];if(h!==g){f[p]=h;var m=p[0]+p[1];if(m!=="$$")if(m==="on"){const d={},B="$$"+p;let w=p.slice(2);var A=jt(w);if($t(w)&&(w=w.slice(0,-7),d.capture=!0),!A&&g){if(h!=null)continue;s.removeEventListener(w,f[B],d),f[B]=null}if(h!=null)if(A)s[`__${w}`]=h,Yt([w]);else{let S=function(K){f[p].call(this,K)};f[B]=Kt(w,s,S,d)}else A&&(s[`__${w}`]=void 0)}else if(p==="style")De(s,p,h);else if(p==="autofocus")Qt(s,!!h);else if(!o&&(p==="__value"||p==="value"&&h!=null))s.value=s.__value=h;else if(p==="selected"&&l)os(s,h);else{var b=p;a||(b=Wt(b));var k=b==="defaultValue"||b==="defaultChecked";if(h==null&&!o&&!k)if(n[p]=null,b==="value"||b==="checked"){let d=s;const B=e===void 0;if(b==="value"){let w=d.defaultValue;d.removeAttribute(b),d.defaultValue=w,d.value=d.__value=B?w:null}else{let w=d.defaultChecked;d.removeAttribute(b),d.defaultChecked=w,d.checked=B?w:!1}}else s.removeAttribute(p);else k||u.includes(b)&&(o||typeof h!="string")?s[b]=h:typeof h!="function"&&De(s,b,h)}}}return c&&F(!0),f}function st(s){return s.__attributes??(s.__attributes={[et]:s.nodeName.includes("-"),[tt]:s.namespaceURI===Mt})}var Me=new Map;function rt(s){var e=Me.get(s.nodeName);if(e)return e;Me.set(s.nodeName,e=[]);for(var t,r=s,i=Element.prototype;i!==r;){t=Vt(r);for(var n in t)t[n].set&&e.push(n);r=Ut(r)}return e}const oe=H([]);let Ue=0;const it={...oe,addItem(s){const e=Ue+1;return oe.update(t=>[...t,{id:e,...s}]),Ue=e,()=>it.removeItem(e)},removeItem(s){oe.update(e=>{const t=e.slice();return t.splice(t.findIndex(r=>r.id===s),1),t})}},as=H(!1),pr=H(!1),cs=H(!1),nt=H({}),hs=$([nt],([s])=>[s==null?void 0:s.protocol,s==null?void 0:s.origin].join("")),us=$([nt],([s])=>s.port),Ve=s=>Object.values(s).length>0,ot=$([as,hs,us],([s,e,t])=>{const r=`${typeof window<"u"?window.location.protocol:"http:"}//${e}:${t}`;return{full:r,naked:[e,t].join(":"),get(i){return`${r}${i}`},endpoint:s||!e?"":`${e}:${t}`,server(i){return`${this.endpoint}${i}`}}}),yr=$([ot],([s])=>{const e=async(t,r={},i={})=>{try{const n=new URL([s.endpoint.startsWith("http")?"":window.location.origin,s.endpoint,"/api",t].join(""));i.method==="POST"&&Ve(r)?i.body=JSON.stringify(r):Ve(r)&&(n.search=new URLSearchParams(r).toString());const o=await fetch(n,i),a=await o.json();if(o.status!==200)throw new Error(a);return a}catch(n){throw it.addItem({message:"Api Error",type:"error"}),n}};return{health(){return e("/health")},reauthenticate(){return e("/reauthenticate")},info(){return e("/info")},search(t){return e("/search",{q:t})},artist(t){return e(`/artist/${t}`)},album(t){return e(`/album/${t}`)},addTrack(t,r){return e("/add",{uri:t,name:r})},play(){return e("/play")},pause(){return e("/pause")},skipForward(){return e("/skipForward")},skipBackward(){return e("/skipBackward")}}}),N=Object.create(null);N.open="0";N.close="1";N.ping="2";N.pong="3";N.message="4";N.upgrade="5";N.noop="6";const j=Object.create(null);Object.keys(N).forEach(s=>{j[N[s]]=s});const fe={type:"error",data:"parser error"},at=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ct=typeof ArrayBuffer=="function",ht=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,ve=({type:s,data:e},t,r)=>at&&e instanceof Blob?t?r(e):Fe(e,r):ct&&(e instanceof ArrayBuffer||ht(e))?t?r(e):Fe(new Blob([e]),r):r(N[s]+(e||"")),Fe=(s,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(s)};function He(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ae;function fs(s,e){if(at&&s.data instanceof Blob)return s.data.arrayBuffer().then(He).then(e);if(ct&&(s.data instanceof ArrayBuffer||ht(s.data)))return e(He(s.data));ve(s,!1,t=>{ae||(ae=new TextEncoder),e(ae.encode(t))})}const $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<$e.length;s++)V[$e.charCodeAt(s)]=s;const ls=s=>{let e=s.length*.75,t=s.length,r,i=0,n,o,a,c;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const f=new ArrayBuffer(e),l=new Uint8Array(f);for(r=0;r<t;r+=4)n=V[s.charCodeAt(r)],o=V[s.charCodeAt(r+1)],a=V[s.charCodeAt(r+2)],c=V[s.charCodeAt(r+3)],l[i++]=n<<2|o>>4,l[i++]=(o&15)<<4|a>>2,l[i++]=(a&3)<<6|c&63;return f},ds=typeof ArrayBuffer=="function",be=(s,e)=>{if(typeof s!="string")return{type:"message",data:ut(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:ps(s.substring(1),e)}:j[t]?s.length>1?{type:j[t],data:s.substring(1)}:{type:j[t]}:fe},ps=(s,e)=>{if(ds){const t=ls(s);return ut(t,e)}else return{base64:!0,data:s}},ut=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ft="",ys=(s,e)=>{const t=s.length,r=new Array(t);let i=0;s.forEach((n,o)=>{ve(n,!1,a=>{r[o]=a,++i===t&&e(r.join(ft))})})},gs=(s,e)=>{const t=s.split(ft),r=[];for(let i=0;i<t.length;i++){const n=be(t[i],e);if(r.push(n),n.type==="error")break}return r};function _s(){return new TransformStream({transform(s,e){fs(s,t=>{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{i=new Uint8Array(9);const n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let ce;function Y(s){return s.reduce((e,t)=>e+t.length,0)}function W(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)t[i]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),t}function ms(s,e){ce||(ce=new TextDecoder);const t=[];let r=0,i=-1,n=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(r===0){if(Y(t)<1)break;const c=W(t,1);n=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Y(t)<2)break;const c=W(t,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Y(t)<8)break;const c=W(t,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(fe);break}i=l*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Y(t)<i)break;const c=W(t,i);a.enqueue(be(n?c:ce.decode(c),e)),r=0}if(i===0||i>s){a.enqueue(fe);break}}}})}const lt=4;function E(s){if(s)return vs(s)}function vs(s){for(var e in E.prototype)s[e]=E.prototype[e];return s}E.prototype.on=E.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};E.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,i=0;i<t.length;i++)if(r=t[i],r===e||r.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+s],this};E.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,i=t.length;r<i;++r)t[r].apply(this,e)}return this};E.prototype.emitReserved=E.prototype.emit;E.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};E.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Q=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),bs="arraybuffer";function dt(s,...e){return e.reduce((t,r)=>(s.hasOwnProperty(r)&&(t[r]=s[r]),t),{})}const ws=O.setTimeout,Es=O.clearTimeout;function G(s,e){e.useNativeTimers?(s.setTimeoutFn=ws.bind(O),s.clearTimeoutFn=Es.bind(O)):(s.setTimeoutFn=O.setTimeout.bind(O),s.clearTimeoutFn=O.clearTimeout.bind(O))}const As=1.33;function ks(s){return typeof s=="string"?Ts(s):Math.ceil((s.byteLength||s.size)*As)}function Ts(s){let e=0,t=0;for(let r=0,i=s.length;r<i;r++)e=s.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function pt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Os(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function Rs(s){let e={},t=s.split("&");for(let r=0,i=t.length;r<i;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Ss extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class we extends E{constructor(e){super(),this.writable=!1,G(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new Ss(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=be(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Os(e);return t.length?"?"+t:""}}class Cs extends we{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};gs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ys(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=pt()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let yt=!1;try{yt=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ns=yt;function Bs(){}class Ls extends Cs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class C extends E{constructor(e,t,r){super(),this.createRequest=e,G(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=dt(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=C.requestsCount++,C.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Bs,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete C.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}C.requestsCount=0;C.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ke);else if(typeof addEventListener=="function"){const s="onpagehide"in O?"pagehide":"unload";addEventListener(s,Ke,!1)}}function Ke(){for(let s in C.requests)C.requests.hasOwnProperty(s)&&C.requests[s].abort()}const Ps=function(){const s=gt({xdomain:!1});return s&&s.responseType!==null}();class xs extends Ls{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ps&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new C(gt,this.uri(),e)}}function gt(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ns))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _t=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qs extends we{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=_t?{}:dt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;ve(r,this.supportsBinary,n=>{try{this.doWrite(r,n)}catch{}i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const he=O.WebSocket||O.MozWebSocket;class Is extends qs{createSocket(e,t,r){return _t?new he(e,t,r):t?new he(e,t):new he(e)}doWrite(e,t){this.ws.send(t)}}class Ds extends we{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ms(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=_s();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const n=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),n())}).catch(a=>{})};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;this._writer.write(r).then(()=>{i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ms={websocket:Is,webtransport:Ds,polling:xs},Us=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function le(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),r=s.indexOf("]");t!=-1&&r!=-1&&(s=s.substring(0,t)+s.substring(t,r).replace(/:/g,";")+s.substring(r,s.length));let i=Us.exec(s||""),n={},o=14;for(;o--;)n[Vs[o]]=i[o]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=Fs(n,n.path),n.queryKey=Hs(n,n.query),n}function Fs(s,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Hs(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,n){i&&(t[i]=n)}),t}const de=typeof addEventListener=="function"&&typeof removeEventListener=="function",z=[];de&&addEventListener("offline",()=>{z.forEach(s=>s())},!1);class P extends E{constructor(e,t){if(super(),this.binaryType=bs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=le(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=le(t.host).host);G(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rs(this.opts.query)),de&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},z.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=lt,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&P.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",P.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(t+=ks(i)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Q(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(P.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),de&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=z.indexOf(this._offlineEventListener);r!==-1&&z.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}P.protocol=lt;class $s extends P{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;P.priorWebsocketSuccess=!1;const i=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;P.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function n(){r||(r=!0,l(),t.close(),t=null)}const o=_=>{const u=new Error("probe error: "+_);u.transport=t.name,n(),this.emitReserved("upgradeError",u)};function a(){o("transport closed")}function c(){o("socket closed")}function f(_){t&&_.name!==t.name&&n()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let Ks=class extends $s{constructor(e,t={}){const r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ms[i]).filter(i=>!!i)),super(e,r)}};function Ys(s,e="",t){let r=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),r=le(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const Ws=typeof ArrayBuffer=="function",js=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,mt=Object.prototype.toString,zs=typeof Blob=="function"||typeof Blob<"u"&&mt.call(Blob)==="[object BlobConstructor]",Js=typeof File=="function"||typeof File<"u"&&mt.call(File)==="[object FileConstructor]";function Ee(s){return Ws&&(s instanceof ArrayBuffer||js(s))||zs&&s instanceof Blob||Js&&s instanceof File}function J(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,r=s.length;t<r;t++)if(J(s[t]))return!0;return!1}if(Ee(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return J(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&J(s[t]))return!0;return!1}function Xs(s){const e=[],t=s.data,r=s;return r.data=pe(t,e),r.attachments=e.length,{packet:r,buffers:e}}function pe(s,e){if(!s)return s;if(Ee(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let r=0;r<s.length;r++)t[r]=pe(s[r],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=pe(s[r],e));return t}return s}function Qs(s,e){return s.data=ye(s.data,e),delete s.attachments,s}function ye(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ye(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ye(s[t],e));return s}const Gs=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zs=5;var y;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(y||(y={}));class er{constructor(e){this.replacer=e}encode(e){return(e.type===y.EVENT||e.type===y.ACK)&&J(e)?this.encodeAsBinary({type:e.type===y.EVENT?y.BINARY_EVENT:y.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===y.BINARY_EVENT||e.type===y.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Xs(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function Ye(s){return Object.prototype.toString.call(s)==="[object Object]"}class Ae extends E{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===y.BINARY_EVENT;r||t.type===y.BINARY_ACK?(t.type=r?y.EVENT:y.ACK,this.reconstructor=new tr(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Ee(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(y[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===y.BINARY_EVENT||r.type===y.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const n=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(Ae.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case y.CONNECT:return Ye(t);case y.DISCONNECT:return t===void 0;case y.CONNECT_ERROR:return typeof t=="string"||Ye(t);case y.EVENT:case y.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Gs.indexOf(t[0])===-1);case y.ACK:case y.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tr{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Qs(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ae,Encoder:er,get PacketType(){return y},protocol:Zs},Symbol.toStringTag,{value:"Module"}));function R(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const rr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vt extends E{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[R(e,"open",this.onopen.bind(this)),R(e,"packet",this.onpacket.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,i,n;if(rr.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:y.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const l=this.ids++,_=t.pop();this._registerAckCallback(l,_),o.id=l}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(n),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const n=(o,a)=>o?i(o):r(a);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case y.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case y.EVENT:case y.BINARY_EVENT:this.onevent(e);break;case y.ACK:case y.BINARY_ACK:this.onack(e);break;case y.DISCONNECT:this.ondisconnect();break;case y.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:y.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class ge extends E{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,G(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||sr;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ks(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){r.onopen(),e&&e()}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=R(t,"error",n);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Q(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new vt(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const U={};function X(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Ys(s,e.path||"/socket.io"),r=t.source,i=t.id,n=t.path,o=U[i]&&n in U[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ge(r,e):(U[i]||(U[i]=new ge(r,e)),c=U[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(X,{Manager:ge,Socket:vt,io:X,connect:X});const ue={current:null},_r=$([ot,cs],([s,e])=>{if(!e)return null;const t=X(s.endpoint);return ue.current&&ue.current.disconnect(),ue.current=t,t});var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ir(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}const nr={},or=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),br=ir(or);var ar=zt('<div><div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div></div>');function wr(s,e){const t=Xt(e,"floating",3,!1);var r=ar();let i;Ht(n=>i=Ze(r,1,"loading svelte-1aqhn4j",null,i,n),[()=>({floating:t()})]),Jt(s,r)}export{wr as L,ot as a,re as b,nt as c,dr as d,De as e,yr as f,vr as g,lr as h,fr as i,cs as j,pr as k,as as l,_r as m,mr as n,br as r,Ze as s,it as t};