quasar-ui-danx 0.4.35 → 0.4.37

Sign up to get free protection for your applications and to get access to all the features.
package/dist/danx.umd.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * Subject to the terms at https://gsap.com/standard-license or for
7
7
  * Club GSAP members, the agreement issued with that membership.
8
8
  * @author: Jack Doyle, jack@greensock.com
9
- */var Re={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ln={duration:.5,overwrite:!1,delay:0},Ji,Ce,ee,We=1e8,Q=1/We,es=Math.PI*2,Zg=es/4,Wg=0,gc=Math.sqrt,Yg=Math.cos,Qg=Math.sin,ge=function(e){return typeof e=="string"},ie=function(e){return typeof e=="function"},Bt=function(e){return typeof e=="number"},ts=function(e){return typeof e>"u"},pt=function(e){return typeof e=="object"},De=function(e){return e!==!1},ns=function(){return typeof window<"u"},wo=function(e){return ie(e)||ge(e)},yc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ee=Array.isArray,rs=/(?:-?\.?\d|\.)+/gi,bc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,vn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,os=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wc=/[+-]=-?[.\d]+/,kc=/[^,'"\[\]\s]+/gi,Kg=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ne,gt,is,ss,Ue={},ko={},xc,Sc=function(e){return(ko=cn(e,Ue))&&Le},ls=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Br=function(e,n){return!n&&console.warn(e)},Cc=function(e,n){return e&&(Ue[e]=n)&&ko&&(ko[e]=n)||Ue},Nr=function(){return 0},Xg={suppressEvents:!0,isStart:!0,kill:!1},xo={suppressEvents:!0,kill:!1},Jg={suppressEvents:!0},as={},Vt=[],cs={},Ec,je={},us={},Tc=30,So=[],ds="",fs=function(e){var n=e[0],r,o;if(pt(n)||ie(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(o=So.length;o--&&!So[o].targetTest(n););r=So[o]}for(o=e.length;o--;)e[o]&&(e[o]._gsap||(e[o]._gsap=new tu(e[o],r)))||e.splice(o,1);return e},an=function(e){return e._gsap||fs(Ke(e))[0]._gsap},Bc=function(e,n,r){return(r=e[n])&&ie(r)?e[n]():ts(r)&&e.getAttribute&&e.getAttribute(n)||r},Pe=function(e,n){return(e=e.split(",")).forEach(n)||e},ae=function(e){return Math.round(e*1e5)/1e5||0},ye=function(e){return Math.round(e*1e7)/1e7||0},Vn=function(e,n){var r=n.charAt(0),o=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+o:r==="-"?e-o:r==="*"?e*o:e/o},ey=function(e,n){for(var r=n.length,o=0;e.indexOf(n[o])<0&&++o<r;);return o<r},Co=function(){var e=Vt.length,n=Vt.slice(0),r,o;for(cs={},Vt.length=0,r=0;r<e;r++)o=n[r],o&&o._lazy&&(o.render(o._lazy[0],o._lazy[1],!0)._lazy=0)},Nc=function(e,n,r,o){Vt.length&&!Ce&&Co(),e.render(n,r,o||Ce&&n<0&&(e._initted||e._startAt)),Vt.length&&!Ce&&Co()},Ic=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(kc).length<2?n:ge(e)?e.trim():e},$c=function(e){return e},Ye=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},ty=function(e){return function(n,r){for(var o in r)o in n||o==="duration"&&e||o==="ease"||(n[o]=r[o])}},cn=function(e,n){for(var r in n)e[r]=n[r];return e},Fc=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=pt(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Eo=function(e,n){var r={},o;for(o in e)o in n||(r[o]=e[o]);return r},Ir=function(e){var n=e.parent||ne,r=e.keyframes?ty(Ee(e.keyframes)):Ye;if(De(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},ny=function(e,n){for(var r=e.length,o=r===n.length;o&&r--&&e[r]===n[r];);return r<0},Ac=function(e,n,r,o,s){r===void 0&&(r="_first"),o===void 0&&(o="_last");var l=e[o],a;if(s)for(a=n[s];l&&l[s]>a;)l=l._prev;return l?(n._next=l._next,l._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[o]=n,n._prev=l,n.parent=n._dp=e,n},To=function(e,n,r,o){r===void 0&&(r="_first"),o===void 0&&(o="_last");var s=n._prev,l=n._next;s?s._next=l:e[r]===n&&(e[r]=l),l?l._prev=s:e[o]===n&&(e[o]=s),n._next=n._prev=n.parent=null},qt=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},un=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},ry=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},hs=function(e,n,r,o){return e._startAt&&(Ce?e._startAt.revert(xo):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,o))},oy=function t(e){return!e||e._ts&&t(e.parent)},Oc=function(e){return e._repeat?qn(e._tTime,e=e.duration()+e._rDelay)*e:0},qn=function(e,n){var r=Math.floor(e/=n);return e&&r===e?r-1:r},Bo=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},No=function(e){return e._end=ye(e._start+(e._tDur/Math.abs(e._ts||e._rts||Q)||0))},Io=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ye(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),No(e),r._dirty||un(r,e)),e},Dc=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Bo(e.rawTime(),n),(!n._dur||Fr(0,n.totalDuration(),r)-n._tTime>Q)&&n.render(r,!0)),un(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Q}},yt=function(e,n,r,o){return n.parent&&qt(n),n._start=ye((Bt(r)?r:r||e!==ne?Qe(e,r,n):e._time)+n._delay),n._end=ye(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Ac(e,n,"_first","_last",e._sort?"_start":0),_s(n)||(e._recent=n),o||Dc(e,n),e._ts<0&&Io(e,e._tTime),e},Pc=function(e,n){return(Ue.ScrollTrigger||ls("scrollTrigger",n))&&Ue.ScrollTrigger.create(n,e)},Mc=function(e,n,r,o,s){if(Ss(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!Ce&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ec!==He.frame)return Vt.push(e),e._lazy=[s,o],1},iy=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},_s=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},sy=function(e,n,r,o){var s=e.ratio,l=n<0||!n&&(!e._start&&iy(e)&&!(!e._initted&&_s(e))||(e._ts<0||e._dp._ts<0)&&!_s(e))?0:1,a=e._rDelay,c=0,u,d,f;if(a&&e._repeat&&(c=Fr(0,e._tDur,n),d=qn(c,a),e._yoyo&&d&1&&(l=1-l),d!==qn(e._tTime,a)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||Ce||o||e._zTime===Q||!n&&e._zTime){if(!e._initted&&Mc(e,n,o,r,c))return;for(f=e._zTime,e._zTime=n||(r?Q:0),r||(r=n&&!f),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,u=e._pt;u;)u.r(l,u.d),u=u._next;n<0&&hs(e,n,r,!0),e._onUpdate&&!r&&ze(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&ze(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&qt(e,1),!r&&!Ce&&(ze(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},ly=function(e,n,r){var o;if(r>n)for(o=e._first;o&&o._start<=r;){if(o.data==="isPause"&&o._start>n)return o;o=o._next}else for(o=e._last;o&&o._start>=r;){if(o.data==="isPause"&&o._start<n)return o;o=o._prev}},Rn=function(e,n,r,o){var s=e._repeat,l=ye(n)||0,a=e._tTime/e._tDur;return a&&!o&&(e._time*=l/e._dur),e._dur=l,e._tDur=s?s<0?1e10:ye(l*(s+1)+e._rDelay*s):l,a>0&&!o&&Io(e,e._tTime=e._tDur*a),e.parent&&No(e),r||un(e.parent,e),e},Lc=function(e){return e instanceof Ie?un(e):Rn(e,e._dur)},ay={_start:0,endTime:Nr,totalDuration:Nr},Qe=function t(e,n,r){var o=e.labels,s=e._recent||ay,l=e.duration()>=We?s.endTime(!1):e._dur,a,c,u;return ge(n)&&(isNaN(n)||n in o)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in o||(o[n]=l),o[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(Ee(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+c:l+c)):n==null?l:+n},$r=function(e,n,r){var o=Bt(n[1]),s=(o?2:1)+(e<2?0:1),l=n[s],a,c;if(o&&(l.duration=n[1]),l.parent=r,e){for(a=l,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=De(c.vars.inherit)&&c.parent;l.immediateRender=De(a.immediateRender),e<2?l.runBackwards=1:l.startAt=n[s-1]}return new fe(n[0],l,n[s+1])},Rt=function(e,n){return e||e===0?n(e):n},Fr=function(e,n,r){return r<e?e:r>n?n:r},Te=function(e,n){return!ge(e)||!(n=Kg.exec(e))?"":n[1]},cy=function(e,n,r){return Rt(r,function(o){return Fr(e,n,o)})},ms=[].slice,vc=function(e,n){return e&&pt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&pt(e[0]))&&!e.nodeType&&e!==gt},uy=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(o){var s;return ge(o)&&!n||vc(o,1)?(s=r).push.apply(s,Ke(o)):r.push(o)})||r},Ke=function(e,n,r){return ee&&!n&&ee.selector?ee.selector(e):ge(e)&&!r&&(is||!jn())?ms.call((n||ss).querySelectorAll(e),0):Ee(e)?uy(e,r):vc(e)?ms.call(e,0):e?[e]:[]},ps=function(e){return e=Ke(e)[0]||Br("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Ke(n,r.querySelectorAll?r:r===e?Br("Invalid scope")||ss.createElement("div"):e)}},Vc=function(e){return e.sort(function(){return .5-Math.random()})},qc=function(e){if(ie(e))return e;var n=pt(e)?e:{each:e},r=dn(n.ease),o=n.from||0,s=parseFloat(n.base)||0,l={},a=o>0&&o<1,c=isNaN(o)||a,u=n.axis,d=o,f=o;return ge(o)?d=f={center:.5,edges:.5,end:1}[o]||0:!a&&c&&(d=o[0],f=o[1]),function(h,_,p){var m=(p||n).length,g=l[m],k,y,w,C,T,b,x,E,B;if(!g){if(B=n.grid==="auto"?0:(n.grid||[1,We])[1],!B){for(x=-We;x<(x=p[B++].getBoundingClientRect().left)&&B<m;);B<m&&B--}for(g=l[m]=[],k=c?Math.min(B,m)*d-.5:o%B,y=B===We?0:c?m*f/B-.5:o/B|0,x=0,E=We,b=0;b<m;b++)w=b%B-k,C=y-(b/B|0),g[b]=T=u?Math.abs(u==="y"?C:w):gc(w*w+C*C),T>x&&(x=T),T<E&&(E=T);o==="random"&&Vc(g),g.max=x-E,g.min=E,g.v=m=(parseFloat(n.amount)||parseFloat(n.each)*(B>m?m-1:u?u==="y"?m/B:B:Math.max(B,m/B))||0)*(o==="edges"?-1:1),g.b=m<0?s-m:s,g.u=Te(n.amount||n.each)||0,r=r&&m<0?Xc(r):r}return m=(g[h]-g.min)/g.max||0,ye(g.b+(r?r(m):m)*g.v)+g.u}},gs=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var o=ye(Math.round(parseFloat(r)/e)*e*n);return(o-o%1)/n+(Bt(r)?0:Te(r))}},Rc=function(e,n){var r=Ee(e),o,s;return!r&&pt(e)&&(o=r=e.radius||We,e.values?(e=Ke(e.values),(s=!Bt(e[0]))&&(o*=o)):e=gs(e.increment)),Rt(n,r?ie(e)?function(l){return s=e(l),Math.abs(s-l)<=o?s:l}:function(l){for(var a=parseFloat(s?l.x:l),c=parseFloat(s?l.y:0),u=We,d=0,f=e.length,h,_;f--;)s?(h=e[f].x-a,_=e[f].y-c,h=h*h+_*_):h=Math.abs(e[f]-a),h<u&&(u=h,d=f);return d=!o||u<=o?e[d]:l,s||d===l||Bt(l)?d:d+Te(l)}:gs(e))},Uc=function(e,n,r,o){return Rt(Ee(e)?!n:r===!0?!!(r=0):!o,function(){return Ee(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(o=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*o)/o})},dy=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(o){return n.reduce(function(s,l){return l(s)},o)}},fy=function(e,n){return function(r){return e(parseFloat(r))+(n||Te(r))}},hy=function(e,n,r){return zc(e,n,0,1,r)},jc=function(e,n,r){return Rt(r,function(o){return e[~~n(o)]})},_y=function t(e,n,r){var o=n-e;return Ee(e)?jc(e,t(0,e.length),n):Rt(r,function(s){return(o+(s-e)%o)%o+e})},my=function t(e,n,r){var o=n-e,s=o*2;return Ee(e)?jc(e,t(0,e.length-1),n):Rt(r,function(l){return l=(s+(l-e)%s)%s||0,e+(l>o?s-l:l)})},Ar=function(e){for(var n=0,r="",o,s,l,a;~(o=e.indexOf("random(",n));)l=e.indexOf(")",o),a=e.charAt(o+7)==="[",s=e.substr(o+7,l-o-7).match(a?kc:rs),r+=e.substr(n,o-n)+Uc(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=l+1;return r+e.substr(n,e.length-n)},zc=function(e,n,r,o,s){var l=n-e,a=o-r;return Rt(s,function(c){return r+((c-e)/l*a||0)})},py=function t(e,n,r,o){var s=isNaN(e+n)?0:function(_){return(1-_)*e+_*n};if(!s){var l=ge(e),a={},c,u,d,f,h;if(r===!0&&(o=1)&&(r=null),l)e={p:e},n={p:n};else if(Ee(e)&&!Ee(n)){for(d=[],f=e.length,h=f-2,u=1;u<f;u++)d.push(t(e[u-1],e[u]));f--,s=function(p){p*=f;var m=Math.min(h,~~p);return d[m](p-m)},r=n}else o||(e=cn(Ee(e)?[]:{},e));if(!d){for(c in n)ks.call(a,e,c,"get",n[c]);s=function(p){return Ts(p,a)||(l?e.p:e)}}}return Rt(r,s)},Hc=function(e,n,r){var o=e.labels,s=We,l,a,c;for(l in o)a=o[l]-n,a<0==!!r&&a&&s>(a=Math.abs(a))&&(c=l,s=a);return c},ze=function(e,n,r){var o=e.vars,s=o[n],l=ee,a=e._ctx,c,u,d;if(s)return c=o[n+"Params"],u=o.callbackScope||e,r&&Vt.length&&Co(),a&&(ee=a),d=c?s.apply(u,c):s.call(u),ee=l,d},Or=function(e){return qt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ce),e.progress()<1&&ze(e,"onInterrupt"),e},Un,Gc=[],Zc=function(e){if(e)if(e=!e.name&&e.default||e,ns()||e.headless){var n=e.name,r=ie(e),o=n&&!r&&e.init?function(){this._props=[]}:e,s={init:Nr,render:Ts,add:ks,kill:Ay,modifier:Fy,rawVars:0},l={targetTest:0,get:0,getSetter:Es,aliases:{},register:0};if(jn(),e!==o){if(je[n])return;Ye(o,Ye(Eo(e,s),l)),cn(o.prototype,cn(s,Eo(e,l))),je[o.prop=n]=o,e.targetTest&&(So.push(o),as[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Cc(n,o),e.register&&e.register(Le,o,Me)}else Gc.push(e)},Y=255,Dr={aqua:[0,Y,Y],lime:[0,Y,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Y],navy:[0,0,128],white:[Y,Y,Y],olive:[128,128,0],yellow:[Y,Y,0],orange:[Y,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Y,0,0],pink:[Y,192,203],cyan:[0,Y,Y],transparent:[Y,Y,Y,0]},ys=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*Y+.5|0},Wc=function(e,n,r){var o=e?Bt(e)?[e>>16,e>>8&Y,e&Y]:0:Dr.black,s,l,a,c,u,d,f,h,_,p;if(!o){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Dr[e])o=Dr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),l=e.charAt(2),a=e.charAt(3),e="#"+s+s+l+l+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return o=parseInt(e.substr(1,6),16),[o>>16,o>>8&Y,o&Y,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),o=[e>>16,e>>8&Y,e&Y]}else if(e.substr(0,3)==="hsl"){if(o=p=e.match(rs),!n)c=+o[0]%360/360,u=+o[1]/100,d=+o[2]/100,l=d<=.5?d*(u+1):d+u-d*u,s=d*2-l,o.length>3&&(o[3]*=1),o[0]=ys(c+1/3,s,l),o[1]=ys(c,s,l),o[2]=ys(c-1/3,s,l);else if(~e.indexOf("="))return o=e.match(bc),r&&o.length<4&&(o[3]=1),o}else o=e.match(rs)||Dr.transparent;o=o.map(Number)}return n&&!p&&(s=o[0]/Y,l=o[1]/Y,a=o[2]/Y,f=Math.max(s,l,a),h=Math.min(s,l,a),d=(f+h)/2,f===h?c=u=0:(_=f-h,u=d>.5?_/(2-f-h):_/(f+h),c=f===s?(l-a)/_+(l<a?6:0):f===l?(a-s)/_+2:(s-l)/_+4,c*=60),o[0]=~~(c+.5),o[1]=~~(u*100+.5),o[2]=~~(d*100+.5)),r&&o.length<4&&(o[3]=1),o},Yc=function(e){var n=[],r=[],o=-1;return e.split(Ut).forEach(function(s){var l=s.match(vn)||[];n.push.apply(n,l),r.push(o+=l.length+1)}),n.c=r,n},Qc=function(e,n,r){var o="",s=(e+o).match(Ut),l=n?"hsla(":"rgba(",a=0,c,u,d,f;if(!s)return e;if(s=s.map(function(h){return(h=Wc(h,n,1))&&l+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(d=Yc(e),c=r.c,c.join(o)!==d.c.join(o)))for(u=e.replace(Ut,"1").split(vn),f=u.length-1;a<f;a++)o+=u[a]+(~c.indexOf(a)?s.shift()||l+"0,0,0,0)":(d.length?d:s.length?s:r).shift());if(!u)for(u=e.split(Ut),f=u.length-1;a<f;a++)o+=u[a]+s[a];return o+u[f]},Ut=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Dr)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),gy=/hsl[a]?\(/,Kc=function(e){var n=e.join(" "),r;if(Ut.lastIndex=0,Ut.test(n))return r=gy.test(n),e[1]=Qc(e[1],r),e[0]=Qc(e[0],r,Yc(e[1])),!0},Pr,He=function(){var t=Date.now,e=500,n=33,r=t(),o=r,s=1e3/240,l=s,a=[],c,u,d,f,h,_,p=function m(g){var k=t()-o,y=g===!0,w,C,T,b;if((k>e||k<0)&&(r+=k-n),o+=k,T=o-r,w=T-l,(w>0||y)&&(b=++f.frame,h=T-f.time*1e3,f.time=T=T/1e3,l+=w+(w>=s?4:s-w),C=1),y||(c=u(m)),C)for(_=0;_<a.length;_++)a[_](T,h,b,g)};return f={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){xc&&(!is&&ns()&&(gt=is=window,ss=gt.document||{},Ue.gsap=Le,(gt.gsapVersions||(gt.gsapVersions=[])).push(Le.version),Sc(ko||gt.GreenSockGlobals||!gt.gsap&&gt||{}),Gc.forEach(Zc)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&f.sleep(),u=d||function(g){return setTimeout(g,l-f.time*1e3+1|0)},Pr=1,p(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(c),Pr=0,u=Nr},lagSmoothing:function(g,k){e=g||1/0,n=Math.min(k||33,e)},fps:function(g){s=1e3/(g||240),l=f.time*1e3+s},add:function(g,k,y){var w=k?function(C,T,b,x){g(C,T,b,x),f.remove(w)}:g;return f.remove(g),a[y?"unshift":"push"](w),jn(),w},remove:function(g,k){~(k=a.indexOf(g))&&a.splice(k,1)&&_>=k&&_--},_listeners:a},f}(),jn=function(){return!Pr&&He.wake()},U={},yy=/^[\d.\-M][\d.\-,\s]/,by=/["']/g,wy=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),o=r[0],s=1,l=r.length,a,c,u;s<l;s++)c=r[s],a=s!==l-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),n[o]=isNaN(u)?u.replace(by,"").trim():+u,o=c.substr(a+1).trim();return n},ky=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),o=e.indexOf("(",n);return e.substring(n,~o&&o<r?e.indexOf(")",r+1):r)},xy=function(e){var n=(e+"").split("("),r=U[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[wy(n[1])]:ky(e).split(",").map(Ic)):U._CE&&yy.test(e)?U._CE("",e):r},Xc=function(e){return function(n){return 1-e(1-n)}},Jc=function t(e,n){for(var r=e._first,o;r;)r instanceof Ie?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(o=r._ease,r._ease=r._yEase,r._yEase=o,r._yoyo=n)),r=r._next},dn=function(e,n){return e&&(ie(e)?e:U[e]||xy(e))||n},fn=function(e,n,r,o){r===void 0&&(r=function(c){return 1-n(1-c)}),o===void 0&&(o=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:o},l;return Pe(e,function(a){U[a]=Ue[a]=s,U[l=a.toLowerCase()]=r;for(var c in s)U[l+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=U[a+"."+c]=s[c]}),s},eu=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},bs=function t(e,n,r){var o=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),l=s/es*(Math.asin(1/o)||0),a=function(d){return d===1?1:o*Math.pow(2,-10*d)*Qg((d-l)*s)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:eu(a);return s=es/s,c.config=function(u,d){return t(e,u,d)},c},ws=function t(e,n){n===void 0&&(n=1.70158);var r=function(l){return l?--l*l*((n+1)*l+n)+1:0},o=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:eu(r);return o.config=function(s){return t(e,s)},o};Pe("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;fn(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),U.Linear.easeNone=U.none=U.Linear.easeIn,fn("Elastic",bs("in"),bs("out"),bs()),function(t,e){var n=1/e,r=2*n,o=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<o?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};fn("Bounce",function(l){return 1-s(1-l)},s)}(7.5625,2.75),fn("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),fn("Circ",function(t){return-(gc(1-t*t)-1)}),fn("Sine",function(t){return t===1?1:-Yg(t*Zg)+1}),fn("Back",ws("in"),ws("out"),ws()),U.SteppedEase=U.steps=Ue.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,o=e+(n?0:1),s=n?1:0,l=1-Q;return function(a){return((o*Fr(0,l,a)|0)+s)*r}}},Ln.ease=U["quad.out"],Pe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ds+=t+","+t+"Params,"});var tu=function(e,n){this.id=Wg++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Bc,this.set=n?n.getSetter:Es},Mr=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Rn(this,+n.duration,1,1),this.data=n.data,ee&&(this._ctx=ee,ee.data.push(this)),Pr||He.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Rn(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,o){if(jn(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Io(this,r),!s._dp||s.parent||Dc(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&yt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!o||this._initted&&Math.abs(this._zTime)===Q||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Nc(this,r,o)),this},e.time=function(r,o){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Oc(this))%(this._dur+this._rDelay)||(r?this._dur:0),o):this._time},e.totalProgress=function(r,o){return arguments.length?this.totalTime(this.totalDuration()*r,o):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(r,o){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Oc(this),o):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,o){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,o):this._repeat?qn(this._tTime,s)+1:1},e.timeScale=function(r,o){if(!arguments.length)return this._rts===-Q?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Bo(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Q?0:this._rts,this.totalTime(Fr(-Math.abs(this._delay),this._tDur,s),o!==!1),No(this),ry(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(jn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Q&&(this._tTime-=Q)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var o=this.parent||this._dp;return o&&(o._sort||!this.parent)&&yt(o,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(De(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var o=this.parent||this._dp;return o?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Bo(o.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Jg);var o=Ce;return Ce=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Ce=o,this},e.globalTime=function(r){for(var o=this,s=arguments.length?r:o.rawTime();o;)s=o._start+s/(Math.abs(o._ts)||1),o=o._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Lc(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var o=this._time;return this._rDelay=r,Lc(this),o?this.time(o):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,o){return this.totalTime(Qe(this,r),De(o))},e.restart=function(r,o){return this.play().totalTime(r?-this._delay:0,De(o))},e.play=function(r,o){return r!=null&&this.seek(r,o),this.reversed(!1).paused(!1)},e.reverse=function(r,o){return r!=null&&this.seek(r||this.totalDuration(),o),this.reversed(!0).paused(!1)},e.pause=function(r,o){return r!=null&&this.seek(r,o),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Q:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Q,this},e.isActive=function(){var r=this.parent||this._dp,o=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=o&&s<this.endTime(!0)-Q)},e.eventCallback=function(r,o,s){var l=this.vars;return arguments.length>1?(o?(l[r]=o,s&&(l[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=o)):delete l[r],this):l[r]},e.then=function(r){var o=this;return new Promise(function(s){var l=ie(r)?r:$c,a=function(){var u=o.then;o.then=null,ie(l)&&(l=l(o))&&(l.then||l===o)&&(o.then=u),s(l),o.then=u};o._initted&&o.totalProgress()===1&&o._ts>=0||!o._tTime&&o._ts<0?a():o._prom=a})},e.kill=function(){Or(this)},t}();Ye(Mr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Q,_prom:0,_ps:!1,_rts:1});var Ie=function(t){pc(e,t);function e(r,o){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=De(r.sortChildren),ne&&yt(r.parent||ne,Tt(s),o),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&Pc(Tt(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(o,s,l){return $r(0,arguments,this),this},n.from=function(o,s,l){return $r(1,arguments,this),this},n.fromTo=function(o,s,l,a){return $r(2,arguments,this),this},n.set=function(o,s,l){return s.duration=0,s.parent=this,Ir(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new fe(o,s,Qe(this,l),1),this},n.call=function(o,s,l){return yt(this,fe.delayedCall(0,o,s),l)},n.staggerTo=function(o,s,l,a,c,u,d){return l.duration=s,l.stagger=l.stagger||a,l.onComplete=u,l.onCompleteParams=d,l.parent=this,new fe(o,l,Qe(this,c)),this},n.staggerFrom=function(o,s,l,a,c,u,d){return l.runBackwards=1,Ir(l).immediateRender=De(l.immediateRender),this.staggerTo(o,s,l,a,c,u,d)},n.staggerFromTo=function(o,s,l,a,c,u,d,f){return a.startAt=l,Ir(a).immediateRender=De(a.immediateRender),this.staggerTo(o,s,a,c,u,d,f)},n.render=function(o,s,l){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,d=o<=0?0:ye(o),f=this._zTime<0!=o<0&&(this._initted||!u),h,_,p,m,g,k,y,w,C,T,b,x;if(this!==ne&&d>c&&o>=0&&(d=c),d!==this._tTime||l||f){if(a!==this._time&&u&&(d+=this._time-a,o+=this._time-a),h=d,C=this._start,w=this._ts,k=!w,f&&(u||(a=this._zTime),(o||!s)&&(this._zTime=o)),this._repeat){if(b=this._yoyo,g=u+this._rDelay,this._repeat<-1&&o<0)return this.totalTime(g*100+o,s,l);if(h=ye(d%g),d===c?(m=this._repeat,h=u):(m=~~(d/g),m&&m===d/g&&(h=u,m--),h>u&&(h=u)),T=qn(this._tTime,g),!a&&this._tTime&&T!==m&&this._tTime-T*g-this._dur<=0&&(T=m),b&&m&1&&(h=u-h,x=1),m!==T&&!this._lock){var E=b&&T&1,B=E===(b&&m&1);if(m<T&&(E=!E),a=E?0:d%u?u:d,this._lock=1,this.render(a||(x?0:ye(m*g)),s,!u)._lock=0,this._tTime=d,!s&&this.parent&&ze(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),a&&a!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,B&&(this._lock=2,a=E?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;Jc(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=ly(this,ye(a),ye(h)),y&&(d-=h-(h=y._start))),this._tTime=d,this._time=h,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=o,a=0),!a&&h&&!s&&!m&&(ze(this,"onStart"),this._tTime!==d))return this;if(h>=a&&o>=0)for(_=this._first;_;){if(p=_._next,(_._act||h>=_._start)&&_._ts&&y!==_){if(_.parent!==this)return this.render(o,s,l);if(_.render(_._ts>0?(h-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(h-_._start)*_._ts,s,l),h!==this._time||!this._ts&&!k){y=0,p&&(d+=this._zTime=-Q);break}}_=p}else{_=this._last;for(var N=o<0?o:h;_;){if(p=_._prev,(_._act||N<=_._end)&&_._ts&&y!==_){if(_.parent!==this)return this.render(o,s,l);if(_.render(_._ts>0?(N-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(N-_._start)*_._ts,s,l||Ce&&(_._initted||_._startAt)),h!==this._time||!this._ts&&!k){y=0,p&&(d+=this._zTime=N?-Q:Q);break}}_=p}}if(y&&!s&&(this.pause(),y.render(h>=a?0:-Q)._zTime=h>=a?1:-1,this._ts))return this._start=C,No(this),this.render(o,s,l);this._onUpdate&&!s&&ze(this,"onUpdate",!0),(d===c&&this._tTime>=this.totalDuration()||!d&&a)&&(C===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((o||!u)&&(d===c&&this._ts>0||!d&&this._ts<0)&&qt(this,1),!s&&!(o<0&&!a)&&(d||a||!c)&&(ze(this,d===c&&o>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(o,s){var l=this;if(Bt(s)||(s=Qe(this,s,o)),!(o instanceof Mr)){if(Ee(o))return o.forEach(function(a){return l.add(a,s)}),this;if(ge(o))return this.addLabel(o,s);if(ie(o))o=fe.delayedCall(0,o);else return this}return this!==o?yt(this,o,s):this},n.getChildren=function(o,s,l,a){o===void 0&&(o=!0),s===void 0&&(s=!0),l===void 0&&(l=!0),a===void 0&&(a=-We);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof fe?s&&c.push(u):(l&&c.push(u),o&&c.push.apply(c,u.getChildren(!0,s,l)))),u=u._next;return c},n.getById=function(o){for(var s=this.getChildren(1,1,1),l=s.length;l--;)if(s[l].vars.id===o)return s[l]},n.remove=function(o){return ge(o)?this.removeLabel(o):ie(o)?this.killTweensOf(o):(To(this,o),o===this._recent&&(this._recent=this._last),un(this))},n.totalTime=function(o,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ye(He.time-(this._ts>0?o/this._ts:(this.totalDuration()-o)/-this._ts))),t.prototype.totalTime.call(this,o,s),this._forcing=0,this):this._tTime},n.addLabel=function(o,s){return this.labels[o]=Qe(this,s),this},n.removeLabel=function(o){return delete this.labels[o],this},n.addPause=function(o,s,l){var a=fe.delayedCall(0,s||Nr,l);return a.data="isPause",this._hasPause=1,yt(this,a,Qe(this,o))},n.removePause=function(o){var s=this._first;for(o=Qe(this,o);s;)s._start===o&&s.data==="isPause"&&qt(s),s=s._next},n.killTweensOf=function(o,s,l){for(var a=this.getTweensOf(o,l),c=a.length;c--;)jt!==a[c]&&a[c].kill(o,s);return this},n.getTweensOf=function(o,s){for(var l=[],a=Ke(o),c=this._first,u=Bt(s),d;c;)c instanceof fe?ey(c._targets,a)&&(u?(!jt||c._initted&&c._ts)&&c.globalTime(0)<=s&&c.globalTime(c.totalDuration())>s:!s||c.isActive())&&l.push(c):(d=c.getTweensOf(a,s)).length&&l.push.apply(l,d),c=c._next;return l},n.tweenTo=function(o,s){s=s||{};var l=this,a=Qe(l,o),c=s,u=c.startAt,d=c.onStart,f=c.onStartParams,h=c.immediateRender,_,p=fe.to(l,Ye({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale())||Q,onStart:function(){if(l.pause(),!_){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale());p._dur!==g&&Rn(p,g,0,1).render(p._time,!0,!0),_=1}d&&d.apply(p,f||[])}},s));return h?p.render(0):p},n.tweenFromTo=function(o,s,l){return this.tweenTo(s,Ye({startAt:{time:Qe(this,o)}},l))},n.recent=function(){return this._recent},n.nextLabel=function(o){return o===void 0&&(o=this._time),Hc(this,Qe(this,o))},n.previousLabel=function(o){return o===void 0&&(o=this._time),Hc(this,Qe(this,o),1)},n.currentLabel=function(o){return arguments.length?this.seek(o,!0):this.previousLabel(this._time+Q)},n.shiftChildren=function(o,s,l){l===void 0&&(l=0);for(var a=this._first,c=this.labels,u;a;)a._start>=l&&(a._start+=o,a._end+=o),a=a._next;if(s)for(u in c)c[u]>=l&&(c[u]+=o);return un(this)},n.invalidate=function(o){var s=this._first;for(this._lock=0;s;)s.invalidate(o),s=s._next;return t.prototype.invalidate.call(this,o)},n.clear=function(o){o===void 0&&(o=!0);for(var s=this._first,l;s;)l=s._next,this.remove(s),s=l;return this._dp&&(this._time=this._tTime=this._pTime=0),o&&(this.labels={}),un(this)},n.totalDuration=function(o){var s=0,l=this,a=l._last,c=We,u,d,f;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-o:o));if(l._dirty){for(f=l.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>c&&l._sort&&a._ts&&!l._lock?(l._lock=1,yt(l,a,d-a._delay,1)._lock=0):c=d,d<0&&a._ts&&(s-=d,(!f&&!l._dp||f&&f.smoothChildTiming)&&(l._start+=d/l._ts,l._time-=d,l._tTime-=d),l.shiftChildren(-d,!1,-1/0),c=0),a._end>s&&a._ts&&(s=a._end),a=u;Rn(l,l===ne&&l._time>s?l._time:s,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(o){if(ne._ts&&(Nc(ne,Bo(o,ne)),Ec=He.frame),He.frame>=Tc){Tc+=Re.autoSleep||120;var s=ne._first;if((!s||!s._ts)&&Re.autoSleep&&He._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||He.sleep()}}},e}(Mr);Ye(Ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var Sy=function(e,n,r,o,s,l,a){var c=new Me(this._pt,e,n,0,1,lu,null,s),u=0,d=0,f,h,_,p,m,g,k,y;for(c.b=r,c.e=o,r+="",o+="",(k=~o.indexOf("random("))&&(o=Ar(o)),l&&(y=[r,o],l(y,e,n),r=y[0],o=y[1]),h=r.match(os)||[];f=os.exec(o);)p=f[0],m=o.substring(u,f.index),_?_=(_+1)%5:m.substr(-5)==="rgba("&&(_=1),p!==h[d++]&&(g=parseFloat(h[d-1])||0,c._pt={_next:c._pt,p:m||d===1?m:",",s:g,c:p.charAt(1)==="="?Vn(g,p)-g:parseFloat(p)-g,m:_&&_<4?Math.round:0},u=os.lastIndex);return c.c=u<o.length?o.substring(u,o.length):"",c.fp=a,(wc.test(o)||k)&&(c.e=0),this._pt=c,c},ks=function(e,n,r,o,s,l,a,c,u,d){ie(o)&&(o=o(s||0,e,l));var f=e[n],h=r!=="get"?r:ie(f)?u?e[n.indexOf("set")||!ie(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,_=ie(f)?u?Ny:iu:Cs,p;if(ge(o)&&(~o.indexOf("random(")&&(o=Ar(o)),o.charAt(1)==="="&&(p=Vn(h,o)+(Te(h)||0),(p||p===0)&&(o=p))),!d||h!==o||xs)return!isNaN(h*o)&&o!==""?(p=new Me(this._pt,e,n,+h||0,o-(h||0),typeof f=="boolean"?$y:su,0,_),u&&(p.fp=u),a&&p.modifier(a,this,e),this._pt=p):(!f&&!(n in e)&&ls(n,o),Sy.call(this,e,n,h,o,_,c||Re.stringFilter,u))},Cy=function(e,n,r,o,s){if(ie(e)&&(e=Lr(e,s,n,r,o)),!pt(e)||e.style&&e.nodeType||Ee(e)||yc(e))return ge(e)?Lr(e,s,n,r,o):e;var l={},a;for(a in e)l[a]=Lr(e[a],s,n,r,o);return l},nu=function(e,n,r,o,s,l){var a,c,u,d;if(je[e]&&(a=new je[e]).init(s,a.rawVars?n[e]:Cy(n[e],o,s,l,r),r,o,l)!==!1&&(r._pt=c=new Me(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Un))for(u=r._ptLookup[r._targets.indexOf(s)],d=a._props.length;d--;)u[a._props[d]]=c;return a},jt,xs,Ss=function t(e,n,r){var o=e.vars,s=o.ease,l=o.startAt,a=o.immediateRender,c=o.lazy,u=o.onUpdate,d=o.runBackwards,f=o.yoyoEase,h=o.keyframes,_=o.autoRevert,p=e._dur,m=e._startAt,g=e._targets,k=e.parent,y=k&&k.data==="nested"?k.vars.targets:g,w=e._overwrite==="auto"&&!Ji,C=e.timeline,T,b,x,E,B,N,I,A,R,K,le,P,te;if(C&&(!h||!s)&&(s="none"),e._ease=dn(s,Ln.ease),e._yEase=f?Xc(dn(f===!0?s:f,Ln.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!C&&!!o.runBackwards,!C||h&&!o.stagger){if(A=g[0]?an(g[0]).harness:0,P=A&&o[A.prop],T=Eo(o,as),m&&(m._zTime<0&&m.progress(1),n<0&&d&&a&&!_?m.render(-1,!0):m.revert(d&&p?xo:Xg),m._lazy=0),l){if(qt(e._startAt=fe.set(g,Ye({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!m&&De(c),startAt:null,delay:0,onUpdate:u&&function(){return ze(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ce||!a&&!_)&&e._startAt.revert(xo),a&&p&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(d&&p&&!m){if(n&&(a=!1),x=Ye({overwrite:!1,data:"isFromStart",lazy:a&&!m&&De(c),immediateRender:a,stagger:0,parent:k},T),P&&(x[A.prop]=P),qt(e._startAt=fe.set(g,x)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ce?e._startAt.revert(xo):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,Q,Q);else if(!n)return}for(e._pt=e._ptCache=0,c=p&&De(c)||c&&!p,b=0;b<g.length;b++){if(B=g[b],I=B._gsap||fs(g)[b]._gsap,e._ptLookup[b]=K={},cs[I.id]&&Vt.length&&Co(),le=y===g?b:y.indexOf(B),A&&(R=new A).init(B,P||T,e,le,y)!==!1&&(e._pt=E=new Me(e._pt,B,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(we){K[we]=E}),R.priority&&(N=1)),!A||P)for(x in T)je[x]&&(R=nu(x,T,e,le,B,y))?R.priority&&(N=1):K[x]=E=ks.call(e,B,x,"get",T[x],le,y,0,o.stringFilter);e._op&&e._op[b]&&e.kill(B,e._op[b]),w&&e._pt&&(jt=e,ne.killTweensOf(B,K,e.globalTime(n)),te=!e.parent,jt=0),e._pt&&c&&(cs[I.id]=1)}N&&au(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!te,h&&n<=0&&C.render(We,!0,!0)},Ey=function(e,n,r,o,s,l,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],d,f,h,_;if(!u)for(u=e._ptCache[n]=[],h=e._ptLookup,_=e._targets.length;_--;){if(d=h[_][n],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==n&&d.fp!==n;)d=d._next;if(!d)return xs=1,e.vars[n]="+=0",Ss(e,a),xs=0,c?Br(n+" not eligible for reset"):1;u.push(d)}for(_=u.length;_--;)f=u[_],d=f._pt||f,d.s=(o||o===0)&&!s?o:d.s+(o||0)+l*d.c,d.c=r-d.s,f.e&&(f.e=ae(r)+Te(f.e)),f.b&&(f.b=d.s+Te(f.b))},Ty=function(e,n){var r=e[0]?an(e[0]).harness:0,o=r&&r.aliases,s,l,a,c;if(!o)return n;s=cn({},n);for(l in o)if(l in s)for(c=o[l].split(","),a=c.length;a--;)s[c[a]]=s[l];return s},By=function(e,n,r,o){var s=n.ease||o||"power1.inOut",l,a;if(Ee(n))a=r[e]||(r[e]=[]),n.forEach(function(c,u){return a.push({t:u/(n.length-1)*100,v:c,e:s})});else for(l in n)a=r[l]||(r[l]=[]),l==="ease"||a.push({t:parseFloat(e),v:n[l],e:s})},Lr=function(e,n,r,o,s){return ie(e)?e.call(n,r,o,s):ge(e)&&~e.indexOf("random(")?Ar(e):e},ru=ds+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ou={};Pe(ru+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ou[t]=1});var fe=function(t){pc(e,t);function e(r,o,s,l){var a;typeof o=="number"&&(s.duration=o,o=s,s=null),a=t.call(this,l?o:Ir(o))||this;var c=a.vars,u=c.duration,d=c.delay,f=c.immediateRender,h=c.stagger,_=c.overwrite,p=c.keyframes,m=c.defaults,g=c.scrollTrigger,k=c.yoyoEase,y=o.parent||ne,w=(Ee(r)||yc(r)?Bt(r[0]):"length"in o)?[r]:Ke(r),C,T,b,x,E,B,N,I;if(a._targets=w.length?fs(w):Br("GSAP target "+r+" not found. https://gsap.com",!Re.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,p||h||wo(u)||wo(d)){if(o=a.vars,C=a.timeline=new Ie({data:"nested",defaults:m||{},targets:y&&y.data==="nested"?y.vars.targets:w}),C.kill(),C.parent=C._dp=Tt(a),C._start=0,h||wo(u)||wo(d)){if(x=w.length,N=h&&qc(h),pt(h))for(E in h)~ru.indexOf(E)&&(I||(I={}),I[E]=h[E]);for(T=0;T<x;T++)b=Eo(o,ou),b.stagger=0,k&&(b.yoyoEase=k),I&&cn(b,I),B=w[T],b.duration=+Lr(u,Tt(a),T,B,w),b.delay=(+Lr(d,Tt(a),T,B,w)||0)-a._delay,!h&&x===1&&b.delay&&(a._delay=d=b.delay,a._start+=d,b.delay=0),C.to(B,b,N?N(T,B,w):0),C._ease=U.none;C.duration()?u=d=0:a.timeline=0}else if(p){Ir(Ye(C.vars.defaults,{ease:"none"})),C._ease=dn(p.ease||o.ease||"none");var A=0,R,K,le;if(Ee(p))p.forEach(function(P){return C.to(w,P,">")}),C.duration();else{b={};for(E in p)E==="ease"||E==="easeEach"||By(E,p[E],b,p.easeEach);for(E in b)for(R=b[E].sort(function(P,te){return P.t-te.t}),A=0,T=0;T<R.length;T++)K=R[T],le={ease:K.e,duration:(K.t-(T?R[T-1].t:0))/100*u},le[E]=K.v,C.to(w,le,A),A+=le.duration;C.duration()<u&&C.to({},{duration:u-C.duration()})}}u||a.duration(u=C.duration())}else a.timeline=0;return _===!0&&!Ji&&(jt=Tt(a),ne.killTweensOf(w),jt=0),yt(y,Tt(a),s),o.reversed&&a.reverse(),o.paused&&a.paused(!0),(f||!u&&!p&&a._start===ye(y._time)&&De(f)&&oy(Tt(a))&&y.data!=="nested")&&(a._tTime=-Q,a.render(Math.max(0,-d)||0)),g&&Pc(Tt(a),g),a}var n=e.prototype;return n.render=function(o,s,l){var a=this._time,c=this._tDur,u=this._dur,d=o<0,f=o>c-Q&&!d?c:o<Q?0:o,h,_,p,m,g,k,y,w,C;if(!u)sy(this,o,s,l);else if(f!==this._tTime||!o||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d){if(h=f,w=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&d)return this.totalTime(m*100+o,s,l);if(h=ye(f%m),f===c?(p=this._repeat,h=u):(p=~~(f/m),p&&p===ye(f/m)&&(h=u,p--),h>u&&(h=u)),k=this._yoyo&&p&1,k&&(C=this._yEase,h=u-h),g=qn(this._tTime,m),h===a&&!l&&this._initted&&p===g)return this._tTime=f,this;p!==g&&(w&&this._yEase&&Jc(w,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==m&&this._initted&&(this._lock=l=1,this.render(ye(m*p),!0).invalidate()._lock=0))}if(!this._initted){if(Mc(this,d?o:h,l,s,f))return this._tTime=0,this;if(a!==this._time&&!(l&&this.vars.repeatRefresh&&p!==g))return this;if(u!==this._dur)return this.render(o,s,l)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(C||this._ease)(h/u),this._from&&(this.ratio=y=1-y),h&&!a&&!s&&!p&&(ze(this,"onStart"),this._tTime!==f))return this;for(_=this._pt;_;)_.r(y,_.d),_=_._next;w&&w.render(o<0?o:w._dur*w._ease(h/this._dur),s,l)||this._startAt&&(this._zTime=o),this._onUpdate&&!s&&(d&&hs(this,o,s,l),ze(this,"onUpdate")),this._repeat&&p!==g&&this.vars.onRepeat&&!s&&this.parent&&ze(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(d&&!this._onUpdate&&hs(this,o,!0,!0),(o||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&qt(this,1),!s&&!(d&&!a)&&(f||a||k)&&(ze(this,f===c?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(o){return(!o||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(o),t.prototype.invalidate.call(this,o)},n.resetTo=function(o,s,l,a,c){Pr||He.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||Ss(this,u),d=this._ease(u/this._dur),Ey(this,o,s,l,a,d,u,c)?this.resetTo(o,s,l,a,1):(Io(this,0),this.parent||Ac(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(o,s){if(s===void 0&&(s="all"),!o&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Or(this):this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(o,s,jt&&jt.vars.overwrite!==!0)._first||Or(this),this.parent&&l!==this.timeline.totalDuration()&&Rn(this,this._dur*this.timeline._tDur/l,0,1),this}var a=this._targets,c=o?Ke(o):a,u=this._ptLookup,d=this._pt,f,h,_,p,m,g,k;if((!s||s==="all")&&ny(a,c))return s==="all"&&(this._pt=0),Or(this);for(f=this._op=this._op||[],s!=="all"&&(ge(s)&&(m={},Pe(s,function(y){return m[y]=1}),s=m),s=Ty(a,s)),k=a.length;k--;)if(~c.indexOf(a[k])){h=u[k],s==="all"?(f[k]=s,p=h,_={}):(_=f[k]=f[k]||{},p=s);for(m in p)g=h&&h[m],g&&((!("kill"in g.d)||g.d.kill(m)===!0)&&To(this,g,"_pt"),delete h[m]),_!=="all"&&(_[m]=1)}return this._initted&&!this._pt&&d&&Or(this),this},e.to=function(o,s){return new e(o,s,arguments[2])},e.from=function(o,s){return $r(1,arguments)},e.delayedCall=function(o,s,l,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:o,onComplete:s,onReverseComplete:s,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:a})},e.fromTo=function(o,s,l){return $r(2,arguments)},e.set=function(o,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(o,s)},e.killTweensOf=function(o,s,l){return ne.killTweensOf(o,s,l)},e}(Mr);Ye(fe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pe("staggerTo,staggerFrom,staggerFromTo",function(t){fe[t]=function(){var e=new Ie,n=ms.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Cs=function(e,n,r){return e[n]=r},iu=function(e,n,r){return e[n](r)},Ny=function(e,n,r,o){return e[n](o.fp,r)},Iy=function(e,n,r){return e.setAttribute(n,r)},Es=function(e,n){return ie(e[n])?iu:ts(e[n])&&e.setAttribute?Iy:Cs},su=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},$y=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},lu=function(e,n){var r=n._pt,o="";if(!e&&n.b)o=n.b;else if(e===1&&n.e)o=n.e;else{for(;r;)o=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+o,r=r._next;o+=n.c}n.set(n.t,n.p,o,n)},Ts=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},Fy=function(e,n,r,o){for(var s=this._pt,l;s;)l=s._next,s.p===o&&s.modifier(e,n,r),s=l},Ay=function(e){for(var n=this._pt,r,o;n;)o=n._next,n.p===e&&!n.op||n.op===e?To(this,n,"_pt"):n.dep||(r=1),n=o;return!r},Oy=function(e,n,r,o){o.mSet(e,n,o.m.call(o.tween,r,o.mt),o)},au=function(e){for(var n=e._pt,r,o,s,l;n;){for(r=n._next,o=s;o&&o.pr>n.pr;)o=o._next;(n._prev=o?o._prev:l)?n._prev._next=n:s=n,(n._next=o)?o._prev=n:l=n,n=r}e._pt=s},Me=function(){function t(n,r,o,s,l,a,c,u,d){this.t=r,this.s=s,this.c=l,this.p=o,this.r=a||su,this.d=c||this,this.set=u||Cs,this.pr=d||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,o,s){this.mSet=this.mSet||this.set,this.set=Oy,this.m=r,this.mt=s,this.tween=o},t}();Pe(ds+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return as[t]=1}),Ue.TweenMax=Ue.TweenLite=fe,Ue.TimelineLite=Ue.TimelineMax=Ie,ne=new Ie({sortChildren:!1,defaults:Ln,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Re.stringFilter=Kc;var hn=[],$o={},Dy=[],cu=0,Py=0,Bs=function(e){return($o[e]||Dy).map(function(n){return n()})},Ns=function(){var e=Date.now(),n=[];e-cu>2&&(Bs("matchMediaInit"),hn.forEach(function(r){var o=r.queries,s=r.conditions,l,a,c,u;for(a in o)l=gt.matchMedia(o[a]).matches,l&&(c=1),l!==s[a]&&(s[a]=l,u=1);u&&(r.revert(),c&&n.push(r))}),Bs("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(o){return r.add(null,o)})}),cu=e,Bs("matchMedia"))},uu=function(){function t(n,r){this.selector=r&&ps(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Py++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,o,s){ie(r)&&(s=o,o=r,r=ie);var l=this,a=function(){var u=ee,d=l.selector,f;return u&&u!==l&&u.data.push(l),s&&(l.selector=ps(s)),ee=l,f=o.apply(l,arguments),ie(f)&&l._r.push(f),ee=u,l.selector=d,l.isReverted=!1,f};return l.last=a,r===ie?a(l,function(c){return l.add(null,c)}):r?l[r]=a:a},e.ignore=function(r){var o=ee;ee=null,r(this),ee=o},e.getTweens=function(){var r=[];return this.data.forEach(function(o){return o instanceof t?r.push.apply(r,o.getTweens()):o instanceof fe&&!(o.parent&&o.parent.data==="nested")&&r.push(o)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,o){var s=this;if(r?function(){for(var a=s.getTweens(),c=s.data.length,u;c--;)u=s.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,f){return f.g-d.g||-1/0}).forEach(function(d){return d.t.revert(r)}),c=s.data.length;c--;)u=s.data[c],u instanceof Ie?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof fe)&&u.revert&&u.revert(r);s._r.forEach(function(d){return d(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),o)for(var l=hn.length;l--;)hn[l].id===this.id&&hn.splice(l,1)},e.revert=function(r){this.kill(r||{})},t}(),My=function(){function t(n){this.contexts=[],this.scope=n,ee&&ee.data.push(this)}var e=t.prototype;return e.add=function(r,o,s){pt(r)||(r={matches:r});var l=new uu(0,s||this.scope),a=l.conditions={},c,u,d;ee&&!l.selector&&(l.selector=ee.selector),this.contexts.push(l),o=l.add("onMatch",o),l.queries=r;for(u in r)u==="all"?d=1:(c=gt.matchMedia(r[u]),c&&(hn.indexOf(l)<0&&hn.push(l),(a[u]=c.matches)&&(d=1),c.addListener?c.addListener(Ns):c.addEventListener("change",Ns)));return d&&o(l,function(f){return l.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(o){return o.kill(r,!0)})},t}(),Fo={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(o){return Zc(o)})},timeline:function(e){return new Ie(e)},getTweensOf:function(e,n){return ne.getTweensOf(e,n)},getProperty:function(e,n,r,o){ge(e)&&(e=Ke(e)[0]);var s=an(e||{}).get,l=r?$c:Ic;return r==="native"&&(r=""),e&&(n?l((je[n]&&je[n].get||s)(e,n,r,o)):function(a,c,u){return l((je[a]&&je[a].get||s)(e,a,c,u))})},quickSetter:function(e,n,r){if(e=Ke(e),e.length>1){var o=e.map(function(d){return Le.quickSetter(d,n,r)}),s=o.length;return function(d){for(var f=s;f--;)o[f](d)}}e=e[0]||{};var l=je[n],a=an(e),c=a.harness&&(a.harness.aliases||{})[n]||n,u=l?function(d){var f=new l;Un._pt=0,f.init(e,r?d+r:d,Un,0,[e]),f.render(1,f),Un._pt&&Ts(1,Un)}:a.set(e,c);return l?u:function(d){return u(e,c,r?d+r:d,a,1)}},quickTo:function(e,n,r){var o,s=Le.to(e,cn((o={},o[n]="+=0.1",o.paused=!0,o),r||{})),l=function(c,u,d){return s.resetTo(n,c,u,d)};return l.tween=s,l},isTweening:function(e){return ne.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=dn(e.ease,Ln.ease)),Fc(Ln,e||{})},config:function(e){return Fc(Re,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,o=e.plugins,s=e.defaults,l=e.extendTimeline;(o||"").split(",").forEach(function(a){return a&&!je[a]&&!Ue[a]&&Br(n+" effect requires "+a+" plugin.")}),us[n]=function(a,c,u){return r(Ke(a),Ye(c||{},s),u)},l&&(Ie.prototype[n]=function(a,c,u){return this.add(us[n](a,pt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,n){U[e]=dn(n)},parseEase:function(e,n){return arguments.length?dn(e,n):U},getById:function(e){return ne.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Ie(e),o,s;for(r.smoothChildTiming=De(e.smoothChildTiming),ne.remove(r),r._dp=0,r._time=r._tTime=ne._time,o=ne._first;o;)s=o._next,(n||!(!o._dur&&o instanceof fe&&o.vars.onComplete===o._targets[0]))&&yt(r,o,o._start-o._delay),o=s;return yt(ne,r,0),r},context:function(e,n){return e?new uu(e,n):ee},matchMedia:function(e){return new My(e)},matchMediaRefresh:function(){return hn.forEach(function(e){var n=e.conditions,r,o;for(o in n)n[o]&&(n[o]=!1,r=1);r&&e.revert()})||Ns()},addEventListener:function(e,n){var r=$o[e]||($o[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=$o[e],o=r&&r.indexOf(n);o>=0&&r.splice(o,1)},utils:{wrap:_y,wrapYoyo:my,distribute:qc,random:Uc,snap:Rc,normalize:hy,getUnit:Te,clamp:cy,splitColor:Wc,toArray:Ke,selector:ps,mapRange:zc,pipe:dy,unitize:fy,interpolate:py,shuffle:Vc},install:Sc,effects:us,ticker:He,updateRoot:Ie.updateRoot,plugins:je,globalTimeline:ne,core:{PropTween:Me,globals:Cc,Tween:fe,Timeline:Ie,Animation:Mr,getCache:an,_removeLinkedListItem:To,reverting:function(){return Ce},context:function(e){return e&&ee&&(ee.data.push(e),e._ctx=ee),ee},suppressOverwrites:function(e){return Ji=e}}};Pe("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Fo[t]=fe[t]}),He.add(Ie.updateRoot),Un=Fo.to({},{duration:0});var Ly=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},vy=function(e,n){var r=e._targets,o,s,l;for(o in n)for(s=r.length;s--;)l=e._ptLookup[s][o],l&&(l=l.d)&&(l._pt&&(l=Ly(l,o)),l&&l.modifier&&l.modifier(n[o],e,r[s],o))},Is=function(e,n){return{name:e,rawVars:1,init:function(o,s,l){l._onInit=function(a){var c,u;if(ge(s)&&(c={},Pe(s,function(d){return c[d]=1}),s=c),n){c={};for(u in s)c[u]=n(s[u]);s=c}vy(a,s)}}}},Le=Fo.registerPlugin({name:"attr",init:function(e,n,r,o,s){var l,a,c;this.tween=r;for(l in n)c=e.getAttribute(l)||"",a=this.add(e,"setAttribute",(c||0)+"",n[l],o,s,0,0,l),a.op=l,a.b=c,this._props.push(l)},render:function(e,n){for(var r=n._pt;r;)Ce?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},Is("roundProps",gs),Is("modifiers"),Is("snap",Rc))||Fo;fe.version=Ie.version=Le.version="3.12.5",xc=1,ns()&&jn(),U.Power0,U.Power1,U.Power2,U.Power3,U.Power4,U.Linear,U.Quad,U.Cubic,U.Quart,U.Quint,U.Strong,U.Elastic,U.Back,U.SteppedEase,U.Bounce,U.Sine,U.Expo,U.Circ;/*!
9
+ */var Re={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ln={duration:.5,overwrite:!1,delay:0},Ji,Se,ee,We=1e8,Q=1/We,es=Math.PI*2,Zg=es/4,Wg=0,gc=Math.sqrt,Yg=Math.cos,Qg=Math.sin,pe=function(e){return typeof e=="string"},ie=function(e){return typeof e=="function"},Bt=function(e){return typeof e=="number"},ts=function(e){return typeof e>"u"},pt=function(e){return typeof e=="object"},De=function(e){return e!==!1},ns=function(){return typeof window<"u"},wo=function(e){return ie(e)||pe(e)},yc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ce=Array.isArray,rs=/(?:-?\.?\d|\.)+/gi,bc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,vn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,os=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wc=/[+-]=-?[.\d]+/,kc=/[^,'"\[\]\s]+/gi,Kg=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ne,gt,is,ss,Ue={},ko={},xc,Sc=function(e){return(ko=cn(e,Ue))&&Le},ls=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Br=function(e,n){return!n&&console.warn(e)},Cc=function(e,n){return e&&(Ue[e]=n)&&ko&&(ko[e]=n)||Ue},Nr=function(){return 0},Xg={suppressEvents:!0,isStart:!0,kill:!1},xo={suppressEvents:!0,kill:!1},Jg={suppressEvents:!0},as={},Vt=[],cs={},Ec,je={},us={},Tc=30,So=[],ds="",fs=function(e){var n=e[0],r,o;if(pt(n)||ie(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(o=So.length;o--&&!So[o].targetTest(n););r=So[o]}for(o=e.length;o--;)e[o]&&(e[o]._gsap||(e[o]._gsap=new tu(e[o],r)))||e.splice(o,1);return e},an=function(e){return e._gsap||fs(Ke(e))[0]._gsap},Bc=function(e,n,r){return(r=e[n])&&ie(r)?e[n]():ts(r)&&e.getAttribute&&e.getAttribute(n)||r},Pe=function(e,n){return(e=e.split(",")).forEach(n)||e},ae=function(e){return Math.round(e*1e5)/1e5||0},ge=function(e){return Math.round(e*1e7)/1e7||0},Vn=function(e,n){var r=n.charAt(0),o=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+o:r==="-"?e-o:r==="*"?e*o:e/o},ey=function(e,n){for(var r=n.length,o=0;e.indexOf(n[o])<0&&++o<r;);return o<r},Co=function(){var e=Vt.length,n=Vt.slice(0),r,o;for(cs={},Vt.length=0,r=0;r<e;r++)o=n[r],o&&o._lazy&&(o.render(o._lazy[0],o._lazy[1],!0)._lazy=0)},Nc=function(e,n,r,o){Vt.length&&!Se&&Co(),e.render(n,r,o||Se&&n<0&&(e._initted||e._startAt)),Vt.length&&!Se&&Co()},Ic=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(kc).length<2?n:pe(e)?e.trim():e},$c=function(e){return e},Ye=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},ty=function(e){return function(n,r){for(var o in r)o in n||o==="duration"&&e||o==="ease"||(n[o]=r[o])}},cn=function(e,n){for(var r in n)e[r]=n[r];return e},Fc=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=pt(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Eo=function(e,n){var r={},o;for(o in e)o in n||(r[o]=e[o]);return r},Ir=function(e){var n=e.parent||ne,r=e.keyframes?ty(Ce(e.keyframes)):Ye;if(De(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},ny=function(e,n){for(var r=e.length,o=r===n.length;o&&r--&&e[r]===n[r];);return r<0},Ac=function(e,n,r,o,s){r===void 0&&(r="_first"),o===void 0&&(o="_last");var l=e[o],a;if(s)for(a=n[s];l&&l[s]>a;)l=l._prev;return l?(n._next=l._next,l._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[o]=n,n._prev=l,n.parent=n._dp=e,n},To=function(e,n,r,o){r===void 0&&(r="_first"),o===void 0&&(o="_last");var s=n._prev,l=n._next;s?s._next=l:e[r]===n&&(e[r]=l),l?l._prev=s:e[o]===n&&(e[o]=s),n._next=n._prev=n.parent=null},qt=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},un=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},ry=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},hs=function(e,n,r,o){return e._startAt&&(Se?e._startAt.revert(xo):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,o))},oy=function t(e){return!e||e._ts&&t(e.parent)},Oc=function(e){return e._repeat?qn(e._tTime,e=e.duration()+e._rDelay)*e:0},qn=function(e,n){var r=Math.floor(e/=n);return e&&r===e?r-1:r},Bo=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},No=function(e){return e._end=ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||Q)||0))},Io=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ge(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),No(e),r._dirty||un(r,e)),e},Dc=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Bo(e.rawTime(),n),(!n._dur||Fr(0,n.totalDuration(),r)-n._tTime>Q)&&n.render(r,!0)),un(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Q}},yt=function(e,n,r,o){return n.parent&&qt(n),n._start=ge((Bt(r)?r:r||e!==ne?Qe(e,r,n):e._time)+n._delay),n._end=ge(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Ac(e,n,"_first","_last",e._sort?"_start":0),_s(n)||(e._recent=n),o||Dc(e,n),e._ts<0&&Io(e,e._tTime),e},Pc=function(e,n){return(Ue.ScrollTrigger||ls("scrollTrigger",n))&&Ue.ScrollTrigger.create(n,e)},Mc=function(e,n,r,o,s){if(Ss(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!Se&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ec!==He.frame)return Vt.push(e),e._lazy=[s,o],1},iy=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},_s=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},sy=function(e,n,r,o){var s=e.ratio,l=n<0||!n&&(!e._start&&iy(e)&&!(!e._initted&&_s(e))||(e._ts<0||e._dp._ts<0)&&!_s(e))?0:1,a=e._rDelay,c=0,u,d,f;if(a&&e._repeat&&(c=Fr(0,e._tDur,n),d=qn(c,a),e._yoyo&&d&1&&(l=1-l),d!==qn(e._tTime,a)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||Se||o||e._zTime===Q||!n&&e._zTime){if(!e._initted&&Mc(e,n,o,r,c))return;for(f=e._zTime,e._zTime=n||(r?Q:0),r||(r=n&&!f),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=c,u=e._pt;u;)u.r(l,u.d),u=u._next;n<0&&hs(e,n,r,!0),e._onUpdate&&!r&&ze(e,"onUpdate"),c&&e._repeat&&!r&&e.parent&&ze(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===l&&(l&&qt(e,1),!r&&!Se&&(ze(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},ly=function(e,n,r){var o;if(r>n)for(o=e._first;o&&o._start<=r;){if(o.data==="isPause"&&o._start>n)return o;o=o._next}else for(o=e._last;o&&o._start>=r;){if(o.data==="isPause"&&o._start<n)return o;o=o._prev}},Rn=function(e,n,r,o){var s=e._repeat,l=ge(n)||0,a=e._tTime/e._tDur;return a&&!o&&(e._time*=l/e._dur),e._dur=l,e._tDur=s?s<0?1e10:ge(l*(s+1)+e._rDelay*s):l,a>0&&!o&&Io(e,e._tTime=e._tDur*a),e.parent&&No(e),r||un(e.parent,e),e},Lc=function(e){return e instanceof Ie?un(e):Rn(e,e._dur)},ay={_start:0,endTime:Nr,totalDuration:Nr},Qe=function t(e,n,r){var o=e.labels,s=e._recent||ay,l=e.duration()>=We?s.endTime(!1):e._dur,a,c,u;return pe(n)&&(isNaN(n)||n in o)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in o||(o[n]=l),o[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(Ce(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+c:l+c)):n==null?l:+n},$r=function(e,n,r){var o=Bt(n[1]),s=(o?2:1)+(e<2?0:1),l=n[s],a,c;if(o&&(l.duration=n[1]),l.parent=r,e){for(a=l,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=De(c.vars.inherit)&&c.parent;l.immediateRender=De(a.immediateRender),e<2?l.runBackwards=1:l.startAt=n[s-1]}return new fe(n[0],l,n[s+1])},Rt=function(e,n){return e||e===0?n(e):n},Fr=function(e,n,r){return r<e?e:r>n?n:r},Ee=function(e,n){return!pe(e)||!(n=Kg.exec(e))?"":n[1]},cy=function(e,n,r){return Rt(r,function(o){return Fr(e,n,o)})},ms=[].slice,vc=function(e,n){return e&&pt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&pt(e[0]))&&!e.nodeType&&e!==gt},uy=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(o){var s;return pe(o)&&!n||vc(o,1)?(s=r).push.apply(s,Ke(o)):r.push(o)})||r},Ke=function(e,n,r){return ee&&!n&&ee.selector?ee.selector(e):pe(e)&&!r&&(is||!jn())?ms.call((n||ss).querySelectorAll(e),0):Ce(e)?uy(e,r):vc(e)?ms.call(e,0):e?[e]:[]},ps=function(e){return e=Ke(e)[0]||Br("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Ke(n,r.querySelectorAll?r:r===e?Br("Invalid scope")||ss.createElement("div"):e)}},Vc=function(e){return e.sort(function(){return .5-Math.random()})},qc=function(e){if(ie(e))return e;var n=pt(e)?e:{each:e},r=dn(n.ease),o=n.from||0,s=parseFloat(n.base)||0,l={},a=o>0&&o<1,c=isNaN(o)||a,u=n.axis,d=o,f=o;return pe(o)?d=f={center:.5,edges:.5,end:1}[o]||0:!a&&c&&(d=o[0],f=o[1]),function(h,_,p){var m=(p||n).length,g=l[m],k,y,w,C,T,b,x,E,B;if(!g){if(B=n.grid==="auto"?0:(n.grid||[1,We])[1],!B){for(x=-We;x<(x=p[B++].getBoundingClientRect().left)&&B<m;);B<m&&B--}for(g=l[m]=[],k=c?Math.min(B,m)*d-.5:o%B,y=B===We?0:c?m*f/B-.5:o/B|0,x=0,E=We,b=0;b<m;b++)w=b%B-k,C=y-(b/B|0),g[b]=T=u?Math.abs(u==="y"?C:w):gc(w*w+C*C),T>x&&(x=T),T<E&&(E=T);o==="random"&&Vc(g),g.max=x-E,g.min=E,g.v=m=(parseFloat(n.amount)||parseFloat(n.each)*(B>m?m-1:u?u==="y"?m/B:B:Math.max(B,m/B))||0)*(o==="edges"?-1:1),g.b=m<0?s-m:s,g.u=Ee(n.amount||n.each)||0,r=r&&m<0?Xc(r):r}return m=(g[h]-g.min)/g.max||0,ge(g.b+(r?r(m):m)*g.v)+g.u}},gs=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var o=ge(Math.round(parseFloat(r)/e)*e*n);return(o-o%1)/n+(Bt(r)?0:Ee(r))}},Rc=function(e,n){var r=Ce(e),o,s;return!r&&pt(e)&&(o=r=e.radius||We,e.values?(e=Ke(e.values),(s=!Bt(e[0]))&&(o*=o)):e=gs(e.increment)),Rt(n,r?ie(e)?function(l){return s=e(l),Math.abs(s-l)<=o?s:l}:function(l){for(var a=parseFloat(s?l.x:l),c=parseFloat(s?l.y:0),u=We,d=0,f=e.length,h,_;f--;)s?(h=e[f].x-a,_=e[f].y-c,h=h*h+_*_):h=Math.abs(e[f]-a),h<u&&(u=h,d=f);return d=!o||u<=o?e[d]:l,s||d===l||Bt(l)?d:d+Ee(l)}:gs(e))},Uc=function(e,n,r,o){return Rt(Ce(e)?!n:r===!0?!!(r=0):!o,function(){return Ce(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(o=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*o)/o})},dy=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(o){return n.reduce(function(s,l){return l(s)},o)}},fy=function(e,n){return function(r){return e(parseFloat(r))+(n||Ee(r))}},hy=function(e,n,r){return zc(e,n,0,1,r)},jc=function(e,n,r){return Rt(r,function(o){return e[~~n(o)]})},_y=function t(e,n,r){var o=n-e;return Ce(e)?jc(e,t(0,e.length),n):Rt(r,function(s){return(o+(s-e)%o)%o+e})},my=function t(e,n,r){var o=n-e,s=o*2;return Ce(e)?jc(e,t(0,e.length-1),n):Rt(r,function(l){return l=(s+(l-e)%s)%s||0,e+(l>o?s-l:l)})},Ar=function(e){for(var n=0,r="",o,s,l,a;~(o=e.indexOf("random(",n));)l=e.indexOf(")",o),a=e.charAt(o+7)==="[",s=e.substr(o+7,l-o-7).match(a?kc:rs),r+=e.substr(n,o-n)+Uc(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),n=l+1;return r+e.substr(n,e.length-n)},zc=function(e,n,r,o,s){var l=n-e,a=o-r;return Rt(s,function(c){return r+((c-e)/l*a||0)})},py=function t(e,n,r,o){var s=isNaN(e+n)?0:function(_){return(1-_)*e+_*n};if(!s){var l=pe(e),a={},c,u,d,f,h;if(r===!0&&(o=1)&&(r=null),l)e={p:e},n={p:n};else if(Ce(e)&&!Ce(n)){for(d=[],f=e.length,h=f-2,u=1;u<f;u++)d.push(t(e[u-1],e[u]));f--,s=function(p){p*=f;var m=Math.min(h,~~p);return d[m](p-m)},r=n}else o||(e=cn(Ce(e)?[]:{},e));if(!d){for(c in n)ks.call(a,e,c,"get",n[c]);s=function(p){return Ts(p,a)||(l?e.p:e)}}}return Rt(r,s)},Hc=function(e,n,r){var o=e.labels,s=We,l,a,c;for(l in o)a=o[l]-n,a<0==!!r&&a&&s>(a=Math.abs(a))&&(c=l,s=a);return c},ze=function(e,n,r){var o=e.vars,s=o[n],l=ee,a=e._ctx,c,u,d;if(s)return c=o[n+"Params"],u=o.callbackScope||e,r&&Vt.length&&Co(),a&&(ee=a),d=c?s.apply(u,c):s.call(u),ee=l,d},Or=function(e){return qt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Se),e.progress()<1&&ze(e,"onInterrupt"),e},Un,Gc=[],Zc=function(e){if(e)if(e=!e.name&&e.default||e,ns()||e.headless){var n=e.name,r=ie(e),o=n&&!r&&e.init?function(){this._props=[]}:e,s={init:Nr,render:Ts,add:ks,kill:Ay,modifier:Fy,rawVars:0},l={targetTest:0,get:0,getSetter:Es,aliases:{},register:0};if(jn(),e!==o){if(je[n])return;Ye(o,Ye(Eo(e,s),l)),cn(o.prototype,cn(s,Eo(e,l))),je[o.prop=n]=o,e.targetTest&&(So.push(o),as[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Cc(n,o),e.register&&e.register(Le,o,Me)}else Gc.push(e)},Y=255,Dr={aqua:[0,Y,Y],lime:[0,Y,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Y],navy:[0,0,128],white:[Y,Y,Y],olive:[128,128,0],yellow:[Y,Y,0],orange:[Y,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Y,0,0],pink:[Y,192,203],cyan:[0,Y,Y],transparent:[Y,Y,Y,0]},ys=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*Y+.5|0},Wc=function(e,n,r){var o=e?Bt(e)?[e>>16,e>>8&Y,e&Y]:0:Dr.black,s,l,a,c,u,d,f,h,_,p;if(!o){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Dr[e])o=Dr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),l=e.charAt(2),a=e.charAt(3),e="#"+s+s+l+l+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return o=parseInt(e.substr(1,6),16),[o>>16,o>>8&Y,o&Y,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),o=[e>>16,e>>8&Y,e&Y]}else if(e.substr(0,3)==="hsl"){if(o=p=e.match(rs),!n)c=+o[0]%360/360,u=+o[1]/100,d=+o[2]/100,l=d<=.5?d*(u+1):d+u-d*u,s=d*2-l,o.length>3&&(o[3]*=1),o[0]=ys(c+1/3,s,l),o[1]=ys(c,s,l),o[2]=ys(c-1/3,s,l);else if(~e.indexOf("="))return o=e.match(bc),r&&o.length<4&&(o[3]=1),o}else o=e.match(rs)||Dr.transparent;o=o.map(Number)}return n&&!p&&(s=o[0]/Y,l=o[1]/Y,a=o[2]/Y,f=Math.max(s,l,a),h=Math.min(s,l,a),d=(f+h)/2,f===h?c=u=0:(_=f-h,u=d>.5?_/(2-f-h):_/(f+h),c=f===s?(l-a)/_+(l<a?6:0):f===l?(a-s)/_+2:(s-l)/_+4,c*=60),o[0]=~~(c+.5),o[1]=~~(u*100+.5),o[2]=~~(d*100+.5)),r&&o.length<4&&(o[3]=1),o},Yc=function(e){var n=[],r=[],o=-1;return e.split(Ut).forEach(function(s){var l=s.match(vn)||[];n.push.apply(n,l),r.push(o+=l.length+1)}),n.c=r,n},Qc=function(e,n,r){var o="",s=(e+o).match(Ut),l=n?"hsla(":"rgba(",a=0,c,u,d,f;if(!s)return e;if(s=s.map(function(h){return(h=Wc(h,n,1))&&l+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),r&&(d=Yc(e),c=r.c,c.join(o)!==d.c.join(o)))for(u=e.replace(Ut,"1").split(vn),f=u.length-1;a<f;a++)o+=u[a]+(~c.indexOf(a)?s.shift()||l+"0,0,0,0)":(d.length?d:s.length?s:r).shift());if(!u)for(u=e.split(Ut),f=u.length-1;a<f;a++)o+=u[a]+s[a];return o+u[f]},Ut=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Dr)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),gy=/hsl[a]?\(/,Kc=function(e){var n=e.join(" "),r;if(Ut.lastIndex=0,Ut.test(n))return r=gy.test(n),e[1]=Qc(e[1],r),e[0]=Qc(e[0],r,Yc(e[1])),!0},Pr,He=function(){var t=Date.now,e=500,n=33,r=t(),o=r,s=1e3/240,l=s,a=[],c,u,d,f,h,_,p=function m(g){var k=t()-o,y=g===!0,w,C,T,b;if((k>e||k<0)&&(r+=k-n),o+=k,T=o-r,w=T-l,(w>0||y)&&(b=++f.frame,h=T-f.time*1e3,f.time=T=T/1e3,l+=w+(w>=s?4:s-w),C=1),y||(c=u(m)),C)for(_=0;_<a.length;_++)a[_](T,h,b,g)};return f={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){xc&&(!is&&ns()&&(gt=is=window,ss=gt.document||{},Ue.gsap=Le,(gt.gsapVersions||(gt.gsapVersions=[])).push(Le.version),Sc(ko||gt.GreenSockGlobals||!gt.gsap&&gt||{}),Gc.forEach(Zc)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,c&&f.sleep(),u=d||function(g){return setTimeout(g,l-f.time*1e3+1|0)},Pr=1,p(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(c),Pr=0,u=Nr},lagSmoothing:function(g,k){e=g||1/0,n=Math.min(k||33,e)},fps:function(g){s=1e3/(g||240),l=f.time*1e3+s},add:function(g,k,y){var w=k?function(C,T,b,x){g(C,T,b,x),f.remove(w)}:g;return f.remove(g),a[y?"unshift":"push"](w),jn(),w},remove:function(g,k){~(k=a.indexOf(g))&&a.splice(k,1)&&_>=k&&_--},_listeners:a},f}(),jn=function(){return!Pr&&He.wake()},U={},yy=/^[\d.\-M][\d.\-,\s]/,by=/["']/g,wy=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),o=r[0],s=1,l=r.length,a,c,u;s<l;s++)c=r[s],a=s!==l-1?c.lastIndexOf(","):c.length,u=c.substr(0,a),n[o]=isNaN(u)?u.replace(by,"").trim():+u,o=c.substr(a+1).trim();return n},ky=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),o=e.indexOf("(",n);return e.substring(n,~o&&o<r?e.indexOf(")",r+1):r)},xy=function(e){var n=(e+"").split("("),r=U[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[wy(n[1])]:ky(e).split(",").map(Ic)):U._CE&&yy.test(e)?U._CE("",e):r},Xc=function(e){return function(n){return 1-e(1-n)}},Jc=function t(e,n){for(var r=e._first,o;r;)r instanceof Ie?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(o=r._ease,r._ease=r._yEase,r._yEase=o,r._yoyo=n)),r=r._next},dn=function(e,n){return e&&(ie(e)?e:U[e]||xy(e))||n},fn=function(e,n,r,o){r===void 0&&(r=function(c){return 1-n(1-c)}),o===void 0&&(o=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:o},l;return Pe(e,function(a){U[a]=Ue[a]=s,U[l=a.toLowerCase()]=r;for(var c in s)U[l+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=U[a+"."+c]=s[c]}),s},eu=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},bs=function t(e,n,r){var o=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),l=s/es*(Math.asin(1/o)||0),a=function(d){return d===1?1:o*Math.pow(2,-10*d)*Qg((d-l)*s)+1},c=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:eu(a);return s=es/s,c.config=function(u,d){return t(e,u,d)},c},ws=function t(e,n){n===void 0&&(n=1.70158);var r=function(l){return l?--l*l*((n+1)*l+n)+1:0},o=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:eu(r);return o.config=function(s){return t(e,s)},o};Pe("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;fn(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),U.Linear.easeNone=U.none=U.Linear.easeIn,fn("Elastic",bs("in"),bs("out"),bs()),function(t,e){var n=1/e,r=2*n,o=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<o?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};fn("Bounce",function(l){return 1-s(1-l)},s)}(7.5625,2.75),fn("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),fn("Circ",function(t){return-(gc(1-t*t)-1)}),fn("Sine",function(t){return t===1?1:-Yg(t*Zg)+1}),fn("Back",ws("in"),ws("out"),ws()),U.SteppedEase=U.steps=Ue.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,o=e+(n?0:1),s=n?1:0,l=1-Q;return function(a){return((o*Fr(0,l,a)|0)+s)*r}}},Ln.ease=U["quad.out"],Pe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ds+=t+","+t+"Params,"});var tu=function(e,n){this.id=Wg++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Bc,this.set=n?n.getSetter:Es},Mr=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Rn(this,+n.duration,1,1),this.data=n.data,ee&&(this._ctx=ee,ee.data.push(this)),Pr||He.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Rn(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,o){if(jn(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Io(this,r),!s._dp||s.parent||Dc(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&yt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!o||this._initted&&Math.abs(this._zTime)===Q||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Nc(this,r,o)),this},e.time=function(r,o){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Oc(this))%(this._dur+this._rDelay)||(r?this._dur:0),o):this._time},e.totalProgress=function(r,o){return arguments.length?this.totalTime(this.totalDuration()*r,o):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(r,o){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Oc(this),o):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,o){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,o):this._repeat?qn(this._tTime,s)+1:1},e.timeScale=function(r,o){if(!arguments.length)return this._rts===-Q?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Bo(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Q?0:this._rts,this.totalTime(Fr(-Math.abs(this._delay),this._tDur,s),o!==!1),No(this),ry(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(jn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Q&&(this._tTime-=Q)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var o=this.parent||this._dp;return o&&(o._sort||!this.parent)&&yt(o,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(De(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var o=this.parent||this._dp;return o?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Bo(o.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Jg);var o=Se;return Se=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Se=o,this},e.globalTime=function(r){for(var o=this,s=arguments.length?r:o.rawTime();o;)s=o._start+s/(Math.abs(o._ts)||1),o=o._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Lc(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var o=this._time;return this._rDelay=r,Lc(this),o?this.time(o):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,o){return this.totalTime(Qe(this,r),De(o))},e.restart=function(r,o){return this.play().totalTime(r?-this._delay:0,De(o))},e.play=function(r,o){return r!=null&&this.seek(r,o),this.reversed(!1).paused(!1)},e.reverse=function(r,o){return r!=null&&this.seek(r||this.totalDuration(),o),this.reversed(!0).paused(!1)},e.pause=function(r,o){return r!=null&&this.seek(r,o),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Q:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Q,this},e.isActive=function(){var r=this.parent||this._dp,o=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=o&&s<this.endTime(!0)-Q)},e.eventCallback=function(r,o,s){var l=this.vars;return arguments.length>1?(o?(l[r]=o,s&&(l[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=o)):delete l[r],this):l[r]},e.then=function(r){var o=this;return new Promise(function(s){var l=ie(r)?r:$c,a=function(){var u=o.then;o.then=null,ie(l)&&(l=l(o))&&(l.then||l===o)&&(o.then=u),s(l),o.then=u};o._initted&&o.totalProgress()===1&&o._ts>=0||!o._tTime&&o._ts<0?a():o._prom=a})},e.kill=function(){Or(this)},t}();Ye(Mr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Q,_prom:0,_ps:!1,_rts:1});var Ie=function(t){pc(e,t);function e(r,o){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=De(r.sortChildren),ne&&yt(r.parent||ne,Tt(s),o),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&Pc(Tt(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(o,s,l){return $r(0,arguments,this),this},n.from=function(o,s,l){return $r(1,arguments,this),this},n.fromTo=function(o,s,l,a){return $r(2,arguments,this),this},n.set=function(o,s,l){return s.duration=0,s.parent=this,Ir(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new fe(o,s,Qe(this,l),1),this},n.call=function(o,s,l){return yt(this,fe.delayedCall(0,o,s),l)},n.staggerTo=function(o,s,l,a,c,u,d){return l.duration=s,l.stagger=l.stagger||a,l.onComplete=u,l.onCompleteParams=d,l.parent=this,new fe(o,l,Qe(this,c)),this},n.staggerFrom=function(o,s,l,a,c,u,d){return l.runBackwards=1,Ir(l).immediateRender=De(l.immediateRender),this.staggerTo(o,s,l,a,c,u,d)},n.staggerFromTo=function(o,s,l,a,c,u,d,f){return a.startAt=l,Ir(a).immediateRender=De(a.immediateRender),this.staggerTo(o,s,a,c,u,d,f)},n.render=function(o,s,l){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,d=o<=0?0:ge(o),f=this._zTime<0!=o<0&&(this._initted||!u),h,_,p,m,g,k,y,w,C,T,b,x;if(this!==ne&&d>c&&o>=0&&(d=c),d!==this._tTime||l||f){if(a!==this._time&&u&&(d+=this._time-a,o+=this._time-a),h=d,C=this._start,w=this._ts,k=!w,f&&(u||(a=this._zTime),(o||!s)&&(this._zTime=o)),this._repeat){if(b=this._yoyo,g=u+this._rDelay,this._repeat<-1&&o<0)return this.totalTime(g*100+o,s,l);if(h=ge(d%g),d===c?(m=this._repeat,h=u):(m=~~(d/g),m&&m===d/g&&(h=u,m--),h>u&&(h=u)),T=qn(this._tTime,g),!a&&this._tTime&&T!==m&&this._tTime-T*g-this._dur<=0&&(T=m),b&&m&1&&(h=u-h,x=1),m!==T&&!this._lock){var E=b&&T&1,B=E===(b&&m&1);if(m<T&&(E=!E),a=E?0:d%u?u:d,this._lock=1,this.render(a||(x?0:ge(m*g)),s,!u)._lock=0,this._tTime=d,!s&&this.parent&&ze(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),a&&a!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,c=this._tDur,B&&(this._lock=2,a=E?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;Jc(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=ly(this,ge(a),ge(h)),y&&(d-=h-(h=y._start))),this._tTime=d,this._time=h,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=o,a=0),!a&&h&&!s&&!m&&(ze(this,"onStart"),this._tTime!==d))return this;if(h>=a&&o>=0)for(_=this._first;_;){if(p=_._next,(_._act||h>=_._start)&&_._ts&&y!==_){if(_.parent!==this)return this.render(o,s,l);if(_.render(_._ts>0?(h-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(h-_._start)*_._ts,s,l),h!==this._time||!this._ts&&!k){y=0,p&&(d+=this._zTime=-Q);break}}_=p}else{_=this._last;for(var N=o<0?o:h;_;){if(p=_._prev,(_._act||N<=_._end)&&_._ts&&y!==_){if(_.parent!==this)return this.render(o,s,l);if(_.render(_._ts>0?(N-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(N-_._start)*_._ts,s,l||Se&&(_._initted||_._startAt)),h!==this._time||!this._ts&&!k){y=0,p&&(d+=this._zTime=N?-Q:Q);break}}_=p}}if(y&&!s&&(this.pause(),y.render(h>=a?0:-Q)._zTime=h>=a?1:-1,this._ts))return this._start=C,No(this),this.render(o,s,l);this._onUpdate&&!s&&ze(this,"onUpdate",!0),(d===c&&this._tTime>=this.totalDuration()||!d&&a)&&(C===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((o||!u)&&(d===c&&this._ts>0||!d&&this._ts<0)&&qt(this,1),!s&&!(o<0&&!a)&&(d||a||!c)&&(ze(this,d===c&&o>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<c&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(o,s){var l=this;if(Bt(s)||(s=Qe(this,s,o)),!(o instanceof Mr)){if(Ce(o))return o.forEach(function(a){return l.add(a,s)}),this;if(pe(o))return this.addLabel(o,s);if(ie(o))o=fe.delayedCall(0,o);else return this}return this!==o?yt(this,o,s):this},n.getChildren=function(o,s,l,a){o===void 0&&(o=!0),s===void 0&&(s=!0),l===void 0&&(l=!0),a===void 0&&(a=-We);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof fe?s&&c.push(u):(l&&c.push(u),o&&c.push.apply(c,u.getChildren(!0,s,l)))),u=u._next;return c},n.getById=function(o){for(var s=this.getChildren(1,1,1),l=s.length;l--;)if(s[l].vars.id===o)return s[l]},n.remove=function(o){return pe(o)?this.removeLabel(o):ie(o)?this.killTweensOf(o):(To(this,o),o===this._recent&&(this._recent=this._last),un(this))},n.totalTime=function(o,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(He.time-(this._ts>0?o/this._ts:(this.totalDuration()-o)/-this._ts))),t.prototype.totalTime.call(this,o,s),this._forcing=0,this):this._tTime},n.addLabel=function(o,s){return this.labels[o]=Qe(this,s),this},n.removeLabel=function(o){return delete this.labels[o],this},n.addPause=function(o,s,l){var a=fe.delayedCall(0,s||Nr,l);return a.data="isPause",this._hasPause=1,yt(this,a,Qe(this,o))},n.removePause=function(o){var s=this._first;for(o=Qe(this,o);s;)s._start===o&&s.data==="isPause"&&qt(s),s=s._next},n.killTweensOf=function(o,s,l){for(var a=this.getTweensOf(o,l),c=a.length;c--;)jt!==a[c]&&a[c].kill(o,s);return this},n.getTweensOf=function(o,s){for(var l=[],a=Ke(o),c=this._first,u=Bt(s),d;c;)c instanceof fe?ey(c._targets,a)&&(u?(!jt||c._initted&&c._ts)&&c.globalTime(0)<=s&&c.globalTime(c.totalDuration())>s:!s||c.isActive())&&l.push(c):(d=c.getTweensOf(a,s)).length&&l.push.apply(l,d),c=c._next;return l},n.tweenTo=function(o,s){s=s||{};var l=this,a=Qe(l,o),c=s,u=c.startAt,d=c.onStart,f=c.onStartParams,h=c.immediateRender,_,p=fe.to(l,Ye({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale())||Q,onStart:function(){if(l.pause(),!_){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:l._time))/l.timeScale());p._dur!==g&&Rn(p,g,0,1).render(p._time,!0,!0),_=1}d&&d.apply(p,f||[])}},s));return h?p.render(0):p},n.tweenFromTo=function(o,s,l){return this.tweenTo(s,Ye({startAt:{time:Qe(this,o)}},l))},n.recent=function(){return this._recent},n.nextLabel=function(o){return o===void 0&&(o=this._time),Hc(this,Qe(this,o))},n.previousLabel=function(o){return o===void 0&&(o=this._time),Hc(this,Qe(this,o),1)},n.currentLabel=function(o){return arguments.length?this.seek(o,!0):this.previousLabel(this._time+Q)},n.shiftChildren=function(o,s,l){l===void 0&&(l=0);for(var a=this._first,c=this.labels,u;a;)a._start>=l&&(a._start+=o,a._end+=o),a=a._next;if(s)for(u in c)c[u]>=l&&(c[u]+=o);return un(this)},n.invalidate=function(o){var s=this._first;for(this._lock=0;s;)s.invalidate(o),s=s._next;return t.prototype.invalidate.call(this,o)},n.clear=function(o){o===void 0&&(o=!0);for(var s=this._first,l;s;)l=s._next,this.remove(s),s=l;return this._dp&&(this._time=this._tTime=this._pTime=0),o&&(this.labels={}),un(this)},n.totalDuration=function(o){var s=0,l=this,a=l._last,c=We,u,d,f;if(arguments.length)return l.timeScale((l._repeat<0?l.duration():l.totalDuration())/(l.reversed()?-o:o));if(l._dirty){for(f=l.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>c&&l._sort&&a._ts&&!l._lock?(l._lock=1,yt(l,a,d-a._delay,1)._lock=0):c=d,d<0&&a._ts&&(s-=d,(!f&&!l._dp||f&&f.smoothChildTiming)&&(l._start+=d/l._ts,l._time-=d,l._tTime-=d),l.shiftChildren(-d,!1,-1/0),c=0),a._end>s&&a._ts&&(s=a._end),a=u;Rn(l,l===ne&&l._time>s?l._time:s,1,1),l._dirty=0}return l._tDur},e.updateRoot=function(o){if(ne._ts&&(Nc(ne,Bo(o,ne)),Ec=He.frame),He.frame>=Tc){Tc+=Re.autoSleep||120;var s=ne._first;if((!s||!s._ts)&&Re.autoSleep&&He._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||He.sleep()}}},e}(Mr);Ye(Ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var Sy=function(e,n,r,o,s,l,a){var c=new Me(this._pt,e,n,0,1,lu,null,s),u=0,d=0,f,h,_,p,m,g,k,y;for(c.b=r,c.e=o,r+="",o+="",(k=~o.indexOf("random("))&&(o=Ar(o)),l&&(y=[r,o],l(y,e,n),r=y[0],o=y[1]),h=r.match(os)||[];f=os.exec(o);)p=f[0],m=o.substring(u,f.index),_?_=(_+1)%5:m.substr(-5)==="rgba("&&(_=1),p!==h[d++]&&(g=parseFloat(h[d-1])||0,c._pt={_next:c._pt,p:m||d===1?m:",",s:g,c:p.charAt(1)==="="?Vn(g,p)-g:parseFloat(p)-g,m:_&&_<4?Math.round:0},u=os.lastIndex);return c.c=u<o.length?o.substring(u,o.length):"",c.fp=a,(wc.test(o)||k)&&(c.e=0),this._pt=c,c},ks=function(e,n,r,o,s,l,a,c,u,d){ie(o)&&(o=o(s||0,e,l));var f=e[n],h=r!=="get"?r:ie(f)?u?e[n.indexOf("set")||!ie(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,_=ie(f)?u?Ny:iu:Cs,p;if(pe(o)&&(~o.indexOf("random(")&&(o=Ar(o)),o.charAt(1)==="="&&(p=Vn(h,o)+(Ee(h)||0),(p||p===0)&&(o=p))),!d||h!==o||xs)return!isNaN(h*o)&&o!==""?(p=new Me(this._pt,e,n,+h||0,o-(h||0),typeof f=="boolean"?$y:su,0,_),u&&(p.fp=u),a&&p.modifier(a,this,e),this._pt=p):(!f&&!(n in e)&&ls(n,o),Sy.call(this,e,n,h,o,_,c||Re.stringFilter,u))},Cy=function(e,n,r,o,s){if(ie(e)&&(e=Lr(e,s,n,r,o)),!pt(e)||e.style&&e.nodeType||Ce(e)||yc(e))return pe(e)?Lr(e,s,n,r,o):e;var l={},a;for(a in e)l[a]=Lr(e[a],s,n,r,o);return l},nu=function(e,n,r,o,s,l){var a,c,u,d;if(je[e]&&(a=new je[e]).init(s,a.rawVars?n[e]:Cy(n[e],o,s,l,r),r,o,l)!==!1&&(r._pt=c=new Me(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Un))for(u=r._ptLookup[r._targets.indexOf(s)],d=a._props.length;d--;)u[a._props[d]]=c;return a},jt,xs,Ss=function t(e,n,r){var o=e.vars,s=o.ease,l=o.startAt,a=o.immediateRender,c=o.lazy,u=o.onUpdate,d=o.runBackwards,f=o.yoyoEase,h=o.keyframes,_=o.autoRevert,p=e._dur,m=e._startAt,g=e._targets,k=e.parent,y=k&&k.data==="nested"?k.vars.targets:g,w=e._overwrite==="auto"&&!Ji,C=e.timeline,T,b,x,E,B,N,I,A,R,K,le,P,te;if(C&&(!h||!s)&&(s="none"),e._ease=dn(s,Ln.ease),e._yEase=f?Xc(dn(f===!0?s:f,Ln.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!C&&!!o.runBackwards,!C||h&&!o.stagger){if(A=g[0]?an(g[0]).harness:0,P=A&&o[A.prop],T=Eo(o,as),m&&(m._zTime<0&&m.progress(1),n<0&&d&&a&&!_?m.render(-1,!0):m.revert(d&&p?xo:Xg),m._lazy=0),l){if(qt(e._startAt=fe.set(g,Ye({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!m&&De(c),startAt:null,delay:0,onUpdate:u&&function(){return ze(e,"onUpdate")},stagger:0},l))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Se||!a&&!_)&&e._startAt.revert(xo),a&&p&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(d&&p&&!m){if(n&&(a=!1),x=Ye({overwrite:!1,data:"isFromStart",lazy:a&&!m&&De(c),immediateRender:a,stagger:0,parent:k},T),P&&(x[A.prop]=P),qt(e._startAt=fe.set(g,x)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Se?e._startAt.revert(xo):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,Q,Q);else if(!n)return}for(e._pt=e._ptCache=0,c=p&&De(c)||c&&!p,b=0;b<g.length;b++){if(B=g[b],I=B._gsap||fs(g)[b]._gsap,e._ptLookup[b]=K={},cs[I.id]&&Vt.length&&Co(),le=y===g?b:y.indexOf(B),A&&(R=new A).init(B,P||T,e,le,y)!==!1&&(e._pt=E=new Me(e._pt,B,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(we){K[we]=E}),R.priority&&(N=1)),!A||P)for(x in T)je[x]&&(R=nu(x,T,e,le,B,y))?R.priority&&(N=1):K[x]=E=ks.call(e,B,x,"get",T[x],le,y,0,o.stringFilter);e._op&&e._op[b]&&e.kill(B,e._op[b]),w&&e._pt&&(jt=e,ne.killTweensOf(B,K,e.globalTime(n)),te=!e.parent,jt=0),e._pt&&c&&(cs[I.id]=1)}N&&au(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!te,h&&n<=0&&C.render(We,!0,!0)},Ey=function(e,n,r,o,s,l,a,c){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],d,f,h,_;if(!u)for(u=e._ptCache[n]=[],h=e._ptLookup,_=e._targets.length;_--;){if(d=h[_][n],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==n&&d.fp!==n;)d=d._next;if(!d)return xs=1,e.vars[n]="+=0",Ss(e,a),xs=0,c?Br(n+" not eligible for reset"):1;u.push(d)}for(_=u.length;_--;)f=u[_],d=f._pt||f,d.s=(o||o===0)&&!s?o:d.s+(o||0)+l*d.c,d.c=r-d.s,f.e&&(f.e=ae(r)+Ee(f.e)),f.b&&(f.b=d.s+Ee(f.b))},Ty=function(e,n){var r=e[0]?an(e[0]).harness:0,o=r&&r.aliases,s,l,a,c;if(!o)return n;s=cn({},n);for(l in o)if(l in s)for(c=o[l].split(","),a=c.length;a--;)s[c[a]]=s[l];return s},By=function(e,n,r,o){var s=n.ease||o||"power1.inOut",l,a;if(Ce(n))a=r[e]||(r[e]=[]),n.forEach(function(c,u){return a.push({t:u/(n.length-1)*100,v:c,e:s})});else for(l in n)a=r[l]||(r[l]=[]),l==="ease"||a.push({t:parseFloat(e),v:n[l],e:s})},Lr=function(e,n,r,o,s){return ie(e)?e.call(n,r,o,s):pe(e)&&~e.indexOf("random(")?Ar(e):e},ru=ds+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ou={};Pe(ru+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ou[t]=1});var fe=function(t){pc(e,t);function e(r,o,s,l){var a;typeof o=="number"&&(s.duration=o,o=s,s=null),a=t.call(this,l?o:Ir(o))||this;var c=a.vars,u=c.duration,d=c.delay,f=c.immediateRender,h=c.stagger,_=c.overwrite,p=c.keyframes,m=c.defaults,g=c.scrollTrigger,k=c.yoyoEase,y=o.parent||ne,w=(Ce(r)||yc(r)?Bt(r[0]):"length"in o)?[r]:Ke(r),C,T,b,x,E,B,N,I;if(a._targets=w.length?fs(w):Br("GSAP target "+r+" not found. https://gsap.com",!Re.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,p||h||wo(u)||wo(d)){if(o=a.vars,C=a.timeline=new Ie({data:"nested",defaults:m||{},targets:y&&y.data==="nested"?y.vars.targets:w}),C.kill(),C.parent=C._dp=Tt(a),C._start=0,h||wo(u)||wo(d)){if(x=w.length,N=h&&qc(h),pt(h))for(E in h)~ru.indexOf(E)&&(I||(I={}),I[E]=h[E]);for(T=0;T<x;T++)b=Eo(o,ou),b.stagger=0,k&&(b.yoyoEase=k),I&&cn(b,I),B=w[T],b.duration=+Lr(u,Tt(a),T,B,w),b.delay=(+Lr(d,Tt(a),T,B,w)||0)-a._delay,!h&&x===1&&b.delay&&(a._delay=d=b.delay,a._start+=d,b.delay=0),C.to(B,b,N?N(T,B,w):0),C._ease=U.none;C.duration()?u=d=0:a.timeline=0}else if(p){Ir(Ye(C.vars.defaults,{ease:"none"})),C._ease=dn(p.ease||o.ease||"none");var A=0,R,K,le;if(Ce(p))p.forEach(function(P){return C.to(w,P,">")}),C.duration();else{b={};for(E in p)E==="ease"||E==="easeEach"||By(E,p[E],b,p.easeEach);for(E in b)for(R=b[E].sort(function(P,te){return P.t-te.t}),A=0,T=0;T<R.length;T++)K=R[T],le={ease:K.e,duration:(K.t-(T?R[T-1].t:0))/100*u},le[E]=K.v,C.to(w,le,A),A+=le.duration;C.duration()<u&&C.to({},{duration:u-C.duration()})}}u||a.duration(u=C.duration())}else a.timeline=0;return _===!0&&!Ji&&(jt=Tt(a),ne.killTweensOf(w),jt=0),yt(y,Tt(a),s),o.reversed&&a.reverse(),o.paused&&a.paused(!0),(f||!u&&!p&&a._start===ge(y._time)&&De(f)&&oy(Tt(a))&&y.data!=="nested")&&(a._tTime=-Q,a.render(Math.max(0,-d)||0)),g&&Pc(Tt(a),g),a}var n=e.prototype;return n.render=function(o,s,l){var a=this._time,c=this._tDur,u=this._dur,d=o<0,f=o>c-Q&&!d?c:o<Q?0:o,h,_,p,m,g,k,y,w,C;if(!u)sy(this,o,s,l);else if(f!==this._tTime||!o||l||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d){if(h=f,w=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&d)return this.totalTime(m*100+o,s,l);if(h=ge(f%m),f===c?(p=this._repeat,h=u):(p=~~(f/m),p&&p===ge(f/m)&&(h=u,p--),h>u&&(h=u)),k=this._yoyo&&p&1,k&&(C=this._yEase,h=u-h),g=qn(this._tTime,m),h===a&&!l&&this._initted&&p===g)return this._tTime=f,this;p!==g&&(w&&this._yEase&&Jc(w,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==m&&this._initted&&(this._lock=l=1,this.render(ge(m*p),!0).invalidate()._lock=0))}if(!this._initted){if(Mc(this,d?o:h,l,s,f))return this._tTime=0,this;if(a!==this._time&&!(l&&this.vars.repeatRefresh&&p!==g))return this;if(u!==this._dur)return this.render(o,s,l)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(C||this._ease)(h/u),this._from&&(this.ratio=y=1-y),h&&!a&&!s&&!p&&(ze(this,"onStart"),this._tTime!==f))return this;for(_=this._pt;_;)_.r(y,_.d),_=_._next;w&&w.render(o<0?o:w._dur*w._ease(h/this._dur),s,l)||this._startAt&&(this._zTime=o),this._onUpdate&&!s&&(d&&hs(this,o,s,l),ze(this,"onUpdate")),this._repeat&&p!==g&&this.vars.onRepeat&&!s&&this.parent&&ze(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(d&&!this._onUpdate&&hs(this,o,!0,!0),(o||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&qt(this,1),!s&&!(d&&!a)&&(f||a||k)&&(ze(this,f===c?"onComplete":"onReverseComplete",!0),this._prom&&!(f<c&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(o){return(!o||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(o),t.prototype.invalidate.call(this,o)},n.resetTo=function(o,s,l,a,c){Pr||He.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||Ss(this,u),d=this._ease(u/this._dur),Ey(this,o,s,l,a,d,u,c)?this.resetTo(o,s,l,a,1):(Io(this,0),this.parent||Ac(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(o,s){if(s===void 0&&(s="all"),!o&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Or(this):this;if(this.timeline){var l=this.timeline.totalDuration();return this.timeline.killTweensOf(o,s,jt&&jt.vars.overwrite!==!0)._first||Or(this),this.parent&&l!==this.timeline.totalDuration()&&Rn(this,this._dur*this.timeline._tDur/l,0,1),this}var a=this._targets,c=o?Ke(o):a,u=this._ptLookup,d=this._pt,f,h,_,p,m,g,k;if((!s||s==="all")&&ny(a,c))return s==="all"&&(this._pt=0),Or(this);for(f=this._op=this._op||[],s!=="all"&&(pe(s)&&(m={},Pe(s,function(y){return m[y]=1}),s=m),s=Ty(a,s)),k=a.length;k--;)if(~c.indexOf(a[k])){h=u[k],s==="all"?(f[k]=s,p=h,_={}):(_=f[k]=f[k]||{},p=s);for(m in p)g=h&&h[m],g&&((!("kill"in g.d)||g.d.kill(m)===!0)&&To(this,g,"_pt"),delete h[m]),_!=="all"&&(_[m]=1)}return this._initted&&!this._pt&&d&&Or(this),this},e.to=function(o,s){return new e(o,s,arguments[2])},e.from=function(o,s){return $r(1,arguments)},e.delayedCall=function(o,s,l,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:o,onComplete:s,onReverseComplete:s,onCompleteParams:l,onReverseCompleteParams:l,callbackScope:a})},e.fromTo=function(o,s,l){return $r(2,arguments)},e.set=function(o,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(o,s)},e.killTweensOf=function(o,s,l){return ne.killTweensOf(o,s,l)},e}(Mr);Ye(fe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pe("staggerTo,staggerFrom,staggerFromTo",function(t){fe[t]=function(){var e=new Ie,n=ms.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Cs=function(e,n,r){return e[n]=r},iu=function(e,n,r){return e[n](r)},Ny=function(e,n,r,o){return e[n](o.fp,r)},Iy=function(e,n,r){return e.setAttribute(n,r)},Es=function(e,n){return ie(e[n])?iu:ts(e[n])&&e.setAttribute?Iy:Cs},su=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},$y=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},lu=function(e,n){var r=n._pt,o="";if(!e&&n.b)o=n.b;else if(e===1&&n.e)o=n.e;else{for(;r;)o=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+o,r=r._next;o+=n.c}n.set(n.t,n.p,o,n)},Ts=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},Fy=function(e,n,r,o){for(var s=this._pt,l;s;)l=s._next,s.p===o&&s.modifier(e,n,r),s=l},Ay=function(e){for(var n=this._pt,r,o;n;)o=n._next,n.p===e&&!n.op||n.op===e?To(this,n,"_pt"):n.dep||(r=1),n=o;return!r},Oy=function(e,n,r,o){o.mSet(e,n,o.m.call(o.tween,r,o.mt),o)},au=function(e){for(var n=e._pt,r,o,s,l;n;){for(r=n._next,o=s;o&&o.pr>n.pr;)o=o._next;(n._prev=o?o._prev:l)?n._prev._next=n:s=n,(n._next=o)?o._prev=n:l=n,n=r}e._pt=s},Me=function(){function t(n,r,o,s,l,a,c,u,d){this.t=r,this.s=s,this.c=l,this.p=o,this.r=a||su,this.d=c||this,this.set=u||Cs,this.pr=d||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,o,s){this.mSet=this.mSet||this.set,this.set=Oy,this.m=r,this.mt=s,this.tween=o},t}();Pe(ds+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return as[t]=1}),Ue.TweenMax=Ue.TweenLite=fe,Ue.TimelineLite=Ue.TimelineMax=Ie,ne=new Ie({sortChildren:!1,defaults:Ln,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Re.stringFilter=Kc;var hn=[],$o={},Dy=[],cu=0,Py=0,Bs=function(e){return($o[e]||Dy).map(function(n){return n()})},Ns=function(){var e=Date.now(),n=[];e-cu>2&&(Bs("matchMediaInit"),hn.forEach(function(r){var o=r.queries,s=r.conditions,l,a,c,u;for(a in o)l=gt.matchMedia(o[a]).matches,l&&(c=1),l!==s[a]&&(s[a]=l,u=1);u&&(r.revert(),c&&n.push(r))}),Bs("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(o){return r.add(null,o)})}),cu=e,Bs("matchMedia"))},uu=function(){function t(n,r){this.selector=r&&ps(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Py++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,o,s){ie(r)&&(s=o,o=r,r=ie);var l=this,a=function(){var u=ee,d=l.selector,f;return u&&u!==l&&u.data.push(l),s&&(l.selector=ps(s)),ee=l,f=o.apply(l,arguments),ie(f)&&l._r.push(f),ee=u,l.selector=d,l.isReverted=!1,f};return l.last=a,r===ie?a(l,function(c){return l.add(null,c)}):r?l[r]=a:a},e.ignore=function(r){var o=ee;ee=null,r(this),ee=o},e.getTweens=function(){var r=[];return this.data.forEach(function(o){return o instanceof t?r.push.apply(r,o.getTweens()):o instanceof fe&&!(o.parent&&o.parent.data==="nested")&&r.push(o)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,o){var s=this;if(r?function(){for(var a=s.getTweens(),c=s.data.length,u;c--;)u=s.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,f){return f.g-d.g||-1/0}).forEach(function(d){return d.t.revert(r)}),c=s.data.length;c--;)u=s.data[c],u instanceof Ie?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof fe)&&u.revert&&u.revert(r);s._r.forEach(function(d){return d(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),o)for(var l=hn.length;l--;)hn[l].id===this.id&&hn.splice(l,1)},e.revert=function(r){this.kill(r||{})},t}(),My=function(){function t(n){this.contexts=[],this.scope=n,ee&&ee.data.push(this)}var e=t.prototype;return e.add=function(r,o,s){pt(r)||(r={matches:r});var l=new uu(0,s||this.scope),a=l.conditions={},c,u,d;ee&&!l.selector&&(l.selector=ee.selector),this.contexts.push(l),o=l.add("onMatch",o),l.queries=r;for(u in r)u==="all"?d=1:(c=gt.matchMedia(r[u]),c&&(hn.indexOf(l)<0&&hn.push(l),(a[u]=c.matches)&&(d=1),c.addListener?c.addListener(Ns):c.addEventListener("change",Ns)));return d&&o(l,function(f){return l.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(o){return o.kill(r,!0)})},t}(),Fo={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(o){return Zc(o)})},timeline:function(e){return new Ie(e)},getTweensOf:function(e,n){return ne.getTweensOf(e,n)},getProperty:function(e,n,r,o){pe(e)&&(e=Ke(e)[0]);var s=an(e||{}).get,l=r?$c:Ic;return r==="native"&&(r=""),e&&(n?l((je[n]&&je[n].get||s)(e,n,r,o)):function(a,c,u){return l((je[a]&&je[a].get||s)(e,a,c,u))})},quickSetter:function(e,n,r){if(e=Ke(e),e.length>1){var o=e.map(function(d){return Le.quickSetter(d,n,r)}),s=o.length;return function(d){for(var f=s;f--;)o[f](d)}}e=e[0]||{};var l=je[n],a=an(e),c=a.harness&&(a.harness.aliases||{})[n]||n,u=l?function(d){var f=new l;Un._pt=0,f.init(e,r?d+r:d,Un,0,[e]),f.render(1,f),Un._pt&&Ts(1,Un)}:a.set(e,c);return l?u:function(d){return u(e,c,r?d+r:d,a,1)}},quickTo:function(e,n,r){var o,s=Le.to(e,cn((o={},o[n]="+=0.1",o.paused=!0,o),r||{})),l=function(c,u,d){return s.resetTo(n,c,u,d)};return l.tween=s,l},isTweening:function(e){return ne.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=dn(e.ease,Ln.ease)),Fc(Ln,e||{})},config:function(e){return Fc(Re,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,o=e.plugins,s=e.defaults,l=e.extendTimeline;(o||"").split(",").forEach(function(a){return a&&!je[a]&&!Ue[a]&&Br(n+" effect requires "+a+" plugin.")}),us[n]=function(a,c,u){return r(Ke(a),Ye(c||{},s),u)},l&&(Ie.prototype[n]=function(a,c,u){return this.add(us[n](a,pt(c)?c:(u=c)&&{},this),u)})},registerEase:function(e,n){U[e]=dn(n)},parseEase:function(e,n){return arguments.length?dn(e,n):U},getById:function(e){return ne.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new Ie(e),o,s;for(r.smoothChildTiming=De(e.smoothChildTiming),ne.remove(r),r._dp=0,r._time=r._tTime=ne._time,o=ne._first;o;)s=o._next,(n||!(!o._dur&&o instanceof fe&&o.vars.onComplete===o._targets[0]))&&yt(r,o,o._start-o._delay),o=s;return yt(ne,r,0),r},context:function(e,n){return e?new uu(e,n):ee},matchMedia:function(e){return new My(e)},matchMediaRefresh:function(){return hn.forEach(function(e){var n=e.conditions,r,o;for(o in n)n[o]&&(n[o]=!1,r=1);r&&e.revert()})||Ns()},addEventListener:function(e,n){var r=$o[e]||($o[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=$o[e],o=r&&r.indexOf(n);o>=0&&r.splice(o,1)},utils:{wrap:_y,wrapYoyo:my,distribute:qc,random:Uc,snap:Rc,normalize:hy,getUnit:Ee,clamp:cy,splitColor:Wc,toArray:Ke,selector:ps,mapRange:zc,pipe:dy,unitize:fy,interpolate:py,shuffle:Vc},install:Sc,effects:us,ticker:He,updateRoot:Ie.updateRoot,plugins:je,globalTimeline:ne,core:{PropTween:Me,globals:Cc,Tween:fe,Timeline:Ie,Animation:Mr,getCache:an,_removeLinkedListItem:To,reverting:function(){return Se},context:function(e){return e&&ee&&(ee.data.push(e),e._ctx=ee),ee},suppressOverwrites:function(e){return Ji=e}}};Pe("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Fo[t]=fe[t]}),He.add(Ie.updateRoot),Un=Fo.to({},{duration:0});var Ly=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},vy=function(e,n){var r=e._targets,o,s,l;for(o in n)for(s=r.length;s--;)l=e._ptLookup[s][o],l&&(l=l.d)&&(l._pt&&(l=Ly(l,o)),l&&l.modifier&&l.modifier(n[o],e,r[s],o))},Is=function(e,n){return{name:e,rawVars:1,init:function(o,s,l){l._onInit=function(a){var c,u;if(pe(s)&&(c={},Pe(s,function(d){return c[d]=1}),s=c),n){c={};for(u in s)c[u]=n(s[u]);s=c}vy(a,s)}}}},Le=Fo.registerPlugin({name:"attr",init:function(e,n,r,o,s){var l,a,c;this.tween=r;for(l in n)c=e.getAttribute(l)||"",a=this.add(e,"setAttribute",(c||0)+"",n[l],o,s,0,0,l),a.op=l,a.b=c,this._props.push(l)},render:function(e,n){for(var r=n._pt;r;)Se?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},Is("roundProps",gs),Is("modifiers"),Is("snap",Rc))||Fo;fe.version=Ie.version=Le.version="3.12.5",xc=1,ns()&&jn(),U.Power0,U.Power1,U.Power2,U.Power3,U.Power4,U.Linear,U.Quad,U.Cubic,U.Quart,U.Quint,U.Strong,U.Elastic,U.Back,U.SteppedEase,U.Bounce,U.Sine,U.Expo,U.Circ;/*!
10
10
  * CSSPlugin 3.12.5
11
11
  * https://gsap.com
12
12
  *
@@ -14,7 +14,7 @@
14
14
  * Subject to the terms at https://gsap.com/standard-license or for
15
15
  * Club GSAP members, the agreement issued with that membership.
16
16
  * @author: Jack Doyle, jack@greensock.com
17
- */var du,zt,zn,$s,_n,fu,Fs,Vy=function(){return typeof window<"u"},Nt={},mn=180/Math.PI,Hn=Math.PI/180,Gn=Math.atan2,hu=1e8,As=/([A-Z])/g,qy=/(left|right|width|margin|padding|x)/i,Ry=/[\s,\(]\S/,bt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Os=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Uy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},jy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},zy=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},_u=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},mu=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Hy=function(e,n,r){return e.style[n]=r},Gy=function(e,n,r){return e.style.setProperty(n,r)},Zy=function(e,n,r){return e._gsap[n]=r},Wy=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Yy=function(e,n,r,o,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},Qy=function(e,n,r,o,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},re="transform",ve=re+"Origin",Ky=function t(e,n){var r=this,o=this.target,s=o.style,l=o._gsap;if(e in Nt&&s){if(this.tfm=this.tfm||{},e!=="transform")e=bt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=It(o,a)}):this.tfm[e]=l.x?l[e]:It(o,e),e===ve&&(this.tfm.zOrigin=l.zOrigin);else return bt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(re)>=0)return;l.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(ve,n,"")),e=re}(s||n)&&this.props.push(e,n,s[e])},pu=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Xy=function(){var e=this.props,n=this.target,r=n.style,o=n._gsap,s,l;for(s=0;s<e.length;s+=3)e[s+1]?n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(As,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)o[l]=this.tfm[l];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=Fs(),(!s||!s.isStart)&&!r[re]&&(pu(r),o.zOrigin&&r[ve]&&(r[ve]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},gu=function(e,n){var r={target:e,props:[],revert:Xy,save:Ky};return e._gsap||Le.core.getCache(e),n&&n.split(",").forEach(function(o){return r.save(o)}),r},yu,Ds=function(e,n){var r=zt.createElementNS?zt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):zt.createElement(e);return r&&r.style?r:zt.createElement(e)},wt=function t(e,n,r){var o=getComputedStyle(e);return o[n]||o.getPropertyValue(n.replace(As,"-$1").toLowerCase())||o.getPropertyValue(n)||!r&&t(e,Zn(n)||n,1)||""},bu="O,Moz,ms,Ms,Webkit".split(","),Zn=function(e,n,r){var o=n||_n,s=o.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(bu[l]+e in s););return l<0?null:(l===3?"ms":l>=0?bu[l]:"")+e},Ps=function(){Vy()&&window.document&&(du=window,zt=du.document,zn=zt.documentElement,_n=Ds("div")||{style:{}},Ds("div"),re=Zn(re),ve=re+"Origin",_n.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",yu=!!Zn("perspective"),Fs=Le.core.reverting,$s=1)},Ms=function t(e){var n=Ds("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,s=this.style.cssText,l;if(zn.appendChild(n),n.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(l=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),zn.removeChild(n),this.style.cssText=s,l},wu=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},ku=function(e){var n;try{n=e.getBBox()}catch{n=Ms.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===Ms||(n=Ms.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+wu(e,["x","cx","x1"])||0,y:+wu(e,["y","cy","y1"])||0,width:0,height:0}:n},xu=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ku(e))},pn=function(e,n){if(n){var r=e.style,o;n in Nt&&n!==ve&&(n=re),r.removeProperty?(o=n.substr(0,2),(o==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(o==="--"?n:n.replace(As,"-$1").toLowerCase())):r.removeAttribute(n)}},Ht=function(e,n,r,o,s,l){var a=new Me(e._pt,n,r,0,1,l?mu:_u);return e._pt=a,a.b=o,a.e=s,e._props.push(r),a},Su={deg:1,rad:1,turn:1},Jy={grid:1,flex:1},Gt=function t(e,n,r,o){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=_n.style,c=qy.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=o==="px",_=o==="%",p,m,g,k;if(o===l||!s||Su[o]||Su[l])return s;if(l!=="px"&&!h&&(s=t(e,n,r,"px")),k=e.getCTM&&xu(e),(_||l==="%")&&(Nt[n]||~n.indexOf("adius")))return p=k?e.getBBox()[c?"width":"height"]:e[d],ae(_?s/p*f:s/100*p);if(a[c?"width":"height"]=f+(h?l:o),m=~n.indexOf("adius")||o==="em"&&e.appendChild&&!u?e:e.parentNode,k&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===zt||!m.appendChild)&&(m=zt.body),g=m._gsap,g&&_&&g.width&&c&&g.time===He.time&&!g.uncache)return ae(s/g.width*f);if(_&&(n==="height"||n==="width")){var y=e.style[n];e.style[n]=f+o,p=e[d],y?e.style[n]=y:pn(e,n)}else(_||l==="%")&&!Jy[wt(m,"display")]&&(a.position=wt(e,"position")),m===e&&(a.position="static"),m.appendChild(_n),p=_n[d],m.removeChild(_n),a.position="absolute";return c&&_&&(g=an(m),g.time=He.time,g.width=m[d]),ae(h?p*s/f:p&&s?f/p*s:0)},It=function(e,n,r,o){var s;return $s||Ps(),n in bt&&n!=="transform"&&(n=bt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Nt[n]&&n!=="transform"?(s=Vr(e,o),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Oo(wt(e,ve))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||o||~(s+"").indexOf("calc("))&&(s=Ao[n]&&Ao[n](e,n,r)||wt(e,n)||Bc(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Gt(e,n,s,r)+r:s},eb=function(e,n,r,o){if(!r||r==="none"){var s=Zn(n,e,1),l=s&&wt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=wt(e,"borderTopColor"))}var a=new Me(this._pt,e.style,n,0,1,lu),c=0,u=0,d,f,h,_,p,m,g,k,y,w,C,T;if(a.b=r,a.e=o,r+="",o+="",o==="auto"&&(m=e.style[n],e.style[n]=o,o=wt(e,n)||o,m?e.style[n]=m:pn(e,n)),d=[r,o],Kc(d),r=d[0],o=d[1],h=r.match(vn)||[],T=o.match(vn)||[],T.length){for(;f=vn.exec(o);)g=f[0],y=o.substring(c,f.index),p?p=(p+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(p=1),g!==(m=h[u++]||"")&&(_=parseFloat(m)||0,C=m.substr((_+"").length),g.charAt(1)==="="&&(g=Vn(_,g)+C),k=parseFloat(g),w=g.substr((k+"").length),c=vn.lastIndex-w.length,w||(w=w||Re.units[n]||C,c===o.length&&(o+=w,a.e+=w)),C!==w&&(_=Gt(e,n,m,w)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:_,c:k-_,m:p&&p<4||n==="zIndex"?Math.round:0});a.c=c<o.length?o.substring(c,o.length):""}else a.r=n==="display"&&o==="none"?mu:_u;return wc.test(o)&&(a.e=0),this._pt=a,a},Cu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},tb=function(e){var n=e.split(" "),r=n[0],o=n[1]||"50%";return(r==="top"||r==="bottom"||o==="left"||o==="right")&&(e=r,r=o,o=e),n[0]=Cu[r]||r,n[1]=Cu[o]||o,n.join(" ")},nb=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,o=r.style,s=n.u,l=r._gsap,a,c,u;if(s==="all"||s===!0)o.cssText="",c=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],Nt[a]&&(c=1,a=a==="transformOrigin"?ve:re),pn(r,a);c&&(pn(r,re),l&&(l.svg&&r.removeAttribute("transform"),Vr(r,1),l.uncache=1,pu(o)))}},Ao={clearProps:function(e,n,r,o,s){if(s.data!=="isFromStart"){var l=e._pt=new Me(e._pt,n,r,0,0,nb);return l.u=o,l.pr=-10,l.tween=s,e._props.push(r),1}}},vr=[1,0,0,1,0,0],Eu={},Tu=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Bu=function(e){var n=wt(e,re);return Tu(n)?vr:n.substr(7).match(bc).map(ae)},Ls=function(e,n){var r=e._gsap||an(e),o=e.style,s=Bu(e),l,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?vr:s):(s===vr&&!e.offsetParent&&e!==zn&&!r.svg&&(c=o.display,o.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,zn.appendChild(e)),s=Bu(e),c?o.display=c:pn(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):zn.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},vs=function(e,n,r,o,s,l){var a=e._gsap,c=s||Ls(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,_=c[0],p=c[1],m=c[2],g=c[3],k=c[4],y=c[5],w=n.split(" "),C=parseFloat(w[0])||0,T=parseFloat(w[1])||0,b,x,E,B;r?c!==vr&&(x=_*g-p*m)&&(E=C*(g/x)+T*(-m/x)+(m*y-g*k)/x,B=C*(-p/x)+T*(_/x)-(_*y-p*k)/x,C=E,T=B):(b=ku(e),C=b.x+(~w[0].indexOf("%")?C/100*b.width:C),T=b.y+(~(w[1]||w[0]).indexOf("%")?T/100*b.height:T)),o||o!==!1&&a.smooth?(k=C-u,y=T-d,a.xOffset=f+(k*_+y*m)-k,a.yOffset=h+(k*p+y*g)-y):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!o,a.origin=n,a.originIsAbsolute=!!r,e.style[ve]="0px 0px",l&&(Ht(l,a,"xOrigin",u,C),Ht(l,a,"yOrigin",d,T),Ht(l,a,"xOffset",f,a.xOffset),Ht(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},Vr=function(e,n){var r=e._gsap||new tu(e);if("x"in r&&!n&&!r.uncache)return r;var o=e.style,s=r.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=wt(e,ve)||"0",d,f,h,_,p,m,g,k,y,w,C,T,b,x,E,B,N,I,A,R,K,le,P,te,we,Pn,Lt,nn,Ct,vi,ft,vt;return d=f=h=m=g=k=y=w=C=0,_=p=1,r.svg=!!(e.getCTM&&xu(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(o[re]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[re]!=="none"?c[re]:"")),o.scale=o.rotate=o.translate="none"),x=Ls(e,r.svg),r.svg&&(r.uncache?(we=e.getBBox(),u=r.xOrigin-we.x+"px "+(r.yOrigin-we.y)+"px",te=""):te=!n&&e.getAttribute("data-svg-origin"),vs(e,te||u,!!te||r.originIsAbsolute,r.smooth!==!1,x)),T=r.xOrigin||0,b=r.yOrigin||0,x!==vr&&(I=x[0],A=x[1],R=x[2],K=x[3],d=le=x[4],f=P=x[5],x.length===6?(_=Math.sqrt(I*I+A*A),p=Math.sqrt(K*K+R*R),m=I||A?Gn(A,I)*mn:0,y=R||K?Gn(R,K)*mn+m:0,y&&(p*=Math.abs(Math.cos(y*Hn))),r.svg&&(d-=T-(T*I+b*R),f-=b-(T*A+b*K))):(vt=x[6],vi=x[7],Lt=x[8],nn=x[9],Ct=x[10],ft=x[11],d=x[12],f=x[13],h=x[14],E=Gn(vt,Ct),g=E*mn,E&&(B=Math.cos(-E),N=Math.sin(-E),te=le*B+Lt*N,we=P*B+nn*N,Pn=vt*B+Ct*N,Lt=le*-N+Lt*B,nn=P*-N+nn*B,Ct=vt*-N+Ct*B,ft=vi*-N+ft*B,le=te,P=we,vt=Pn),E=Gn(-R,Ct),k=E*mn,E&&(B=Math.cos(-E),N=Math.sin(-E),te=I*B-Lt*N,we=A*B-nn*N,Pn=R*B-Ct*N,ft=K*N+ft*B,I=te,A=we,R=Pn),E=Gn(A,I),m=E*mn,E&&(B=Math.cos(E),N=Math.sin(E),te=I*B+A*N,we=le*B+P*N,A=A*B-I*N,P=P*B-le*N,I=te,le=we),g&&Math.abs(g)+Math.abs(m)>359.9&&(g=m=0,k=180-k),_=ae(Math.sqrt(I*I+A*A+R*R)),p=ae(Math.sqrt(P*P+vt*vt)),E=Gn(le,P),y=Math.abs(E)>2e-4?E*mn:0,C=ft?1/(ft<0?-ft:ft):0),r.svg&&(te=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Tu(wt(e,re)),te&&e.setAttribute("transform",te))),Math.abs(y)>90&&Math.abs(y)<270&&(s?(_*=-1,y+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,y+=y<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+l,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+l,r.z=h+l,r.scaleX=ae(_),r.scaleY=ae(p),r.rotation=ae(m)+a,r.rotationX=ae(g)+a,r.rotationY=ae(k)+a,r.skewX=y+a,r.skewY=w+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(o[ve]=Oo(u)),r.xOffset=r.yOffset=0,r.force3D=Re.force3D,r.renderTransform=r.svg?ob:yu?Nu:rb,r.uncache=0,r},Oo=function(e){return(e=e.split(" "))[0]+" "+e[1]},Vs=function(e,n,r){var o=Te(n);return ae(parseFloat(n)+parseFloat(Gt(e,"x",r+"px",o)))+o},rb=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Nu(e,n)},gn="0deg",qr="0px",yn=") ",Nu=function(e,n){var r=n||this,o=r.xPercent,s=r.yPercent,l=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,h=r.skewX,_=r.skewY,p=r.scaleX,m=r.scaleY,g=r.transformPerspective,k=r.force3D,y=r.target,w=r.zOrigin,C="",T=k==="auto"&&e&&e!==1||k===!0;if(w&&(f!==gn||d!==gn)){var b=parseFloat(d)*Hn,x=Math.sin(b),E=Math.cos(b),B;b=parseFloat(f)*Hn,B=Math.cos(b),l=Vs(y,l,x*B*-w),a=Vs(y,a,-Math.sin(b)*-w),c=Vs(y,c,E*B*-w+w)}g!==qr&&(C+="perspective("+g+yn),(o||s)&&(C+="translate("+o+"%, "+s+"%) "),(T||l!==qr||a!==qr||c!==qr)&&(C+=c!==qr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+yn),u!==gn&&(C+="rotate("+u+yn),d!==gn&&(C+="rotateY("+d+yn),f!==gn&&(C+="rotateX("+f+yn),(h!==gn||_!==gn)&&(C+="skew("+h+", "+_+yn),(p!==1||m!==1)&&(C+="scale("+p+", "+m+yn),y.style[re]=C||"translate(0, 0)"},ob=function(e,n){var r=n||this,o=r.xPercent,s=r.yPercent,l=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,h=r.scaleY,_=r.target,p=r.xOrigin,m=r.yOrigin,g=r.xOffset,k=r.yOffset,y=r.forceCSS,w=parseFloat(l),C=parseFloat(a),T,b,x,E,B;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Hn,u*=Hn,T=Math.cos(c)*f,b=Math.sin(c)*f,x=Math.sin(c-u)*-h,E=Math.cos(c-u)*h,u&&(d*=Hn,B=Math.tan(u-d),B=Math.sqrt(1+B*B),x*=B,E*=B,d&&(B=Math.tan(d),B=Math.sqrt(1+B*B),T*=B,b*=B)),T=ae(T),b=ae(b),x=ae(x),E=ae(E)):(T=f,E=h,b=x=0),(w&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(w=Gt(_,"x",l,"px"),C=Gt(_,"y",a,"px")),(p||m||g||k)&&(w=ae(w+p-(p*T+m*x)+g),C=ae(C+m-(p*b+m*E)+k)),(o||s)&&(B=_.getBBox(),w=ae(w+o/100*B.width),C=ae(C+s/100*B.height)),B="matrix("+T+","+b+","+x+","+E+","+w+","+C+")",_.setAttribute("transform",B),y&&(_.style[re]=B)},ib=function(e,n,r,o,s){var l=360,a=ge(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?mn:1),u=c-o,d=o+u+"deg",f,h;return a&&(f=s.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),f==="cw"&&u<0?u=(u+l*hu)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*hu)%l-~~(u/l)*l)),e._pt=h=new Me(e._pt,n,r,o,u,Uy),h.e=d,h.u="deg",e._props.push(r),h},Iu=function(e,n){for(var r in n)e[r]=n[r];return e},sb=function(e,n,r){var o=Iu({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,h,_,p;o.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[re]=n,a=Vr(r,1),pn(r,re),r.setAttribute("transform",u)):(u=getComputedStyle(r)[re],l[re]=n,a=Vr(r,1),l[re]=u);for(c in Nt)u=o[c],d=a[c],u!==d&&s.indexOf(c)<0&&(_=Te(u),p=Te(d),f=_!==p?Gt(r,c,u,p):parseFloat(u),h=parseFloat(d),e._pt=new Me(e._pt,a,c,f,h-f,Os),e._pt.u=p||0,e._props.push(c));Iu(a,o)};Pe("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",o="Bottom",s="Left",l=(e<3?[n,r,o,s]:[n+s,n+r,o+r,o+s]).map(function(a){return e<2?t+a:"border"+a+t});Ao[e>1?"border"+t:t]=function(a,c,u,d,f){var h,_;if(arguments.length<4)return h=l.map(function(p){return It(a,p,u)}),_=h.join(" "),_.split(h[0]).length===5?h[0]:_;h=(d+"").split(" "),_={},l.forEach(function(p,m){return _[p]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(c,_,f)}});var $u={name:"css",register:Ps,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,o,s){var l=this._props,a=e.style,c=r.vars.startAt,u,d,f,h,_,p,m,g,k,y,w,C,T,b,x,E;$s||Ps(),this.styles=this.styles||gu(e),E=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(d=n[m],!(je[m]&&nu(m,n,r,o,e,s)))){if(_=typeof d,p=Ao[m],_==="function"&&(d=d.call(r,o,e,s),_=typeof d),_==="string"&&~d.indexOf("random(")&&(d=Ar(d)),p)p(this,e,m,d,r)&&(x=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),d+="",Ut.lastIndex=0,Ut.test(u)||(g=Te(u),k=Te(d)),k?g!==k&&(u=Gt(e,m,u,k)+k):g&&(d+=g),this.add(a,"setProperty",u,d,o,s,0,0,m),l.push(m),E.push(m,0,a[m]);else if(_!=="undefined"){if(c&&m in c?(u=typeof c[m]=="function"?c[m].call(r,o,e,s):c[m],ge(u)&&~u.indexOf("random(")&&(u=Ar(u)),Te(u+"")||u==="auto"||(u+=Re.units[m]||Te(It(e,m))||""),(u+"").charAt(1)==="="&&(u=It(e,m))):u=It(e,m),h=parseFloat(u),y=_==="string"&&d.charAt(1)==="="&&d.substr(0,2),y&&(d=d.substr(2)),f=parseFloat(d),m in bt&&(m==="autoAlpha"&&(h===1&&It(e,"visibility")==="hidden"&&f&&(h=0),E.push("visibility",0,a.visibility),Ht(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=bt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),w=m in Nt,w){if(this.styles.save(m),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||Vr(e,n.parseTransform),b=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Me(this._pt,a,re,0,1,T.renderTransform,T,0,-1),C.dep=1),m==="scale")this._pt=new Me(this._pt,T,"scaleY",T.scaleY,(y?Vn(T.scaleY,y+f):f)-T.scaleY||0,Os),this._pt.u=0,l.push("scaleY",m),m+="X";else if(m==="transformOrigin"){E.push(ve,0,a[ve]),d=tb(d),T.svg?vs(e,d,0,b,0,this):(k=parseFloat(d.split(" ")[2])||0,k!==T.zOrigin&&Ht(this,T,"zOrigin",T.zOrigin,k),Ht(this,a,m,Oo(u),Oo(d)));continue}else if(m==="svgOrigin"){vs(e,d,1,b,0,this);continue}else if(m in Eu){ib(this,T,m,h,y?Vn(h,y+d):d);continue}else if(m==="smoothOrigin"){Ht(this,T,"smooth",T.smooth,d);continue}else if(m==="force3D"){T[m]=d;continue}else if(m==="transform"){sb(this,d,e);continue}}else m in a||(m=Zn(m)||m);if(w||(f||f===0)&&(h||h===0)&&!Ry.test(d)&&m in a)g=(u+"").substr((h+"").length),f||(f=0),k=Te(d)||(m in Re.units?Re.units[m]:g),g!==k&&(h=Gt(e,m,u,k)),this._pt=new Me(this._pt,w?T:a,m,h,(y?Vn(h,y+f):f)-h,!w&&(k==="px"||m==="zIndex")&&n.autoRound!==!1?zy:Os),this._pt.u=k||0,g!==k&&k!=="%"&&(this._pt.b=u,this._pt.r=jy);else if(m in a)eb.call(this,e,m,u,y?y+d:d);else if(m in e)this.add(e,m,u||e[m],y?y+d:d,o,s);else if(m!=="parseTransform"){ls(m,d);continue}w||(m in a?E.push(m,0,a[m]):E.push(m,1,u||e[m])),l.push(m)}}x&&au(this)},render:function(e,n){if(n.tween._time||!Fs())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:It,aliases:bt,getSetter:function(e,n,r){var o=bt[n];return o&&o.indexOf(",")<0&&(n=o),n in Nt&&n!==ve&&(e._gsap.x||It(e,"x"))?r&&fu===r?n==="scale"?Wy:Zy:(fu=r||{})&&(n==="scale"?Yy:Qy):e.style&&!ts(e.style[n])?Hy:~n.indexOf("-")?Gy:Es(e,n)},core:{_removeProperty:pn,_getMatrix:Ls}};Le.utils.checkPrefix=Zn,Le.core.getStyleSaver=gu,function(t,e,n,r){var o=Pe(t+","+e+","+n,function(s){Nt[s]=1});Pe(e,function(s){Re.units[s]="deg",Eu[s]=1}),bt[o[13]]=t+","+e,Pe(r,function(s){var l=s.split(":");bt[l[1]]=o[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Re.units[t]="px"}),Le.registerPlugin($u);var qs=Le.registerPlugin($u)||Le;qs.core.Tween;const lb={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=i.ref(null),r=i.computed(()=>e.delayOffset/n.value.$el.children.length);function o(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function s(a,c){if(e.disabled){c();return}qs.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}qs.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:o,onEnter:s,onLeave:l},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},512))}},Rs=i.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>Array.isArray(r.target)?r.target.length>0:!!r.target),s=i.computed(()=>r.actions.filter(c=>Array.isArray(r.target)?c.batchEnabled?c.batchEnabled(r.target):!0:c.enabled?c.enabled(r.target):!0)),l=i.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(r.target),l.value=!1,n("success",c)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(_c),{class:"px-2 flex dx-action-button",items:s.value,disabled:!o.value,tooltip:o.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),ab={key:0,class:"flex-grow overflow-hidden"},Fu=i.defineComponent({__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=i.computed(()=>e.rowProps.row),r=i.computed(()=>e.rowProps.col),o=i.computed(()=>e.rowProps.value),s=i.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=i.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=i.computed(()=>({[r.value.class||""]:!0,"is-saving":s.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(i.openBlock(),i.createBlock(i.unref(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:i.normalizeStyle(l.value),class:i.normalizeClass(["dx-column",r.value.columnClass])},{default:i.withCtx(()=>[i.createElementVNode("div",{style:i.normalizeStyle(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(["flex items-center flex-nowrap",a.value])},[r.value.hideContent?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",ab,[r.value.onClick?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass([r.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):i.renderSlot(c.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([r.value.innerClass,"dx-column-text"])},[r.value.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):i.renderSlot(c.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)),r.value.titleColumns?(i.openBlock(),i.createBlock(i.unref(Mu),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):i.createCommentVNode("",!0)])),r.value.actionMenu?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["flex flex-shrink-0",{"ml-2":!r.value.hideContent}])},[i.createVNode(i.unref(Rs),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])],2)):i.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class Us{constructor(e={}){G(this,"options",{direction:"vertical",hideDragImage:!1});G(this,"startY",0);G(this,"startX",0);G(this,"startSize",0);G(this,"cursorY",0);G(this,"cursorX",0);G(this,"onStartCb",null);G(this,"onEndCb",null);G(this,"onDropCb",null);G(this,"onDraggingCb",null);G(this,"dropZoneResolver",null);G(this,"currentDropZone",null);G(this,"draggableData",null);G(this,"abortController",null);e={direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",this.draggableData=n,this.abortController=new AbortController;const r={signal:this.abortController.signal};document.addEventListener("dragenter",o=>this.dragEnter(o),r),document.addEventListener("dragover",o=>this.dragOver(o),r),document.addEventListener("drop",o=>this.drop(o),r),this.onStartCb&&this.onStartCb(e),this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){var n;this.currentDropZone=null,(n=this.abortController)==null||n.abort(),this.draggableData=null,this.onEndCb&&this.onEndCb(e)}dragEnter(e){e.preventDefault()}dragOver(e){e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e)}drop(e){e.dataTransfer.dropEffect="move",e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData)}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let r=e.target;for(;r;){if(((n=r.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return r;r=r.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth}getPercentChange(){return this.getDistance()/this.startSize*100}}const Au={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,r=t,o=new Us().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(rn(()=>{n("resize",{distance:o.getDistance(),percent:o.getPercentChange(),startDropZoneSize:o.startSize,dropZoneSize:o.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(s,l)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>i.unref(o).dragStart&&i.unref(o).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>i.unref(o).dragEnd&&i.unref(o).dragEnd(...a))},[i.renderSlot(s.$slots,"default")],34))}};class Ou extends Us{constructor(n={}){super({showPlaceholder:!0,allowDropZoneChange:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"initialDropZone",null);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"onDropZoneChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDropZoneChange(n){return this.onDropZoneChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.initialDropZone=this.currentDropZone,this.updateScrollPosition())}dragEnd(n){var s;const r=this.draggableData;(s=this.placeholder)==null||s.remove();const o=this.currentDropZone;super.dragEnd(n),o&&o!==this.initialDropZone?this.onDropZoneChangeCb&&this.onDropZoneChangeCb(n,o,this.listPosition,this.initialPosition,r):this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){super.dragOver(n),this.updateListPosition(n)}updateListPosition(n){var a;const r={x:n.clientX,y:n.clientY},o=this.getDropZoneForTarget(n.target);o!==this.currentDropZone&&(this.currentDropZone=o,this.cursorPosition=0,this.listPosition=0,(a=this.placeholder)==null||a.remove());const s=this.listPosition,l=this.getListPositionOfPoint(r);this.cursorPosition!==l&&(this.cursorPosition=l,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==s&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.draggableData))}getListPosition(n){let r=0;for(const o of this.getChildren()){if(o===n)return r;r++}return null}getChildren(){var n;return[...((n=this.currentDropZone)==null?void 0:n.children)||[]].filter(r=>r.className.match(/dx-drag-placeholder/)===null)}getDropZoneForTarget(n){return n.closest("[data-drop-zone]")}isSameDropZone(){return this.currentDropZone===this.initialDropZone}getListPositionOfPoint(n){let r=0;const o=this.getChildren();for(;r<o.length;){const s=o[r].getBoundingClientRect();if(this.isVertical()){if(n.y<s.top+s.height/2)break}else if(n.x<s.left+s.width/2)break;r++}return r}updateScrollPosition(){if(this.currentDropZone){const n=this.currentDropZone.getBoundingClientRect(),r=100;let o=0;const s=f=>f*5,l=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-l,d=l-(c-r);u>0?o=-s(u):d>0&&(o=s(d)),o&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+o,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+o,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}}renderPlaceholder(){if(!this.options.allowDropZoneChange&&!this.isSameDropZone())return;this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("dx-drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("dx-direction-vertical"),this.placeholder.classList.remove("dx-direction-horizontal"),this.placeholder.style.height=void 0):(this.placeholder.classList.add("dx-direction-horizontal"),this.placeholder.classList.remove("dx-direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const cb=["draggable"],ub={class:"flex-grow"},Du=i.defineComponent({__name:"ListItemDraggable",props:i.mergeModels({dropZone:{},direction:{default:"vertical"},showHandle:{type:Boolean},changeDropZone:{type:Boolean},contentClass:{default:"flex flex-nowrap items-center"},handleClass:{default:""},handleSize:{default:"w-4 h-4"},listItems:{default:()=>[]},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["position","update:list-items","drop-zone"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t,s=i.computed(()=>({"cursor-move":!o.disabled,...typeof o.handleClass=="string"?{[o.handleClass]:!0}:o.handleClass})),l=new Ou().setDropZone(o.dropZone).setOptions({showPlaceholder:!0,allowDropZoneChange:o.changeDropZone,direction:o.direction}).onStart(()=>r.value=!0).onEnd(()=>r.value=!1).onDropZoneChange((a,c,u,d,f)=>{let h=null,_=[];o.listItems&&(_=[...o.listItems],h=_.splice(d,1)[0]),n("drop-zone",{target:a,item:h,items:_,dropZone:c,oldPosition:d,newPosition:u,data:f})}).onPositionChange((a,c)=>{if(n("position",a),o.listItems){const u=[...o.listItems];u.splice(a,0,u.splice(c,1)[0]),n("update:list-items",u)}});return(a,c)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"cursor-move":!a.showHandle&&!a.disabled}),draggable:a.disabled?void 0:"true",onDragstart:c[0]||(c[0]=i.withModifiers(u=>a.disabled?null:i.unref(l).dragStart,["stop"])),onDragend:c[1]||(c[1]=u=>a.disabled?null:i.unref(l).dragEnd)},[i.createElementVNode("div",{class:i.normalizeClass(a.contentClass)},[a.showHandle?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(s.value)},[a.disabled?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(a.handleSize)},null,2)):(i.openBlock(),i.createBlock(i.unref(uc),{key:1,svg:i.unref(Ma),class:i.normalizeClass(a.handleSize),alt:"drag-handle"},null,8,["svg","class"]))],2)):i.createCommentVNode("",!0),i.createElementVNode("div",ub,[i.renderSlot(a.$slots,"default")])],2)],42,cb))}}),Pu=ht(i.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.rowProps.col),s=i.computed(()=>o.value.resizeable),l=i.computed(()=>{var f;const d=((f=r.settings)==null?void 0:f.width)||o.value.width;return{width:d?`${d}px`:void 0,minWidth:o.value.minWidth?`${o.value.minWidth}px`:void 0,...o.value.headerStyle||{}}}),a=i.useCssModule("cls"),c=i.computed(()=>{const d={[a["handle-drop-zone"]]:s.value,"dx-column-shrink":o.value.shrink},f=o.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...r.modelValue,[o.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,o.value.maxWidth||500),o.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(i.openBlock(),i.createBlock(i.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":s.value&&"resize-column-"+o.value.name,class:i.normalizeClass(c.value),style:i.normalizeStyle(l.value)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label)+" ",1),s.value?(i.openBlock(),i.createBlock(i.unref(Au),{key:0,"drop-zone":"resize-column-"+o.value.name,class:i.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:i.withCtx(()=>[i.createVNode(i.unref(La),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):i.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_x1jdl_1","!visible":"_!visible_x1jdl_1",visible:"_visible_x1jdl_1",collapse:"_collapse_x1jdl_1",static:"_static_x1jdl_1",absolute:"_absolute_x1jdl_1",relative:"_relative_x1jdl_1",sticky:"_sticky_x1jdl_1","left-0":"_left-0_x1jdl_1","right-0":"_right-0_x1jdl_1","right-1":"_right-1_x1jdl_1","top-0":"_top-0_x1jdl_1","top-1":"_top-1_x1jdl_1","z-10":"_z-10_x1jdl_1","m-2":"_m-2_x1jdl_1","m-4":"_m-4_x1jdl_1","m-auto":"_m-auto_x1jdl_1","mx-1":"_mx-1_x1jdl_1","mx-4":"_mx-4_x1jdl_1","mx-auto":"_mx-auto_x1jdl_1","my-2":"_my-2_x1jdl_1","!mr-1":"_!mr-1_x1jdl_1","mb-2":"_mb-2_x1jdl_1","mb-4":"_mb-4_x1jdl_1","ml-1":"_ml-1_x1jdl_1","ml-2":"_ml-2_x1jdl_1","ml-2.5":"_ml-2.5_x1jdl_1","ml-3":"_ml-3_x1jdl_1","ml-4":"_ml-4_x1jdl_1","ml-5":"_ml-5_x1jdl_1","ml-[-.2em]":"_ml-[-.2em]_x1jdl_1","mr-1":"_mr-1_x1jdl_1","mr-2":"_mr-2_x1jdl_1","mr-3":"_mr-3_x1jdl_1","mr-4":"_mr-4_x1jdl_1","mt-1":"_mt-1_x1jdl_1","mt-2":"_mt-2_x1jdl_1","mt-3":"_mt-3_x1jdl_1","mt-4":"_mt-4_x1jdl_1",block:"_block_x1jdl_1","inline-block":"_inline-block_x1jdl_1",inline:"_inline_x1jdl_1",flex:"_flex_x1jdl_1",table:"_table_x1jdl_1",hidden:"_hidden_x1jdl_1","h-10":"_h-10_x1jdl_1","h-16":"_h-16_x1jdl_1","h-4":"_h-4_x1jdl_1","h-5":"_h-5_x1jdl_1","h-6":"_h-6_x1jdl_1","h-8":"_h-8_x1jdl_1","h-[2.25rem]":"_h-[2.25rem]_x1jdl_1","h-full":"_h-full_x1jdl_1","max-h-full":"_max-h-full_x1jdl_1","min-h-10":"_min-h-10_x1jdl_1","w-10":"_w-10_x1jdl_1","w-16":"_w-16_x1jdl_1","w-2/5":"_w-2/5_x1jdl_1","w-24":"_w-24_x1jdl_1","w-3":"_w-3_x1jdl_1","w-3/5":"_w-3/5_x1jdl_1","w-32":"_w-32_x1jdl_1","w-4":"_w-4_x1jdl_1","w-48":"_w-48_x1jdl_1","w-5":"_w-5_x1jdl_1","w-6":"_w-6_x1jdl_1","w-7":"_w-7_x1jdl_1","w-72":"_w-72_x1jdl_1","w-8":"_w-8_x1jdl_1","w-96":"_w-96_x1jdl_1","w-[13.5rem]":"_w-[13.5rem]_x1jdl_1","w-[6.5rem]":"_w-[6.5rem]_x1jdl_1","w-[80rem]":"_w-[80rem]_x1jdl_1","w-full":"_w-full_x1jdl_1","!min-w-0":"_!min-w-0_x1jdl_1","min-w-10":"_min-w-10_x1jdl_1","max-w-full":"_max-w-full_x1jdl_1","flex-shrink":"_flex-shrink_x1jdl_1","flex-shrink-0":"_flex-shrink-0_x1jdl_1",shrink:"_shrink_x1jdl_1","flex-grow":"_flex-grow_x1jdl_1",grow:"_grow_x1jdl_1","rotate-180":"_rotate-180_x1jdl_1",transform:"_transform_x1jdl_1","cursor-ew-resize":"_cursor-ew-resize_x1jdl_1","cursor-move":"_cursor-move_x1jdl_1","cursor-not-allowed":"_cursor-not-allowed_x1jdl_1","cursor-ns-resize":"_cursor-ns-resize_x1jdl_1","cursor-pointer":"_cursor-pointer_x1jdl_1",resize:"_resize_x1jdl_121","flex-col":"_flex-col_x1jdl_1","flex-nowrap":"_flex-nowrap_x1jdl_1","items-center":"_items-center_x1jdl_1","items-stretch":"_items-stretch_x1jdl_1","justify-start":"_justify-start_x1jdl_1","justify-end":"_justify-end_x1jdl_1","justify-center":"_justify-center_x1jdl_1","justify-between":"_justify-between_x1jdl_1","gap-x-4":"_gap-x-4_x1jdl_1","gap-y-0":"_gap-y-0_x1jdl_1","gap-y-1":"_gap-y-1_x1jdl_1","space-x-1":"_space-x-1_x1jdl_1","space-x-2":"_space-x-2_x1jdl_1","self-center":"_self-center_x1jdl_1","overflow-auto":"_overflow-auto_x1jdl_1","overflow-hidden":"_overflow-hidden_x1jdl_1","overflow-y-auto":"_overflow-y-auto_x1jdl_73","overflow-x-hidden":"_overflow-x-hidden_x1jdl_1","scroll-smooth":"_scroll-smooth_x1jdl_1","overflow-ellipsis":"_overflow-ellipsis_x1jdl_1","whitespace-normal":"_whitespace-normal_x1jdl_1","whitespace-nowrap":"_whitespace-nowrap_x1jdl_1",rounded:"_rounded_x1jdl_1","rounded-2xl":"_rounded-2xl_x1jdl_1","rounded-lg":"_rounded-lg_x1jdl_1","rounded-md":"_rounded-md_x1jdl_1","rounded-sm":"_rounded-sm_x1jdl_1","!rounded-l-none":"_!rounded-l-none_x1jdl_1","!rounded-r-none":"_!rounded-r-none_x1jdl_1","rounded-b-lg":"_rounded-b-lg_x1jdl_1","rounded-t-lg":"_rounded-t-lg_x1jdl_1","rounded-t-md":"_rounded-t-md_x1jdl_1","!border-0":"_!border-0_x1jdl_1",border:"_border_x1jdl_1","border-b":"_border-b_x1jdl_1","border-l":"_border-l_x1jdl_1","border-l-0":"_border-l-0_x1jdl_1","border-r":"_border-r_x1jdl_1","border-solid":"_border-solid_x1jdl_1","border-dashed":"_border-dashed_x1jdl_1","border-none":"_border-none_x1jdl_1","border-blue-600":"_border-blue-600_x1jdl_1","border-blue-700":"_border-blue-700_x1jdl_1","border-gray-200":"_border-gray-200_x1jdl_1","border-gray-300":"_border-gray-300_x1jdl_1","border-slate-200":"_border-slate-200_x1jdl_1","bg-black":"_bg-black_x1jdl_1","bg-blue-200":"_bg-blue-200_x1jdl_1","bg-blue-600":"_bg-blue-600_x1jdl_1","bg-emerald-200":"_bg-emerald-200_x1jdl_1","bg-gray-100":"_bg-gray-100_x1jdl_1","bg-gray-200":"_bg-gray-200_x1jdl_1","bg-gray-400":"_bg-gray-400_x1jdl_1","bg-gray-500":"_bg-gray-500_x1jdl_1","bg-green-200":"_bg-green-200_x1jdl_1","bg-green-300":"_bg-green-300_x1jdl_1","bg-green-900":"_bg-green-900_x1jdl_1","bg-red-200":"_bg-red-200_x1jdl_1","bg-red-300":"_bg-red-300_x1jdl_1","bg-red-900":"_bg-red-900_x1jdl_1","bg-sky-300":"_bg-sky-300_x1jdl_1","bg-sky-800":"_bg-sky-800_x1jdl_1","bg-slate-100":"_bg-slate-100_x1jdl_1","bg-slate-500":"_bg-slate-500_x1jdl_1","bg-slate-800":"_bg-slate-800_x1jdl_1","bg-slate-900":"_bg-slate-900_x1jdl_1","bg-transparent":"_bg-transparent_x1jdl_1","bg-white":"_bg-white_x1jdl_1","bg-yellow-300":"_bg-yellow-300_x1jdl_1","!bg-none":"_!bg-none_x1jdl_1","!p-2":"_!p-2_x1jdl_1","p-0":"_p-0_x1jdl_1","p-1":"_p-1_x1jdl_1","p-2":"_p-2_x1jdl_1","p-3":"_p-3_x1jdl_1","p-4":"_p-4_x1jdl_1","!py-0":"_!py-0_x1jdl_1","px-1":"_px-1_x1jdl_1","px-12":"_px-12_x1jdl_1","px-2":"_px-2_x1jdl_1","px-2.5":"_px-2.5_x1jdl_1","px-4":"_px-4_x1jdl_1","px-6":"_px-6_x1jdl_1","px-8":"_px-8_x1jdl_1","py-1":"_py-1_x1jdl_1","py-14":"_py-14_x1jdl_1","py-2":"_py-2_x1jdl_1","py-3":"_py-3_x1jdl_1","py-4":"_py-4_x1jdl_1","py-5":"_py-5_x1jdl_1","py-8":"_py-8_x1jdl_1","pl-1":"_pl-1_x1jdl_1","pt-3":"_pt-3_x1jdl_1","text-left":"_text-left_x1jdl_1","text-center":"_text-center_x1jdl_1","text-[.7rem]":"_text-[.7rem]_x1jdl_1","text-[1rem]":"_text-[1rem]_x1jdl_1","text-base":"_text-base_x1jdl_1","text-sm":"_text-sm_x1jdl_1","text-xs":"_text-xs_x1jdl_1","font-bold":"_font-bold_x1jdl_1","font-medium":"_font-medium_x1jdl_1","font-semibold":"_font-semibold_x1jdl_1",uppercase:"_uppercase_x1jdl_1","leading-[1.2rem]":"_leading-[1.2rem]_x1jdl_1","!text-green-900":"_!text-green-900_x1jdl_1","!text-red-900":"_!text-red-900_x1jdl_1","!text-sky-900":"_!text-sky-900_x1jdl_1","!text-white":"_!text-white_x1jdl_1","!text-yellow-900":"_!text-yellow-900_x1jdl_1","text-blue-600":"_text-blue-600_x1jdl_1","text-blue-900":"_text-blue-900_x1jdl_1","text-gray-300":"_text-gray-300_x1jdl_1","text-gray-400":"_text-gray-400_x1jdl_1","text-gray-500":"_text-gray-500_x1jdl_1","text-gray-600":"_text-gray-600_x1jdl_1","text-gray-700":"_text-gray-700_x1jdl_1","text-green-700":"_text-green-700_x1jdl_1","text-red-400":"_text-red-400_x1jdl_1","text-red-500":"_text-red-500_x1jdl_1","text-red-800":"_text-red-800_x1jdl_1","text-red-900":"_text-red-900_x1jdl_1","text-slate-200":"_text-slate-200_x1jdl_1","text-slate-300":"_text-slate-300_x1jdl_1","text-slate-50":"_text-slate-50_x1jdl_1","text-slate-500":"_text-slate-500_x1jdl_1","text-white":"_text-white_x1jdl_1","text-yellow-600":"_text-yellow-600_x1jdl_1","text-zinc-500":"_text-zinc-500_x1jdl_1","text-zinc-800":"_text-zinc-800_x1jdl_1","line-through":"_line-through_x1jdl_1","opacity-0":"_opacity-0_x1jdl_1","opacity-20":"_opacity-20_x1jdl_1","opacity-50":"_opacity-50_x1jdl_1","opacity-70":"_opacity-70_x1jdl_1","opacity-80":"_opacity-80_x1jdl_1","shadow-none":"_shadow-none_x1jdl_1","outline-none":"_outline-none_x1jdl_1",outline:"_outline_x1jdl_1","outline-offset-0":"_outline-offset-0_x1jdl_1",filter:"_filter_x1jdl_1",transition:"_transition_x1jdl_1","transition-all":"_transition-all_x1jdl_1","duration-300":"_duration-300_x1jdl_1","danx-app":"_danx-app_x1jdl_4","q-tab":"_q-tab_x1jdl_4","q-table__card":"_q-table__card_x1jdl_7","q-checkbox__inner":"_q-checkbox__inner_x1jdl_11","q-toolbar":"_q-toolbar_x1jdl_14","q-notification__actions":"_q-notification__actions_x1jdl_19","q-date":"_q-date_x1jdl_22","q-date__view":"_q-date__view_x1jdl_25","q-field":"_q-field_x1jdl_28","q-field--auto-height":"_q-field--auto-height_x1jdl_28","q-field__control":"_q-field__control_x1jdl_28","q-field__native":"_q-field__native_x1jdl_31","q-field--labeled":"_q-field--labeled_x1jdl_35","q-field__control-container":"_q-field__control-container_x1jdl_35","q-textarea":"_q-textarea_x1jdl_38","q-field__marginal":"_q-field__marginal_x1jdl_41","q-field__input":"_q-field__input_x1jdl_41","q-field__label":"_q-field__label_x1jdl_41","q-btn":"_q-btn_x1jdl_48","q-item":"_q-item_x1jdl_56","q-tab-panels":"_q-tab-panels_x1jdl_60","q-panel":"_q-panel_x1jdl_64",scroll:"_scroll_x1jdl_67","q-tab-panel":"_q-tab-panel_x1jdl_60","dx-dialog":"_dx-dialog_x1jdl_77","q-card__section--vert":"_q-card__section--vert_x1jdl_77","q-banner":"_q-banner_x1jdl_81",app:"_app_x1jdl_1","main-layout":"_main-layout_x1jdl_1","is-disabled":"_is-disabled_x1jdl_98","disable-all-transitions":"_disable-all-transitions_x1jdl_103","v-enter-active":"_v-enter-active_x1jdl_107","v-leave-active":"_v-leave-active_x1jdl_108","v-enter-from":"_v-enter-from_x1jdl_112","v-leave-to":"_v-leave-to_x1jdl_113","dx-action-table":"_dx-action-table_x1jdl_117","dx-column-shrink":"_dx-column-shrink_x1jdl_117","handle-drop-zone":"_handle-drop-zone_x1jdl_121","resize-handle":"_resize-handle_x1jdl_121","hover:bg-blue-200":"_hover:bg-blue-200_x1jdl_1","hover:bg-gray-200":"_hover:bg-gray-200_x1jdl_1","hover:bg-green-100":"_hover:bg-green-100_x1jdl_1","hover:bg-red-100":"_hover:bg-red-100_x1jdl_1","hover:bg-red-200":"_hover:bg-red-200_x1jdl_1","hover:bg-slate-200":"_hover:bg-slate-200_x1jdl_1","hover:bg-slate-300":"_hover:bg-slate-300_x1jdl_1","hover:bg-slate-600":"_hover:bg-slate-600_x1jdl_1","hover:text-blue-500":"_hover:text-blue-500_x1jdl_1","hover:text-blue-600":"_hover:text-blue-600_x1jdl_1","hover:opacity-100":"_hover:opacity-100_x1jdl_1","hover:opacity-20":"_hover:opacity-20_x1jdl_1","hover:opacity-70":"_hover:opacity-70_x1jdl_1","hover:outline-4":"_hover:outline-4_x1jdl_1","focus:bg-blue-200":"_focus:bg-blue-200_x1jdl_1","focus:outline-4":"_focus:outline-4_x1jdl_1","focus:outline-blue-200":"_focus:outline-blue-200_x1jdl_1",group:"_group_x1jdl_1","group-hover:opacity-100":"_group-hover:opacity-100_x1jdl_1"}}]]),db={key:0,class:"text-zinc-800 cursor-not-allowed"},fb={class:"font-semibold text-sm ml-5 py-3 flex-grow"},hb={key:1,class:"flex items-center"},js={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const r=i.resolveComponent("QTooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(i.openBlock(),i.createElementBlock("a",db,[i.createVNode(i.unref(fp),{class:"w-4"})])):i.createCommentVNode("",!0),i.createElementVNode("div",fb,i.toDisplayString(t.column.label),1),t.locked?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",hb,[i.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=o=>e.$emit("visible",!t.visible))},[t.visible?(i.openBlock(),i.createBlock(i.unref(up),{key:0,class:"w-4"})):(i.openBlock(),i.createBlock(i.unref(cp),{key:1,class:"w-4 text-zinc-800"}))]),i.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=o=>e.$emit("is-title",!t.isTitle))},[i.createVNode(i.unref(ym),{class:i.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),i.createVNode(r,null,{default:i.withCtx(()=>[t.isTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("Remove from priority list")],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},_b=i.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),mb={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function s(u){return!r.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=Rr(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!o.value){Ve.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Rr(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(i.openBlock(),i.createBlock(i.unref(Qa),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:i.withCtx(()=>[_b,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.lockedColumns,f=>(i.openBlock(),i.createBlock(i.unref(js),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),i.createVNode(i.unref(mc),{name:"fade-down-list","data-drop-zone":"column-list"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.sortableColumns,(f,h)=>(i.openBlock(),i.createBlock(i.unref(Du),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:i.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=_=>u.$emit("update:sortable-columns",_))},{default:i.withCtx(()=>[i.createVNode(i.unref(js),{column:f,visible:s(f),"is-title":a(f),onVisible:_=>l(f,_),onIsTitle:_=>c(f,_)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Mu={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.columns,o=>(i.openBlock(),i.createElementBlock("div",{key:o.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},i.toDisplayString(e(t.row[o.name],o.format)),1))),128))]))}},pb={"pointer-events-none":"_pointer-events-none_anhw9_1","!visible":"_!visible_anhw9_1",visible:"_visible_anhw9_1",collapse:"_collapse_anhw9_1",static:"_static_anhw9_1",absolute:"_absolute_anhw9_1",relative:"_relative_anhw9_1",sticky:"_sticky_anhw9_1","left-0":"_left-0_anhw9_1","right-0":"_right-0_anhw9_1","right-1":"_right-1_anhw9_1","top-0":"_top-0_anhw9_1","top-1":"_top-1_anhw9_1","z-10":"_z-10_anhw9_1","m-2":"_m-2_anhw9_1","m-4":"_m-4_anhw9_1","m-auto":"_m-auto_anhw9_1","mx-1":"_mx-1_anhw9_1","mx-4":"_mx-4_anhw9_1","mx-auto":"_mx-auto_anhw9_1","my-2":"_my-2_anhw9_1","!mr-1":"_!mr-1_anhw9_1","mb-2":"_mb-2_anhw9_1","mb-4":"_mb-4_anhw9_1","ml-1":"_ml-1_anhw9_1","ml-2":"_ml-2_anhw9_1","ml-2.5":"_ml-2.5_anhw9_1","ml-3":"_ml-3_anhw9_1","ml-4":"_ml-4_anhw9_1","ml-5":"_ml-5_anhw9_1","ml-[-.2em]":"_ml-[-.2em]_anhw9_1","mr-1":"_mr-1_anhw9_1","mr-2":"_mr-2_anhw9_1","mr-3":"_mr-3_anhw9_1","mr-4":"_mr-4_anhw9_1","mt-1":"_mt-1_anhw9_1","mt-2":"_mt-2_anhw9_1","mt-3":"_mt-3_anhw9_1","mt-4":"_mt-4_anhw9_1",block:"_block_anhw9_1","inline-block":"_inline-block_anhw9_1",inline:"_inline_anhw9_1",flex:"_flex_anhw9_1",table:"_table_anhw9_1",hidden:"_hidden_anhw9_1","h-10":"_h-10_anhw9_1","h-16":"_h-16_anhw9_1","h-4":"_h-4_anhw9_1","h-5":"_h-5_anhw9_1","h-6":"_h-6_anhw9_1","h-8":"_h-8_anhw9_1","h-[2.25rem]":"_h-[2.25rem]_anhw9_1","h-full":"_h-full_anhw9_1","max-h-full":"_max-h-full_anhw9_1","min-h-10":"_min-h-10_anhw9_1","w-10":"_w-10_anhw9_1","w-16":"_w-16_anhw9_1","w-2/5":"_w-2/5_anhw9_1","w-24":"_w-24_anhw9_1","w-3":"_w-3_anhw9_1","w-3/5":"_w-3/5_anhw9_1","w-32":"_w-32_anhw9_1","w-4":"_w-4_anhw9_1","w-48":"_w-48_anhw9_1","w-5":"_w-5_anhw9_1","w-6":"_w-6_anhw9_1","w-7":"_w-7_anhw9_1","w-72":"_w-72_anhw9_1","w-8":"_w-8_anhw9_1","w-96":"_w-96_anhw9_1","w-[13.5rem]":"_w-[13.5rem]_anhw9_1","w-[6.5rem]":"_w-[6.5rem]_anhw9_1","w-[80rem]":"_w-[80rem]_anhw9_1","w-full":"_w-full_anhw9_1","!min-w-0":"_!min-w-0_anhw9_1","min-w-10":"_min-w-10_anhw9_1","max-w-full":"_max-w-full_anhw9_1","flex-shrink":"_flex-shrink_anhw9_1","flex-shrink-0":"_flex-shrink-0_anhw9_1",shrink:"_shrink_anhw9_1","flex-grow":"_flex-grow_anhw9_1",grow:"_grow_anhw9_1","rotate-180":"_rotate-180_anhw9_1",transform:"_transform_anhw9_1","cursor-ew-resize":"_cursor-ew-resize_anhw9_1","cursor-move":"_cursor-move_anhw9_1","cursor-not-allowed":"_cursor-not-allowed_anhw9_1","cursor-ns-resize":"_cursor-ns-resize_anhw9_1","cursor-pointer":"_cursor-pointer_anhw9_1",resize:"_resize_anhw9_1","flex-col":"_flex-col_anhw9_1","flex-nowrap":"_flex-nowrap_anhw9_1","items-center":"_items-center_anhw9_1","items-stretch":"_items-stretch_anhw9_1","justify-start":"_justify-start_anhw9_1","justify-end":"_justify-end_anhw9_1","justify-center":"_justify-center_anhw9_1","justify-between":"_justify-between_anhw9_1","gap-x-4":"_gap-x-4_anhw9_1","gap-y-0":"_gap-y-0_anhw9_1","gap-y-1":"_gap-y-1_anhw9_1","space-x-1":"_space-x-1_anhw9_1","space-x-2":"_space-x-2_anhw9_1","self-center":"_self-center_anhw9_1","overflow-auto":"_overflow-auto_anhw9_1","overflow-hidden":"_overflow-hidden_anhw9_1","overflow-y-auto":"_overflow-y-auto_anhw9_73","overflow-x-hidden":"_overflow-x-hidden_anhw9_1","scroll-smooth":"_scroll-smooth_anhw9_1","overflow-ellipsis":"_overflow-ellipsis_anhw9_1","whitespace-normal":"_whitespace-normal_anhw9_1","whitespace-nowrap":"_whitespace-nowrap_anhw9_1",rounded:"_rounded_anhw9_1","rounded-2xl":"_rounded-2xl_anhw9_1","rounded-lg":"_rounded-lg_anhw9_1","rounded-md":"_rounded-md_anhw9_1","rounded-sm":"_rounded-sm_anhw9_1","!rounded-l-none":"_!rounded-l-none_anhw9_1","!rounded-r-none":"_!rounded-r-none_anhw9_1","rounded-b-lg":"_rounded-b-lg_anhw9_1","rounded-t-lg":"_rounded-t-lg_anhw9_1","rounded-t-md":"_rounded-t-md_anhw9_1","!border-0":"_!border-0_anhw9_1",border:"_border_anhw9_1","border-b":"_border-b_anhw9_1","border-l":"_border-l_anhw9_1","border-l-0":"_border-l-0_anhw9_1","border-r":"_border-r_anhw9_1","border-solid":"_border-solid_anhw9_1","border-dashed":"_border-dashed_anhw9_1","border-none":"_border-none_anhw9_1","border-blue-600":"_border-blue-600_anhw9_1","border-blue-700":"_border-blue-700_anhw9_1","border-gray-200":"_border-gray-200_anhw9_1","border-gray-300":"_border-gray-300_anhw9_1","border-slate-200":"_border-slate-200_anhw9_1","bg-black":"_bg-black_anhw9_1","bg-blue-200":"_bg-blue-200_anhw9_1","bg-blue-600":"_bg-blue-600_anhw9_1","bg-emerald-200":"_bg-emerald-200_anhw9_1","bg-gray-100":"_bg-gray-100_anhw9_1","bg-gray-200":"_bg-gray-200_anhw9_1","bg-gray-400":"_bg-gray-400_anhw9_1","bg-gray-500":"_bg-gray-500_anhw9_1","bg-green-200":"_bg-green-200_anhw9_1","bg-green-300":"_bg-green-300_anhw9_1","bg-green-900":"_bg-green-900_anhw9_1","bg-red-200":"_bg-red-200_anhw9_1","bg-red-300":"_bg-red-300_anhw9_1","bg-red-900":"_bg-red-900_anhw9_1","bg-sky-300":"_bg-sky-300_anhw9_1","bg-sky-800":"_bg-sky-800_anhw9_1","bg-slate-100":"_bg-slate-100_anhw9_1","bg-slate-500":"_bg-slate-500_anhw9_1","bg-slate-800":"_bg-slate-800_anhw9_1","bg-slate-900":"_bg-slate-900_anhw9_1","bg-transparent":"_bg-transparent_anhw9_1","bg-white":"_bg-white_anhw9_1","bg-yellow-300":"_bg-yellow-300_anhw9_1","!bg-none":"_!bg-none_anhw9_1","!p-2":"_!p-2_anhw9_1","p-0":"_p-0_anhw9_1","p-1":"_p-1_anhw9_1","p-2":"_p-2_anhw9_1","p-3":"_p-3_anhw9_1","p-4":"_p-4_anhw9_1","!py-0":"_!py-0_anhw9_1","px-1":"_px-1_anhw9_1","px-12":"_px-12_anhw9_1","px-2":"_px-2_anhw9_1","px-2.5":"_px-2.5_anhw9_1","px-4":"_px-4_anhw9_1","px-6":"_px-6_anhw9_1","px-8":"_px-8_anhw9_1","py-1":"_py-1_anhw9_1","py-14":"_py-14_anhw9_1","py-2":"_py-2_anhw9_1","py-3":"_py-3_anhw9_1","py-4":"_py-4_anhw9_1","py-5":"_py-5_anhw9_1","py-8":"_py-8_anhw9_1","pl-1":"_pl-1_anhw9_1","pt-3":"_pt-3_anhw9_1","text-left":"_text-left_anhw9_1","text-center":"_text-center_anhw9_1","text-[.7rem]":"_text-[.7rem]_anhw9_1","text-[1rem]":"_text-[1rem]_anhw9_1","text-base":"_text-base_anhw9_1","text-sm":"_text-sm_anhw9_1","text-xs":"_text-xs_anhw9_1","font-bold":"_font-bold_anhw9_1","font-medium":"_font-medium_anhw9_1","font-semibold":"_font-semibold_anhw9_1",uppercase:"_uppercase_anhw9_1","leading-[1.2rem]":"_leading-[1.2rem]_anhw9_1","!text-green-900":"_!text-green-900_anhw9_1","!text-red-900":"_!text-red-900_anhw9_1","!text-sky-900":"_!text-sky-900_anhw9_1","!text-white":"_!text-white_anhw9_1","!text-yellow-900":"_!text-yellow-900_anhw9_1","text-blue-600":"_text-blue-600_anhw9_1","text-blue-900":"_text-blue-900_anhw9_1","text-gray-300":"_text-gray-300_anhw9_1","text-gray-400":"_text-gray-400_anhw9_1","text-gray-500":"_text-gray-500_anhw9_1","text-gray-600":"_text-gray-600_anhw9_1","text-gray-700":"_text-gray-700_anhw9_1","text-green-700":"_text-green-700_anhw9_1","text-red-400":"_text-red-400_anhw9_1","text-red-500":"_text-red-500_anhw9_1","text-red-800":"_text-red-800_anhw9_1","text-red-900":"_text-red-900_anhw9_1","text-slate-200":"_text-slate-200_anhw9_1","text-slate-300":"_text-slate-300_anhw9_1","text-slate-50":"_text-slate-50_anhw9_1","text-slate-500":"_text-slate-500_anhw9_1","text-white":"_text-white_anhw9_1","text-yellow-600":"_text-yellow-600_anhw9_1","text-zinc-500":"_text-zinc-500_anhw9_1","text-zinc-800":"_text-zinc-800_anhw9_1","line-through":"_line-through_anhw9_1","opacity-0":"_opacity-0_anhw9_1","opacity-20":"_opacity-20_anhw9_1","opacity-50":"_opacity-50_anhw9_1","opacity-70":"_opacity-70_anhw9_1","opacity-80":"_opacity-80_anhw9_1","shadow-none":"_shadow-none_anhw9_1","outline-none":"_outline-none_anhw9_1",outline:"_outline_anhw9_1","outline-offset-0":"_outline-offset-0_anhw9_1",filter:"_filter_anhw9_1",transition:"_transition_anhw9_1","transition-all":"_transition-all_anhw9_1","duration-300":"_duration-300_anhw9_1","danx-app":"_danx-app_anhw9_4","q-tab":"_q-tab_anhw9_4","q-table__card":"_q-table__card_anhw9_7","q-checkbox__inner":"_q-checkbox__inner_anhw9_11","q-toolbar":"_q-toolbar_anhw9_14","q-notification__actions":"_q-notification__actions_anhw9_19","q-date":"_q-date_anhw9_22","q-date__view":"_q-date__view_anhw9_25","q-field":"_q-field_anhw9_28","q-field--auto-height":"_q-field--auto-height_anhw9_28","q-field__control":"_q-field__control_anhw9_28","q-field__native":"_q-field__native_anhw9_31","q-field--labeled":"_q-field--labeled_anhw9_35","q-field__control-container":"_q-field__control-container_anhw9_35","q-textarea":"_q-textarea_anhw9_38","q-field__marginal":"_q-field__marginal_anhw9_41","q-field__input":"_q-field__input_anhw9_41","q-field__label":"_q-field__label_anhw9_41","q-btn":"_q-btn_anhw9_48","q-item":"_q-item_anhw9_56","q-tab-panels":"_q-tab-panels_anhw9_60","q-panel":"_q-panel_anhw9_64",scroll:"_scroll_anhw9_67","q-tab-panel":"_q-tab-panel_anhw9_60","dx-dialog":"_dx-dialog_anhw9_77","q-card__section--vert":"_q-card__section--vert_anhw9_77","q-banner":"_q-banner_anhw9_81",app:"_app_anhw9_1","main-layout":"_main-layout_anhw9_1","is-disabled":"_is-disabled_anhw9_98","disable-all-transitions":"_disable-all-transitions_anhw9_103","v-enter-active":"_v-enter-active_anhw9_107","v-leave-active":"_v-leave-active_anhw9_108","v-enter-from":"_v-enter-from_anhw9_112","v-leave-to":"_v-leave-to_anhw9_113","dx-action-table":"_dx-action-table_anhw9_117","dx-column-shrink":"_dx-column-shrink_anhw9_117","category-toggle":"_category-toggle_anhw9_121","has-visible-columns":"_has-visible-columns_anhw9_124","hover:bg-blue-200":"_hover:bg-blue-200_anhw9_1","hover:bg-gray-200":"_hover:bg-gray-200_anhw9_1","hover:bg-green-100":"_hover:bg-green-100_anhw9_1","hover:bg-red-100":"_hover:bg-red-100_anhw9_1","hover:bg-red-200":"_hover:bg-red-200_anhw9_1","hover:bg-slate-200":"_hover:bg-slate-200_anhw9_1","hover:bg-slate-300":"_hover:bg-slate-300_anhw9_1","hover:bg-slate-600":"_hover:bg-slate-600_anhw9_1","hover:text-blue-500":"_hover:text-blue-500_anhw9_1","hover:text-blue-600":"_hover:text-blue-600_anhw9_1","hover:opacity-100":"_hover:opacity-100_anhw9_1","hover:opacity-20":"_hover:opacity-20_anhw9_1","hover:opacity-70":"_hover:opacity-70_anhw9_1","hover:outline-4":"_hover:outline-4_anhw9_1","focus:bg-blue-200":"_focus:bg-blue-200_anhw9_1","focus:outline-4":"_focus:outline-4_anhw9_1","focus:outline-blue-200":"_focus:outline-blue-200_anhw9_1",group:"_group_anhw9_1","group-hover:opacity-100":"_group-hover:opacity-100_anhw9_1"},gb={class:"flex items-center flex-nowrap"},yb=["onClick"],bb={class:"text-xs"},wb=ht({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(""),s=i.computed(()=>[...new Set(r.columns.map(_=>_.category)).values()]);function l(_){return r.columns.filter(p=>p.category===_)}function a(_){return l(_).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(_){let p=l(_).filter(g=>!g.required);const m=p.filter(g=>!r.hiddenColumnNames.includes(g.name));return m.length===0?!1:m.length===p.length?!0:null}function u(_,p){_=_.filter(g=>!g.required);let m=[...r.hiddenColumnNames];p?m=m.filter(g=>!_.map(k=>k.name).includes(g)):m=[...new Set([...m,..._.map(g=>g.name)])],n("update:hidden-column-names",m)}function d(_,p){if(r.columns.find(g=>g.name===_).required)return;p=p??r.hiddenColumnNames.includes(_);let m=[...r.hiddenColumnNames];p?m=Rr(m,_):(m.push(_),m=[...new Set(m)]),n("update:hidden-column-names",m)}const f=i.useCssModule();function h(_){return f["category-toggle"]+(a(_)?" "+f["has-visible-columns"]:"")}return(_,p)=>{const m=i.resolveComponent("QCheckbox"),g=i.resolveComponent("QList"),k=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("div",gb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,y=>(i.openBlock(),i.createElementBlock("div",{key:y,class:i.normalizeClass(h(y))},[i.createVNode(m,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:w=>u(l(y),!a(y))},null,8,["model-value","onClick"]),i.createElementVNode("div",null,i.toDisplayString(y),1),i.createVNode(i.unref(Pa),{class:i.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":o.value===y}])},null,8,["class"]),i.createVNode(k,{"onUpdate:modelValue":w=>o.value=w?y:""},{default:i.withCtx(()=>[i.createVNode(g,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l(y),w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(w.name)},[i.createVNode(m,{"model-value":!t.hiddenColumnNames.includes(w.name),class:"mr-3 cb-white-border",size:"20px",color:w.required?"gray-400":"blue-600",disable:w.required,onClick:C=>d(w.name)},null,8,["model-value","color","disable","onClick"]),i.createElementVNode("div",bb,i.toDisplayString(w.label),1)],8,yb))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:pb}]]);function Lu(t){i.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function vu(t,e){if(!t.sortBy)return null;const n=e.find(r=>r.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function Vu(t,e=null){const n={},r=x1("filter",t);if(r){const o=JSON.parse(r);Object.keys(o).forEach(s=>{(!e||e.includes(s))&&(n[s]=o[s])})}return n}function kb(t,e){let n=!1;const r=`dx-${t}-pager`,o=i.shallowRef(null),s=i.ref({}),l=i.ref({}),a=i.ref(!1),c=i.shallowRef([]),u=i.ref(!1),d=i.ref(!1),f=i.shallowRef(null),h=i.shallowRef(null),_=i.shallowRef(""),p=i.ref({}),m=i.ref(!1),g=i.computed(()=>Object.keys(s.value).filter($=>s.value[$]!==void 0).length),k={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},y=i.shallowRef(k),w=i.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{...s.value,...l.value},sort:y.value.__sort||void 0}));i.watch(w,()=>{Pn(),C()}),i.watch(s,()=>{Pn(),T()}),i.watch(c,T),e.refreshFilters&&i.watch(s,E);async function C(){if(!(!n||e.isListEnabled===!1)){u.value=!0;try{N(await e.routes.list(w.value))}catch{}finally{u.value=!1}}}async function T(){if(!e.routes.summary||!n||e.isSummaryEnabled===!1)return;d.value=!0;const $={id:null,...s.value,...l.value};c.value.length&&($.id=c.value.map(M=>M.id));try{f.value=await e.routes.summary($)}catch{}finally{d.value=!1}}async function b(){await Promise.all([C(),T()])}function x($){return p.value[$]||[]}async function E(){if(!(!e.routes.fieldOptions||e.isFieldOptionsEnabled===!1)){m.value=!0;try{p.value=await e.routes.fieldOptions(s.value)||{}}catch{}finally{m.value=!1}}}function B($,M=null){var z;if(e.urlPattern&&$.match(e.urlPattern)){const Se=(z=M==null?void 0:M.value)==null?void 0:z.map(Ze=>Ze.fields.map(Vi=>Vi.name)).flat(),Oe=Vu($,Se);Object.keys(Oe).length>0&&(s.value=Oe,te("filter",s.value))}}function N($){let M=[],z;Array.isArray($)?(M=$,z={total:$.length}):$.data&&(M=$.data,z=$.meta),z&&z.total!==y.value.rowsNumber&&(y.value.rowsNumber=z.total),M=M.map(Se=>(Se.isSaving=Se.isSaving===void 0?!1:Se.isSaving,pe(Se))),o.value={data:M,meta:z}}function I(){y.value=k}function A($){y.value={...y.value,...$}}function R($){c.value=$}function K(){c.value=[]}async function le($,M=void 0){var z,Se,Oe;if(!e.routes.more||e.isListEnabled===!1)return!1;try{const Ze=await e.routes.more({page:$+1,perPage:M,filter:{...s.value,...l.value}});if(Ze&&Ze.length>0)return N({data:[...((z=o.value)==null?void 0:z.data)||[],...Ze],meta:{total:((Oe=(Se=o.value)==null?void 0:Se.meta)==null?void 0:Oe.total)||0}}),!0}catch{}return!1}async function P(){return Promise.all([C(),T(),E(),Lt()])}function te($,M){const z=St(r)||{};z[$]=M,Mt(r,z)}function we(){const $=St(r);$?(s.value={...$.filter,...s.value},y.value=$.pagination):s.value={...e.filterDefaults,...s.value},setTimeout(()=>{u.value||C(),d.value||T(),m.value||E()},1)}async function Pn(){const $={filter:s.value,pagination:{...y.value,page:1}};Mt(r,$)}async function Lt(){try{const M=await Ys("active-item",async()=>{if(!(!h.value||!e.routes.details||e.isDetailsEnabled===!1))return await e.routes.details(h.value)})();if(M===void 0)return;if(!M||!M.__type||!M.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",M);h.value=pe(M)}catch{}}e.routes.details&&i.watch(()=>h.value,async($,M)=>{$!=null&&$.id&&(M==null?void 0:M.id)!=$.id&&await Lt()});function nn($,M=""){var z;($==null?void 0:$.id)==((z=h.value)==null?void 0:z.id)&&M===_.value||(Ct($),_.value=M,$!=null&&$.id&&E1({id:$.id,panel:M}))}function Ct($){h.value=$&&pe($),$!=null&&$.id||E1({})}async function vi($){var Ze,Vi;if(!((Ze=o.value)!=null&&Ze.data))return;const M=o.value.data.findIndex(qi=>{var po;return qi.id===((po=h.value)==null?void 0:po.id)});if(M==null)return;const z=M+$,Oe=await Ys("getNextItem",async()=>{var qi,po,N1;return(qi=o.value)!=null&&qi.data?z<0?y.value.page>1?(y.value={...y.value,page:y.value.page-1},await Ws(u,!1),o.value.data.length-1):-1:z>=o.value.data.length?y.value.page<(((N1=(po=o.value)==null?void 0:po.meta)==null?void 0:N1.last_page)||1)?(y.value={...y.value,page:y.value.page+1},await Ws(u,!1),0):-1:z:-1})();Oe!==void 0&&Oe>=0&&(h.value=(Vi=o.value)==null?void 0:Vi.data[Oe])}function ft($){s.value=$||{}}async function vt($){e.routes.export&&await e.routes.export($)}function v4($){e={...e,...$}}function V4($){const M=B1();if(n=!0,$&&(e={...e,...$}),we(),e.routes.details){const{params:z,meta:Se,name:Oe}=M.currentRoute.value;Oe===t&&(M.afterEach(Ze=>{Ze.name===Oe&&T1(Ze.params,Ze.meta)}),T1(z,Se))}}function E1($){const M=B1();let{name:z}=M.currentRoute.value;if(z=Array.isArray(z)?z[0]:z,!z){console.error("No route name found for list controls",t);return}const Se=M.resolve({name:z,params:$}).href,Oe=M.currentRoute.value.fullPath;Oe!==Se&&!Oe.startsWith(Se)&&M.push({name:z,params:$})}function T1($,M){const z=Array.isArray($==null?void 0:$.id)?$.id[0]:$==null?void 0:$.id;if(z&&M.type){const Se=Array.isArray($==null?void 0:$.panel)?$.panel[0]:$==null?void 0:$.panel;nn({id:z,__type:""+M.type},Se||_.value||"")}}function B1(){if(!oe.value.router)throw new Error("Vue Router must be configured in danxOptions");return oe.value.router}return{name:t,label:e.label||t,pagedItems:o,activeFilter:s,globalFilter:l,filterActiveCount:g,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFilters:m,isLoadingSummary:d,pager:w,pagination:y,activeItem:h,activePanel:_,initialize:V4,setOptions:v4,resetPaging:I,setPagination:A,setSelectedRows:R,clearSelectedRows:K,loadList:C,loadSummary:T,loadListAndSummary:b,loadMore:le,loadFieldOptions:E,getActiveItemDetails:Lt,refreshAll:P,exportList:vt,setActiveItem:Ct,getNextItem:vi,activatePanel:nn,setActiveFilter:ft,applyFilterFromUrl:B,getFieldOptions:x}}const xb={key:1,class:"mt-2"},Sb={class:"text-xs font-bold"},Cb=i.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),zs=i.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function o(s){let l=s||void 0;switch(r.field.type){case"multi-select":l=s&&s.length>0?s:void 0;break;case"single-select":case"boolean":l=s===null?void 0:s;break}n("update:model-value",l)}return(s,l)=>{var a;return i.openBlock(),i.createElementBlock("div",null,[s.field.type==="text"?(i.openBlock(),i.createBlock(i.unref(on),{key:0,"model-value":s.modelValue,label:s.field.label,placeholder:s.field.placeholder,debounce:1e3,"onUpdate:modelValue":o},null,8,["model-value","label","placeholder"])):s.field.type==="multi-select"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[((a=s.field.options)==null?void 0:a.length)>0||s.loading?(i.openBlock(),i.createBlock(i.unref(Mn),{key:0,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,multiple:"",loading:s.loading,"chip-limit":1,filterable:"",placeholder:s.field.placeholder,label:s.field.label,"onUpdate:modelValue":o},null,8,["model-value","options","clearable","loading","placeholder","label"])):(i.openBlock(),i.createElementBlock("div",xb,[i.createElementVNode("div",Sb,i.toDisplayString(s.field.label),1),Cb]))],64)):s.field.type==="single-select"?(i.openBlock(),i.createBlock(i.unref(Mn),{key:2,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,placeholder:s.field.placeholder,loading:s.loading,label:s.field.label,"onUpdate:modelValue":o},null,8,["model-value","options","clearable","placeholder","loading","label"])):s.field.type==="date"?(i.openBlock(),i.createBlock(i.unref(Zi),{key:3,"model-value":s.modelValue,label:s.field.label,clearable:s.field.clearable===void 0?!0:s.field.clearable,class:"mt-2","onUpdate:modelValue":o},null,8,["model-value","label","clearable"])):s.field.type==="date-range"?(i.openBlock(),i.createBlock(i.unref(Wi),{key:4,"model-value":s.modelValue,label:s.field.label,inline:!!s.field.inline,clearable:s.field.clearable===void 0?!0:s.field.clearable,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":o},null,8,["model-value","label","inline","clearable"])):s.field.type==="number-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:5,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="currency-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:6,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="percent-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:7,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="boolean"?(i.openBlock(),i.createBlock(i.unref(Hi),{key:8,field:s.field,"model-value":s.modelValue,class:"mt-2","toggle-indeterminate":s.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":o},null,8,["field","model-value","toggle-indeterminate"])):s.field.type==="multi-keywords"?(i.openBlock(),i.createBlock(i.unref(ec),{key:9,"model-value":s.modelValue,field:s.field,"onUpdate:modelValue":o},null,8,["model-value","field"])):s.field.type==="select-with-children"?(i.openBlock(),i.createBlock(i.unref(tc),{key:10,"model-value":s.modelValue,options:s.field.options,loading:s.loading,label:s.field.label,placeholder:s.field.placeholder,"onUpdate:modelValue":o},null,8,["model-value","options","loading","label","placeholder"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:11},[i.createTextVNode(' Field "'+i.toDisplayString(s.field.name)+'": Unknown filter type '+i.toDisplayString(s.field.type),1)],64))])}}}),Eb={class:"flex items-center flex-nowrap flex-grow"},Tb={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},qu={__name:"FilterItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const r=i.resolveComponent("QBadge"),o=i.resolveComponent("QExpansionItem");return i.openBlock(),i.createBlock(o,null,{header:i.withCtx(()=>[i.createElementVNode("div",Eb,[i.createElementVNode("div",Tb,i.toDisplayString(t.name),1),i.createVNode(r,{label:t.count,rounded:"",class:i.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3})}}},Bb={class:"px-4 py-2 max-w-full"},Ru={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>{const l={};for(const a of r.filters)l[a.name]=a.fields.filter(c=>r.activeFilter[c.name]!==void 0).length;return l});function s(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...r.activeFilter,...c})}return(l,a)=>{const c=i.resolveComponent("QSeparator"),u=i.resolveComponent("QList");return i.openBlock(),i.createBlock(u,null,{default:i.withCtx(()=>[i.createElementVNode("div",Bb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.filters,(d,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:"group-"+d.name},[d.flat?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(d.fields,h=>(i.openBlock(),i.createBlock(i.unref(zs),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(i.openBlock(),i.createBlock(i.unref(qu),{key:1,name:d.name,count:o.value[d.name]},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.fields,h=>(i.openBlock(),i.createBlock(i.unref(zs),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(i.openBlock(),i.createBlock(c,{key:2,class:"my-2"})):i.createCommentVNode("",!0)],64))),128))])]),_:1})}}},Uu=i.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(dc),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ru),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:active-filter",r))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),Nb={class:"flex-grow"},ju=ht({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=i.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,o)=>{const s=i.resolveComponent("QBadge"),l=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[i.createElementVNode("div",Nb,[i.createVNode(l,{class:i.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:o[0]||(o[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:i.withCtx(()=>[i.createVNode(i.unref(va),{class:"w-5 mr-2"}),i.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(i.openBlock(),i.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:o[1]||(o[1]=a=>r.$emit("update:filter",{}))},"Clear All")):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Ib={class:"w-full flex justify-end items-center flex-nowrap border-b"},$b={class:"flex-grow"},Fb={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Ab={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function o(){n("update:show-filters",!r.showFilters)}return(s,l)=>(i.openBlock(),i.createElementBlock("div",Ib,[i.createVNode(i.unref(ju),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":o,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),i.createElementVNode("div",$b,[i.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(i.openBlock(),i.createElementBlock("div",Fb,[s.$slots.default?(i.openBlock(),i.createBlock(i.unref(J.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):i.createCommentVNode("",!0),i.renderSlot(s.$slots,"right-side")])):i.createCommentVNode("",!0)]))}},zu=i.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},activeItem:{},panels:{}},setup(t){return(e,n)=>{const r=i.resolveComponent("QTabPanel"),o=i.resolveComponent("QTabPanels");return i.openBlock(),i.createBlock(o,{"model-value":e.activePanel,class:"dx-panels-drawer-panels overflow-y-auto h-full transition-all"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.panels,s=>(i.openBlock(),i.createBlock(r,{key:s.name,name:s.name},{default:i.withCtx(()=>[s.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:s.vnode,props:e.activeItem},null,8,["vnode","props"])):i.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),Hu=ht(i.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},target:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(r){return r.enabled===void 0?!0:r.enabled?typeof r.enabled=="function"?r.enabled(e.target):!0:!1}return(r,o)=>{const s=i.resolveComponent("QTabs");return i.openBlock(),i.createBlock(s,{class:i.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",r.cls["panel-tabs"]]),"model-value":r.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":o[0]||(o[0]=l=>r.$emit("update:model-value",l))},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.panels,l=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[n(l)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[l.tabVnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:l.name,vnode:l.tabVnode(r.target,r.modelValue),"is-active":r.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(i.openBlock(),i.createBlock(i.unref(J.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):i.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1shkc_1","!visible":"_!visible_1shkc_1",visible:"_visible_1shkc_1",collapse:"_collapse_1shkc_1",static:"_static_1shkc_1",absolute:"_absolute_1shkc_1",relative:"_relative_1shkc_1",sticky:"_sticky_1shkc_1","left-0":"_left-0_1shkc_1","right-0":"_right-0_1shkc_1","right-1":"_right-1_1shkc_1","top-0":"_top-0_1shkc_1","top-1":"_top-1_1shkc_1","z-10":"_z-10_1shkc_1","m-2":"_m-2_1shkc_1","m-4":"_m-4_1shkc_1","m-auto":"_m-auto_1shkc_1","mx-1":"_mx-1_1shkc_1","mx-4":"_mx-4_1shkc_1","mx-auto":"_mx-auto_1shkc_1","my-2":"_my-2_1shkc_1","!mr-1":"_!mr-1_1shkc_1","mb-2":"_mb-2_1shkc_1","mb-4":"_mb-4_1shkc_1","ml-1":"_ml-1_1shkc_1","ml-2":"_ml-2_1shkc_1","ml-2.5":"_ml-2.5_1shkc_1","ml-3":"_ml-3_1shkc_1","ml-4":"_ml-4_1shkc_1","ml-5":"_ml-5_1shkc_1","ml-[-.2em]":"_ml-[-.2em]_1shkc_1","mr-1":"_mr-1_1shkc_1","mr-2":"_mr-2_1shkc_1","mr-3":"_mr-3_1shkc_1","mr-4":"_mr-4_1shkc_1","mt-1":"_mt-1_1shkc_1","mt-2":"_mt-2_1shkc_1","mt-3":"_mt-3_1shkc_1","mt-4":"_mt-4_1shkc_1",block:"_block_1shkc_1","inline-block":"_inline-block_1shkc_1",inline:"_inline_1shkc_1",flex:"_flex_1shkc_1",table:"_table_1shkc_1",hidden:"_hidden_1shkc_1","h-10":"_h-10_1shkc_1","h-16":"_h-16_1shkc_1","h-4":"_h-4_1shkc_1","h-5":"_h-5_1shkc_1","h-6":"_h-6_1shkc_1","h-8":"_h-8_1shkc_1","h-[2.25rem]":"_h-[2.25rem]_1shkc_1","h-full":"_h-full_1shkc_1","max-h-full":"_max-h-full_1shkc_1","min-h-10":"_min-h-10_1shkc_1","w-10":"_w-10_1shkc_1","w-16":"_w-16_1shkc_1","w-2/5":"_w-2/5_1shkc_1","w-24":"_w-24_1shkc_1","w-3":"_w-3_1shkc_1","w-3/5":"_w-3/5_1shkc_1","w-32":"_w-32_1shkc_1","w-4":"_w-4_1shkc_1","w-48":"_w-48_1shkc_1","w-5":"_w-5_1shkc_1","w-6":"_w-6_1shkc_1","w-7":"_w-7_1shkc_1","w-72":"_w-72_1shkc_1","w-8":"_w-8_1shkc_1","w-96":"_w-96_1shkc_1","w-[13.5rem]":"_w-[13.5rem]_1shkc_1","w-[6.5rem]":"_w-[6.5rem]_1shkc_1","w-[80rem]":"_w-[80rem]_1shkc_1","w-full":"_w-full_1shkc_1","!min-w-0":"_!min-w-0_1shkc_1","min-w-10":"_min-w-10_1shkc_1","max-w-full":"_max-w-full_1shkc_1","flex-shrink":"_flex-shrink_1shkc_1","flex-shrink-0":"_flex-shrink-0_1shkc_1",shrink:"_shrink_1shkc_1","flex-grow":"_flex-grow_1shkc_1",grow:"_grow_1shkc_1","rotate-180":"_rotate-180_1shkc_1",transform:"_transform_1shkc_1","cursor-ew-resize":"_cursor-ew-resize_1shkc_1","cursor-move":"_cursor-move_1shkc_1","cursor-not-allowed":"_cursor-not-allowed_1shkc_1","cursor-ns-resize":"_cursor-ns-resize_1shkc_1","cursor-pointer":"_cursor-pointer_1shkc_1",resize:"_resize_1shkc_1","flex-col":"_flex-col_1shkc_1","flex-nowrap":"_flex-nowrap_1shkc_1","items-center":"_items-center_1shkc_1","items-stretch":"_items-stretch_1shkc_1","justify-start":"_justify-start_1shkc_1","justify-end":"_justify-end_1shkc_1","justify-center":"_justify-center_1shkc_1","justify-between":"_justify-between_1shkc_1","gap-x-4":"_gap-x-4_1shkc_1","gap-y-0":"_gap-y-0_1shkc_1","gap-y-1":"_gap-y-1_1shkc_1","space-x-1":"_space-x-1_1shkc_1","space-x-2":"_space-x-2_1shkc_1","self-center":"_self-center_1shkc_1","overflow-auto":"_overflow-auto_1shkc_1","overflow-hidden":"_overflow-hidden_1shkc_1","overflow-y-auto":"_overflow-y-auto_1shkc_73","overflow-x-hidden":"_overflow-x-hidden_1shkc_1","scroll-smooth":"_scroll-smooth_1shkc_1","overflow-ellipsis":"_overflow-ellipsis_1shkc_1","whitespace-normal":"_whitespace-normal_1shkc_1","whitespace-nowrap":"_whitespace-nowrap_1shkc_1",rounded:"_rounded_1shkc_1","rounded-2xl":"_rounded-2xl_1shkc_1","rounded-lg":"_rounded-lg_1shkc_1","rounded-md":"_rounded-md_1shkc_1","rounded-sm":"_rounded-sm_1shkc_1","!rounded-l-none":"_!rounded-l-none_1shkc_1","!rounded-r-none":"_!rounded-r-none_1shkc_1","rounded-b-lg":"_rounded-b-lg_1shkc_1","rounded-t-lg":"_rounded-t-lg_1shkc_1","rounded-t-md":"_rounded-t-md_1shkc_1","!border-0":"_!border-0_1shkc_1",border:"_border_1shkc_1","border-b":"_border-b_1shkc_1","border-l":"_border-l_1shkc_1","border-l-0":"_border-l-0_1shkc_1","border-r":"_border-r_1shkc_1","border-solid":"_border-solid_1shkc_1","border-dashed":"_border-dashed_1shkc_1","border-none":"_border-none_1shkc_1","border-blue-600":"_border-blue-600_1shkc_1","border-blue-700":"_border-blue-700_1shkc_1","border-gray-200":"_border-gray-200_1shkc_1","border-gray-300":"_border-gray-300_1shkc_1","border-slate-200":"_border-slate-200_1shkc_1","bg-black":"_bg-black_1shkc_1","bg-blue-200":"_bg-blue-200_1shkc_1","bg-blue-600":"_bg-blue-600_1shkc_1","bg-emerald-200":"_bg-emerald-200_1shkc_1","bg-gray-100":"_bg-gray-100_1shkc_1","bg-gray-200":"_bg-gray-200_1shkc_1","bg-gray-400":"_bg-gray-400_1shkc_1","bg-gray-500":"_bg-gray-500_1shkc_1","bg-green-200":"_bg-green-200_1shkc_1","bg-green-300":"_bg-green-300_1shkc_1","bg-green-900":"_bg-green-900_1shkc_1","bg-red-200":"_bg-red-200_1shkc_1","bg-red-300":"_bg-red-300_1shkc_1","bg-red-900":"_bg-red-900_1shkc_1","bg-sky-300":"_bg-sky-300_1shkc_1","bg-sky-800":"_bg-sky-800_1shkc_1","bg-slate-100":"_bg-slate-100_1shkc_1","bg-slate-500":"_bg-slate-500_1shkc_1","bg-slate-800":"_bg-slate-800_1shkc_1","bg-slate-900":"_bg-slate-900_1shkc_1","bg-transparent":"_bg-transparent_1shkc_1","bg-white":"_bg-white_1shkc_1","bg-yellow-300":"_bg-yellow-300_1shkc_1","!bg-none":"_!bg-none_1shkc_1","!p-2":"_!p-2_1shkc_1","p-0":"_p-0_1shkc_1","p-1":"_p-1_1shkc_1","p-2":"_p-2_1shkc_1","p-3":"_p-3_1shkc_1","p-4":"_p-4_1shkc_1","!py-0":"_!py-0_1shkc_1","px-1":"_px-1_1shkc_1","px-12":"_px-12_1shkc_1","px-2":"_px-2_1shkc_1","px-2.5":"_px-2.5_1shkc_1","px-4":"_px-4_1shkc_1","px-6":"_px-6_1shkc_1","px-8":"_px-8_1shkc_1","py-1":"_py-1_1shkc_1","py-14":"_py-14_1shkc_1","py-2":"_py-2_1shkc_1","py-3":"_py-3_1shkc_1","py-4":"_py-4_1shkc_1","py-5":"_py-5_1shkc_1","py-8":"_py-8_1shkc_1","pl-1":"_pl-1_1shkc_1","pt-3":"_pt-3_1shkc_1","text-left":"_text-left_1shkc_1","text-center":"_text-center_1shkc_1","text-[.7rem]":"_text-[.7rem]_1shkc_1","text-[1rem]":"_text-[1rem]_1shkc_1","text-base":"_text-base_1shkc_1","text-sm":"_text-sm_1shkc_1","text-xs":"_text-xs_1shkc_1","font-bold":"_font-bold_1shkc_1","font-medium":"_font-medium_1shkc_1","font-semibold":"_font-semibold_1shkc_1",uppercase:"_uppercase_1shkc_1","leading-[1.2rem]":"_leading-[1.2rem]_1shkc_1","!text-green-900":"_!text-green-900_1shkc_1","!text-red-900":"_!text-red-900_1shkc_1","!text-sky-900":"_!text-sky-900_1shkc_1","!text-white":"_!text-white_1shkc_1","!text-yellow-900":"_!text-yellow-900_1shkc_1","text-blue-600":"_text-blue-600_1shkc_1","text-blue-900":"_text-blue-900_1shkc_1","text-gray-300":"_text-gray-300_1shkc_1","text-gray-400":"_text-gray-400_1shkc_1","text-gray-500":"_text-gray-500_1shkc_1","text-gray-600":"_text-gray-600_1shkc_1","text-gray-700":"_text-gray-700_1shkc_1","text-green-700":"_text-green-700_1shkc_1","text-red-400":"_text-red-400_1shkc_1","text-red-500":"_text-red-500_1shkc_1","text-red-800":"_text-red-800_1shkc_1","text-red-900":"_text-red-900_1shkc_1","text-slate-200":"_text-slate-200_1shkc_1","text-slate-300":"_text-slate-300_1shkc_1","text-slate-50":"_text-slate-50_1shkc_1","text-slate-500":"_text-slate-500_1shkc_1","text-white":"_text-white_1shkc_1","text-yellow-600":"_text-yellow-600_1shkc_1","text-zinc-500":"_text-zinc-500_1shkc_1","text-zinc-800":"_text-zinc-800_1shkc_1","line-through":"_line-through_1shkc_1","opacity-0":"_opacity-0_1shkc_1","opacity-20":"_opacity-20_1shkc_1","opacity-50":"_opacity-50_1shkc_1","opacity-70":"_opacity-70_1shkc_1","opacity-80":"_opacity-80_1shkc_1","shadow-none":"_shadow-none_1shkc_1","outline-none":"_outline-none_1shkc_1",outline:"_outline_1shkc_1","outline-offset-0":"_outline-offset-0_1shkc_1",filter:"_filter_1shkc_1",transition:"_transition_1shkc_1","transition-all":"_transition-all_1shkc_1","duration-300":"_duration-300_1shkc_1","danx-app":"_danx-app_1shkc_4","q-tab":"_q-tab_1shkc_4","q-table__card":"_q-table__card_1shkc_7","q-checkbox__inner":"_q-checkbox__inner_1shkc_11","q-toolbar":"_q-toolbar_1shkc_14","q-notification__actions":"_q-notification__actions_1shkc_19","q-date":"_q-date_1shkc_22","q-date__view":"_q-date__view_1shkc_25","q-field":"_q-field_1shkc_28","q-field--auto-height":"_q-field--auto-height_1shkc_28","q-field__control":"_q-field__control_1shkc_28","q-field__native":"_q-field__native_1shkc_31","q-field--labeled":"_q-field--labeled_1shkc_35","q-field__control-container":"_q-field__control-container_1shkc_35","q-textarea":"_q-textarea_1shkc_38","q-field__marginal":"_q-field__marginal_1shkc_41","q-field__input":"_q-field__input_1shkc_41","q-field__label":"_q-field__label_1shkc_41","q-btn":"_q-btn_1shkc_48","q-item":"_q-item_1shkc_56","q-tab-panels":"_q-tab-panels_1shkc_60","q-panel":"_q-panel_1shkc_64",scroll:"_scroll_1shkc_67","q-tab-panel":"_q-tab-panel_1shkc_60","dx-dialog":"_dx-dialog_1shkc_77","q-card__section--vert":"_q-card__section--vert_1shkc_77","q-banner":"_q-banner_1shkc_81",app:"_app_1shkc_1","main-layout":"_main-layout_1shkc_1","is-disabled":"_is-disabled_1shkc_98","disable-all-transitions":"_disable-all-transitions_1shkc_103","v-enter-active":"_v-enter-active_1shkc_107","v-leave-active":"_v-leave-active_1shkc_108","v-enter-from":"_v-enter-from_1shkc_112","v-leave-to":"_v-leave-to_1shkc_113","dx-action-table":"_dx-action-table_1shkc_117","dx-column-shrink":"_dx-column-shrink_1shkc_117","panel-tabs":"_panel-tabs_1shkc_121","hover:bg-blue-200":"_hover:bg-blue-200_1shkc_1","hover:bg-gray-200":"_hover:bg-gray-200_1shkc_1","hover:bg-green-100":"_hover:bg-green-100_1shkc_1","hover:bg-red-100":"_hover:bg-red-100_1shkc_1","hover:bg-red-200":"_hover:bg-red-200_1shkc_1","hover:bg-slate-200":"_hover:bg-slate-200_1shkc_1","hover:bg-slate-300":"_hover:bg-slate-300_1shkc_1","hover:bg-slate-600":"_hover:bg-slate-600_1shkc_1","hover:text-blue-500":"_hover:text-blue-500_1shkc_1","hover:text-blue-600":"_hover:text-blue-600_1shkc_1","hover:opacity-100":"_hover:opacity-100_1shkc_1","hover:opacity-20":"_hover:opacity-20_1shkc_1","hover:opacity-70":"_hover:opacity-70_1shkc_1","hover:outline-4":"_hover:outline-4_1shkc_1","focus:bg-blue-200":"_focus:bg-blue-200_1shkc_1","focus:outline-4":"_focus:outline-4_1shkc_1","focus:outline-blue-200":"_focus:outline-blue-200_1shkc_1",group:"_group_1shkc_1","group-hover:opacity-100":"_group-hover:opacity-100_1shkc_1"}}]]),Ob={class:"flex flex-col flex-nowrap h-full"},Db={class:"dx-panels-drawer-header flex items-center px-6 py-4"},Pb={class:"flex-grow"},Mb={key:0},Lb={key:1},vb={key:0,class:"mr-4"},Vb={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},qb={key:0,class:"flex items-stretch flex-nowrap h-full"},Rb={key:0,class:"border-l overflow-y-auto"},Gu=i.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},target:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-[80rem]"},position:{default:"right"},panels:{}},emits:["update:model-value","close"],setup(t){const e=t,n=i.ref(e.modelValue),r=i.computed(()=>e.panels.find(o=>o.name===n.value));return i.watch(()=>e.modelValue,o=>n.value=o),i.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(o,s)=>{const l=i.resolveComponent("QSpinnerHourglass"),a=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Xi),{position:o.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":s[3]||(s[3]=c=>o.$emit("close"))},{default:i.withCtx(()=>{var c;return[i.createElementVNode("div",Ob,[i.createElementVNode("div",Db,[i.createElementVNode("div",Pb,[i.renderSlot(o.$slots,"header",{},()=>[o.title?(i.openBlock(),i.createElementBlock("h2",Mb,i.toDisplayString(o.title),1)):i.createCommentVNode("",!0),o.target?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Lb,[i.createTextVNode(" Loading "),i.createVNode(l)]))])]),o.$slots.controls?(i.openBlock(),i.createElementBlock("div",vb,[i.renderSlot(o.$slots,"controls")])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{class:"dx-close-button",onClick:s[0]||(s[0]=u=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(yo),{class:"w-4"})]),_:1})])]),i.createElementVNode("div",Vb,[o.target.__timestamp>0?(i.openBlock(),i.createElementBlock("div",qb,[(i.openBlock(),i.createBlock(i.unref(Hu),{key:"pd-tabs:"+o.target.id,modelValue:n.value,"onUpdate:modelValue":[s[1]||(s[1]=u=>n.value=u),s[2]||(s[2]=u=>o.$emit("update:model-value",u))],target:o.target,class:i.normalizeClass(o.tabsClass),panels:o.panels},null,8,["modelValue","target","class","panels"])),(i.openBlock(),i.createBlock(i.unref(zu),{key:"pd-panels:"+o.target.id,panels:o.panels,"active-panel":n.value,"active-item":o.target,class:i.normalizeClass(((c=r.value)==null?void 0:c.class)||o.panelsClass)},null,8,["panels","active-panel","active-item","class"])),o.$slots["right-sidebar"]?(i.openBlock(),i.createElementBlock("div",Rb,[i.renderSlot(o.$slots,"right-sidebar")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]}),_:3},8,["position"])}}}),Ub={class:"flex items-center justify-center text-sm py-14 w-full"},jb={key:0},zb={key:1},Zu={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ub,[t.loading?(i.openBlock(),i.createElementBlock("div",jb,[i.renderSlot(e.$slots,"loading",{},()=>[i.createTextVNode(i.toDisplayString(t.loadingText)+" ",1),i.createVNode(i.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):i.createCommentVNode("",!0),t.saving?(i.openBlock(),i.createElementBlock("div",zb,[i.renderSlot(e.$slots,"saving",{},()=>[i.createTextVNode(i.toDisplayString(t.savingText)+" ",1),i.createVNode(i.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])]))}},Hb={class:"flex flex-nowrap items-center"},Gb={class:"relative"},Zb={class:"ml-2"},Wu=i.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=i.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let s=0;s<e.columns.length;s++){const l=e.columns[s].field||e.columns[s].name;if(e.summary[l])return s+1}return e.columns.length+1}),r=i.computed(()=>e.columns.slice(n.value-1));function o(s){const l=e.summary&&e.summary[s.name];return l===void 0?"":s.format?s.format(l):l}return(s,l)=>(i.openBlock(),i.createBlock(i.unref(J.QTr),{class:i.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":s.selectedCount,"is-loading":s.loading}])},{default:i.withCtx(()=>[i.createVNode(i.unref(J.QTd),{colspan:n.value,class:i.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":s.selectedCount}])},{default:i.withCtx(()=>[i.createElementVNode("div",Hb,[i.createElementVNode("div",Gb,[s.loading?(i.openBlock(),i.createBlock(i.unref(J.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass([{"opacity-0":s.loading},"flex items-center nowrap"])},[s.selectedCount?(i.openBlock(),i.createBlock(i.unref(bm),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>s.$emit("clear"))})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(Ot)(s.selectedCount||s.itemCount)),1)],2)]),i.createElementVNode("div",Zb,i.toDisplayString(s.selectedCount?s.selectedLabel:s.label),1)])]),_:1},8,["colspan","class"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,a=>(i.openBlock(),i.createBlock(i.unref(J.QTd),{key:a.name,align:a.align||"right",class:i.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:i.withCtx(()=>[s.summary?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({"dx-summary-column-link":a.onClick})},i.toDisplayString(o(a)),3)):i.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),Yu=ht(i.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},menuActions:{},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:"multiple"}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=i.ref(null);Lu(n);const r=i.computed(()=>{var u;const c=[...e.columns].map(d=>({...d,field:d.field||d.name}));if((u=e.menuActions)!=null&&u.length){const d=c.find(h=>h.name==="menu"),f={name:"menu",label:"",required:!0,hideContent:!0,shrink:!0,actionMenu:e.menuActions};d?Object.assign(d,f):c.unshift(f)}return c}),o=i.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),s=`column-settings-${e.name}`,l=i.ref(St(s)||{});function a(){Mt(s,l.value)}return(c,u)=>{var d;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!o.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[i.createVNode(i.unref(J.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows,pagination:c.pagination,columns:r.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:i.unref(vu)(f.pagination,r.value)}))},{"no-data":i.withCtx(()=>[i.renderSlot(c.$slots,"empty",{},()=>[i.createVNode(Zu,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":i.withCtx(()=>{var f;return[o.value?(i.openBlock(),i.createBlock(Wu,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=h=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):i.createCommentVNode("",!0)]}),"header-cell":i.withCtx(f=>[i.createVNode(i.unref(Pu),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":i.withCtx(f=>[(i.openBlock(),i.createBlock(i.unref(Fu),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-209b8084"]]),Wb={class:"dx-action-toolbar flex items-center"},Yb={class:"flex-grow px-6"},Qb={key:0},Kb={class:"py-3 flex items-center flex-nowrap"},Qu=i.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},createButton:{type:Boolean},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh","create"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",Wb,[i.createElementVNode("div",Yb,[i.renderSlot(e.$slots,"title",{},()=>[e.title?(i.openBlock(),i.createElementBlock("h4",Qb,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",Kb,[i.renderSlot(e.$slots,"default"),e.createButton?(i.openBlock(),i.createBlock(r,{key:0,class:"bg-green-900 mr-4 px-4",onClick:n[0]||(n[0]=o=>e.$emit("create"))},{default:i.withCtx(()=>[i.createTextVNode(" Create ")]),_:1})):i.createCommentVNode("",!0),e.refreshButton?(i.openBlock(),i.createBlock(i.unref(Oa),{key:1,loading:e.loading,onClick:n[1]||(n[1]=o=>e.$emit("refresh"))},null,8,["loading"])):i.createCommentVNode("",!0),e.exporter?(i.openBlock(),i.createBlock(i.unref(Aa),{key:2,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):i.createCommentVNode("",!0),e.actions&&e.actions.length>0?(i.openBlock(),i.createBlock(i.unref(Rs),{key:3,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"after")])])}}}),Xb={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},Jb={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},ew=i.defineComponent({__name:"ActionTableLayout",props:{controller:{},exporter:{type:Function,default:void 0},hideToolbar:{type:Boolean},panelTitleField:{default:""},refreshButton:{type:Boolean},createButton:{type:Boolean},selection:{default:"multiple"},showFilters:{type:Boolean},tableClass:{default:""},title:{default:""}},setup(t){const e=t,n=i.computed(()=>e.controller.activeFilter.value),r=i.computed(()=>e.controller.activeItem.value),o=i.computed(()=>e.controller.activePanel.value||""),s=i.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(l,a)=>(i.openBlock(),i.createElementBlock("div",Xb,[i.renderSlot(l.$slots,"top"),i.renderSlot(l.$slots,"toolbar",{},()=>[l.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Qu),{key:0,title:l.title,"refresh-button":l.refreshButton,"create-button":l.createButton,actions:l.controller.batchActions,"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll,onCreate:a[0]||(a[0]=c=>l.controller.action&&l.controller.action("create"))},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","create-button","actions","action-target","exporter","loading","onRefresh"]))]),i.createElementVNode("div",Jb,[i.renderSlot(l.$slots,"filters",{},()=>{var c;return[n.value?(i.openBlock(),i.createBlock(i.unref(Uu),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:(c=l.controller.filters)==null?void 0:c.value,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):i.createCommentVNode("",!0)]}),i.renderSlot(l.$slots,"default",{},()=>[i.createVNode(Yu,{class:i.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,"menu-actions":l.controller.menuActions,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.controller.columns||[],selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","menu-actions","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),i.renderSlot(l.$slots,"panels",{},()=>[r.value&&l.controller.panels?(i.openBlock(),i.createBlock(i.unref(Gu),{key:0,title:s.value,"model-value":o.value,target:r.value,panels:l.controller.panels,"onUpdate:modelValue":a[1]||(a[1]=c=>l.controller.activatePanel(r.value,c)),onClose:a[2]||(a[2]=c=>l.controller.setActiveItem(null))},{controls:i.withCtx(()=>[i.createVNode(i.unref(za),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","target","panels"])):i.createCommentVNode("",!0)])])]))}});function tw(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,o=`${t}-title-columns`,s=i.ref(St(n)||[]),l=i.ref(St(r,[])),a=i.ref(St(o,[])),c=i.computed(()=>u.value.slice(0,1)),u=i.computed(()=>[...e].sort((_,p)=>{const m=s.value.indexOf(_.name),g=s.value.indexOf(p.name);return m===-1?1:g===-1?-1:m-g})),d=i.computed({get(){return u.value.slice(1)},set(_){s.value=[...c.value.map(p=>p.name),..._.map(p=>p.name)],Mt(n,s.value)}}),f=i.computed(()=>u.value.filter(_=>!l.value.includes(_.name))),h=i.computed(()=>u.value.filter(_=>a.value.includes(_.name)));return i.watch(()=>l.value,()=>Mt(r,l.value)),i.watch(()=>a.value,()=>Mt(o,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const nw={class:"flex space-x-2"},rw=["innerHTML"],Hs={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(r){if(r===null||r===""||r===void 0)return"";switch(e.type){case"NUMBER":return Ot(r);case"CURRENCY":return bi(r);case"DATE":return xt(r);case"DATETIME":return gr(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,o)=>(i.openBlock(),i.createElementBlock("div",nw,[t.type==="SINGLE_FILE"?(i.openBlock(),i.createBlock(i.unref(Tr),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.value,s=>(i.openBlock(),i.createBlock(i.unref(Tr),{key:"file-"+s.id,file:s,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(i.openBlock(),i.createElementBlock("div",{key:2,innerHTML:t.value},null,8,rw)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createTextVNode(i.toDisplayString(n(t.value)),1)],64))]))}},ow={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},iw={class:"flex-grow text-sm w-3/5 overflow-auto"},sw={class:"flex flex-nowrap items-center mt-4"},lw={class:"bg-red-200 line-through p-2"},aw={class:"bg-emerald-200 ml-2.5 p-2"},cw={class:"ml-4 text-sm w-2/5"},uw=["href"],dw={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=i.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(r,o)=>(i.openBlock(),i.createElementBlock("div",ow,[i.createElementVNode("div",iw,[i.createElementVNode("h5",null,i.toDisplayString(t.change.label)+" ("+i.toDisplayString(t.change.name)+")",1),i.createElementVNode("div",sw,[i.createElementVNode("div",lw,[i.createVNode(i.unref(Hs),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),i.createElementVNode("div",aw,[i.createVNode(i.unref(Hs),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),i.createElementVNode("div",cw,[t.item.user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",null,i.toDisplayString(t.item.user.name),1),i.createElementVNode("div",null,i.toDisplayString(t.item.user.email),1)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(t.item.account),1),i.createElementVNode("div",null,[t.item.audit_request_id?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,target:"_blank"},i.toDisplayString(i.unref(gr)(t.item.timestamp)),9,uw)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(gr)(t.item.timestamp)),1)],64))])])]))}},fw=["href","target","onClick"],hw={key:0,class:"flex-shrink-0"},_w={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=oe.value.router,r=i.computed(()=>e.items.filter(a=>!a.hidden));function o(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function s(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(o(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(o(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=i.resolveComponent("QTooltip"),d=i.resolveComponent("QSeparator");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,f=>(i.openBlock(),i.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[i.createElementVNode("a",{class:i.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>s(h,f)},[f.icon?(i.openBlock(),i.createElementBlock("div",hw,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.icon),{class:i.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):i.createCommentVNode("",!0),t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["label ml-2",f.labelClass])},i.toDisplayString(f.label),3)),t.collapsed?(i.openBlock(),i.createBlock(u,i.normalizeProps(i.mergeProps({key:2},f.tooltip)),{default:i.withCtx(()=>{var h;return[i.createTextVNode(i.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):i.createCommentVNode("",!0)],10,fw),f.separator?(i.openBlock(),i.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):i.createCommentVNode("",!0)]))),128))],2)}}},be=class be{static enable(e){be.success(e.successMsg),be.error(e.errorMsg),be.warning(e.warningMsg),i.watch(()=>e.successMsg,n=>be.success(n)),i.watch(()=>e.infoMsg,n=>be.info(n)),i.watch(()=>e.errorMsg,n=>be.error(n)),i.watch(()=>e.warningMsg,n=>be.warning(n))}static formatMessage(e){return e=e.replace(/\r\n|\r|\n/g,"<br/>"),e=e.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;"),e.replace(/<(\w+)([^>]*)>/g,"<b>$1$2</b>")}static send(e,n={}){var r;e&&(e=be.formatMessage(e),be.notify({message:e,timeout:1e4,classes:"bg-gray-500 text-white",position:"top",closeBtn:"X",...(r=oe.value.flashMessages)==null?void 0:r.default,...n}))}static success(e,n={}){var r;be.send(e,{classes:"bg-green-300 !text-green-900",icon:"check",...n,...(r=oe.value.flashMessages)==null?void 0:r.success})}static info(e,n={}){var r;be.send(e,{classes:"bg-sky-300 !text-sky-900",icon:"info",...n,...(r=oe.value.flashMessages)==null?void 0:r.info})}static error(e,n={}){var r;be.send(e,{classes:"bg-red-300 !text-red-900",icon:"error",...n,...(r=oe.value.flashMessages)==null?void 0:r.error})}static warning(e,n={}){var r;be.send(e,{classes:"bg-yellow-300 !text-yellow-900",icon:"warning",...n,...(r=oe.value.flashMessages)==null?void 0:r.warning})}static combine(e,n,r={}){const o=be[e];if(typeof o!="function")throw new Error(`FlashMessages.${e} is not a function`);o(n.map(s=>typeof s=="string"?s:s.message||s.Message).join("<br/>"),{...r,html:!0})}};G(be,"notify"),G(be,"PROP_DEFINITIONS",{successMsg:{type:String,default:""},infoMsg:{type:String,default:""},errorMsg:{type:String,default:""},warningMsg:{type:String,default:""}});let Ve=be;const mw=new Ve,Gs=new Map;function pw(t){for(const e in t)t[e]&&typeof t[e]=="object"&&(t[e]=pe(t[e]));return t}function pe(t,e={}){if(typeof t!="object")return t;const n=(t==null?void 0:t.id)||(t==null?void 0:t.name),r=t==null?void 0:t.__type;if(!n||!r)return i.shallowReactive(t);t.__id||(t.__id=J.uid()),t.__timestamp||(t.__timestamp=t.updated_at||0);const o=`${r}:${n}`;if(e[o])return e[o];const s=Gs.get(o);if(s&&t.__timestamp<s.__timestamp)return e[o]=s,s;const l=s||i.shallowReactive(t);e[o]=l;for(const a of Object.keys(t)){const c=t[a];if(Array.isArray(c)&&c.length>0)for(const u in c)c[u]&&typeof c[u]=="object"&&(t[a][u]=pe(c[u],e));else c!=null&&c.__type&&(t[a]=pe(c,e))}return Object.assign(l,t),s||Gs.set(o,l),l.__deleted_at&&gw(l),l}function gw(t){for(const e of Gs.values())for(const n of Object.keys(e)){const r=e[n];if(Array.isArray(r)&&r.length>0){const o=r.findIndex(s=>s.__id===t.__id&&s.__type===t.__type);o!==-1&&(r.splice(o,1),e[n]=[...r])}}}const Ku={};async function Xu(t,e,n,r=3e3){if(!(t!=null&&t.id)||!(t!=null&&t.__type))throw new Error("Invalid stored object. Cannot auto-refresh");if(e(t)){const s=await n(t);if(!s.id)return Ve.error(`Failed to refresh ${t.__type} (${t.id}) status: `+t.name),null;pe(s)}const o=setTimeout(()=>Xu(t,e,n,r),r);Ku[t.__type+":"+t.id]=o}async function yw(t){const e=Ku[t.__type+":"+t.id];e&&clearTimeout(e)}const bn=i.shallowRef(null);function bw(t,e=null){const n=J.uid();function r(c,u,d){const h={...s(c),...d,id:u};return h.debounce?h.trigger=rn((_,p)=>a(h,_,p),h.debounce):h.trigger=(_,p)=>a(h,_,p),pe(h)}function o(c,u){const d=s(c);return pe({...d,...u})}function s(c,u){var h,_,p;let d=t.find(m=>m.name===c)||{name:c};u&&Object.assign(d,u),(!i.isReactive(d)||!("__type"in d))&&(d=pe({onAction:(h=e==null?void 0:e.routes)==null?void 0:h.applyAction,onBatchAction:(_=e==null?void 0:e.routes)==null?void 0:_.batchAction,onBatchSuccess:(p=e==null?void 0:e.controls)==null?void 0:p.clearSelectedRows,...e,...d,isApplying:!1,__type:"__Action:"+n}),t.splice(t.findIndex(m=>m.name===c),1,d));const f=i.shallowReactive({...d});return f.debounce?f.trigger=rn((m,g)=>a(f,m,g),f.debounce):f.trigger=(m,g)=>a(f,m,g),f}function l(c){const u=[];for(const d of c)u.push(s(d));return u}async function a(c,u=null,d=null){var p;typeof c=="string"&&(c=s(c));const f=c.alias?s(c.alias):null,h=c.vnode&&c.vnode(u,d);let _;if(!(c.onStart&&!c.onStart(c,u,d)))return Ju(u,!0),c.isApplying=!0,f&&(f.isApplying=!0),h?(_=await new Promise(m=>{bn.value={vnode:h,confirm:async g=>{let k;c.useInputFromConfirm===!1?k=d:c.useInputFromConfirm===!0?k=g:k={...d,...g};const y=await ed(c,u,k);(y===void 0||y===!0||y!=null&&y.success)&&m(y)},cancel:m}}),bn.value=null):_=await ed(c,u,d),_!=null&&_.abort||(c.isApplying=!1,Ju(u,!1),f&&(f.isApplying=!1),_!=null&&_.item&&(_.item=pe(_.item)),(p=_==null?void 0:_.result)!=null&&p.__type&&(_.result=pe(_.result))),_}return{getAction:s,getActions:l,action:a,modifyAction:o,extendAction:r}}function Ju(t,e){if(t){t=Array.isArray(t)?t:[t];for(const n of t)n.isSaving=e}}async function ed(t,e,n=null){if(!t.onAction)throw new Error("No onAction handler found for the selected action:"+t.name);const r=Array.isArray(e);let o;try{r?t.onBatchAction?o=await t.onBatchAction(t.alias||t.name,e,n):o={error:`Action ${t.name} does not support batch actions`}:(typeof t.optimistic=="function"?t.optimistic(t,e,n):t.optimistic&&pe({...e,...n}),o=await t.onAction(t.alias||t.name,e,n))}catch(s){(""+s).match(/Request was aborted/)?o={abort:!0}:(console.error(s),o={error:`An error occurred while performing the action ${t.label}. Please try again later.`})}if(o!=null&&o.abort)return o;if(o===void 0||o===!0||o!=null&&o.success)o&&o.item&&(o.item=pe(o.item)),o!=null&&o.success&&Array.isArray(e)&&Ve.success(`Successfully performed action ${t.label} on ${e.length} items`),t.onSuccess&&await t.onSuccess(o,e,n),r&&t.onBatchSuccess&&await t.onBatchSuccess(o,e,n);else{const s=[];if(o.errors)s.push(...o.errors);else if(o.error){let l=o.error;typeof o.error=="boolean"?l=o.message:typeof o.error=="object"?l=o.error.message:typeof o.error!="string"&&(l="An unknown error occurred. Please try again later."),s.push(l)}else s.push("An unexpected error occurred. Please try again later.");Ve.combine("error",s),t.onError&&await t.onError(o,e,n)}return t.onFinish&&await t.onFinish(o,e,n),o}function ww(t,e){return[{name:"create",label:"Create "+t,vnode:()=>i.h(Wa,{title:"Create "+t}),onFinish:e&&(n=>{e.activatePanel(n.item,"edit"),e.loadListAndSummary()})},{name:"update",optimistic:!0},{name:"update-debounced",alias:"update",debounce:1e3,optimistic:!0},{name:"copy",label:"Copy",icon:H1,onSuccess:e==null?void 0:e.loadListAndSummary},{name:"edit",label:"Edit",icon:Ri,onAction:(n,r)=>e==null?void 0:e.activatePanel(r,"edit")},{name:"delete",label:"Delete",class:"text-red-500",iconClass:"text-red-500",icon:_m,onFinish:e==null?void 0:e.loadListAndSummary,vnode:n=>i.h(Za,{action:"Delete",label:t,target:n,confirmClass:"bg-red-900"})}]}let td=!1;function kw(t){if(td)return;td=!0;const e=document.createElement("iframe");e.style.display="none",e.src=window.location.href,document.body.appendChild(e),e.onload=()=>{document.body.removeChild(e),t()}}function Zs(t,e,n=void 0,r=!1){const o=typeof e=="function"?t.findIndex(e):t.indexOf(e);if(o===!1||o===-1)return r?[...t,n]:t;const s=[...t];return n!==void 0?s.splice(o,1,n):s.splice(o,1),s}function Rr(t,e){return Zs(t,e)}function xw(t,e){return t.filter((n,r,o)=>r===o.findIndex(s=>e(n,s)))}function Ur(t){return new Promise(e=>setTimeout(e,t))}function Sw(t){return JSON.parse(JSON.stringify(t))}async function Cw(t,e=1e3){for(;!await t();)await Ur(e)}function Ws(t,e){return new Promise(n=>{i.watch(t,r=>{r===e&&n()})})}const Do={};function Ys(t,e){return Do[t]||(Do[t]=0),async function(...n){const r=++Do[t],o=await e(...n);if(r===Do[t])return o}}function Ew(t,e,n){return Math.max(t,Math.min(e,n))}function Tw(t){return t*621371e-9}function Bw(t){return t/621371e-9}function Nw(t){const e=t.split(",");if(e.length===2){const n=parseFloat(e[0].trim()),r=parseFloat(e[1].trim());if(!isNaN(n)&&!isNaN(r))return{lat:n,lng:r}}return null}function nd(t){return t=(t||"New Item").trim(),t.match(/(\d+)$/)?t.replace(/\d+$/,n=>""+(parseInt(n)+1)):`${t} 1`}function rd(t){if(typeof t=="object")return!0;if(!t)return!1;try{return JSON.parse(t),!0}catch{return!1}}let od=!1,id=!1,jr=null,Zt=null,Po=null;function sd(t=!0){if(!od&&t){const{coords:s,error:l,locatedAt:a}=L1();jr=l,Zt=a,Po=s,od=!0}const e="geolocation"in navigator,n=i.computed(()=>Zt!=null&&Zt.value?Po==null?void 0:Po.value:null),r=i.computed(()=>!(jr!=null&&jr.value)&&!!(Zt!=null&&Zt.value));return{isLocationSupported:e,isCompatible:r,geolocationError:jr,hasLocation:Zt,location:n,waitForLocation:async(s=3e3)=>{if(id)return n;id=!0;let l=0;for(;!n.value;)if(await Ur(100),l+=100,l>s)return null;return n}}}class wn extends Error{}class Iw extends wn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $w extends wn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Fw extends wn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Wn extends wn{}class ld extends wn{constructor(e){super(`Invalid unit ${e}`)}}class qe extends wn{}class Wt extends wn{constructor(){super("Zone is an abstract class")}}const O="numeric",st="short",Ge="long",Mo={year:O,month:O,day:O},ad={year:O,month:st,day:O},Aw={year:O,month:st,day:O,weekday:st},cd={year:O,month:Ge,day:O},ud={year:O,month:Ge,day:O,weekday:Ge},dd={hour:O,minute:O},fd={hour:O,minute:O,second:O},hd={hour:O,minute:O,second:O,timeZoneName:st},_d={hour:O,minute:O,second:O,timeZoneName:Ge},md={hour:O,minute:O,hourCycle:"h23"},pd={hour:O,minute:O,second:O,hourCycle:"h23"},gd={hour:O,minute:O,second:O,hourCycle:"h23",timeZoneName:st},yd={hour:O,minute:O,second:O,hourCycle:"h23",timeZoneName:Ge},bd={year:O,month:O,day:O,hour:O,minute:O},wd={year:O,month:O,day:O,hour:O,minute:O,second:O},kd={year:O,month:st,day:O,hour:O,minute:O},xd={year:O,month:st,day:O,hour:O,minute:O,second:O},Ow={year:O,month:st,day:O,weekday:st,hour:O,minute:O},Sd={year:O,month:Ge,day:O,hour:O,minute:O,timeZoneName:st},Cd={year:O,month:Ge,day:O,hour:O,minute:O,second:O,timeZoneName:st},Ed={year:O,month:Ge,day:O,weekday:Ge,hour:O,minute:O,timeZoneName:Ge},Td={year:O,month:Ge,day:O,weekday:Ge,hour:O,minute:O,second:O,timeZoneName:Ge};class zr{get type(){throw new Wt}get name(){throw new Wt}get ianaName(){return this.name}get isUniversal(){throw new Wt}offsetName(e,n){throw new Wt}formatOffset(e,n){throw new Wt}offset(e){throw new Wt}equals(e){throw new Wt}get isValid(){throw new Wt}}let Qs=null;class Lo extends zr{static get instance(){return Qs===null&&(Qs=new Lo),Qs}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Qd(e,n,r)}formatOffset(e,n){return Wr(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let vo={};function Dw(t){return vo[t]||(vo[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),vo[t]}const Pw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Mw(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,s,l,a,c,u,d]=r;return[l,o,s,a,c,u,d]}function Lw(t,e){const n=t.formatToParts(e),r=[];for(let o=0;o<n.length;o++){const{type:s,value:l}=n[o],a=Pw[s];s==="era"?r[a]=l:L(a)||(r[a]=parseInt(l,10))}return r}let Vo={};class kt extends zr{static create(e){return Vo[e]||(Vo[e]=new kt(e)),Vo[e]}static resetCache(){Vo={},vo={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=kt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Qd(e,n,r,this.name)}formatOffset(e,n){return Wr(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Dw(this.name);let[o,s,l,a,c,u,d]=r.formatToParts?Lw(r,n):Mw(r,n);a==="BC"&&(o=-Math.abs(o)+1);const h=zo({year:o,month:s,day:l,hour:c===24?0:c,minute:u,second:d,millisecond:0});let _=+n;const p=_%1e3;return _-=p>=0?p:1e3+p,(h-_)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Bd={};function vw(t,e={}){const n=JSON.stringify([t,e]);let r=Bd[n];return r||(r=new Intl.ListFormat(t,e),Bd[n]=r),r}let Ks={};function Xs(t,e={}){const n=JSON.stringify([t,e]);let r=Ks[n];return r||(r=new Intl.DateTimeFormat(t,e),Ks[n]=r),r}let Js={};function Vw(t,e={}){const n=JSON.stringify([t,e]);let r=Js[n];return r||(r=new Intl.NumberFormat(t,e),Js[n]=r),r}let el={};function qw(t,e={}){const{base:n,...r}=e,o=JSON.stringify([t,r]);let s=el[o];return s||(s=new Intl.RelativeTimeFormat(t,e),el[o]=s),s}let Hr=null;function Rw(){return Hr||(Hr=new Intl.DateTimeFormat().resolvedOptions().locale,Hr)}let Nd={};function Uw(t){let e=Nd[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Nd[t]=e}return e}function jw(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,o;try{r=Xs(t).resolvedOptions(),o=t}catch{const c=t.substring(0,n);r=Xs(c).resolvedOptions(),o=c}const{numberingSystem:s,calendar:l}=r;return[o,s,l]}}function zw(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Hw(t){const e=[];for(let n=1;n<=12;n++){const r=D.utc(2009,n,1);e.push(t(r))}return e}function Gw(t){const e=[];for(let n=1;n<=7;n++){const r=D.utc(2016,11,13+n);e.push(t(r))}return e}function qo(t,e,n,r){const o=t.listingMode();return o==="error"?null:o==="en"?n(e):r(e)}function Zw(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Ww{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:s,...l}=r;if(!n||Object.keys(l).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=Vw(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):ll(e,3);return he(n,this.padTo)}}}class Yw{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const l=-1*(e.offset/60),a=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;e.offset!==0&&kt.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||o,this.dtf=Xs(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Qw{constructor(e,n,r){this.opts={style:"long",...r},!n&&Gd()&&(this.rtf=qw(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):p2(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Kw={firstDay:1,minimalDays:4,weekend:[6,7]};class W{static fromOpts(e){return W.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,o,s=!1){const l=e||ce.defaultLocale,a=l||(s?"en-US":Rw()),c=n||ce.defaultNumberingSystem,u=r||ce.defaultOutputCalendar,d=il(o)||ce.defaultWeekSettings;return new W(a,c,u,d,l)}static resetCache(){Hr=null,Ks={},Js={},el={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return W.create(e,n,r,o)}constructor(e,n,r,o,s){const[l,a,c]=jw(e);this.locale=l,this.numberingSystem=n||a||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=zw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Zw(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:W.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,il(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return qo(this,e,Jd,()=>{const r=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Hw(s=>this.extract(s,r,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return qo(this,e,nf,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Gw(s=>this.extract(s,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return qo(this,void 0,()=>rf,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[D.utc(2016,11,13,9),D.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return qo(this,e,of,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[D.utc(-40,1,1),D.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const o=this.dtFormatter(e,n),s=o.formatToParts(),l=s.find(a=>a.type.toLowerCase()===r);return l?l.value:null}numberFormatter(e={}){return new Ww(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Yw(e,this.intl,n)}relFormatter(e={}){return new Qw(this.intl,this.isEnglish(),e)}listFormatter(e={}){return vw(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Zd()?Uw(this.locale):Kw}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let tl=null;class $e extends zr{static get utcInstance(){return tl===null&&(tl=new $e(0)),tl}static instance(e){return e===0?$e.utcInstance:new $e(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new $e(Ho(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Wr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Wr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Wr(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Xw extends zr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Yt(t,e){if(L(t)||t===null)return e;if(t instanceof zr)return t;if(t2(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Lo.instance:n==="utc"||n==="gmt"?$e.utcInstance:$e.parseSpecifier(n)||kt.create(t)}else return kn(t)?$e.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Xw(t)}let Id=()=>Date.now(),$d="system",Fd=null,Ad=null,Od=null,Dd=60,Pd,Md=null;class ce{static get now(){return Id}static set now(e){Id=e}static set defaultZone(e){$d=e}static get defaultZone(){return Yt($d,Lo.instance)}static get defaultLocale(){return Fd}static set defaultLocale(e){Fd=e}static get defaultNumberingSystem(){return Ad}static set defaultNumberingSystem(e){Ad=e}static get defaultOutputCalendar(){return Od}static set defaultOutputCalendar(e){Od=e}static get defaultWeekSettings(){return Md}static set defaultWeekSettings(e){Md=il(e)}static get twoDigitCutoffYear(){return Dd}static set twoDigitCutoffYear(e){Dd=e%100}static get throwOnInvalid(){return Pd}static set throwOnInvalid(e){Pd=e}static resetCaches(){W.resetCache(),kt.resetCache()}}class lt{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ld=[0,31,59,90,120,151,181,212,243,273,304,334],vd=[0,31,60,91,121,152,182,213,244,274,305,335];function Xe(t,e){return new lt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function nl(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function Vd(t,e,n){return n+(Gr(t)?vd:Ld)[e-1]}function qd(t,e){const n=Gr(t)?vd:Ld,r=n.findIndex(s=>s<e),o=e-n[r];return{month:r+1,day:o}}function rl(t,e){return(t-e+7)%7+1}function Ro(t,e=4,n=1){const{year:r,month:o,day:s}=t,l=Vd(r,o,s),a=rl(nl(r,o,s),n);let c=Math.floor((l-a+14-e)/7),u;return c<1?(u=r-1,c=Zr(u,e,n)):c>Zr(r,e,n)?(u=r+1,c=1):u=r,{weekYear:u,weekNumber:c,weekday:a,...Zo(t)}}function Rd(t,e=4,n=1){const{weekYear:r,weekNumber:o,weekday:s}=t,l=rl(nl(r,1,e),n),a=Qn(r);let c=o*7+s-l-7+e,u;c<1?(u=r-1,c+=Qn(u)):c>a?(u=r+1,c-=Qn(r)):u=r;const{month:d,day:f}=qd(u,c);return{year:u,month:d,day:f,...Zo(t)}}function ol(t){const{year:e,month:n,day:r}=t,o=Vd(e,n,r);return{year:e,ordinal:o,...Zo(t)}}function Ud(t){const{year:e,ordinal:n}=t,{month:r,day:o}=qd(e,n);return{year:e,month:r,day:o,...Zo(t)}}function jd(t,e){if(!L(t.localWeekday)||!L(t.localWeekNumber)||!L(t.localWeekYear)){if(!L(t.weekday)||!L(t.weekNumber)||!L(t.weekYear))throw new Wn("Cannot mix locale-based week fields with ISO-based week fields");return L(t.localWeekday)||(t.weekday=t.localWeekday),L(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),L(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Jw(t,e=4,n=1){const r=Uo(t.weekYear),o=Je(t.weekNumber,1,Zr(t.weekYear,e,n)),s=Je(t.weekday,1,7);return r?o?s?!1:Xe("weekday",t.weekday):Xe("week",t.weekNumber):Xe("weekYear",t.weekYear)}function e2(t){const e=Uo(t.year),n=Je(t.ordinal,1,Qn(t.year));return e?n?!1:Xe("ordinal",t.ordinal):Xe("year",t.year)}function zd(t){const e=Uo(t.year),n=Je(t.month,1,12),r=Je(t.day,1,jo(t.year,t.month));return e?n?r?!1:Xe("day",t.day):Xe("month",t.month):Xe("year",t.year)}function Hd(t){const{hour:e,minute:n,second:r,millisecond:o}=t,s=Je(e,0,23)||e===24&&n===0&&r===0&&o===0,l=Je(n,0,59),a=Je(r,0,59),c=Je(o,0,999);return s?l?a?c?!1:Xe("millisecond",o):Xe("second",r):Xe("minute",n):Xe("hour",e)}function L(t){return typeof t>"u"}function kn(t){return typeof t=="number"}function Uo(t){return typeof t=="number"&&t%1===0}function t2(t){return typeof t=="string"}function n2(t){return Object.prototype.toString.call(t)==="[object Date]"}function Gd(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Zd(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function r2(t){return Array.isArray(t)?t:[t]}function Wd(t,e,n){if(t.length!==0)return t.reduce((r,o)=>{const s=[e(o),o];return r&&n(r[0],s[0])===r[0]?r:s},null)[1]}function o2(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Yn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function il(t){if(t==null)return null;if(typeof t!="object")throw new qe("Week settings must be an object");if(!Je(t.firstDay,1,7)||!Je(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Je(e,1,7)))throw new qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Je(t,e,n){return Uo(t)&&t>=e&&t<=n}function i2(t,e){return t-e*Math.floor(t/e)}function he(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Qt(t){if(!(L(t)||t===null||t===""))return parseInt(t,10)}function xn(t){if(!(L(t)||t===null||t===""))return parseFloat(t)}function sl(t){if(!(L(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function ll(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Gr(t){return t%4===0&&(t%100!==0||t%400===0)}function Qn(t){return Gr(t)?366:365}function jo(t,e){const n=i2(e-1,12)+1,r=t+(e-n)/12;return n===2?Gr(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function zo(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Yd(t,e,n){return-rl(nl(t,1,e),n)+e-1}function Zr(t,e=4,n=1){const r=Yd(t,e,n),o=Yd(t+1,e,n);return(Qn(t)-r+o)/7}function al(t){return t>99?t:t>ce.twoDigitCutoffYear?1900+t:2e3+t}function Qd(t,e,n,r=null){const o=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(s.timeZone=r);const l={timeZoneName:e,...s},a=new Intl.DateTimeFormat(n,l).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function Ho(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Kd(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new qe(`Invalid unit value ${t}`);return e}function Go(t,e){const n={};for(const r in t)if(Yn(t,r)){const o=t[r];if(o==null)continue;n[e(r)]=Kd(o)}return n}function Wr(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${he(n,2)}:${he(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${he(n,2)}${he(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Zo(t){return o2(t,["hour","minute","second","millisecond"])}const s2=["January","February","March","April","May","June","July","August","September","October","November","December"],Xd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l2=["J","F","M","A","M","J","J","A","S","O","N","D"];function Jd(t){switch(t){case"narrow":return[...l2];case"short":return[...Xd];case"long":return[...s2];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ef=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tf=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],a2=["M","T","W","T","F","S","S"];function nf(t){switch(t){case"narrow":return[...a2];case"short":return[...tf];case"long":return[...ef];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const rf=["AM","PM"],c2=["Before Christ","Anno Domini"],u2=["BC","AD"],d2=["B","A"];function of(t){switch(t){case"narrow":return[...d2];case"short":return[...u2];case"long":return[...c2];default:return null}}function f2(t){return rf[t.hour<12?0:1]}function h2(t,e){return nf(e)[t.weekday-1]}function _2(t,e){return Jd(e)[t.month-1]}function m2(t,e){return of(e)[t.year<0?0:1]}function p2(t,e,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${o[t][0]}`;case-1:return f?"yesterday":`last ${o[t][0]}`;case 0:return f?"today":`this ${o[t][0]}`}}const l=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=o[t],d=r?c?u[1]:u[2]||u[1]:c?o[t][0]:t;return l?`${a} ${d} ago`:`in ${a} ${d}`}function sf(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const g2={D:Mo,DD:ad,DDD:cd,DDDD:ud,t:dd,tt:fd,ttt:hd,tttt:_d,T:md,TT:pd,TTT:gd,TTTT:yd,f:bd,ff:kd,fff:Sd,ffff:Ed,F:wd,FF:xd,FFF:Cd,FFFF:Td};class Be{static create(e,n={}){return new Be(e,n)}static parseFormat(e){let n=null,r="",o=!1;const s=[];for(let l=0;l<e.length;l++){const a=e.charAt(l);a==="'"?(r.length>0&&s.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||a===n?r+=a:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&s.push({literal:o||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(e){return g2[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return he(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(_,p)=>this.loc.extract(e,_,p),l=_=>e.isOffsetFixed&&e.offset===0&&_.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,_.format):"",a=()=>r?f2(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(_,p)=>r?_2(e,_):s(p?{month:_}:{month:_,day:"numeric"},"month"),u=(_,p)=>r?h2(e,_):s(p?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),d=_=>{const p=Be.macroTokenToFormatOpts(_);return p?this.formatWithSystemDefault(e,p):_},f=_=>r?m2(e,_):s({era:_},"era"),h=_=>{switch(_){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?s({day:"numeric"},"day"):this.num(e.day);case"dd":return o?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?s({month:"numeric"},"month"):this.num(e.month);case"MM":return o?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?s({year:"numeric"},"year"):this.num(e.year);case"yy":return o?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(_)}};return sf(Be.parseFormat(n),h)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},s=Be.parseFormat(n),l=s.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),a=e.shiftTo(...l.map(r).filter(c=>c));return sf(s,o(a))}}const lf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Kn(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Xn(...t){return e=>t.reduce(([n,r,o],s)=>{const[l,a,c]=s(e,o);return[{...n,...l},a||r,c]},[{},null,1]).slice(0,2)}function Jn(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const o=n.exec(t);if(o)return r(o)}return[null,null]}function af(...t){return(e,n)=>{const r={};let o;for(o=0;o<t.length;o++)r[t[o]]=Qt(e[n+o]);return[r,null,n+o]}}const cf=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,y2=`(?:${cf.source}?(?:\\[(${lf.source})\\])?)?`,cl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,uf=RegExp(`${cl.source}${y2}`),ul=RegExp(`(?:T${uf.source})?`),b2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,w2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,k2=/(\d{4})-?(\d{3})/,x2=af("weekYear","weekNumber","weekDay"),S2=af("year","ordinal"),C2=/(\d{4})-(\d\d)-(\d\d)/,df=RegExp(`${cl.source} ?(?:${cf.source}|(${lf.source}))?`),E2=RegExp(`(?: ${df.source})?`);function er(t,e,n){const r=t[e];return L(r)?n:Qt(r)}function T2(t,e){return[{year:er(t,e),month:er(t,e+1,1),day:er(t,e+2,1)},null,e+3]}function tr(t,e){return[{hours:er(t,e,0),minutes:er(t,e+1,0),seconds:er(t,e+2,0),milliseconds:sl(t[e+3])},null,e+4]}function Yr(t,e){const n=!t[e]&&!t[e+1],r=Ho(t[e+1],t[e+2]),o=n?null:$e.instance(r);return[{},o,e+3]}function Qr(t,e){const n=t[e]?kt.create(t[e]):null;return[{},n,e+1]}const B2=RegExp(`^T?${cl.source}$`),N2=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function I2(t){const[e,n,r,o,s,l,a,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(_,p=!1)=>_!==void 0&&(p||_&&d)?-_:_;return[{years:h(xn(n)),months:h(xn(r)),weeks:h(xn(o)),days:h(xn(s)),hours:h(xn(l)),minutes:h(xn(a)),seconds:h(xn(c),c==="-0"),milliseconds:h(sl(u),f)}]}const $2={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function dl(t,e,n,r,o,s,l){const a={year:e.length===2?al(Qt(e)):Qt(e),month:Xd.indexOf(n)+1,day:Qt(r),hour:Qt(o),minute:Qt(s)};return l&&(a.second=Qt(l)),t&&(a.weekday=t.length>3?ef.indexOf(t)+1:tf.indexOf(t)+1),a}const F2=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function A2(t){const[,e,n,r,o,s,l,a,c,u,d,f]=t,h=dl(e,o,r,n,s,l,a);let _;return c?_=$2[c]:u?_=0:_=Ho(d,f),[h,new $e(_)]}function O2(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const D2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,P2=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,M2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ff(t){const[,e,n,r,o,s,l,a]=t;return[dl(e,o,r,n,s,l,a),$e.utcInstance]}function L2(t){const[,e,n,r,o,s,l,a]=t;return[dl(e,a,n,r,o,s,l),$e.utcInstance]}const v2=Kn(b2,ul),V2=Kn(w2,ul),q2=Kn(k2,ul),R2=Kn(uf),hf=Xn(T2,tr,Yr,Qr),U2=Xn(x2,tr,Yr,Qr),j2=Xn(S2,tr,Yr,Qr),z2=Xn(tr,Yr,Qr);function H2(t){return Jn(t,[v2,hf],[V2,U2],[q2,j2],[R2,z2])}function G2(t){return Jn(O2(t),[F2,A2])}function Z2(t){return Jn(t,[D2,ff],[P2,ff],[M2,L2])}function W2(t){return Jn(t,[N2,I2])}const Y2=Xn(tr);function Q2(t){return Jn(t,[B2,Y2])}const K2=Kn(C2,E2),X2=Kn(df),J2=Xn(tr,Yr,Qr);function ek(t){return Jn(t,[K2,hf],[X2,J2])}const _f="Invalid Duration",mf={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},tk={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...mf},et=146097/400,nr=146097/4800,nk={years:{quarters:4,months:12,weeks:et/7,days:et,hours:et*24,minutes:et*24*60,seconds:et*24*60*60,milliseconds:et*24*60*60*1e3},quarters:{months:3,weeks:et/28,days:et/4,hours:et*24/4,minutes:et*24*60/4,seconds:et*24*60*60/4,milliseconds:et*24*60*60*1e3/4},months:{weeks:nr/7,days:nr,hours:nr*24,minutes:nr*24*60,seconds:nr*24*60*60,milliseconds:nr*24*60*60*1e3},...mf},Sn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rk=Sn.slice(0).reverse();function Kt(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new H(r)}function pf(t,e){let n=e.milliseconds??0;for(const r of rk.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function gf(t,e){const n=pf(t,e)<0?-1:1;Sn.reduceRight((r,o)=>{if(L(e[o]))return r;if(r){const s=e[r]*n,l=t[o][r],a=Math.floor(s/l);e[o]+=a*n,e[r]-=a*l*n}return o},null),Sn.reduce((r,o)=>{if(L(e[o]))return r;if(r){const s=e[r]%1;e[r]-=s,e[o]+=s*t[r][o]}return o},null)}function ok(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class H{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?nk:tk;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||W.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return H.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new H({values:Go(e,H.normalizeUnit),loc:W.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(kn(e))return H.fromMillis(e);if(H.isDuration(e))return e;if(typeof e=="object")return H.fromObject(e);throw new qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=W2(e);return r?H.fromObject(r,n):H.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Q2(e);return r?H.fromObject(r,n):H.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the Duration is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new Fw(r);return new H({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new ld(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Be.create(this.loc,r).formatDurationFromString(this,e):_f}toHuman(e={}){if(!this.isValid)return _f;const n=Sn.map(r=>{const o=this.values[r];return L(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ll(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},D.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pf(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e),r={};for(const o of Sn)(Yn(n.values,o)||Yn(this.values,o))&&(r[o]=n.get(o)+this.get(o));return Kt(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Kd(e(this.values[r],r));return Kt(this,{values:n},!0)}get(e){return this[H.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Go(e,H.normalizeUnit)};return Kt(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const l={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:r};return Kt(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return gf(this.matrix,e),Kt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=ok(this.normalize().shiftToAll().toObject());return Kt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(l=>H.normalizeUnit(l));const n={},r={},o=this.toObject();let s;for(const l of Sn)if(e.indexOf(l)>=0){s=l;let a=0;for(const u in r)a+=this.matrix[u][l]*r[u],r[u]=0;kn(o[l])&&(a+=o[l]);const c=Math.trunc(a);n[l]=c,r[l]=(a*1e3-c*1e3)/1e3}else kn(o[l])&&(r[l]=o[l]);for(const l in r)r[l]!==0&&(n[s]+=l===s?r[l]:r[l]/this.matrix[s][l]);return gf(this.matrix,n),Kt(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Kt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of Sn)if(!n(this.values[r],e.values[r]))return!1;return!0}}const rr="Invalid Interval";function ik(t,e){return!t||!t.isValid?se.invalid("missing or invalid start"):!e||!e.isValid?se.invalid("missing or invalid end"):e<t?se.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class se{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the Interval is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new $w(r);return new se({invalid:r})}static fromDateTimes(e,n){const r=Xr(e),o=Xr(n),s=ik(r,o);return s??new se({start:r,end:o})}static after(e,n){const r=H.fromDurationLike(n),o=Xr(e);return se.fromDateTimes(o,o.plus(r))}static before(e,n){const r=H.fromDurationLike(n),o=Xr(e);return se.fromDateTimes(o.minus(r),o)}static fromISO(e,n){const[r,o]=(e||"").split("/",2);if(r&&o){let s,l;try{s=D.fromISO(r,n),l=s.isValid}catch{l=!1}let a,c;try{a=D.fromISO(o,n),c=a.isValid}catch{c=!1}if(l&&c)return se.fromDateTimes(s,a);if(l){const u=H.fromISO(o,n);if(u.isValid)return se.after(s,u)}else if(c){const u=H.fromISO(r,n);if(u.isValid)return se.before(a,u)}}return se.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let o;return n!=null&&n.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,n),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?se.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Xr).filter(l=>this.contains(l)).sort((l,a)=>l.toMillis()-a.toMillis()),r=[];let{s:o}=this,s=0;for(;o<this.e;){const l=n[s]||this.e,a=+l>+this.e?this.e:l;r.push(se.fromDateTimes(o,a)),o=a,s+=1}return r}splitBy(e){const n=H.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,s;const l=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(c=>c*o));s=+a>+this.e?this.e:a,l.push(se.fromDateTimes(r,s)),r=s,o+=1}return l}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:se.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return se.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((o,s)=>o.s-s.s).reduce(([o,s],l)=>s?s.overlaps(l)||s.abutsStart(l)?[o,s.union(l)]:[o.concat([s]),l]:[o,l],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const o=[],s=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...s),a=l.sort((c,u)=>c.time-u.time);for(const c of a)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&o.push(se.fromDateTimes(n,c.time)),n=null);return se.merge(o)}difference(...e){return se.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:rr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Mo,n={}){return this.isValid?Be.create(this.s.loc.clone(n),e).formatInterval(this):rr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:rr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:rr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:rr}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:rr}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):H.invalid(this.invalidReason)}mapEndpoints(e){return se.fromDateTimes(e(this.s),e(this.e))}}class Wo{static hasDST(e=ce.defaultZone){const n=D.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return kt.isValidZone(e)}static normalizeZone(e){return Yt(e,ce.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||W.create(n,r,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||W.create(n,r,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||W.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||W.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return W.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return W.create(n,null,"gregory").eras(e)}static features(){return{relative:Gd(),localeWeek:Zd()}}}function yf(t,e){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(H.fromMillis(r).as("days"))}function sk(t,e,n){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=yf(c,u);return(d-d%7)/7}],["days",yf]],o={},s=t;let l,a;for(const[c,u]of r)n.indexOf(c)>=0&&(l=c,o[c]=u(t,e),a=s.plus(o),a>e?(o[c]--,t=s.plus(o),t>e&&(a=t,o[c]--,t=s.plus(o))):t=a);return[t,o,a,l]}function lk(t,e,n,r){let[o,s,l,a]=sk(t,e,n);const c=e-o,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(l<e&&(l=o.plus({[a]:1})),l!==o&&(s[a]=(s[a]||0)+c/(l-o)));const d=H.fromObject(s,r);return u.length>0?H.fromMillis(c,r).shiftTo(...u).plus(d):d}const fl={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},bf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ak=fl.hanidec.replace(/[\[|\]]/g,"").split("");function ck(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(fl.hanidec)!==-1)e+=ak.indexOf(t[n]);else for(const o in bf){const[s,l]=bf[o];r>=s&&r<=l&&(e+=r-s)}}return parseInt(e,10)}else return e}function at({numberingSystem:t},e=""){return new RegExp(`${fl[t||"latn"]}${e}`)}const uk="missing Intl.DateTimeFormat.formatToParts support";function Z(t,e=n=>n){return{regex:t,deser:([n])=>e(ck(n))}}const wf="[  ]",kf=new RegExp(wf,"g");function dk(t){return t.replace(/\./g,"\\.?").replace(kf,wf)}function xf(t){return t.replace(/\./g,"").replace(kf," ").toLowerCase()}function ct(t,e){return t===null?null:{regex:RegExp(t.map(dk).join("|")),deser:([n])=>t.findIndex(r=>xf(n)===xf(r))+e}}function Sf(t,e){return{regex:t,deser:([,n,r])=>Ho(n,r),groups:e}}function Yo(t){return{regex:t,deser:([e])=>e}}function fk(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hk(t,e){const n=at(e),r=at(e,"{2}"),o=at(e,"{3}"),s=at(e,"{4}"),l=at(e,"{6}"),a=at(e,"{1,2}"),c=at(e,"{1,3}"),u=at(e,"{1,6}"),d=at(e,"{1,9}"),f=at(e,"{2,4}"),h=at(e,"{4,6}"),_=g=>({regex:RegExp(fk(g.val)),deser:([k])=>k,literal:!0}),m=(g=>{if(t.literal)return _(g);switch(g.val){case"G":return ct(e.eras("short"),0);case"GG":return ct(e.eras("long"),0);case"y":return Z(u);case"yy":return Z(f,al);case"yyyy":return Z(s);case"yyyyy":return Z(h);case"yyyyyy":return Z(l);case"M":return Z(a);case"MM":return Z(r);case"MMM":return ct(e.months("short",!0),1);case"MMMM":return ct(e.months("long",!0),1);case"L":return Z(a);case"LL":return Z(r);case"LLL":return ct(e.months("short",!1),1);case"LLLL":return ct(e.months("long",!1),1);case"d":return Z(a);case"dd":return Z(r);case"o":return Z(c);case"ooo":return Z(o);case"HH":return Z(r);case"H":return Z(a);case"hh":return Z(r);case"h":return Z(a);case"mm":return Z(r);case"m":return Z(a);case"q":return Z(a);case"qq":return Z(r);case"s":return Z(a);case"ss":return Z(r);case"S":return Z(c);case"SSS":return Z(o);case"u":return Yo(d);case"uu":return Yo(a);case"uuu":return Z(n);case"a":return ct(e.meridiems(),0);case"kkkk":return Z(s);case"kk":return Z(f,al);case"W":return Z(a);case"WW":return Z(r);case"E":case"c":return Z(n);case"EEE":return ct(e.weekdays("short",!1),1);case"EEEE":return ct(e.weekdays("long",!1),1);case"ccc":return ct(e.weekdays("short",!0),1);case"cccc":return ct(e.weekdays("long",!0),1);case"Z":case"ZZ":return Sf(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Sf(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return Yo(/[a-z_+-/]{1,256}?/i);case" ":return Yo(/[^\S\n\r]/);default:return _(g)}})(t)||{invalidReason:uk};return m.token=t,m}const _k={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function mk(t,e,n){const{type:r,value:o}=t;if(r==="literal"){const c=/^\s+$/.test(o);return{literal:!c,val:c?" ":o}}const s=e[r];let l=r;r==="hour"&&(e.hour12!=null?l=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let a=_k[l];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function pk(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function gk(t,e,n){const r=t.match(e);if(r){const o={};let s=1;for(const l in n)if(Yn(n,l)){const a=n[l],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(r.slice(s,s+c))),s+=c}return[r,o]}else return[r,{}]}function yk(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return L(t.z)||(n=kt.create(t.z)),L(t.Z)||(n||(n=new $e(t.Z)),r=t.Z),L(t.q)||(t.M=(t.q-1)*3+1),L(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),L(t.u)||(t.S=sl(t.u)),[Object.keys(t).reduce((s,l)=>{const a=e(l);return a&&(s[a]=t[l]),s},{}),n,r]}let hl=null;function bk(){return hl||(hl=D.fromMillis(1555555555555)),hl}function wk(t,e){if(t.literal)return t;const n=Be.macroTokenToFormatOpts(t.val),r=Tf(n,e);return r==null||r.includes(void 0)?t:r}function Cf(t,e){return Array.prototype.concat(...t.map(n=>wk(n,e)))}function Ef(t,e,n){const r=Cf(Be.parseFormat(n),t),o=r.map(l=>hk(l,t)),s=o.find(l=>l.invalidReason);if(s)return{input:e,tokens:r,invalidReason:s.invalidReason};{const[l,a]=pk(o),c=RegExp(l,"i"),[u,d]=gk(e,c,a),[f,h,_]=d?yk(d):[null,null,void 0];if(Yn(d,"a")&&Yn(d,"H"))throw new Wn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:u,matches:d,result:f,zone:h,specificOffset:_}}}function kk(t,e,n){const{result:r,zone:o,specificOffset:s,invalidReason:l}=Ef(t,e,n);return[r,o,s,l]}function Tf(t,e){if(!t)return null;const r=Be.create(e,t).dtFormatter(bk()),o=r.formatToParts(),s=r.resolvedOptions();return o.map(l=>mk(l,t,s))}const _l="Invalid DateTime",Bf=864e13;function Qo(t){return new lt("unsupported zone",`the zone "${t.name}" is not supported`)}function ml(t){return t.weekData===null&&(t.weekData=Ro(t.c)),t.weekData}function pl(t){return t.localWeekData===null&&(t.localWeekData=Ro(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new D({...n,...e,old:n})}function Nf(t,e,n){let r=t-e*60*1e3;const o=n.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;const s=n.offset(r);return o===s?[r,o]:[t-Math.min(o,s)*60*1e3,Math.max(o,s)]}function Ko(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Xo(t,e,n){return Nf(zo(t),e,n)}function If(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:r,month:o,day:Math.min(t.c.day,jo(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},l=H.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=zo(s);let[c,u]=Nf(a,n,t.zone);return l!==0&&(c+=l,u=t.zone.offset(c)),{ts:c,o:u}}function Kr(t,e,n,r,o,s){const{setZone:l,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,u=D.fromObject(t,{...n,zone:c,specificOffset:s});return l?u:u.setZone(a)}else return D.invalid(new lt("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Jo(t,e,n=!0){return t.isValid?Be.create(W.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function gl(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=he(t.c.year,n?6:4),e?(r+="-",r+=he(t.c.month),r+="-",r+=he(t.c.day)):(r+=he(t.c.month),r+=he(t.c.day)),r}function $f(t,e,n,r,o,s){let l=he(t.c.hour);return e?(l+=":",l+=he(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=":")):l+=he(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=he(t.c.second),(t.c.millisecond!==0||!r)&&(l+=".",l+=he(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!s?l+="Z":t.o<0?(l+="-",l+=he(Math.trunc(-t.o/60)),l+=":",l+=he(Math.trunc(-t.o%60))):(l+="+",l+=he(Math.trunc(t.o/60)),l+=":",l+=he(Math.trunc(t.o%60)))),s&&(l+="["+t.zone.ianaName+"]"),l}const Ff={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xk={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Sk={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Af=["year","month","day","hour","minute","second","millisecond"],Ck=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ek=["year","ordinal","hour","minute","second","millisecond"];function Tk(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ld(t);return e}function Of(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Tk(t)}}function Df(t,e){const n=Yt(e.zone,ce.defaultZone),r=W.fromObject(e),o=ce.now();let s,l;if(L(t.year))s=o;else{for(const u of Af)L(t[u])&&(t[u]=Ff[u]);const a=zd(t)||Hd(t);if(a)return D.invalid(a);const c=n.offset(o);[s,l]=Xo(t,c,n)}return new D({ts:s,zone:n,loc:r,o:l})}function Pf(t,e,n){const r=L(n.round)?!0:n.round,o=(l,a)=>(l=ll(l,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(l,a)),s=l=>n.calendary?e.hasSame(t,l)?0:e.startOf(l).diff(t.startOf(l),l).get(l):e.diff(t,l).get(l);if(n.unit)return o(s(n.unit),n.unit);for(const l of n.units){const a=s(l);if(Math.abs(a)>=1)return o(a,l)}return o(t>e?-0:0,n.units[n.units.length-1])}function Mf(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class D{constructor(e){const n=e.zone||ce.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new lt("invalid input"):null)||(n.isValid?null:Qo(n));this.ts=L(e.ts)?ce.now():e.ts;let o=null,s=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,s]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);o=Ko(this.ts,a),r=Number.isNaN(o.year)?new lt("invalid input"):null,o=r?null:o,s=r?null:a}this._zone=n,this.loc=e.loc||W.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=s,this.isLuxonDateTime=!0}static now(){return new D({})}static local(){const[e,n]=Mf(arguments),[r,o,s,l,a,c,u]=n;return Df({year:r,month:o,day:s,hour:l,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=Mf(arguments),[r,o,s,l,a,c,u]=n;return e.zone=$e.utcInstance,Df({year:r,month:o,day:s,hour:l,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const r=n2(e)?e.valueOf():NaN;if(Number.isNaN(r))return D.invalid("invalid input");const o=Yt(n.zone,ce.defaultZone);return o.isValid?new D({ts:r,zone:o,loc:W.fromObject(n)}):D.invalid(Qo(o))}static fromMillis(e,n={}){if(kn(e))return e<-Bf||e>Bf?D.invalid("Timestamp out of range"):new D({ts:e,zone:Yt(n.zone,ce.defaultZone),loc:W.fromObject(n)});throw new qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(kn(e))return new D({ts:e*1e3,zone:Yt(n.zone,ce.defaultZone),loc:W.fromObject(n)});throw new qe("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=Yt(n.zone,ce.defaultZone);if(!r.isValid)return D.invalid(Qo(r));const o=W.fromObject(n),s=Go(e,Of),{minDaysInFirstWeek:l,startOfWeek:a}=jd(s,o),c=ce.now(),u=L(n.specificOffset)?r.offset(c):n.specificOffset,d=!L(s.ordinal),f=!L(s.year),h=!L(s.month)||!L(s.day),_=f||h,p=s.weekYear||s.weekNumber;if((_||d)&&p)throw new Wn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new Wn("Can't mix ordinal dates with month/day");const m=p||s.weekday&&!_;let g,k,y=Ko(c,u);m?(g=Ck,k=xk,y=Ro(y,l,a)):d?(g=Ek,k=Sk,y=ol(y)):(g=Af,k=Ff);let w=!1;for(const N of g){const I=s[N];L(I)?w?s[N]=k[N]:s[N]=y[N]:w=!0}const C=m?Jw(s,l,a):d?e2(s):zd(s),T=C||Hd(s);if(T)return D.invalid(T);const b=m?Rd(s,l,a):d?Ud(s):s,[x,E]=Xo(b,u,r),B=new D({ts:x,zone:r,o:E,loc:o});return s.weekday&&_&&e.weekday!==B.weekday?D.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${B.toISO()}`):B}static fromISO(e,n={}){const[r,o]=H2(e);return Kr(r,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,o]=G2(e);return Kr(r,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,o]=Z2(e);return Kr(r,o,n,"HTTP",n)}static fromFormat(e,n,r={}){if(L(e)||L(n))throw new qe("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:s=null}=r,l=W.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),[a,c,u,d]=kk(l,e,n);return d?D.invalid(d):Kr(a,c,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return D.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,o]=ek(e);return Kr(r,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the DateTime is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new Iw(r);return new D({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Tf(e,W.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return Cf(Be.parseFormat(e),W.fromObject(n)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ml(this).weekYear:NaN}get weekNumber(){return this.isValid?ml(this).weekNumber:NaN}get weekday(){return this.isValid?ml(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?pl(this).weekday:NaN}get localWeekNumber(){return this.isValid?pl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?pl(this).weekYear:NaN}get ordinal(){return this.isValid?ol(this.c).ordinal:NaN}get monthShort(){return this.isValid?Wo.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Wo.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Wo.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Wo.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=zo(this.c),o=this.zone.offset(r-e),s=this.zone.offset(r+e),l=this.zone.offset(r-o*n),a=this.zone.offset(r-s*n);if(l===a)return[this];const c=r-l*n,u=r-a*n,d=Ko(c,l),f=Ko(u,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[Cn(this,{ts:c}),Cn(this,{ts:u})]:[this]}get isInLeapYear(){return Gr(this.year)}get daysInMonth(){return jo(this.year,this.month)}get daysInYear(){return this.isValid?Qn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Zr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Zr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:o}=Be.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone($e.instance(e),n)}toLocal(){return this.setZone(ce.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=Yt(e,ce.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||r){const s=e.offset(this.ts),l=this.toObject();[o]=Xo(l,s,e)}return Cn(this,{ts:o,zone:e})}else return D.invalid(Qo(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Cn(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Go(e,Of),{minDaysInFirstWeek:r,startOfWeek:o}=jd(n,this.loc),s=!L(n.weekYear)||!L(n.weekNumber)||!L(n.weekday),l=!L(n.ordinal),a=!L(n.year),c=!L(n.month)||!L(n.day),u=a||c,d=n.weekYear||n.weekNumber;if((u||l)&&d)throw new Wn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new Wn("Can't mix ordinal dates with month/day");let f;s?f=Rd({...Ro(this.c,r,o),...n},r,o):L(n.ordinal)?(f={...this.toObject(),...n},L(n.day)&&(f.day=Math.min(jo(f.year,f.month),f.day))):f=Ud({...ol(this.c),...n});const[h,_]=Xo(f,this.o,this.zone);return Cn(this,{ts:h,o:_})}plus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e);return Cn(this,If(this,n))}minus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e).negate();return Cn(this,If(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=H.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const s=this.loc.getStartOfWeek(),{weekday:l}=this;l<s&&(r.weekNumber=this.weekNumber-1),r.weekday=s}else r.weekday=1;if(o==="quarters"){const s=Math.ceil(this.month/3);r.month=(s-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?Be.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):_l}toLocaleString(e=Mo,n={}){return this.isValid?Be.create(this.loc.clone(n),e).formatDateTime(this):_l}toLocaleParts(e={}){return this.isValid?Be.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const l=e==="extended";let a=gl(this,l);return a+="T",a+=$f(this,l,n,r,o,s),a}toISODate({format:e="extended"}={}){return this.isValid?gl(this,e==="extended"):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:s=!1,format:l="extended"}={}){return this.isValid?(o?"T":"")+$f(this,l==="extended",n,e,r,s):null}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gl(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||e)&&(r&&(o+=" "),n?o+="z":e&&(o+="ZZ")),Jo(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():_l}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return H.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},s=r2(n).map(H.normalizeUnit),l=e.valueOf()>this.valueOf(),a=l?this:e,c=l?e:this,u=lk(a,c,s,o);return l?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(D.now(),e,n)}until(e){return this.isValid?se.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const o=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n,r)<=o&&o<=s.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||D.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let o=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(o=e.unit,s=void 0),Pf(n,this.plus(r),{...e,numeric:"always",units:o,unit:s})}toRelativeCalendar(e={}){return this.isValid?Pf(e.base||D.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(D.isDateTime))throw new qe("min requires all arguments be DateTimes");return Wd(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(D.isDateTime))throw new qe("max requires all arguments be DateTimes");return Wd(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:o=null,numberingSystem:s=null}=r,l=W.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});return Ef(l,e,n)}static fromStringExplain(e,n,r={}){return D.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Mo}static get DATE_MED(){return ad}static get DATE_MED_WITH_WEEKDAY(){return Aw}static get DATE_FULL(){return cd}static get DATE_HUGE(){return ud}static get TIME_SIMPLE(){return dd}static get TIME_WITH_SECONDS(){return fd}static get TIME_WITH_SHORT_OFFSET(){return hd}static get TIME_WITH_LONG_OFFSET(){return _d}static get TIME_24_SIMPLE(){return md}static get TIME_24_WITH_SECONDS(){return pd}static get TIME_24_WITH_SHORT_OFFSET(){return gd}static get TIME_24_WITH_LONG_OFFSET(){return yd}static get DATETIME_SHORT(){return bd}static get DATETIME_SHORT_WITH_SECONDS(){return wd}static get DATETIME_MED(){return kd}static get DATETIME_MED_WITH_SECONDS(){return xd}static get DATETIME_MED_WITH_WEEKDAY(){return Ow}static get DATETIME_FULL(){return Sd}static get DATETIME_FULL_WITH_SECONDS(){return Cd}static get DATETIME_HUGE(){return Ed}static get DATETIME_HUGE_WITH_SECONDS(){return Td}}function Xr(t){if(D.isDateTime(t))return t;if(t&&t.valueOf&&kn(t.valueOf()))return D.fromJSDate(t);if(t&&typeof t=="object")return D.fromObject(t);throw new qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const yl=Symbol.for("yaml.alias"),bl=Symbol.for("yaml.document"),Xt=Symbol.for("yaml.map"),Lf=Symbol.for("yaml.pair"),$t=Symbol.for("yaml.scalar"),or=Symbol.for("yaml.seq"),tt=Symbol.for("yaml.node.type"),ir=t=>!!t&&typeof t=="object"&&t[tt]===yl,ei=t=>!!t&&typeof t=="object"&&t[tt]===bl,Jr=t=>!!t&&typeof t=="object"&&t[tt]===Xt,ue=t=>!!t&&typeof t=="object"&&t[tt]===Lf,X=t=>!!t&&typeof t=="object"&&t[tt]===$t,eo=t=>!!t&&typeof t=="object"&&t[tt]===or;function de(t){if(t&&typeof t=="object")switch(t[tt]){case Xt:case or:return!0}return!1}function _e(t){if(t&&typeof t=="object")switch(t[tt]){case yl:case Xt:case $t:case or:return!0}return!1}const Bk=t=>(X(t)||de(t))&&!!t.anchor,En=Symbol("break visit"),Nk=Symbol("skip children"),to=Symbol("remove node");function Tn(t,e){const n=Ik(e);ei(t)?sr(null,t.contents,n,Object.freeze([t]))===to&&(t.contents=null):sr(null,t,n,Object.freeze([]))}Tn.BREAK=En,Tn.SKIP=Nk,Tn.REMOVE=to;function sr(t,e,n,r){const o=$k(t,e,n,r);if(_e(o)||ue(o))return Fk(t,r,o),sr(t,o,n,r);if(typeof o!="symbol"){if(de(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const l=sr(s,e.items[s],n,r);if(typeof l=="number")s=l-1;else{if(l===En)return En;l===to&&(e.items.splice(s,1),s-=1)}}}else if(ue(e)){r=Object.freeze(r.concat(e));const s=sr("key",e.key,n,r);if(s===En)return En;s===to&&(e.key=null);const l=sr("value",e.value,n,r);if(l===En)return En;l===to&&(e.value=null)}}return o}function Ik(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function $k(t,e,n,r){var o,s,l,a,c;if(typeof n=="function")return n(t,e,r);if(Jr(e))return(o=n.Map)==null?void 0:o.call(n,t,e,r);if(eo(e))return(s=n.Seq)==null?void 0:s.call(n,t,e,r);if(ue(e))return(l=n.Pair)==null?void 0:l.call(n,t,e,r);if(X(e))return(a=n.Scalar)==null?void 0:a.call(n,t,e,r);if(ir(e))return(c=n.Alias)==null?void 0:c.call(n,t,e,r)}function Fk(t,e,n){const r=e[e.length-1];if(de(r))r.items[t]=n;else if(ue(r))t==="key"?r.key=n:r.value=n;else if(ei(r))r.contents=n;else{const o=ir(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Ak={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Ok=t=>t.replace(/[!,[\]{}]/g,e=>Ak[e]);class Fe{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Fe.defaultYaml,e),this.tags=Object.assign({},Fe.defaultTags,n)}clone(){const e=new Fe(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Fe(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Fe.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Fe.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,l]=r;return this.tags[s]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const l=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,l),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const l=e.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,r,o]=e.match(/^(.*!)([^!]*)$/s);o||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(o)}catch(l){return n(String(l)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+Ok(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(e&&r.length>0&&_e(e.contents)){const s={};Tn(e.contents,(l,a)=>{_e(a)&&a.tag&&(s[a.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,l]of r)s==="!!"&&l==="tag:yaml.org,2002:"||(!e||o.some(a=>a.startsWith(l)))&&n.push(`%TAG ${s} ${l}`);return n.join(`
17
+ */var du,zt,zn,$s,_n,fu,Fs,Vy=function(){return typeof window<"u"},Nt={},mn=180/Math.PI,Hn=Math.PI/180,Gn=Math.atan2,hu=1e8,As=/([A-Z])/g,qy=/(left|right|width|margin|padding|x)/i,Ry=/[\s,\(]\S/,bt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Os=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Uy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},jy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},zy=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},_u=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},mu=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Hy=function(e,n,r){return e.style[n]=r},Gy=function(e,n,r){return e.style.setProperty(n,r)},Zy=function(e,n,r){return e._gsap[n]=r},Wy=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Yy=function(e,n,r,o,s){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(s,l)},Qy=function(e,n,r,o,s){var l=e._gsap;l[n]=r,l.renderTransform(s,l)},re="transform",ve=re+"Origin",Ky=function t(e,n){var r=this,o=this.target,s=o.style,l=o._gsap;if(e in Nt&&s){if(this.tfm=this.tfm||{},e!=="transform")e=bt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=It(o,a)}):this.tfm[e]=l.x?l[e]:It(o,e),e===ve&&(this.tfm.zOrigin=l.zOrigin);else return bt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(re)>=0)return;l.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(ve,n,"")),e=re}(s||n)&&this.props.push(e,n,s[e])},pu=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Xy=function(){var e=this.props,n=this.target,r=n.style,o=n._gsap,s,l;for(s=0;s<e.length;s+=3)e[s+1]?n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(As,"-$1").toLowerCase());if(this.tfm){for(l in this.tfm)o[l]=this.tfm[l];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=Fs(),(!s||!s.isStart)&&!r[re]&&(pu(r),o.zOrigin&&r[ve]&&(r[ve]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},gu=function(e,n){var r={target:e,props:[],revert:Xy,save:Ky};return e._gsap||Le.core.getCache(e),n&&n.split(",").forEach(function(o){return r.save(o)}),r},yu,Ds=function(e,n){var r=zt.createElementNS?zt.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):zt.createElement(e);return r&&r.style?r:zt.createElement(e)},wt=function t(e,n,r){var o=getComputedStyle(e);return o[n]||o.getPropertyValue(n.replace(As,"-$1").toLowerCase())||o.getPropertyValue(n)||!r&&t(e,Zn(n)||n,1)||""},bu="O,Moz,ms,Ms,Webkit".split(","),Zn=function(e,n,r){var o=n||_n,s=o.style,l=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);l--&&!(bu[l]+e in s););return l<0?null:(l===3?"ms":l>=0?bu[l]:"")+e},Ps=function(){Vy()&&window.document&&(du=window,zt=du.document,zn=zt.documentElement,_n=Ds("div")||{style:{}},Ds("div"),re=Zn(re),ve=re+"Origin",_n.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",yu=!!Zn("perspective"),Fs=Le.core.reverting,$s=1)},Ms=function t(e){var n=Ds("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,s=this.style.cssText,l;if(zn.appendChild(n),n.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(l=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),zn.removeChild(n),this.style.cssText=s,l},wu=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},ku=function(e){var n;try{n=e.getBBox()}catch{n=Ms.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===Ms||(n=Ms.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+wu(e,["x","cx","x1"])||0,y:+wu(e,["y","cy","y1"])||0,width:0,height:0}:n},xu=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ku(e))},pn=function(e,n){if(n){var r=e.style,o;n in Nt&&n!==ve&&(n=re),r.removeProperty?(o=n.substr(0,2),(o==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(o==="--"?n:n.replace(As,"-$1").toLowerCase())):r.removeAttribute(n)}},Ht=function(e,n,r,o,s,l){var a=new Me(e._pt,n,r,0,1,l?mu:_u);return e._pt=a,a.b=o,a.e=s,e._props.push(r),a},Su={deg:1,rad:1,turn:1},Jy={grid:1,flex:1},Gt=function t(e,n,r,o){var s=parseFloat(r)||0,l=(r+"").trim().substr((s+"").length)||"px",a=_n.style,c=qy.test(n),u=e.tagName.toLowerCase()==="svg",d=(u?"client":"offset")+(c?"Width":"Height"),f=100,h=o==="px",_=o==="%",p,m,g,k;if(o===l||!s||Su[o]||Su[l])return s;if(l!=="px"&&!h&&(s=t(e,n,r,"px")),k=e.getCTM&&xu(e),(_||l==="%")&&(Nt[n]||~n.indexOf("adius")))return p=k?e.getBBox()[c?"width":"height"]:e[d],ae(_?s/p*f:s/100*p);if(a[c?"width":"height"]=f+(h?l:o),m=~n.indexOf("adius")||o==="em"&&e.appendChild&&!u?e:e.parentNode,k&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===zt||!m.appendChild)&&(m=zt.body),g=m._gsap,g&&_&&g.width&&c&&g.time===He.time&&!g.uncache)return ae(s/g.width*f);if(_&&(n==="height"||n==="width")){var y=e.style[n];e.style[n]=f+o,p=e[d],y?e.style[n]=y:pn(e,n)}else(_||l==="%")&&!Jy[wt(m,"display")]&&(a.position=wt(e,"position")),m===e&&(a.position="static"),m.appendChild(_n),p=_n[d],m.removeChild(_n),a.position="absolute";return c&&_&&(g=an(m),g.time=He.time,g.width=m[d]),ae(h?p*s/f:p&&s?f/p*s:0)},It=function(e,n,r,o){var s;return $s||Ps(),n in bt&&n!=="transform"&&(n=bt[n],~n.indexOf(",")&&(n=n.split(",")[0])),Nt[n]&&n!=="transform"?(s=Vr(e,o),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Oo(wt(e,ve))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||o||~(s+"").indexOf("calc("))&&(s=Ao[n]&&Ao[n](e,n,r)||wt(e,n)||Bc(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Gt(e,n,s,r)+r:s},eb=function(e,n,r,o){if(!r||r==="none"){var s=Zn(n,e,1),l=s&&wt(e,s,1);l&&l!==r?(n=s,r=l):n==="borderColor"&&(r=wt(e,"borderTopColor"))}var a=new Me(this._pt,e.style,n,0,1,lu),c=0,u=0,d,f,h,_,p,m,g,k,y,w,C,T;if(a.b=r,a.e=o,r+="",o+="",o==="auto"&&(m=e.style[n],e.style[n]=o,o=wt(e,n)||o,m?e.style[n]=m:pn(e,n)),d=[r,o],Kc(d),r=d[0],o=d[1],h=r.match(vn)||[],T=o.match(vn)||[],T.length){for(;f=vn.exec(o);)g=f[0],y=o.substring(c,f.index),p?p=(p+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(p=1),g!==(m=h[u++]||"")&&(_=parseFloat(m)||0,C=m.substr((_+"").length),g.charAt(1)==="="&&(g=Vn(_,g)+C),k=parseFloat(g),w=g.substr((k+"").length),c=vn.lastIndex-w.length,w||(w=w||Re.units[n]||C,c===o.length&&(o+=w,a.e+=w)),C!==w&&(_=Gt(e,n,m,w)||0),a._pt={_next:a._pt,p:y||u===1?y:",",s:_,c:k-_,m:p&&p<4||n==="zIndex"?Math.round:0});a.c=c<o.length?o.substring(c,o.length):""}else a.r=n==="display"&&o==="none"?mu:_u;return wc.test(o)&&(a.e=0),this._pt=a,a},Cu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},tb=function(e){var n=e.split(" "),r=n[0],o=n[1]||"50%";return(r==="top"||r==="bottom"||o==="left"||o==="right")&&(e=r,r=o,o=e),n[0]=Cu[r]||r,n[1]=Cu[o]||o,n.join(" ")},nb=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,o=r.style,s=n.u,l=r._gsap,a,c,u;if(s==="all"||s===!0)o.cssText="",c=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],Nt[a]&&(c=1,a=a==="transformOrigin"?ve:re),pn(r,a);c&&(pn(r,re),l&&(l.svg&&r.removeAttribute("transform"),Vr(r,1),l.uncache=1,pu(o)))}},Ao={clearProps:function(e,n,r,o,s){if(s.data!=="isFromStart"){var l=e._pt=new Me(e._pt,n,r,0,0,nb);return l.u=o,l.pr=-10,l.tween=s,e._props.push(r),1}}},vr=[1,0,0,1,0,0],Eu={},Tu=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Bu=function(e){var n=wt(e,re);return Tu(n)?vr:n.substr(7).match(bc).map(ae)},Ls=function(e,n){var r=e._gsap||an(e),o=e.style,s=Bu(e),l,a,c,u;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?vr:s):(s===vr&&!e.offsetParent&&e!==zn&&!r.svg&&(c=o.display,o.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(u=1,a=e.nextElementSibling,zn.appendChild(e)),s=Bu(e),c?o.display=c:pn(e,"display"),u&&(a?l.insertBefore(e,a):l?l.appendChild(e):zn.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},vs=function(e,n,r,o,s,l){var a=e._gsap,c=s||Ls(e,!0),u=a.xOrigin||0,d=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,_=c[0],p=c[1],m=c[2],g=c[3],k=c[4],y=c[5],w=n.split(" "),C=parseFloat(w[0])||0,T=parseFloat(w[1])||0,b,x,E,B;r?c!==vr&&(x=_*g-p*m)&&(E=C*(g/x)+T*(-m/x)+(m*y-g*k)/x,B=C*(-p/x)+T*(_/x)-(_*y-p*k)/x,C=E,T=B):(b=ku(e),C=b.x+(~w[0].indexOf("%")?C/100*b.width:C),T=b.y+(~(w[1]||w[0]).indexOf("%")?T/100*b.height:T)),o||o!==!1&&a.smooth?(k=C-u,y=T-d,a.xOffset=f+(k*_+y*m)-k,a.yOffset=h+(k*p+y*g)-y):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=T,a.smooth=!!o,a.origin=n,a.originIsAbsolute=!!r,e.style[ve]="0px 0px",l&&(Ht(l,a,"xOrigin",u,C),Ht(l,a,"yOrigin",d,T),Ht(l,a,"xOffset",f,a.xOffset),Ht(l,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+T)},Vr=function(e,n){var r=e._gsap||new tu(e);if("x"in r&&!n&&!r.uncache)return r;var o=e.style,s=r.scaleX<0,l="px",a="deg",c=getComputedStyle(e),u=wt(e,ve)||"0",d,f,h,_,p,m,g,k,y,w,C,T,b,x,E,B,N,I,A,R,K,le,P,te,we,Pn,Lt,nn,Ct,vi,ft,vt;return d=f=h=m=g=k=y=w=C=0,_=p=1,r.svg=!!(e.getCTM&&xu(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(o[re]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[re]!=="none"?c[re]:"")),o.scale=o.rotate=o.translate="none"),x=Ls(e,r.svg),r.svg&&(r.uncache?(we=e.getBBox(),u=r.xOrigin-we.x+"px "+(r.yOrigin-we.y)+"px",te=""):te=!n&&e.getAttribute("data-svg-origin"),vs(e,te||u,!!te||r.originIsAbsolute,r.smooth!==!1,x)),T=r.xOrigin||0,b=r.yOrigin||0,x!==vr&&(I=x[0],A=x[1],R=x[2],K=x[3],d=le=x[4],f=P=x[5],x.length===6?(_=Math.sqrt(I*I+A*A),p=Math.sqrt(K*K+R*R),m=I||A?Gn(A,I)*mn:0,y=R||K?Gn(R,K)*mn+m:0,y&&(p*=Math.abs(Math.cos(y*Hn))),r.svg&&(d-=T-(T*I+b*R),f-=b-(T*A+b*K))):(vt=x[6],vi=x[7],Lt=x[8],nn=x[9],Ct=x[10],ft=x[11],d=x[12],f=x[13],h=x[14],E=Gn(vt,Ct),g=E*mn,E&&(B=Math.cos(-E),N=Math.sin(-E),te=le*B+Lt*N,we=P*B+nn*N,Pn=vt*B+Ct*N,Lt=le*-N+Lt*B,nn=P*-N+nn*B,Ct=vt*-N+Ct*B,ft=vi*-N+ft*B,le=te,P=we,vt=Pn),E=Gn(-R,Ct),k=E*mn,E&&(B=Math.cos(-E),N=Math.sin(-E),te=I*B-Lt*N,we=A*B-nn*N,Pn=R*B-Ct*N,ft=K*N+ft*B,I=te,A=we,R=Pn),E=Gn(A,I),m=E*mn,E&&(B=Math.cos(E),N=Math.sin(E),te=I*B+A*N,we=le*B+P*N,A=A*B-I*N,P=P*B-le*N,I=te,le=we),g&&Math.abs(g)+Math.abs(m)>359.9&&(g=m=0,k=180-k),_=ae(Math.sqrt(I*I+A*A+R*R)),p=ae(Math.sqrt(P*P+vt*vt)),E=Gn(le,P),y=Math.abs(E)>2e-4?E*mn:0,C=ft?1/(ft<0?-ft:ft):0),r.svg&&(te=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Tu(wt(e,re)),te&&e.setAttribute("transform",te))),Math.abs(y)>90&&Math.abs(y)<270&&(s?(_*=-1,y+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,y+=y<=0?180:-180)),n=n||r.uncache,r.x=d-((r.xPercent=d&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+l,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+l,r.z=h+l,r.scaleX=ae(_),r.scaleY=ae(p),r.rotation=ae(m)+a,r.rotationX=ae(g)+a,r.rotationY=ae(k)+a,r.skewX=y+a,r.skewY=w+a,r.transformPerspective=C+l,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(o[ve]=Oo(u)),r.xOffset=r.yOffset=0,r.force3D=Re.force3D,r.renderTransform=r.svg?ob:yu?Nu:rb,r.uncache=0,r},Oo=function(e){return(e=e.split(" "))[0]+" "+e[1]},Vs=function(e,n,r){var o=Ee(n);return ae(parseFloat(n)+parseFloat(Gt(e,"x",r+"px",o)))+o},rb=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Nu(e,n)},gn="0deg",qr="0px",yn=") ",Nu=function(e,n){var r=n||this,o=r.xPercent,s=r.yPercent,l=r.x,a=r.y,c=r.z,u=r.rotation,d=r.rotationY,f=r.rotationX,h=r.skewX,_=r.skewY,p=r.scaleX,m=r.scaleY,g=r.transformPerspective,k=r.force3D,y=r.target,w=r.zOrigin,C="",T=k==="auto"&&e&&e!==1||k===!0;if(w&&(f!==gn||d!==gn)){var b=parseFloat(d)*Hn,x=Math.sin(b),E=Math.cos(b),B;b=parseFloat(f)*Hn,B=Math.cos(b),l=Vs(y,l,x*B*-w),a=Vs(y,a,-Math.sin(b)*-w),c=Vs(y,c,E*B*-w+w)}g!==qr&&(C+="perspective("+g+yn),(o||s)&&(C+="translate("+o+"%, "+s+"%) "),(T||l!==qr||a!==qr||c!==qr)&&(C+=c!==qr||T?"translate3d("+l+", "+a+", "+c+") ":"translate("+l+", "+a+yn),u!==gn&&(C+="rotate("+u+yn),d!==gn&&(C+="rotateY("+d+yn),f!==gn&&(C+="rotateX("+f+yn),(h!==gn||_!==gn)&&(C+="skew("+h+", "+_+yn),(p!==1||m!==1)&&(C+="scale("+p+", "+m+yn),y.style[re]=C||"translate(0, 0)"},ob=function(e,n){var r=n||this,o=r.xPercent,s=r.yPercent,l=r.x,a=r.y,c=r.rotation,u=r.skewX,d=r.skewY,f=r.scaleX,h=r.scaleY,_=r.target,p=r.xOrigin,m=r.yOrigin,g=r.xOffset,k=r.yOffset,y=r.forceCSS,w=parseFloat(l),C=parseFloat(a),T,b,x,E,B;c=parseFloat(c),u=parseFloat(u),d=parseFloat(d),d&&(d=parseFloat(d),u+=d,c+=d),c||u?(c*=Hn,u*=Hn,T=Math.cos(c)*f,b=Math.sin(c)*f,x=Math.sin(c-u)*-h,E=Math.cos(c-u)*h,u&&(d*=Hn,B=Math.tan(u-d),B=Math.sqrt(1+B*B),x*=B,E*=B,d&&(B=Math.tan(d),B=Math.sqrt(1+B*B),T*=B,b*=B)),T=ae(T),b=ae(b),x=ae(x),E=ae(E)):(T=f,E=h,b=x=0),(w&&!~(l+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(w=Gt(_,"x",l,"px"),C=Gt(_,"y",a,"px")),(p||m||g||k)&&(w=ae(w+p-(p*T+m*x)+g),C=ae(C+m-(p*b+m*E)+k)),(o||s)&&(B=_.getBBox(),w=ae(w+o/100*B.width),C=ae(C+s/100*B.height)),B="matrix("+T+","+b+","+x+","+E+","+w+","+C+")",_.setAttribute("transform",B),y&&(_.style[re]=B)},ib=function(e,n,r,o,s){var l=360,a=pe(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?mn:1),u=c-o,d=o+u+"deg",f,h;return a&&(f=s.split("_")[1],f==="short"&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),f==="cw"&&u<0?u=(u+l*hu)%l-~~(u/l)*l:f==="ccw"&&u>0&&(u=(u-l*hu)%l-~~(u/l)*l)),e._pt=h=new Me(e._pt,n,r,o,u,Uy),h.e=d,h.u="deg",e._props.push(r),h},Iu=function(e,n){for(var r in n)e[r]=n[r];return e},sb=function(e,n,r){var o=Iu({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",l=r.style,a,c,u,d,f,h,_,p;o.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),l[re]=n,a=Vr(r,1),pn(r,re),r.setAttribute("transform",u)):(u=getComputedStyle(r)[re],l[re]=n,a=Vr(r,1),l[re]=u);for(c in Nt)u=o[c],d=a[c],u!==d&&s.indexOf(c)<0&&(_=Ee(u),p=Ee(d),f=_!==p?Gt(r,c,u,p):parseFloat(u),h=parseFloat(d),e._pt=new Me(e._pt,a,c,f,h-f,Os),e._pt.u=p||0,e._props.push(c));Iu(a,o)};Pe("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",o="Bottom",s="Left",l=(e<3?[n,r,o,s]:[n+s,n+r,o+r,o+s]).map(function(a){return e<2?t+a:"border"+a+t});Ao[e>1?"border"+t:t]=function(a,c,u,d,f){var h,_;if(arguments.length<4)return h=l.map(function(p){return It(a,p,u)}),_=h.join(" "),_.split(h[0]).length===5?h[0]:_;h=(d+"").split(" "),_={},l.forEach(function(p,m){return _[p]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(c,_,f)}});var $u={name:"css",register:Ps,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,o,s){var l=this._props,a=e.style,c=r.vars.startAt,u,d,f,h,_,p,m,g,k,y,w,C,T,b,x,E;$s||Ps(),this.styles=this.styles||gu(e),E=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(d=n[m],!(je[m]&&nu(m,n,r,o,e,s)))){if(_=typeof d,p=Ao[m],_==="function"&&(d=d.call(r,o,e,s),_=typeof d),_==="string"&&~d.indexOf("random(")&&(d=Ar(d)),p)p(this,e,m,d,r)&&(x=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(m)+"").trim(),d+="",Ut.lastIndex=0,Ut.test(u)||(g=Ee(u),k=Ee(d)),k?g!==k&&(u=Gt(e,m,u,k)+k):g&&(d+=g),this.add(a,"setProperty",u,d,o,s,0,0,m),l.push(m),E.push(m,0,a[m]);else if(_!=="undefined"){if(c&&m in c?(u=typeof c[m]=="function"?c[m].call(r,o,e,s):c[m],pe(u)&&~u.indexOf("random(")&&(u=Ar(u)),Ee(u+"")||u==="auto"||(u+=Re.units[m]||Ee(It(e,m))||""),(u+"").charAt(1)==="="&&(u=It(e,m))):u=It(e,m),h=parseFloat(u),y=_==="string"&&d.charAt(1)==="="&&d.substr(0,2),y&&(d=d.substr(2)),f=parseFloat(d),m in bt&&(m==="autoAlpha"&&(h===1&&It(e,"visibility")==="hidden"&&f&&(h=0),E.push("visibility",0,a.visibility),Ht(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=bt[m],~m.indexOf(",")&&(m=m.split(",")[0]))),w=m in Nt,w){if(this.styles.save(m),C||(T=e._gsap,T.renderTransform&&!n.parseTransform||Vr(e,n.parseTransform),b=n.smoothOrigin!==!1&&T.smooth,C=this._pt=new Me(this._pt,a,re,0,1,T.renderTransform,T,0,-1),C.dep=1),m==="scale")this._pt=new Me(this._pt,T,"scaleY",T.scaleY,(y?Vn(T.scaleY,y+f):f)-T.scaleY||0,Os),this._pt.u=0,l.push("scaleY",m),m+="X";else if(m==="transformOrigin"){E.push(ve,0,a[ve]),d=tb(d),T.svg?vs(e,d,0,b,0,this):(k=parseFloat(d.split(" ")[2])||0,k!==T.zOrigin&&Ht(this,T,"zOrigin",T.zOrigin,k),Ht(this,a,m,Oo(u),Oo(d)));continue}else if(m==="svgOrigin"){vs(e,d,1,b,0,this);continue}else if(m in Eu){ib(this,T,m,h,y?Vn(h,y+d):d);continue}else if(m==="smoothOrigin"){Ht(this,T,"smooth",T.smooth,d);continue}else if(m==="force3D"){T[m]=d;continue}else if(m==="transform"){sb(this,d,e);continue}}else m in a||(m=Zn(m)||m);if(w||(f||f===0)&&(h||h===0)&&!Ry.test(d)&&m in a)g=(u+"").substr((h+"").length),f||(f=0),k=Ee(d)||(m in Re.units?Re.units[m]:g),g!==k&&(h=Gt(e,m,u,k)),this._pt=new Me(this._pt,w?T:a,m,h,(y?Vn(h,y+f):f)-h,!w&&(k==="px"||m==="zIndex")&&n.autoRound!==!1?zy:Os),this._pt.u=k||0,g!==k&&k!=="%"&&(this._pt.b=u,this._pt.r=jy);else if(m in a)eb.call(this,e,m,u,y?y+d:d);else if(m in e)this.add(e,m,u||e[m],y?y+d:d,o,s);else if(m!=="parseTransform"){ls(m,d);continue}w||(m in a?E.push(m,0,a[m]):E.push(m,1,u||e[m])),l.push(m)}}x&&au(this)},render:function(e,n){if(n.tween._time||!Fs())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:It,aliases:bt,getSetter:function(e,n,r){var o=bt[n];return o&&o.indexOf(",")<0&&(n=o),n in Nt&&n!==ve&&(e._gsap.x||It(e,"x"))?r&&fu===r?n==="scale"?Wy:Zy:(fu=r||{})&&(n==="scale"?Yy:Qy):e.style&&!ts(e.style[n])?Hy:~n.indexOf("-")?Gy:Es(e,n)},core:{_removeProperty:pn,_getMatrix:Ls}};Le.utils.checkPrefix=Zn,Le.core.getStyleSaver=gu,function(t,e,n,r){var o=Pe(t+","+e+","+n,function(s){Nt[s]=1});Pe(e,function(s){Re.units[s]="deg",Eu[s]=1}),bt[o[13]]=t+","+e,Pe(r,function(s){var l=s.split(":");bt[l[1]]=o[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Re.units[t]="px"}),Le.registerPlugin($u);var qs=Le.registerPlugin($u)||Le;qs.core.Tween;const lb={__name:"StaggeredListTransition",props:{height:{type:[String,Number],default:"auto"},duration:{type:Number,default:.5},delayOffset:{type:Number,default:.5},disabled:Boolean},setup(t){const e=t,n=i.ref(null),r=i.computed(()=>e.delayOffset/n.value.$el.children.length);function o(a){e.disabled||(a.style.opacity=0,a.style.height=0)}function s(a,c){if(e.disabled){c();return}qs.to(a,{opacity:1,duration:e.duration,height:e.height,delay:a.dataset.index*r.value,onComplete:c})}function l(a,c){if(e.disabled){c();return}qs.to(a,{opacity:0,height:0,duration:e.duration,delay:a.dataset.index*r.value,onComplete:c})}return(a,c)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{ref_key:"list",ref:n,tag:"div",appear:"",css:!1,onBeforeEnter:o,onEnter:s,onLeave:l},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default")]),_:3},512))}},Rs=i.defineComponent({__name:"ActionMenu",props:{actions:{},target:{default:()=>[]},tooltip:{default:"First select records to perform a batch action"},loading:{type:Boolean},loadingComponent:{default:void 0}},emits:["success"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>Array.isArray(r.target)?r.target.length>0:!!r.target),s=i.computed(()=>r.actions.filter(c=>Array.isArray(r.target)?c.batchEnabled?c.batchEnabled(r.target):!0:c.enabled?c.enabled(r.target):!0)),l=i.ref(!1);async function a(c){if(!c.trigger)throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");l.value=!0,await c.trigger(r.target),l.value=!1,n("success",c)}return(c,u)=>(i.openBlock(),i.createBlock(i.unref(_c),{class:"px-2 flex dx-action-button",items:s.value,disabled:!o.value,tooltip:o.value?"":c.tooltip,loading:l.value||!!c.loading,"loading-component":c.loadingComponent,onActionItem:a},null,8,["items","disabled","tooltip","loading","loading-component"]))}}),ab={key:0,class:"flex-grow overflow-hidden"},Fu=i.defineComponent({__name:"ActionTableColumn",props:{rowProps:{type:Object,required:!0},settings:{type:Object,default:null}},setup(t){const e=t,n=i.computed(()=>e.rowProps.row),r=i.computed(()=>e.rowProps.col),o=i.computed(()=>e.rowProps.value),s=i.computed(()=>{var c;return(c=n.value.isSaving)==null?void 0:c.value}),l=i.computed(()=>{var u;const c=((u=e.settings)==null?void 0:u.width)||r.value.width;return{width:c?`${c}px`:void 0,minWidth:r.value.minWidth?`${r.value.minWidth}px`:void 0}}),a=i.computed(()=>({[r.value.class||""]:!0,"is-saving":s.value,"justify-end":r.value.align==="right","justify-center":r.value.align==="center","justify-start":r.value.align==="left"}));return(c,u)=>(i.openBlock(),i.createBlock(i.unref(J.QTd),{key:t.rowProps.key,props:t.rowProps,style:i.normalizeStyle(l.value),class:i.normalizeClass(["dx-column",r.value.columnClass])},{default:i.withCtx(()=>[i.createElementVNode("div",{style:i.normalizeStyle(l.value)},[i.createElementVNode("div",{class:i.normalizeClass(["flex items-center flex-nowrap",a.value])},[r.value.hideContent?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",ab,[r.value.onClick?(i.openBlock(),i.createElementBlock("a",{key:0,class:i.normalizeClass([r.value.innerClass,"dx-column-link"]),onClick:u[0]||(u[0]=d=>r.value.onClick(n.value))},[r.value.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):i.renderSlot(c.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass([r.value.innerClass,"dx-column-text"])},[r.value.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:r.value.vnode(n.value)},null,8,["vnode"])):i.renderSlot(c.$slots,"default",{key:1},()=>[i.createTextVNode(i.toDisplayString(o.value),1)])],2)),r.value.titleColumns?(i.openBlock(),i.createBlock(i.unref(Mu),{key:2,row:n.value,columns:r.value.titleColumns()},null,8,["row","columns"])):i.createCommentVNode("",!0)])),r.value.actionMenu?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["flex flex-shrink-0",{"ml-2":!r.value.hideContent}])},[i.createVNode(i.unref(Rs),{class:"dx-column-action-menu",actions:r.value.actionMenu,target:n.value,loading:s.value},null,8,["actions","target","loading"])],2)):i.createCommentVNode("",!0)],2)],4)]),_:3},8,["props","style","class"]))}});class Us{constructor(e={}){G(this,"options",{direction:"vertical",hideDragImage:!1});G(this,"startY",0);G(this,"startX",0);G(this,"startSize",0);G(this,"cursorY",0);G(this,"cursorX",0);G(this,"onStartCb",null);G(this,"onEndCb",null);G(this,"onDropCb",null);G(this,"onDraggingCb",null);G(this,"dropZoneResolver",null);G(this,"currentDropZone",null);G(this,"draggableData",null);G(this,"abortController",null);e={disabled:!1,direction:"vertical",hideDragImage:!1,...e},this.setOptions(e)}setOptions(e={}){return this.options={...this.options,...e},this}isVertical(){return this.options.direction==="vertical"}setDropZone(e){return this.dropZoneResolver=e,this}onStart(e){return this.onStartCb=e,this}onEnd(e){return this.onEndCb=e,this}onDragging(e){return this.onDraggingCb=e,this}onDrop(e){return this.onDropCb=e,this}dragStart(e,n){if(!this.options.disabled)if(this.currentDropZone=this.getDropZone(e),this.currentDropZone){this.startY=e.clientY,this.startX=e.clientX,this.startSize=this.getDropZoneSize(),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move"),this.draggableData=n,this.abortController=new AbortController;const r={signal:this.abortController.signal};document.addEventListener("dragenter",o=>this.dragEnter(o),r),document.addEventListener("dragover",o=>this.dragOver(o),r),document.addEventListener("drop",o=>this.drop(o),r),this.onStartCb&&this.onStartCb(e,this.draggableData),e.dataTransfer&&this.options.hideDragImage&&e.dataTransfer.setDragImage(new Image,0,0)}else console.error("Drop zone was not found",e,n)}dragEnd(e){var n;this.options.disabled||(this.currentDropZone=null,(n=this.abortController)==null||n.abort(),this.onEndCb&&this.onEndCb(e,this.draggableData),this.draggableData=null)}dragEnter(e){e.preventDefault()}dragOver(e){this.options.disabled||(e.preventDefault(),this.cursorY=e.clientY,this.cursorX=e.clientX,this.onDraggingCb&&this.onDraggingCb(e,this.draggableData))}drop(e){this.options.disabled||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault(),this.onDropCb&&this.onDropCb(e,this.draggableData))}getDropZone(e){var n;if(typeof this.dropZoneResolver=="string"){let r=e.target;for(;r;){if(((n=r.dataset)==null?void 0:n.dropZone)===this.dropZoneResolver)return r;r=r.parentNode}return null}else return typeof this.dropZoneResolver=="function"?this.dropZoneResolver(e):document.body}getDistance(){return this.isVertical()?this.cursorY-this.startY:this.cursorX-this.startX}getDropZoneSize(){var e,n;return(this.isVertical()?(e=this.currentDropZone)==null?void 0:e.offsetHeight:(n=this.currentDropZone)==null?void 0:n.offsetWidth)||0}getPercentChange(){return this.getDistance()/(this.startSize||1)*100}}const Au={__name:"HandleDraggable",props:{initialValue:{type:Number,default:null},dropZone:{type:[Function,String],required:!0},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)}},emits:["start","end","resize"],setup(t,{emit:e}){const n=e,r=t,o=new Us().setDropZone(r.dropZone).setOptions({showPlaceholder:!0,direction:r.direction,hideDragImage:!0}).onDragging(rn(()=>{n("resize",{distance:o.getDistance(),percent:o.getPercentChange(),startDropZoneSize:o.startSize,dropZoneSize:o.getDropZoneSize()})},20,{maxWait:30})).onStart(()=>n("start")).onEnd(()=>n("end"));return(s,l)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([{"cursor-ew-resize":t.direction==="horizontal","cursor-ns-resize":t.direction==="vertical"},"flex justify-center items-center w-full h-full"]),draggable:"true",onDragstart:l[0]||(l[0]=(...a)=>i.unref(o).dragStart&&i.unref(o).dragStart(...a)),onDragend:l[1]||(l[1]=(...a)=>i.unref(o).dragEnd&&i.unref(o).dragEnd(...a))},[i.renderSlot(s.$slots,"default")],34))}};class Ou extends Us{constructor(n={}){super({showPlaceholder:!0,allowDropZoneChange:!0,...n});G(this,"listPosition",0);G(this,"cursorPosition",0);G(this,"initialPosition",0);G(this,"initialDropZone",null);G(this,"onPositionChangeCb",null);G(this,"onDragPositionChangeCb",null);G(this,"onDropZoneChangeCb",null);G(this,"placeholder",null)}onPositionChange(n){return this.onPositionChangeCb=n,this}onDropZoneChange(n){return this.onDropZoneChangeCb=n,this}onDragPositionChange(n){return this.onDragPositionChangeCb=n,this}dragStart(n,r){this.options.disabled||(super.dragStart(n,r),this.currentDropZone&&(this.listPosition=this.getListPosition(n.target),this.initialPosition=this.listPosition,this.initialDropZone=this.currentDropZone,this.updateScrollPosition()))}dragEnd(n){var s;if(this.options.disabled)return;const r=this.draggableData;(s=this.placeholder)==null||s.remove();const o=this.currentDropZone;super.dragEnd(n),o&&o!==this.initialDropZone?this.onDropZoneChangeCb&&this.onDropZoneChangeCb(n,o,this.listPosition,this.initialPosition,r):this.listPosition!==this.initialPosition&&this.onPositionChangeCb&&this.onPositionChangeCb(this.listPosition,this.initialPosition,r)}dragOver(n){this.options.disabled||(super.dragOver(n),this.updateListPosition(n))}updateListPosition(n){var a;const r={x:n.clientX,y:n.clientY},o=this.getDropZoneForTarget(n.target);o!==this.currentDropZone&&(this.currentDropZone=o,this.cursorPosition=0,this.listPosition=0,(a=this.placeholder)==null||a.remove());const s=this.listPosition,l=this.getListPositionOfPoint(r);this.cursorPosition!==l&&(this.cursorPosition=l,this.listPosition=this.initialPosition<this.cursorPosition?this.cursorPosition-1:this.cursorPosition,this.options.showPlaceholder&&this.renderPlaceholder(),this.listPosition!==s&&this.onDragPositionChangeCb&&this.onDragPositionChangeCb(this.listPosition,this.initialPosition,this.draggableData))}getListPosition(n){let r=0;for(const o of this.getChildren()){if(o===n)return r;r++}return 0}getChildren(){var n;return[...((n=this.currentDropZone)==null?void 0:n.children)||[]].filter(r=>r.className.match(/dx-drag-placeholder/)===null)}getDropZoneForTarget(n){return n.closest("[data-drop-zone]")}isSameDropZone(){return this.currentDropZone===this.initialDropZone}getListPositionOfPoint(n){let r=0;const o=this.getChildren();for(;r<o.length;){const s=o[r].getBoundingClientRect();if(this.isVertical()){if(n.y<s.top+s.height/2)break}else if(n.x<s.left+s.width/2)break;r++}return r}updateScrollPosition(){if(!this.currentDropZone)return;const n=this.currentDropZone.getBoundingClientRect(),r=100;let o=0;const s=f=>f*5,l=this.isVertical()?this.cursorY:this.cursorX,a=this.isVertical()?n.top:n.left,c=this.isVertical()?n.bottom:n.right,u=a+r-l,d=l-(c-r);u>0?o=-s(u):d>0&&(o=s(d)),o&&(this.isVertical()?this.currentDropZone.scrollTo({top:this.currentDropZone.scrollTop+o,behavior:"smooth"}):this.currentDropZone.scrollTo({left:this.currentDropZone.scrollLeft+o,behavior:"smooth"})),setTimeout(()=>this.updateScrollPosition(),500)}renderPlaceholder(){if(!this.currentDropZone||!this.options.allowDropZoneChange&&!this.isSameDropZone())return;this.placeholder||(this.placeholder=document.createElement("div"),this.placeholder.classList.add("dx-drag-placeholder")),this.isVertical()?(this.placeholder.classList.add("dx-direction-vertical"),this.placeholder.classList.remove("dx-direction-horizontal"),this.placeholder.style.height=""):(this.placeholder.classList.add("dx-direction-horizontal"),this.placeholder.classList.remove("dx-direction-vertical"),this.placeholder.style.height=this.currentDropZone.getBoundingClientRect().height+"px");const n=this.getChildren();this.cursorPosition<n.length?this.currentDropZone.insertBefore(this.placeholder,n[this.cursorPosition]):this.currentDropZone.appendChild(this.placeholder)}}const cb=["draggable"],ub={class:"flex-grow"},Du=i.defineComponent({__name:"ListItemDraggable",props:i.mergeModels({dropZone:{},direction:{default:"vertical"},showHandle:{type:Boolean},changeDropZone:{type:Boolean},contentClass:{default:"flex flex-nowrap items-center"},handleClass:{default:""},handleSize:{default:"w-4 h-4"},listItems:{default:()=>[]},disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["position","update:list-items","drop-zone"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),o=t;i.watch(()=>o.disabled,a=>l.setOptions({disabled:a}));const s=i.computed(()=>({"cursor-move":!o.disabled,...typeof o.handleClass=="string"?{[o.handleClass]:!0}:o.handleClass})),l=new Ou().setDropZone(o.dropZone).setOptions({showPlaceholder:!0,allowDropZoneChange:o.changeDropZone,direction:o.direction,disabled:o.disabled}).onStart(()=>r.value=!0).onEnd(()=>r.value=!1).onDropZoneChange((a,c,u,d,f)=>{let h=null,_=[];o.listItems&&(_=[...o.listItems],h=_.splice(d,1)[0]),n("drop-zone",{target:a,item:h,items:_,dropZone:c,oldPosition:d,newPosition:u,data:f})}).onPositionChange((a,c)=>{if(n("position",a),o.listItems){const u=[...o.listItems];u.splice(a,0,u.splice(c,1)[0]),n("update:list-items",u)}});return(a,c)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({"cursor-move":!a.showHandle&&!a.disabled}),draggable:a.disabled?void 0:"true",onDragstart:c[0]||(c[0]=i.withModifiers((...u)=>i.unref(l).dragStart&&i.unref(l).dragStart(...u),["stop"])),onDragend:c[1]||(c[1]=(...u)=>i.unref(l).dragEnd&&i.unref(l).dragEnd(...u))},[i.createElementVNode("div",{class:i.normalizeClass(a.contentClass)},[a.showHandle?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(s.value)},[a.disabled?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(a.handleSize)},null,2)):(i.openBlock(),i.createBlock(i.unref(uc),{key:1,svg:i.unref(Ma),class:i.normalizeClass(a.handleSize),alt:"drag-handle"},null,8,["svg","class"]))],2)):i.createCommentVNode("",!0),i.createElementVNode("div",ub,[i.renderSlot(a.$slots,"default")])],2)],42,cb))}}),Pu=ht(i.defineComponent({__name:"ActionTableHeaderColumn",props:{modelValue:{type:Object,required:!0},name:{type:String,required:!0},rowProps:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.rowProps.col),s=i.computed(()=>o.value.resizeable),l=i.computed(()=>{var f;const d=((f=r.settings)==null?void 0:f.width)||o.value.width;return{width:d?`${d}px`:void 0,minWidth:o.value.minWidth?`${o.value.minWidth}px`:void 0,...o.value.headerStyle||{}}}),a=i.useCssModule("cls"),c=i.computed(()=>{const d={[a["handle-drop-zone"]]:s.value,"dx-column-shrink":o.value.shrink},f=o.value.headerClass;return f&&(typeof f=="string"?d[f]=!0:Object.keys(f).forEach(h=>{d[h]=f[h]})),d});function u(d){const f={...r.modelValue,[o.value.name]:{width:Math.max(Math.min(d.distance+d.startDropZoneSize,o.value.maxWidth||500),o.value.minWidth||80)}};n("update:model-value",f)}return(d,f)=>(i.openBlock(),i.createBlock(i.unref(J.QTh),{key:t.rowProps.key,props:t.rowProps,"data-drop-zone":s.value&&"resize-column-"+o.value.name,class:i.normalizeClass(c.value),style:i.normalizeStyle(l.value)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label)+" ",1),s.value?(i.openBlock(),i.createBlock(i.unref(Au),{key:0,"drop-zone":"resize-column-"+o.value.name,class:i.normalizeClass(d.cls["resize-handle"]),onResize:u},{default:i.withCtx(()=>[i.createVNode(i.unref(La),{class:"w-4 text-gray-600"})]),_:1},8,["drop-zone","class"])):i.createCommentVNode("",!0)]),_:1},8,["props","data-drop-zone","class","style"]))}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_x1jdl_1","!visible":"_!visible_x1jdl_1",visible:"_visible_x1jdl_1",collapse:"_collapse_x1jdl_1",static:"_static_x1jdl_1",absolute:"_absolute_x1jdl_1",relative:"_relative_x1jdl_1",sticky:"_sticky_x1jdl_1","left-0":"_left-0_x1jdl_1","right-0":"_right-0_x1jdl_1","right-1":"_right-1_x1jdl_1","top-0":"_top-0_x1jdl_1","top-1":"_top-1_x1jdl_1","z-10":"_z-10_x1jdl_1","m-2":"_m-2_x1jdl_1","m-4":"_m-4_x1jdl_1","m-auto":"_m-auto_x1jdl_1","mx-1":"_mx-1_x1jdl_1","mx-4":"_mx-4_x1jdl_1","mx-auto":"_mx-auto_x1jdl_1","my-2":"_my-2_x1jdl_1","!mr-1":"_!mr-1_x1jdl_1","mb-2":"_mb-2_x1jdl_1","mb-4":"_mb-4_x1jdl_1","ml-1":"_ml-1_x1jdl_1","ml-2":"_ml-2_x1jdl_1","ml-2.5":"_ml-2.5_x1jdl_1","ml-3":"_ml-3_x1jdl_1","ml-4":"_ml-4_x1jdl_1","ml-5":"_ml-5_x1jdl_1","ml-[-.2em]":"_ml-[-.2em]_x1jdl_1","mr-1":"_mr-1_x1jdl_1","mr-2":"_mr-2_x1jdl_1","mr-3":"_mr-3_x1jdl_1","mr-4":"_mr-4_x1jdl_1","mt-1":"_mt-1_x1jdl_1","mt-2":"_mt-2_x1jdl_1","mt-3":"_mt-3_x1jdl_1","mt-4":"_mt-4_x1jdl_1",block:"_block_x1jdl_1","inline-block":"_inline-block_x1jdl_1",inline:"_inline_x1jdl_1",flex:"_flex_x1jdl_1",table:"_table_x1jdl_1",hidden:"_hidden_x1jdl_1","h-10":"_h-10_x1jdl_1","h-16":"_h-16_x1jdl_1","h-4":"_h-4_x1jdl_1","h-5":"_h-5_x1jdl_1","h-6":"_h-6_x1jdl_1","h-8":"_h-8_x1jdl_1","h-[2.25rem]":"_h-[2.25rem]_x1jdl_1","h-full":"_h-full_x1jdl_1","max-h-full":"_max-h-full_x1jdl_1","min-h-10":"_min-h-10_x1jdl_1","w-10":"_w-10_x1jdl_1","w-16":"_w-16_x1jdl_1","w-2/5":"_w-2/5_x1jdl_1","w-24":"_w-24_x1jdl_1","w-3":"_w-3_x1jdl_1","w-3/5":"_w-3/5_x1jdl_1","w-32":"_w-32_x1jdl_1","w-4":"_w-4_x1jdl_1","w-48":"_w-48_x1jdl_1","w-5":"_w-5_x1jdl_1","w-6":"_w-6_x1jdl_1","w-7":"_w-7_x1jdl_1","w-72":"_w-72_x1jdl_1","w-8":"_w-8_x1jdl_1","w-96":"_w-96_x1jdl_1","w-[13.5rem]":"_w-[13.5rem]_x1jdl_1","w-[6.5rem]":"_w-[6.5rem]_x1jdl_1","w-[80rem]":"_w-[80rem]_x1jdl_1","w-full":"_w-full_x1jdl_1","!min-w-0":"_!min-w-0_x1jdl_1","min-w-10":"_min-w-10_x1jdl_1","max-w-full":"_max-w-full_x1jdl_1","flex-shrink":"_flex-shrink_x1jdl_1","flex-shrink-0":"_flex-shrink-0_x1jdl_1",shrink:"_shrink_x1jdl_1","flex-grow":"_flex-grow_x1jdl_1",grow:"_grow_x1jdl_1","rotate-180":"_rotate-180_x1jdl_1",transform:"_transform_x1jdl_1","cursor-ew-resize":"_cursor-ew-resize_x1jdl_1","cursor-move":"_cursor-move_x1jdl_1","cursor-not-allowed":"_cursor-not-allowed_x1jdl_1","cursor-ns-resize":"_cursor-ns-resize_x1jdl_1","cursor-pointer":"_cursor-pointer_x1jdl_1",resize:"_resize_x1jdl_121","flex-col":"_flex-col_x1jdl_1","flex-nowrap":"_flex-nowrap_x1jdl_1","items-center":"_items-center_x1jdl_1","items-stretch":"_items-stretch_x1jdl_1","justify-start":"_justify-start_x1jdl_1","justify-end":"_justify-end_x1jdl_1","justify-center":"_justify-center_x1jdl_1","justify-between":"_justify-between_x1jdl_1","gap-x-4":"_gap-x-4_x1jdl_1","gap-y-0":"_gap-y-0_x1jdl_1","gap-y-1":"_gap-y-1_x1jdl_1","space-x-1":"_space-x-1_x1jdl_1","space-x-2":"_space-x-2_x1jdl_1","self-center":"_self-center_x1jdl_1","overflow-auto":"_overflow-auto_x1jdl_1","overflow-hidden":"_overflow-hidden_x1jdl_1","overflow-y-auto":"_overflow-y-auto_x1jdl_73","overflow-x-hidden":"_overflow-x-hidden_x1jdl_1","scroll-smooth":"_scroll-smooth_x1jdl_1","overflow-ellipsis":"_overflow-ellipsis_x1jdl_1","whitespace-normal":"_whitespace-normal_x1jdl_1","whitespace-nowrap":"_whitespace-nowrap_x1jdl_1",rounded:"_rounded_x1jdl_1","rounded-2xl":"_rounded-2xl_x1jdl_1","rounded-lg":"_rounded-lg_x1jdl_1","rounded-md":"_rounded-md_x1jdl_1","rounded-sm":"_rounded-sm_x1jdl_1","!rounded-l-none":"_!rounded-l-none_x1jdl_1","!rounded-r-none":"_!rounded-r-none_x1jdl_1","rounded-b-lg":"_rounded-b-lg_x1jdl_1","rounded-t-lg":"_rounded-t-lg_x1jdl_1","rounded-t-md":"_rounded-t-md_x1jdl_1","!border-0":"_!border-0_x1jdl_1",border:"_border_x1jdl_1","border-b":"_border-b_x1jdl_1","border-l":"_border-l_x1jdl_1","border-l-0":"_border-l-0_x1jdl_1","border-r":"_border-r_x1jdl_1","border-solid":"_border-solid_x1jdl_1","border-dashed":"_border-dashed_x1jdl_1","border-none":"_border-none_x1jdl_1","border-blue-600":"_border-blue-600_x1jdl_1","border-blue-700":"_border-blue-700_x1jdl_1","border-gray-200":"_border-gray-200_x1jdl_1","border-gray-300":"_border-gray-300_x1jdl_1","border-slate-200":"_border-slate-200_x1jdl_1","bg-black":"_bg-black_x1jdl_1","bg-blue-200":"_bg-blue-200_x1jdl_1","bg-blue-600":"_bg-blue-600_x1jdl_1","bg-emerald-200":"_bg-emerald-200_x1jdl_1","bg-gray-100":"_bg-gray-100_x1jdl_1","bg-gray-200":"_bg-gray-200_x1jdl_1","bg-gray-400":"_bg-gray-400_x1jdl_1","bg-gray-500":"_bg-gray-500_x1jdl_1","bg-green-200":"_bg-green-200_x1jdl_1","bg-green-300":"_bg-green-300_x1jdl_1","bg-green-900":"_bg-green-900_x1jdl_1","bg-red-200":"_bg-red-200_x1jdl_1","bg-red-300":"_bg-red-300_x1jdl_1","bg-red-900":"_bg-red-900_x1jdl_1","bg-sky-300":"_bg-sky-300_x1jdl_1","bg-sky-800":"_bg-sky-800_x1jdl_1","bg-slate-100":"_bg-slate-100_x1jdl_1","bg-slate-500":"_bg-slate-500_x1jdl_1","bg-slate-800":"_bg-slate-800_x1jdl_1","bg-slate-900":"_bg-slate-900_x1jdl_1","bg-transparent":"_bg-transparent_x1jdl_1","bg-white":"_bg-white_x1jdl_1","bg-yellow-300":"_bg-yellow-300_x1jdl_1","!bg-none":"_!bg-none_x1jdl_1","!p-2":"_!p-2_x1jdl_1","p-0":"_p-0_x1jdl_1","p-1":"_p-1_x1jdl_1","p-2":"_p-2_x1jdl_1","p-3":"_p-3_x1jdl_1","p-4":"_p-4_x1jdl_1","!py-0":"_!py-0_x1jdl_1","px-1":"_px-1_x1jdl_1","px-12":"_px-12_x1jdl_1","px-2":"_px-2_x1jdl_1","px-2.5":"_px-2.5_x1jdl_1","px-4":"_px-4_x1jdl_1","px-6":"_px-6_x1jdl_1","px-8":"_px-8_x1jdl_1","py-1":"_py-1_x1jdl_1","py-14":"_py-14_x1jdl_1","py-2":"_py-2_x1jdl_1","py-3":"_py-3_x1jdl_1","py-4":"_py-4_x1jdl_1","py-5":"_py-5_x1jdl_1","py-8":"_py-8_x1jdl_1","pl-1":"_pl-1_x1jdl_1","pt-3":"_pt-3_x1jdl_1","text-left":"_text-left_x1jdl_1","text-center":"_text-center_x1jdl_1","text-[.7rem]":"_text-[.7rem]_x1jdl_1","text-[1rem]":"_text-[1rem]_x1jdl_1","text-base":"_text-base_x1jdl_1","text-sm":"_text-sm_x1jdl_1","text-xs":"_text-xs_x1jdl_1","font-bold":"_font-bold_x1jdl_1","font-medium":"_font-medium_x1jdl_1","font-semibold":"_font-semibold_x1jdl_1",uppercase:"_uppercase_x1jdl_1","leading-[1.2rem]":"_leading-[1.2rem]_x1jdl_1","!text-green-900":"_!text-green-900_x1jdl_1","!text-red-900":"_!text-red-900_x1jdl_1","!text-sky-900":"_!text-sky-900_x1jdl_1","!text-white":"_!text-white_x1jdl_1","!text-yellow-900":"_!text-yellow-900_x1jdl_1","text-blue-600":"_text-blue-600_x1jdl_1","text-blue-900":"_text-blue-900_x1jdl_1","text-gray-300":"_text-gray-300_x1jdl_1","text-gray-400":"_text-gray-400_x1jdl_1","text-gray-500":"_text-gray-500_x1jdl_1","text-gray-600":"_text-gray-600_x1jdl_1","text-gray-700":"_text-gray-700_x1jdl_1","text-green-700":"_text-green-700_x1jdl_1","text-red-400":"_text-red-400_x1jdl_1","text-red-500":"_text-red-500_x1jdl_1","text-red-800":"_text-red-800_x1jdl_1","text-red-900":"_text-red-900_x1jdl_1","text-slate-200":"_text-slate-200_x1jdl_1","text-slate-300":"_text-slate-300_x1jdl_1","text-slate-50":"_text-slate-50_x1jdl_1","text-slate-500":"_text-slate-500_x1jdl_1","text-white":"_text-white_x1jdl_1","text-yellow-600":"_text-yellow-600_x1jdl_1","text-zinc-500":"_text-zinc-500_x1jdl_1","text-zinc-800":"_text-zinc-800_x1jdl_1","line-through":"_line-through_x1jdl_1","opacity-0":"_opacity-0_x1jdl_1","opacity-20":"_opacity-20_x1jdl_1","opacity-50":"_opacity-50_x1jdl_1","opacity-70":"_opacity-70_x1jdl_1","opacity-80":"_opacity-80_x1jdl_1","shadow-none":"_shadow-none_x1jdl_1","outline-none":"_outline-none_x1jdl_1",outline:"_outline_x1jdl_1","outline-offset-0":"_outline-offset-0_x1jdl_1",filter:"_filter_x1jdl_1",transition:"_transition_x1jdl_1","transition-all":"_transition-all_x1jdl_1","duration-300":"_duration-300_x1jdl_1","danx-app":"_danx-app_x1jdl_4","q-tab":"_q-tab_x1jdl_4","q-table__card":"_q-table__card_x1jdl_7","q-checkbox__inner":"_q-checkbox__inner_x1jdl_11","q-toolbar":"_q-toolbar_x1jdl_14","q-notification__actions":"_q-notification__actions_x1jdl_19","q-date":"_q-date_x1jdl_22","q-date__view":"_q-date__view_x1jdl_25","q-field":"_q-field_x1jdl_28","q-field--auto-height":"_q-field--auto-height_x1jdl_28","q-field__control":"_q-field__control_x1jdl_28","q-field__native":"_q-field__native_x1jdl_31","q-field--labeled":"_q-field--labeled_x1jdl_35","q-field__control-container":"_q-field__control-container_x1jdl_35","q-textarea":"_q-textarea_x1jdl_38","q-field__marginal":"_q-field__marginal_x1jdl_41","q-field__input":"_q-field__input_x1jdl_41","q-field__label":"_q-field__label_x1jdl_41","q-btn":"_q-btn_x1jdl_48","q-item":"_q-item_x1jdl_56","q-tab-panels":"_q-tab-panels_x1jdl_60","q-panel":"_q-panel_x1jdl_64",scroll:"_scroll_x1jdl_67","q-tab-panel":"_q-tab-panel_x1jdl_60","dx-dialog":"_dx-dialog_x1jdl_77","q-card__section--vert":"_q-card__section--vert_x1jdl_77","q-banner":"_q-banner_x1jdl_81",app:"_app_x1jdl_1","main-layout":"_main-layout_x1jdl_1","is-disabled":"_is-disabled_x1jdl_98","disable-all-transitions":"_disable-all-transitions_x1jdl_103","v-enter-active":"_v-enter-active_x1jdl_107","v-leave-active":"_v-leave-active_x1jdl_108","v-enter-from":"_v-enter-from_x1jdl_112","v-leave-to":"_v-leave-to_x1jdl_113","dx-action-table":"_dx-action-table_x1jdl_117","dx-column-shrink":"_dx-column-shrink_x1jdl_117","handle-drop-zone":"_handle-drop-zone_x1jdl_121","resize-handle":"_resize-handle_x1jdl_121","hover:bg-blue-200":"_hover:bg-blue-200_x1jdl_1","hover:bg-gray-200":"_hover:bg-gray-200_x1jdl_1","hover:bg-green-100":"_hover:bg-green-100_x1jdl_1","hover:bg-red-100":"_hover:bg-red-100_x1jdl_1","hover:bg-red-200":"_hover:bg-red-200_x1jdl_1","hover:bg-slate-200":"_hover:bg-slate-200_x1jdl_1","hover:bg-slate-300":"_hover:bg-slate-300_x1jdl_1","hover:bg-slate-600":"_hover:bg-slate-600_x1jdl_1","hover:text-blue-500":"_hover:text-blue-500_x1jdl_1","hover:text-blue-600":"_hover:text-blue-600_x1jdl_1","hover:opacity-100":"_hover:opacity-100_x1jdl_1","hover:opacity-20":"_hover:opacity-20_x1jdl_1","hover:opacity-70":"_hover:opacity-70_x1jdl_1","hover:outline-4":"_hover:outline-4_x1jdl_1","focus:bg-blue-200":"_focus:bg-blue-200_x1jdl_1","focus:outline-4":"_focus:outline-4_x1jdl_1","focus:outline-blue-200":"_focus:outline-blue-200_x1jdl_1",group:"_group_x1jdl_1","group-hover:opacity-100":"_group-hover:opacity-100_x1jdl_1"}}]]),db={key:0,class:"text-zinc-800 cursor-not-allowed"},fb={class:"font-semibold text-sm ml-5 py-3 flex-grow"},hb={key:1,class:"flex items-center"},js={__name:"ColumnListItem",props:{locked:Boolean,visible:Boolean,isTitle:Boolean,column:{type:Object,required:!0}},emits:["visible","is-title"],setup(t){return(e,n)=>{const r=i.resolveComponent("QTooltip");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center w-full",{"cursor-not-allowed":t.locked}])},[t.locked?(i.openBlock(),i.createElementBlock("a",db,[i.createVNode(i.unref(fp),{class:"w-4"})])):i.createCommentVNode("",!0),i.createElementVNode("div",fb,i.toDisplayString(t.column.label),1),t.locked?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",hb,[i.createElementVNode("a",{class:"py-2 px-1",onClick:n[0]||(n[0]=o=>e.$emit("visible",!t.visible))},[t.visible?(i.openBlock(),i.createBlock(i.unref(up),{key:0,class:"w-4"})):(i.openBlock(),i.createBlock(i.unref(cp),{key:1,class:"w-4 text-zinc-800"}))]),i.createElementVNode("a",{class:"py-2 px-1",onClick:n[1]||(n[1]=o=>e.$emit("is-title",!t.isTitle))},[i.createVNode(i.unref(ym),{class:i.normalizeClass(["w-4",t.isTitle?"":"text-gray-400"])},null,8,["class"]),i.createVNode(r,null,{default:i.withCtx(()=>[t.isTitle?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("Remove from priority list")],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode("Add to priority list")],64))]),_:1})])]))],2)}}},_b=i.createElementVNode("div",{class:"mb-4 text-sm"}," Customize columns by visibility, order, or priority (maximum 3 additional). ",-1),mb={__name:"ColumnSettingsDialog",props:{hiddenColumnNames:{type:Array,required:!0},titleColumnNames:{type:Array,required:!0},lockedColumns:{type:Array,required:!0},sortableColumns:{type:Array,required:!0},titleColumnLimit:{type:Number,default:3}},emits:["close","update:hidden-column-names","update:title-column-names","update:sortable-columns"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>r.titleColumnNames.length<r.titleColumnLimit);function s(u){return!r.hiddenColumnNames.includes(u.name)}function l(u,d){let f=[...r.hiddenColumnNames];d&&f.includes(u.name)?f=Rr(f,u.name):f.push(u.name),n("update:hidden-column-names",[...new Set(f)])}function a(u){return r.titleColumnNames.includes(u.name)}function c(u,d){let f=[...r.titleColumnNames];if(d&&!f.includes(u.name)){if(!o.value){Ve.warning(`You can only have ${r.titleColumnLimit} priority columns.`);return}f.push(u.name)}else f=Rr(f,u.name);n("update:title-column-names",[...new Set(f)])}return(u,d)=>(i.openBlock(),i.createBlock(i.unref(Qa),{title:"Column Settings",onClose:d[1]||(d[1]=f=>u.$emit("close"))},{default:i.withCtx(()=>[_b,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.lockedColumns,f=>(i.openBlock(),i.createBlock(i.unref(js),{key:f.name,locked:"",visible:"",column:f,class:"px-2.5 border border-gray-200 bg-white rounded-t-lg"},null,8,["column"]))),128)),i.createVNode(i.unref(mc),{name:"fade-down-list","data-drop-zone":"column-list"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.sortableColumns,(f,h)=>(i.openBlock(),i.createBlock(i.unref(Du),{key:f.name,"list-items":t.sortableColumns,"drop-zone":"column-list",class:i.normalizeClass(["px-2 border border-gray-200 bg-white",{"rounded-b-lg":h===t.sortableColumns.length-1}]),"show-handle":"","onUpdate:listItems":d[0]||(d[0]=_=>u.$emit("update:sortable-columns",_))},{default:i.withCtx(()=>[i.createVNode(i.unref(js),{column:f,visible:s(f),"is-title":a(f),onVisible:_=>l(f,_),onIsTitle:_=>c(f,_)},null,8,["column","visible","is-title","onVisible","onIsTitle"])]),_:2},1032,["list-items","class"]))),128))]),_:1})]),_:1}))}},Mu={__name:"TitleColumnFormat",props:{row:{type:Object,required:!0},columns:{type:Array,required:!0}},setup(t){function e(n,r){return typeof r=="function"?r(n):n}return(n,r)=>(i.openBlock(),i.createElementBlock("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.columns,o=>(i.openBlock(),i.createElementBlock("div",{key:o.name,class:"overflow-hidden overflow-ellipsis text-xs text-gray-400"},i.toDisplayString(e(t.row[o.name],o.format)),1))),128))]))}},pb={"pointer-events-none":"_pointer-events-none_anhw9_1","!visible":"_!visible_anhw9_1",visible:"_visible_anhw9_1",collapse:"_collapse_anhw9_1",static:"_static_anhw9_1",absolute:"_absolute_anhw9_1",relative:"_relative_anhw9_1",sticky:"_sticky_anhw9_1","left-0":"_left-0_anhw9_1","right-0":"_right-0_anhw9_1","right-1":"_right-1_anhw9_1","top-0":"_top-0_anhw9_1","top-1":"_top-1_anhw9_1","z-10":"_z-10_anhw9_1","m-2":"_m-2_anhw9_1","m-4":"_m-4_anhw9_1","m-auto":"_m-auto_anhw9_1","mx-1":"_mx-1_anhw9_1","mx-4":"_mx-4_anhw9_1","mx-auto":"_mx-auto_anhw9_1","my-2":"_my-2_anhw9_1","!mr-1":"_!mr-1_anhw9_1","mb-2":"_mb-2_anhw9_1","mb-4":"_mb-4_anhw9_1","ml-1":"_ml-1_anhw9_1","ml-2":"_ml-2_anhw9_1","ml-2.5":"_ml-2.5_anhw9_1","ml-3":"_ml-3_anhw9_1","ml-4":"_ml-4_anhw9_1","ml-5":"_ml-5_anhw9_1","ml-[-.2em]":"_ml-[-.2em]_anhw9_1","mr-1":"_mr-1_anhw9_1","mr-2":"_mr-2_anhw9_1","mr-3":"_mr-3_anhw9_1","mr-4":"_mr-4_anhw9_1","mt-1":"_mt-1_anhw9_1","mt-2":"_mt-2_anhw9_1","mt-3":"_mt-3_anhw9_1","mt-4":"_mt-4_anhw9_1",block:"_block_anhw9_1","inline-block":"_inline-block_anhw9_1",inline:"_inline_anhw9_1",flex:"_flex_anhw9_1",table:"_table_anhw9_1",hidden:"_hidden_anhw9_1","h-10":"_h-10_anhw9_1","h-16":"_h-16_anhw9_1","h-4":"_h-4_anhw9_1","h-5":"_h-5_anhw9_1","h-6":"_h-6_anhw9_1","h-8":"_h-8_anhw9_1","h-[2.25rem]":"_h-[2.25rem]_anhw9_1","h-full":"_h-full_anhw9_1","max-h-full":"_max-h-full_anhw9_1","min-h-10":"_min-h-10_anhw9_1","w-10":"_w-10_anhw9_1","w-16":"_w-16_anhw9_1","w-2/5":"_w-2/5_anhw9_1","w-24":"_w-24_anhw9_1","w-3":"_w-3_anhw9_1","w-3/5":"_w-3/5_anhw9_1","w-32":"_w-32_anhw9_1","w-4":"_w-4_anhw9_1","w-48":"_w-48_anhw9_1","w-5":"_w-5_anhw9_1","w-6":"_w-6_anhw9_1","w-7":"_w-7_anhw9_1","w-72":"_w-72_anhw9_1","w-8":"_w-8_anhw9_1","w-96":"_w-96_anhw9_1","w-[13.5rem]":"_w-[13.5rem]_anhw9_1","w-[6.5rem]":"_w-[6.5rem]_anhw9_1","w-[80rem]":"_w-[80rem]_anhw9_1","w-full":"_w-full_anhw9_1","!min-w-0":"_!min-w-0_anhw9_1","min-w-10":"_min-w-10_anhw9_1","max-w-full":"_max-w-full_anhw9_1","flex-shrink":"_flex-shrink_anhw9_1","flex-shrink-0":"_flex-shrink-0_anhw9_1",shrink:"_shrink_anhw9_1","flex-grow":"_flex-grow_anhw9_1",grow:"_grow_anhw9_1","rotate-180":"_rotate-180_anhw9_1",transform:"_transform_anhw9_1","cursor-ew-resize":"_cursor-ew-resize_anhw9_1","cursor-move":"_cursor-move_anhw9_1","cursor-not-allowed":"_cursor-not-allowed_anhw9_1","cursor-ns-resize":"_cursor-ns-resize_anhw9_1","cursor-pointer":"_cursor-pointer_anhw9_1",resize:"_resize_anhw9_1","flex-col":"_flex-col_anhw9_1","flex-nowrap":"_flex-nowrap_anhw9_1","items-center":"_items-center_anhw9_1","items-stretch":"_items-stretch_anhw9_1","justify-start":"_justify-start_anhw9_1","justify-end":"_justify-end_anhw9_1","justify-center":"_justify-center_anhw9_1","justify-between":"_justify-between_anhw9_1","gap-x-4":"_gap-x-4_anhw9_1","gap-y-0":"_gap-y-0_anhw9_1","gap-y-1":"_gap-y-1_anhw9_1","space-x-1":"_space-x-1_anhw9_1","space-x-2":"_space-x-2_anhw9_1","self-center":"_self-center_anhw9_1","overflow-auto":"_overflow-auto_anhw9_1","overflow-hidden":"_overflow-hidden_anhw9_1","overflow-y-auto":"_overflow-y-auto_anhw9_73","overflow-x-hidden":"_overflow-x-hidden_anhw9_1","scroll-smooth":"_scroll-smooth_anhw9_1","overflow-ellipsis":"_overflow-ellipsis_anhw9_1","whitespace-normal":"_whitespace-normal_anhw9_1","whitespace-nowrap":"_whitespace-nowrap_anhw9_1",rounded:"_rounded_anhw9_1","rounded-2xl":"_rounded-2xl_anhw9_1","rounded-lg":"_rounded-lg_anhw9_1","rounded-md":"_rounded-md_anhw9_1","rounded-sm":"_rounded-sm_anhw9_1","!rounded-l-none":"_!rounded-l-none_anhw9_1","!rounded-r-none":"_!rounded-r-none_anhw9_1","rounded-b-lg":"_rounded-b-lg_anhw9_1","rounded-t-lg":"_rounded-t-lg_anhw9_1","rounded-t-md":"_rounded-t-md_anhw9_1","!border-0":"_!border-0_anhw9_1",border:"_border_anhw9_1","border-b":"_border-b_anhw9_1","border-l":"_border-l_anhw9_1","border-l-0":"_border-l-0_anhw9_1","border-r":"_border-r_anhw9_1","border-solid":"_border-solid_anhw9_1","border-dashed":"_border-dashed_anhw9_1","border-none":"_border-none_anhw9_1","border-blue-600":"_border-blue-600_anhw9_1","border-blue-700":"_border-blue-700_anhw9_1","border-gray-200":"_border-gray-200_anhw9_1","border-gray-300":"_border-gray-300_anhw9_1","border-slate-200":"_border-slate-200_anhw9_1","bg-black":"_bg-black_anhw9_1","bg-blue-200":"_bg-blue-200_anhw9_1","bg-blue-600":"_bg-blue-600_anhw9_1","bg-emerald-200":"_bg-emerald-200_anhw9_1","bg-gray-100":"_bg-gray-100_anhw9_1","bg-gray-200":"_bg-gray-200_anhw9_1","bg-gray-400":"_bg-gray-400_anhw9_1","bg-gray-500":"_bg-gray-500_anhw9_1","bg-green-200":"_bg-green-200_anhw9_1","bg-green-300":"_bg-green-300_anhw9_1","bg-green-900":"_bg-green-900_anhw9_1","bg-red-200":"_bg-red-200_anhw9_1","bg-red-300":"_bg-red-300_anhw9_1","bg-red-900":"_bg-red-900_anhw9_1","bg-sky-300":"_bg-sky-300_anhw9_1","bg-sky-800":"_bg-sky-800_anhw9_1","bg-slate-100":"_bg-slate-100_anhw9_1","bg-slate-500":"_bg-slate-500_anhw9_1","bg-slate-800":"_bg-slate-800_anhw9_1","bg-slate-900":"_bg-slate-900_anhw9_1","bg-transparent":"_bg-transparent_anhw9_1","bg-white":"_bg-white_anhw9_1","bg-yellow-300":"_bg-yellow-300_anhw9_1","!bg-none":"_!bg-none_anhw9_1","!p-2":"_!p-2_anhw9_1","p-0":"_p-0_anhw9_1","p-1":"_p-1_anhw9_1","p-2":"_p-2_anhw9_1","p-3":"_p-3_anhw9_1","p-4":"_p-4_anhw9_1","!py-0":"_!py-0_anhw9_1","px-1":"_px-1_anhw9_1","px-12":"_px-12_anhw9_1","px-2":"_px-2_anhw9_1","px-2.5":"_px-2.5_anhw9_1","px-4":"_px-4_anhw9_1","px-6":"_px-6_anhw9_1","px-8":"_px-8_anhw9_1","py-1":"_py-1_anhw9_1","py-14":"_py-14_anhw9_1","py-2":"_py-2_anhw9_1","py-3":"_py-3_anhw9_1","py-4":"_py-4_anhw9_1","py-5":"_py-5_anhw9_1","py-8":"_py-8_anhw9_1","pl-1":"_pl-1_anhw9_1","pt-3":"_pt-3_anhw9_1","text-left":"_text-left_anhw9_1","text-center":"_text-center_anhw9_1","text-[.7rem]":"_text-[.7rem]_anhw9_1","text-[1rem]":"_text-[1rem]_anhw9_1","text-base":"_text-base_anhw9_1","text-sm":"_text-sm_anhw9_1","text-xs":"_text-xs_anhw9_1","font-bold":"_font-bold_anhw9_1","font-medium":"_font-medium_anhw9_1","font-semibold":"_font-semibold_anhw9_1",uppercase:"_uppercase_anhw9_1","leading-[1.2rem]":"_leading-[1.2rem]_anhw9_1","!text-green-900":"_!text-green-900_anhw9_1","!text-red-900":"_!text-red-900_anhw9_1","!text-sky-900":"_!text-sky-900_anhw9_1","!text-white":"_!text-white_anhw9_1","!text-yellow-900":"_!text-yellow-900_anhw9_1","text-blue-600":"_text-blue-600_anhw9_1","text-blue-900":"_text-blue-900_anhw9_1","text-gray-300":"_text-gray-300_anhw9_1","text-gray-400":"_text-gray-400_anhw9_1","text-gray-500":"_text-gray-500_anhw9_1","text-gray-600":"_text-gray-600_anhw9_1","text-gray-700":"_text-gray-700_anhw9_1","text-green-700":"_text-green-700_anhw9_1","text-red-400":"_text-red-400_anhw9_1","text-red-500":"_text-red-500_anhw9_1","text-red-800":"_text-red-800_anhw9_1","text-red-900":"_text-red-900_anhw9_1","text-slate-200":"_text-slate-200_anhw9_1","text-slate-300":"_text-slate-300_anhw9_1","text-slate-50":"_text-slate-50_anhw9_1","text-slate-500":"_text-slate-500_anhw9_1","text-white":"_text-white_anhw9_1","text-yellow-600":"_text-yellow-600_anhw9_1","text-zinc-500":"_text-zinc-500_anhw9_1","text-zinc-800":"_text-zinc-800_anhw9_1","line-through":"_line-through_anhw9_1","opacity-0":"_opacity-0_anhw9_1","opacity-20":"_opacity-20_anhw9_1","opacity-50":"_opacity-50_anhw9_1","opacity-70":"_opacity-70_anhw9_1","opacity-80":"_opacity-80_anhw9_1","shadow-none":"_shadow-none_anhw9_1","outline-none":"_outline-none_anhw9_1",outline:"_outline_anhw9_1","outline-offset-0":"_outline-offset-0_anhw9_1",filter:"_filter_anhw9_1",transition:"_transition_anhw9_1","transition-all":"_transition-all_anhw9_1","duration-300":"_duration-300_anhw9_1","danx-app":"_danx-app_anhw9_4","q-tab":"_q-tab_anhw9_4","q-table__card":"_q-table__card_anhw9_7","q-checkbox__inner":"_q-checkbox__inner_anhw9_11","q-toolbar":"_q-toolbar_anhw9_14","q-notification__actions":"_q-notification__actions_anhw9_19","q-date":"_q-date_anhw9_22","q-date__view":"_q-date__view_anhw9_25","q-field":"_q-field_anhw9_28","q-field--auto-height":"_q-field--auto-height_anhw9_28","q-field__control":"_q-field__control_anhw9_28","q-field__native":"_q-field__native_anhw9_31","q-field--labeled":"_q-field--labeled_anhw9_35","q-field__control-container":"_q-field__control-container_anhw9_35","q-textarea":"_q-textarea_anhw9_38","q-field__marginal":"_q-field__marginal_anhw9_41","q-field__input":"_q-field__input_anhw9_41","q-field__label":"_q-field__label_anhw9_41","q-btn":"_q-btn_anhw9_48","q-item":"_q-item_anhw9_56","q-tab-panels":"_q-tab-panels_anhw9_60","q-panel":"_q-panel_anhw9_64",scroll:"_scroll_anhw9_67","q-tab-panel":"_q-tab-panel_anhw9_60","dx-dialog":"_dx-dialog_anhw9_77","q-card__section--vert":"_q-card__section--vert_anhw9_77","q-banner":"_q-banner_anhw9_81",app:"_app_anhw9_1","main-layout":"_main-layout_anhw9_1","is-disabled":"_is-disabled_anhw9_98","disable-all-transitions":"_disable-all-transitions_anhw9_103","v-enter-active":"_v-enter-active_anhw9_107","v-leave-active":"_v-leave-active_anhw9_108","v-enter-from":"_v-enter-from_anhw9_112","v-leave-to":"_v-leave-to_anhw9_113","dx-action-table":"_dx-action-table_anhw9_117","dx-column-shrink":"_dx-column-shrink_anhw9_117","category-toggle":"_category-toggle_anhw9_121","has-visible-columns":"_has-visible-columns_anhw9_124","hover:bg-blue-200":"_hover:bg-blue-200_anhw9_1","hover:bg-gray-200":"_hover:bg-gray-200_anhw9_1","hover:bg-green-100":"_hover:bg-green-100_anhw9_1","hover:bg-red-100":"_hover:bg-red-100_anhw9_1","hover:bg-red-200":"_hover:bg-red-200_anhw9_1","hover:bg-slate-200":"_hover:bg-slate-200_anhw9_1","hover:bg-slate-300":"_hover:bg-slate-300_anhw9_1","hover:bg-slate-600":"_hover:bg-slate-600_anhw9_1","hover:text-blue-500":"_hover:text-blue-500_anhw9_1","hover:text-blue-600":"_hover:text-blue-600_anhw9_1","hover:opacity-100":"_hover:opacity-100_anhw9_1","hover:opacity-20":"_hover:opacity-20_anhw9_1","hover:opacity-70":"_hover:opacity-70_anhw9_1","hover:outline-4":"_hover:outline-4_anhw9_1","focus:bg-blue-200":"_focus:bg-blue-200_anhw9_1","focus:outline-4":"_focus:outline-4_anhw9_1","focus:outline-blue-200":"_focus:outline-blue-200_anhw9_1",group:"_group_anhw9_1","group-hover:opacity-100":"_group-hover:opacity-100_anhw9_1"},gb={class:"flex items-center flex-nowrap"},yb=["onClick"],bb={class:"text-xs"},wb=ht({__name:"VisibleColumnsToggleButtons",props:{columns:{type:Array,required:!0},hiddenColumnNames:{type:Array,required:!0}},emits:["update:hidden-column-names"],setup(t,{emit:e}){const n=e,r=t,o=i.ref(""),s=i.computed(()=>[...new Set(r.columns.map(_=>_.category)).values()]);function l(_){return r.columns.filter(p=>p.category===_)}function a(_){return l(_).filter(p=>!p.required).map(p=>p.name).some(p=>!r.hiddenColumnNames.includes(p))}function c(_){let p=l(_).filter(g=>!g.required);const m=p.filter(g=>!r.hiddenColumnNames.includes(g.name));return m.length===0?!1:m.length===p.length?!0:null}function u(_,p){_=_.filter(g=>!g.required);let m=[...r.hiddenColumnNames];p?m=m.filter(g=>!_.map(k=>k.name).includes(g)):m=[...new Set([...m,..._.map(g=>g.name)])],n("update:hidden-column-names",m)}function d(_,p){if(r.columns.find(g=>g.name===_).required)return;p=p??r.hiddenColumnNames.includes(_);let m=[...r.hiddenColumnNames];p?m=Rr(m,_):(m.push(_),m=[...new Set(m)]),n("update:hidden-column-names",m)}const f=i.useCssModule();function h(_){return f["category-toggle"]+(a(_)?" "+f["has-visible-columns"]:"")}return(_,p)=>{const m=i.resolveComponent("QCheckbox"),g=i.resolveComponent("QList"),k=i.resolveComponent("QMenu");return i.openBlock(),i.createElementBlock("div",gb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,y=>(i.openBlock(),i.createElementBlock("div",{key:y,class:i.normalizeClass(h(y))},[i.createVNode(m,{"toggle-indeterminate":"",size:"20px","model-value":c(y),class:"mr-2 cb-white-border",onClick:w=>u(l(y),!a(y))},null,8,["model-value","onClick"]),i.createElementVNode("div",null,i.toDisplayString(y),1),i.createVNode(i.unref(Pa),{class:i.normalizeClass(["ml-2 w-5 transition-all",{"rotate-180":o.value===y}])},null,8,["class"]),i.createVNode(k,{"onUpdate:modelValue":w=>o.value=w?y:""},{default:i.withCtx(()=>[i.createVNode(g,null,{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l(y),w=>(i.openBlock(),i.createElementBlock("div",{key:w,class:"flex items-center flex-nowrap px-2 py-3 cursor-pointer",onClick:C=>d(w.name)},[i.createVNode(m,{"model-value":!t.hiddenColumnNames.includes(w.name),class:"mr-3 cb-white-border",size:"20px",color:w.required?"gray-400":"blue-600",disable:w.required,onClick:C=>d(w.name)},null,8,["model-value","color","disable","onClick"]),i.createElementVNode("div",bb,i.toDisplayString(w.label),1)],8,yb))),128))]),_:2},1024)]),_:2},1032,["onUpdate:modelValue"])],2))),128))])}}},[["__cssModules",{$style:pb}]]);function Lu(t){i.onMounted(()=>{const e=t.value.$el.getElementsByClassName("q-table__middle")[0];e.addEventListener("scroll",n);function n({target:r}){r.scrollTop>0?e.classList.add("is-scrolling-y"):e.classList.remove("is-scrolling-y"),r.scrollLeft>0?e.classList.add("is-scrolling-x"):e.classList.remove("is-scrolling-x")}})}function vu(t,e){if(!t.sortBy)return null;const n=e.find(r=>r.name===t.sortBy);return n?[{column:n.sortBy||n.name,expression:n.sortByExpression||void 0,order:t.descending?"desc":"asc"}]:null}function Vu(t,e=null){const n={},r=x1("filter",t);if(r){const o=JSON.parse(r);Object.keys(o).forEach(s=>{(!e||e.includes(s))&&(n[s]=o[s])})}return n}function kb(t,e){let n=!1;const r=`dx-${t}-pager`,o=i.shallowRef(null),s=i.ref({}),l=i.ref({}),a=i.ref(!1),c=i.shallowRef([]),u=i.ref(!1),d=i.ref(!1),f=i.shallowRef(null),h=i.shallowRef(null),_=i.shallowRef(""),p=i.ref({}),m=i.ref(!1),g=i.computed(()=>Object.keys(s.value).filter($=>s.value[$]!==void 0).length),k={__sort:null,sortBy:null,descending:!1,page:0,rowsNumber:0,rowsPerPage:50},y=i.shallowRef(k),w=i.computed(()=>({perPage:y.value.rowsPerPage,page:y.value.page,filter:{...s.value,...l.value},sort:y.value.__sort||void 0}));i.watch(w,()=>{Pn(),C()}),i.watch(s,()=>{Pn(),T()}),i.watch(c,T),e.refreshFilters&&i.watch(s,E);async function C(){if(!(!n||e.isListEnabled===!1)){u.value=!0;try{N(await e.routes.list(w.value))}catch{}finally{u.value=!1}}}async function T(){if(!e.routes.summary||!n||e.isSummaryEnabled===!1)return;d.value=!0;const $={id:null,...s.value,...l.value};c.value.length&&($.id=c.value.map(M=>M.id));try{f.value=await e.routes.summary($)}catch{}finally{d.value=!1}}async function b(){await Promise.all([C(),T()])}function x($){return p.value[$]||[]}async function E(){if(!(!e.routes.fieldOptions||e.isFieldOptionsEnabled===!1)){m.value=!0;try{p.value=await e.routes.fieldOptions(s.value)||{}}catch{}finally{m.value=!1}}}function B($,M=null){var z;if(e.urlPattern&&$.match(e.urlPattern)){const xe=(z=M==null?void 0:M.value)==null?void 0:z.map(Ze=>Ze.fields.map(Vi=>Vi.name)).flat(),Oe=Vu($,xe);Object.keys(Oe).length>0&&(s.value=Oe,te("filter",s.value))}}function N($){let M=[],z;Array.isArray($)?(M=$,z={total:$.length}):$.data&&(M=$.data,z=$.meta),z&&z.total!==y.value.rowsNumber&&(y.value.rowsNumber=z.total),M=M.map(xe=>(xe.isSaving=xe.isSaving===void 0?!1:xe.isSaving,ye(xe))),o.value={data:M,meta:z}}function I(){y.value=k}function A($){y.value={...y.value,...$}}function R($){c.value=$}function K(){c.value=[]}async function le($,M=void 0){var z,xe,Oe;if(!e.routes.more||e.isListEnabled===!1)return!1;try{const Ze=await e.routes.more({page:$+1,perPage:M,filter:{...s.value,...l.value}});if(Ze&&Ze.length>0)return N({data:[...((z=o.value)==null?void 0:z.data)||[],...Ze],meta:{total:((Oe=(xe=o.value)==null?void 0:xe.meta)==null?void 0:Oe.total)||0}}),!0}catch{}return!1}async function P(){return Promise.all([C(),T(),E(),Lt()])}function te($,M){const z=St(r)||{};z[$]=M,Mt(r,z)}function we(){const $=St(r);$?(s.value={...$.filter,...s.value},y.value=$.pagination):s.value={...e.filterDefaults,...s.value},setTimeout(()=>{u.value||C(),d.value||T(),m.value||E()},1)}async function Pn(){const $={filter:s.value,pagination:{...y.value,page:1}};Mt(r,$)}async function Lt(){try{const M=await Ys("active-item",async()=>{if(!(!h.value||!e.routes.details||e.isDetailsEnabled===!1))return await e.routes.details(h.value)})();if(M===void 0)return;if(!M||!M.__type||!M.id)return console.error("Invalid response from details route: All responses must include a __type and id field. result =",M);h.value=ye(M)}catch{}}e.routes.details&&i.watch(()=>h.value,async($,M)=>{$!=null&&$.id&&(M==null?void 0:M.id)!=$.id&&await Lt()});function nn($,M=""){var z;($==null?void 0:$.id)==((z=h.value)==null?void 0:z.id)&&M===_.value||(Ct($),_.value=M,$!=null&&$.id&&E1({id:$.id,panel:M}))}function Ct($){h.value=$&&ye($),$!=null&&$.id||E1({})}async function vi($){var Ze,Vi;if(!((Ze=o.value)!=null&&Ze.data))return;const M=o.value.data.findIndex(qi=>{var po;return qi.id===((po=h.value)==null?void 0:po.id)});if(M==null)return;const z=M+$,Oe=await Ys("getNextItem",async()=>{var qi,po,N1;return(qi=o.value)!=null&&qi.data?z<0?y.value.page>1?(y.value={...y.value,page:y.value.page-1},await Ws(u,!1),o.value.data.length-1):-1:z>=o.value.data.length?y.value.page<(((N1=(po=o.value)==null?void 0:po.meta)==null?void 0:N1.last_page)||1)?(y.value={...y.value,page:y.value.page+1},await Ws(u,!1),0):-1:z:-1})();Oe!==void 0&&Oe>=0&&(h.value=(Vi=o.value)==null?void 0:Vi.data[Oe])}function ft($){s.value=$||{}}async function vt($){e.routes.export&&await e.routes.export($)}function v4($){e={...e,...$}}function V4($){const M=B1();if(n=!0,$&&(e={...e,...$}),we(),e.routes.details){const{params:z,meta:xe,name:Oe}=M.currentRoute.value;Oe===t&&(M.afterEach(Ze=>{Ze.name===Oe&&T1(Ze.params,Ze.meta)}),T1(z,xe))}}function E1($){const M=B1();let{name:z}=M.currentRoute.value;if(z=Array.isArray(z)?z[0]:z,!z){console.error("No route name found for list controls",t);return}const xe=M.resolve({name:z,params:$}).href,Oe=M.currentRoute.value.fullPath;Oe!==xe&&!Oe.startsWith(xe)&&M.push({name:z,params:$})}function T1($,M){const z=Array.isArray($==null?void 0:$.id)?$.id[0]:$==null?void 0:$.id;if(z&&M.type){const xe=Array.isArray($==null?void 0:$.panel)?$.panel[0]:$==null?void 0:$.panel;nn({id:z,__type:""+M.type},xe||_.value||"")}}function B1(){if(!oe.value.router)throw new Error("Vue Router must be configured in danxOptions");return oe.value.router}return{name:t,label:e.label||t,pagedItems:o,activeFilter:s,globalFilter:l,filterActiveCount:g,showFilters:a,summary:f,selectedRows:c,isLoadingList:u,isLoadingFilters:m,isLoadingSummary:d,pager:w,pagination:y,activeItem:h,activePanel:_,initialize:V4,setOptions:v4,resetPaging:I,setPagination:A,setSelectedRows:R,clearSelectedRows:K,loadList:C,loadSummary:T,loadListAndSummary:b,loadMore:le,loadFieldOptions:E,getActiveItemDetails:Lt,refreshAll:P,exportList:vt,setActiveItem:Ct,getNextItem:vi,activatePanel:nn,setActiveFilter:ft,applyFilterFromUrl:B,getFieldOptions:x}}const xb={key:1,class:"mt-2"},Sb={class:"text-xs font-bold"},Cb=i.createElementVNode("div",{class:"text-sm ml-3 py-2"}," No Available Options ",-1),zs=i.defineComponent({__name:"FilterableField",props:{field:{},modelValue:{},loading:{type:Boolean}},emits:["update:model-value"],setup(t,{emit:e}){const n=e,r=t;function o(s){let l=s||void 0;switch(r.field.type){case"multi-select":l=s&&s.length>0?s:void 0;break;case"single-select":case"boolean":l=s===null?void 0:s;break}n("update:model-value",l)}return(s,l)=>{var a;return i.openBlock(),i.createElementBlock("div",null,[s.field.type==="text"?(i.openBlock(),i.createBlock(i.unref(on),{key:0,"model-value":s.modelValue,label:s.field.label,placeholder:s.field.placeholder,debounce:1e3,"onUpdate:modelValue":o},null,8,["model-value","label","placeholder"])):s.field.type==="multi-select"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[((a=s.field.options)==null?void 0:a.length)>0||s.loading?(i.openBlock(),i.createBlock(i.unref(Mn),{key:0,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,multiple:"",loading:s.loading,"chip-limit":1,filterable:"",placeholder:s.field.placeholder,label:s.field.label,"onUpdate:modelValue":o},null,8,["model-value","options","clearable","loading","placeholder","label"])):(i.openBlock(),i.createElementBlock("div",xb,[i.createElementVNode("div",Sb,i.toDisplayString(s.field.label),1),Cb]))],64)):s.field.type==="single-select"?(i.openBlock(),i.createBlock(i.unref(Mn),{key:2,"model-value":s.modelValue,options:s.field.options,clearable:s.field.clearable===void 0?!0:s.field.clearable,placeholder:s.field.placeholder,loading:s.loading,label:s.field.label,"onUpdate:modelValue":o},null,8,["model-value","options","clearable","placeholder","loading","label"])):s.field.type==="date"?(i.openBlock(),i.createBlock(i.unref(Zi),{key:3,"model-value":s.modelValue,label:s.field.label,clearable:s.field.clearable===void 0?!0:s.field.clearable,class:"mt-2","onUpdate:modelValue":o},null,8,["model-value","label","clearable"])):s.field.type==="date-range"?(i.openBlock(),i.createBlock(i.unref(Wi),{key:4,"model-value":s.modelValue,label:s.field.label,inline:!!s.field.inline,clearable:s.field.clearable===void 0?!0:s.field.clearable,"with-time":"",class:"mt-2 reactive","onUpdate:modelValue":o},null,8,["model-value","label","inline","clearable"])):s.field.type==="number-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:5,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,"onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="currency-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:6,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,currency:"","onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="percent-range"?(i.openBlock(),i.createBlock(i.unref(bo),{key:7,"model-value":s.modelValue,label:s.field.label,class:"mt-2",debounce:1e3,percent:"","onUpdate:modelValue":o},null,8,["model-value","label"])):s.field.type==="boolean"?(i.openBlock(),i.createBlock(i.unref(Hi),{key:8,field:s.field,"model-value":s.modelValue,class:"mt-2","toggle-indeterminate":s.field.toggleIndeterminate||!1,"label-class":"text-xs font-bold","onUpdate:modelValue":o},null,8,["field","model-value","toggle-indeterminate"])):s.field.type==="multi-keywords"?(i.openBlock(),i.createBlock(i.unref(ec),{key:9,"model-value":s.modelValue,field:s.field,"onUpdate:modelValue":o},null,8,["model-value","field"])):s.field.type==="select-with-children"?(i.openBlock(),i.createBlock(i.unref(tc),{key:10,"model-value":s.modelValue,options:s.field.options,loading:s.loading,label:s.field.label,placeholder:s.field.placeholder,"onUpdate:modelValue":o},null,8,["model-value","options","loading","label","placeholder"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:11},[i.createTextVNode(' Field "'+i.toDisplayString(s.field.name)+'": Unknown filter type '+i.toDisplayString(s.field.type),1)],64))])}}}),Eb={class:"flex items-center flex-nowrap flex-grow"},Tb={class:"whitespace-nowrap flex-grow text-left text-sm font-bold"},qu={__name:"FilterItem",props:{name:{type:String,required:!0},count:{type:Number,required:!0}},setup(t){return(e,n)=>{const r=i.resolveComponent("QBadge"),o=i.resolveComponent("QExpansionItem");return i.openBlock(),i.createBlock(o,null,{header:i.withCtx(()=>[i.createElementVNode("div",Eb,[i.createElementVNode("div",Tb,i.toDisplayString(t.name),1),i.createVNode(r,{label:t.count,rounded:"",class:i.normalizeClass(["ml-2 transition-all",{"bg-gray-400":!t.count,"bg-blue-600":t.count}])},null,8,["label","class"])])]),default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3})}}},Bb={class:"px-4 py-2 max-w-full"},Ru={__name:"FilterList",props:{filters:{type:Array,required:!0},activeFilter:{type:Object,required:!0},loading:Boolean},emits:["update:filter"],setup(t,{emit:e}){const n=e,r=t,o=i.computed(()=>{const l={};for(const a of r.filters)l[a.name]=a.fields.filter(c=>r.activeFilter[c.name]!==void 0).length;return l});function s(l,a){let c={[l.name]:a};l.filterBy&&(c=l.filterBy(a)),n("update:filter",{...r.activeFilter,...c})}return(l,a)=>{const c=i.resolveComponent("QSeparator"),u=i.resolveComponent("QList");return i.openBlock(),i.createBlock(u,null,{default:i.withCtx(()=>[i.createElementVNode("div",Bb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.filters,(d,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:"group-"+d.name},[d.flat?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(d.fields,h=>(i.openBlock(),i.createBlock(i.unref(zs),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128)):(i.openBlock(),i.createBlock(i.unref(qu),{key:1,name:d.name,count:o.value[d.name]},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.fields,h=>(i.openBlock(),i.createBlock(i.unref(zs),{key:"field-"+h.name,"model-value":h.calcValue?h.calcValue(t.activeFilter):t.activeFilter[h.name],field:h,loading:t.loading,class:"mb-4","onUpdate:modelValue":_=>s(h,_)},null,8,["model-value","field","loading","onUpdate:modelValue"]))),128))]),_:2},1032,["name","count"])),f<t.filters.length-1?(i.openBlock(),i.createBlock(c,{key:2,class:"my-2"})):i.createCommentVNode("",!0)],64))),128))])]),_:1})}}},Uu=i.defineComponent({__name:"CollapsableFiltersSidebar",props:{name:{},showFilters:{type:Boolean},activeFilter:{},minWidth:{default:"5rem"},maxWidth:{default:"18rem"},filters:{default:()=>[]}},emits:["update:active-filter","update:show-filters"],setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(dc),{class:"dx-collapsable-filters-sidebar",collapse:!e.showFilters,disabled:"","min-width":e.minWidth,"max-width":e.maxWidth,name:e.name,"onUpdate:collapse":n[1]||(n[1]=r=>e.$emit("update:show-filters",!r))},{default:i.withCtx(()=>[i.createVNode(i.unref(Ru),{"active-filter":e.activeFilter,filters:e.filters,"onUpdate:filter":n[0]||(n[0]=r=>e.$emit("update:active-filter",r))},null,8,["active-filter","filters"])]),_:1},8,["collapse","min-width","max-width","name"]))}}),Nb={class:"flex-grow"},ju=ht({__name:"FilterListToggle",props:{filter:{type:Object,required:!0},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t){const e=t,n=i.computed(()=>Object.keys(e.filter).filter(r=>e.filter[r]!==void 0).length);return(r,o)=>{const s=i.resolveComponent("QBadge"),l=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["flex items-center transition-all",{"w-72":t.showFilters,"w-[6.5rem]":!t.showFilters}])},[i.createElementVNode("div",Nb,[i.createVNode(l,{class:i.normalizeClass(["btn-blue-highlight border-blue-700",{highlighted:t.showFilters}]),onClick:o[0]||(o[0]=a=>r.$emit("update:show-filters",!t.showFilters))},{default:i.withCtx(()=>[i.createVNode(i.unref(va),{class:"w-5 mr-2"}),i.createVNode(s,{label:""+n.value,rounded:"",color:n.value>0?"blue-600":"gray-400"},null,8,["label","color"])]),_:1},8,["class"])]),n.value>0&&t.showFilters?(i.openBlock(),i.createElementBlock("a",{key:0,class:"text-blue-600 hover:text-blue-500 text-sm ml-4",onClick:o[1]||(o[1]=a=>r.$emit("update:filter",{}))},"Clear All")):i.createCommentVNode("",!0)],2)}}},[["__scopeId","data-v-a0bc1dac"]]),Ib={class:"w-full flex justify-end items-center flex-nowrap border-b"},$b={class:"flex-grow"},Fb={key:0,class:"flex justify-end items-stretch flex-nowrap p-4"},Ab={__name:"FilterToolbarLayout",props:{filter:{type:Object,default:null},showFilters:Boolean},emits:["update:show-filters","update:filter"],setup(t,{emit:e}){const n=e,r=t;function o(){n("update:show-filters",!r.showFilters)}return(s,l)=>(i.openBlock(),i.createElementBlock("div",Ib,[i.createVNode(i.unref(ju),{"show-filters":t.showFilters,filter:t.filter,class:"border-r p-4 flex-shrink-0","onUpdate:showFilters":o,"onUpdate:filter":l[0]||(l[0]=a=>s.$emit("update:filter",a))},null,8,["show-filters","filter"]),i.createElementVNode("div",$b,[i.renderSlot(s.$slots,"default")]),s.$slots["right-side"]?(i.openBlock(),i.createElementBlock("div",Fb,[s.$slots.default?(i.openBlock(),i.createBlock(i.unref(J.QSeparator),{key:0,vertical:"",class:"mx-4 h-10 self-center"})):i.createCommentVNode("",!0),i.renderSlot(s.$slots,"right-side")])):i.createCommentVNode("",!0)]))}},zu=i.defineComponent({__name:"PanelsDrawerPanels",props:{activePanel:{},activeItem:{},panels:{}},setup(t){return(e,n)=>{const r=i.resolveComponent("QTabPanel"),o=i.resolveComponent("QTabPanels");return i.openBlock(),i.createBlock(o,{"model-value":e.activePanel,class:"dx-panels-drawer-panels overflow-y-auto h-full transition-all"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.panels,s=>(i.openBlock(),i.createBlock(r,{key:s.name,name:s.name},{default:i.withCtx(()=>[s.vnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:0,vnode:s.vnode,props:e.activeItem},null,8,["vnode","props"])):i.createCommentVNode("",!0)]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])}}}),Hu=ht(i.defineComponent({__name:"PanelsDrawerTabs",props:{modelValue:{default:"general"},target:{},panels:{}},emits:["update:model-value"],setup(t){const e=t;function n(r){return r.enabled===void 0?!0:r.enabled?typeof r.enabled=="function"?r.enabled(e.target):!0:!1}return(r,o)=>{const s=i.resolveComponent("QTabs");return i.openBlock(),i.createBlock(s,{class:i.normalizeClass(["dx-panels-drawer-tabs overflow-y-auto",r.cls["panel-tabs"]]),"model-value":r.modelValue,vertical:"",align:"left","no-caps":"","onUpdate:modelValue":o[0]||(o[0]=l=>r.$emit("update:model-value",l))},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.panels,l=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[n(l)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[l.tabVnode?(i.openBlock(),i.createBlock(i.unref(ln),{key:l.name,vnode:l.tabVnode(r.target,r.modelValue),"is-active":r.modelValue===l.name,name:l.name,label:l.label},null,8,["vnode","is-active","name","label"])):(i.openBlock(),i.createBlock(i.unref(J.QTab),{key:l.name,name:l.name,label:l.label},null,8,["name","label"]))],64)):i.createCommentVNode("",!0)],64))),256))]),_:1},8,["model-value","class"])}}}),[["__cssModules",{cls:{"pointer-events-none":"_pointer-events-none_1shkc_1","!visible":"_!visible_1shkc_1",visible:"_visible_1shkc_1",collapse:"_collapse_1shkc_1",static:"_static_1shkc_1",absolute:"_absolute_1shkc_1",relative:"_relative_1shkc_1",sticky:"_sticky_1shkc_1","left-0":"_left-0_1shkc_1","right-0":"_right-0_1shkc_1","right-1":"_right-1_1shkc_1","top-0":"_top-0_1shkc_1","top-1":"_top-1_1shkc_1","z-10":"_z-10_1shkc_1","m-2":"_m-2_1shkc_1","m-4":"_m-4_1shkc_1","m-auto":"_m-auto_1shkc_1","mx-1":"_mx-1_1shkc_1","mx-4":"_mx-4_1shkc_1","mx-auto":"_mx-auto_1shkc_1","my-2":"_my-2_1shkc_1","!mr-1":"_!mr-1_1shkc_1","mb-2":"_mb-2_1shkc_1","mb-4":"_mb-4_1shkc_1","ml-1":"_ml-1_1shkc_1","ml-2":"_ml-2_1shkc_1","ml-2.5":"_ml-2.5_1shkc_1","ml-3":"_ml-3_1shkc_1","ml-4":"_ml-4_1shkc_1","ml-5":"_ml-5_1shkc_1","ml-[-.2em]":"_ml-[-.2em]_1shkc_1","mr-1":"_mr-1_1shkc_1","mr-2":"_mr-2_1shkc_1","mr-3":"_mr-3_1shkc_1","mr-4":"_mr-4_1shkc_1","mt-1":"_mt-1_1shkc_1","mt-2":"_mt-2_1shkc_1","mt-3":"_mt-3_1shkc_1","mt-4":"_mt-4_1shkc_1",block:"_block_1shkc_1","inline-block":"_inline-block_1shkc_1",inline:"_inline_1shkc_1",flex:"_flex_1shkc_1",table:"_table_1shkc_1",hidden:"_hidden_1shkc_1","h-10":"_h-10_1shkc_1","h-16":"_h-16_1shkc_1","h-4":"_h-4_1shkc_1","h-5":"_h-5_1shkc_1","h-6":"_h-6_1shkc_1","h-8":"_h-8_1shkc_1","h-[2.25rem]":"_h-[2.25rem]_1shkc_1","h-full":"_h-full_1shkc_1","max-h-full":"_max-h-full_1shkc_1","min-h-10":"_min-h-10_1shkc_1","w-10":"_w-10_1shkc_1","w-16":"_w-16_1shkc_1","w-2/5":"_w-2/5_1shkc_1","w-24":"_w-24_1shkc_1","w-3":"_w-3_1shkc_1","w-3/5":"_w-3/5_1shkc_1","w-32":"_w-32_1shkc_1","w-4":"_w-4_1shkc_1","w-48":"_w-48_1shkc_1","w-5":"_w-5_1shkc_1","w-6":"_w-6_1shkc_1","w-7":"_w-7_1shkc_1","w-72":"_w-72_1shkc_1","w-8":"_w-8_1shkc_1","w-96":"_w-96_1shkc_1","w-[13.5rem]":"_w-[13.5rem]_1shkc_1","w-[6.5rem]":"_w-[6.5rem]_1shkc_1","w-[80rem]":"_w-[80rem]_1shkc_1","w-full":"_w-full_1shkc_1","!min-w-0":"_!min-w-0_1shkc_1","min-w-10":"_min-w-10_1shkc_1","max-w-full":"_max-w-full_1shkc_1","flex-shrink":"_flex-shrink_1shkc_1","flex-shrink-0":"_flex-shrink-0_1shkc_1",shrink:"_shrink_1shkc_1","flex-grow":"_flex-grow_1shkc_1",grow:"_grow_1shkc_1","rotate-180":"_rotate-180_1shkc_1",transform:"_transform_1shkc_1","cursor-ew-resize":"_cursor-ew-resize_1shkc_1","cursor-move":"_cursor-move_1shkc_1","cursor-not-allowed":"_cursor-not-allowed_1shkc_1","cursor-ns-resize":"_cursor-ns-resize_1shkc_1","cursor-pointer":"_cursor-pointer_1shkc_1",resize:"_resize_1shkc_1","flex-col":"_flex-col_1shkc_1","flex-nowrap":"_flex-nowrap_1shkc_1","items-center":"_items-center_1shkc_1","items-stretch":"_items-stretch_1shkc_1","justify-start":"_justify-start_1shkc_1","justify-end":"_justify-end_1shkc_1","justify-center":"_justify-center_1shkc_1","justify-between":"_justify-between_1shkc_1","gap-x-4":"_gap-x-4_1shkc_1","gap-y-0":"_gap-y-0_1shkc_1","gap-y-1":"_gap-y-1_1shkc_1","space-x-1":"_space-x-1_1shkc_1","space-x-2":"_space-x-2_1shkc_1","self-center":"_self-center_1shkc_1","overflow-auto":"_overflow-auto_1shkc_1","overflow-hidden":"_overflow-hidden_1shkc_1","overflow-y-auto":"_overflow-y-auto_1shkc_73","overflow-x-hidden":"_overflow-x-hidden_1shkc_1","scroll-smooth":"_scroll-smooth_1shkc_1","overflow-ellipsis":"_overflow-ellipsis_1shkc_1","whitespace-normal":"_whitespace-normal_1shkc_1","whitespace-nowrap":"_whitespace-nowrap_1shkc_1",rounded:"_rounded_1shkc_1","rounded-2xl":"_rounded-2xl_1shkc_1","rounded-lg":"_rounded-lg_1shkc_1","rounded-md":"_rounded-md_1shkc_1","rounded-sm":"_rounded-sm_1shkc_1","!rounded-l-none":"_!rounded-l-none_1shkc_1","!rounded-r-none":"_!rounded-r-none_1shkc_1","rounded-b-lg":"_rounded-b-lg_1shkc_1","rounded-t-lg":"_rounded-t-lg_1shkc_1","rounded-t-md":"_rounded-t-md_1shkc_1","!border-0":"_!border-0_1shkc_1",border:"_border_1shkc_1","border-b":"_border-b_1shkc_1","border-l":"_border-l_1shkc_1","border-l-0":"_border-l-0_1shkc_1","border-r":"_border-r_1shkc_1","border-solid":"_border-solid_1shkc_1","border-dashed":"_border-dashed_1shkc_1","border-none":"_border-none_1shkc_1","border-blue-600":"_border-blue-600_1shkc_1","border-blue-700":"_border-blue-700_1shkc_1","border-gray-200":"_border-gray-200_1shkc_1","border-gray-300":"_border-gray-300_1shkc_1","border-slate-200":"_border-slate-200_1shkc_1","bg-black":"_bg-black_1shkc_1","bg-blue-200":"_bg-blue-200_1shkc_1","bg-blue-600":"_bg-blue-600_1shkc_1","bg-emerald-200":"_bg-emerald-200_1shkc_1","bg-gray-100":"_bg-gray-100_1shkc_1","bg-gray-200":"_bg-gray-200_1shkc_1","bg-gray-400":"_bg-gray-400_1shkc_1","bg-gray-500":"_bg-gray-500_1shkc_1","bg-green-200":"_bg-green-200_1shkc_1","bg-green-300":"_bg-green-300_1shkc_1","bg-green-900":"_bg-green-900_1shkc_1","bg-red-200":"_bg-red-200_1shkc_1","bg-red-300":"_bg-red-300_1shkc_1","bg-red-900":"_bg-red-900_1shkc_1","bg-sky-300":"_bg-sky-300_1shkc_1","bg-sky-800":"_bg-sky-800_1shkc_1","bg-slate-100":"_bg-slate-100_1shkc_1","bg-slate-500":"_bg-slate-500_1shkc_1","bg-slate-800":"_bg-slate-800_1shkc_1","bg-slate-900":"_bg-slate-900_1shkc_1","bg-transparent":"_bg-transparent_1shkc_1","bg-white":"_bg-white_1shkc_1","bg-yellow-300":"_bg-yellow-300_1shkc_1","!bg-none":"_!bg-none_1shkc_1","!p-2":"_!p-2_1shkc_1","p-0":"_p-0_1shkc_1","p-1":"_p-1_1shkc_1","p-2":"_p-2_1shkc_1","p-3":"_p-3_1shkc_1","p-4":"_p-4_1shkc_1","!py-0":"_!py-0_1shkc_1","px-1":"_px-1_1shkc_1","px-12":"_px-12_1shkc_1","px-2":"_px-2_1shkc_1","px-2.5":"_px-2.5_1shkc_1","px-4":"_px-4_1shkc_1","px-6":"_px-6_1shkc_1","px-8":"_px-8_1shkc_1","py-1":"_py-1_1shkc_1","py-14":"_py-14_1shkc_1","py-2":"_py-2_1shkc_1","py-3":"_py-3_1shkc_1","py-4":"_py-4_1shkc_1","py-5":"_py-5_1shkc_1","py-8":"_py-8_1shkc_1","pl-1":"_pl-1_1shkc_1","pt-3":"_pt-3_1shkc_1","text-left":"_text-left_1shkc_1","text-center":"_text-center_1shkc_1","text-[.7rem]":"_text-[.7rem]_1shkc_1","text-[1rem]":"_text-[1rem]_1shkc_1","text-base":"_text-base_1shkc_1","text-sm":"_text-sm_1shkc_1","text-xs":"_text-xs_1shkc_1","font-bold":"_font-bold_1shkc_1","font-medium":"_font-medium_1shkc_1","font-semibold":"_font-semibold_1shkc_1",uppercase:"_uppercase_1shkc_1","leading-[1.2rem]":"_leading-[1.2rem]_1shkc_1","!text-green-900":"_!text-green-900_1shkc_1","!text-red-900":"_!text-red-900_1shkc_1","!text-sky-900":"_!text-sky-900_1shkc_1","!text-white":"_!text-white_1shkc_1","!text-yellow-900":"_!text-yellow-900_1shkc_1","text-blue-600":"_text-blue-600_1shkc_1","text-blue-900":"_text-blue-900_1shkc_1","text-gray-300":"_text-gray-300_1shkc_1","text-gray-400":"_text-gray-400_1shkc_1","text-gray-500":"_text-gray-500_1shkc_1","text-gray-600":"_text-gray-600_1shkc_1","text-gray-700":"_text-gray-700_1shkc_1","text-green-700":"_text-green-700_1shkc_1","text-red-400":"_text-red-400_1shkc_1","text-red-500":"_text-red-500_1shkc_1","text-red-800":"_text-red-800_1shkc_1","text-red-900":"_text-red-900_1shkc_1","text-slate-200":"_text-slate-200_1shkc_1","text-slate-300":"_text-slate-300_1shkc_1","text-slate-50":"_text-slate-50_1shkc_1","text-slate-500":"_text-slate-500_1shkc_1","text-white":"_text-white_1shkc_1","text-yellow-600":"_text-yellow-600_1shkc_1","text-zinc-500":"_text-zinc-500_1shkc_1","text-zinc-800":"_text-zinc-800_1shkc_1","line-through":"_line-through_1shkc_1","opacity-0":"_opacity-0_1shkc_1","opacity-20":"_opacity-20_1shkc_1","opacity-50":"_opacity-50_1shkc_1","opacity-70":"_opacity-70_1shkc_1","opacity-80":"_opacity-80_1shkc_1","shadow-none":"_shadow-none_1shkc_1","outline-none":"_outline-none_1shkc_1",outline:"_outline_1shkc_1","outline-offset-0":"_outline-offset-0_1shkc_1",filter:"_filter_1shkc_1",transition:"_transition_1shkc_1","transition-all":"_transition-all_1shkc_1","duration-300":"_duration-300_1shkc_1","danx-app":"_danx-app_1shkc_4","q-tab":"_q-tab_1shkc_4","q-table__card":"_q-table__card_1shkc_7","q-checkbox__inner":"_q-checkbox__inner_1shkc_11","q-toolbar":"_q-toolbar_1shkc_14","q-notification__actions":"_q-notification__actions_1shkc_19","q-date":"_q-date_1shkc_22","q-date__view":"_q-date__view_1shkc_25","q-field":"_q-field_1shkc_28","q-field--auto-height":"_q-field--auto-height_1shkc_28","q-field__control":"_q-field__control_1shkc_28","q-field__native":"_q-field__native_1shkc_31","q-field--labeled":"_q-field--labeled_1shkc_35","q-field__control-container":"_q-field__control-container_1shkc_35","q-textarea":"_q-textarea_1shkc_38","q-field__marginal":"_q-field__marginal_1shkc_41","q-field__input":"_q-field__input_1shkc_41","q-field__label":"_q-field__label_1shkc_41","q-btn":"_q-btn_1shkc_48","q-item":"_q-item_1shkc_56","q-tab-panels":"_q-tab-panels_1shkc_60","q-panel":"_q-panel_1shkc_64",scroll:"_scroll_1shkc_67","q-tab-panel":"_q-tab-panel_1shkc_60","dx-dialog":"_dx-dialog_1shkc_77","q-card__section--vert":"_q-card__section--vert_1shkc_77","q-banner":"_q-banner_1shkc_81",app:"_app_1shkc_1","main-layout":"_main-layout_1shkc_1","is-disabled":"_is-disabled_1shkc_98","disable-all-transitions":"_disable-all-transitions_1shkc_103","v-enter-active":"_v-enter-active_1shkc_107","v-leave-active":"_v-leave-active_1shkc_108","v-enter-from":"_v-enter-from_1shkc_112","v-leave-to":"_v-leave-to_1shkc_113","dx-action-table":"_dx-action-table_1shkc_117","dx-column-shrink":"_dx-column-shrink_1shkc_117","panel-tabs":"_panel-tabs_1shkc_121","hover:bg-blue-200":"_hover:bg-blue-200_1shkc_1","hover:bg-gray-200":"_hover:bg-gray-200_1shkc_1","hover:bg-green-100":"_hover:bg-green-100_1shkc_1","hover:bg-red-100":"_hover:bg-red-100_1shkc_1","hover:bg-red-200":"_hover:bg-red-200_1shkc_1","hover:bg-slate-200":"_hover:bg-slate-200_1shkc_1","hover:bg-slate-300":"_hover:bg-slate-300_1shkc_1","hover:bg-slate-600":"_hover:bg-slate-600_1shkc_1","hover:text-blue-500":"_hover:text-blue-500_1shkc_1","hover:text-blue-600":"_hover:text-blue-600_1shkc_1","hover:opacity-100":"_hover:opacity-100_1shkc_1","hover:opacity-20":"_hover:opacity-20_1shkc_1","hover:opacity-70":"_hover:opacity-70_1shkc_1","hover:outline-4":"_hover:outline-4_1shkc_1","focus:bg-blue-200":"_focus:bg-blue-200_1shkc_1","focus:outline-4":"_focus:outline-4_1shkc_1","focus:outline-blue-200":"_focus:outline-blue-200_1shkc_1",group:"_group_1shkc_1","group-hover:opacity-100":"_group-hover:opacity-100_1shkc_1"}}]]),Ob={class:"flex flex-col flex-nowrap h-full"},Db={class:"dx-panels-drawer-header flex items-center px-6 py-4"},Pb={class:"flex-grow"},Mb={key:0},Lb={key:1},vb={key:0,class:"mr-4"},Vb={class:"dx-panels-drawer-body flex-grow overflow-hidden h-full"},qb={key:0,class:"flex items-stretch flex-nowrap h-full"},Rb={key:0,class:"border-l overflow-y-auto"},Gu=i.defineComponent({__name:"PanelsDrawer",props:{title:{default:""},modelValue:{default:null},target:{},tabsClass:{default:"w-[13.5rem] flex-shrink-0"},panelsClass:{default:"w-[80rem]"},position:{default:"right"},panels:{}},emits:["update:model-value","close"],setup(t){const e=t,n=i.ref(e.modelValue),r=i.computed(()=>e.panels.find(o=>o.name===n.value));return i.watch(()=>e.modelValue,o=>n.value=o),i.onMounted(()=>{!n.value&&e.panels.length&&(n.value=e.panels[0].name)}),(o,s)=>{const l=i.resolveComponent("QSpinnerHourglass"),a=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(i.unref(Xi),{position:o.position,show:"",overlay:"","content-class":"h-full",class:"dx-panels-drawer",title:"","no-route-dismiss":"","onUpdate:show":s[3]||(s[3]=c=>o.$emit("close"))},{default:i.withCtx(()=>{var c;return[i.createElementVNode("div",Ob,[i.createElementVNode("div",Db,[i.createElementVNode("div",Pb,[i.renderSlot(o.$slots,"header",{},()=>[o.title?(i.openBlock(),i.createElementBlock("h2",Mb,i.toDisplayString(o.title),1)):i.createCommentVNode("",!0),o.target?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",Lb,[i.createTextVNode(" Loading "),i.createVNode(l)]))])]),o.$slots.controls?(i.openBlock(),i.createElementBlock("div",vb,[i.renderSlot(o.$slots,"controls")])):i.createCommentVNode("",!0),i.createElementVNode("div",null,[i.createVNode(a,{class:"dx-close-button",onClick:s[0]||(s[0]=u=>o.$emit("close"))},{default:i.withCtx(()=>[i.createVNode(i.unref(yo),{class:"w-4"})]),_:1})])]),i.createElementVNode("div",Vb,[o.target.__timestamp>0?(i.openBlock(),i.createElementBlock("div",qb,[(i.openBlock(),i.createBlock(i.unref(Hu),{key:"pd-tabs:"+o.target.id,modelValue:n.value,"onUpdate:modelValue":[s[1]||(s[1]=u=>n.value=u),s[2]||(s[2]=u=>o.$emit("update:model-value",u))],target:o.target,class:i.normalizeClass(o.tabsClass),panels:o.panels},null,8,["modelValue","target","class","panels"])),(i.openBlock(),i.createBlock(i.unref(zu),{key:"pd-panels:"+o.target.id,panels:o.panels,"active-panel":n.value,"active-item":o.target,class:i.normalizeClass(((c=r.value)==null?void 0:c.class)||o.panelsClass)},null,8,["panels","active-panel","active-item","class"])),o.$slots["right-sidebar"]?(i.openBlock(),i.createElementBlock("div",Rb,[i.renderSlot(o.$slots,"right-sidebar")])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)])])]}),_:3},8,["position"])}}}),Ub={class:"flex items-center justify-center text-sm py-14 w-full"},jb={key:0},zb={key:1},Zu={__name:"EmptyTableState",props:{loading:Boolean,saving:Boolean,text:{type:String,default:"No records found"},loadingText:{type:String,default:"Loading..."},savingText:{type:String,default:"Saving..."}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ub,[t.loading?(i.openBlock(),i.createElementBlock("div",jb,[i.renderSlot(e.$slots,"loading",{},()=>[i.createTextVNode(i.toDisplayString(t.loadingText)+" ",1),i.createVNode(i.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):i.createCommentVNode("",!0),t.saving?(i.openBlock(),i.createElementBlock("div",zb,[i.renderSlot(e.$slots,"saving",{},()=>[i.createTextVNode(i.toDisplayString(t.savingText)+" ",1),i.createVNode(i.unref(J.QSpinnerBall),{class:"w-4 ml-2"})])])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(t.text),1)])]))}},Hb={class:"flex flex-nowrap items-center"},Gb={class:"relative"},Zb={class:"ml-2"},Wu=i.defineComponent({__name:"TableSummaryRow",props:{loading:{type:Boolean},label:{default:"Rows"},selectedLabel:{default:"Selected"},selectedCount:{default:0},itemCount:{default:0},summary:{default:null},columns:{},stickyColspan:{default:null}},emits:["clear"],setup(t){const e=t,n=i.computed(()=>{if(e.stickyColspan)return e.stickyColspan;if(e.summary)for(let s=0;s<e.columns.length;s++){const l=e.columns[s].field||e.columns[s].name;if(e.summary[l])return s+1}return e.columns.length+1}),r=i.computed(()=>e.columns.slice(n.value-1));function o(s){const l=e.summary&&e.summary[s.name];return l===void 0?"":s.format?s.format(l):l}return(s,l)=>(i.openBlock(),i.createBlock(i.unref(J.QTr),{class:i.normalizeClass(["dx-table-summary-tr sticky-column-1 transition-all sticky-row",{"has-selection":s.selectedCount,"is-loading":s.loading}])},{default:i.withCtx(()=>[i.createVNode(i.unref(J.QTd),{colspan:n.value,class:i.normalizeClass(["dx-table-summary-td dx-table-summary-count transition-all",{"has-selection":s.selectedCount}])},{default:i.withCtx(()=>[i.createElementVNode("div",Hb,[i.createElementVNode("div",Gb,[s.loading?(i.openBlock(),i.createBlock(i.unref(J.QSpinner),{key:0,class:"absolute top-0 left-0",size:"18"})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass([{"opacity-0":s.loading},"flex items-center nowrap"])},[s.selectedCount?(i.openBlock(),i.createBlock(i.unref(bm),{key:0,class:"w-6 mr-3 cursor-pointer",onClick:l[0]||(l[0]=a=>s.$emit("clear"))})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(Ot)(s.selectedCount||s.itemCount)),1)],2)]),i.createElementVNode("div",Zb,i.toDisplayString(s.selectedCount?s.selectedLabel:s.label),1)])]),_:1},8,["colspan","class"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,a=>(i.openBlock(),i.createBlock(i.unref(J.QTd),{key:a.name,align:a.align||"right",class:i.normalizeClass([a.summaryClass,"dx-table-summary-fd"])},{default:i.withCtx(()=>[s.summary?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass({"dx-summary-column-link":a.onClick})},i.toDisplayString(o(a)),3)):i.createCommentVNode("",!0)]),_:2},1032,["align","class"]))),128))]),_:1},8,["class"]))}}),Yu=ht(i.defineComponent({__name:"ActionTable",props:{name:{},label:{},color:{default:""},selectedRows:{},pagination:{},loadingList:{type:Boolean},loadingSummary:{type:Boolean,default:!1},pagedItems:{default:null},summary:{default:null},menuActions:{},columns:{},rowsPerPageOptions:{default:()=>[10,25,50,100]},summaryColSpan:{default:null},selection:{default:"multiple"}},emits:["update:selected-rows","update:pagination"],setup(t){const e=t,n=i.ref(null);Lu(n);const r=i.computed(()=>{var u;const c=[...e.columns].map(d=>({...d,field:d.field||d.name}));if((u=e.menuActions)!=null&&u.length){const d=c.find(h=>h.name==="menu"),f={name:"menu",label:"",required:!0,hideContent:!0,shrink:!0,actionMenu:e.menuActions};d?Object.assign(d,f):c.unshift(f)}return c}),o=i.computed(()=>{var c,u;return(u=(c=e.pagedItems)==null?void 0:c.data)==null?void 0:u.length}),s=`column-settings-${e.name}`,l=i.ref(St(s)||{});function a(){Mt(s,l.value)}return(c,u)=>{var d;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["dx-action-table overflow-hidden",{"dx-no-data":!o.value,"dx-is-loading":c.loadingList||c.loadingSummary,"dx-is-loading-list":c.loadingList}])},[i.createVNode(i.unref(J.QTable),{ref_key:"actionTable",ref:n,selected:c.selectedRows,pagination:c.pagination,columns:r.value,loading:c.loadingList||c.loadingSummary,rows:((d=c.pagedItems)==null?void 0:d.data)||[],"binary-state-sort":!1,selection:c.selection,"rows-per-page-options":c.rowsPerPageOptions,class:"sticky-column sticky-header w-full h-full !border-0",color:c.color,"onUpdate:selected":u[2]||(u[2]=f=>c.$emit("update:selected-rows",f)),"onUpdate:pagination":()=>{},onRequest:u[3]||(u[3]=f=>c.$emit("update:pagination",{...f.pagination,__sort:i.unref(vu)(f.pagination,r.value)}))},{"no-data":i.withCtx(()=>[i.renderSlot(c.$slots,"empty",{},()=>[i.createVNode(Zu,{text:`There are no ${c.label.toLowerCase()} matching the applied filter`},null,8,["text"])],!0)]),"top-row":i.withCtx(()=>{var f;return[o.value?(i.openBlock(),i.createBlock(Wu,{key:0,label:c.label,"item-count":((f=c.summary)==null?void 0:f.count)||0,"selected-count":c.selectedRows.length,"sticky-colspan":c.summaryColSpan,loading:c.loadingSummary,summary:c.summary,columns:r.value,onClear:u[0]||(u[0]=h=>c.$emit("update:selected-rows",[]))},null,8,["label","item-count","selected-count","sticky-colspan","loading","summary","columns"])):i.createCommentVNode("",!0)]}),"header-cell":i.withCtx(f=>[i.createVNode(i.unref(Pu),{modelValue:l.value,"onUpdate:modelValue":[u[1]||(u[1]=h=>l.value=h),a],"row-props":f,name:c.name},null,8,["modelValue","row-props","name"])]),"body-cell":i.withCtx(f=>[(i.openBlock(),i.createBlock(i.unref(Fu),{key:f.key,"row-props":f,settings:l.value[f.col.name]},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default",{columnName:f.col.name,row:f.row,value:f.value},void 0,!0)]),_:2},1032,["row-props","settings"]))]),_:3},8,["selected","pagination","columns","loading","rows","selection","rows-per-page-options","color"])],2)}}}),[["__scopeId","data-v-209b8084"]]),Wb={class:"dx-action-toolbar flex items-center"},Yb={class:"flex-grow px-6"},Qb={key:0},Kb={class:"py-3 flex items-center flex-nowrap"},Qu=i.defineComponent({__name:"ActionToolbar",props:{title:{},actions:{},actionTarget:{},createButton:{type:Boolean},refreshButton:{type:Boolean},loading:{type:Boolean},exporter:{type:Function}},emits:["refresh","create"],setup(t){return(e,n)=>{const r=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock("div",Wb,[i.createElementVNode("div",Yb,[i.renderSlot(e.$slots,"title",{},()=>[e.title?(i.openBlock(),i.createElementBlock("h4",Qb,i.toDisplayString(e.title),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",Kb,[i.renderSlot(e.$slots,"default"),e.createButton?(i.openBlock(),i.createBlock(r,{key:0,class:"bg-green-900 mr-4 px-4",onClick:n[0]||(n[0]=o=>e.$emit("create"))},{default:i.withCtx(()=>[i.createTextVNode(" Create ")]),_:1})):i.createCommentVNode("",!0),e.refreshButton?(i.openBlock(),i.createBlock(i.unref(Oa),{key:1,loading:e.loading,onClick:n[1]||(n[1]=o=>e.$emit("refresh"))},null,8,["loading"])):i.createCommentVNode("",!0),e.exporter?(i.openBlock(),i.createBlock(i.unref(Aa),{key:2,exporter:e.exporter,class:"ml-4"},null,8,["exporter"])):i.createCommentVNode("",!0),e.actions&&e.actions.length>0?(i.openBlock(),i.createBlock(i.unref(Rs),{key:3,class:"ml-4 dx-batch-actions",target:e.actionTarget,actions:e.actions},null,8,["target","actions"])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"after")])])}}}),Xb={class:"flex flex-grow flex-col flex-nowrap overflow-hidden h-full"},Jb={class:"flex flex-nowrap flex-grow overflow-hidden w-full"},ew=i.defineComponent({__name:"ActionTableLayout",props:{controller:{},exporter:{type:Function,default:void 0},hideToolbar:{type:Boolean},panelTitleField:{default:""},refreshButton:{type:Boolean},createButton:{type:Boolean},selection:{default:"multiple"},showFilters:{type:Boolean},tableClass:{default:""},title:{default:""}},setup(t){const e=t,n=i.computed(()=>e.controller.activeFilter.value),r=i.computed(()=>e.controller.activeItem.value),o=i.computed(()=>e.controller.activePanel.value||""),s=i.computed(()=>r.value?r.value[e.panelTitleField||"title"]||r.value.label||r.value.name||e.title+" "+r.value.id:null);return(l,a)=>(i.openBlock(),i.createElementBlock("div",Xb,[i.renderSlot(l.$slots,"top"),i.renderSlot(l.$slots,"toolbar",{},()=>[l.hideToolbar?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(i.unref(Qu),{key:0,title:l.title,"refresh-button":l.refreshButton,"create-button":l.createButton,actions:l.controller.batchActions,"action-target":l.controller.selectedRows.value,exporter:l.controller.exportList,loading:l.controller.isLoadingList.value||l.controller.isLoadingSummary.value,onRefresh:l.controller.refreshAll,onCreate:a[0]||(a[0]=c=>l.controller.action&&l.controller.action("create"))},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"action-toolbar")]),_:3},8,["title","refresh-button","create-button","actions","action-target","exporter","loading","onRefresh"]))]),i.createElementVNode("div",Jb,[i.renderSlot(l.$slots,"filters",{},()=>{var c;return[n.value?(i.openBlock(),i.createBlock(i.unref(Uu),{key:0,name:l.controller.name,"show-filters":l.showFilters,filters:(c=l.controller.filters)==null?void 0:c.value,"active-filter":n.value,class:"dx-action-table-filters","onUpdate:activeFilter":l.controller.setActiveFilter},null,8,["name","show-filters","filters","active-filter","onUpdate:activeFilter"])):i.createCommentVNode("",!0)]}),i.renderSlot(l.$slots,"default",{},()=>[i.createVNode(Yu,{class:i.normalizeClass(["flex-grow",l.tableClass]),pagination:l.controller.pagination.value,"selected-rows":l.controller.selectedRows.value,label:l.controller.label,name:l.controller.name,"menu-actions":l.controller.menuActions,summary:l.controller.summary.value,"loading-list":l.controller.isLoadingList.value,"loading-summary":l.controller.isLoadingSummary.value,"paged-items":l.controller.pagedItems.value,columns:l.controller.columns||[],selection:l.selection,"onUpdate:selectedRows":l.controller.setSelectedRows,"onUpdate:pagination":l.controller.setPagination},null,8,["pagination","selected-rows","label","name","class","menu-actions","summary","loading-list","loading-summary","paged-items","columns","selection","onUpdate:selectedRows","onUpdate:pagination"])]),i.renderSlot(l.$slots,"panels",{},()=>[r.value&&l.controller.panels?(i.openBlock(),i.createBlock(i.unref(Gu),{key:0,title:s.value,"model-value":o.value,target:r.value,panels:l.controller.panels,"onUpdate:modelValue":a[1]||(a[1]=c=>l.controller.activatePanel(r.value,c)),onClose:a[2]||(a[2]=c=>l.controller.setActiveItem(null))},{controls:i.withCtx(()=>[i.createVNode(i.unref(za),{"is-loading":l.controller.isLoadingList.value,onNext:l.controller.getNextItem},null,8,["is-loading","onNext"])]),_:1},8,["title","model-value","target","panels"])):i.createCommentVNode("",!0)])])]))}});function tw(t,e){const n=`${t}-column-order`,r=`${t}-visible-columns`,o=`${t}-title-columns`,s=i.ref(St(n)||[]),l=i.ref(St(r,[])),a=i.ref(St(o,[])),c=i.computed(()=>u.value.slice(0,1)),u=i.computed(()=>[...e].sort((_,p)=>{const m=s.value.indexOf(_.name),g=s.value.indexOf(p.name);return m===-1?1:g===-1?-1:m-g})),d=i.computed({get(){return u.value.slice(1)},set(_){s.value=[...c.value.map(p=>p.name),..._.map(p=>p.name)],Mt(n,s.value)}}),f=i.computed(()=>u.value.filter(_=>!l.value.includes(_.name))),h=i.computed(()=>u.value.filter(_=>a.value.includes(_.name)));return i.watch(()=>l.value,()=>Mt(r,l.value)),i.watch(()=>a.value,()=>Mt(o,a.value)),{sortableColumns:d,lockedColumns:c,visibleColumns:f,hiddenColumnNames:l,titleColumnNames:a,orderedTitleColumns:h}}const nw={class:"flex space-x-2"},rw=["innerHTML"],Hs={__name:"AuditHistoryItemValue",props:{type:{type:String,required:!0},value:{type:[Number,String,Array,Object,Boolean],default:null}},setup(t){const e=t;function n(r){if(r===null||r===""||r===void 0)return"";switch(e.type){case"NUMBER":return Ot(r);case"CURRENCY":return bi(r);case"DATE":return xt(r);case"DATETIME":return gr(r);case"BOOLEAN":return r?"Yes":"No"}return r}return(r,o)=>(i.openBlock(),i.createElementBlock("div",nw,[t.type==="SINGLE_FILE"?(i.openBlock(),i.createBlock(i.unref(Tr),{key:0,file:t.value,class:"w-24"},null,8,["file"])):t.type==="MULTI_FILE"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(t.value,s=>(i.openBlock(),i.createBlock(i.unref(Tr),{key:"file-"+s.id,file:s,class:"w-24 mb-2"},null,8,["file"]))),128)):t.type==="WYSIWYG"?(i.openBlock(),i.createElementBlock("div",{key:2,innerHTML:t.value},null,8,rw)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createTextVNode(i.toDisplayString(n(t.value)),1)],64))]))}},ow={class:"text-gray-700 flex items-stretch flex-nowrap p-4"},iw={class:"flex-grow text-sm w-3/5 overflow-auto"},sw={class:"flex flex-nowrap items-center mt-4"},lw={class:"bg-red-200 line-through p-2"},aw={class:"bg-emerald-200 ml-2.5 p-2"},cw={class:"ml-4 text-sm w-2/5"},uw=["href"],dw={__name:"AuditHistoryItem",props:{item:{type:Object,required:!0},change:{type:Object,required:!0},novaUrl:{type:String,default:"/nova"}},setup(t){const e=t,n=i.computed(()=>e.novaUrl+`/resources/audit-requests/${e.item.audit_request_id}`);return(r,o)=>(i.openBlock(),i.createElementBlock("div",ow,[i.createElementVNode("div",iw,[i.createElementVNode("h5",null,i.toDisplayString(t.change.label)+" ("+i.toDisplayString(t.change.name)+")",1),i.createElementVNode("div",sw,[i.createElementVNode("div",lw,[i.createVNode(i.unref(Hs),{type:t.change.type,value:t.change.oldValue},null,8,["type","value"])]),i.createElementVNode("div",aw,[i.createVNode(i.unref(Hs),{type:t.change.type,value:t.change.newValue},null,8,["type","value"])])])]),i.createElementVNode("div",cw,[t.item.user?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",null,i.toDisplayString(t.item.user.name),1),i.createElementVNode("div",null,i.toDisplayString(t.item.user.email),1)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",null,i.toDisplayString(t.item.account),1),i.createElementVNode("div",null,[t.item.audit_request_id?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,target:"_blank"},i.toDisplayString(i.unref(gr)(t.item.timestamp)),9,uw)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(i.unref(gr)(t.item.timestamp)),1)],64))])])]))}},fw=["href","target","onClick"],hw={key:0,class:"flex-shrink-0"},_w={__name:"NavigationMenu",props:{collapsed:Boolean,itemClass:{type:String,default:"hover:bg-gray-200"},activeClass:{type:String,default:"bg-blue-200"},items:{type:Array,required:!0}},setup(t){const e=t,n=oe.value.router,r=i.computed(()=>e.items.filter(a=>!a.hidden));function o(a){if(!n){console.error("Router is not available. Configure in danx options.");return}return typeof a.route=="function"?a.route():a.route}function s(a,c){!c.url&&!a.ctrlKey&&a.preventDefault(),!(c.disabled||a.ctrlKey)&&(c.onClick&&c.onClick(),c.route&&n.push(o(c)))}function l(a){var c;return a.url?a.url:a.route&&((c=n.resolve(o(a)))==null?void 0:c.href)||"#"}return(a,c)=>{const u=i.resolveComponent("QTooltip"),d=i.resolveComponent("QSeparator");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["p-4",{"is-collapsed":t.collapsed}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,f=>(i.openBlock(),i.createElementBlock("div",{key:"nav-item-"+f.label,class:"nav-menu-item-box"},[i.createElementVNode("a",{class:i.normalizeClass(["nav-menu-item flex flex-nowrap",f.class||t.itemClass]),href:l(f),target:f.target||"_self",onClick:h=>s(h,f)},[f.icon?(i.openBlock(),i.createElementBlock("div",hw,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.icon),{class:i.normalizeClass(["nav-icon",f.iconClass])},null,8,["class"]))])):i.createCommentVNode("",!0),t.collapsed?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["label ml-2",f.labelClass])},i.toDisplayString(f.label),3)),t.collapsed?(i.openBlock(),i.createBlock(u,i.normalizeProps(i.mergeProps({key:2},f.tooltip)),{default:i.withCtx(()=>{var h;return[i.createTextVNode(i.toDisplayString(((h=f.tooltip)==null?void 0:h.text)||f.label),1)]}),_:2},1040)):i.createCommentVNode("",!0)],10,fw),f.separator?(i.openBlock(),i.createBlock(d,{key:"separator-"+f.label,class:"my-2"})):i.createCommentVNode("",!0)]))),128))],2)}}},be=class be{static enable(e){be.success(e.successMsg),be.error(e.errorMsg),be.warning(e.warningMsg),i.watch(()=>e.successMsg,n=>be.success(n)),i.watch(()=>e.infoMsg,n=>be.info(n)),i.watch(()=>e.errorMsg,n=>be.error(n)),i.watch(()=>e.warningMsg,n=>be.warning(n))}static formatMessage(e){return e=e.replace(/\r\n|\r|\n/g,"<br/>"),e=e.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;"),e.replace(/<(\w+)([^>]*)>/g,"<b>$1$2</b>")}static send(e,n={}){var r;e&&(e=be.formatMessage(e),be.notify({message:e,timeout:1e4,classes:"bg-gray-500 text-white",position:"top",closeBtn:"X",...(r=oe.value.flashMessages)==null?void 0:r.default,...n}))}static success(e,n={}){var r;be.send(e,{classes:"bg-green-300 !text-green-900",icon:"check",...n,...(r=oe.value.flashMessages)==null?void 0:r.success})}static info(e,n={}){var r;be.send(e,{classes:"bg-sky-300 !text-sky-900",icon:"info",...n,...(r=oe.value.flashMessages)==null?void 0:r.info})}static error(e,n={}){var r;be.send(e,{classes:"bg-red-300 !text-red-900",icon:"error",...n,...(r=oe.value.flashMessages)==null?void 0:r.error})}static warning(e,n={}){var r;be.send(e,{classes:"bg-yellow-300 !text-yellow-900",icon:"warning",...n,...(r=oe.value.flashMessages)==null?void 0:r.warning})}static combine(e,n,r={}){const o=be[e];if(typeof o!="function")throw new Error(`FlashMessages.${e} is not a function`);o(n.map(s=>typeof s=="string"?s:s.message||s.Message).join("<br/>"),{...r,html:!0})}};G(be,"notify"),G(be,"PROP_DEFINITIONS",{successMsg:{type:String,default:""},infoMsg:{type:String,default:""},errorMsg:{type:String,default:""},warningMsg:{type:String,default:""}});let Ve=be;const mw=new Ve,Gs=new Map;function pw(t){for(const e in t)t[e]&&typeof t[e]=="object"&&(t[e]=ye(t[e]));return t}function ye(t,e={}){if(typeof t!="object")return t;const n=(t==null?void 0:t.id)||(t==null?void 0:t.name),r=t==null?void 0:t.__type;if(!n||!r)return i.shallowReactive(t);t.__id||(t.__id=J.uid()),t.__timestamp||(t.__timestamp=t.updated_at||0);const o=`${r}:${n}`;if(e[o])return e[o];const s=Gs.get(o);if(s&&t.__timestamp<s.__timestamp)return e[o]=s,s;const l=s||i.shallowReactive(t);e[o]=l;for(const a of Object.keys(t)){const c=t[a];if(Array.isArray(c)&&c.length>0)for(const u in c)c[u]&&typeof c[u]=="object"&&(t[a][u]=ye(c[u],e));else c!=null&&c.__type&&(t[a]=ye(c,e))}return Object.assign(l,t),s||Gs.set(o,l),l.__deleted_at&&gw(l),l}function gw(t){for(const e of Gs.values())for(const n of Object.keys(e)){const r=e[n];if(Array.isArray(r)&&r.length>0){const o=r.findIndex(s=>s.__id===t.__id&&s.__type===t.__type);o!==-1&&(r.splice(o,1),e[n]=[...r])}}}const Ku={};async function Xu(t,e,n,r=3e3){if(!(t!=null&&t.id)||!(t!=null&&t.__type))throw new Error("Invalid stored object. Cannot auto-refresh");if(e(t)){const s=await n(t);if(!s.id)return Ve.error(`Failed to refresh ${t.__type} (${t.id}) status: `+t.name),null;ye(s)}const o=setTimeout(()=>Xu(t,e,n,r),r);Ku[t.__type+":"+t.id]=o}async function yw(t){const e=Ku[t.__type+":"+t.id];e&&clearTimeout(e)}const bn=i.shallowRef(null);function bw(t,e=null){const n=J.uid();function r(c,u,d){const h={...s(c),...d,id:u};return h.debounce?h.trigger=rn((_,p)=>a(h,_,p),h.debounce):h.trigger=(_,p)=>a(h,_,p),ye(h)}function o(c,u){const d=s(c);return ye({...d,...u})}function s(c,u){var h,_,p;let d=t.find(m=>m.name===c)||{name:c};u&&Object.assign(d,u),(!i.isReactive(d)||!("__type"in d))&&(d=ye({onAction:(h=e==null?void 0:e.routes)==null?void 0:h.applyAction,onBatchAction:(_=e==null?void 0:e.routes)==null?void 0:_.batchAction,onBatchSuccess:(p=e==null?void 0:e.controls)==null?void 0:p.clearSelectedRows,...e,...d,isApplying:!1,__type:"__Action:"+n}),t.splice(t.findIndex(m=>m.name===c),1,d));const f=i.shallowReactive({...d});return f.debounce?f.trigger=rn((m,g)=>a(f,m,g),f.debounce):f.trigger=(m,g)=>a(f,m,g),f}function l(c){const u=[];for(const d of c)u.push(s(d));return u}async function a(c,u=null,d=null){var p;typeof c=="string"&&(c=s(c));const f=c.alias?s(c.alias):null,h=c.vnode&&c.vnode(u,d);let _;if(!(c.onStart&&!c.onStart(c,u,d)))return Ju(u,!0),c.isApplying=!0,f&&(f.isApplying=!0),h?(_=await new Promise(m=>{bn.value={vnode:h,confirm:async g=>{let k;c.useInputFromConfirm===!1?k=d:c.useInputFromConfirm===!0?k=g:k={...d,...g};const y=await ed(c,u,k);(y===void 0||y===!0||y!=null&&y.success)&&m(y)},cancel:m}}),bn.value=null):_=await ed(c,u,d),_!=null&&_.abort||(c.isApplying=!1,Ju(u,!1),f&&(f.isApplying=!1),_!=null&&_.item&&(_.item=ye(_.item)),(p=_==null?void 0:_.result)!=null&&p.__type&&(_.result=ye(_.result))),_}return{getAction:s,getActions:l,action:a,modifyAction:o,extendAction:r}}function Ju(t,e){if(t){t=Array.isArray(t)?t:[t];for(const n of t)n.isSaving=e}}async function ed(t,e,n=null){if(!t.onAction)throw new Error("No onAction handler found for the selected action:"+t.name);const r=Array.isArray(e);let o;try{r?t.onBatchAction?o=await t.onBatchAction(t.alias||t.name,e,n):o={error:`Action ${t.name} does not support batch actions`}:(typeof t.optimistic=="function"?t.optimistic(t,e,n):t.optimistic&&ye({...e,...n}),o=await t.onAction(t.alias||t.name,e,n))}catch(s){(""+s).match(/Request was aborted/)?o={abort:!0}:(console.error(s),o={error:`An error occurred while performing the action ${t.label}. Please try again later.`})}if(o!=null&&o.abort)return o;if(o===void 0||o===!0||o!=null&&o.success)o&&o.item&&(o.item=ye(o.item)),o!=null&&o.success&&Array.isArray(e)&&Ve.success(`Successfully performed action ${t.label} on ${e.length} items`),t.onSuccess&&await t.onSuccess(o,e,n),r&&t.onBatchSuccess&&await t.onBatchSuccess(o,e,n);else{const s=[];if(o.errors)s.push(...o.errors);else if(o.error){let l=o.error;typeof o.error=="boolean"?l=o.message:typeof o.error=="object"?l=o.error.message:typeof o.error!="string"&&(l="An unknown error occurred. Please try again later."),s.push(l)}else s.push("An unexpected error occurred. Please try again later.");Ve.combine("error",s),t.onError&&await t.onError(o,e,n)}return t.onFinish&&await t.onFinish(o,e,n),o}function ww(t,e){return[{name:"create",label:"Create "+t,vnode:()=>i.h(Wa,{title:"Create "+t}),onFinish:e&&(n=>{e.activatePanel(n.item,"edit"),e.loadListAndSummary()})},{name:"update",optimistic:!0},{name:"update-debounced",alias:"update",debounce:1e3,optimistic:!0},{name:"copy",label:"Copy",icon:H1,onSuccess:e==null?void 0:e.loadListAndSummary},{name:"edit",label:"Edit",icon:Ri,onAction:(n,r)=>e==null?void 0:e.activatePanel(r,"edit")},{name:"delete",label:"Delete",class:"text-red-500",iconClass:"text-red-500",icon:_m,onFinish:e==null?void 0:e.loadListAndSummary,vnode:n=>i.h(Za,{action:"Delete",label:t,target:n,confirmClass:"bg-red-900"})}]}let td=!1;function kw(t){if(td)return;td=!0;const e=document.createElement("iframe");e.style.display="none",e.src=window.location.href,document.body.appendChild(e),e.onload=()=>{document.body.removeChild(e),t()}}function Zs(t,e,n=void 0,r=!1){const o=typeof e=="function"?t.findIndex(e):t.indexOf(e);if(o===!1||o===-1)return r?[...t,n]:t;const s=[...t];return n!==void 0?s.splice(o,1,n):s.splice(o,1),s}function Rr(t,e){return Zs(t,e)}function xw(t,e){return t.filter((n,r,o)=>r===o.findIndex(s=>e(n,s)))}function Ur(t){return new Promise(e=>setTimeout(e,t))}function Sw(t){return JSON.parse(JSON.stringify(t))}async function Cw(t,e=1e3){for(;!await t();)await Ur(e)}function Ws(t,e){return new Promise(n=>{i.watch(t,r=>{r===e&&n()})})}const Do={};function Ys(t,e){return Do[t]||(Do[t]=0),async function(...n){const r=++Do[t],o=await e(...n);if(r===Do[t])return o}}function Ew(t,e,n){return Math.max(t,Math.min(e,n))}function Tw(t){return t*621371e-9}function Bw(t){return t/621371e-9}function Nw(t){const e=t.split(",");if(e.length===2){const n=parseFloat(e[0].trim()),r=parseFloat(e[1].trim());if(!isNaN(n)&&!isNaN(r))return{lat:n,lng:r}}return null}function nd(t){return t=(t||"New Item").trim(),t.match(/(\d+)$/)?t.replace(/\d+$/,n=>""+(parseInt(n)+1)):`${t} 1`}function rd(t){if(typeof t=="object")return!0;if(!t)return!1;try{return JSON.parse(t),!0}catch{return!1}}let od=!1,id=!1,jr=null,Zt=null,Po=null;function sd(t=!0){if(!od&&t){const{coords:s,error:l,locatedAt:a}=L1();jr=l,Zt=a,Po=s,od=!0}const e="geolocation"in navigator,n=i.computed(()=>Zt!=null&&Zt.value?Po==null?void 0:Po.value:null),r=i.computed(()=>!(jr!=null&&jr.value)&&!!(Zt!=null&&Zt.value));return{isLocationSupported:e,isCompatible:r,geolocationError:jr,hasLocation:Zt,location:n,waitForLocation:async(s=3e3)=>{if(id)return n;id=!0;let l=0;for(;!n.value;)if(await Ur(100),l+=100,l>s)return null;return n}}}class wn extends Error{}class Iw extends wn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $w extends wn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Fw extends wn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Wn extends wn{}class ld extends wn{constructor(e){super(`Invalid unit ${e}`)}}class qe extends wn{}class Wt extends wn{constructor(){super("Zone is an abstract class")}}const O="numeric",st="short",Ge="long",Mo={year:O,month:O,day:O},ad={year:O,month:st,day:O},Aw={year:O,month:st,day:O,weekday:st},cd={year:O,month:Ge,day:O},ud={year:O,month:Ge,day:O,weekday:Ge},dd={hour:O,minute:O},fd={hour:O,minute:O,second:O},hd={hour:O,minute:O,second:O,timeZoneName:st},_d={hour:O,minute:O,second:O,timeZoneName:Ge},md={hour:O,minute:O,hourCycle:"h23"},pd={hour:O,minute:O,second:O,hourCycle:"h23"},gd={hour:O,minute:O,second:O,hourCycle:"h23",timeZoneName:st},yd={hour:O,minute:O,second:O,hourCycle:"h23",timeZoneName:Ge},bd={year:O,month:O,day:O,hour:O,minute:O},wd={year:O,month:O,day:O,hour:O,minute:O,second:O},kd={year:O,month:st,day:O,hour:O,minute:O},xd={year:O,month:st,day:O,hour:O,minute:O,second:O},Ow={year:O,month:st,day:O,weekday:st,hour:O,minute:O},Sd={year:O,month:Ge,day:O,hour:O,minute:O,timeZoneName:st},Cd={year:O,month:Ge,day:O,hour:O,minute:O,second:O,timeZoneName:st},Ed={year:O,month:Ge,day:O,weekday:Ge,hour:O,minute:O,timeZoneName:Ge},Td={year:O,month:Ge,day:O,weekday:Ge,hour:O,minute:O,second:O,timeZoneName:Ge};class zr{get type(){throw new Wt}get name(){throw new Wt}get ianaName(){return this.name}get isUniversal(){throw new Wt}offsetName(e,n){throw new Wt}formatOffset(e,n){throw new Wt}offset(e){throw new Wt}equals(e){throw new Wt}get isValid(){throw new Wt}}let Qs=null;class Lo extends zr{static get instance(){return Qs===null&&(Qs=new Lo),Qs}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Qd(e,n,r)}formatOffset(e,n){return Wr(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let vo={};function Dw(t){return vo[t]||(vo[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),vo[t]}const Pw={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Mw(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,s,l,a,c,u,d]=r;return[l,o,s,a,c,u,d]}function Lw(t,e){const n=t.formatToParts(e),r=[];for(let o=0;o<n.length;o++){const{type:s,value:l}=n[o],a=Pw[s];s==="era"?r[a]=l:L(a)||(r[a]=parseInt(l,10))}return r}let Vo={};class kt extends zr{static create(e){return Vo[e]||(Vo[e]=new kt(e)),Vo[e]}static resetCache(){Vo={},vo={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=kt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Qd(e,n,r,this.name)}formatOffset(e,n){return Wr(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Dw(this.name);let[o,s,l,a,c,u,d]=r.formatToParts?Lw(r,n):Mw(r,n);a==="BC"&&(o=-Math.abs(o)+1);const h=zo({year:o,month:s,day:l,hour:c===24?0:c,minute:u,second:d,millisecond:0});let _=+n;const p=_%1e3;return _-=p>=0?p:1e3+p,(h-_)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Bd={};function vw(t,e={}){const n=JSON.stringify([t,e]);let r=Bd[n];return r||(r=new Intl.ListFormat(t,e),Bd[n]=r),r}let Ks={};function Xs(t,e={}){const n=JSON.stringify([t,e]);let r=Ks[n];return r||(r=new Intl.DateTimeFormat(t,e),Ks[n]=r),r}let Js={};function Vw(t,e={}){const n=JSON.stringify([t,e]);let r=Js[n];return r||(r=new Intl.NumberFormat(t,e),Js[n]=r),r}let el={};function qw(t,e={}){const{base:n,...r}=e,o=JSON.stringify([t,r]);let s=el[o];return s||(s=new Intl.RelativeTimeFormat(t,e),el[o]=s),s}let Hr=null;function Rw(){return Hr||(Hr=new Intl.DateTimeFormat().resolvedOptions().locale,Hr)}let Nd={};function Uw(t){let e=Nd[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Nd[t]=e}return e}function jw(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,o;try{r=Xs(t).resolvedOptions(),o=t}catch{const c=t.substring(0,n);r=Xs(c).resolvedOptions(),o=c}const{numberingSystem:s,calendar:l}=r;return[o,s,l]}}function zw(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Hw(t){const e=[];for(let n=1;n<=12;n++){const r=D.utc(2009,n,1);e.push(t(r))}return e}function Gw(t){const e=[];for(let n=1;n<=7;n++){const r=D.utc(2016,11,13+n);e.push(t(r))}return e}function qo(t,e,n,r){const o=t.listingMode();return o==="error"?null:o==="en"?n(e):r(e)}function Zw(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Ww{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:s,...l}=r;if(!n||Object.keys(l).length>0){const a={useGrouping:!1,...r};r.padTo>0&&(a.minimumIntegerDigits=r.padTo),this.inf=Vw(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):ll(e,3);return he(n,this.padTo)}}}class Yw{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const l=-1*(e.offset/60),a=l>=0?`Etc/GMT+${l}`:`Etc/GMT${l}`;e.offset!==0&&kt.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||o,this.dtf=Xs(n,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Qw{constructor(e,n,r){this.opts={style:"long",...r},!n&&Gd()&&(this.rtf=qw(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):p2(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Kw={firstDay:1,minimalDays:4,weekend:[6,7]};class W{static fromOpts(e){return W.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,o,s=!1){const l=e||ce.defaultLocale,a=l||(s?"en-US":Rw()),c=n||ce.defaultNumberingSystem,u=r||ce.defaultOutputCalendar,d=il(o)||ce.defaultWeekSettings;return new W(a,c,u,d,l)}static resetCache(){Hr=null,Ks={},Js={},el={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return W.create(e,n,r,o)}constructor(e,n,r,o,s){const[l,a,c]=jw(e);this.locale=l,this.numberingSystem=n||a||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=zw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Zw(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:W.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,il(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return qo(this,e,Jd,()=>{const r=n?{month:e,day:"numeric"}:{month:e},o=n?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Hw(s=>this.extract(s,r,"month"))),this.monthsCache[o][e]})}weekdays(e,n=!1){return qo(this,e,nf,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=n?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Gw(s=>this.extract(s,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return qo(this,void 0,()=>rf,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[D.utc(2016,11,13,9),D.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return qo(this,e,of,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[D.utc(-40,1,1),D.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const o=this.dtFormatter(e,n),s=o.formatToParts(),l=s.find(a=>a.type.toLowerCase()===r);return l?l.value:null}numberFormatter(e={}){return new Ww(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Yw(e,this.intl,n)}relFormatter(e={}){return new Qw(this.intl,this.isEnglish(),e)}listFormatter(e={}){return vw(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Zd()?Uw(this.locale):Kw}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let tl=null;class $e extends zr{static get utcInstance(){return tl===null&&(tl=new $e(0)),tl}static instance(e){return e===0?$e.utcInstance:new $e(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new $e(Ho(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Wr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Wr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Wr(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Xw extends zr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Yt(t,e){if(L(t)||t===null)return e;if(t instanceof zr)return t;if(t2(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Lo.instance:n==="utc"||n==="gmt"?$e.utcInstance:$e.parseSpecifier(n)||kt.create(t)}else return kn(t)?$e.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Xw(t)}let Id=()=>Date.now(),$d="system",Fd=null,Ad=null,Od=null,Dd=60,Pd,Md=null;class ce{static get now(){return Id}static set now(e){Id=e}static set defaultZone(e){$d=e}static get defaultZone(){return Yt($d,Lo.instance)}static get defaultLocale(){return Fd}static set defaultLocale(e){Fd=e}static get defaultNumberingSystem(){return Ad}static set defaultNumberingSystem(e){Ad=e}static get defaultOutputCalendar(){return Od}static set defaultOutputCalendar(e){Od=e}static get defaultWeekSettings(){return Md}static set defaultWeekSettings(e){Md=il(e)}static get twoDigitCutoffYear(){return Dd}static set twoDigitCutoffYear(e){Dd=e%100}static get throwOnInvalid(){return Pd}static set throwOnInvalid(e){Pd=e}static resetCaches(){W.resetCache(),kt.resetCache()}}class lt{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ld=[0,31,59,90,120,151,181,212,243,273,304,334],vd=[0,31,60,91,121,152,182,213,244,274,305,335];function Xe(t,e){return new lt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function nl(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function Vd(t,e,n){return n+(Gr(t)?vd:Ld)[e-1]}function qd(t,e){const n=Gr(t)?vd:Ld,r=n.findIndex(s=>s<e),o=e-n[r];return{month:r+1,day:o}}function rl(t,e){return(t-e+7)%7+1}function Ro(t,e=4,n=1){const{year:r,month:o,day:s}=t,l=Vd(r,o,s),a=rl(nl(r,o,s),n);let c=Math.floor((l-a+14-e)/7),u;return c<1?(u=r-1,c=Zr(u,e,n)):c>Zr(r,e,n)?(u=r+1,c=1):u=r,{weekYear:u,weekNumber:c,weekday:a,...Zo(t)}}function Rd(t,e=4,n=1){const{weekYear:r,weekNumber:o,weekday:s}=t,l=rl(nl(r,1,e),n),a=Qn(r);let c=o*7+s-l-7+e,u;c<1?(u=r-1,c+=Qn(u)):c>a?(u=r+1,c-=Qn(r)):u=r;const{month:d,day:f}=qd(u,c);return{year:u,month:d,day:f,...Zo(t)}}function ol(t){const{year:e,month:n,day:r}=t,o=Vd(e,n,r);return{year:e,ordinal:o,...Zo(t)}}function Ud(t){const{year:e,ordinal:n}=t,{month:r,day:o}=qd(e,n);return{year:e,month:r,day:o,...Zo(t)}}function jd(t,e){if(!L(t.localWeekday)||!L(t.localWeekNumber)||!L(t.localWeekYear)){if(!L(t.weekday)||!L(t.weekNumber)||!L(t.weekYear))throw new Wn("Cannot mix locale-based week fields with ISO-based week fields");return L(t.localWeekday)||(t.weekday=t.localWeekday),L(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),L(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Jw(t,e=4,n=1){const r=Uo(t.weekYear),o=Je(t.weekNumber,1,Zr(t.weekYear,e,n)),s=Je(t.weekday,1,7);return r?o?s?!1:Xe("weekday",t.weekday):Xe("week",t.weekNumber):Xe("weekYear",t.weekYear)}function e2(t){const e=Uo(t.year),n=Je(t.ordinal,1,Qn(t.year));return e?n?!1:Xe("ordinal",t.ordinal):Xe("year",t.year)}function zd(t){const e=Uo(t.year),n=Je(t.month,1,12),r=Je(t.day,1,jo(t.year,t.month));return e?n?r?!1:Xe("day",t.day):Xe("month",t.month):Xe("year",t.year)}function Hd(t){const{hour:e,minute:n,second:r,millisecond:o}=t,s=Je(e,0,23)||e===24&&n===0&&r===0&&o===0,l=Je(n,0,59),a=Je(r,0,59),c=Je(o,0,999);return s?l?a?c?!1:Xe("millisecond",o):Xe("second",r):Xe("minute",n):Xe("hour",e)}function L(t){return typeof t>"u"}function kn(t){return typeof t=="number"}function Uo(t){return typeof t=="number"&&t%1===0}function t2(t){return typeof t=="string"}function n2(t){return Object.prototype.toString.call(t)==="[object Date]"}function Gd(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Zd(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function r2(t){return Array.isArray(t)?t:[t]}function Wd(t,e,n){if(t.length!==0)return t.reduce((r,o)=>{const s=[e(o),o];return r&&n(r[0],s[0])===r[0]?r:s},null)[1]}function o2(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function Yn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function il(t){if(t==null)return null;if(typeof t!="object")throw new qe("Week settings must be an object");if(!Je(t.firstDay,1,7)||!Je(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Je(e,1,7)))throw new qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Je(t,e,n){return Uo(t)&&t>=e&&t<=n}function i2(t,e){return t-e*Math.floor(t/e)}function he(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Qt(t){if(!(L(t)||t===null||t===""))return parseInt(t,10)}function xn(t){if(!(L(t)||t===null||t===""))return parseFloat(t)}function sl(t){if(!(L(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function ll(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function Gr(t){return t%4===0&&(t%100!==0||t%400===0)}function Qn(t){return Gr(t)?366:365}function jo(t,e){const n=i2(e-1,12)+1,r=t+(e-n)/12;return n===2?Gr(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function zo(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Yd(t,e,n){return-rl(nl(t,1,e),n)+e-1}function Zr(t,e=4,n=1){const r=Yd(t,e,n),o=Yd(t+1,e,n);return(Qn(t)-r+o)/7}function al(t){return t>99?t:t>ce.twoDigitCutoffYear?1900+t:2e3+t}function Qd(t,e,n,r=null){const o=new Date(t),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(s.timeZone=r);const l={timeZoneName:e,...s},a=new Intl.DateTimeFormat(n,l).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return a?a.value:null}function Ho(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Kd(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new qe(`Invalid unit value ${t}`);return e}function Go(t,e){const n={};for(const r in t)if(Yn(t,r)){const o=t[r];if(o==null)continue;n[e(r)]=Kd(o)}return n}function Wr(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${he(n,2)}:${he(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${he(n,2)}${he(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Zo(t){return o2(t,["hour","minute","second","millisecond"])}const s2=["January","February","March","April","May","June","July","August","September","October","November","December"],Xd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l2=["J","F","M","A","M","J","J","A","S","O","N","D"];function Jd(t){switch(t){case"narrow":return[...l2];case"short":return[...Xd];case"long":return[...s2];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ef=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tf=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],a2=["M","T","W","T","F","S","S"];function nf(t){switch(t){case"narrow":return[...a2];case"short":return[...tf];case"long":return[...ef];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const rf=["AM","PM"],c2=["Before Christ","Anno Domini"],u2=["BC","AD"],d2=["B","A"];function of(t){switch(t){case"narrow":return[...d2];case"short":return[...u2];case"long":return[...c2];default:return null}}function f2(t){return rf[t.hour<12?0:1]}function h2(t,e){return nf(e)[t.weekday-1]}function _2(t,e){return Jd(e)[t.month-1]}function m2(t,e){return of(e)[t.year<0?0:1]}function p2(t,e,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&s){const f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${o[t][0]}`;case-1:return f?"yesterday":`last ${o[t][0]}`;case 0:return f?"today":`this ${o[t][0]}`}}const l=Object.is(e,-0)||e<0,a=Math.abs(e),c=a===1,u=o[t],d=r?c?u[1]:u[2]||u[1]:c?o[t][0]:t;return l?`${a} ${d} ago`:`in ${a} ${d}`}function sf(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const g2={D:Mo,DD:ad,DDD:cd,DDDD:ud,t:dd,tt:fd,ttt:hd,tttt:_d,T:md,TT:pd,TTT:gd,TTTT:yd,f:bd,ff:kd,fff:Sd,ffff:Ed,F:wd,FF:xd,FFF:Cd,FFFF:Td};class Te{static create(e,n={}){return new Te(e,n)}static parseFormat(e){let n=null,r="",o=!1;const s=[];for(let l=0;l<e.length;l++){const a=e.charAt(l);a==="'"?(r.length>0&&s.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||a===n?r+=a:(r.length>0&&s.push({literal:/^\s+$/.test(r),val:r}),r=a,n=a)}return r.length>0&&s.push({literal:o||/^\s+$/.test(r),val:r}),s}static macroTokenToFormatOpts(e){return g2[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return he(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(_,p)=>this.loc.extract(e,_,p),l=_=>e.isOffsetFixed&&e.offset===0&&_.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,_.format):"",a=()=>r?f2(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(_,p)=>r?_2(e,_):s(p?{month:_}:{month:_,day:"numeric"},"month"),u=(_,p)=>r?h2(e,_):s(p?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),d=_=>{const p=Te.macroTokenToFormatOpts(_);return p?this.formatWithSystemDefault(e,p):_},f=_=>r?m2(e,_):s({era:_},"era"),h=_=>{switch(_){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?s({day:"numeric"},"day"):this.num(e.day);case"dd":return o?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?s({month:"numeric"},"month"):this.num(e.month);case"MM":return o?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?s({year:"numeric"},"year"):this.num(e.year);case"yy":return o?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(_)}};return sf(Te.parseFormat(n),h)}formatDurationFromString(e,n){const r=c=>{switch(c[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},s=Te.parseFormat(n),l=s.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),a=e.shiftTo(...l.map(r).filter(c=>c));return sf(s,o(a))}}const lf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Kn(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function Xn(...t){return e=>t.reduce(([n,r,o],s)=>{const[l,a,c]=s(e,o);return[{...n,...l},a||r,c]},[{},null,1]).slice(0,2)}function Jn(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const o=n.exec(t);if(o)return r(o)}return[null,null]}function af(...t){return(e,n)=>{const r={};let o;for(o=0;o<t.length;o++)r[t[o]]=Qt(e[n+o]);return[r,null,n+o]}}const cf=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,y2=`(?:${cf.source}?(?:\\[(${lf.source})\\])?)?`,cl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,uf=RegExp(`${cl.source}${y2}`),ul=RegExp(`(?:T${uf.source})?`),b2=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,w2=/(\d{4})-?W(\d\d)(?:-?(\d))?/,k2=/(\d{4})-?(\d{3})/,x2=af("weekYear","weekNumber","weekDay"),S2=af("year","ordinal"),C2=/(\d{4})-(\d\d)-(\d\d)/,df=RegExp(`${cl.source} ?(?:${cf.source}|(${lf.source}))?`),E2=RegExp(`(?: ${df.source})?`);function er(t,e,n){const r=t[e];return L(r)?n:Qt(r)}function T2(t,e){return[{year:er(t,e),month:er(t,e+1,1),day:er(t,e+2,1)},null,e+3]}function tr(t,e){return[{hours:er(t,e,0),minutes:er(t,e+1,0),seconds:er(t,e+2,0),milliseconds:sl(t[e+3])},null,e+4]}function Yr(t,e){const n=!t[e]&&!t[e+1],r=Ho(t[e+1],t[e+2]),o=n?null:$e.instance(r);return[{},o,e+3]}function Qr(t,e){const n=t[e]?kt.create(t[e]):null;return[{},n,e+1]}const B2=RegExp(`^T?${cl.source}$`),N2=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function I2(t){const[e,n,r,o,s,l,a,c,u]=t,d=e[0]==="-",f=c&&c[0]==="-",h=(_,p=!1)=>_!==void 0&&(p||_&&d)?-_:_;return[{years:h(xn(n)),months:h(xn(r)),weeks:h(xn(o)),days:h(xn(s)),hours:h(xn(l)),minutes:h(xn(a)),seconds:h(xn(c),c==="-0"),milliseconds:h(sl(u),f)}]}const $2={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function dl(t,e,n,r,o,s,l){const a={year:e.length===2?al(Qt(e)):Qt(e),month:Xd.indexOf(n)+1,day:Qt(r),hour:Qt(o),minute:Qt(s)};return l&&(a.second=Qt(l)),t&&(a.weekday=t.length>3?ef.indexOf(t)+1:tf.indexOf(t)+1),a}const F2=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function A2(t){const[,e,n,r,o,s,l,a,c,u,d,f]=t,h=dl(e,o,r,n,s,l,a);let _;return c?_=$2[c]:u?_=0:_=Ho(d,f),[h,new $e(_)]}function O2(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const D2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,P2=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,M2=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ff(t){const[,e,n,r,o,s,l,a]=t;return[dl(e,o,r,n,s,l,a),$e.utcInstance]}function L2(t){const[,e,n,r,o,s,l,a]=t;return[dl(e,a,n,r,o,s,l),$e.utcInstance]}const v2=Kn(b2,ul),V2=Kn(w2,ul),q2=Kn(k2,ul),R2=Kn(uf),hf=Xn(T2,tr,Yr,Qr),U2=Xn(x2,tr,Yr,Qr),j2=Xn(S2,tr,Yr,Qr),z2=Xn(tr,Yr,Qr);function H2(t){return Jn(t,[v2,hf],[V2,U2],[q2,j2],[R2,z2])}function G2(t){return Jn(O2(t),[F2,A2])}function Z2(t){return Jn(t,[D2,ff],[P2,ff],[M2,L2])}function W2(t){return Jn(t,[N2,I2])}const Y2=Xn(tr);function Q2(t){return Jn(t,[B2,Y2])}const K2=Kn(C2,E2),X2=Kn(df),J2=Xn(tr,Yr,Qr);function ek(t){return Jn(t,[K2,hf],[X2,J2])}const _f="Invalid Duration",mf={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},tk={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...mf},et=146097/400,nr=146097/4800,nk={years:{quarters:4,months:12,weeks:et/7,days:et,hours:et*24,minutes:et*24*60,seconds:et*24*60*60,milliseconds:et*24*60*60*1e3},quarters:{months:3,weeks:et/28,days:et/4,hours:et*24/4,minutes:et*24*60/4,seconds:et*24*60*60/4,milliseconds:et*24*60*60*1e3/4},months:{weeks:nr/7,days:nr,hours:nr*24,minutes:nr*24*60,seconds:nr*24*60*60,milliseconds:nr*24*60*60*1e3},...mf},Sn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rk=Sn.slice(0).reverse();function Kt(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new H(r)}function pf(t,e){let n=e.milliseconds??0;for(const r of rk.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function gf(t,e){const n=pf(t,e)<0?-1:1;Sn.reduceRight((r,o)=>{if(L(e[o]))return r;if(r){const s=e[r]*n,l=t[o][r],a=Math.floor(s/l);e[o]+=a*n,e[r]-=a*l*n}return o},null),Sn.reduce((r,o)=>{if(L(e[o]))return r;if(r){const s=e[r]%1;e[r]-=s,e[o]+=s*t[r][o]}return o},null)}function ok(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class H{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?nk:tk;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||W.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return H.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new H({values:Go(e,H.normalizeUnit),loc:W.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(kn(e))return H.fromMillis(e);if(H.isDuration(e))return e;if(typeof e=="object")return H.fromObject(e);throw new qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=W2(e);return r?H.fromObject(r,n):H.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Q2(e);return r?H.fromObject(r,n):H.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the Duration is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new Fw(r);return new H({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new ld(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Te.create(this.loc,r).formatDurationFromString(this,e):_f}toHuman(e={}){if(!this.isValid)return _f;const n=Sn.map(r=>{const o=this.values[r];return L(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ll(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},D.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pf(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e),r={};for(const o of Sn)(Yn(n.values,o)||Yn(this.values,o))&&(r[o]=n.get(o)+this.get(o));return Kt(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Kd(e(this.values[r],r));return Kt(this,{values:n},!0)}get(e){return this[H.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Go(e,H.normalizeUnit)};return Kt(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const l={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:o,conversionAccuracy:r};return Kt(this,l)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return gf(this.matrix,e),Kt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=ok(this.normalize().shiftToAll().toObject());return Kt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(l=>H.normalizeUnit(l));const n={},r={},o=this.toObject();let s;for(const l of Sn)if(e.indexOf(l)>=0){s=l;let a=0;for(const u in r)a+=this.matrix[u][l]*r[u],r[u]=0;kn(o[l])&&(a+=o[l]);const c=Math.trunc(a);n[l]=c,r[l]=(a*1e3-c*1e3)/1e3}else kn(o[l])&&(r[l]=o[l]);for(const l in r)r[l]!==0&&(n[s]+=l===s?r[l]:r[l]/this.matrix[s][l]);return gf(this.matrix,n),Kt(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Kt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of Sn)if(!n(this.values[r],e.values[r]))return!1;return!0}}const rr="Invalid Interval";function ik(t,e){return!t||!t.isValid?se.invalid("missing or invalid start"):!e||!e.isValid?se.invalid("missing or invalid end"):e<t?se.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class se{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the Interval is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new $w(r);return new se({invalid:r})}static fromDateTimes(e,n){const r=Xr(e),o=Xr(n),s=ik(r,o);return s??new se({start:r,end:o})}static after(e,n){const r=H.fromDurationLike(n),o=Xr(e);return se.fromDateTimes(o,o.plus(r))}static before(e,n){const r=H.fromDurationLike(n),o=Xr(e);return se.fromDateTimes(o.minus(r),o)}static fromISO(e,n){const[r,o]=(e||"").split("/",2);if(r&&o){let s,l;try{s=D.fromISO(r,n),l=s.isValid}catch{l=!1}let a,c;try{a=D.fromISO(o,n),c=a.isValid}catch{c=!1}if(l&&c)return se.fromDateTimes(s,a);if(l){const u=H.fromISO(o,n);if(u.isValid)return se.after(s,u)}else if(c){const u=H.fromISO(r,n);if(u.isValid)return se.before(a,u)}}return se.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let o;return n!=null&&n.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,n),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?se.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Xr).filter(l=>this.contains(l)).sort((l,a)=>l.toMillis()-a.toMillis()),r=[];let{s:o}=this,s=0;for(;o<this.e;){const l=n[s]||this.e,a=+l>+this.e?this.e:l;r.push(se.fromDateTimes(o,a)),o=a,s+=1}return r}splitBy(e){const n=H.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,s;const l=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(c=>c*o));s=+a>+this.e?this.e:a,l.push(se.fromDateTimes(r,s)),r=s,o+=1}return l}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:se.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return se.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((o,s)=>o.s-s.s).reduce(([o,s],l)=>s?s.overlaps(l)||s.abutsStart(l)?[o,s.union(l)]:[o.concat([s]),l]:[o,l],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const o=[],s=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),l=Array.prototype.concat(...s),a=l.sort((c,u)=>c.time-u.time);for(const c of a)r+=c.type==="s"?1:-1,r===1?n=c.time:(n&&+n!=+c.time&&o.push(se.fromDateTimes(n,c.time)),n=null);return se.merge(o)}difference(...e){return se.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:rr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Mo,n={}){return this.isValid?Te.create(this.s.loc.clone(n),e).formatInterval(this):rr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:rr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:rr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:rr}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:rr}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):H.invalid(this.invalidReason)}mapEndpoints(e){return se.fromDateTimes(e(this.s),e(this.e))}}class Wo{static hasDST(e=ce.defaultZone){const n=D.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return kt.isValidZone(e)}static normalizeZone(e){return Yt(e,ce.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||W.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||W.create(n,r,s)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:s="gregory"}={}){return(o||W.create(n,r,s)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||W.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||W.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return W.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return W.create(n,null,"gregory").eras(e)}static features(){return{relative:Gd(),localeWeek:Zd()}}}function yf(t,e){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(H.fromMillis(r).as("days"))}function sk(t,e,n){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=yf(c,u);return(d-d%7)/7}],["days",yf]],o={},s=t;let l,a;for(const[c,u]of r)n.indexOf(c)>=0&&(l=c,o[c]=u(t,e),a=s.plus(o),a>e?(o[c]--,t=s.plus(o),t>e&&(a=t,o[c]--,t=s.plus(o))):t=a);return[t,o,a,l]}function lk(t,e,n,r){let[o,s,l,a]=sk(t,e,n);const c=e-o,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(l<e&&(l=o.plus({[a]:1})),l!==o&&(s[a]=(s[a]||0)+c/(l-o)));const d=H.fromObject(s,r);return u.length>0?H.fromMillis(c,r).shiftTo(...u).plus(d):d}const fl={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},bf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ak=fl.hanidec.replace(/[\[|\]]/g,"").split("");function ck(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(fl.hanidec)!==-1)e+=ak.indexOf(t[n]);else for(const o in bf){const[s,l]=bf[o];r>=s&&r<=l&&(e+=r-s)}}return parseInt(e,10)}else return e}function at({numberingSystem:t},e=""){return new RegExp(`${fl[t||"latn"]}${e}`)}const uk="missing Intl.DateTimeFormat.formatToParts support";function Z(t,e=n=>n){return{regex:t,deser:([n])=>e(ck(n))}}const wf="[  ]",kf=new RegExp(wf,"g");function dk(t){return t.replace(/\./g,"\\.?").replace(kf,wf)}function xf(t){return t.replace(/\./g,"").replace(kf," ").toLowerCase()}function ct(t,e){return t===null?null:{regex:RegExp(t.map(dk).join("|")),deser:([n])=>t.findIndex(r=>xf(n)===xf(r))+e}}function Sf(t,e){return{regex:t,deser:([,n,r])=>Ho(n,r),groups:e}}function Yo(t){return{regex:t,deser:([e])=>e}}function fk(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hk(t,e){const n=at(e),r=at(e,"{2}"),o=at(e,"{3}"),s=at(e,"{4}"),l=at(e,"{6}"),a=at(e,"{1,2}"),c=at(e,"{1,3}"),u=at(e,"{1,6}"),d=at(e,"{1,9}"),f=at(e,"{2,4}"),h=at(e,"{4,6}"),_=g=>({regex:RegExp(fk(g.val)),deser:([k])=>k,literal:!0}),m=(g=>{if(t.literal)return _(g);switch(g.val){case"G":return ct(e.eras("short"),0);case"GG":return ct(e.eras("long"),0);case"y":return Z(u);case"yy":return Z(f,al);case"yyyy":return Z(s);case"yyyyy":return Z(h);case"yyyyyy":return Z(l);case"M":return Z(a);case"MM":return Z(r);case"MMM":return ct(e.months("short",!0),1);case"MMMM":return ct(e.months("long",!0),1);case"L":return Z(a);case"LL":return Z(r);case"LLL":return ct(e.months("short",!1),1);case"LLLL":return ct(e.months("long",!1),1);case"d":return Z(a);case"dd":return Z(r);case"o":return Z(c);case"ooo":return Z(o);case"HH":return Z(r);case"H":return Z(a);case"hh":return Z(r);case"h":return Z(a);case"mm":return Z(r);case"m":return Z(a);case"q":return Z(a);case"qq":return Z(r);case"s":return Z(a);case"ss":return Z(r);case"S":return Z(c);case"SSS":return Z(o);case"u":return Yo(d);case"uu":return Yo(a);case"uuu":return Z(n);case"a":return ct(e.meridiems(),0);case"kkkk":return Z(s);case"kk":return Z(f,al);case"W":return Z(a);case"WW":return Z(r);case"E":case"c":return Z(n);case"EEE":return ct(e.weekdays("short",!1),1);case"EEEE":return ct(e.weekdays("long",!1),1);case"ccc":return ct(e.weekdays("short",!0),1);case"cccc":return ct(e.weekdays("long",!0),1);case"Z":case"ZZ":return Sf(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Sf(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return Yo(/[a-z_+-/]{1,256}?/i);case" ":return Yo(/[^\S\n\r]/);default:return _(g)}})(t)||{invalidReason:uk};return m.token=t,m}const _k={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function mk(t,e,n){const{type:r,value:o}=t;if(r==="literal"){const c=/^\s+$/.test(o);return{literal:!c,val:c?" ":o}}const s=e[r];let l=r;r==="hour"&&(e.hour12!=null?l=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?l="hour12":l="hour24":l=n.hour12?"hour12":"hour24");let a=_k[l];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function pk(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function gk(t,e,n){const r=t.match(e);if(r){const o={};let s=1;for(const l in n)if(Yn(n,l)){const a=n[l],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(r.slice(s,s+c))),s+=c}return[r,o]}else return[r,{}]}function yk(t){const e=s=>{switch(s){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return L(t.z)||(n=kt.create(t.z)),L(t.Z)||(n||(n=new $e(t.Z)),r=t.Z),L(t.q)||(t.M=(t.q-1)*3+1),L(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),L(t.u)||(t.S=sl(t.u)),[Object.keys(t).reduce((s,l)=>{const a=e(l);return a&&(s[a]=t[l]),s},{}),n,r]}let hl=null;function bk(){return hl||(hl=D.fromMillis(1555555555555)),hl}function wk(t,e){if(t.literal)return t;const n=Te.macroTokenToFormatOpts(t.val),r=Tf(n,e);return r==null||r.includes(void 0)?t:r}function Cf(t,e){return Array.prototype.concat(...t.map(n=>wk(n,e)))}function Ef(t,e,n){const r=Cf(Te.parseFormat(n),t),o=r.map(l=>hk(l,t)),s=o.find(l=>l.invalidReason);if(s)return{input:e,tokens:r,invalidReason:s.invalidReason};{const[l,a]=pk(o),c=RegExp(l,"i"),[u,d]=gk(e,c,a),[f,h,_]=d?yk(d):[null,null,void 0];if(Yn(d,"a")&&Yn(d,"H"))throw new Wn("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:c,rawMatches:u,matches:d,result:f,zone:h,specificOffset:_}}}function kk(t,e,n){const{result:r,zone:o,specificOffset:s,invalidReason:l}=Ef(t,e,n);return[r,o,s,l]}function Tf(t,e){if(!t)return null;const r=Te.create(e,t).dtFormatter(bk()),o=r.formatToParts(),s=r.resolvedOptions();return o.map(l=>mk(l,t,s))}const _l="Invalid DateTime",Bf=864e13;function Qo(t){return new lt("unsupported zone",`the zone "${t.name}" is not supported`)}function ml(t){return t.weekData===null&&(t.weekData=Ro(t.c)),t.weekData}function pl(t){return t.localWeekData===null&&(t.localWeekData=Ro(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new D({...n,...e,old:n})}function Nf(t,e,n){let r=t-e*60*1e3;const o=n.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;const s=n.offset(r);return o===s?[r,o]:[t-Math.min(o,s)*60*1e3,Math.max(o,s)]}function Ko(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Xo(t,e,n){return Nf(zo(t),e,n)}function If(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,s={...t.c,year:r,month:o,day:Math.min(t.c.day,jo(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},l=H.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=zo(s);let[c,u]=Nf(a,n,t.zone);return l!==0&&(c+=l,u=t.zone.offset(c)),{ts:c,o:u}}function Kr(t,e,n,r,o,s){const{setZone:l,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const c=e||a,u=D.fromObject(t,{...n,zone:c,specificOffset:s});return l?u:u.setZone(a)}else return D.invalid(new lt("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Jo(t,e,n=!0){return t.isValid?Te.create(W.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function gl(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=he(t.c.year,n?6:4),e?(r+="-",r+=he(t.c.month),r+="-",r+=he(t.c.day)):(r+=he(t.c.month),r+=he(t.c.day)),r}function $f(t,e,n,r,o,s){let l=he(t.c.hour);return e?(l+=":",l+=he(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=":")):l+=he(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(l+=he(t.c.second),(t.c.millisecond!==0||!r)&&(l+=".",l+=he(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!s?l+="Z":t.o<0?(l+="-",l+=he(Math.trunc(-t.o/60)),l+=":",l+=he(Math.trunc(-t.o%60))):(l+="+",l+=he(Math.trunc(t.o/60)),l+=":",l+=he(Math.trunc(t.o%60)))),s&&(l+="["+t.zone.ianaName+"]"),l}const Ff={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xk={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Sk={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Af=["year","month","day","hour","minute","second","millisecond"],Ck=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ek=["year","ordinal","hour","minute","second","millisecond"];function Tk(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ld(t);return e}function Of(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Tk(t)}}function Df(t,e){const n=Yt(e.zone,ce.defaultZone),r=W.fromObject(e),o=ce.now();let s,l;if(L(t.year))s=o;else{for(const u of Af)L(t[u])&&(t[u]=Ff[u]);const a=zd(t)||Hd(t);if(a)return D.invalid(a);const c=n.offset(o);[s,l]=Xo(t,c,n)}return new D({ts:s,zone:n,loc:r,o:l})}function Pf(t,e,n){const r=L(n.round)?!0:n.round,o=(l,a)=>(l=ll(l,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(l,a)),s=l=>n.calendary?e.hasSame(t,l)?0:e.startOf(l).diff(t.startOf(l),l).get(l):e.diff(t,l).get(l);if(n.unit)return o(s(n.unit),n.unit);for(const l of n.units){const a=s(l);if(Math.abs(a)>=1)return o(a,l)}return o(t>e?-0:0,n.units[n.units.length-1])}function Mf(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class D{constructor(e){const n=e.zone||ce.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new lt("invalid input"):null)||(n.isValid?null:Qo(n));this.ts=L(e.ts)?ce.now():e.ts;let o=null,s=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[o,s]=[e.old.c,e.old.o];else{const a=n.offset(this.ts);o=Ko(this.ts,a),r=Number.isNaN(o.year)?new lt("invalid input"):null,o=r?null:o,s=r?null:a}this._zone=n,this.loc=e.loc||W.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=s,this.isLuxonDateTime=!0}static now(){return new D({})}static local(){const[e,n]=Mf(arguments),[r,o,s,l,a,c,u]=n;return Df({year:r,month:o,day:s,hour:l,minute:a,second:c,millisecond:u},e)}static utc(){const[e,n]=Mf(arguments),[r,o,s,l,a,c,u]=n;return e.zone=$e.utcInstance,Df({year:r,month:o,day:s,hour:l,minute:a,second:c,millisecond:u},e)}static fromJSDate(e,n={}){const r=n2(e)?e.valueOf():NaN;if(Number.isNaN(r))return D.invalid("invalid input");const o=Yt(n.zone,ce.defaultZone);return o.isValid?new D({ts:r,zone:o,loc:W.fromObject(n)}):D.invalid(Qo(o))}static fromMillis(e,n={}){if(kn(e))return e<-Bf||e>Bf?D.invalid("Timestamp out of range"):new D({ts:e,zone:Yt(n.zone,ce.defaultZone),loc:W.fromObject(n)});throw new qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(kn(e))return new D({ts:e*1e3,zone:Yt(n.zone,ce.defaultZone),loc:W.fromObject(n)});throw new qe("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=Yt(n.zone,ce.defaultZone);if(!r.isValid)return D.invalid(Qo(r));const o=W.fromObject(n),s=Go(e,Of),{minDaysInFirstWeek:l,startOfWeek:a}=jd(s,o),c=ce.now(),u=L(n.specificOffset)?r.offset(c):n.specificOffset,d=!L(s.ordinal),f=!L(s.year),h=!L(s.month)||!L(s.day),_=f||h,p=s.weekYear||s.weekNumber;if((_||d)&&p)throw new Wn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new Wn("Can't mix ordinal dates with month/day");const m=p||s.weekday&&!_;let g,k,y=Ko(c,u);m?(g=Ck,k=xk,y=Ro(y,l,a)):d?(g=Ek,k=Sk,y=ol(y)):(g=Af,k=Ff);let w=!1;for(const N of g){const I=s[N];L(I)?w?s[N]=k[N]:s[N]=y[N]:w=!0}const C=m?Jw(s,l,a):d?e2(s):zd(s),T=C||Hd(s);if(T)return D.invalid(T);const b=m?Rd(s,l,a):d?Ud(s):s,[x,E]=Xo(b,u,r),B=new D({ts:x,zone:r,o:E,loc:o});return s.weekday&&_&&e.weekday!==B.weekday?D.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${B.toISO()}`):B}static fromISO(e,n={}){const[r,o]=H2(e);return Kr(r,o,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,o]=G2(e);return Kr(r,o,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,o]=Z2(e);return Kr(r,o,n,"HTTP",n)}static fromFormat(e,n,r={}){if(L(e)||L(n))throw new qe("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:s=null}=r,l=W.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),[a,c,u,d]=kk(l,e,n);return d?D.invalid(d):Kr(a,c,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return D.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,o]=ek(e);return Kr(r,o,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new qe("need to specify a reason the DateTime is invalid");const r=e instanceof lt?e:new lt(e,n);if(ce.throwOnInvalid)throw new Iw(r);return new D({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Tf(e,W.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,n={}){return Cf(Te.parseFormat(e),W.fromObject(n)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ml(this).weekYear:NaN}get weekNumber(){return this.isValid?ml(this).weekNumber:NaN}get weekday(){return this.isValid?ml(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?pl(this).weekday:NaN}get localWeekNumber(){return this.isValid?pl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?pl(this).weekYear:NaN}get ordinal(){return this.isValid?ol(this.c).ordinal:NaN}get monthShort(){return this.isValid?Wo.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Wo.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Wo.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Wo.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=zo(this.c),o=this.zone.offset(r-e),s=this.zone.offset(r+e),l=this.zone.offset(r-o*n),a=this.zone.offset(r-s*n);if(l===a)return[this];const c=r-l*n,u=r-a*n,d=Ko(c,l),f=Ko(u,a);return d.hour===f.hour&&d.minute===f.minute&&d.second===f.second&&d.millisecond===f.millisecond?[Cn(this,{ts:c}),Cn(this,{ts:u})]:[this]}get isInLeapYear(){return Gr(this.year)}get daysInMonth(){return jo(this.year,this.month)}get daysInYear(){return this.isValid?Qn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Zr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Zr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:o}=Te.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(e=0,n={}){return this.setZone($e.instance(e),n)}toLocal(){return this.setZone(ce.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=Yt(e,ce.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(n||r){const s=e.offset(this.ts),l=this.toObject();[o]=Xo(l,s,e)}return Cn(this,{ts:o,zone:e})}else return D.invalid(Qo(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Cn(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Go(e,Of),{minDaysInFirstWeek:r,startOfWeek:o}=jd(n,this.loc),s=!L(n.weekYear)||!L(n.weekNumber)||!L(n.weekday),l=!L(n.ordinal),a=!L(n.year),c=!L(n.month)||!L(n.day),u=a||c,d=n.weekYear||n.weekNumber;if((u||l)&&d)throw new Wn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new Wn("Can't mix ordinal dates with month/day");let f;s?f=Rd({...Ro(this.c,r,o),...n},r,o):L(n.ordinal)?(f={...this.toObject(),...n},L(n.day)&&(f.day=Math.min(jo(f.year,f.month),f.day))):f=Ud({...ol(this.c),...n});const[h,_]=Xo(f,this.o,this.zone);return Cn(this,{ts:h,o:_})}plus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e);return Cn(this,If(this,n))}minus(e){if(!this.isValid)return this;const n=H.fromDurationLike(e).negate();return Cn(this,If(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=H.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const s=this.loc.getStartOfWeek(),{weekday:l}=this;l<s&&(r.weekNumber=this.weekNumber-1),r.weekday=s}else r.weekday=1;if(o==="quarters"){const s=Math.ceil(this.month/3);r.month=(s-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?Te.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):_l}toLocaleString(e=Mo,n={}){return this.isValid?Te.create(this.loc.clone(n),e).formatDateTime(this):_l}toLocaleParts(e={}){return this.isValid?Te.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const l=e==="extended";let a=gl(this,l);return a+="T",a+=$f(this,l,n,r,o,s),a}toISODate({format:e="extended"}={}){return this.isValid?gl(this,e==="extended"):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:s=!1,format:l="extended"}={}){return this.isValid?(o?"T":"")+$f(this,l==="extended",n,e,r,s):null}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gl(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(n||e)&&(r&&(o+=" "),n?o+="z":e&&(o+="ZZ")),Jo(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():_l}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return H.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},s=r2(n).map(H.normalizeUnit),l=e.valueOf()>this.valueOf(),a=l?this:e,c=l?e:this,u=lk(a,c,s,o);return l?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(D.now(),e,n)}until(e){return this.isValid?se.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const o=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n,r)<=o&&o<=s.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||D.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let o=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(o=e.unit,s=void 0),Pf(n,this.plus(r),{...e,numeric:"always",units:o,unit:s})}toRelativeCalendar(e={}){return this.isValid?Pf(e.base||D.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(D.isDateTime))throw new qe("min requires all arguments be DateTimes");return Wd(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(D.isDateTime))throw new qe("max requires all arguments be DateTimes");return Wd(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:o=null,numberingSystem:s=null}=r,l=W.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0});return Ef(l,e,n)}static fromStringExplain(e,n,r={}){return D.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Mo}static get DATE_MED(){return ad}static get DATE_MED_WITH_WEEKDAY(){return Aw}static get DATE_FULL(){return cd}static get DATE_HUGE(){return ud}static get TIME_SIMPLE(){return dd}static get TIME_WITH_SECONDS(){return fd}static get TIME_WITH_SHORT_OFFSET(){return hd}static get TIME_WITH_LONG_OFFSET(){return _d}static get TIME_24_SIMPLE(){return md}static get TIME_24_WITH_SECONDS(){return pd}static get TIME_24_WITH_SHORT_OFFSET(){return gd}static get TIME_24_WITH_LONG_OFFSET(){return yd}static get DATETIME_SHORT(){return bd}static get DATETIME_SHORT_WITH_SECONDS(){return wd}static get DATETIME_MED(){return kd}static get DATETIME_MED_WITH_SECONDS(){return xd}static get DATETIME_MED_WITH_WEEKDAY(){return Ow}static get DATETIME_FULL(){return Sd}static get DATETIME_FULL_WITH_SECONDS(){return Cd}static get DATETIME_HUGE(){return Ed}static get DATETIME_HUGE_WITH_SECONDS(){return Td}}function Xr(t){if(D.isDateTime(t))return t;if(t&&t.valueOf&&kn(t.valueOf()))return D.fromJSDate(t);if(t&&typeof t=="object")return D.fromObject(t);throw new qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const yl=Symbol.for("yaml.alias"),bl=Symbol.for("yaml.document"),Xt=Symbol.for("yaml.map"),Lf=Symbol.for("yaml.pair"),$t=Symbol.for("yaml.scalar"),or=Symbol.for("yaml.seq"),tt=Symbol.for("yaml.node.type"),ir=t=>!!t&&typeof t=="object"&&t[tt]===yl,ei=t=>!!t&&typeof t=="object"&&t[tt]===bl,Jr=t=>!!t&&typeof t=="object"&&t[tt]===Xt,ue=t=>!!t&&typeof t=="object"&&t[tt]===Lf,X=t=>!!t&&typeof t=="object"&&t[tt]===$t,eo=t=>!!t&&typeof t=="object"&&t[tt]===or;function de(t){if(t&&typeof t=="object")switch(t[tt]){case Xt:case or:return!0}return!1}function _e(t){if(t&&typeof t=="object")switch(t[tt]){case yl:case Xt:case $t:case or:return!0}return!1}const Bk=t=>(X(t)||de(t))&&!!t.anchor,En=Symbol("break visit"),Nk=Symbol("skip children"),to=Symbol("remove node");function Tn(t,e){const n=Ik(e);ei(t)?sr(null,t.contents,n,Object.freeze([t]))===to&&(t.contents=null):sr(null,t,n,Object.freeze([]))}Tn.BREAK=En,Tn.SKIP=Nk,Tn.REMOVE=to;function sr(t,e,n,r){const o=$k(t,e,n,r);if(_e(o)||ue(o))return Fk(t,r,o),sr(t,o,n,r);if(typeof o!="symbol"){if(de(e)){r=Object.freeze(r.concat(e));for(let s=0;s<e.items.length;++s){const l=sr(s,e.items[s],n,r);if(typeof l=="number")s=l-1;else{if(l===En)return En;l===to&&(e.items.splice(s,1),s-=1)}}}else if(ue(e)){r=Object.freeze(r.concat(e));const s=sr("key",e.key,n,r);if(s===En)return En;s===to&&(e.key=null);const l=sr("value",e.value,n,r);if(l===En)return En;l===to&&(e.value=null)}}return o}function Ik(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function $k(t,e,n,r){var o,s,l,a,c;if(typeof n=="function")return n(t,e,r);if(Jr(e))return(o=n.Map)==null?void 0:o.call(n,t,e,r);if(eo(e))return(s=n.Seq)==null?void 0:s.call(n,t,e,r);if(ue(e))return(l=n.Pair)==null?void 0:l.call(n,t,e,r);if(X(e))return(a=n.Scalar)==null?void 0:a.call(n,t,e,r);if(ir(e))return(c=n.Alias)==null?void 0:c.call(n,t,e,r)}function Fk(t,e,n){const r=e[e.length-1];if(de(r))r.items[t]=n;else if(ue(r))t==="key"?r.key=n:r.value=n;else if(ei(r))r.contents=n;else{const o=ir(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Ak={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Ok=t=>t.replace(/[!,[\]{}]/g,e=>Ak[e]);class Fe{constructor(e,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Fe.defaultYaml,e),this.tags=Object.assign({},Fe.defaultTags,n)}clone(){const e=new Fe(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Fe(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Fe.defaultTags);break}return e}add(e,n){this.atNextDocument&&(this.yaml={explicit:Fe.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Fe.defaultTags),this.atNextDocument=!1);const r=e.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,l]=r;return this.tags[s]=l,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const l=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,l),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(e,n){if(e==="!")return"!";if(e[0]!=="!")return n(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const l=e.slice(2,-1);return l==="!"||l==="!!"?(n(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&n("Verbatim tags must end with a >"),l)}const[,r,o]=e.match(/^(.*!)([^!]*)$/s);o||n(`The ${e} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(o)}catch(l){return n(String(l)),null}return r==="!"?e:(n(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[n,r]of Object.entries(this.tags))if(e.startsWith(r))return n+Ok(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(e&&r.length>0&&_e(e.contents)){const s={};Tn(e.contents,(l,a)=>{_e(a)&&a.tag&&(s[a.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,l]of r)s==="!!"&&l==="tag:yaml.org,2002:"||(!e||o.some(a=>a.startsWith(l)))&&n.push(`%TAG ${s} ${l}`);return n.join(`
18
18
  `)}}Fe.defaultYaml={explicit:!1,version:"1.2"},Fe.defaultTags={"!!":"tag:yaml.org,2002:"};function vf(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(n)}return!0}function Vf(t){const e=new Set;return Tn(t,{Value(n,r){r.anchor&&e.add(r.anchor)}}),e}function qf(t,e){for(let n=1;;++n){const r=`${t}${n}`;if(!e.has(r))return r}}function Dk(t,e){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=Vf(t));const l=qf(e,o);return o.add(l),l},setAnchors:()=>{for(const s of n){const l=r.get(s);if(typeof l=="object"&&l.anchor&&(X(l.node)||de(l.node)))l.node.anchor=l.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:r}}function lr(t,e,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,s=r.length;o<s;++o){const l=r[o],a=lr(t,r,String(o),l);a===void 0?delete r[o]:a!==l&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const s=r.get(o),l=lr(t,r,o,s);l===void 0?r.delete(o):l!==s&&r.set(o,l)}else if(r instanceof Set)for(const o of Array.from(r)){const s=lr(t,r,o,o);s===void 0?r.delete(o):s!==o&&(r.delete(o),r.add(s))}else for(const[o,s]of Object.entries(r)){const l=lr(t,r,o,s);l===void 0?delete r[o]:l!==s&&(r[o]=l)}return t.call(e,n,r)}function nt(t,e,n){if(Array.isArray(t))return t.map((r,o)=>nt(r,String(o),n));if(t&&typeof t.toJSON=="function"){if(!n||!Bk(t))return t.toJSON(e,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(t,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const o=t.toJSON(e,n);return n.onCreate&&n.onCreate(o),o}return typeof t=="bigint"&&!(n!=null&&n.keep)?Number(t):t}class wl{constructor(e){Object.defineProperty(this,tt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){if(!ei(e))throw new TypeError("A document argument is required");const l={anchors:new Map,doc:e,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=nt(this,"",l);if(typeof o=="function")for(const{count:c,res:u}of l.anchors.values())o(u,c);return typeof s=="function"?lr(s,{"":a},"",a):a}}class kl extends wl{constructor(e){super(yl),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let n;return Tn(e,{Node:(r,o)=>{if(o===this)return Tn.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(e,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,l=this.resolve(o);if(!l){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=r.get(l);if(a||(nt(l,null,n),a=r.get(l)),!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ti(o,l,r)),a.count*a.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(e,n,r){const o=`*${this.source}`;if(e){if(vf(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function ti(t,e,n){if(ir(e)){const r=e.resolve(t),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(de(e)){let r=0;for(const o of e.items){const s=ti(t,o,n);s>r&&(r=s)}return r}else if(ue(e)){const r=ti(t,e.key,n),o=ti(t,e.value,n);return Math.max(r,o)}return 1}const Rf=t=>!t||typeof t!="function"&&typeof t!="object";class q extends wl{constructor(e){super($t),this.value=e}toJSON(e,n){return n!=null&&n.keep?this.value:nt(this.value,e,n)}toString(){return String(this.value)}}q.BLOCK_FOLDED="BLOCK_FOLDED",q.BLOCK_LITERAL="BLOCK_LITERAL",q.PLAIN="PLAIN",q.QUOTE_DOUBLE="QUOTE_DOUBLE",q.QUOTE_SINGLE="QUOTE_SINGLE";const Pk="tag:yaml.org,2002:";function Mk(t,e,n){if(e){const r=n.filter(s=>s.tag===e),o=r.find(s=>!s.format)??r[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return n.find(r=>{var o;return((o=r.identify)==null?void 0:o.call(r,t))&&!r.format})}function no(t,e,n){var f,h,_;if(ei(t)&&(t=t.contents),_e(t))return t;if(ue(t)){const p=(h=(f=n.schema[Xt]).createNode)==null?void 0:h.call(f,n.schema,null,n);return p.items.push(t),p}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:l,sourceObjects:a}=n;let c;if(r&&t&&typeof t=="object"){if(c=a.get(t),c)return c.anchor||(c.anchor=o(t)),new kl(c.anchor);c={anchor:null,node:null},a.set(t,c)}e!=null&&e.startsWith("!!")&&(e=Pk+e.slice(2));let u=Mk(t,e,l.tags);if(!u){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const p=new q(t);return c&&(c.node=p),p}u=t instanceof Map?l[Xt]:Symbol.iterator in Object(t)?l[or]:l[Xt]}s&&(s(u),delete n.onTagObj);const d=u!=null&&u.createNode?u.createNode(n.schema,t,n):typeof((_=u==null?void 0:u.nodeClass)==null?void 0:_.from)=="function"?u.nodeClass.from(n.schema,t,n):new q(t);return e?d.tag=e:u.default||(d.tag=u.tag),c&&(c.node=d),d}function ni(t,e,n){let r=n;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const l=[];l[s]=r,r=l}else r=new Map([[s,r]])}return no(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const ro=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;class xl extends wl{constructor(e,n){super(e),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(e){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(n.schema=e),n.items=n.items.map(r=>_e(r)||ue(r)?r.clone(e):r),this.range&&(n.range=this.range.slice()),n}addIn(e,n){if(ro(e))this.add(n);else{const[r,...o]=e,s=this.get(r,!0);if(de(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,ni(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(e){const[n,...r]=e;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(de(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(e,n){const[r,...o]=e,s=this.get(r,!0);return o.length===0?!n&&X(s)?s.value:s:de(s)?s.getIn(o,n):void 0}hasAllNullValues(e){return this.items.every(n=>{if(!ue(n))return!1;const r=n.value;return r==null||e&&X(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){const[n,...r]=e;if(r.length===0)return this.has(n);const o=this.get(n,!0);return de(o)?o.hasIn(r):!1}setIn(e,n){const[r,...o]=e;if(o.length===0)this.set(r,n);else{const s=this.get(r,!0);if(de(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,ni(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}xl.maxFlowStringSingleLineLength=60;const Lk=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Ft(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Bn=(t,e,n)=>t.endsWith(`
19
19
  `)?Ft(n,e):n.includes(`
20
20
  `)?`
@@ -148,7 +148,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
148
148
  ${e}
149
149
  \`\`\``)}function Kx(t,e){return At(e).diff(At(t),["days"]).days}function ki(t,e,n){var r=window,o="application/octet-stream",s=n||o,l=t,a=!e&&!n&&l,c=document.createElement("a"),u=function(k){return String(k)},d=r.Blob||r.MozBlob||r.WebKitBlob||u,f=e||"download",h,_;if(d=d.call?d.bind(r):Blob,String(this)==="true"&&(l=[l,s],s=l[0],l=l[1]),a&&a.length<2048)if(f=a.split("/").pop().split("?")[0],c.href=a,c.href.indexOf(a)!==-1||c.href.indexOf(encodeURI(a))!==-1||c.href===encodeURI(a)){var p=new XMLHttpRequest;return p.open("GET",a+"?no-cache="+Date.now(),!0),p.responseType="blob",p.onload=function(k){ki(k.target.response,f,o)},p.onerror=function(k){window.open(a,"_blank").focus()},setTimeout(function(){p.send()},0),p}else throw new Error("Invalid URL given, cannot download file: "+a);if(/^data:[\w+-]+\/[\w+-]+[,;]/.test(l))if(l.length>1024*1024*1.999&&d!==u)l=m(l),s=l.type||o;else return navigator.msSaveBlob?navigator.msSaveBlob(m(l),f):g(l);h=l instanceof d?l:new d([l],{type:s});function m(k){var y=k.split(/[:;,]/),w=y[1],C=y[2]==="base64"?atob:decodeURIComponent,T=C(y.pop()),b=T.length,x=0,E=new Uint8Array(b);for(x;x<b;++x)E[x]=T.charCodeAt(x);return new d([E],{type:w})}function g(k,y){if("download"in c)return c.href=k,c.setAttribute("download",f),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout(function(){c.click(),document.body.removeChild(c),y===!0&&setTimeout(function(){r.URL.revokeObjectURL(c.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return k=k.replace(/^data:([\w/\-+]+)/,o),window.open(k)||confirm(`Displaying New Document
150
150
 
151
- Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var w=document.createElement("iframe");document.body.appendChild(w),y||(k="data:"+k.replace(/^data:([\w/\-+]+)/,o)),w.src=k,setTimeout(function(){document.body.removeChild(w)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(h,f);if(r.URL)g(r.URL.createObjectURL(h),!0);else{if(typeof h=="string"||h.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(h))}catch{return g("data:"+s+","+encodeURIComponent(h))}_=new FileReader,_.onload=function(k){g(this.result)},_.readAsDataURL(h)}return!0}async function Mh(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=oe.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const o=await fetch(t,r);if(!o.ok)throw Error("File download failed: invalid response from server");let s;try{const a=JSON.parse(new TextDecoder().decode(o.data));console.error("Error downloading file:",a),s=a.message,a.errors&&(s=a.errors[0].message)}catch{}if(s)throw new Error("Failed to download file: "+s);await Lh(o,e)}async function Lh(t,e=""){const n=Kl(t,"content-disposition",""),r=Kl(t,"content-type",""),o=n.match(/filename="([^"]+)"/);e=e||o&&o[1]||"download.pdf";let s=t.data;s||(s=await t.blob()),ki(s,e,r)}function Kl(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let vh=class{constructor(e){if(Xx(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function Xx(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function Vh(t,e,n){try{return new DataView(t,e,n)}catch{return new vh(t,e,n)}}function V(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o++)r.push(t.getUint8(e+o));return br(r)}function yr(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const o=t.getUint8(e+r);if(o===0)break;n.push(o),r++}return br(n)}function Jx(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o+=2)r.push(t.getUint16(e+o));return r[r.length-1]===0&&r.pop(),br(r)}function qh(t,e){const n=t.getUint8(e),r=V(t,e+1,n);return[n,r]}function br(t){return t.map(e=>String.fromCharCode(e)).join("")}function j(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function Rh(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function Uh(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function eS(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function tS(t,e,n){return jh(n,e-t.length)+t}function nS(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function jh(t,e){return new Array(e+1).join(t)}const xi=void 0,zh=0;function Hh(t,e,n="string"){if(e===zh&&typeof DecompressionStream=="function"){const r=new DecompressionStream("deflate"),o=new Blob([t]).stream().pipeThrough(r);return n==="dataview"?new Response(o).arrayBuffer().then(s=>new DataView(s)):new Response(o).text()}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const Gh={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0};function me(t){return t.map(e=>String.fromCharCode(e)).join("")}function Xl(t){if(t.length>=8){const e=me(t.slice(0,8));if(e==="ASCII\0\0\0")return me(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function Si(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const Jl=18761,ea=19789,Fn={BIG_ENDIAN:ea,LITTLE_ENDIAN:Jl,getByteOrder:rS};function rS(t,e){if(t.getUint16(e)===Jl)return Jl;if(t.getUint16(e)===ea)return ea;throw new Error("Illegal byte order value. Faulty image.")}const Zh={isTiffFile:oS,findTiffOffsets:sS};function oS(t){return!!t&&t.byteLength>=4&&iS(t)}function iS(t){const r=t.getUint16(0)===Fn.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function sS(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const Wh={isJpegFile:xS,findJpegOffsets:SS},lS=2,aS=65496,Yh=2,it=4,Ne=2,cS=2,uS=10,dS=18,Qh=33,Kh=79,Xh=18,fS=8,ta="ICC_PROFILE\0",Jh=it+ta.length,hS=Jh+1,e_="MPF\0",t_=65472,n_=65474,_S=65476,mS=65499,pS=65501,gS=65498,r_=65504,na=65505,o_=65506,yS=65517,bS=65519,wS=65534,kS=65535,i_="JFIF",s_="Exif",l_="http://ns.adobe.com/xap/1.0/\0",a_="http://ns.adobe.com/xmp/extension/\0",c_="Photoshop 3.0";function xS(t){return!!t&&t.byteLength>=lS&&t.getUint16(0)===aS}function SS(t){let e=Yh,n,r,o,s,l,a,c,u,d;for(;e+it+5<=t.byteLength;){if(CS(t,e))n=t.getUint16(e+Ne),r=e+Ne;else if(ES(t,e))n=t.getUint16(e+Ne),o=e+Ne;else if(NS(t,e))n=t.getUint16(e+Ne),s=e+cS;else if(IS(t,e))n=t.getUint16(e+Ne),l=e+uS;else if($S(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(DS(e,n));else if(AS(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(PS(e,n));else if(MS(t,e))n=t.getUint16(e+Ne),a=e+dS;else if(TS(t,e)){n=t.getUint16(e+Ne);const f=e+Xh,h=n-(Xh-Ne),_=t.getUint8(e+Jh),p=t.getUint8(e+hS);u||(u=[]),u.push({offset:f,length:h,chunkNumber:_,chunksTotal:p})}else if(BS(t,e))n=t.getUint16(e+Ne),d=e+fS;else if(LS(t,e))n=t.getUint16(e+Ne);else if(vS(t,e)){e++;continue}else break;e+=Ne+n}return{hasAppMarkers:e>Yh,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function CS(t,e){return t.getUint16(e)===t_}function ES(t,e){return t.getUint16(e)===n_}function TS(t,e){const n=ta.length;return t.getUint16(e)===o_&&V(t,e+it,n)===ta}function BS(t,e){const n=e_.length;return t.getUint16(e)===o_&&V(t,e+it,n)===e_}function NS(t,e){const n=i_.length;return t.getUint16(e)===r_&&V(t,e+it,n)===i_&&t.getUint8(e+it+n)===0}function IS(t,e){const n=s_.length;return t.getUint16(e)===na&&V(t,e+it,n)===s_&&t.getUint8(e+it+n)===0}function $S(t,e){return t.getUint16(e)===na&&FS(t,e)}function FS(t,e){const n=l_.length;return V(t,e+it,n)===l_}function AS(t,e){return t.getUint16(e)===na&&OS(t,e)}function OS(t,e){const n=a_.length;return V(t,e+it,n)===a_}function DS(t,e){return{dataOffset:t+Qh,length:e-(Qh-Ne)}}function PS(t,e){return{dataOffset:t+Kh,length:e-(Kh-Ne)}}function MS(t,e){const n=c_.length;return t.getUint16(e)===yS&&V(t,e+it,n)===c_&&t.getUint8(e+it+n)===0}function LS(t,e){const n=t.getUint16(e);return n>=r_&&n<=bS||n===wS||n===t_||n===n_||n===_S||n===mS||n===pS||n===gS}function vS(t,e){return t.getUint16(e)===kS}const u_={isPngFile:RS,findPngOffsets:US},ra=`‰PNG\r
151
+ Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var w=document.createElement("iframe");document.body.appendChild(w),y||(k="data:"+k.replace(/^data:([\w/\-+]+)/,o)),w.src=k,setTimeout(function(){document.body.removeChild(w)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(h,f);if(r.URL)g(r.URL.createObjectURL(h),!0);else{if(typeof h=="string"||h.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(h))}catch{return g("data:"+s+","+encodeURIComponent(h))}_=new FileReader,_.onload=function(k){g(this.result)},_.readAsDataURL(h)}return!0}async function Mh(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=oe.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const o=await fetch(t,r);if(!o.ok)throw Error("File download failed: invalid response from server");let s;try{const a=JSON.parse(new TextDecoder().decode(o.data));console.error("Error downloading file:",a),s=a.message,a.errors&&(s=a.errors[0].message)}catch{}if(s)throw new Error("Failed to download file: "+s);await Lh(o,e)}async function Lh(t,e=""){const n=Kl(t,"content-disposition",""),r=Kl(t,"content-type",""),o=n.match(/filename="([^"]+)"/);e=e||o&&o[1]||"download.pdf";let s=t.data;s||(s=await t.blob()),ki(s,e,r)}function Kl(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let vh=class{constructor(e){if(Xx(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function Xx(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function Vh(t,e,n){try{return new DataView(t,e,n)}catch{return new vh(t,e,n)}}function V(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o++)r.push(t.getUint8(e+o));return br(r)}function yr(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const o=t.getUint8(e+r);if(o===0)break;n.push(o),r++}return br(n)}function Jx(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o+=2)r.push(t.getUint16(e+o));return r[r.length-1]===0&&r.pop(),br(r)}function qh(t,e){const n=t.getUint8(e),r=V(t,e+1,n);return[n,r]}function br(t){return t.map(e=>String.fromCharCode(e)).join("")}function j(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function Rh(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function Uh(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function eS(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function tS(t,e,n){return jh(n,e-t.length)+t}function nS(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function jh(t,e){return new Array(e+1).join(t)}const xi=void 0,zh=0;function Hh(t,e,n="string"){if(e===zh&&typeof DecompressionStream=="function"){const r=new DecompressionStream("deflate"),o=new Blob([t]).stream().pipeThrough(r);return n==="dataview"?new Response(o).arrayBuffer().then(s=>new DataView(s)):new Response(o).text()}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const Gh={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0};function me(t){return t.map(e=>String.fromCharCode(e)).join("")}function Xl(t){if(t.length>=8){const e=me(t.slice(0,8));if(e==="ASCII\0\0\0")return me(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function Si(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const Jl=18761,ea=19789,Fn={BIG_ENDIAN:ea,LITTLE_ENDIAN:Jl,getByteOrder:rS};function rS(t,e){if(t.getUint16(e)===Jl)return Jl;if(t.getUint16(e)===ea)return ea;throw new Error("Illegal byte order value. Faulty image.")}const Zh={isTiffFile:oS,findTiffOffsets:sS};function oS(t){return!!t&&t.byteLength>=4&&iS(t)}function iS(t){const r=t.getUint16(0)===Fn.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function sS(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const Wh={isJpegFile:xS,findJpegOffsets:SS},lS=2,aS=65496,Yh=2,it=4,Be=2,cS=2,uS=10,dS=18,Qh=33,Kh=79,Xh=18,fS=8,ta="ICC_PROFILE\0",Jh=it+ta.length,hS=Jh+1,e_="MPF\0",t_=65472,n_=65474,_S=65476,mS=65499,pS=65501,gS=65498,r_=65504,na=65505,o_=65506,yS=65517,bS=65519,wS=65534,kS=65535,i_="JFIF",s_="Exif",l_="http://ns.adobe.com/xap/1.0/\0",a_="http://ns.adobe.com/xmp/extension/\0",c_="Photoshop 3.0";function xS(t){return!!t&&t.byteLength>=lS&&t.getUint16(0)===aS}function SS(t){let e=Yh,n,r,o,s,l,a,c,u,d;for(;e+it+5<=t.byteLength;){if(CS(t,e))n=t.getUint16(e+Be),r=e+Be;else if(ES(t,e))n=t.getUint16(e+Be),o=e+Be;else if(NS(t,e))n=t.getUint16(e+Be),s=e+cS;else if(IS(t,e))n=t.getUint16(e+Be),l=e+uS;else if($S(t,e))c||(c=[]),n=t.getUint16(e+Be),c.push(DS(e,n));else if(AS(t,e))c||(c=[]),n=t.getUint16(e+Be),c.push(PS(e,n));else if(MS(t,e))n=t.getUint16(e+Be),a=e+dS;else if(TS(t,e)){n=t.getUint16(e+Be);const f=e+Xh,h=n-(Xh-Be),_=t.getUint8(e+Jh),p=t.getUint8(e+hS);u||(u=[]),u.push({offset:f,length:h,chunkNumber:_,chunksTotal:p})}else if(BS(t,e))n=t.getUint16(e+Be),d=e+fS;else if(LS(t,e))n=t.getUint16(e+Be);else if(vS(t,e)){e++;continue}else break;e+=Be+n}return{hasAppMarkers:e>Yh,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function CS(t,e){return t.getUint16(e)===t_}function ES(t,e){return t.getUint16(e)===n_}function TS(t,e){const n=ta.length;return t.getUint16(e)===o_&&V(t,e+it,n)===ta}function BS(t,e){const n=e_.length;return t.getUint16(e)===o_&&V(t,e+it,n)===e_}function NS(t,e){const n=i_.length;return t.getUint16(e)===r_&&V(t,e+it,n)===i_&&t.getUint8(e+it+n)===0}function IS(t,e){const n=s_.length;return t.getUint16(e)===na&&V(t,e+it,n)===s_&&t.getUint8(e+it+n)===0}function $S(t,e){return t.getUint16(e)===na&&FS(t,e)}function FS(t,e){const n=l_.length;return V(t,e+it,n)===l_}function AS(t,e){return t.getUint16(e)===na&&OS(t,e)}function OS(t,e){const n=a_.length;return V(t,e+it,n)===a_}function DS(t,e){return{dataOffset:t+Qh,length:e-(Qh-Be)}}function PS(t,e){return{dataOffset:t+Kh,length:e-(Kh-Be)}}function MS(t,e){const n=c_.length;return t.getUint16(e)===yS&&V(t,e+it,n)===c_&&t.getUint8(e+it+n)===0}function LS(t,e){const n=t.getUint16(e);return n>=r_&&n<=bS||n===wS||n===t_||n===n_||n===_S||n===mS||n===pS||n===gS}function vS(t,e){return t.getUint16(e)===kS}const u_={isPngFile:RS,findPngOffsets:US},ra=`‰PNG\r
152
152
  
153
- `,Ci=4,dt=4,wr=0,Jt=Ci,ke=Ci+dt,oa="XML:com.adobe.xmp\0",d_="tEXt",An="iTXt",ia="zTXt",f_="pHYs",h_="tIME",VS="eXIf",qS="iCCP";function RS(t){return!!t&&V(t,0,ra.length)===ra}function US(t,e){const r={hasAppMarkers:!1};let o=ra.length;for(;o+Ci+dt<=t.byteLength;){if(jS(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(zS(t,o)){const s=YS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+wr)-(s-(o+ke))}])}else if(HS(t,o,e)){r.hasAppMarkers=!0;const s=V(t,o+Jt,dt);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+wr),type:s,offset:o+ke})}else if(GS(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&ZS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+wr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=QS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else WS(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+wr));o+=t.getUint32(o+wr)+Ci+dt+4}return r}function jS(t,e){return V(t,e+Jt,dt)==="IHDR"}function zS(t,e){return V(t,e+Jt,dt)===An&&V(t,e+ke,oa.length)===oa}function HS(t,e,n){const r=V(t,e+Jt,dt);return r===d_||r===An||r===ia&&n}function GS(t,e){return V(t,e+Jt,dt)===VS}function ZS(t,e){return V(t,e+Jt,dt)===qS}function WS(t,e){const n=[f_,h_],r=V(t,e+Jt,dt);return n.includes(r)}function YS(t,e){e+=ke+oa.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function QS(t,e){const o=yr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function KS(t,e){return t.getUint32(e+4)}function XS(t,e,n,r){const{offsets:s,sizes:l}=JS(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=eC(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=tC(t,s.itemCount,e);return{type:"iloc",items:nC(t,e,s,l,a,c,d,f),length:r}}function JS(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function eC(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function tC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function nC(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=rC(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Ei(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=oC(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Ei(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Ei(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function rC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function oC(t,e,n,r){if((e===1||e===2)&&r>0)return Ei(t,n,r)}function Ei(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),KS(t,e)):0}const iC=1718909296,sC=1768977008,lC=1835365473,aC=1768714083,cC=1768517222,uC=1768842853,dC=1768973167,fC=1668246642,__=1165519206,sa=1835625829,hC=1970432288;function Ti(t,e){const{length:s,contentOffset:l}=_C(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===iC)return EC(t,l,s);if(a===sC)return TC(t,e,l,s);if(a===dC)return BC(t,e,l,s);if(a===fC)return NC(t,l,s);const c=t.getUint8(l);return a===lC?$C(t,e,l+1,s):a===aC?XS(t,c,l+1,s):a===cC?FC(t,e,c,l+1,s):a===uC?OC(t,e,c,l+1,s):{type:void 0,length:s}}function _C(t,e){const l=t.getUint32(e);return mC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:pC(l)&&gC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function mC(t){return t===0}function pC(t){return t===1}function gC(t,e){return t.getUint32(e+8)===0}function m_(t){{const e={},n=yC(t);return n?(e.tiffHeaderOffset=bC(t,n),e.xmpChunks=xC(n),e.iccChunks=CC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function yC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Ti(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function bC(t,e){try{const n=wC(e).itemId,r=la(e,n),o=r.baseOffset+r.extents[0].extentOffset;return kC(t,o)}catch{return}}function wC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===__)}function la(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function kC(t,e){return e+4+t.getUint32(e)}function xC(t){try{const e=SC(t).itemId,n=la(t,e),r=la(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function SC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===sa&&e.contentType==="application/rdf+xml")}function CC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function EC(t,e,n){return{type:"ftyp",majorBrand:V(t,e,4),length:n}}function TC(t,e,n,r){return{type:"iprp",subBoxes:Bi(t,n,r-(n-e)),length:r}}function BC(t,e,n,r){return{type:"ipco",properties:Bi(t,n,r-(n-e)),length:r}}function NC(t,e,n){return{type:"colr",icc:IC(t,e),length:n}}function IC(t,e){const r=V(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function $C(t,e,n,r){return{type:"meta",subBoxes:Bi(t,n+3,r-(n+3-e)),length:r}}function Bi(t,e,n){const r=[__,sa],o=[];let s=e;for(;s<e+n;){const l=Ti(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function FC(t,e,n,r,o){const{offsets:s}=AC(n,r);return{type:"iinf",itemInfos:Bi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function AC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function OC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=yr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=yr(t,r),r+=l.itemName.length+1,l.itemType===sa?(l.contentType=yr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=yr(t,r),r+=l.contentEncoding.length+1)):l.itemType===hC&&(l.itemUri=yr(t,r),r+=l.itemUri.length+1)),l}const p_={isHeicFile:DC,findHeicOffsets:PC};function DC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Ti(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function PC(t){return m_(t)}const g_={isAvifFile:MC,findAvifOffsets:LC};function MC(t){if(!t)return!1;try{const e=Ti(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function LC(t){return m_(t)}const y_={isWebpFile:vC,findOffsets:VC};function vC(t){const n="RIFF",o="WEBP";return!!t&&V(t,0,n.length)===n&&V(t,8,o.length)===o}function VC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=V(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,V(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const b_={isGifFile:UC,findOffsets:jC},qC=6,RC=["GIF87a","GIF89a"];function UC(t){return!!t&&RC.includes(V(t,0,qC))}function jC(){return{gifHeaderOffset:0}}const zC={parseAppMarkers:HC};function HC(t,e){if(Zh.isTiffFile(t))return On(Zh.findTiffOffsets(),"tiff","TIFF");if(Wh.isJpegFile(t))return On(Wh.findJpegOffsets(t),"jpeg","JPEG");if(u_.isPngFile(t))return On(u_.findPngOffsets(t,e),"png","PNG");if(p_.isHeicFile(t))return On(p_.findHeicOffsets(t),"heic","HEIC");if(g_.isAvifFile(t))return On(g_.findAvifOffsets(t),"avif","AVIF");if(y_.isWebpFile(t))return On(y_.findOffsets(t),"webp","WebP");if(b_.isGifFile(t))return On(b_.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function On(t,e,n){return j({},t,{fileType:{value:e,description:n}})}const v={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},w_={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:v.XResolution},283:{name:"YResolution",description:v.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:v.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:v.LightSource},50779:{name:"CalibrationIlluminant2",description:v.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},GC={33434:{name:"ExposureTime",description:v.ExposureTime},33437:{name:"FNumber",description:v.FNumber},34850:{name:"ExposureProgram",description:v.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:v.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:v.ShutterSpeedValue},37378:{name:"ApertureValue",description:v.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:v.MeteringMode},37384:{name:"LightSource",description:v.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:v.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Xl},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:v.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:v.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:v.CustomRendered},41986:{name:"ExposureMode",description:v.ExposureMode},41987:{name:"WhiteBalance",description:v.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:v.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:v.Contrast},41993:{name:"Saturation",description:v.Saturation},41994:{name:"Sharpness",description:v.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},ZC={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Si},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Si},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Xl},28:{name:"GPSAreaInformation",description:Xl},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},WC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},YC={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},k_=j({},w_,GC),aa="0th",x_="1st",S_="exif",C_="gps",E_="interoperability",T_="mpf",en={[aa]:k_,[x_]:w_,[S_]:k_,[C_]:ZC,[E_]:WC,[T_]:YC},B_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ca={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},F={getAsciiValue:QC,getByteAt:N_,getAsciiAt:KC,getShortAt:XC,getLongAt:Ni,getRationalAt:JC,getUndefinedAt:e3,getSlongAt:ua,getSrationalAt:t3,getIfdPointerAt:n3,typeSizes:B_,tagTypes:ca,getTypeSize:r3};function QC(t){return t.map(e=>String.fromCharCode(e))}function N_(t,e){return t.getUint8(e)}function KC(t,e){return t.getUint8(e)}function XC(t,e,n){return t.getUint16(e,n===Fn.LITTLE_ENDIAN)}function Ni(t,e,n){return t.getUint32(e,n===Fn.LITTLE_ENDIAN)}function JC(t,e,n){return[Ni(t,e,n),Ni(t,e+4,n)]}function e3(t,e){return N_(t,e)}function ua(t,e,n){return t.getInt32(e,n===Fn.LITTLE_ENDIAN)}function t3(t,e,n){return[ua(t,e,n),ua(t,e+4,n)]}function n3(t,e,n){return Ni(t,e,n)}function r3(t){if(ca[t]===void 0)throw new Error("No such type found.");return B_[ca[t]]}const o3={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function I_(t,e,n){return e+F.getLongAt(t,e+4,n)}function kr(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=i3(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=s3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===aa&&(c.Thumbnail=kr(t,x_,n,n+d,o,!0))}return c}function i3(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function s3(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),h=F.getLongAt(t,r+c,o);let _;if(F.typeSizes[f]===void 0||!s&&en[e][d]===void 0)return;if(l3(f,h))_=$_(t,r+u,f,h,o);else{const g=F.getLongAt(t,r+u,o);if(a3(t,n,g,f,h)){const k=d===33723;_=$_(t,n+g,f,h,o,k)}else _="<faulty value>"}f===F.tagTypes.ASCII&&(_=c3(_),_=u3(_));let p=`undefined-${d}`,m=_;if(en[e][d]!==void 0)if(en[e][d].name!==void 0&&en[e][d].description!==void 0){p=en[e][d].name;try{m=en[e][d].description(_)}catch{m=F_(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(p=en[e][d],m=""+_[0]/_[1]):(p=en[e][d],m=F_(_));return{id:d,name:p,value:_,description:m}}function l3(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function $_(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(o3[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function a3(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function c3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function u3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function F_(t){return t instanceof Array?t.join(", "):t}const A_="Exif IFD Pointer",O_="GPS Info IFD Pointer",D_="Interoperability IFD Pointer",P_={read:d3};function d3(t,e,n){const r=Fn.getByteOrder(t,e);let o=f3(t,e,r,n);return o=h3(o,t,e,r,n),o=_3(o,t,e,r,n),o=m3(o,t,e,r,n),o}function f3(t,e,n,r){return kr(t,aa,e,I_(t,e,n),n,r)}function h3(t,e,n,r,o){return t[A_]!==void 0?j(t,kr(e,S_,n,n+t[A_].value,r,o)):t}function _3(t,e,n,r,o){return t[O_]!==void 0?j(t,kr(e,C_,n,n+t[O_].value,r,o)):t}function m3(t,e,n,r,o){return t[D_]!==void 0?j(t,kr(e,E_,n,n+t[D_].value,r,o)):t}const p3={read:g3},xr=16;function g3(t,e,n){const r=Fn.getByteOrder(t,e),o=kr(t,T_,e,I_(t,e,r),r,n);return y3(t,e,o,r)}function y3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/xr);s++){o[s]={};const l=fo(n.MPEntry.value,s*xr,F.getTypeSize("LONG"),r);o[s].ImageFlags=b3(l),o[s].ImageFormat=w3(l),o[s].ImageType=k3(l);const a=fo(n.MPEntry.value,s*xr+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=x3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=fo(n.MPEntry.value,s*xr+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=fo(n.MPEntry.value,s*xr+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),Rh(o[s],"base64",function(){return Uh(this.image)})}return n.Images=o,n}function fo(t,e,n,r){if(r===Fn.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function b3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function w3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function k3(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function x3(t,e,n,r){return S3(t)?0:fo(e.value,t*xr+8,F.getTypeSize("LONG"),n)+r}function S3(t){return t===0}const C3={read:E3};function E3(t,e){const n=T3(t,e),r=$3(t,e,n);return{"Bits Per Sample":B3(t,e,n),"Image Height":N3(t,e,n),"Image Width":I3(t,e,n),"Color Components":r,Subsampling:r&&F3(t,e,r.value,n)}}function T3(t,e){return F.getShortAt(t,e)}function B3(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function N3(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function I3(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function $3(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function F3(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?A3(l)+O3(l):""}}function A3(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function O3(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const D3={read:P3};function P3(t,e){const n=M3(t,e),r=U3(t,e,n),o=j3(t,e,n),s={"JFIF Version":L3(t,e,n),"Resolution Unit":v3(t,e,n),XResolution:q3(t,e,n),YResolution:R3(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=z3(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function M3(t,e){return F.getShortAt(t,e)}function L3(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function v3(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:V3(s)}}function V3(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function q3(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function R3(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function U3(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function j3(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function z3(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const tn={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:da},336:{name:"Time Sent",description:fa},346:{name:"Coded Character Set",description:M_,encoding_name:M_},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:da},572:{name:"Time Created",description:fa},574:{name:"Digital Creation Date",description:da},575:{name:"Digital Creation Time",description:fa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function da(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function fa(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function M_(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const H3={get:G3};function G3(){if(typeof TextDecoder<"u")return TextDecoder}const L_={decode:Z3,TAG_HEADER_SIZE:5};function Z3(t,e){const n=H3.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return W3(r)}function W3(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Y3=943868237,v_=4,ha=v_+8,Q3=1028,V_=5,_a={read:K3};function K3(t,e,n){try{if(Array.isArray(t))return q_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=X3(t,e);return q_(t,r,o,n)}catch{return{}}}function X3(t,e){for(;e+ha<=t.byteLength;){const n=J3(t,e);if(eE(n))return{naaBlock:n,dataOffset:e+ha};e+=ha+n.size+tE(n)}throw new Error("No IPTC NAA resource block.")}function J3(t,e){if(t.getUint32(e,!1)!==Y3)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+v_),size:t.getUint16(e+10)}}function eE(t){return t.type===Q3}function tE(t){return t.size%2!==0?1:0}function q_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=nE(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=V_+c}return o}function nE(t,e,n,r,o){if(rE(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!tn.iptc[a])return{tag:void 0,tagSize:c};const u=oE(t,e+V_,c),d={id:a,name:iE(tn.iptc[a],a,u),value:u,description:aE(tn.iptc[a],u,n,r)};return dE(a)&&(d.repeatable=!0),fE(a)&&(d.encoding=tn.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function rE(t,e){return t.getUint8(e)!==28}function oE(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function iE(t,e,n){return t?sE(t)?t:lE(t)?t.name(n):t.name:`undefined-${e}`}function sE(t){return typeof t=="string"}function lE(t){return typeof t.name=="function"}function aE(t,e,n,r){if(uE(t))try{return t.description(e,n)}catch{}return cE(t,e)?L_.decode(r,e):e}function cE(t,e){return t&&e instanceof Array}function uE(t){return t&&t.description!==void 0}function dE(t){return tn.iptc[t]&&tn.iptc[t].repeatable}function fE(t){return tn.iptc[t]&&tn.iptc[t].encoding_name!==void 0}const Ii={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>v.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Sr(v.XResolution,t),"tiff:YResolution":t=>Sr(v.YResolution,t),"exif:ApertureValue":t=>Sr(v.ApertureValue,t),"exif:GPSLatitude":U_,"exif:GPSLongitude":U_,"exif:FNumber":t=>Sr(v.FNumber,t),"exif:FocalLength":t=>Sr(v.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>v.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>v.ColorSpace(hE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return v.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>v.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>v.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>v.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>v.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return R_(t)?v.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>v.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>v.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>v.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>v.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Sr(v.ShutterSpeedValue,t),"exif:WhiteBalance":t=>v.WhiteBalance(parseInt(t,10))};function Sr(t,e){return R_(e)?t(e.split("/")):e}function hE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function R_(t){return/^-?\d+\/-?\d+$/.test(t)}function U_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const _E={get:mE};function mE(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const j_={read:pE};function pE(t,e){const n={};if(typeof t=="string")return $i(n,t),n;const[r,o]=gE(t,e),s=$i(n,r);if(o){const l=$i(n,o);!s&&!l&&(delete n._raw,$i(n,ma(t,e)))}return n}function gE(t,e){if(e.length===0)return[];const n=[ma(t,e.slice(0,1))];return e.length>1&&n.push(ma(t,e.slice(1))),n}function ma(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function $i(t,e){try{const{doc:n,raw:r}=yE(e);t._raw=(t._raw||"")+r;const o=z_(n);return j(t,G_(H_(o,!0))),!0}catch{return!1}}function yE(t){const e=_E.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:V(t,0,t.byteLength),r=e.parseFromString(bE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function bE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function z_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return z_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function H_(t,e=!1){const n=wE(t);return kE(n)?e?{}:xE(n[0]):SE(n)}function wE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function kE(t){return t.length===1&&t[0].nodeName==="#text"}function xE(t){return t.nodeValue}function SE(t){const e={};return t.forEach(n=>{if(CE(n)){const r=EE(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function CE(t){return t.nodeName&&t.nodeName!=="#text"}function EE(t){return{attributes:TE(t),value:H_(t)}}function TE(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function G_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{j(e,pa(o.attributes)),typeof o.value=="object"&&j(e,Z_(o.value))})}return e}function pa(t){const e={};for(const n in t)try{BE(n)&&(e[Ai(n)]={value:t[n],attributes:{},description:Dt(t[n],n)})}catch{}return e}function BE(t){return t!=="rdf:parseType"&&!Fi(t)}function Fi(t){return t.split(":")[0]==="xmlns"}function Ai(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Dt(t,e=void 0){if(Array.isArray(t)){const n=NE(t);return e&&typeof Ii[e]=="function"?Ii[e](t,n):n}if(typeof t=="object")return IE(t);try{return e&&typeof Ii[e]=="function"?Ii[e](t):decodeURIComponent(escape(t))}catch{return t}}function NE(t){return t.map(e=>e.value!==void 0?Dt(e.value):Dt(e)).join(", ")}function IE(t){const e=[];for(const n in t)e.push(`${$E(n)}: ${Dt(t[n].value)}`);return e.join("; ")}function $E(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function Z_(t){const e={};for(const n in t)try{Fi(n)||(e[Ai(n)]=FE(t[n],n))}catch{}return e}function FE(t,e){return OE(t)?DE(t,e):AE(t)?{value:"",attributes:{},description:""}:W_(t)?Y_(t,e):Q_(t)?K_(t,e):X_(t)?J_(t,e):LE(t)?vE(t,e):ga(t,e)}function AE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function OE(t){return Array.isArray(t)}function DE(t,e){return ga(t[t.length-1],e)}function W_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function Y_(t,e){const n=ho(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),j(n,ho(t),PE(t));const r=ME(t);return{value:r,attributes:n,description:Dt(r,e)}}function ho(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Fi(n)&&(e[Ai(n)]=t.attributes[n]);return e}function PE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Fi(n)&&(e[Ai(n)]=t.value[n].value);return e}function ME(t){return t1(t.value["rdf:value"])||t.value["rdf:value"].value}function Q_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function K_(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(j(n.value,pa(t.value["rdf:Description"].attributes)),j(n.attributes,ho(t)),t=t.value["rdf:Description"]),j(n.value,Z_(t.value)),n.description=Dt(n.value,e),n}function X_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function J_(t,e){const n=pa(t.attributes);return{value:n,attributes:{},description:Dt(n,e)}}function LE(t){return e1(t.value)!==void 0}function e1(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function vE(t,e){let n=e1(t.value).value["rdf:li"];const r=ho(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(VE(s))}),{value:o,attributes:r,description:Dt(o,e)}}function VE(t){return W_(t)?Y_(t):Q_(t)?K_(t).value:X_(t)?J_(t).value:ga(t)}function ga(t,e){const n=t1(t)||G_(t.value);return{value:n,attributes:ho(t),description:Dt(n,e)}}function t1(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},n1=24,ya={2e3:{name:"PathInformation",description:qE},2999:{name:"ClippingPathName",description(t){const[,e]=qh(t,0);return e}}};function qE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+n1){const s=F.getShortAt(t,o);ba[s]&&(n[s]||(n[s]=ba[s].description),r.push({type:s,path:ba[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const ba={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Oi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Oi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Oi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Oi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:UE}};function Oi(t,e){const r=[];for(let o=0;o<n1;o+=8)r.push(RE(t,e+o));return r}function RE(t,e){const n=Dn(t,e,8);return[Dn(t,e+4,8),n]}function UE(t,e){return[[Dn(t,e,8),Dn(t,e+4,8),Dn(t,e+8,8),Dn(t,e+12,8)],Dn(t,e+16,8)]}function Dn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(jh("1",32-n),2);return o*nS(s.toString(2)+"."+tS(l.toString(2),32-n,"0"),2)}const jE={read:GE},r1="8BIM",zE=2,HE=4,o1=r1.length;function GE(t,e){const n=Vh(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=V(n,o,o1);o+=o1;const l=F.getShortAt(n,o);o+=zE;const{tagName:a,tagNameSize:c}=ZE(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=HE,s===r1){const d=Vh(n.buffer,o,u),f={id:l,value:V(d,0,u)};if(ya[l]){try{f.description=ya[l].description(d)}catch{f.description="<no description formatter>"}r[a||ya[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function ZE(t,e){const[n,r]=qh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const i1={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},s1={4:{name:"Preferred CMM type",value:(t,e)=>V(t,e,4),description:t=>t!==null?wa(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>V(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>V(t,e,4)},20:{name:"Connection Space",value:(t,e)=>V(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>WE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>YE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>V(t,e,4),description:t=>wa(t)},48:{name:"Device Manufacturer",value:(t,e)=>V(t,e,4),description:t=>wa(t)},52:{name:"Device Model Number",value:(t,e)=>V(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>V(t,e,4)}};function WE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function YE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function wa(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const l1={read:oT},QE=84,KE=128,XE="acsp",JE="desc",eT="mluc",tT="text",nT="sig ",rT=12;function oT(t,e,n){return n&&e[0].compressionMethod!==xi?iT(t,e):lT(t,e)}function iT(t,e){if(!sT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return Hh(n,e[0].compressionMethod,"dataview").then(a1).catch(()=>({}))}function sT(t){return t===zh}function lT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=aT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return a1(new DataView(r.buffer))}catch{return{}}}function aT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function cT(t){return t.length<KE+4}function uT(t,e){return t.length<e+rT}function a1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<QE)throw new Error("ICC profile too short");const r={},o=Object.keys(s1);for(let c=0;c<o.length;c++){const u=o[c],d=s1[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Di(e.slice(36,40))!==XE)throw new Error("ICC profile: missing signature");if(cT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(uT(e,a))return r;const u=V(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=V(t,d,4);if(h===JE){const _=t.getUint32(d+8);if(_>f)return r;const p=Di(e.slice(d+12,d+_+11));_o(r,u,p)}else if(h===eT){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let k=0;k<_;k++){const y=V(t,m+0,2),w=V(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=Jx(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)_o(r,u,g[0].text);else{const k={};for(let y=0;y<g.length;y++)k[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;_o(r,u,k)}}else if(h===tT){const _=Di(e.slice(d+8,d+f-7));_o(r,u,_)}else if(h===nT){const _=Di(e.slice(d+8,d+12));_o(r,u,_)}a=a+12}return r}function Di(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function _o(t,e,n){i1[e]?t[i1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const dT={read:fT};function fT(t,e){return{"Image Width":hT(t,e),"Image Height":_T(t,e),"Bit Depth":mT(t,e),"Color Type":pT(t,e),Compression:gT(t,e),Filter:yT(t,e),Interlace:bT(t,e)}}function hT(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function _T(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function mT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function pT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function gT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function yT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function bT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const wT={read:ET},ka="STATE_KEYWORD",xa="STATE_COMPRESSION",Sa="STATE_LANG",kT="STATE_TRANSLATED_KEYWORD",Ca="STATE_TEXT",xT=1,ST=1,CT=6;function ET(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=TT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(Gh.USE_EXIF&&FT(f,h))return{__exif:P_.read(u1(h),CT,r)};if(Gh.USE_IPTC&&AT(f,h))return{__iptc:_a.read(u1(h),0,r)};if(f)return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function TT(t,e,n,r,o){const s=[],l=[];let a,c=ka,u=xi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===xa){u=BT({type:r,dataView:t,offset:e+f}),r===An&&(f+=xT),c=c1(r,c);continue}else if(c===Ca){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=c1(r,c):c===ka?s.push(h):c===Sa&&l.push(h)}if(u!==xi&&!o)return{};const d=Hh(a,u);return d instanceof Promise?d.then(f=>Ea(f,r,l,s)).catch(()=>Ea("<text using unknown compression>".split(""),r,l,s)):Ea(d,r,l,s)}function BT({type:t,dataView:e,offset:n}){if(t===An){if(e.getUint8(n)===ST)return e.getUint8(n+1)}else if(t===ia)return e.getUint8(n);return xi}function c1(t,e){return e===ka&&[An,ia].includes(t)?xa:e===xa?t===An?Sa:Ca:e===Sa?kT:Ca}function Ea(t,e,n,r){const o=IT(t);return{name:NT(e,n,r),value:o,description:e===An?$T(t):o}}function NT(t,e,n){const r=br(n);if(t===d_||e.length===0)return r;const o=br(e);return`${r} (${o})`}function IT(t){return t instanceof DataView?V(t,0,t.byteLength):t}function $T(t){return L_.decode("UTF-8",t)}function FT(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function AT(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function u1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return OT(e[2].replace(/\n/g,""))}function OT(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const DT={read:PT};function PT(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+wr),s=V(t,e[r]+Jt,dt);s===f_?(n["Pixels Per Unit X"]=MT(t,e[r],o),n["Pixels Per Unit Y"]=LT(t,e[r],o),n["Pixel Units"]=vT(t,e[r],o)):s===h_&&(n["Modify Date"]=VT(t,e[r],o))}return n}function MT(t,e,n){if(!Pi(t,e,n,0,4))return;const s=F.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function LT(t,e,n){if(!Pi(t,e,n,4,4))return;const s=F.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function vT(t,e,n){if(!Pi(t,e,n,8,1))return;const s=F.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function VT(t,e,n){if(!Pi(t,e,n,0,7))return;const o=F.getShortAt(t,e+ke),s=F.getByteAt(t,e+ke+2),l=F.getByteAt(t,e+ke+3),a=F.getByteAt(t,e+ke+4),c=F.getByteAt(t,e+ke+5),u=F.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Cr(o,4)}-${Cr(s,2)}-${Cr(l,2)} ${Cr(a,2)}:${Cr(c,2)}:${Cr(u,2)}`}}function Pi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Cr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const qT={read:jT},RT=4,UT=7;function jT(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=zT(r),n.Animation=HT(r),n.ImageWidth=d1(t,e+RT),n.ImageHeight=d1(t,e+UT),n}function zT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function HT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function d1(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const GT={read:ZT};function ZT(t){return{"GIF Version":WT(t),"Image Width":YT(t),"Image Height":QT(t),"Global Color Map":KT(t),"Bits Per Pixel":JT(t),"Color Resolution Depth":XT(t)}}function WT(t){if(6>t.byteLength)return;const r=V(t,3,3);return{value:r,description:r}}function YT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function QT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function KT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function XT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function JT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const e4=[6,7,99],t4={get:n4};function n4(t,e,n){if(r4(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),Rh(e,"base64",function(){return Uh(this.image)})}return e}function r4(t){return t&&(t.Compression===void 0||e4.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function f1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}f1.prototype=new Error;const h1={MetadataMissingError:f1},o4={load:i4,loadView:_1,errors:h1};function i4(t,e={}){return s4(t)?(e.async=!0,l4(t,e).then(n=>Ta(n,e))):_4(t)?(e.async=!0,m4(t).then(n=>Ta(n,e))):Ta(t,e)}function s4(t){return typeof t=="string"}function l4(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?a4(t,e):c4(t,e):d4(t)?Promise.resolve(eS(t)):f4(t,e)}function a4(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function c4(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),u4(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function u4(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function d4(t){return/^data:[^;,]*(;base64)?,/.test(t)}function f4(t,{length:e}={}){return new Promise((n,r)=>{const o=h4();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function h4(){try{return __non_webpack_require__("fs")}catch{return}}function _4(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function m4(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ta(t,e){return p4(t)&&(t=new Uint8Array(t).buffer),_1(g4(t),e)}function p4(t){try{return Buffer.isBuffer(t)}catch{return!1}}function g4(t){try{return new DataView(t)}catch{return new vh(t)}}function _1(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:k,vp8xChunkOffset:y,gifHeaderOffset:w}=zC.parseAppMarkers(t,n);if(y4(c)){o=!0;const x=C3.read(t,c);e?s.file=x:s=j({},s,x)}if(b4(u)){o=!0;const x=D3.read(t,u);e?s.jfif=x:s=j({},s,x)}if(w4(d)){o=!0;const x=P_.read(t,d,r);if(x.Thumbnail&&(s.Thumbnail=x.Thumbnail,delete x.Thumbnail),e?(s.exif=x,k4(s)):s=j({},s,x),x["IPTC-NAA"]&&!m1(f)){const E=_a.read(x["IPTC-NAA"].value,0,r);e?s.iptc=E:s=j({},s,E)}if(x.ApplicationNotes&&!p1(h)){const E=j_.read(br(x.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=j({},s,E))}if(x.ImageSourceData){const E=jE.read(x.PhotoshopSettings.value,r);e?s.photoshop=E:s=j({},s,E)}if(x.ICC_Profile&&!g1(_)){const E=l1.read(x.ICC_Profile.value,[{offset:0,length:x.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=j({},s,E)}}if(m1(f)){o=!0;const x=_a.read(t,f,r);e?s.iptc=x:s=j({},s,x)}if(p1(h)){o=!0;const x=j_.read(t,h);e?s.xmp=x:(delete x._raw,s=j({},s,x))}if(g1(_)){o=!0;const x=l1.read(t,_,n);x instanceof Promise?l.push(x.then(T)):T(x)}if(x4(p)){o=!0;const x=p3.read(t,p,r);e?s.mpf=x:s=j({},s,x)}if(S4(m)){o=!0;const x=dT.read(t,m);e?(s.png=s.png?j({},s.png,x):x,s.pngFile=x):s=j({},s,x)}if(C4(g)){o=!0;const{readTags:x,readTagsPromise:E}=wT.read(t,g,n,r);b(x),E&&l.push(E.then(B=>B.forEach(b)))}if(E4(k)){o=!0;const x=DT.read(t,k);e?s.png=s.png?j({},s.png,x):x:s=j({},s,x)}if(T4(y)){o=!0;const x=qT.read(t,y);e?s.riff=s.riff?j({},s.riff,x):x:s=j({},s,x)}if(B4(w)){o=!0;const x=GT.read(t,w);e?s.gif=s.gif?j({},s.gif,x):x:s=j({},s,x)}const C=t4.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new h1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(x){e?s.icc=x:s=j({},s,x)}function b(x){if(e){for(const E of["exif","iptc"]){const B=`__${E}`;x[B]&&(s[E]=s[E]?j({},s.exif,x[B]):x[B],delete x[B])}s.png=s.png?j({},s.png,x):x,s.pngText=s.pngText?j({},s.png,x):x}else s=j({},s,x.__exif?x.__exif:{},x.__iptc?x.__iptc:{},x)}}function y4(t){return t!==void 0}function b4(t){return t!==void 0}function w4(t){return t!==void 0}function k4(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Si(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Si(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function m1(t){return t!==void 0}function p1(t){return Array.isArray(t)&&t.length>0}function g1(t){return Array.isArray(t)&&t.length>0}function x4(t){return t!==void 0}function S4(t){return t!==void 0}function C4(t){return t!==void 0}function E4(t){return t!==void 0}function T4(t){return t!==void 0}function B4(t){return t!==void 0}async function y1(t,e=null){if(t.location)return t.location;try{const n=await o4.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=sd();if(e&&setTimeout(()=>{!r.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class mo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...oe.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await y1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=pe(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&pe(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Ur(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Mi=i.ref([]),Li=i.ref([]);function N4(t){Mi.value=[...Mi.value,t]}function I4(t,e,n){Li.value.push({id:n,name:t,callback:e})}function $4(t){Li.value=Li.value.filter(e=>e.id!==t)}function b1(t,e,n){for(let r of Mi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Li.value)o.name===r.name&&o.callback(n)}function w1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function F4(t){Mi.value=t,window.addEventListener("keydown",e=>{b1("keydown",w1(e),e)}),window.addEventListener("keyup",e=>{b1("keyup",w1(e),e)})}function k1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new mo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const xe={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=oe.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=xe.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),xe.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}const o=await fetch(xe.url(t),e);if(A4(o),n){if(r<xe.abortControllers[n].timestamp)return{abort:!0};delete xe.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=oe.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await xe.call(t,e),await Ur(n);while(!r(o));return o},async get(t,e){var n;return await xe.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=oe.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await xe.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=oe.value.request)==null?void 0:r.headers},...n})}};function A4(t){const e=oe.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function O4(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function x1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function D4(t,e){return{list(n){return xe.post(`${t}/list`,n)},summary(n){return xe.post(`${t}/summary`,{filter:n})},details(n){return xe.get(`${t}/${n.id}/details`)},async detailsAndStore(n){const r=await xe.get(`${t}/${n.id}/details`);return pe(r)},async relation(n,r){const o=await xe.get(`${t}/${n.id}/relation/${r}`);return pe(o)},fieldOptions(){return xe.get(`${t}/field-options`)},applyAction(n,r,o){return xe.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o})},batchAction(n,r,o){return xe.post(`${t}/batch-action`,{action:n,filter:{id:r.map(s=>s.id)},data:o})},export(n,r){return Mh(`${t}/export`,r||"export.csv",{filter:n})},...e}}function S1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new mo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function Mt(t,e){localStorage.setItem(t,JSON.stringify(e))}function St(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function P4(t,e=""){const n=Ba(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ba(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ba(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const M4={name:"quasar-ui-danx",version:"0.4.35",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:C1}=M4;function L4(){console.log(`Installing Danx UI ${C1}... Nothing to do really.`)}S.ActionForm=cc,S.ActionFormDialog=kp,S.ActionMenu=Rs,S.ActionTable=Yu,S.ActionTableColumn=Fu,S.ActionTableHeaderColumn=Pu,S.ActionTableLayout=ew,S.ActionToolbar=Qu,S.ActionVnode=Og,S.AddressFormat=Sg,S.AuditHistoryItem=dw,S.AuditHistoryItemValue=Hs,S.AutoHeightTransition=zg,S.BadgeTab=vg,S.BooleanField=Hi,S.CaretDownIcon=Pa,S.CollapsableFiltersSidebar=Uu,S.CollapsableSidebar=dc,S.ColumnListItem=js,S.ColumnSettingsDialog=mb,S.ConfirmActionDialog=Za,S.ConfirmDialog=Et,S.ConfirmPasswordField=Up,S.ContentDrawer=Xi,S.CreateNewWithNameDialog=Wa,S.DateField=Zi,S.DateRangeField=Wi,S.DateTime=D,S.DateTimeField=Jp,S.DateTimePicker=Yi,S.DragAndDrop=Us,S.DragHandleDotsIcon=Ma,S.DragHandleIcon=La,S.EditOnClickTextField=i0,S.EditableDiv=n0,S.EmptyTableState=Zu,S.ExportButton=Aa,S.FieldLabel=_t,S.FilePreview=Tr,S.FileUpload=mo,S.FileUploadButton=l0,S.FilterIcon=va,S.FilterItem=qu,S.FilterList=Ru,S.FilterListToggle=ju,S.FilterToolbarLayout=Ab,S.FilterableField=zs,S.FlashMessages=Ve,S.FlatListFormat=Cg,S.FullScreenCarouselDialog=Ya,S.FullScreenDialog=Ap,S.GpsCoordinatesFormat=Bg,S.HandleDraggable=Au,S.IconWithTextFormat=Ig,S.ImageIcon=ji,S.IndicatorTab=Rg,S.InfoDialog=Qa,S.InlineDateTimeField=u0,S.InputDialog=Dp,S.IntegerField=Xa,S.InteractiveTooltip=Pg,S.LabelValueBlock=p0,S.LabelValueFormat=Fg,S.LabeledInput=Gi,S.ListDragAndDrop=Ou,S.ListItemDraggable=Du,S.ListTransition=mc,S.MaxHeightTransition=Hg,S.MaxLengthCounter=Ka,S.MultiFileField=Ja,S.MultiKeywordField=ec,S.NavigationMenu=_w,S.NewPasswordField=w0,S.NumberField=Er,S.NumberRangeField=bo,S.PanelsDrawer=Gu,S.PanelsDrawerPanels=zu,S.PanelsDrawerTabs=Hu,S.PdfIcon=Va,S.PercentIcon=qa,S.PopoverMenu=_c,S.PreviousNextControls=za,S.RefreshButton=Oa,S.RenderComponent=hc,S.RenderVnode=ln,S.RenderedForm=Ki,S.RenderedFormDialog=ig,S.SERVER_TZ=Gl,S.SaveStateIndicator=ac,S.SelectDrawer=E0,S.SelectField=Mn,S.SelectOrCreateField=B0,S.SelectWithChildrenField=tc,S.ShowHideButton=Da,S.SingleFileField=nc,S.SkipNextIcon=Ra,S.SkipPreviousIcon=Ua,S.SlideTransition=Gg,S.SliderNumberField=D0,S.StaggeredListTransition=lb,S.SvgImg=uc,S.TableSummaryRow=Wu,S.TextField=on,S.TitleColumnFormat=Mu,S.TrashIcon=go,S.VisibleColumnsToggleButtons=wb,S.WarningIcon=ja,S.WysiwygField=lc,S.XIcon=yo,S.activeActionVnode=bn,S.addHotkey=N4,S.applyCssVars=P4,S.autoRefreshObject=Xu,S.buildCssVars=Ba,S.centerTruncate=Gx,S.cloneDeep=Sw,S.configure=I1,S.danxOptions=oe,S.dbDateTime=Wl,S.diffInDays=Kx,S.download=ki,S.downloadFile=Mh,S.downloadFileResponse=Lh,S.fBoolean=Ah,S.fCurrency=bi,S.fCurrencyNoCents=jx,S.fDate=xt,S.fDateTime=yi,S.fElapsedTime=Ux,S.fJSON=Ph,S.fLocalizedDateTime=gr,S.fMarkdownCode=Qx,S.fNameOrCount=Dh,S.fNumber=Ot,S.fPercent=Oh,S.fPhone=Zx,S.fQDate=Vx,S.fSecondsToTime=Rx,S.fShortCurrency=zx,S.fShortNumber=Fh,S.fShortSize=Hx,S.fetchResourceListWithSelected=O4,S.getFilterFromUrl=Vu,S.getItem=St,S.getResponseHeader=Kl,S.getUrlParam=x1,S.incrementName=nd,S.install=L4,S.isJSON=rd,S.latestCallOnly=Ys,S.listen=I4,S.localizedDateTime=Zl,S.mapSortBy=vu,S.metersToMiles=Tw,S.milesToMeters=Bw,S.minmax=Ew,S.notify=mw,S.parseCoords=Nw,S.parseDateTime=At,S.parseGenericDateTime=$h,S.parseMarkdownCode=wi,S.parseMarkdownJSON=Wx,S.parseMarkdownYAML=Yx,S.parseQDate=Yl,S.parseQDateTime=Ql,S.parseSqlDateTime=qx,S.pollUntil=Cw,S.refreshApplication=kw,S.registerHotkeys=F4,S.registerStickyScrolling=Lu,S.remoteDateTime=Ih,S.remove=Rr,S.replace=Zs,S.request=xe,S.resolveFileLocation=y1,S.setItem=Mt,S.sleep=Ur,S.stopAutoRefreshObject=yw,S.storeObject=pe,S.storeObjects=pw,S.uniqueBy=xw,S.unlisten=$4,S.useActionRoutes=D4,S.useActions=bw,S.useCompatibility=sd,S.useControls=kb,S.useDebounceFn=rn,S.useMultiFileUpload=k1,S.useSingleFileUpload=S1,S.useTableColumns=tw,S.version=C1,S.waitForRef=Ws,S.withDefaultActions=ww,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
153
+ `,Ci=4,dt=4,wr=0,Jt=Ci,ke=Ci+dt,oa="XML:com.adobe.xmp\0",d_="tEXt",An="iTXt",ia="zTXt",f_="pHYs",h_="tIME",VS="eXIf",qS="iCCP";function RS(t){return!!t&&V(t,0,ra.length)===ra}function US(t,e){const r={hasAppMarkers:!1};let o=ra.length;for(;o+Ci+dt<=t.byteLength;){if(jS(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(zS(t,o)){const s=YS(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+wr)-(s-(o+ke))}])}else if(HS(t,o,e)){r.hasAppMarkers=!0;const s=V(t,o+Jt,dt);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+wr),type:s,offset:o+ke})}else if(GS(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&ZS(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+wr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=QS(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else WS(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+wr));o+=t.getUint32(o+wr)+Ci+dt+4}return r}function jS(t,e){return V(t,e+Jt,dt)==="IHDR"}function zS(t,e){return V(t,e+Jt,dt)===An&&V(t,e+ke,oa.length)===oa}function HS(t,e,n){const r=V(t,e+Jt,dt);return r===d_||r===An||r===ia&&n}function GS(t,e){return V(t,e+Jt,dt)===VS}function ZS(t,e){return V(t,e+Jt,dt)===qS}function WS(t,e){const n=[f_,h_],r=V(t,e+Jt,dt);return n.includes(r)}function YS(t,e){e+=ke+oa.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function QS(t,e){const o=yr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function KS(t,e){return t.getUint32(e+4)}function XS(t,e,n,r){const{offsets:s,sizes:l}=JS(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=eC(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=tC(t,s.itemCount,e);return{type:"iloc",items:nC(t,e,s,l,a,c,d,f),length:r}}function JS(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function eC(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function tC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function nC(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=rC(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Ei(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=oC(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Ei(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Ei(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function rC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function oC(t,e,n,r){if((e===1||e===2)&&r>0)return Ei(t,n,r)}function Ei(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),KS(t,e)):0}const iC=1718909296,sC=1768977008,lC=1835365473,aC=1768714083,cC=1768517222,uC=1768842853,dC=1768973167,fC=1668246642,__=1165519206,sa=1835625829,hC=1970432288;function Ti(t,e){const{length:s,contentOffset:l}=_C(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===iC)return EC(t,l,s);if(a===sC)return TC(t,e,l,s);if(a===dC)return BC(t,e,l,s);if(a===fC)return NC(t,l,s);const c=t.getUint8(l);return a===lC?$C(t,e,l+1,s):a===aC?XS(t,c,l+1,s):a===cC?FC(t,e,c,l+1,s):a===uC?OC(t,e,c,l+1,s):{type:void 0,length:s}}function _C(t,e){const l=t.getUint32(e);return mC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:pC(l)&&gC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function mC(t){return t===0}function pC(t){return t===1}function gC(t,e){return t.getUint32(e+8)===0}function m_(t){{const e={},n=yC(t);return n?(e.tiffHeaderOffset=bC(t,n),e.xmpChunks=xC(n),e.iccChunks=CC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function yC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Ti(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function bC(t,e){try{const n=wC(e).itemId,r=la(e,n),o=r.baseOffset+r.extents[0].extentOffset;return kC(t,o)}catch{return}}function wC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===__)}function la(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function kC(t,e){return e+4+t.getUint32(e)}function xC(t){try{const e=SC(t).itemId,n=la(t,e),r=la(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function SC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===sa&&e.contentType==="application/rdf+xml")}function CC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function EC(t,e,n){return{type:"ftyp",majorBrand:V(t,e,4),length:n}}function TC(t,e,n,r){return{type:"iprp",subBoxes:Bi(t,n,r-(n-e)),length:r}}function BC(t,e,n,r){return{type:"ipco",properties:Bi(t,n,r-(n-e)),length:r}}function NC(t,e,n){return{type:"colr",icc:IC(t,e),length:n}}function IC(t,e){const r=V(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function $C(t,e,n,r){return{type:"meta",subBoxes:Bi(t,n+3,r-(n+3-e)),length:r}}function Bi(t,e,n){const r=[__,sa],o=[];let s=e;for(;s<e+n;){const l=Ti(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function FC(t,e,n,r,o){const{offsets:s}=AC(n,r);return{type:"iinf",itemInfos:Bi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function AC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function OC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=yr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=yr(t,r),r+=l.itemName.length+1,l.itemType===sa?(l.contentType=yr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=yr(t,r),r+=l.contentEncoding.length+1)):l.itemType===hC&&(l.itemUri=yr(t,r),r+=l.itemUri.length+1)),l}const p_={isHeicFile:DC,findHeicOffsets:PC};function DC(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Ti(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function PC(t){return m_(t)}const g_={isAvifFile:MC,findAvifOffsets:LC};function MC(t){if(!t)return!1;try{const e=Ti(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function LC(t){return m_(t)}const y_={isWebpFile:vC,findOffsets:VC};function vC(t){const n="RIFF",o="WEBP";return!!t&&V(t,0,n.length)===n&&V(t,8,o.length)===o}function VC(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=V(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,V(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const b_={isGifFile:UC,findOffsets:jC},qC=6,RC=["GIF87a","GIF89a"];function UC(t){return!!t&&RC.includes(V(t,0,qC))}function jC(){return{gifHeaderOffset:0}}const zC={parseAppMarkers:HC};function HC(t,e){if(Zh.isTiffFile(t))return On(Zh.findTiffOffsets(),"tiff","TIFF");if(Wh.isJpegFile(t))return On(Wh.findJpegOffsets(t),"jpeg","JPEG");if(u_.isPngFile(t))return On(u_.findPngOffsets(t,e),"png","PNG");if(p_.isHeicFile(t))return On(p_.findHeicOffsets(t),"heic","HEIC");if(g_.isAvifFile(t))return On(g_.findAvifOffsets(t),"avif","AVIF");if(y_.isWebpFile(t))return On(y_.findOffsets(t),"webp","WebP");if(b_.isGifFile(t))return On(b_.findOffsets(t),"gif","GIF");throw new Error("Invalid image format")}function On(t,e,n){return j({},t,{fileType:{value:e,description:n}})}const v={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},w_={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:v.XResolution},283:{name:"YResolution",description:v.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:v.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:v.LightSource},50779:{name:"CalibrationIlluminant2",description:v.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"},GC={33434:{name:"ExposureTime",description:v.ExposureTime},33437:{name:"FNumber",description:v.FNumber},34850:{name:"ExposureProgram",description:v.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:v.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:v.ShutterSpeedValue},37378:{name:"ApertureValue",description:v.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:v.MeteringMode},37384:{name:"LightSource",description:v.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:v.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:Xl},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:v.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:v.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:v.CustomRendered},41986:{name:"ExposureMode",description:v.ExposureMode},41987:{name:"WhiteBalance",description:v.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:v.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:v.Contrast},41993:{name:"Saturation",description:v.Saturation},41994:{name:"Sharpness",description:v.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=`${t[0][0]/t[0][1]}-${t[1][0]/t[1][1]} mm`;return t[3][1]===0?`${e} f/?`:`${e} f/${1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},ZC={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Si},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Si},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:Xl},28:{name:"GPSAreaInformation",description:Xl},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},WC={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},YC={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},k_=j({},w_,GC),aa="0th",x_="1st",S_="exif",C_="gps",E_="interoperability",T_="mpf",en={[aa]:k_,[x_]:w_,[S_]:k_,[C_]:ZC,[E_]:WC,[T_]:YC},B_={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ca={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},F={getAsciiValue:QC,getByteAt:N_,getAsciiAt:KC,getShortAt:XC,getLongAt:Ni,getRationalAt:JC,getUndefinedAt:e3,getSlongAt:ua,getSrationalAt:t3,getIfdPointerAt:n3,typeSizes:B_,tagTypes:ca,getTypeSize:r3};function QC(t){return t.map(e=>String.fromCharCode(e))}function N_(t,e){return t.getUint8(e)}function KC(t,e){return t.getUint8(e)}function XC(t,e,n){return t.getUint16(e,n===Fn.LITTLE_ENDIAN)}function Ni(t,e,n){return t.getUint32(e,n===Fn.LITTLE_ENDIAN)}function JC(t,e,n){return[Ni(t,e,n),Ni(t,e+4,n)]}function e3(t,e){return N_(t,e)}function ua(t,e,n){return t.getInt32(e,n===Fn.LITTLE_ENDIAN)}function t3(t,e,n){return[ua(t,e,n),ua(t,e+4,n)]}function n3(t,e,n){return Ni(t,e,n)}function r3(t){if(ca[t]===void 0)throw new Error("No such type found.");return B_[ca[t]]}const o3={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function I_(t,e,n){return e+F.getLongAt(t,e+4,n)}function kr(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=i3(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=s3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description}),r+=a}if(r<t.byteLength-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===aa&&(c.Thumbnail=kr(t,x_,n,n+d,o,!0))}return c}function i3(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function s3(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),h=F.getLongAt(t,r+c,o);let _;if(F.typeSizes[f]===void 0||!s&&en[e][d]===void 0)return;if(l3(f,h))_=$_(t,r+u,f,h,o);else{const g=F.getLongAt(t,r+u,o);if(a3(t,n,g,f,h)){const k=d===33723;_=$_(t,n+g,f,h,o,k)}else _="<faulty value>"}f===F.tagTypes.ASCII&&(_=c3(_),_=u3(_));let p=`undefined-${d}`,m=_;if(en[e][d]!==void 0)if(en[e][d].name!==void 0&&en[e][d].description!==void 0){p=en[e][d].name;try{m=en[e][d].description(_)}catch{m=F_(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(p=en[e][d],m=""+_[0]/_[1]):(p=en[e][d],m=F_(_));return{id:d,name:p,value:_,description:m}}function l3(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function $_(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(o3[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function a3(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function c3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function u3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function F_(t){return t instanceof Array?t.join(", "):t}const A_="Exif IFD Pointer",O_="GPS Info IFD Pointer",D_="Interoperability IFD Pointer",P_={read:d3};function d3(t,e,n){const r=Fn.getByteOrder(t,e);let o=f3(t,e,r,n);return o=h3(o,t,e,r,n),o=_3(o,t,e,r,n),o=m3(o,t,e,r,n),o}function f3(t,e,n,r){return kr(t,aa,e,I_(t,e,n),n,r)}function h3(t,e,n,r,o){return t[A_]!==void 0?j(t,kr(e,S_,n,n+t[A_].value,r,o)):t}function _3(t,e,n,r,o){return t[O_]!==void 0?j(t,kr(e,C_,n,n+t[O_].value,r,o)):t}function m3(t,e,n,r,o){return t[D_]!==void 0?j(t,kr(e,E_,n,n+t[D_].value,r,o)):t}const p3={read:g3},xr=16;function g3(t,e,n){const r=Fn.getByteOrder(t,e),o=kr(t,T_,e,I_(t,e,r),r,n);return y3(t,e,o,r)}function y3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/xr);s++){o[s]={};const l=fo(n.MPEntry.value,s*xr,F.getTypeSize("LONG"),r);o[s].ImageFlags=b3(l),o[s].ImageFormat=w3(l),o[s].ImageType=k3(l);const a=fo(n.MPEntry.value,s*xr+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=x3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=fo(n.MPEntry.value,s*xr+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=fo(n.MPEntry.value,s*xr+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),Rh(o[s],"base64",function(){return Uh(this.image)})}return n.Images=o,n}function fo(t,e,n,r){if(r===Fn.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function b3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function w3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function k3(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function x3(t,e,n,r){return S3(t)?0:fo(e.value,t*xr+8,F.getTypeSize("LONG"),n)+r}function S3(t){return t===0}const C3={read:E3};function E3(t,e){const n=T3(t,e),r=$3(t,e,n);return{"Bits Per Sample":B3(t,e,n),"Image Height":N3(t,e,n),"Image Width":I3(t,e,n),"Color Components":r,Subsampling:r&&F3(t,e,r.value,n)}}function T3(t,e){return F.getShortAt(t,e)}function B3(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function N3(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function I3(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function $3(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function F3(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?A3(l)+O3(l):""}}function A3(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function O3(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const D3={read:P3};function P3(t,e){const n=M3(t,e),r=U3(t,e,n),o=j3(t,e,n),s={"JFIF Version":L3(t,e,n),"Resolution Unit":v3(t,e,n),XResolution:q3(t,e,n),YResolution:R3(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=z3(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function M3(t,e){return F.getShortAt(t,e)}function L3(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function v3(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:V3(s)}}function V3(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function q3(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function R3(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function U3(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function j3(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function z3(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const tn={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:da},336:{name:"Time Sent",description:fa},346:{name:"Coded Character Set",description:M_,encoding_name:M_},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:da},572:{name:"Time Created",description:fa},574:{name:"Digital Creation Date",description:da},575:{name:"Digital Creation Time",description:fa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function da(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function fa(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function M_(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const H3={get:G3};function G3(){if(typeof TextDecoder<"u")return TextDecoder}const L_={decode:Z3,TAG_HEADER_SIZE:5};function Z3(t,e){const n=H3.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return W3(r)}function W3(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Y3=943868237,v_=4,ha=v_+8,Q3=1028,V_=5,_a={read:K3};function K3(t,e,n){try{if(Array.isArray(t))return q_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=X3(t,e);return q_(t,r,o,n)}catch{return{}}}function X3(t,e){for(;e+ha<=t.byteLength;){const n=J3(t,e);if(eE(n))return{naaBlock:n,dataOffset:e+ha};e+=ha+n.size+tE(n)}throw new Error("No IPTC NAA resource block.")}function J3(t,e){if(t.getUint32(e,!1)!==Y3)throw new Error("Not an IPTC resource block.");return{type:t.getUint16(e+v_),size:t.getUint16(e+10)}}function eE(t){return t.type===Q3}function tE(t){return t.size%2!==0?1:0}function q_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=nE(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=V_+c}return o}function nE(t,e,n,r,o){if(rE(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!tn.iptc[a])return{tag:void 0,tagSize:c};const u=oE(t,e+V_,c),d={id:a,name:iE(tn.iptc[a],a,u),value:u,description:aE(tn.iptc[a],u,n,r)};return dE(a)&&(d.repeatable=!0),fE(a)&&(d.encoding=tn.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function rE(t,e){return t.getUint8(e)!==28}function oE(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function iE(t,e,n){return t?sE(t)?t:lE(t)?t.name(n):t.name:`undefined-${e}`}function sE(t){return typeof t=="string"}function lE(t){return typeof t.name=="function"}function aE(t,e,n,r){if(uE(t))try{return t.description(e,n)}catch{}return cE(t,e)?L_.decode(r,e):e}function cE(t,e){return t&&e instanceof Array}function uE(t){return t&&t.description!==void 0}function dE(t){return tn.iptc[t]&&tn.iptc[t].repeatable}function fE(t){return tn.iptc[t]&&tn.iptc[t].encoding_name!==void 0}const Ii={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>v.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Sr(v.XResolution,t),"tiff:YResolution":t=>Sr(v.YResolution,t),"exif:ApertureValue":t=>Sr(v.ApertureValue,t),"exif:GPSLatitude":U_,"exif:GPSLongitude":U_,"exif:FNumber":t=>Sr(v.FNumber,t),"exif:FocalLength":t=>Sr(v.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>v.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>v.ColorSpace(hE(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return v.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>v.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>v.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>v.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>v.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return R_(t)?v.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>v.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>v.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>v.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>v.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Sr(v.ShutterSpeedValue,t),"exif:WhiteBalance":t=>v.WhiteBalance(parseInt(t,10))};function Sr(t,e){return R_(e)?t(e.split("/")):e}function hE(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function R_(t){return/^-?\d+\/-?\d+$/.test(t)}function U_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const _E={get:mE};function mE(){if(typeof DOMParser<"u")return new DOMParser;try{return new(__non_webpack_require__("@xmldom/xmldom")).DOMParser({errorHandler:{error:()=>{throw new Error("Faulty XML")}}})}catch{return}}const j_={read:pE};function pE(t,e){const n={};if(typeof t=="string")return $i(n,t),n;const[r,o]=gE(t,e),s=$i(n,r);if(o){const l=$i(n,o);!s&&!l&&(delete n._raw,$i(n,ma(t,e)))}return n}function gE(t,e){if(e.length===0)return[];const n=[ma(t,e.slice(0,1))];return e.length>1&&n.push(ma(t,e.slice(1))),n}function ma(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function $i(t,e){try{const{doc:n,raw:r}=yE(e);t._raw=(t._raw||"")+r;const o=z_(n);return j(t,G_(H_(o,!0))),!0}catch{return!1}}function yE(t){const e=_E.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:V(t,0,t.byteLength),r=e.parseFromString(bE(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function bE(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function z_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return z_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function H_(t,e=!1){const n=wE(t);return kE(n)?e?{}:xE(n[0]):SE(n)}function wE(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function kE(t){return t.length===1&&t[0].nodeName==="#text"}function xE(t){return t.nodeValue}function SE(t){const e={};return t.forEach(n=>{if(CE(n)){const r=EE(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function CE(t){return t.nodeName&&t.nodeName!=="#text"}function EE(t){return{attributes:TE(t),value:H_(t)}}function TE(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function G_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{j(e,pa(o.attributes)),typeof o.value=="object"&&j(e,Z_(o.value))})}return e}function pa(t){const e={};for(const n in t)try{BE(n)&&(e[Ai(n)]={value:t[n],attributes:{},description:Dt(t[n],n)})}catch{}return e}function BE(t){return t!=="rdf:parseType"&&!Fi(t)}function Fi(t){return t.split(":")[0]==="xmlns"}function Ai(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Dt(t,e=void 0){if(Array.isArray(t)){const n=NE(t);return e&&typeof Ii[e]=="function"?Ii[e](t,n):n}if(typeof t=="object")return IE(t);try{return e&&typeof Ii[e]=="function"?Ii[e](t):decodeURIComponent(escape(t))}catch{return t}}function NE(t){return t.map(e=>e.value!==void 0?Dt(e.value):Dt(e)).join(", ")}function IE(t){const e=[];for(const n in t)e.push(`${$E(n)}: ${Dt(t[n].value)}`);return e.join("; ")}function $E(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function Z_(t){const e={};for(const n in t)try{Fi(n)||(e[Ai(n)]=FE(t[n],n))}catch{}return e}function FE(t,e){return OE(t)?DE(t,e):AE(t)?{value:"",attributes:{},description:""}:W_(t)?Y_(t,e):Q_(t)?K_(t,e):X_(t)?J_(t,e):LE(t)?vE(t,e):ga(t,e)}function AE(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function OE(t){return Array.isArray(t)}function DE(t,e){return ga(t[t.length-1],e)}function W_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function Y_(t,e){const n=ho(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),j(n,ho(t),PE(t));const r=ME(t);return{value:r,attributes:n,description:Dt(r,e)}}function ho(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Fi(n)&&(e[Ai(n)]=t.attributes[n]);return e}function PE(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Fi(n)&&(e[Ai(n)]=t.value[n].value);return e}function ME(t){return t1(t.value["rdf:value"])||t.value["rdf:value"].value}function Q_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function K_(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(j(n.value,pa(t.value["rdf:Description"].attributes)),j(n.attributes,ho(t)),t=t.value["rdf:Description"]),j(n.value,Z_(t.value)),n.description=Dt(n.value,e),n}function X_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function J_(t,e){const n=pa(t.attributes);return{value:n,attributes:{},description:Dt(n,e)}}function LE(t){return e1(t.value)!==void 0}function e1(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function vE(t,e){let n=e1(t.value).value["rdf:li"];const r=ho(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(VE(s))}),{value:o,attributes:r,description:Dt(o,e)}}function VE(t){return W_(t)?Y_(t):Q_(t)?K_(t).value:X_(t)?J_(t).value:ga(t)}function ga(t,e){const n=t1(t)||G_(t.value);return{value:n,attributes:ho(t),description:Dt(n,e)}}function t1(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},n1=24,ya={2e3:{name:"PathInformation",description:qE},2999:{name:"ClippingPathName",description(t){const[,e]=qh(t,0);return e}}};function qE(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+n1){const s=F.getShortAt(t,o);ba[s]&&(n[s]||(n[s]=ba[s].description),r.push({type:s,path:ba[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const ba={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:Oi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:Oi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:Oi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:Oi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:UE}};function Oi(t,e){const r=[];for(let o=0;o<n1;o+=8)r.push(RE(t,e+o));return r}function RE(t,e){const n=Dn(t,e,8);return[Dn(t,e+4,8),n]}function UE(t,e){return[[Dn(t,e,8),Dn(t,e+4,8),Dn(t,e+8,8),Dn(t,e+12,8)],Dn(t,e+16,8)]}function Dn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(jh("1",32-n),2);return o*nS(s.toString(2)+"."+tS(l.toString(2),32-n,"0"),2)}const jE={read:GE},r1="8BIM",zE=2,HE=4,o1=r1.length;function GE(t,e){const n=Vh(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=V(n,o,o1);o+=o1;const l=F.getShortAt(n,o);o+=zE;const{tagName:a,tagNameSize:c}=ZE(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=HE,s===r1){const d=Vh(n.buffer,o,u),f={id:l,value:V(d,0,u)};if(ya[l]){try{f.description=ya[l].description(d)}catch{f.description="<no description formatter>"}r[a||ya[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function ZE(t,e){const[n,r]=qh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const i1={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},s1={4:{name:"Preferred CMM type",value:(t,e)=>V(t,e,4),description:t=>t!==null?wa(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>V(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>V(t,e,4)},20:{name:"Connection Space",value:(t,e)=>V(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>WE(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>YE(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>V(t,e,4),description:t=>wa(t)},48:{name:"Device Manufacturer",value:(t,e)=>V(t,e,4),description:t=>wa(t)},52:{name:"Device Model Number",value:(t,e)=>V(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>V(t,e,4)}};function WE(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function YE(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function wa(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const l1={read:oT},QE=84,KE=128,XE="acsp",JE="desc",eT="mluc",tT="text",nT="sig ",rT=12;function oT(t,e,n){return n&&e[0].compressionMethod!==xi?iT(t,e):lT(t,e)}function iT(t,e){if(!sT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return Hh(n,e[0].compressionMethod,"dataview").then(a1).catch(()=>({}))}function sT(t){return t===zh}function lT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=aT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return a1(new DataView(r.buffer))}catch{return{}}}function aT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function cT(t){return t.length<KE+4}function uT(t,e){return t.length<e+rT}function a1(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<QE)throw new Error("ICC profile too short");const r={},o=Object.keys(s1);for(let c=0;c<o.length;c++){const u=o[c],d=s1[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Di(e.slice(36,40))!==XE)throw new Error("ICC profile: missing signature");if(cT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(uT(e,a))return r;const u=V(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=V(t,d,4);if(h===JE){const _=t.getUint32(d+8);if(_>f)return r;const p=Di(e.slice(d+12,d+_+11));_o(r,u,p)}else if(h===eT){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let k=0;k<_;k++){const y=V(t,m+0,2),w=V(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=Jx(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)_o(r,u,g[0].text);else{const k={};for(let y=0;y<g.length;y++)k[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;_o(r,u,k)}}else if(h===tT){const _=Di(e.slice(d+8,d+f-7));_o(r,u,_)}else if(h===nT){const _=Di(e.slice(d+8,d+12));_o(r,u,_)}a=a+12}return r}function Di(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function _o(t,e,n){i1[e]?t[i1[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const dT={read:fT};function fT(t,e){return{"Image Width":hT(t,e),"Image Height":_T(t,e),"Bit Depth":mT(t,e),"Color Type":pT(t,e),Compression:gT(t,e),Filter:yT(t,e),Interlace:bT(t,e)}}function hT(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function _T(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function mT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function pT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function gT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function yT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function bT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const wT={read:ET},ka="STATE_KEYWORD",xa="STATE_COMPRESSION",Sa="STATE_LANG",kT="STATE_TRANSLATED_KEYWORD",Ca="STATE_TEXT",xT=1,ST=1,CT=6;function ET(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=TT(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(Gh.USE_EXIF&&FT(f,h))return{__exif:P_.read(u1(h),CT,r)};if(Gh.USE_IPTC&&AT(f,h))return{__iptc:_a.read(u1(h),0,r)};if(f)return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function TT(t,e,n,r,o){const s=[],l=[];let a,c=ka,u=xi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===xa){u=BT({type:r,dataView:t,offset:e+f}),r===An&&(f+=xT),c=c1(r,c);continue}else if(c===Ca){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=c1(r,c):c===ka?s.push(h):c===Sa&&l.push(h)}if(u!==xi&&!o)return{};const d=Hh(a,u);return d instanceof Promise?d.then(f=>Ea(f,r,l,s)).catch(()=>Ea("<text using unknown compression>".split(""),r,l,s)):Ea(d,r,l,s)}function BT({type:t,dataView:e,offset:n}){if(t===An){if(e.getUint8(n)===ST)return e.getUint8(n+1)}else if(t===ia)return e.getUint8(n);return xi}function c1(t,e){return e===ka&&[An,ia].includes(t)?xa:e===xa?t===An?Sa:Ca:e===Sa?kT:Ca}function Ea(t,e,n,r){const o=IT(t);return{name:NT(e,n,r),value:o,description:e===An?$T(t):o}}function NT(t,e,n){const r=br(n);if(t===d_||e.length===0)return r;const o=br(e);return`${r} (${o})`}function IT(t){return t instanceof DataView?V(t,0,t.byteLength):t}function $T(t){return L_.decode("UTF-8",t)}function FT(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function AT(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function u1(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return OT(e[2].replace(/\n/g,""))}function OT(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const DT={read:PT};function PT(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+wr),s=V(t,e[r]+Jt,dt);s===f_?(n["Pixels Per Unit X"]=MT(t,e[r],o),n["Pixels Per Unit Y"]=LT(t,e[r],o),n["Pixel Units"]=vT(t,e[r],o)):s===h_&&(n["Modify Date"]=VT(t,e[r],o))}return n}function MT(t,e,n){if(!Pi(t,e,n,0,4))return;const s=F.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function LT(t,e,n){if(!Pi(t,e,n,4,4))return;const s=F.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function vT(t,e,n){if(!Pi(t,e,n,8,1))return;const s=F.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function VT(t,e,n){if(!Pi(t,e,n,0,7))return;const o=F.getShortAt(t,e+ke),s=F.getByteAt(t,e+ke+2),l=F.getByteAt(t,e+ke+3),a=F.getByteAt(t,e+ke+4),c=F.getByteAt(t,e+ke+5),u=F.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Cr(o,4)}-${Cr(s,2)}-${Cr(l,2)} ${Cr(a,2)}:${Cr(c,2)}:${Cr(u,2)}`}}function Pi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Cr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const qT={read:jT},RT=4,UT=7;function jT(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=zT(r),n.Animation=HT(r),n.ImageWidth=d1(t,e+RT),n.ImageHeight=d1(t,e+UT),n}function zT(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function HT(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function d1(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const GT={read:ZT};function ZT(t){return{"GIF Version":WT(t),"Image Width":YT(t),"Image Height":QT(t),"Global Color Map":KT(t),"Bits Per Pixel":JT(t),"Color Resolution Depth":XT(t)}}function WT(t){if(6>t.byteLength)return;const r=V(t,3,3);return{value:r,description:r}}function YT(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function QT(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function KT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function XT(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function JT(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const e4=[6,7,99],t4={get:n4};function n4(t,e,n){if(r4(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),Rh(e,"base64",function(){return Uh(this.image)})}return e}function r4(t){return t&&(t.Compression===void 0||e4.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function f1(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}f1.prototype=new Error;const h1={MetadataMissingError:f1},o4={load:i4,loadView:_1,errors:h1};function i4(t,e={}){return s4(t)?(e.async=!0,l4(t,e).then(n=>Ta(n,e))):_4(t)?(e.async=!0,m4(t).then(n=>Ta(n,e))):Ta(t,e)}function s4(t){return typeof t=="string"}function l4(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?a4(t,e):c4(t,e):d4(t)?Promise.resolve(eS(t)):f4(t,e)}function a4(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function c4(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),u4(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function u4(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function d4(t){return/^data:[^;,]*(;base64)?,/.test(t)}function f4(t,{length:e}={}){return new Promise((n,r)=>{const o=h4();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function h4(){try{return __non_webpack_require__("fs")}catch{return}}function _4(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function m4(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ta(t,e){return p4(t)&&(t=new Uint8Array(t).buffer),_1(g4(t),e)}function p4(t){try{return Buffer.isBuffer(t)}catch{return!1}}function g4(t){try{return new DataView(t)}catch{return new vh(t)}}function _1(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:k,vp8xChunkOffset:y,gifHeaderOffset:w}=zC.parseAppMarkers(t,n);if(y4(c)){o=!0;const x=C3.read(t,c);e?s.file=x:s=j({},s,x)}if(b4(u)){o=!0;const x=D3.read(t,u);e?s.jfif=x:s=j({},s,x)}if(w4(d)){o=!0;const x=P_.read(t,d,r);if(x.Thumbnail&&(s.Thumbnail=x.Thumbnail,delete x.Thumbnail),e?(s.exif=x,k4(s)):s=j({},s,x),x["IPTC-NAA"]&&!m1(f)){const E=_a.read(x["IPTC-NAA"].value,0,r);e?s.iptc=E:s=j({},s,E)}if(x.ApplicationNotes&&!p1(h)){const E=j_.read(br(x.ApplicationNotes.value));e?s.xmp=E:(delete E._raw,s=j({},s,E))}if(x.ImageSourceData){const E=jE.read(x.PhotoshopSettings.value,r);e?s.photoshop=E:s=j({},s,E)}if(x.ICC_Profile&&!g1(_)){const E=l1.read(x.ICC_Profile.value,[{offset:0,length:x.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=E:s=j({},s,E)}}if(m1(f)){o=!0;const x=_a.read(t,f,r);e?s.iptc=x:s=j({},s,x)}if(p1(h)){o=!0;const x=j_.read(t,h);e?s.xmp=x:(delete x._raw,s=j({},s,x))}if(g1(_)){o=!0;const x=l1.read(t,_,n);x instanceof Promise?l.push(x.then(T)):T(x)}if(x4(p)){o=!0;const x=p3.read(t,p,r);e?s.mpf=x:s=j({},s,x)}if(S4(m)){o=!0;const x=dT.read(t,m);e?(s.png=s.png?j({},s.png,x):x,s.pngFile=x):s=j({},s,x)}if(C4(g)){o=!0;const{readTags:x,readTagsPromise:E}=wT.read(t,g,n,r);b(x),E&&l.push(E.then(B=>B.forEach(b)))}if(E4(k)){o=!0;const x=DT.read(t,k);e?s.png=s.png?j({},s.png,x):x:s=j({},s,x)}if(T4(y)){o=!0;const x=qT.read(t,y);e?s.riff=s.riff?j({},s.riff,x):x:s=j({},s,x)}if(B4(w)){o=!0;const x=GT.read(t,w);e?s.gif=s.gif?j({},s.gif,x):x:s=j({},s,x)}const C=t4.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new h1.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(x){e?s.icc=x:s=j({},s,x)}function b(x){if(e){for(const E of["exif","iptc"]){const B=`__${E}`;x[B]&&(s[E]=s[E]?j({},s.exif,x[B]):x[B],delete x[B])}s.png=s.png?j({},s.png,x):x,s.pngText=s.pngText?j({},s.png,x):x}else s=j({},s,x.__exif?x.__exif:{},x.__iptc?x.__iptc:{},x)}}function y4(t){return t!==void 0}function b4(t){return t!==void 0}function w4(t){return t!==void 0}function k4(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Si(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Si(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function m1(t){return t!==void 0}function p1(t){return Array.isArray(t)&&t.length>0}function g1(t){return Array.isArray(t)&&t.length>0}function x4(t){return t!==void 0}function S4(t){return t!==void 0}function C4(t){return t!==void 0}function E4(t){return t!==void 0}function T4(t){return t!==void 0}function B4(t){return t!==void 0}async function y1(t,e=null){if(t.location)return t.location;try{const n=await o4.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=sd();if(e&&setTimeout(()=>{!r.value&&e&&Ve.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class mo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...oe.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=J.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await y1(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ye(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ye(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Ur(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){Ve.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Mi=i.ref([]),Li=i.ref([]);function N4(t){Mi.value=[...Mi.value,t]}function I4(t,e,n){Li.value.push({id:n,name:t,callback:e})}function $4(t){Li.value=Li.value.filter(e=>e.id!==t)}function b1(t,e,n){for(let r of Mi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Li.value)o.name===r.name&&o.callback(n)}function w1(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function F4(t){Mi.value=t,window.addEventListener("keydown",e=>{b1("keydown",w1(e),e)}),window.addEventListener("keyup",e=>{b1("keyup",w1(e),e)})}function k1(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new mo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const Ne={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=oe.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=Ne.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Ne.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}const o=await fetch(Ne.url(t),e);if(A4(o),n){if(r<Ne.abortControllers[n].timestamp)return{abort:!0};delete Ne.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=oe.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Ne.call(t,e),await Ur(n);while(!r(o));return o},async get(t,e){var n;return await Ne.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=oe.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await Ne.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=oe.value.request)==null?void 0:r.headers},...n})}};function A4(t){const e=oe.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function O4(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function x1(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function D4(t,e){return{list(n){return Ne.post(`${t}/list`,n)},summary(n){return Ne.post(`${t}/summary`,{filter:n})},details(n,r){return Ne.get(`${t}/${n.id}/details`,{params:{fields:r}})},async detailsAndStore(n,r){const o=await Ne.get(`${t}/${n.id}/details`,{params:{fields:r}});return ye(o)},fieldOptions(){return Ne.get(`${t}/field-options`)},applyAction(n,r,o){return Ne.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o})},batchAction(n,r,o){return Ne.post(`${t}/batch-action`,{action:n,filter:{id:r.map(s=>s.id)},data:o})},export(n,r){return Mh(`${t}/export`,r||"export.csv",{filter:n})},...e}}function S1(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new mo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),Ve.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function Mt(t,e){localStorage.setItem(t,JSON.stringify(e))}function St(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function P4(t,e=""){const n=Ba(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Ba(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Ba(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const M4={name:"quasar-ui-danx",version:"0.4.37",author:"Dan <dan@flytedesk.com>",description:"DanX Vue / Quasar component library",license:"MIT",type:"module",main:"./dist/danx.umd.js",module:"./dist/danx.es.js",types:"types/index.d.ts",scripts:{dev:"cd dev && quasar dev && cd ..",build:"vite build",preview:"vite preview",postversion:'yarn build && npm publish && cd .. && git add ui && git commit -m "v$npm_package_version" && git tag "v$npm_package_version" && git push'},repository:{type:"git",url:"https://github.com/flytedan/quasar-ui-danx"},peerDependencies:{quasar:"^2.0.0",vue:"^3.4.21"},devDependencies:{"@quasar/extras":"^1.16.4","@types/luxon":"^3.4.2","@types/node":"^20.12.7","@typescript-eslint/eslint-plugin":"^7.6.0","@typescript-eslint/parser":"^7.6.0","@vitejs/plugin-vue":"^5.0.4",autoprefixer:"^10.4.19",chalk:"^4.1.0","core-js":"^3.0.0",cssnano:"^4.1.10",eslint:"^8.5.0","eslint-plugin-import":"^2.29.1","eslint-plugin-vue":"^9.24.1","fs-extra":"^8.1.0",postcss:"^8.4.38",quasar:"^2.0.0",sass:"^1.33.0",tailwindcss:"^3.4.3","ts-node":"^10.9.2",typescript:"^5.4.4",vite:"^5.2.8","vite-plugin-dts":"^3.8.1","vite-svg-loader":"^5.1.0",vue:"^3.4.21","vue-eslint-parser":"^9.4.2","vue-router":"^4.3.2"},dependencies:{"@heroicons/vue":"v1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"^10.7.2","danx-icon":"^1.0.2",exifreader:"^4.21.1",gsap:"^3.12.5",luxon:"^3.4.4",yaml:"^2.4.5"},browserslist:["last 4 Chrome versions","last 4 Firefox versions","last 2 Edge versions","last 4 Safari versions","last 4 Android versions","last 4 ChromeAndroid versions","last 4 FirefoxAndroid versions","last 4 iOS versions"]},{version:C1}=M4;function L4(){console.log(`Installing Danx UI ${C1}... Nothing to do really.`)}S.ActionForm=cc,S.ActionFormDialog=kp,S.ActionMenu=Rs,S.ActionTable=Yu,S.ActionTableColumn=Fu,S.ActionTableHeaderColumn=Pu,S.ActionTableLayout=ew,S.ActionToolbar=Qu,S.ActionVnode=Og,S.AddressFormat=Sg,S.AuditHistoryItem=dw,S.AuditHistoryItemValue=Hs,S.AutoHeightTransition=zg,S.BadgeTab=vg,S.BooleanField=Hi,S.CaretDownIcon=Pa,S.CollapsableFiltersSidebar=Uu,S.CollapsableSidebar=dc,S.ColumnListItem=js,S.ColumnSettingsDialog=mb,S.ConfirmActionDialog=Za,S.ConfirmDialog=Et,S.ConfirmPasswordField=Up,S.ContentDrawer=Xi,S.CreateNewWithNameDialog=Wa,S.DateField=Zi,S.DateRangeField=Wi,S.DateTime=D,S.DateTimeField=Jp,S.DateTimePicker=Yi,S.DragAndDrop=Us,S.DragHandleDotsIcon=Ma,S.DragHandleIcon=La,S.EditOnClickTextField=i0,S.EditableDiv=n0,S.EmptyTableState=Zu,S.ExportButton=Aa,S.FieldLabel=_t,S.FilePreview=Tr,S.FileUpload=mo,S.FileUploadButton=l0,S.FilterIcon=va,S.FilterItem=qu,S.FilterList=Ru,S.FilterListToggle=ju,S.FilterToolbarLayout=Ab,S.FilterableField=zs,S.FlashMessages=Ve,S.FlatListFormat=Cg,S.FullScreenCarouselDialog=Ya,S.FullScreenDialog=Ap,S.GpsCoordinatesFormat=Bg,S.HandleDraggable=Au,S.IconWithTextFormat=Ig,S.ImageIcon=ji,S.IndicatorTab=Rg,S.InfoDialog=Qa,S.InlineDateTimeField=u0,S.InputDialog=Dp,S.IntegerField=Xa,S.InteractiveTooltip=Pg,S.LabelValueBlock=p0,S.LabelValueFormat=Fg,S.LabeledInput=Gi,S.ListDragAndDrop=Ou,S.ListItemDraggable=Du,S.ListTransition=mc,S.MaxHeightTransition=Hg,S.MaxLengthCounter=Ka,S.MultiFileField=Ja,S.MultiKeywordField=ec,S.NavigationMenu=_w,S.NewPasswordField=w0,S.NumberField=Er,S.NumberRangeField=bo,S.PanelsDrawer=Gu,S.PanelsDrawerPanels=zu,S.PanelsDrawerTabs=Hu,S.PdfIcon=Va,S.PercentIcon=qa,S.PopoverMenu=_c,S.PreviousNextControls=za,S.RefreshButton=Oa,S.RenderComponent=hc,S.RenderVnode=ln,S.RenderedForm=Ki,S.RenderedFormDialog=ig,S.SERVER_TZ=Gl,S.SaveStateIndicator=ac,S.SelectDrawer=E0,S.SelectField=Mn,S.SelectOrCreateField=B0,S.SelectWithChildrenField=tc,S.ShowHideButton=Da,S.SingleFileField=nc,S.SkipNextIcon=Ra,S.SkipPreviousIcon=Ua,S.SlideTransition=Gg,S.SliderNumberField=D0,S.StaggeredListTransition=lb,S.SvgImg=uc,S.TableSummaryRow=Wu,S.TextField=on,S.TitleColumnFormat=Mu,S.TrashIcon=go,S.VisibleColumnsToggleButtons=wb,S.WarningIcon=ja,S.WysiwygField=lc,S.XIcon=yo,S.activeActionVnode=bn,S.addHotkey=N4,S.applyCssVars=P4,S.autoRefreshObject=Xu,S.buildCssVars=Ba,S.centerTruncate=Gx,S.cloneDeep=Sw,S.configure=I1,S.danxOptions=oe,S.dbDateTime=Wl,S.diffInDays=Kx,S.download=ki,S.downloadFile=Mh,S.downloadFileResponse=Lh,S.fBoolean=Ah,S.fCurrency=bi,S.fCurrencyNoCents=jx,S.fDate=xt,S.fDateTime=yi,S.fElapsedTime=Ux,S.fJSON=Ph,S.fLocalizedDateTime=gr,S.fMarkdownCode=Qx,S.fNameOrCount=Dh,S.fNumber=Ot,S.fPercent=Oh,S.fPhone=Zx,S.fQDate=Vx,S.fSecondsToTime=Rx,S.fShortCurrency=zx,S.fShortNumber=Fh,S.fShortSize=Hx,S.fetchResourceListWithSelected=O4,S.getFilterFromUrl=Vu,S.getItem=St,S.getResponseHeader=Kl,S.getUrlParam=x1,S.incrementName=nd,S.install=L4,S.isJSON=rd,S.latestCallOnly=Ys,S.listen=I4,S.localizedDateTime=Zl,S.mapSortBy=vu,S.metersToMiles=Tw,S.milesToMeters=Bw,S.minmax=Ew,S.notify=mw,S.parseCoords=Nw,S.parseDateTime=At,S.parseGenericDateTime=$h,S.parseMarkdownCode=wi,S.parseMarkdownJSON=Wx,S.parseMarkdownYAML=Yx,S.parseQDate=Yl,S.parseQDateTime=Ql,S.parseSqlDateTime=qx,S.pollUntil=Cw,S.refreshApplication=kw,S.registerHotkeys=F4,S.registerStickyScrolling=Lu,S.remoteDateTime=Ih,S.remove=Rr,S.replace=Zs,S.request=Ne,S.resolveFileLocation=y1,S.setItem=Mt,S.sleep=Ur,S.stopAutoRefreshObject=yw,S.storeObject=ye,S.storeObjects=pw,S.uniqueBy=xw,S.unlisten=$4,S.useActionRoutes=D4,S.useActions=bw,S.useCompatibility=sd,S.useControls=kb,S.useDebounceFn=rn,S.useMultiFileUpload=k1,S.useSingleFileUpload=S1,S.useTableColumns=tw,S.version=C1,S.waitForRef=Ws,S.withDefaultActions=ww,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
154
154
  //# sourceMappingURL=danx.umd.js.map