1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{9361:function(e,t){"use strict";t.Z=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},6489:function(e,t){"use strict";/*! 2 * cookie 3 * Copyright(c) 2012-2014 Roman Shtylman 4 * Copyright(c) 2015 Douglas Christopher Wilson 5 * MIT Licensed 6 */ t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(";"),o=(t||{}).decode||r,s=0;s<i.length;s++){var l=i[s],c=l.indexOf("=");if(!(c<0)){var u=l.substring(0,c).trim();if(void 0==n[u]){var h=l.substring(c+1,l.length).trim();'"'===h[0]&&(h=h.slice(1,-1)),n[u]=a(h,o)}}}return n},t.q=function(e,t,r){var a=r||{},o=a.encode||n;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
6d");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite){var u="string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite;switch(u){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}}return l};var r=decodeURIComponent,n=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(r){return e}}},640:function(e,t,r){"use strict";var n=r(1742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,o,s,l,c,u,h,d=!1;t||(t={}),o=t.debug||!1;try{if(l=n(),c=document.createRange(),u=document.getSelection(),(h=document.createElement("span")).textContent=e,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[t.format]||i.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(p){o&&console.error("unable to copy using execCommand: ",p),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(f){o&&console.error("unable to copy using clipboardData: ",f),o&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),h&&document.body.removeChild(h),l()}return d}},9664:function(e,t){var r;(r=function(e){"use strict";/*! 7 * ScrollToPlugin 3.10.4 8 * https://greensock.com 9 * 10 * @license Copyright 2008-2022, GreenSock. All rights reserved. 11 * Subject to the terms at https://greensock.com/standard-license or for 12 * Club GreenSock members, the agreement issued with that membership. 13 * @author: Jack Doyle, [email protected] 14 */ var t,r,n,i,a,o,s,l=function(){return"undefined"!=typeof window},c=function(){return t||l()&&(t=window.gsap)&&t.registerPlugin&&t},u=function(e){return"string"==typeof e},h=function(e){return"function"==typeof e},d=function(e,t){var r="x"===t?"Width":"Height",o="scroll"+r,s="client"+r;return e===n||e===i||e===a?Math.max(i[o],a[o])-(n["inner"+r]||i[s]||a[s]):e[o]-e["offset"+r]},f=function(e,t){var r="scroll"+("x"===t?"Left":"Top");return e===n&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=i[r]?i:a),function(){return e[r]}},p=function(e,t,r,n){if(h(e)&&(e=e(t,r,n)),"object"!=typeof e)return u(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var i,a={};for(i in e)a[i]="onAutoKill"!==i&&h(e[i])?e[i](t,r,n):e[i];return a},m=function(e,t){if(!(e=o(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),s=!t||t===n||t===a,l=s?{top:i.clientTop-(n.pageYOffset||i.scrollTop||a.scrollTop||0),left:i.clientLeft-(n.pageXOffset||i.scrollLeft||a.scrollLeft||0)}:t.getBoundingClientRect(),c={x:r.left-l.left,y:r.top-l.top};return!s&&t&&(c.x+=f(t,"x")(),c.y+=f(t,"y")()),c},v=function(e,t,r,n,i){return isNaN(e)||"object"==typeof e?u(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-i:"max"===e?d(t,r)-i:Math.min(d(t,r),m(e,t)[r]-i):parseFloat(e)-i},g=function(){t=c(),l()&&t&&document.body&&(n=window,a=document.body,i=document.documentElement,o=t.utils.toArray,t.config({autoKillThreshold:7}),s=t.config(),r=1)},y={version:"3.10.4",name:"scrollTo",rawVars:1,register:function(e){t=e,g()},init:function(e,i,a,o,s){r||g();var l=this,c=t.getProperty(e,"scrollSnapType");l.isWin=e===n,l.target=e,l.tween=a,i=p(i,o,e,s),l.vars=i,l.autoKill=!!i.autoKill,l.getX=f(e,"x"),l.getY=f(e,"y"),l.x=l.xPrev=l.getX(),l.y=l.yPrev=l.getY(),c&&"none"!==c&&(l.snap=1,l.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=i.x?(l.add(l,"x",l.x,v(i.x,e,"x",l.x,i.offsetX||0),o,s),l._props.push("scrollTo_x")):l.skipX=1,null!=i.y?(l.add(l,"y",l.y,v(i.y,e,"y",l.y,i.offsetY||0),o,s),l._props.push("scrollTo_y")):l.skipY=1},render:function(e,t){for(var r,i,a,o,l,c=t._pt,u=t.target,h=t.tween,f=t.autoKill,p=t.xPrev,m=t.yPrev,v=t.isWin,g=t.snap,y=t.snapInline;c;)c.r(e,c.d),c=c._next;r=v||!t.skipX?t.getX():p,a=(i=v||!t.skipY?t.getY():m)-m,o=r-p,l=s.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),f&&(!t.skipX&&(o>l||o<-l)&&r<d(u,"x")&&(t.skipX=1),!t.skipY&&(a>l||a<-l)&&i<d(u,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(h.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(h,t.vars.onAutoKillParam
vendor: 6,107 bytes, lines 14-22
14s||[]))),v?n.scrollTo(t.skipX?r:t.x,t.skipY?i:t.y):(t.skipY||(u.scrollTop=t.y),t.skipX||(u.scrollLeft=t.x)),g&&(1===e||0===e)&&(i=u.scrollTop,r=u.scrollLeft,y?u.style.scrollSnapType=y:u.style.removeProperty("scroll-snap-type"),u.scrollTop=i+1,u.scrollLeft=r+1,u.scrollTop=i,u.scrollLeft=r),t.xPrev=t.x,t.yPrev=t.y},kill:function(e){var t="scrollTo"===e;(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1)}};y.max=d,y.getOffset=m,y.buildGetter=f,c()&&t.registerPlugin(y),e.ScrollToPlugin=y,e.default=y,Object.defineProperty(e,"__esModule",{value:!0})})(t)},6038:function(e,t,r){"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,{p8:function(){return nE}});/*! 15 * GSAP 3.10.4 16 * https://greensock.com 17 * 18 * @license Copyright 2008-2022, GreenSock. All rights reserved. 19 * Subject to the terms at https://greensock.com/standard-license or for 20 * Club GreenSock members, the agreement issued with that membership. 21 * @author: Jack Doyle, [email protected] 22*/ var a,o,s,l,c,u,h,d,f,p,m,v,g,y,b,x,_,w,C,N,T,j,S,E,k,O,R,P,A,M,I={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},D=2*Math.PI,B=D/4,F=0,z=Math.sqrt,H=Math.cos,Z=Math.sin,U=function(e){return"string"==typeof e},V=function(e){return"function"==typeof e},G=function(e){return"number"==typeof e},q=function(e){return void 0===e},K=function(e){return"object"==typeof e},Q=function(e){return!1!==e},W=function(){return"undefined"!=typeof window},X=function(e){return V(e)||U(e)},$="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Y=Array.isArray,J=/(?:-?\.?\d|\.)+/gi,ee=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,et=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,er=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,en=/[+-]=-?[.\d]+/,ei=/[^,'"\[\]\s]+/gi,ea=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,eo={},es={},el=function(e){return(es=eI(e,eo))&&r_},ec=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},eu=function(e,t){return!t&&console.warn(e)},eh=function(e,t){return e&&(eo[e]=t)&&es&&(es[e]=t)||eo},ed=function(){return 0},ef={},ep=[],em={},ev={},eg={},ey=30,eb=[],ex="",e_=function(e){var t,r,n=e[0];if(K(n)||V(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(r=eb.length;r--&&!eb[r].targetTest(n););t=eb[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new tX(e[r],t)))||e.splice(r,1);return e},ew=function(e){return e._gsap||e_(ts(e))[0]._gsap},eC=function(e,t,r){return(r=e[t])&&V(r)?e[t]():q(r)&&e.getAttribute&&e.getAttribute(t)||r},eN=function(e,t){return(e=e.split(",")).forEach(t)||e},eT=function(e){return Math.round(1e5*e)/1e5||0},ej=function(e){return Math.round(1e7*e)/1e7||0},eS=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+n:"-"===r?e-n:"*"===r?e*n:e/n},eE=function(e,t){for(var r=t.length,n=0;0>e.indexOf(t[n])&&++n<r;);return n<r},ek=function(){var e,t,r=ep.length,n=ep.slice(0);for(e=0,em={},ep.length=0;e<r;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},eO=function(e,t,r,n){ep.length&&ek(),e.render(t,r,n),ep.length&&ek()},eR=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(ei).length<2?t:U(e)?e.trim():e},eP=function(e){return e},eA=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},eM=function(e){return function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}},eI=function(e,t){for(var r in t)e[r]=t[r];return e},eL=function e(t,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(t[n]=K(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},eD=function(e,t){var r,n={};for(r in e)r in t||(n[r]=e[r]);return n},eB=function(e){var t=e.parent||_,r=e.keyframes?eM(Y(e.keyframes)):eA;if(Q(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},eF=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},ez=function(e,t,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var a,o=e[n];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=o,t.parent=t._dp=e,t},eH=function(e,t,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=t._prev,a=t._next;i?i._next=a:e[r]===t&&(e[r]=a),a?a._prev=i:e[n]===t&&(e[n]=i),t._next=t._prev=t.parent=null},eZ=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},eU=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},eV=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eG=function e(t){return!t||t._ts&&e(t.parent)},eq=function(e){return e._repeat?eK(e._tTime,e=e.duration()+e._rDelay)*e:0},eK=function(e,t){var r=Math.floor(e/=t);return e&&r===e?r-1:r},eQ=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},eW=function(e){return e._end=ej(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},eX=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=ej(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),eW(e),r._dirty||eU(r,e)),e},e$=function(e,t){var r;if((t._time||t._initted&&!t._dur)&&(r=eQ(e.rawTime(),t),(!t._dur||tt(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),eU(e,t)._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=-.00000001}},eY=function(e,t,r,n){return t.parent&&eZ(t),t._start=ej((G(r)?r:r||e!==_?e7(e,r,t):e._time)+t._delay),t._end=ej(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),ez(e,t,"_first","_last",e._sort?"_start":0),e2(t)||(e._recent=t),n||e$(e,t),e},eJ=function(e,t){return(eo.ScrollTrigger||ec("scrollTrigger",t))&&eo.ScrollTrigger.create(t,e)},e0=function(e,t,r,n){return(t8(e,t),e._initted)?!r&&e._pt&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&j!==tI.frame?(ep.push(e),e._lazy=[t,n],1
vendor: 5,412 bytes, line 22
22):void 0:1},e1=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},e2=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},e5=function(e,t,r,n){var i,a,o,s=e.ratio,l=t<0||!t&&(!e._start&&e1(e)&&!(!e._initted&&e2(e))||(e._ts<0||e._dp._ts<0)&&!e2(e))?0:1,c=e._rDelay,u=0;if(c&&e._repeat&&(u=tt(0,e._tDur,t),a=eK(u,c),e._yoyo&&1&a&&(l=1-l),a!==eK(e._tTime,c)&&(s=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==s||n||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&e0(e,t,n,r))return;for(o=e._zTime,e._zTime=t||(r?1e-8:0),r||(r=t&&!o),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=u,i=e._pt;i;)i.r(l,i.d),i=i._next;e._startAt&&t<0&&e._startAt.render(t,!0,!0),e._onUpdate&&!r&&tN(e,"onUpdate"),u&&e._repeat&&!r&&e.parent&&tN(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&eZ(e,1),!r&&(tN(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},e6=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<t)return n;n=n._prev}},e8=function(e,t,r,n){var i=e._repeat,a=ej(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:ej(a*(i+1)+e._rDelay*i):a,o>0&&!n?eX(e,e._tTime=e._tDur*o):e.parent&&eW(e),r||eU(e.parent,e),e},e4=function(e){return e instanceof tY?eU(e):e8(e,e._dur)},e3={_start:0,endTime:ed,totalDuration:ed},e7=function e(t,r,n){var i,a,o,s=t.labels,l=t._recent||e3,c=t.duration()>=1e8?l.endTime(!1):t._dur;return U(r)&&(isNaN(r)||r in s)?(a=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===a||">"===a)?(i>=0&&(r=r.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in s||(s[r]=c),s[r]):(a=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(a=a/100*(Y(n)?n[0]:n).totalDuration()),i>1?e(t,r.substr(0,i-1),n)+a:c+a):null==r?c:+r},e9=function(e,t,r){var n,i,a=G(t[1]),o=(a?2:1)+(e<2?0:1),s=t[o];if(a&&(s.duration=t[1]),s.parent=r,e){for(n=s,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=Q(i.vars.inherit)&&i.parent;s.immediateRender=Q(n.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new rr(t[0],s,t[o+1])},te=function(e,t){return e||0===e?t(e):t},tt=function(e,t,r){return r<e?e:r>t?t:r},tr=function(e,t){return U(e)&&(t=ea.exec(e))?t[1]:""},tn=function(e,t,r){return te(r,function(r){return tt(e,t,r)})},ti=[].slice,ta=function(e,t){return e&&K(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&K(e[0]))&&!e.nodeType&&e!==w},to=function(e,t,r){return void 0===r&&(r=[]),e.forEach(function(e){var n;return U(e)&&!t||ta(e,1)?(n=r).push.apply(n,ts(e)):r.push(e)})||r},ts=function(e,t,r){return U(e)&&!r&&(C||!tL())?ti.call((t||N).querySelectorAll(e),0):Y(e)?to(e,r):ta(e)?ti.call(e,0):e?[e]:[]},tl=function(e){return e=ts(e)[0]||eu("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ts(t,r.querySelectorAll?r:r===e?eu("Invalid scope")||N.createElement("div"):e)}},tc=function(e){return e.sort(function(){return .5-Math.random()})},tu=function(e){if(V(e))return e;var t=K(e)?e:{each:e},r=tG(t.ease),n=t.from||0,i=parseFloat(t.base)||0,a={},o=n>0&&n<1,s=isNaN(n)||o,l=t.axis,c=n,u=n;return U(n)?c=u=({center:.5,edges:.5,end:1})[n]||0:!o&&s&&(c=n[0],u=n[1]),function(e,o,h){var d,f,p,m,v,g,y,b,x,_=(h||t).length,w=a[_];if(!w){if(!(x="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(y=-1e8;y<(y=h[x++].getBoundingClientRect().left)&&x<_;);x--}for(g=0,w=a[_]=[],d=s?Math.min(x,_)*c-.5:n%x,f=1e8===x?0:s?_*u/x-.5:n/x|0,y=0,b=1e8;g<_;g++)p=g%x-d,m=f-(g/x|0),w[g]=v=l?Math.abs("y"===l?m:p):z(p*p+m*m),v>y&&(y=v),v<b&&(b=v);"random"===n&&tc(w),w.max=y-b,w.min=b,w.v=_=(parseFloat(t.amount)||parseFloat(t.each)*(x>_?_-1:l?"y"===l?_/x:x:Math.max(x,_/x))||0)*("edges"===n?-1:1),w.b=_<0?i-_:i,w.u=tr(t.amount||t.each)||0,r=r&&_<0?tU(r):r}return _=(w[e]-w.min)/w.max||0,ej(w.b+(r?r(_):_)*w.v)+w.u}},th=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=Math.round(parseFloat(r)/e)*e*t;return(n-n%1)/t+(G(r)?0:tr(r))}},td=function(e,t){var r,n,i=Y(e);return!i&&K(e)&&(r=i=e.radius||1e8,e.values?(e=ts(e.values),(n=!G(e[0]))&&(r*=r)):e=th(e.increment)),te(t,i?V(e)?function(t){return Math.abs((n=e(t))-t)<=r?n:t}:function(t){for(var i,a,o=parseFloat(n?t.x:t),s=parseFloat(n?t.y:0),l=1e8,c=0,u=e.length;u--;)(i=n?(i=e[u].x-o)*i+(a=e[u].y-s)*a:Math.abs(e[u]-o))<l&&(l=i,c=u);return c=!r||l<=r?e[c]:t,n||c===t||G(t)?c:c+tr(t)}:th(e))},tf=function(e,t,r,n){return te(Y(e)?!t:!0===r?(r=0,!1):!n,function(){return Y(e)?e[~~(Math.random()*e.length)]:(n=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*n)/n})},tp=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},tm=function(e,t){return function(r){return e(parseFloat(r))+(t||tr(r))}},tv=function(e,t,r){return t_(e,t,0,1,r)},tg=function(e,t,r){return te(r,function(r){return e[~~t(r)]})},ty=function e(t,r,n){var i=r-t;return Y(t)?tg(t,e(0,t.length),r):te(n,function(e){return(i+(e-t)%i)%i+t})},tb=function e(t,r,n){var i=r-t,a=2*i;return Y(t)?tg(t,e(0,t.length-1),r):te(n,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},tx=function(e){for(var t,r,n,i,a=0,o="";~(t=e.indexOf("random(",a));
22)n=e.indexOf(")",t),i="["===e.charAt(t+7),r=e.substr(t+7,n-t-7).match(i?ei:J),o+=e.substr(a,t-a)+tf(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),a=n+1;return o+e.substr(a,e.length-a)},t_=function(e,t,r,n,i){var a=t-e,o=n-r;return te(i,function(t){return r+((t-e)/a*o||0)})},tw=function e(t,r,n,i){var a=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!a){var o,s,l,c,u,h=U(t),d={};if(!0===n&&(i=1)&&(n=null),h)t={p:t},r={p:r};else if(Y(t)&&!Y(r)){for(s=1,l=[],u=(c=t.length)-2;s<c;s++)l.push(e(t[s-1],t[s]));c--,a=function(e){var t=Math.min(u,~~(e*=c));return l[t](e-t)},n=r}else i||(t=eI(Y(t)?[]:{},t));if(!l){for(o in r)t2.call(d,t,o,"get",r[o]);a=function(e){return rh(e,d)||(h?t.p:t)}}}return te(n,a)},tC=function(e,t,r){var n,i,a,o=e.labels,s=1e8;for(n in o)(i=o[n]-t)<0==!!r&&i&&s>(i=Math.abs(i))&&(a=n,s=i);return a},tN=function(e,t,r){var n,i,a=e.vars,o=a[t];if(o)return n=a[t+"Params"],i=a.callbackScope||e,r&&ep.length&&ek(),n?o.apply(i,n):o.call(i)},tT=function(e){return eZ(e),e.scrollTrigger&&e.scrollTrigger.kill(!1),1>e.progress()&&tN(e,"onInterrupt"),e},tj=function(e){var t=(e=!e.name&&e.default||e).name,r=V(e),n=t&&!r&&e.init?function(){this._props=[]}:e,i={init:ed,render:rh,add:t2,kill:rf,modifier:rd,rawVars:0},a={targetTest:0,get:0,getSetter:rs,aliases:{},register:0};if(tL(),e!==n){if(ev[t])return;eA(n,eA(eD(e,i),a)),eI(n.prototype,eI(i,eD(e,a))),ev[n.prop=t]=n,e.targetTest&&(eb.push(n),ef[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}eh(t,n),e.register&&e.register(r_,n,rv)},tS={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},tE=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},tk=function(e,t,r){var n,i,a,o,s,l,c,u,h,d,f=e?G(e)?[e>>16,e>>8&255,255&e]:0:tS.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),tS[e])f=tS[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),e="#"+n+n+(i=e.charAt(2))+i+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&255,255&f,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3)){if(f=d=e.match(J),t){if(~e.indexOf("="))return f=e.match(ee),r&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,i=(l=+f[2]/100)<=.5?l*(s+1):l+s-l*s,n=2*l-i,f.length>3&&(f[3]*=1),f[0]=tE(o+1/3,n,i),f[1]=tE(o,n,i),f[2]=tE(o-1/3,n,i)}else f=e.match(J)||tS.transparent;f=f.map(Number)}return t&&!d&&(n=f[0]/255,l=((c=Math.max(n,i=f[1]/255,a=f[2]/255))+(u=Math.min(n,i,a)))/2,c===u?o=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),o=c===n?(i-a)/h+(i<a?6:0):c===i?(a-n)/h+2:(n-i)/h+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),r&&f.length<4&&(f[3]=1),f},tO=function(e){var t=[],r=[],n=-1;return e.split(tP).forEach(function(e){var i=e.match(et)||[];t.push.apply(t,i),r.push(n+=i.length+1)}),t.c=r,t},tR=function(e,t,r){var n,i,a,o,s="",l=(e+s).match(tP),c=t?"hsla(":"rgba(",u=0;if(!l)return e;if(l=l.map(function(e){return(e=tk(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(a=tO(e),(n=r.c).join(s)!==a.c.join(s)))for(o=(i=e.replace(tP,"1").split(et)).length-1;u<o;u++)s+=i[u]+(~n.indexOf(u)?l.shift()||c+"0,0,0,0)":(a.length?a:l.length?l:r).shift());if(!i)for(o=(i=e.split(tP)).length-1;u<o;u++)s+=i[u]+l[u];return s+i[o]},tP=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in tS)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),tA=/hsl[a]?\(/,tM=function(e){var t,r=e.join(" ");if(tP.lastIndex=0,tP.test(r))return t=tA.test(r),e[1]=tR(e[1],t),e[0]=tR(e[0],t,tO(e[1])),!0},tI=(d=500,f=33,m=p=(h=Date.now)(),g=v=1e3/240,y=[],b=function e(t){var r,n,i,s,b=h()-m,x=!0===t;if(b>d&&(p+=b-f),m+=b,((r=(i=m-p)-g)>0||x)&&(s=++l.frame,c=i-1e3*l.time,l.time=i/=1e3,g+=r+(r>=v?4:v-r),n=1),x||(a=o(e)),n)for(u=0;
vendor: 13,476 bytes, line 22
22u<y.length;u++)y[u](i,c,s,t)},l={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(e){return c/(1e3/(e||60))},wake:function(){T&&(!C&&W()&&(N=(w=C=window).document||{},eo.gsap=r_,(w.gsapVersions||(w.gsapVersions=[])).push(r_.version),el(es||w.GreenSockGlobals||!w.gsap&&w||{}),s=w.requestAnimationFrame),a&&l.sleep(),o=s||function(e){return setTimeout(e,g-1e3*l.time+1|0)},E=1,b(2))},sleep:function(){(s?w.cancelAnimationFrame:clearTimeout)(a),E=0,o=ed},lagSmoothing:function(e,t){f=Math.min(t,d=e||1e8,0)},fps:function(e){v=1e3/(e||240),g=1e3*l.time+v},add:function(e,t,r){var n=t?function(t,r,i,a){e(t,r,i,a),l.remove(n)}:e;return l.remove(e),y[r?"unshift":"push"](n),tL(),n},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&u>=t&&u--},_listeners:y}),tL=function(){return!E&&tI.wake()},tD={},tB=/^[\d.\-M][\d.\-,\s]/,tF=/["']/g,tz=function(e){for(var t,r,n,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)r=a[s],t=s!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,t),i[o]=isNaN(n)?n.replace(tF,"").trim():+n,o=r.substr(t+1).trim();return i},tH=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},tZ=function(e){var t=(e+"").split("("),r=tD[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[tz(t[1])]:tH(e).split(",").map(eR)):tD._CE&&tB.test(e)?tD._CE("",e):r},tU=function(e){return function(t){return 1-e(1-t)}},tV=function e(t,r){for(var n,i=t._first;i;)i instanceof tY?e(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?e(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},tG=function(e,t){return e&&(V(e)?e:tD[e]||tZ(e))||t},tq=function(e,t,r,n){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var i,a={easeIn:t,easeOut:r,easeInOut:n};return eN(e,function(e){for(var t in tD[e]=eo[e]=a,tD[i=e.toLowerCase()]=r,a)tD[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=tD[e+"."+t]=a[t]}),a},tK=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},tQ=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/D*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*Z((e-o)*a)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:tK(s);return a=D/a,l.config=function(r,n){return e(t,r,n)},l},tW=function e(t,r){void 0===r&&(r=1.70158);var n=function(e){return e?--e*e*((r+1)*e+r)+1:0},i="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:tK(n);return i.config=function(r){return e(t,r)},i};eN("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;tq(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),tD.Linear.easeNone=tD.none=tD.Linear.easeIn,tq("Elastic",tQ("in"),tQ("out"),tQ()),P=2*(R=1/2.75),A=2.5*R,tq("Bounce",function(e){return 1-M(1-e)},M=function(e){return e<R?7.5625*e*e:e<P?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<A?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),tq("Expo",function(e){return e?Math.pow(2,10*(e-1)):0}),tq("Circ",function(e){return-(z(1-e*e)-1)}),tq("Sine",function(e){return 1===e?1:-H(e*B)+1}),tq("Back",tW("in"),tW("out"),tW()),tD.SteppedEase=tD.steps=eo.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,n=e+(t?0:1),i=t?1:0,a=.99999999;return function(e){return((n*tt(0,a,e)|0)+i)*r}}},L.ease=tD["quad.out"],eN("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return ex+=e+","+e+"Params,"});var tX=function(e,t){this.id=F++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:eC,this.set=t?t.getSetter:rs},t$=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,e8(this,+e.duration,1,1),this.data=e.data,E||tI.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,e8(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(tL(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(eX(this,e),!r._dp||r.parent||e$(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&eY(this._dp,this,this._start-this._delay)}return this._tTime===e&&(this._dur||t)&&(!this._initted||1e-8!==Math.abs(this._zTime))&&(e||this._initted||!this.add&&!this._ptLookup)||(this._ts||(this._pTime=e),eO(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+eq(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+eq(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?eK(this._tTime,r)+1:1},t.timeScale=function(e){if(!arguments.length)return -.00000001===this._rts?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?eQ(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-.00000001===e?0:this._rts,this.totalTime(tt(-this._delay,this._tDur,t),!0),eW(this),eV(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(tL(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&eY(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Q(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?eQ(t.rawTime(e),this):this._tTime:this._tTime},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(t._ts||1),t=t._dp;return r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,e4(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,e4(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(e7(this,e),Q(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Q(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-.00000001:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-.00000001,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var n=this.vars;return arguments.length>1?(t?(n[e]=t,r&&(n[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this;return new Promise(function(r){var n=V(e)?e:eP,i=function(){var e=t.then;t.then=null,V(n)&&(n=n(t))&&(n.then||n===t)&&(t.then=e),r(n),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){tT(this)},e}();eA(t$.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:-.00000001,_prom:0,_ps:!1,_rts:1});var tY=function(e){function t(t,r){var i;return void 0===t&&(t={}),(i=e.call(this,t)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=Q(t.sortChildren),_&&eY(t.parent||_,n(i),r),t.reversed&&i.reverse(),t.paused&&i.paused(!0),t.scrollTrigger&&eJ(n(i),t.scrollTrigger),i}i(t,e);var r=t.prototype;return r.to=function(e,t,r){return e9(0,arguments,this),this},r.from=function(e,t,r){return e9(1,arguments,this),this},r.fromTo=function(e,t,r,n){return e9(2,arguments,this),this},r.set=function(e,t,r){return t.duration=0,t.parent=this,eB(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new rr(e,t,e7(this,r),1),this},r.call=function(e,t,r){return eY(this,rr.delayedCall(0,e,t),r)},r.staggerTo=function(e,t,r,n,i,a,o){return r.duration=t,r.stagger=r.stagger||n,r.onComplete=a,r.onCompleteParams=o,r.parent=this,new rr(e,r,e7(this,i)),this},r.staggerFrom=function(e,t,r,n,i,a,o){return r.runBackwards=1,eB(r).immediateRender=Q(r.immediateRender),this.staggerTo(e,t,r,n,i,a,o)},r.staggerFromTo=function(e,t,r,n,i,a,o,s){return n.startAt=r,eB(n).immediateRender=Q(n.immediateRender),this.staggerTo(e,t,n,i,a,o,s)},r.render=function(e,t,r){var n,i,a,o,s,l,c,u,h,d,f,p,m=this._time,v=this._dirty?this.totalDuration():this._tDur,g=this._dur,y=e<=0?0:ej(e),b=this._zTime<0!=e<0&&(this._initted||!g);if(this!==_&&y>v&&e>=0&&(y=v),y!==this._tTime||r||b){if(m!==this._time&&g&&(y+=this._time-m,e+=this._time-m),n=y,h=this._start,l=!(u=this._ts),b&&(g||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(f=this._yoyo,s=g+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,r);if(n=ej(y%s),y===v?(o=this._repeat,n=g):((o=~~(y/s))&&o===y/s&&(n=g,o--),n>g&&(n=g)),d=eK(this._tTime,s),!m&&this._tTime&&d!==o&&(d=o),f&&1&o&&(n=g-n,p=1),o!==d&&!this._lock){var x=f&&1&d,w=x===(f&&1&o);if(o<d&&(x=!x),m=x?0:g,this._lock=1,this.render(m||(p?0:ej(o*s)),t,!g)._lock=0,this._tTime=y,!t&&this.parent&&tN(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(g=this._dur,v=this._tDur,w&&(this._lock=2,m=x?g:-.0001,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l))return this;tV(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=e6(this,ej(m),ej(n)))&&(y-=n-(n=c._start)),this._tTime=y,this._time=n,this._act=!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,m=0),!m&&n&&!t&&(tN(this,"onStart"),this._tTime!==y))return this;if(n>=m&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=-.00000001);break}}i=a}else{i=this._last;for(var C=e<0?e:n;i;){if(a=i._prev,(i._act||C<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(e,t,r);if(i.render(i._ts>0?(C-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(C-i._start)*i._ts,t,r),n!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=C?-.00000001:1e-8);break}}i=a}}if(c&&!t&&(this.pause(),c.render(n>=m?0:-.00000001)._zTime=n>=m?1:-1,this._ts))return this._start=h,eW(this),this.render(e,t,r);this._onUpdate&&!t&&tN(this,"onUpdate",!0),(y===v&&this._tTime>=this.totalDuration()||!y&&m)&&(h===this._start||Math.abs(u)!==Math.abs(this._ts))&&!this._lock&&((e||!g)&&(y===v&&this._ts>0||!y&&this._ts<0)&&eZ(this,1),t||e<0&&!m||!y&&!m&&v||(tN(this,y===v&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom()))}return this},r.add=function(e,t){var r=this;if(G(t)||(t=e7(this,t,e)),!(e instanceof t$)){if(Y(e))return e.forEach(function(e){return r.add(e,t)}),this;if(U(e))return this.addLabel(e,t);if(!V(e))return this;e=rr.delayedCall(0,e)}return this!==e?eY(this,e,t):this},r.getChildren=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],a=this._first;a;)a._start>=n&&(a instanceof rr?t&&i.push(a):(r&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,r)))),a=a._next;return i},r.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},r.remove=function(e){return U(e)?this.removeLabel(e):V(e)?this.killTweensOf(e):(eH(this,e),e===this._recent&&(this._recent=this._last),eU(this))},r.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ej(tI.time-(this._ts>
vendor: 5,158 bytes, line 22
220?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},r.addLabel=function(e,t){return this.labels[e]=e7(this,t),this},r.removeLabel=function(e){return delete this.labels[e],this},r.addPause=function(e,t,r){var n=rr.delayedCall(0,t||ed,r);return n.data="isPause",this._hasPause=1,eY(this,n,e7(this,e))},r.removePause=function(e){var t=this._first;for(e=e7(this,e);t;)t._start===e&&"isPause"===t.data&&eZ(t),t=t._next},r.killTweensOf=function(e,t,r){for(var n=this.getTweensOf(e,r),i=n.length;i--;)tJ!==n[i]&&n[i].kill(e,t);return this},r.getTweensOf=function(e,t){for(var r,n=[],i=ts(e),a=this._first,o=G(t);a;)a instanceof rr?eE(a._targets,i)&&(o?(!tJ||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&n.push(a):(r=a.getTweensOf(i,t)).length&&n.push.apply(n,r),a=a._next;return n},r.tweenTo=function(e,t){t=t||{};var r,n=this,i=e7(n,e),a=t,o=a.startAt,s=a.onStart,l=a.onStartParams,c=a.immediateRender,u=rr.to(n,eA({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||1e-8,onStart:function(){if(n.pause(),!r){var e=t.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());u._dur!==e&&e8(u,e,0,1).render(u._time,!0,!0),r=1}s&&s.apply(u,l||[])}},t));return c?u.render(0):u},r.tweenFromTo=function(e,t,r){return this.tweenTo(t,eA({startAt:{time:e7(this,e)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(e){return void 0===e&&(e=this._time),tC(this,e7(this,e))},r.previousLabel=function(e){return void 0===e&&(e=this._time),tC(this,e7(this,e),1)},r.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(e,t,r){void 0===r&&(r=0);for(var n,i=this._first,a=this.labels;i;)i._start>=r&&(i._start+=e,i._end+=e),i=i._next;if(t)for(n in a)a[n]>=r&&(a[n]+=e);return eU(this)},r.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},r.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),eU(this)},r.totalDuration=function(e){var t,r,n,i=0,a=this,o=a._last,s=1e8;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-e:e));if(a._dirty){for(n=a.parent;o;)t=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,eY(a,o,r-o._delay,1)._lock=0):s=r,r<0&&o._ts&&(i-=r,(!n&&!a._dp||n&&n.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=t;e8(a,a===_&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(e){if(_._ts&&(eO(_,eQ(e,_)),j=tI.frame),tI.frame>=ey){ey+=I.autoSleep||120;var t=_._first;if((!t||!t._ts)&&I.autoSleep&&tI._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tI.sleep()}}},t}(t$);eA(tY.prototype,{_lock:0,_hasPause:0,_forcing:0});var tJ,t0,t1=function(e,t,r,n,i,a,o){var s,l,c,u,h,d,f,p,m=new rv(this._pt,e,t,0,1,ru,null,i),v=0,g=0;for(m.b=r,m.e=n,r+="",n+="",(f=~n.indexOf("random("))&&(n=tx(n)),a&&(a(p=[r,n],e,t),r=p[0],n=p[1]),l=r.match(er)||[];s=er.exec(n);)u=s[0],h=n.substring(v,s.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[g++]&&(d=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:h||1===g?h:",",s:d,c:"="===u.charAt(1)?eS(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},v=er.lastIndex);return m.c=v<n.length?n.substring(v,n.length):"",m.fp=o,(en.test(n)||f)&&(m.e=0),this._pt=m,m},t2=function(e,t,r,n,i,a,o,s,l){V(n)&&(n=n(i||0,e,a));var c,u=e[t],h="get"!==r?r:V(u)?l?e[t.indexOf("set")||!V(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():u,d=V(u)?l?ra:ri:rn;if(U(n)&&(~n.indexOf("random(")&&(n=tx(n)),"="===n.charAt(1)&&((c=eS(h,n)+(tr(h)||0))||0===c)&&(n=c)),h!==n||t0)return isNaN(h*n)||""===n?(u||t in e||ec(t,n),t1.call(this,e,t,h,n,d,s||I.stringFilter,l)):(c=new rv(this._pt,e,t,+h||0,n-(h||0),"boolean"==typeof u?rc:rl,0,d),l&&(c.fp=l),o&&c.modifier(o,this,e),this._pt=c)},t5=function(e,t,r,n,i){if(V(e)&&(e=t9(e,i,t,r,n)),!K(e)||e.style&&e.nodeType||Y(e)||$(e))return U(e)?t9(e,i,t,r,n):e;var a,o={};for(a in e)o[a]=t9(e[a],i,t,r,n);return o},t6=function(e,t,r,n,i,a){var o,s,l,c;if(ev[e]&&!1!==(o=new ev[e]).init(i,o.rawVars?t[e]:t5(t[e],n,i,a,r),r,n,a)&&(r._pt=s=new rv(r._pt,i,e,0,1,o.render,o,0,o.priority),r!==S))for(l=r._ptLookup[r._targets.indexOf(i)],c=o._props.length;c--;)l[o._props[c]]=s;return o},t8=function e(t,r){var n,i,a,o,s,l,c,u,h,d,f,p,m,v=t.vars,g=v.ease,y=v.startAt,b=v.immediateRender,w=v.lazy,C=v.onUpdate,N=v.onUpdateParams,T=v.callbackScope,j=v.runBackwards,S=v.yoyoEase,E=v.keyframes,k=v.autoRevert,O=t._dur,R=t._startAt,P=t._targets,A=t.parent,M=A&&"nested"===A.data?A.parent._targets:P,I="auto"===t._overwrite&&!x,D=t.timeline;if(!D||E&&g||(g="none"),t._ease=tG(g,L.ease),t._yEase=S?tU(tG(!0===S?g:S,L.ease)):0,S&&t._yoyo&&!t._repeat&&(S=t._yEase,t._yEase=t._ease,t._ease=S),t._from=!D&&!!v.runBackwards,!D||E&&
22!v.stagger){if(p=(u=P[0]?ew(P[0]).harness:0)&&v[u.prop],n=eD(v,ef),R&&(eZ(R.render(-1,!0)),R._lazy=0),y){if(eZ(t._startAt=rr.set(P,eA({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:Q(w),startAt:null,delay:0,onUpdate:C,onUpdateParams:N,callbackScope:T,stagger:0},y))),!(r<0)||b||k||t._startAt.render(-1,!0),b){if(r>0&&!k&&(t._startAt=0),O&&r<=0){r&&(t._zTime=r);return}}else!1===k&&(t._startAt=0)}else if(j&&O){if(R)k||(t._startAt=0);else if(r&&(b=!1),a=eA({overwrite:!1,data:"isFromStart",lazy:b&&Q(w),immediateRender:b,stagger:0,parent:A},n),p&&(a[u.prop]=p),eZ(t._startAt=rr.set(P,a)),r<0&&t._startAt.render(-1,!0),t._zTime=r,b){if(!r)return}else e(t._startAt,1e-8)}for(i=0,t._pt=t._ptCache=0,w=O&&Q(w)||w&&!O;i<P.length;i++){if(c=(s=P[i])._gsap||e_(P)[i]._gsap,t._ptLookup[i]=d={},em[c.id]&&ep.length&&ek(),f=M===P?i:M.indexOf(s),u&&!1!==(h=new u).init(s,p||n,t,f,M)&&(t._pt=o=new rv(t._pt,s,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(e){d[e]=o}),h.priority&&(l=1)),!u||p)for(a in n)ev[a]&&(h=t6(a,n,t,f,s,M))?h.priority&&(l=1):d[a]=o=t2.call(t,s,a,"get",n[a],f,M,0,v.stringFilter);t._op&&t._op[i]&&t.kill(s,t._op[i]),I&&t._pt&&(tJ=t,_.killTweensOf(s,d,t.globalTime(r)),m=!t.parent,tJ=0),t._pt&&w&&(em[c.id]=1)}l&&rm(t),t._onInit&&t._onInit(t)}t._onUpdate=C,t._initted=(!t._op||t._pt)&&!m,E&&r<=0&&D.render(1e8,!0,!0)},t4=function(e,t,r,n,i,a,o){var s,l,c,u=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!u)for(u=e._ptCache[t]=[],l=e._ptLookup,c=e._targets.length;c--;){if((s=l[c][t])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==t;)s=s._next;if(!s)return t0=1,e.vars[t]="+=0",t8(e,o),t0=0,1;u.push(s)}for(c=u.length;c--;)(s=u[c]).s=(n||0===n)&&!i?n:s.s+(n||0)+a*s.c,s.c=r-s.s,s.e&&(s.e=eT(r)+tr(s.e)),s.b&&(s.b=s.s+tr(s.b))},t3=function(e,t){var r,n,i,a,o=e[0]?ew(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(n in r=eI({},t),s)if(n in r)for(i=(a=s[n].split(",")).length;i--;)r[a[i]]=r[n];return r},t7=function(e,t,r,n){var i,a,o=t.ease||n||"power1.inOut";if(Y(t))a=r[e]||(r[e]=[]),t.forEach(function(e,r){return a.push({t:r/(t.length-1)*100,v:e,e:o})});else for(i in t)a=r[i]||(r[i]=[]),"ease"===i||a.push({t:parseFloat(e),v:t[i],e:o})},t9=function(e,t,r,n,i){return V(e)?e.call(t,r,n,i):U(e)&&~e.indexOf("random(")?tx(e):e},re=ex+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",rt={};eN(re+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return rt[e]=1});var rr=function(e){function t(t,r,i,a){"number"==typeof r&&(i.duration=r,r=i,i=null);var o,s,l,c,u,h,d,f,p,m=(o=e.call(this,a?r:eB(r))||this).vars,v=m.duration,g=m.delay,y=m.immediateRender,b=m.stagger,w=m.overwrite,C=m.keyframes,N=m.defaults,T=m.scrollTrigger,j=m.yoyoEase,S=r.parent||_,E=(Y(t)||$(t)?G(t[0]):"length"in r)?[t]:ts(t);if(o._targets=E.length?e_(E):eu("GSAP target "+t+" not found. https://greensock.com",!I.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=w,C||b||X(v)||X(g)){if(r=o.vars,(s=o.timeline=new tY({data:"nested",defaults:N||{}})).kill(),s.parent=s._dp=n(o),s._start=0,b||X(v)||X(g)){if(u=E.length,f=b&&tu(b),K(b))for(h in b)~re.indexOf(h)&&(p||(p={}),p[h]=b[h]);for(l=0;l<u;l++)(c=eD(r,rt)).stagger=0,j&&(c.yoyoEase=j),p&&eI(c,p),d=E[l],c.duration=+t9(v,n(o),l,d,E),c.delay=(+t9(g,n(o),l,d,E)||0)-o._delay,!b&&1===u&&c.delay&&(o._delay=g=c.delay,o._start+=g,c.delay=0),s.to(d,c,f?f(l,d,E):0),s._ease=tD.none;s.duration()?v=g=0:o.timeline=0}else if(C){eB(eA(s.vars.defaults,{ease:"none"})),s._ease=tG(C.ease||r.ease||"none");var k,O,R,P=0;if(Y(C))C.forEach(function(e){return s.to(E,e,">")});else{for(h in c={},C)"ease"===h||"easeEach"===h||t7(h,C[h],c,C.easeEach);for(h in c)for(l=0,k=c[h].sort(function(e,t){return e.t-t.t}),P=0;l<k.length;l++)(R={ease:(O=k[l]).e,duration:(O.t-(l?k[l-1].t:0))/100*v})[h]=O.v,s.to(E,R,P),P+=R.duration;s.duration()<v&&s.to({},{duration:v-s.duration()})}}v||o.duration(v=s.duration())}else o.timeline=0;return!0!==w||x||(tJ=n(o),_.killTweensOf(E),tJ=0),eY(S,n(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(y||!v&&!C&&o._start===ej(S._time)&&Q(y)&&eG(n(o))&&"nested"!==S.data)&&(o._tTime=-.00000001,o.render(Math.max(0,-g))),T&&eJ(n(o),T),o}i(t,e);var r=t.prototype;return r.render=function(e,t,r){var n,i,a,o,s,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=e>f-1e-8&&e>=0?f:e<1e-8?0:e;if(p){if(m!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=e<0){if(n=m,u=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,r);if(n=ej(m%o),m===f?(a=this._repeat,n=p):((a=~~(m/o))&&a===m/o&&(n=p,a--),n>p&&(n=p)),(l=this._yoyo&&1&a)&&(h=this._yEase,n=p-n),s=eK(this._tTime,o),n===d&&!r&&this._initted)return this._tTime=m,this;a===s||(u&&this._yEase&&tV(u,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=r=1,this.render(ej(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(e0(this,e<0?e:n,r,t))return this._tTime=0,this;if(d!==this._time)return this;if(p!==this._dur)return this.render(e,t,r)}if(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(n/p),this._from&&(this.ratio=c=1-c),n&&!d&&!t&&(tN(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(e<0?e:!n&&l?-.00000001:u._dur*u._ease(n/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(e<0&&this._startAt&&this._startAt.render(e,!0,r),tN(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&tN(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),(e||!p)&&(m===this._tDur&&this._ts>
vendor: 8,882 bytes, lines 22-30
220||!m&&this._ts<0)&&eZ(this,1),!t&&!(e<0&&!d)&&(m||d)&&(tN(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else e5(this,e,t,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),e.prototype.invalidate.call(this)},r.resetTo=function(e,t,r,n){E||tI.wake(),this._ts||this.play();var i,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||t8(this,a),t4(this,e,t,r,n,this._ease(a/this._dur),a))?this.resetTo(e,t,r,n):(eX(this,0),this.parent||ez(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?tT(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,tJ&&!0!==tJ.vars.overwrite)._first||tT(this),this.parent&&r!==this.timeline.totalDuration()&&e8(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,a,o,s,l,c,u=this._targets,h=e?ts(e):u,d=this._ptLookup,f=this._pt;if((!t||"all"===t)&&eF(u,h))return"all"===t&&(this._pt=0),tT(this);for(n=this._op=this._op||[],"all"!==t&&(U(t)&&(s={},eN(t,function(e){return s[e]=1}),t=s),t=t3(u,t)),c=u.length;c--;)if(~h.indexOf(u[c]))for(s in i=d[c],"all"===t?(n[c]=t,o=i,a={}):(a=n[c]=n[c]||{},o=t),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||eH(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&tT(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return e9(1,arguments)},t.delayedCall=function(e,r,n,i){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},t.fromTo=function(e,t,r){return e9(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return _.killTweensOf(e,t,r)},t}(t$);eA(rr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),eN("staggerTo,staggerFrom,staggerFromTo",function(e){rr[e]=function(){var t=new tY,r=ti.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var rn=function(e,t,r){return e[t]=r},ri=function(e,t,r){return e[t](r)},ra=function(e,t,r,n){return e[t](n.fp,r)},ro=function(e,t,r){return e.setAttribute(t,r)},rs=function(e,t){return V(e[t])?ri:q(e[t])&&e.setAttribute?ro:rn},rl=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},rc=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ru=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},rh=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},rd=function(e,t,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(e,t,r),a=i},rf=function(e){for(var t,r,n=this._pt;n;)r=n._next,(n.p!==e||n.op)&&n.op!==e?n.dep||(t=1):eH(this,n,"_pt"),n=r;return!t},rp=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},rm=function(e){for(var t,r,n,i,a=e._pt;a;){for(t=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=t}e._pt=n},rv=function(){function e(e,t,r,n,i,a,o,s,l){this.t=t,this.s=n,this.c=i,this.p=r,this.r=a||rl,this.d=o||this,this.set=s||rn,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=rp,this.m=e,this.mt=r,this.tween=t},e}();eN(ex+"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(e){return ef[e]=1}),eo.TweenMax=eo.TweenLite=rr,eo.TimelineLite=eo.TimelineMax=tY,_=new tY({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),I.stringFilter=tM;var rg={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return tj(e)})},timeline:function(e){return new tY(e)},getTweensOf:function(e,t){return _.getTweensOf(e,t)},getProperty:function(e,t,r,n){U(e)&&(e=ts(e)[0]);var i=ew(e||{}).get,a=r?eP:eR;return"native"===r&&(r=""),e?t?a((ev[t]&&ev[t].get||i)(e,t,r,n)):function(t,r,n){return a((ev[t]&&ev[t].get||i)(e,t,r,n))}:e},quickSetter:function(e,t,r){if((e=ts(e)).length>1){var n=e.map(function(e){return r_.quickSetter(e,t,r)}),i=n.length;return function(e){for(var t=i;t--;)n[t](e)}}e=e[0]||{};var a=ev[t],o=ew(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=a?function(t){var n=new a;S._pt=0,n.init(e,r?t+r:t,S,0,[e]),n.render(1,n),S._pt&&rh(1,S)}:o.set(e,s);return a?l:function(t){return l(e,s,r?t+r:t,o,1)}},quickTo:function(e,t,r){var n,i=r_.to(e,eI(((n={})[t]="+=0.1",n.paused=!0,n),r||{})),a=function(e,r,n){return i.resetTo(t,e,r,n)};return a.tween=i,a},isTweening:function(e){return _.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=tG(e.ease,L.ease)),eL(L,e||{})},config:function(e){return eL(I,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,i=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(e){return e&&!ev[e]&&!eo[e]&&eu(t+" effect requires "+e+" plugin.")}),eg[t]=function(e,t,n){return r(ts(e),eA(t||{},i),n)},a&&(tY.prototype[t]=function(e,r,n){return this.add(eg[t](e,K(r)?r:(n=r)&&{},this),n)})},registerEase:function(e,t){tD[e]=tG(t)},parseEase:function(e,t){return arguments.length?tG(e,t):tD},getById:function(e){return _.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,n,i=new tY(e);for(i.smoothChildTiming=Q(e.smoothChildTiming),_.remove(i),i._dp=0,i._time=i._tTime=_._time,r=_._first;r;)n=r._next,(t||!(!r._dur&&r instanceof rr&&r.vars.onComplete===r._targets[0]))&&eY(i,r,r._start-r._delay),r=n;return eY(_,i,0),i},utils:{wrap:ty,wrapYoyo:tb,distribute:tu,random:tf,snap:td,normalize:tv,getUnit:tr,clamp:tn,splitColor:tk,toArray:ts,selector:tl,mapRange:t_,pipe:tp,unitize:tm,interpolate:tw,shuffle:tc},install:el,effects:eg,ticker:tI,updateRoot:tY.updateRoot,plugins:ev,globalTimeline:_,core:{PropTween:rv,globals:eh,Tween:rr,Timeline:tY,Animation:t$,getCache:ew,_removeLinkedListItem:eH,suppressOverwrites:function(e){return x=e}}};eN("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return rg[e]=rr[e]}),tI.add(tY.updateRoot),S=rg.to({},{duration:0});var ry=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},rb=function(e,t){var r,n,i,a=e._targets;for(r in t)for(n=a.length;n--;)(i=e._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=ry(i,r)),i&&i.modifier&&i.modifier(t[r],e,a[n],r))},rx=function(e,t){return{name:e,rawVars:1,init:function(e,r,n){n._onInit=function(e){var n,i;if(U(r)&&(n={},eN(r,function(e){return n[e]=1}),r=n),t){for(i in n={},r)n[i]=t(r[i]);r=n}rb(e,r)}}}},r_=rg.registerPlugin({name:"attr",init:function(e,t,r,n,i){var a,o;for(a in t)(o=this.add(e,"setAttribute",(e.getAttribute(a)||0)+"",t[a],n,i,0,0,a))&&(o.op=a),this._props.push(a)}},{name:"endArray",init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r])}},rx("roundProps",th),rx("modifiers"),rx("snap",td))||rg;rr.version=tY.version=r_.version="3.10.4",T=1,W()&&tL(),tD.Power0,tD.Power1,tD.Power2,tD.Power3,tD.Power4,tD.Linear,tD.Quad,tD.Cubic,tD.Quart,tD.Quint,tD.Strong,tD.Elastic,tD.Back,tD.SteppedEase,tD.Bounce,tD.Sine,tD.Expo,tD.Circ;/*! 23 * CSSPlugin 3.10.4 24 * https://greensock.com 25 * 26 * Copyright 2008-2022, GreenSock. All rights reserved. 27 * Subject to the terms at https://greensock.com/standard-license or for 28 * Club GreenSock members, the agreement issued with that membership. 29 * @author: Jack Doyle, [email protected] 30*/ var rw,rC,rN,rT,rj,rS,rE,rk={},rO=180/Math.PI,rR=Math.PI/180,rP=Math.atan2,rA=/([A-Z])/g,rM=/(left|right|width|margin|padding|x)/i,rI=/[\s,\(]\S/,rL={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},rD=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rB=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rF=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rz=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},rH=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},rZ=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},rU=function(e,t,r){return e.style[t]=r},rV=function(e,t,r){return e.style.setProperty(t,r)},rG=function(e,t,r){return e._gsap[t]=r},rq=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},rK=function(e,t,r,n,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},rQ=function(e,t,r,n,i){var a=e._gsap;a[t]=r,a.renderTransform(i,a)}
30,rW="transform",rX=rW+"Origin",r$=function(e,t){var r=rC.createElementNS?rC.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):rC.createElement(e);return r.style?r:rC.createElement(e)},rY=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(rA,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,r0(r)||r,1)||""},rJ="O,Moz,ms,Ms,Webkit".split(","),r0=function(e,t,r){var n=(t||rj).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(rJ[i]+e in n););return i<0?null:(3===i?"ms":i>=0?rJ[i]:"")+e},r1=function(){"undefined"!=typeof window&&window.document&&(rN=(rC=window.document).documentElement,rj=r$("div")||{style:{}},r$("div"),rX=(rW=r0(rW))+"Origin",rj.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",rE=!!r0("perspective"),rT=1)},r2=function e(t){var r,n=r$("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(rN.appendChild(n),n.appendChild(this),this.style.display="block",t)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(s){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),rN.removeChild(n),this.style.cssText=o,r},r5=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},r6=function(e){var t;try{t=e.getBBox()}catch(r){t=r2.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===r2||(t=r2.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+r5(e,["x","cx","x1"])||0,y:+r5(e,["y","cy","y1"])||0,width:0,height:0}},r8=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&r6(e))},r4=function(e,t){if(t){var r=e.style;t in rk&&t!==rX&&(t=rW),r.removeProperty?(("ms"===t.substr(0,2)||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty(t.replace(rA,"-$1").toLowerCase())):r.removeAttribute(t)}},r3=function(e,t,r,n,i,a){var o=new rv(e._pt,t,r,0,1,a?rZ:rH);return e._pt=o,o.b=n,o.e=i,e._props.push(r),o},r7={deg:1,rad:1,turn:1},r9=function e(t,r,n,i){var a,o,s,l,c=parseFloat(n)||0,u=(n+"").trim().substr((c+"").length)||"px",h=rj.style,d=rM.test(r),f="svg"===t.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),m="px"===i,v="%"===i;return i===u||!c||r7[i]||r7[u]?c:("px"===u||m||(c=e(t,r,n,"px")),l=t.getCTM&&r8(t),(v||"%"===u)&&(rk[r]||~r.indexOf("adius")))?(a=l?t.getBBox()[d?"width":"height"]:t[p],eT(v?c/a*100:c/100*a)):(h[d?"width":"height"]=100+(m?u:i),o=~r.indexOf("adius")||"em"===i&&t.appendChild&&!f?t:t.parentNode,l&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==rC&&o.appendChild||(o=rC.body),(s=o._gsap)&&v&&s.width&&d&&s.time===tI.time)?eT(c/s.width*100):((v||"%"===u)&&(h.position=rY(t,"position")),o===t&&(h.position="static"),o.appendChild(rj),a=rj[p],o.removeChild(rj),h.position="absolute",d&&v&&((s=ew(o)).time=tI.time,s.width=o[p]),eT(m?a*c/100:a&&c?100/a*c:0))},ne=function(e,t,r,n){var i;return rT||r1(),t in rL&&"transform"!==t&&~(t=rL[t]).indexOf(",")&&(t=t.split(",")[0]),rk[t]&&"transform"!==t?(i=nd(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:nf(rY(e,rX))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=na[t]&&na[t](e,t,r)||rY(e,t)||eC(e,t)||("opacity"===t?1:0)),r&&!~(i+"").trim().indexOf(" ")?r9(e,t,i,r)+r:i},nt=function(e,t,r,n){if(!r||"none"===r){var i=r0(t,e,1),a=i&&rY(e,i,1);a&&a!==r?(t=i,r=a):"borderColor"===t&&(r=rY(e,"borderTopColor"))}var o,s,l,c,u,h,d,f,p,m,v,g,y=new rv(this._pt,e.style,t,0,1,ru),b=0,x=0;if(y.b=r,y.e=n,r+="","auto"==(n+="")&&(e.style[t]=n,n=rY(e,t)||n,e.style[t]=r),tM(o=[r,n]),r=o[0],n=o[1],l=r.match(et)||[],(n.match(et)||[]).length){for(;s=et.exec(n);)d=s[0],p=n.substring(b,s.index),u?u=(u+1)%5:("rgba("===p.substr(-5)||"hsla("===p.substr(-5))&&(u=1),d!==(h=l[x++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),"="===d.charAt(1)&&(d=eS(c,d)+v),f=parseFloat(d),m=d.substr((f+"").length),b=et.lastIndex-m.length,m||(m=m||I.units[t]||v,b!==n.length||(n+=m,y.e+=m)),v!==m&&(c=r9(e,t,h,m)||0),y._pt={_next:y._pt,p:p||1===x?p:",",s:c,c:f-c,m:u&&u<4||"zIndex"===t?Math.round:0});y.c=b<n.length?n.substring(b,n.length):""}else y.r="display"===t&&"none"===n?rZ:rH;return en.test(n)&&(y.e=0),this._pt=y,y},nr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nn=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return("top"===r||"bottom"===r||"left"===n||"right"===n)&&(e=r,r=n,n=e),t[0]=nr[r]||r,t[1]=nr[n]||n,t.join(" ")}
30,ni=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)rk[r=s[i]]&&(n=1,r="transformOrigin"===r?rX:rW),r4(a,r);n&&(r4(a,rW),l&&(l.svg&&a.removeAttribute("transform"),nd(a,1),l.uncache=1))}},na={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var a=e._pt=new rv(e._pt,t,r,0,0,ni);return a.u=n,a.pr=-10,a.tween=i,e._props.push(r),1}}},no=[1,0,0,1,0,0],ns={},nl=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},nc=function(e){var t=rY(e,rW);return nl(t)?no:t.substr(7).match(ee).map(eT)},nu=function(e,t){var r,n,i,a,o=e._gsap||ew(e),s=e.style,l=nc(e);return o.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?no:l:(l!==no||e.offsetParent||e===rN||o.svg||(i=s.display,s.display="block",(r=e.parentNode)&&e.offsetParent||(a=1,n=e.nextSibling,rN.appendChild(e)),l=nc(e),i?s.display=i:r4(e,"display"),a&&(n?r.insertBefore(e,n):r?r.appendChild(e):rN.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},nh=function(e,t,r,n,i,a){var o,s,l,c,u=e._gsap,h=i||nu(e,!0),d=u.xOrigin||0,f=u.yOrigin||0,p=u.xOffset||0,m=u.yOffset||0,v=h[0],g=h[1],y=h[2],b=h[3],x=h[4],_=h[5],w=t.split(" "),C=parseFloat(w[0])||0,N=parseFloat(w[1])||0;r?h!==no&&(s=v*b-g*y)&&(l=C*(b/s)+N*(-y/s)+(y*_-b*x)/s,c=C*(-g/s)+N*(v/s)-(v*_-g*x)/s,C=l,N=c):(C=(o=r6(e)).x+(~w[0].indexOf("%")?C/100*o.width:C),N=o.y+(~(w[1]||w[0]).indexOf("%")?N/100*o.height:N)),n||!1!==n&&u.smooth?(x=C-d,_=N-f,u.xOffset=p+(x*v+_*y)-x,u.yOffset=m+(x*g+_*b)-_):u.xOffset=u.yOffset=0,u.xOrigin=C,u.yOrigin=N,u.smooth=!!n,u.origin=t,u.originIsAbsolute=!!r,e.style[rX]="0px 0px",a&&(r3(a,u,"xOrigin",d,C),r3(a,u,"yOrigin",f,N),r3(a,u,"xOffset",p,u.xOffset),r3(a,u,"yOffset",m,u.yOffset)),e.setAttribute("data-svg-origin",C+" "+N)},nd=function(e,t){var r=e._gsap||new tX(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,a,o,s,l,c,u,h,d,f,p,m,v,g,y,b,x,_,w,C,N,T,j,S,E,k,O,R,P,A,M,L=e.style,D=r.scaleX<0,B=rY(e,rX)||"0";return n=i=a=l=c=u=h=d=f=0,o=s=1,r.svg=!!(e.getCTM&&r8(e)),v=nu(e,r.svg),r.svg&&(j=(!r.uncache||"0px 0px"===B)&&!t&&e.getAttribute("data-svg-origin"),nh(e,j||B,!!j||r.originIsAbsolute,!1!==r.smooth,v)),p=r.xOrigin||0,m=r.yOrigin||0,v!==no&&(x=v[0],_=v[1],w=v[2],C=v[3],n=N=v[4],i=T=v[5],6===v.length?(o=Math.sqrt(x*x+_*_),s=Math.sqrt(C*C+w*w),l=x||_?rP(_,x)*rO:0,(h=w||C?rP(w,C)*rO+l:0)&&(s*=Math.abs(Math.cos(h*rR))),r.svg&&(n-=p-(p*x+m*w),i-=m-(p*_+m*C))):(M=v[6],P=v[7],k=v[8],O=v[9],R=v[10],A=v[11],n=v[12],i=v[13],a=v[14],c=(g=rP(M,R))*rO,g&&(j=N*(y=Math.cos(-g))+k*(b=Math.sin(-g)),S=T*y+O*b,E=M*y+R*b,k=-(N*b)+k*y,O=-(T*b)+O*y,R=-(M*b)+R*y,A=-(P*b)+A*y,N=j,T=S,M=E),u=(g=rP(-w,R))*rO,g&&(j=x*(y=Math.cos(-g))-k*(b=Math.sin(-g)),S=_*y-O*b,E=w*y-R*b,A=C*b+A*y,x=j,_=S,w=E),l=(g=rP(_,x))*rO,g&&(j=x*(y=Math.cos(g))+_*(b=Math.sin(g)),S=N*y+T*b,_=_*y-x*b,T=T*y-N*b,x=j,N=S),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),o=eT(Math.sqrt(x*x+_*_+w*w)),s=eT(Math.sqrt(T*T+M*M)),h=Math.abs(g=rP(N,T))>2e-4?g*rO:0,f=A?1/(A<0?-A:A):0),r.svg&&(j=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!nl(rY(e,rW)),j&&e.setAttribute("transform",j))),Math.abs(h)>90&&270>Math.abs(h)&&(D?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=eT(o),r.scaleY=eT(s),r.rotation=eT(l)+"deg",r.rotationX=eT(c)+"deg",r.rotationY=eT(u)+"deg",r.skewX=h+"deg",r.skewY=d+"deg",r.transformPerspective=f+"px",(r.zOrigin=parseFloat(B.split(" ")[2])||0)&&(L[rX]=nf(B)),r.xOffset=r.yOffset=0,r.force3D=I.force3D,r.renderTransform=r.svg?ny:rE?ng:nm,r.uncache=0,r},nf=function(e){return(e=e.split(" "))[0]+" "+e[1]},np=function(e,t,r){var n=tr(t);return eT(parseFloat(t)+parseFloat(r9(e,"x",r+"px",n)))+n},nm=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ng(e,t)},nv="0deg",ng=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,a=r.x,o=r.y,s=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,h=r.skewX,d=r.skewY,f=r.scaleX,p=r.scaleY,m=r.transformPerspective,v=r.force3D,g=r.target,y=r.zOrigin,b="",x="auto"===v&&e&&1!==e||!0===v;if(y&&(u!==nv||c!==nv)){var _,w=parseFloat(c)*rR,C=Math.sin(w),N=Math.cos(w);_=Math.cos(w=parseFloat(u)*rR),a=np(g,a,-(C*_*y)),o=np(g,o,-(-Math.sin(w)*y)),s=np(g,s,-(N*_*y)+y)}"0px"!==m&&(b+="perspective("+m+") "),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(x||"0px"!==a||"0px"!==o||"0px"!==s)&&(b+="0px"!==s||x?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==nv&&(b+="rotate("+l+") "),c!==nv&&(b+="rotateY("+c+") "),u!==nv&&(b+="rotateX("+u+") "),(h!==nv||d!==nv)&&(b+="skew("+h+", "+d+") "),(1!==f||1!==p)&&
30(b+="scale("+f+", "+p+") "),g.style[rW]=b||"translate(0, 0)"},ny=function(e,t){var r,n,i,a,o,s=t||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,d=s.rotation,f=s.skewX,p=s.skewY,m=s.scaleX,v=s.scaleY,g=s.target,y=s.xOrigin,b=s.yOrigin,x=s.xOffset,_=s.yOffset,w=s.forceCSS,C=parseFloat(u),N=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(p=parseFloat(p),f+=p,d+=p),d||f?(d*=rR,f*=rR,r=Math.cos(d)*m,n=Math.sin(d)*m,i=-(Math.sin(d-f)*v),a=Math.cos(d-f)*v,f&&(p*=rR,i*=o=Math.sqrt(1+(o=Math.tan(f-p))*o),a*=o,p&&(r*=o=Math.sqrt(1+(o=Math.tan(p))*o),n*=o)),r=eT(r),n=eT(n),i=eT(i),a=eT(a)):(r=m,a=v,n=i=0),(C&&!~(u+"").indexOf("px")||N&&!~(h+"").indexOf("px"))&&(C=r9(g,"x",u,"px"),N=r9(g,"y",h,"px")),(y||b||x||_)&&(C=eT(C+y-(y*r+b*i)+x),N=eT(N+b-(y*n+b*a)+_)),(l||c)&&(C=eT(C+l/100*(o=g.getBBox()).width),N=eT(N+c/100*o.height)),o="matrix("+r+","+n+","+i+","+a+","+C+","+N+")",g.setAttribute("transform",o),w&&(g.style[rW]=o)},nb=function(e,t,r,n,i){var a,o,s=U(i),l=parseFloat(i)*(s&&~i.indexOf("rad")?rO:1)-n,c=n+l+"deg";return s&&("short"===(a=i.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new rv(e._pt,t,r,n,l,rB),o.e=c,o.u="deg",e._props.push(r),o},nx=function(e,t){for(var r in t)e[r]=t[r];return e},n_=function(e,t,r){var n,i,a,o,s,l,c,u,h=nx({},r._gsap),d=r.style;for(i in h.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),d[rW]=t,n=nd(r,1),r4(r,rW),r.setAttribute("transform",a)):(a=getComputedStyle(r)[rW],d[rW]=t,n=nd(r,1),d[rW]=a),rk)(a=h[i])!==(o=n[i])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)&&(c=tr(a),u=tr(o),s=c!==u?r9(r,i,a,u):parseFloat(a),l=parseFloat(o),e._pt=new rv(e._pt,n,i,s,l-s,rD),e._pt.u=u||0,e._props.push(i));nx(n,h)};eN("padding,margin,Width,Radius",function(e,t){var r="Right",n="Bottom",i="Left",a=(t<3?["Top",r,n,i]:["Top"+i,"Top"+r,n+r,n+i]).map(function(r){return t<2?e+r:"border"+r+e});na[t>1?"border"+e:e]=function(e,t,r,n,i){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return ne(e,t,r)})).join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,i)}});var nw,nC,nN,nT,nj,nS={name:"css",register:r1,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var a,o,s,l,c,u,h,d,f,p,m,v,g,y,b,x=this._props,_=e.style,w=r.vars.startAt;for(h in rT||r1(),t){if("autoRound"!==h){if(o=t[h],!(ev[h]&&t6(h,t,r,n,e,i))){if(c=typeof o,u=na[h],"function"===c&&(c=typeof(o=o.call(r,n,e,i))),"string"===c&&~o.indexOf("random(")&&(o=tx(o)),u)u(this,e,h,o,r)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(e).getPropertyValue(h)+"").trim(),o+="",tP.lastIndex=0,tP.test(a)||(d=tr(a),f=tr(o)),f?d!==f&&(a=r9(e,h,a,f)+f):d&&(o+=d),this.add(_,"setProperty",a,o,n,i,0,0,h),x.push(h);else if("undefined"!==c){if(w&&h in w?(U(a="function"==typeof w[h]?w[h].call(r,n,e,i):w[h])&&~a.indexOf("random(")&&(a=tx(a)),tr(a+"")||(a+=I.units[h]||tr(ne(e,h))||""),"="===(a+"").charAt(1)&&(a=ne(e,h))):a=ne(e,h),l=parseFloat(a),(p="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in rL&&("autoAlpha"===h&&(1===l&&"hidden"===ne(e,"visibility")&&s&&(l=0),r3(this,_,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=rL[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in rk){if(v||((g=e._gsap).renderTransform&&!t.parseTransform||nd(e,t.parseTransform),y=!1!==t.smoothOrigin&&g.smooth,(v=this._pt=new rv(this._pt,_,rW,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new rv(this._pt,g,"scaleY",g.scaleY,(p?eS(g.scaleY,p+s):s)-g.scaleY||0),x.push("scaleY",h),h+="X";else if("transformOrigin"===h){o=nn(o),g.svg?nh(e,o,0,y,0,this):((f=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&r3(this,g,"zOrigin",g.zOrigin,f),r3(this,_,h,nf(a),nf(o)));continue}else if("svgOrigin"===h){nh(e,o,1,y,0,this);continue}else if(h in ns){nb(this,g,h,l,p?eS(l,p+o):o);continue}else if("smoothOrigin"===h){r3(this,g,"smooth",g.smooth,o);continue}else if("force3D"===h){g[h]=o;continue}else if("transform"===h){n_(this,o,e);continue}}else h in _||(h=r0(h)||h);if(m||(s||0===s)&&(l||0===l)&&!rI.test(o)&&h in _)d=(a+"").substr((l+"").length),s||(s=0),f=tr(o)||(h in I.units?I.units[h]:d),d!==f&&(l=r9(e,h,a,f)),this._pt=new rv(this._pt,m?g:_,h,l,(p?eS(l,p+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===t.autoRound?rD:rz),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=rF);else if(h in _)nt.call(this,e,h,a,p?p+o:o);else if(h in e)this.add(e,h,a||e[h],p?p+o:o,n,i);else{ec(h,o);continue}x.push(h)}}}}b&&rm(this)},get:ne,aliases:rL,getSetter:function(e,t,r){var n=rL[t];return n&&0>n.indexOf(",")&&(t=n),t in rk&&t!==rX&&(e._gsap.x||ne(e,"x"))?r&&rS===r?"scale"===t?rq:rG:(rS=r||{},"scale"===t?rK:rQ):e.style&&!q(e.style[t])?rU:~t.indexOf("-")?rV:rs(e,t)},core:{_removeProperty:r4,_getMatrix:nu}};r_.utils.checkPrefix=r0,nj=eN((nw="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(nC="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){rk[e]=1}),eN(nC,function(e){I.units[e]="deg",ns[e]=1}),rL[nj[13]]=nw+","+nC,eN("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");rL[t[1]]=nj[t[0]]}),eN("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){I.units[e]="px"}),r_.registerPlugin(nS);var nE=r_.registerPlugin(nS)||r_;nE.core.Tween},8679:function(e,t,r){"use strict";var n=r(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?o:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var o=u(r);
30h&&(o=o.concat(h(r)));for(var s=l(t),m=l(r),v=0;v<o.length;++v){var g=o[v];if(!a[g]&&!(n&&n[g])&&!(m&&m[g])&&!(s&&s[g])){var y=d(r,g);try{c(t,g,y)}catch(b){}}}}return t}},1118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(3642)}])},5681:function(e,t,r){"use strict";r.d(t,{r:function(){return s}});var n=r(7568),i=r(6042),a=r(655),o=r(120);function s(e){return l.apply(this,arguments)}function l(){return(l=(0,n.Z)(function(e){var t,r,n,s,l,c,u,h,d,f,p,m;return(0,a.__generator)(this,function(a){switch(a.label){case 0:if(t=e.taxonomy,n=void 0===(r=e.fields)?"id,title,slug,name,count":r,l=void 0===(s=e.perPage)?100:s,u=void 0===(c=e.pageParam)?1:c,!t)return[2];return h="".concat("https://api.videotage.org.hk/wp-json/wp/v2/").concat(t,"?_fields=").concat(n,"&per_page=").concat(l,"&page=").concat(u),(0,o.LE)(h),[4,fetch(h).catch(o.S3)];case 1:if(!(d=a.sent()).ok)return[2,Promise.reject(JSON.stringify(d))];return[4,d.json()];case 2:return f=a.sent(),p=d.headers.get("x-wp-total"),m=f.map(function(e,t){return(0,i.Z)({id:t},e)}),[2,(0,i.Z)({result:m},(0,o.ot)({total:p,perPage:l,pageParam:u}))]}})})).apply(this,arguments)}},9136:function(e,t,r){"use strict";var n=r(5893),i=function(e){var t=e.float;return(0,n.jsx)("div",{className:"p-4 flex justify-center items-center ".concat(void 0!==t&&t?"fixed bottom-3 right-5":""),children:(0,n.jsxs)("div",{role:"status",children:[(0,n.jsxs)("svg",{className:"inline mr-2 w-6 h-6 text-gray-200 animate-spin dark:text-gray-600 fill-gray-600 dark:fill-gray-300",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,n.jsx)("span",{className:"sr-only",children:"Loading..."})]})})};t.Z=i},9412:function(e,t,r){"use strict";var n=r(5893),i=r(7294),a=r(6085),o=(0,i.forwardRef)(function(e,t){var r=e.children,o=e.id,s=e.heading,l=e.classNameWrapper,c=e.className,u=e.entity,h=e.prependIcon,d=void 0===h?"":h,f=(0,i.useRef)(null);if((0,i.useEffect)(function(){r&&f.current.querySelectorAll("a").forEach(function(e){e.classList.add("embedded--link"),e.setAttribute("target","_blank")})},[r,f]),u||null!=r&&""!=r)return(0,n.jsxs)("div",{ref:t,id:o,className:"pt-1 ".concat(void 0===l?"":l),children:[s&&(0,n.jsxs)("h2",{className:"mt-5 mt-7 mb-1 md:mb-5 font-bold text-2xl sm:text-3xl md:text-4xl text-gray-700 ".concat(d?"flex gap-2 items-center":""),children:[d||""," ",s," /"]}),u&&(0,n.jsx)(a.Z,{heading:!1,entities:[u],className:"mb-5"}),r&&(0,n.jsx)("div",{ref:f,className:"text-block ".concat(void 0===c?"":c),dangerouslySetInnerHTML:{__html:r}})]})});o.displayName="TextBlock",t.Z=o},6085:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(5893),i=r(7294),a=r(1163),o=r(1664),s=r.n(o),l=r(6873),c=r(120),u=r(6038),h=r(9664),d=r(668),f=r(1900);function p(e){var t=e.children,r=e.heading,o=void 0===r?"artist":r,p=e.entities,m=e.refferal,v=void 0!==m&&m,g=e.className,y=e.thumbnail,b=void 0===y||y,x=(0,i.useRef)(null),_=(0,a.useRouter)(),w=_.asPath,C=(0,f.D)();if((0,i.useEffect)(function(){u.p8.registerPlugin(h.ScrollToPlugin)},[]),(0,i.useEffect)(function(){if(w&&!(0>w.indexOf("#")))try{var e=decodeURIComponent(w).split("#"),t=e[e.length-1];if(!t||!document.querySelectorAll("#".concat(t)).length)return;x.current=u.p8.set(window,{scrollTo:"#".concat(t)},0)}catch(r){console.error("err:"+r)}},[w]),null!=p&&0!=p.length)return(0,n.jsxs)("div",{className:"".concat(void 0===g?"":g),children:[o&&(0,n.jsxs)("div",{className:"mt-2 mb-0 font-bold text-4xl text-gray-700",children:[o," /"]}),t,(0,n.jsx)("div",{className:"flex flex-col gap-4",children:p.map(function(e,t){var r,i=e.title?e.title:(0,c.$Q)(e.post_title),a=e.images||(null===(r=e.acf)||void 0===r?void 0:r.images)||null,o=decodeURIComponent("string"==typeof e.slug?e.slug:e.post_name).replace(/[\s|ï½]/gi,"-").replace(/-+/g,"-");return(0,n.jsx)("h2",{className:"w-full md:w-10/12 lg:w-9/12 uppercase font-bold leading-1 ".concat(v?"text-zinc-300 text-md sm:text-xl lg:text-2xl":"text-green-primary text-xl sm:text-2xl md:text-3xl lg:text-4xl"),children:(0,n.jsx)(s(),{href:v?"#".concat(o):"/vmac/entity/".concat(decodeURIComponent(e.slug||e.post_name)),children:(0,n.jsxs)("a",{className:"opacity-100 hover:opacity-60 transition-opacity duration-500 ease-out inline-flex flex-row gap-3 ".concat(v?"items-start":"items-center"),onClick:function(e){v&&(e.preventDefault(),_.push({hash:o},void 0,{shallow:!0,scroll:!1}),x.current=u.p8.timeline().to(window,{scrollTo:"#".concat(o),duration:C?0:1.5,ease:"power2.inOut"},0))},children:[b&&(null==a?void 0:a.map(function(e){var r,i;if(e.sizes.thumbnail||e.sizes.large)return(0,n.jsx)("div",{className:"avatar",children:(0,n.jsx)("div",{className:"w-16 rounded-full",children:(0,n.jsx)(l.Z,{src:(null===(r=e.sizes.thumbnail)||void 0===r?void 0:r.src)||(null===(i=e.sizes.large)||void 0===i?void 0:i.src),width:"200",height:"200",alt:""})})},t)})),(0,n.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"break-words",lang:"en",children:"string"==typeof i?i:null==i?void 0:i.en}),"string"!=typeof i&&(null==i?void 0:i.tc)?(0,n.jsx)("span",{className:"leading-tight break-words",lang:"zh",children:i.tc}):""]}),v?(0,n.jsx)(d.Z,{className:"mt-1 lg:mt-2"}):""]})})},"title-entity-".concat(t))})})]})}},668:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(5893);function i(e){var t=e.className;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5 text-slate-600 ".concat(void 0===t?"mt-1":t),children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}},2202:function(e,t,r){"use strict";var n=r(6042),i=r(9396),a=r(5893),o=function(e){return(0,a.jsx)("svg",(0,i.Z)((0,n.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 67.06 68.06"},e),{children:(0,a.jsx)("path",{d:"M160.69 136.18a22 22 0 1 1 22-22 22 22 0 0 1-22 22Zm-19.5-1.5-23 23",transform:"translate(-117.13 -90.68)",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:e.strokeWidth||3})}))};t.Z=o},9283:function(e,t,r){"use strict";var n=r(6042),i=r(9396),a=r(5893),o=function(e){return(0,a.jsx)("svg",(0,i.Z)((0,n.Z)({viewBox:"0 0 438.83 32.49",fill:"
30currentColor"},e),{children:(0,a.jsx)("path",{d:"M197.15 21.69V26h5.45v-4.31Zm-61.53 12c-2.19 1.68-5.79 2.52-10.83 2.52h-11.71V26h-5.44v14.78h17.91q8.63 0 12.48-2.52c4.1-2.68 6.31-6.79 6.67-12.29h-5.55c-.26 3.6-1.45 6.18-3.53 7.76ZM164 26h18v-4.31h-18v-9.06h25.87V8.29h-31.33v13.4h-5.64V26h5.64v14.78h31.57v-4.47H164Zm-61.8-4.28V26h5.45v-4.31Zm10.89-9h11.71c5 0 8.6.85 10.83 2.52a9.35 9.35 0 0 1 3.4 6.48h5.55a16.61 16.61 0 0 0-1.6-5.28 13.75 13.75 0 0 0-4.94-5.6q-3.92-2.52-12.48-2.52h-17.92v13.4h5.44Zm20.58 11.65c0 .57 0 1.11-.06 1.63h5.55c0-.53.07-1.07.07-1.63a19.09 19.09 0 0 0-.2-2.65h-5.55a18.24 18.24 0 0 1 .18 2.62ZM50.76 26h-5.58l8.1 14.81h4.54L65.58 26h-5.07l-4.77 9.39ZM41.37 8.29H35.5l7.34 13.4h5.64Zm-4.11 13.4L39.61 26h5.57l-2.34-4.28Zm48.08 0h5.44V8.29h-5.44ZM79.89 26h5.45v-4.31h-5.45Zm-24.45 0h5.07l2.17-4.28h-5.07Zm7.24-4.28h5.14l7-13.4h-5.34Zm28.1 19.09V26h-5.44v14.78Zm312.37-19.12V26h18.61v-4.31ZM367 26l1.39 2.63h-17.48L352.3 26h-5.07l-8.1 14.81h5.36l4.16-8h22l4.16 8h6L372.55 26Zm28.33 14.81h27.28a4.51 4.51 0 0 0 4.5-4.5V26h-5.39v10.25h-25.4V26h-5.45v10.28a4.51 4.51 0 0 0 4.5 4.5Zm27.32-32.52h-27.28a4.5 4.5 0 0 0-4.5 4.5v8.9h5.45v-9h25.44v4.79h5.39v-4.69a4.5 4.5 0 0 0-4.5-4.5Zm25.57 28V26h18v-4.31h-18v-9.06h25.86V8.29h-31.31v13.4h-5.65V26h5.65v14.78h31.56v-4.47ZM385.43 26h5.44v-4.31h-5.44Zm-25.76-14 5.11 9.71h5.39l-7.46-13.4h-5.8l-7.34 13.4h5ZM208 36.25V26h-5.4v10.21a4.57 4.57 0 0 0 4.56 4.57h28.56a4.57 4.57 0 0 0 4.56-4.57V26h-5.38v10.25ZM361.66 26H367l-2.26-4.28h-5.37Zm-75.76 0h5.45v-4.31h-5.45Zm-56.39 0h5.39v-4.31h-5.39Zm67.28 14.81V26h-5.44v14.78Zm47.81-19.12L342.25 26h5l2.34-4.28Zm-4.68-13.4h-90.86v4.4h42.29v9h5.44v-9h43.13Zm-104.2 0h-28.56a4.56 4.56 0 0 0-4.56 4.56v8.84h5.4v-9h26.9v9h5.38v-8.84a4.56 4.56 0 0 0-4.56-4.56Z",transform:"translate(-35.5 -8.29)"})}))};t.Z=o},6712:function(e,t,r){"use strict";var n=r(6042),i=r(9396),a=r(5893),o=function(e){return(0,a.jsx)("svg",(0,i.Z)((0,n.Z)({viewBox:"0 0 175.17 69.22",fill:"currentColor"},e),{children:(0,a.jsx)("path",{d:"M21.47 48.48H15.8L0 .4h7.56l11.07 35L29.71.4h7.69Zm58.62 0V16.34L69 39.77h-5.4L52.27 16.34v32.14H45V.4h7.29l14 29.91L80.09.4h7.29v48.08Zm48.39 0-3.31-9.65h-19l-3.31 9.65h-7.77L112.71.4h5.88l17.62 48.07Zm-12.63-37.2-7.49 21.32h14.78ZM158 48.88a17.47 17.47 0 0 1-12.63-5.13c-4.72-4.73-4.66-10.06-4.66-19.31s-.06-14.59 4.66-19.32A17.46 17.46 0 0 1 158 0c8.85 0 15.46 5.19 17.15 14.78h-7.43c-1.15-4.86-4.39-8.24-9.72-8.24a9.59 9.59 0 0 0-7.09 2.91c-2.36 2.56-2.9 5.33-2.9 15s.54 12.42 2.9 15a9.6 9.6 0 0 0 7.09 2.9c5.33 0 8.64-3.38 9.79-8.24h7.36c-1.6 9.59-8.42 14.79-17.15 14.79M7.93 65.61a4.92 4.92 0 0 0 .2.7c.08-.31.13-.49.19-.7l1.57-5.12a5.61 5.61 0 0 0 .24-1H11a8.08 8.08 0 0 0-.43 1.16l-1.78 5.51a5.82 5.82 0 0 0-.26.93h-.81a7.11 7.11 0 0 0-.27-.93l-1.79-5.51a8 8 0 0 0-.42-1.16h.86a8.56 8.56 0 0 0 .24 1Zm5.82-6.14v.89H13v-.89Zm0 2.21a10.55 10.55 0 0 0-.06 1.13v3.13a10.69 10.69 0 0 0 .06 1.13H13a10.69 10.69 0 0 0 .06-1.13v-3.13a10.69 10.69 0 0 0-.06-1.13Zm6 4.9a4 4 0 0 1 0-.49A1.82 1.82 0 0 1 18 67.17c-1.28 0-2.07-1.06-2.07-2.8s.81-2.8 2.06-2.8a1.85 1.85 0 0 1 1.71 1.06v-.15a4.69 4.69 0 0 1 0-.53v-1.34a10.88 10.88 0 0 0-.06-1.14h.73a10.69 10.69 0 0 0-.06 1.13v5.32a11.07 11.07 0 0 0 .06 1.15h-.67Zm-3.08-2.23a2.93 2.93 0 0 0 .33 1.56 1.28 1.28 0 0 0 1.11.6c1 0 1.61-.85 1.61-2.17a2.5 2.5 0 0 0-.47-1.59 1.47 1.47 0 0 0-1.14-.53c-.9 0-1.46.84-1.46 2.13Zm6.63.14a2.63 2.63 0 0 0 .33 1.4 1.36 1.36 0 0 0 1.18.68 1.4 1.4 0 0 0 1.37-1.17l.59.28a2.71 2.71 0 0 1-.46.83 1.92 1.92 0 0 1-1.51.7c-1.31 0-2.14-1.1-2.14-2.83s.82-2.83 2.07-2.83c1.08 0 1.85.83 2 2.17a4.1 4.1 0 0 0 .06.77Zm2.84-.63a2 2 0 0 0-.44-1.23 1.2 1.2 0 0 0-1-.45 1.31 1.31 0 0 0-1.19.88 2.31 2.31 0 0 0-.21.81Zm2.69.52c0-1.73.86-2.83 2.22-2.83s2.22 1.1 2.22 2.82-.89 2.83-2.27 2.83-2.2-1.09-2.2-2.82Zm.64 0c0 1.36.61 2.19 1.58 2.19s1.58-.83 1.58-2.18S32 62.2 31 62.2s-1.56.86-1.56 2.16Zm7.31-4.19a10.32 10.32 0 0 0-.06 1.11v.38h.4a4.1 4.1 0 0 0 .86-.06v.76a4.1 4.1 0 0 0-.86-.06h-.4v3.48a.89.89 0 0 0 .11.53.49.49 0 0 0 .41.17 1 1 0 0 0 .66-.26l.18.7a1.92 1.92 0 0 1-.94.23 1 1 0 0 1-.82-.31 1.54 1.54 0 0 1-.23-1v-3.58h-.33a4.87 4.87 0 0 0-.76.06v-.76a3.25 3.25 0 0 0 .76.06h.33v-.38a10.32 10.32 0 0 0-.09-1.11ZM43 66.36a2.11 2.11 0 0 1-1.63.81 1.38 1.38 0 0 1-1.48-1.27 1 1 0 0 1 0-.25A1.63 1.63 0 0 1 41.05 64a5.94 5.94 0 0 1 1.95-.25v-.58a.93.93 0 0 0-.85-1 .67.67 0 0 0-.2 0 1.24
301.24 0 0 0-1 .43 1.39 1.39 0 0 0-.26.58L40 63a2 2 0 0 1 .47-.95 1.93 1.93 0 0 1 1.53-.56 1.48 1.48 0 0 1 1.67 1.24 1.34 1.34 0 0 1 0 .4v2.81a8 8 0 0 0 .07 1.1H43Zm0-2a4.29 4.29 0 0 0-1.84.29 1.06 1.06 0 0 0-.64 1 .84.84 0 0 0 .78.9h.11a1.72 1.72 0 0 0 1.33-.71A1.16 1.16 0 0 0 43 65Zm3.6 3.41a1.31 1.31 0 0 0 .27.35 1.49 1.49 0 0 0 1.12.47 1.41 1.41 0 0 0 1.45-1.1 6.15 6.15 0 0 0 .12-1.49 1.72 1.72 0 0 1-1.65 1.07c-1.26 0-2.06-1-2.06-2.72s.81-2.78 2.11-2.78a1.69 1.69 0 0 1 1.6 1.05v-1h.67a10.51 10.51 0 0 0-.06 1.12v3.58a3.52 3.52 0 0 1-.48 2.08 2.07 2.07 0 0 1-1.74.76 2.14 2.14 0 0 1-1.89-1Zm1.37-1.32c1 0 1.59-.87 1.59-2.17s-.6-2.07-1.54-2.07-1.51.85-1.51 2.15.57 2.09 1.46 2.09Zm5.15-2a2.63 2.63 0 0 0 .33 1.4 1.36 1.36 0 0 0 1.18.68A1.4 1.4 0 0 0 56 65.4l.59.28a2.71 2.71 0 0 1-.46.83 1.92 1.92 0 0 1-1.51.7c-1.31 0-2.14-1.1-2.14-2.83s.82-2.83 2.07-2.83c1.08 0 1.86.83 2 2.17a4.1 4.1 0 0 0 .06.77Zm2.84-.63a2 2 0 0 0-.44-1.23 1.24 1.24 0 0 0-1-.45 1.3 1.3 0 0 0-1.18.87 2.26 2.26 0 0 0-.21.81Zm8-2.3a10.46 10.46 0 0 1-.38-1.24c0 .43.06 1 .06 1.29v4.28a7.79 7.79 0 0 0 .07 1.18h-.76a7.78 7.78 0 0 0 .05-1.14v-5.23a7.84 7.84 0 0 0-.06-1.19h1a5 5 0 0 0 .28 1L66.25 66l2-5.51a5 5 0 0 0 .29-1h1a7.84 7.84 0 0 0-.07 1.19v5.23a7.62 7.62 0 0 0 0 1.17h-.76a7.78 7.78 0 0 0 .06-1.18v-4.36a9.38 9.38 0 0 1 .06-1.23 6.34 6.34 0 0 1-.36 1.22L66.78 66a6.85 6.85 0 0 0-.32 1h-.59a5.5 5.5 0 0 0-.31-1Zm8.5 2.93a2.64 2.64 0 0 0 .34 1.4 1.36 1.36 0 0 0 1.18.68 1.4 1.4 0 0 0 1.37-1.17l.59.28a2.71 2.71 0 0 1-.46.83 1.92 1.92 0 0 1-1.51.7c-1.31 0-2.14-1.1-2.14-2.83s.82-2.83 2.07-2.83c1.08 0 1.85.83 2 2.17a4.1 4.1 0 0 0 .06.77Zm2.85-.63a2 2 0 0 0-.44-1.23 1.26 1.26 0 0 0-1-.45 1.3 1.3 0 0 0-1.18.87 2.26 2.26 0 0 0-.21.81Zm6.42 2.72a4 4 0 0 1 0-.49A1.82 1.82 0 0 1 80 67.17c-1.28 0-2.07-1.06-2.07-2.8s.8-2.8 2.06-2.8a1.85 1.85 0 0 1 1.71 1.06v-.15a2.35 2.35 0 0 1 0-.53v-1.34a8.7 8.7 0 0 0 0-1.14h.73a10.69 10.69 0 0 0-.06 1.13v5.32a11.07 11.07 0 0 0 .06 1.15h-.73Zm-3.08-2.23a2.93 2.93 0 0 0 .35 1.6 1.28 1.28 0 0 0 1.11.6c1 0 1.61-.85 1.61-2.17a2.5 2.5 0 0 0-.47-1.59 1.47 1.47 0 0 0-1.14-.53c-.91 0-1.46.84-1.46 2.13Zm7-4.88v.89h-.85v-.89Zm0 2.21a7.07 7.07 0 0 0-.06 1.13v3.13a7.07 7.07 0 0 0 .06 1.13h-.75a10.65 10.65 0 0 0 0-1.13v-3.09a10.65 10.65 0 0 0 0-1.13ZM91 66.36a2.15 2.15 0 0 1-1.64.81 1.38 1.38 0 0 1-1.47-1.28 1 1 0 0 1 0-.24A1.62 1.62 0 0 1 89.1 64a5.68 5.68 0 0 1 1.9-.25v-.58a.93.93 0 0 0-.85-1 .67.67 0 0 0-.2 0 1.24 1.24 0 0 0-1 .43 1.52 1.52 0 0 0-.26.58l-.63-.18a2 2 0 0 1 .42-.95 1.88 1.88 0 0 1 1.52-.56 1.48 1.48 0 0 1 1.67 1.24 1.34 1.34 0 0 1 0 .4v2.81a8 8 0 0 0 .07 1.1H91Zm0-2a4.29 4.29 0 0 0-1.84.29 1.06 1.06 0 0 0-.64 1 .83.83 0 0 0 .75.9h.14a1.72 1.72 0 0 0 1.33-.71A1.26 1.26 0 0 0 91 65Zm11.81 2.7a8.64 8.64 0 0 0-.26-1l-.44-1.29h-2.89l-.43 1.29a7 7 0 0 0-.26 1h-.87a7.62 7.62 0 0 0 .45-1.15l1.89-5.52a7.11 7.11 0 0 0 .27-.93h.84a5.9 5.9 0 0 0 .29.93l1.86 5.52a11.42 11.42 0 0 0 .45 1.15Zm-2-6.3c0-.08 0-.09-.19-.64l-.09.33c0 .16-.07.27-.09.31l-1.07 3.3h2.51Zm7.53 1.69a1.6 1.6 0 0 0-.68-.15 1.16 1.16 0 0 0-1 .61 2 2 0 0 0-.31 1v2a10.51 10.51 0 0 0 .06 1.12h-.75c0-.46.06-.72.06-1.13v-3.13a10.69 10.69 0 0 0-.06-1.13h.69v.87a1.54 1.54 0 0 1 .46-.61 1.46 1.46 0 0 1 1-.35 3.06 3.06 0 0 1 .74.09Zm3.41-2.26a10.32 10.32 0 0 0-.06 1.11v.38h.4a4.06 4.06 0 0 0 .85-.06v.76a4.06 4.06 0 0 0-.85-.06h-.4v3.48a.89.89 0 0 0 .11.53.49.49 0 0 0 .41.17 1 1 0 0 0 .66-.26l.18.7a1.92 1.92 0 0 1-.94.23 1 1 0 0 1-.82-.31 1.41 1.41 0 0 1-.23-1v-3.58h-.34a4.74 4.74 0 0 0-.75.06v-.76a3.17 3.17 0 0 0 .75.06h.34v-.38a10.32 10.32 0 0 0-.06-1.11Zm11.84 1.44a2.89 2.89 0 0 0-.39-.88 1.7 1.7 0 0 0-1.45-.72c-1.35 0-2.2 1.24-2.2 3.23s.86 3.24 2.2 3.24a1.82 1.82 0 0 0 1.57-.84 2.57 2.57 0 0 0 .33-1l.69.2a3.66 3.66 0 0 1-.45 1.19 2.6 2.6 0 0 1-4.11.28 5.53 5.53 0 0 1 0-6.15 2.41 2.41 0 0 1 1.91-.85 2.35 2.35 0 0 1 1.87.81 3.23 3.23 0 0 1 .65 1.26Zm2.8 2.75c0-1.73.87-2.83 2.23-2.83s2.22 1.1 2.22 2.82-.87 2.83-2.21 2.83-2.22-1.09-2.22-2.82Zm.64 0c0 1.36.61 2.19 1.59 2.19s1.58-.83 1.58-2.18-.6-2.19-1.56-2.19-1.61.86-1.61 2.16Zm6.79-4.91a10.69 10.69 0 0 0-.06 1.13V66a10.51 10.51 0 0 0 .06 1.12h-.75a10.51 10.51 0 0 0 .06-1.12v-5.41a10.51 10.51 0 0 0-.06-1.12Zm3.19 0a10.69 10.69 0 0 0-.01 1.13V66a10.51 10.51 0 0 0 .06 1.12h-.75a10.51 10.51 0 0 0 .06-1.12v-5.41a10.51 10.51 0 0 0-.06-1.12Zm2.87 5a2.53 2.53 0 0 0 .33 1.4 1.36 1.36 0 0 0 1.18.68 1.4 1.4 0 0 0 1.37-1.17l.59.28a2.71 2.71 0 0 1-.46.83 1.92 1.92 0 0 1-1.51.7c-1.31 0-2.14-1.1-2.14-2.83s.82-2.83 2.07-2.83c1.08 0 1.85.83 2 2.17a4.1 4.1 0 0 0 .06.77Zm2.84-.63a2 2 0 0 0-.44-1.23 1.26 1.26 0 0 0-1-.45 1.28 1.28 0 0 0-1.18.87 2.26 2.26 0 0 0-.21.81Zm6.09-.53c-.24-.78-.64-1.15-1.26-1.15-.92 0-1.5.86-1.5 2.2s.6 2.16 1.53 2.16a1.2 1.2 0 0 0 1.09-.64 2.21 2.21 0 0 0 .18-.51l.63.2a3.12 3.12 0 0 1-.34.77 1.8 1.8 0 0 1-1.58.84c-1.31 0-2.16-1.09-2.16-2.8s.84-2.86 2.12-2.86a1.81 1.81 0 0 1 1.61.92 3.07 3.07 0 0 1 .29.64Zm4.19-3.12a10.32 10.32 0 0 0-.06 1.11v.38h.4a4.06 4.06 0 0 0 .85-.06v.76a4.06 4.06 0 0 0-.85-.06h-.4v3.48a.77.77 0 0 0 .11.53.49.49 0 0 0 .41.17 1 1 0 0 0 .66-.26l.18.7a1.92 1.92 0 0 1-.94.23 1 1 0 0 1-.82-.31 1.41 1.41 0 0 1-.23-1v-3.58H152a4.74 4.74 0 0 0-.75.06v-.76a3.17 3.17 0 0 0 .75.06h.34v-.38a10.32 10.32 0 0 0-.06-1.11Zm4-.72v.89h-.81v-.89Zm0 2.21a10.65 10.65 0 0 0 0 1.13v3.13a10.65 10.65 0 0 0 0 1.13h-.75a10.55 10.55 0 0 0 .06-1.13v-3.13a7.07 7.07 0 0 0-.06-1.13Zm2.23 2.7c0-1.73.87-2.83 2.23-2.83s2.22 1.1 2.22 2.82-.87 2.83-2.21 2.83-2.2-1.09-2.2-2.82Zm.64 0c0 1.36.61 2.19 1.59 2.19s1.58-.83 1.58-2.18-.61-2.19-1.5
307-2.19-1.6.86-1.6 2.16Zm6 2.68a8.47 8.47 0 0 0 .07-1.13V62.8a8.47 8.47 0 0 0-.07-1.13h.69v.68a3.09 3.09 0 0 1 0 .43 1.8 1.8 0 0 1 1.68-1.21 1.44 1.44 0 0 1 1.34.75 2.4 2.4 0 0 1 .23 1.15v2.47a7 7 0 0 0 .06 1.12h-.75a10.69 10.69 0 0 0 .06-1.13V63.6c0-.9-.36-1.38-1-1.38a1.41 1.41 0 0 0-1.19.79 2.41 2.41 0 0 0-.39 1v1.93a10.69 10.69 0 0 0 .06 1.13Z"})}))};t.Z=o},6873:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(5893),i=r(7294),a=r(5675),o=r.n(a);function s(e){var t=e.priority,r=(e.title,e.image),a=e.src,s=e.width,l=e.height,c=e.alt,u=e.objectFit,h=e.layout,d=e.className,f=e.onLoadCallBack,p=void 0===f?function(){}:f,m=(0,i.useState)("opacity-0"),v=m[0],g=m[1],y=function(e){g("opacity-100")};if(a||(null==r?void 0:r.src))return(0,n.jsx)(o(),{priority:t,onLoadingComplete:function(e){y(e),p()},src:a||(null==r?void 0:r.src)||null,width:s||r.width,height:l||r.height,layout:void 0===h?"responsive":h,alt:(null==c?void 0:c.en)&&"".concat(c.en," ").concat(c.tc)||c,objectFit:void 0===u?"cover":u,className:"transition-opacity duration-1000 ease-out ".concat(v," ").concat(void 0===d?"":d)})}},7644:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(5893),i=r(9008),a=r.n(i),o=r(1163),s=r(1488);function l(e){var t=e.prefixSection,r=void 0===t?null:t,i=e.section,l=void 0===i?null:i,c=(e.page,e.title),u=e.description,h=e.image,d=e.creators;e.children;var f=(0,o.useRouter)().asPath,p=(0,s.id)(c),m=(0,s.Lb)(void 0===d?null:d),v=(0,s.WC)(" - ",p,m),g=l||r?(0,s.WC)(" ",r,"Videotage",l):"Videotage",y=(0,s.WC)(" | ",v,g),b=u?(0,s.id)({en:(0,s.av)(null==u?void 0:u.en),zh:(0,s.av)(null==u?void 0:u.zh)}):"Establish Videotage as one of the most fundamental new media art institutions in the Greater China region with our perpetual commitment to serving artists and communities in Hong Kong",x=h?(0,s.QX)(h):null,_="".concat("https://www.videotage.org.hk").concat(f.split("?").shift());return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(a(),{children:[(0,n.jsx)("meta",{charSet:"utf-8"}),(0,n.jsx)("meta",{name:"language",content:"english"}),(0,n.jsx)("meta",{httpEquiv:"content-type",content:"text/html"}),(0,n.jsx)("meta",{name:"developer",content:"Ringo Ma"}),(0,n.jsx)("title",{children:y}),(0,n.jsx)("meta",{name:"author",content:"Videotage"}),m?(0,n.jsx)("meta",{name:"creators",content:m}):"",(0,n.jsx)("meta",{name:"description",content:b}),(0,n.jsx)("link",{rel:"canonical",href:_}),(0,n.jsx)("meta",{name:"robots",content:"index,follow"}),(0,n.jsx)("meta",{name:"distribution",content:"web"}),(0,n.jsx)("meta",{name:"og:title",content:y}),(0,n.jsx)("meta",{name:"og:type",content:"website"}),(0,n.jsx)("meta",{name:"og:url",content:"".concat("https://www.videotage.org.hk","/").concat(f)}),(0,n.jsx)("meta",{name:"og:image",content:x}),(0,n.jsx)("meta",{name:"og:site_name",content:"Videotage"}),(0,n.jsx)("meta",{name:"og:description",content:b}),(0,n.jsx)("link",{rel:"apple-touch-icon",href:"/icons/apple-touch-icon.png"}),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"16x16",href:"/icons/favicon-16x16.png"}),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"32x32",href:"/icons/favicon-32x32.png"}),(0,n.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/icons/apple-touch-icon.png"}),(0,n.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,n.jsx)("link",{rel:"mask-icon",color:"#000000",href:"/icons/safari-pinned-tab.svg"}),(0,n.jsx)("meta",{name:"format-detection",content:"telephone=yes"}),(0,n.jsx)("meta",{name:"HandheldFriendly",content:"true"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, minimum-scale=1, initial-scale=1.0"}),(0,n.jsx)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,n.jsx)("meta",{name:"theme-color",content:"#000"}),(0,n.jsx)("link",{rel:"shortcut icon",href:"/icons/favicon.ico"})]})})}},9277:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(5893),i=r(7294);r(1163);var a=(0,i.createContext)({allItems:null,filteredItems:null,selectedIndex:null,updateAllItems:function(){},updateSelectedIndex:function(){}});function o(e){var t=function(e){e!=s&&l(e)},r=function(e){f(e)},o=(0,i.useState)(null),s=o[0],l=o[1],c=(0,i.useState)(null),u=c[0];c[1];var h=(0,i.useState)(null),d=h[0],f=h[1];return(0,n.jsx)(a.Provider,{value:{allItems:s,selectedIndex:d,filteredItems:u,updateAllItems:t,updateSelectedIndex:r},children:e.children})}t.Z=a},5696:function(e,t,r){"use strict";r.d(t,{r:function(){return s}});var n=r(5893),i=r(7294),a=r(1163),o=(0,i.createContext)({section:"",updateSection:function(){}});function s(e){var t=(0,a.useRouter)(),r=t.asPath;t.pathname;var s=(0,i.useState)(""),l=s[0],c=s[1],u=(0,i.useCallback)(function(){var e,t,n=r.split("/").filter(function(e){return e});c("programme"==(t=n.shift())?"programmes":"videos"==t?"vmac":t||"videotage")},[r]);return(0,i.useEffect)(function(){u(r)},[r,u]),(0,n.jsx)(o.Provider,{value:{section:l,updateSection:u},children:e.children})}t.Z=o},7998:function(e,t,r){"use strict";r.d(t,{s:function(){return l}});var n=r(828),i=r(5893),a=r(7294),o=r(1163),s=(0,a.createContext)({sortings:[],readyFetch:!1,currentSortingIndex:0,updateCurrentSortingIndex:function(){},updateCurrentSorting:function(){}});function l(e){var t=function(e){var t=(0,n.Z)(e,2),r=t[0],i=t[1];
30return b.findIndex(function(e){return e.orderby===r&&e.order===i})},r=function(e,r){var n=t([e,r]);g(n)},l=function(e){p(e)},c=(0,o.useRouter)().query,u=c.orderPage,h=c.order,d=(0,a.useState)(!1),f=d[0],p=d[1],m=(0,a.useState)(0),v=m[0],g=m[1],y=(0,a.useState)([{icon:"highlights",label:"highlights",orderby:"hl",order:"desc",path:""},{icon:"clock",label:"Newest",orderby:"date",order:"desc",path:"date/newest"},{icon:"clock",label:"Oldest",orderby:"date",order:"asc",path:"date/oldest"},]),b=y[0];return y[1],(0,a.useEffect)(function(){g(b.findIndex(function(e){var t;return e.path===(null==u||"hl"==u[0]?"":1==u.length&&"date"==u[0]?"date/newest":u.length>1?u.join("/"):"")}))},[b,h]),(0,i.jsx)(s.Provider,{value:{readySwitch:f,sortings:b,currentSortingIndex:v,updateCurrentSortingIndex:r,updateReadySwitch:l},children:e.children})}t.Z=s},2416:function(e,t,r){"use strict";r.d(t,{O9:function(){return n},bG:function(){return i}});var n={programme:"red",programmes:"red",screening:"blue","online-screening":"blue",online_screening:"blue",printed_materials:"green",printed_material:"green","printed-material":"green",vmac:"green",videos:"green",video:"green",entity:"grey"},i={text:{red:"text-red-primary",green:"text-green-primary",blue:"text-blue-primary"},"hover:text":{red:"hover:text-red-primary",green:"hover:text-green-primary",blue:"hover:text-blue-primary"},bg:{red:"bg-red-primary",green:"bg-green-primary",blue:"bg-blue-primary"},"hover:bg":{red:"hover:bg-red-400",green:"hover:bg-green-400",blue:"hover:bg-blue-400"},"selected:bg":{red:"bg-red-800",green:"bg-green-800",blue:"bg-blue-800"},border:{red:"border-red-primary",green:"border-green-primary",blue:"border-blue-primary"}}},120:function(e,t,r){"use strict";r.d(t,{$Q:function(){return f},I$:function(){return a},IK:function(){return c},LE:function(){return o},S3:function(){return s},Sy:function(){return m},bv:function(){return v},ey:function(){return p},gL:function(){return d},hu:function(){return u},l9:function(){return l},mQ:function(){return g},ot:function(){return h}});var n=r(9815),i=r(2416);function a(e){var t;if(e)return null===(t=e.match(/\d{4}/i))||void 0===t?void 0:t.shift()}function o(e){}function s(e){if((null==e?void 0:e.name)!=="AbortError")return console.error(e),new Response(JSON.stringify({code:400,message:"Network Error"}));console.error("api: cancelled.")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=e.order;return t&&"latest"==t?"desc":t&&"oldest"==t?"asc":r&&"desc"==r?"latest":r&&"asc"==r?"oldest":"desc"}function c(e){return new DOMParser().parseFromString(e,"text/html").documentElement.textContent}function u(e){if(!e)return e;var t=RegExp(/&#(\d+);/,"g");return e.replace(t,function(e,t){return String.fromCharCode(t)})}function h(e){var t=e.total,r=e.perPage,n=e.pageParam,i=Math.ceil(t/r);return{nextPage:i>n?n+1:null,totalPage:i,total:t}}function d(e){var t=e.pageParam;return{nextPage:(void 0===t?0:t)+1}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t&&(null==t?void 0:t.english_title)||(null==t?void 0:t.chinese_title))return{en:null!==(i=u(null==t?void 0:null===(r=t.english_title)||void 0===r?void 0:r.trim()))&&void 0!==i?i:null,tc:null!==(a=u(null==t?void 0:null===(n=t.chinese_title)||void 0===n?void 0:n.trim()))&&void 0!==a?a:null};var r,n,i,a,o,s=null!==(o=null==e?void 0:e.rendered)&&void 0!==o?o:e;if(s){if((null==s?void 0:s.trim().indexOf("|"))>-1){var l=s.split("|");return{en:u(l[0].trim()),tc:u(l[1].trim())}}if(!(s.indexOf("ï½")>-1))return u(s);var c=s.split("ï½");return{en:u(c[0].trim()),tc:u(c[1].trim())}}}function p(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null==e?"red":(("programmes"==n||"screening"==n)&&(e=e.filter(function(e){return e.slug==n})),r=null===(t=e[0])||void 0===t?void 0:t.slug,i.O9[r])?i.O9[r]:"red"}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.filter(function(e){return"1"==e.hl}),i=e.filter(function(e){return"1"!=e.hl}),a=i.length-1;a>t;a--){var o=Math.floor(Math.random()*(a+1)),s=i[a];i[a]=i[o],i[o]=s}return(0,n.Z)(r).concat((0,n.Z)(i))}function v(e){if("videos"==e||"video"==e)return"vmac/video";if("entity"==e)return"vmac/entity";if("printed_materials"==e||"printed-material"==e)return"vmac/printed-material";if("online_screening"==e)return"online-screening";if("vmac_news"==e)return"vmac/newsletters";else return encodeURIComponent(e)}function g(e){var t,r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rest";return null!==(n=null===(r=null===(t=[{slug:"topic",rest:"topics-subjects"},{slug:"custom_tag",rest:"tags"},{slug:"classifications",rest:"classifications"},{slug:"program_type",rest:"programme-types"},{slug:"material_type",rest:"material-types"},].filter(function(t){return t[i]==e}))||void 0===t?void 0:t.shift())||void 0===r?void 0:r.slug)&&void 0!==n?n:e}},1488:function(e,t,r){"use strict";function n(e){return e?null==e?void 0:e.toString().replace(/(<([^>]+)>|\n|–)/gi,""):null}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:", ";return"string"==typeof e?e:Object.keys(e).map(function(t){var r=e[t];return!!r&&(null!==r?(r.length>255&&(r=r.substring(0,255)+"..."),r.trim()):void 0)}).filter(function(e){return e}).join(t)}function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(null!=t){if("string"==typeof t)return t;if(void 0!==t[0])return t.filter(function(e){return e}).map(function(e){return i(e)}).join(", ")}}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:", ";if(null!=e){if("string"==typeof e)return e;if(void 0!==e[0])return e.filter(function(e){return e}).map(function(e){return i(e.post_title||e.title,t).split(/[|ï½]/
30).map(function(e){return e.trim()}).join(t)}).join(" / ")}}function s(e){var t,r,n="object"==typeof e?e[0]:e;return"string"==typeof n?n:"object"!=typeof n||(null==n?void 0:n.sizes)?(null===(t=null==n?void 0:n.sizes["1536x1536"])||void 0===t?void 0:t.src)||(null===(r=null==n?void 0:n.sizes.large)||void 0===r?void 0:r.src)||null:void 0}function l(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.filter(function(e){return e}).map(function(e){return null==e?void 0:e.trim()}).join(e)}r.d(t,{Lb:function(){return o},QX:function(){return s},WC:function(){return l},av:function(){return n},id:function(){return a}})},4079:function(e,t,r){"use strict";r.d(t,{F:function(){return u}});var n=r(6042),i=r(9815),a=r(6492),o=r(7568),s=r(655),l=r(120);function c(){return(c=(0,o.Z)(function(e){var t,r,n,i;return(0,s.__generator)(this,function(i){switch(i.label){case 0:return t=e.slug,r="".concat("https://api.videotage.org.hk/wp-json/wp/v2/","options/").concat(t),(0,l.LE)(r),[4,fetch(r).catch(l.S3)];case 1:if(!(n=i.sent()).ok)return[2,Promise.reject(JSON.stringify(n))];return[4,n.json()];case 2:return[2,i.sent()]}})})).apply(this,arguments)}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["option"],t=(arguments.length>1?arguments[1]:void 0).slug,r=arguments.length>2?arguments[2]:void 0;return(0,a.a)((0,i.Z)(e).concat([t]),function(){return function(e){return c.apply(this,arguments)}({slug:t})},(0,n.Z)({},r))}},2368:function(e,t,r){"use strict";r.d(t,{n:function(){return u}});var n=r(9403),i=r(7568),a=r(6042),o=r(9396),s=r(655),l=r(120);function c(){return(c=(0,i.Z)(function(e){var t,r,n,i,c,u,h,d,f,p,m,v,g,y,b,x;return(0,s.__generator)(this,function(s){switch(s.label){case 0:return r=void 0===(t=e.perPage)?25:t,i=void 0===(n=e.pageParam)?1:n,u=void 0===(c=e.programType)?null:c,d=void 0===(h=e.exceptType)?null:h,p=void 0===(f=e.orderby)?"hl":f,v=void 0===(m=e.order)?"DESC":m,g="".concat("https://api.videotage.org.hk/wp-json/wp/v2/","posts/programmes?posts_per_page=").concat(r,"&page=").concat(i,"&orderby=").concat(p,"&order=").concat(v).concat(u?"&program_type_slug=".concat(u):"").concat(d?"&except_type_slug=".concat(d):""),(0,l.LE)(g),[4,fetch(g).catch(l.S3)];case 1:if(!(y=s.sent()).ok)return[2,Promise.reject(JSON.stringify(y))];return[4,y.json()];case 2:if(!(b=s.sent()))return[2,Promise.reject(JSON.stringify(y))];return x=b.map(function(e){return(0,o.Z)((0,a.Z)({},e),{title:(0,l.$Q)(e.post_title||null,e.acf||null)})}),[2,(0,a.Z)({result:x},(0,l.gL)({pageParam:i}))]}})})).apply(this,arguments)}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["programmes"],t=arguments.length>1?arguments[1]:void 0,r=t.fields,i=t.perPage,a=void 0===i?15:i,o=t.orderby,s=void 0===o?"hl":o,l=t.order,u=void 0===l?"desc":l,h=t.staleTime,d=t.cacheTime;return(0,n.N)(e,function(e){var t=e.pageParam;return function(e){return c.apply(this,arguments)}({fields:r,pageParam:void 0===t?1:t,perPage:a,orderby:s,order:u})},{getNextPageParam:function(e,t){return!!e.result.length&&!(e.result.length<a)&&(e.result.length?e.nextPage:void 0)},staleTime:void 0===h?1/0:h,cacheTime:void 0===d?1/0:d})}},9153:function(e,t,r){"use strict";r.d(t,{e:function(){return a}});var n=r(9403),i=r(5681),a=function(e,t){var r=t.taxonomy;return(0,n.N)(e,function(e){var t=e.pageParam;return(0,i.r)({taxonomy:r,pageParam:void 0===t?1:t})},{getNextPageParam:function(e,t){if(null==e?void 0:e.nextPage)return e.nextPage},staleTime:1/0,cacheTime:1/0})}},1900:function(e,t,r){"use strict";r.d(t,{D:function(){return i}});var n=r(7294),i=function(){var e=(0,n.useState)(!1),t=e[0],r=e[1];return(0,n.useEffect)(function(){r(-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))},[]),t}},1210:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,i){var a=r(8875).normalizeLocalePath,o=r(8748).detectDomainLocale,s=t||a(e,n).detectedLocale,l=o(i,void 0,s);if(l){var c="http".concat(l.http?"":"s","://"),u=s===l.defaultLocale?"":"/".concat(s);
30return"".concat(c).concat(l.domain).concat("").concat(u).concat(e)}return!1},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8045:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9361).Z,i=r(4941).Z,a=r(3929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,s=e.src,l=e.sizes,m=e.unoptimized,v=void 0!==m&&m,x=e.priority,T=void 0!==x&&x,S=e.loading,E=e.lazyRoot,k=e.lazyBoundary,O=e.className,R=e.quality,P=e.width,A=e.height,M=e.style,I=e.objectFit,L=e.objectPosition,D=e.onLoadingComplete,B=e.placeholder,F=void 0===B?"empty":B,z=e.blurDataURL,H=c(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]),Z=u.useContext(p.ImageConfigContext),U=u.useMemo(function(){var e=g||Z||d.imageConfigDefault,t=a(e.deviceSizes).concat(a(e.imageSizes)).sort(function(e,t){return e-t}),r=e.deviceSizes.sort(function(e,t){return e-t});return o({},e,{allSizes:t,deviceSizes:r})},[Z]),V=l?"responsive":"intrinsic";"layout"in H&&(H.layout&&(V=H.layout),delete H.layout);var G=N;if("loader"in H){if(H.loader){var q=H.loader;G=function(e){e.config;var t=c(e,["config"]);return q(t)}}delete H.loader}var K="";if(function(e){var t;return"object"==typeof e&&(_(e)||void 0!==e.src)}(s)){var Q=_(s)?s.default:s;if(!Q.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(Q)));if(z=z||Q.blurDataURL,K=Q.src,(!V||"fill"!==V)&&(A=A||Q.height,P=P||Q.width,!Q.height||!Q.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(Q)))}s="string"==typeof s?s:K;var W=!T&&("lazy"===S||void 0===S);(s.startsWith("data:")||s.startsWith("blob:"))&&(v=!0,W=!1),y.has(s)&&(W=!1),U.unoptimized&&(v=!0);var X=i(u.useState(!1),2),$=X[0],Y=X[1],J=i(f.useIntersection({rootRef:void 0===E?null:E,rootMargin:k||"200px",disabled:!W}),3),ee=J[0],et=J[1],er=J[2],en=!W||et,ei={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ea={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},eo=!1,es=C(P),el=C(A),ec=C(R),eu=Object.assign({},M,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:I,objectPosition:L}),eh="blur"!==F||$?{}:{backgroundSize:I||"cover",backgroundPosition:L||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(z,'")')};if("fill"===V)ei.display="block",ei.position="absolute",ei.top=0,ei.left=0,ei.bottom=0,ei.right=0;else if(void 0!==es&&void 0!==el){var ed=el/es,ef=isNaN(ed)?"100%":"".concat(100*ed,"%");"responsive"===V?(ei.display="block",ei.position="relative",eo=!0,ea.paddingTop=ef):"intrinsic"===V?(ei.display="inline-block",ei.position="relative",ei.maxWidth="100%",eo=!0,ea.maxWidth="100%",t="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(es,"%27%20height=%27").concat(el,"%27/%3e")):"fixed"===V&&(ei.display="inline-block",ei.position="relative",ei.width=es,ei.height=el)}var ep={src:b,srcSet:void 0,sizes:void 0};en&&(ep=w({config:U,src:s,unoptimized:v,layout:V,width:es,quality:ec,sizes:l,loader:G}));var em=s,ev="imagesizes";ev="imageSizes";var eg=(n(r={},"imageSrcSet",ep.srcSet),n(r,ev,ep.sizes),n(r,"crossOrigin",H.crossOrigin),r),ey=u.default.useLayoutEffect,eb=u.useRef(D),ex=u.useRef(s);u.useEffect(function(){eb.current=D},[D]),ey(function(){ex.current!==s&&(er(),ex.current=s)},[er,s]);var e_=o({isLazy:W,imgAttributes:ep,heightInt:el,widthInt:es,qualityInt:ec,layout:V,className:O,imgStyle:eu,blurStyle:eh,loading:S,config:U,unoptimized:v,placeholder:F,loader:G,srcString:em,onLoadingCompleteRef:eb,setBlurComplete:Y,setIntersection:ee,isVisible:en,noscriptSizes:l},H);return u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{style:ei},eo?u.default.createElement("span",{style:ea},t?u.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:t}):null):null,u.default.createElement(j,Object.assign({},e_))),T?u.default.createElement(h.default,null,u.default.createElement("link",Object.assign({key:"__nimg-"+ep.src+ep.srcSet+ep.sizes,rel:"preload",as:"image",href:ep.srcSet?void 0:ep.src},eg))):null)};var o=r(6495).Z,s=r(2648).Z,l=r(1598).Z,c=r(7273).Z,u=l(r(7294)),h=s(r(5443)),d=r(9309),f=r(7190),p=r(9977);r(3794);var m=r(2392);function v(e){return"/"===e[0]?e.slice(1):e}var g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},y=new Set,b="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",x=new Map([["default",function(e){var t=e.config,r=e.src,n=e.width,i=e.quality;return r.endsWith(".svg")&&!t.dangerouslyAllowSVG?r:"".concat(m.normalizePathTrailingSlash(t.path),"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(i||75)}],["imgix",function(e){var t=e.config,r=e.src,n=e.width,i=e.quality,a=new URL("".concat(t.path).concat(v(r))),o=a.searchParams;return o.set("auto",o.getAll("auto").join(",")||"format"),o.set("fit",o.get("fit")||"max"),o.set("w",o.get("w")||n.toString()),i&&o.set("q",i.toString()),a.href}],["cloudinary",function(e){var t,r=e.config,n=e.src,i=e.width,a=["f_auto","c_limit","w_"+i,"q_"+(e.quality||"auto")].join(",")+"/";return"".concat(r.path).concat(a).concat(v(n))}],["akamai",function(e){var t=e.config,r=e.src,n=e.width;return"".concat(t.path).concat(v(r),"?imwidth=").concat(n)}],["custom",function(e){var t=e.src;throw Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}],]);function _(e){return void 0!==e.default}function w(e){var t=e.config,r=e.src,n=e.unoptimized,i=e.layout,o=e.width,s=e.quality,l=e.sizes,c=e.loader;if(n)return{src:r,srcSet:void 0,sizes:void 0};var u=function(e,t,r,n){var i=e.deviceSizes,o=e.allSizes;if(n&&("fill"===r||"responsive"===r)){for(var s=/(^|\s)(1?\d?\d)vw/g,l=[];c=s.exec(n);c)l.push(parseInt(c[2]));if(l.length){var c,u,h=.01*(u=Math).min.apply(u,a(l));return{widths:o.filter(function(e){return e>=i[0]*h}),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t||"fill"===r||"responsive"===r?{widths:i,kind:"w"}:{widths:a(new Set([t,2*t].map(function(e){return o.find(function(t){return t>=e})||o[o.length-1]}))),kind:"x"}}(t,o,i,l),h=u.widths,d=u.kind,f=h.length-1;return{sizes:l||"w"!==d?l:"100vw",srcSet:h.map(function(e,n){return"".concat(c({config:t,src:r,quality:s,width:e})," ").concat("w"===d?e:n+1).concat(d)}).join(", "),src:c({config:t,src:r,quality:s,width:h[f]})}}function C(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function N(e){var t,r=(null==(t=e.config)?void 0:t.loader)||"default",n=x.get(r);if(n)return n(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '.concat(d.VALID_LOADERS.join(", "),". Received: ").concat(r))}function T(e,t,r,n,i,a){e&&e.src!==b&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(function(){}).then(function(){if(e.parentNode&&(y.add(t),"blur"===n&&a(!0),null==i?void 0:i.current)){var r=e.naturalWi
30dth,o=e.naturalHeight;i.current({naturalWidth:r,naturalHeight:o})}}))}var j=function(e){var t=e.imgAttributes,r=(e.heightInt,e.widthInt),n=e.qualityInt,i=e.layout,a=e.className,s=e.imgStyle,l=e.blurStyle,h=e.isLazy,d=e.placeholder,f=e.loading,p=e.srcString,m=e.config,v=e.unoptimized,g=e.loader,y=e.onLoadingCompleteRef,b=e.setBlurComplete,x=e.setIntersection,_=e.onLoad,C=e.onError,N=(e.isVisible,e.noscriptSizes),j=c(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return f=h?"lazy":f,u.default.createElement(u.default.Fragment,null,u.default.createElement("img",Object.assign({},j,t,{decoding:"async","data-nimg":i,className:a,style:o({},s,l),ref:u.useCallback(function(e){x(e),(null==e?void 0:e.complete)&&T(e,p,i,d,y,b)},[x,p,i,d,y,b,]),onLoad:function(e){T(e.currentTarget,p,i,d,y,b),_&&_(e)},onError:function(e){"blur"===d&&b(!0),C&&C(e)}})),(h||"blur"===d)&&u.default.createElement("noscript",null,u.default.createElement("img",Object.assign({},j,w({config:m,src:p,unoptimized:v,layout:i,width:r,quality:n,sizes:N,loader:g}),{decoding:"async","data-nimg":i,style:s,className:a,loading:f}))))};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4941).Z;r(5753).default,Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(2648).Z,a=r(7273).Z,o=i(r(7294)),s=r(6273),l=r(2725),c=r(3462),u=r(1018),h=r(7190),d=r(1210),f=r(8684),p={};function m(e,t,r,n){if(e&&s.isLocalURL(t)){Promise.resolve(e.prefetch(t,r,n)).catch(function(e){});var i=n&&void 0!==n.locale?n.locale:e&&e.locale;p[t+"%"+r+(i?"%"+i:"")]=!0}}var v=o.default.forwardRef(function(e,t){var r,i,v=e.href,g=e.as,y=e.children,b=e.prefetch,x=e.passHref,_=e.replace,w=e.shallow,C=e.scroll,N=e.locale,T=e.onClick,j=e.onMouseEnter,S=e.onTouchStart,E=e.legacyBehavior,k=void 0===E?!0!==Boolean(!1):E,O=a(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);r=y,k&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));var R=!1!==b,P=o.default.useContext(c.RouterContext),A=o.default.useContext(u.AppRouterContext);A&&(P=A);var M=o.default.useMemo(function(){var e=n(s.resolveHref(P,v,!0),2),t=e[0],r=e[1];return{href:t,as:g?s.resolveHref(P,g):r||t}},[P,v,g]),I=M.href,L=M.as,D=o.default.useRef(I),B=o.default.useRef(L);k&&(i=o.default.Children.only(r));var F=k?i&&"object"==typeof i&&i.ref:t,z=n(h.useIntersection({rootMargin:"200px"}),3),H=z[0],Z=z[1],U=z[2],V=o.default.useCallback(function(e){(B.current!==L||D.current!==I)&&(U(),B.current=L,D.current=I),H(e),F&&("function"==typeof F?F(e):"object"==typeof F&&(F.current=e))},[L,F,I,U,H]);o.default.useEffect(function(){var e=Z&&R&&s.isLocalURL(I),t=void 0!==N?N:P&&P.locale,r=p[I+"%"+L+(t?"%"+t:"")];e&&!r&&m(P,I,L,{locale:t})},[L,I,Z,N,R,P]);var G={ref:V,onClick:function(e){k||"function"!=typeof T||T(e),k&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),e.defaultPrevented||function(e,t,r,n,i,a,l,c,u,h){if("A"!==e.currentTarget.nodeName.toUpperCase()||(!(f=(d=e).currentTarget.target)||"_self"===f)&&!d.metaKey&&!d.ctrlKey&&!d.shiftKey&&!d.altKey&&(!d.nativeEvent||2!==d.nativeEvent.which)&&s.isLocalURL(r)){e.preventDefault();var d,f,p=function(){"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:c,scroll:l}):t[i?"replace":"push"](r,{forceOptimisticNavigation:!h})};u?o.default.startTransition(p):p()}}(e,P,I,L,_,w,C,N,Boolean(A),R)},onMouseEnter:function(e){k||"function"!=typeof j||j(e),k&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),!(!R&&A)&&s.isLocalURL(I)&&m(P,I,L,{priority:!0})},onTouchStart:function(e){k||"function"!=typeof S||S(e),k&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),!(!R&&A)&&s.isLocalURL(I)&&m(P,I,L,{priority:!0})}};
30if(!k||x||"a"===i.type&&!("href"in i.props)){var q=void 0!==N?N:P&&P.locale,K=P&&P.isLocaleDomain&&d.getDomainLocale(L,q,P.locales,P.domainLocales);G.href=K||f.addBasePath(l.addLocale(L,q,P&&P.defaultLocale))}return k?o.default.cloneElement(i,G):o.default.createElement("a",Object.assign({},O,G),r)});t.default=v,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=void 0;var n=function(e,t){return r(4317).normalizeLocalePath(e,t)};t.normalizeLocalePath=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7190:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4941).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t,r=e.rootRef,c=e.rootMargin,u=e.disabled||!o,h=n(i.useState(!1),2),d=h[0],f=h[1],p=n(i.useState(null),2),m=p[0],v=p[1];return i.useEffect(function(){if(o){if(!u&&!d&&m&&m.tagName){var e,t,n,i,h,p,v;return t=function(e){return e&&f(e)},h=(i=function(e){var t,r={root:e.root||null,margin:e.rootMargin||""},n=l.find(function(e){return e.root===r.root&&e.margin===r.margin});if(n&&(t=s.get(n)))return t;var i=new Map;return t={id:r,observer:new IntersectionObserver(function(e){e.forEach(function(e){var t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},l.push(r),s.set(r,t),t}(n={root:null==r?void 0:r.current,rootMargin:c})).id,p=i.observer,(v=i.elements).set(m,t),p.observe(m),function(){if(v.delete(m),p.unobserve(m),0===v.size){p.disconnect(),s.delete(h);var e=l.findIndex(function(e){return e.root===h.root&&e.margin===h.margin});e>-1&&l.splice(e,1)}}}}else if(!d){var g=a.requestIdleCallback(function(){return f(!0)});return function(){return a.cancelIdleCallback(g)}}},[m,u,c,r,d]),[v,d,i.useCallback(function(){f(!1)},[])]};var i=r(7294),a=r(9311),o="function"==typeof IntersectionObserver,s=new Map,l=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1018:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var n=(0,r(2648).Z)(r(7294)),i=n.default.createContext(null);t.AppRouterContext=i;var a=n.default.createContext(null);t.LayoutRouterContext=a;var o=n.default.createContext(null);t.GlobalLayoutRouterContext=o;var s=n.default.createContext(null);t.TemplateContext=s},3642:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return aO}});var n,i,a,o,s,l,c,u,h=r(6042),d=r(9396),f=r(828),p=r(5893),m=r(7294);r(906);var v=r(1664),g=r.n(v),y=r(1163),b=r(655);r(8679);var x=m.createContext(null);x.Consumer;var _=x.Provider;function w(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function C(e){return e.type===i.literal}function N(e){return e.type===i.argument}function T(e){return e.type===i.number}function j(e){return e.type===i.date}function S(e){return e.type===i.time}function E(e){return e.type===i.select}function k(e){return e.type===i.plural}function O(e){return e.type===i.pound}function R(e){return e.type===i.tag}function P(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function A(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}($=n||(n={}))[$.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",$[$.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",$[$.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",$[$.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",$[$.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",$[$.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",$[$.INVALID_NUMBER_SKELETON=7]="INVALID_
30NUMBER_SKELETON",$[$.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",$[$.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",$[$.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",$[$.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",$[$.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",$[$.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",$[$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",$[$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",$[$.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",$[$.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",$[$.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",$[$.INVALID_TAG=23]="INVALID_TAG",$[$.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",$[$.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",$[$.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Y=i||(i={}))[Y.literal=0]="literal",Y[Y.argument=1]="argument",Y[Y.number=2]="number",Y[Y.date=3]="date",Y[Y.time=4]="time",Y[Y.select=5]="select",Y[Y.plural=6]="plural",Y[Y.pound=7]="pound",Y[Y.tag=8]="tag",(J=a||(a={}))[J.number=0]="number",J[J.dateTime=1]="dateTime";var M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,I=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,L=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function D(e){return e.replace(/^(.*?)-/,"")}var B=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,F=/^(@+)?(\+|#+)?[rs]?$/g,z=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function Z(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(F,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function V(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function G(e){var t=U(e);return t||{}}var q={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],1:["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function K(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(q[t||""]||q[n||""]||q["".concat(n,"-001")]||q["001"])[0]}
30var Q=RegExp("^".concat(M.source,"*")),W=RegExp("".concat(M.source,"*$"));function X(e,t){return{start:e,end:t}}var $,Y,J,ee=!!String.prototype.startsWith,et=!!String.fromCodePoint,er=!!Object.fromEntries,en=!!String.prototype.codePointAt,ei=!!String.prototype.trimStart,ea=!!String.prototype.trimEnd,eo=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},es=!0;try{var el=ev("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");es=(null===(o=el.exec("a"))||void 0===o?void 0:o[0])==="a"}catch(ec){es=!1}var eu=ee?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},eh=et?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},ed=er?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},ef=en?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},ep=ei?function(e){return e.trimStart()}:function(e){return e.replace(Q,"")},em=ea?function(e){return e.trimEnd()}:function(e){return e.replace(W,"")};function ev(e,t){return RegExp(e,t)}if(es){var eg=ev("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var r;return eg.lastIndex=t,null!==(r=eg.exec(e)[1])&&void 0!==r?r:""}}else s=function(e,t){for(var r=[];;){var n=ef(e,t);if(void 0===n||e_(n)||ew(n))break;r.push(n),t+=n>=65536?2:1}return eh.apply(void 0,r)};var ey=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var a=[];!this.isEOF();){var o=this.char();if(123===o){var s=this.parseArgument(e,r);if(s.err)return s;a.push(s.val)}else if(125===o&&e>0)break;else if(35===o&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:X(l,this.clonePosition())})}else if(60!==o||this.ignoreTag||47!==this.peek()){if(60===o&&!this.ignoreTag&&eb(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;a.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;a.push(s.val)}}else{if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,X(this.clonePosition(),this.clonePosition()));break}}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:X(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,X(r,this.clonePosition()));var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,X(r,this.clonePosition()));if(this.isEOF()||!eb(this.char()))return this.error(n.INVALID_TAG,X(l,this.clonePosition()));var c=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,X(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:s,location:X(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,X(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ex(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var l=X(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(e=this.peek()||0,eb(e)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
30case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return eh.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),eh(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,X(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,X(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:X(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,X(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=s(this.message,t),n=t+r.length;this.bumpTo(n);var i=X(e,this.clonePosition());return{value:r,location:i}},e.prototype.parseArgumentOptions=function(e,t,r,o){var s,l=this.clonePosition(),c=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,X(l,u));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=em(f.val);if(0===p.length)return this.error(n.EXPECT_ARGUMENT_STYLE,X(this.clonePosition(),this.clonePosition()));var m=X(d,this.clonePosition());h={style:p,styleLocation:m}}var v=this.tryParseArgumentClose(o);if(v.err)return v;var g=X(o,this.clonePosition());if(h&&eu(null==h?void 0:h.style,"::",0)){var y=ep(h.style.slice(2));if("number"===c){var f=this.parseNumberSkeletonFromString(y,h.styleLocation);if(f.err)return f;return{val:{type:i.number,value:r,location:g,style:f.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,g);var x,_,w=y;this.locale&&(w=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var o=1+(1&a),s=a<2?1:3+(a>>1),l=K(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var p={type:a.dateTime,pattern:w,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(x=w,_={},x.replace(I,function(e){var t=e.length;switch(e[0]){case"G":_.era=4===t?"long":5===t?"narrow":"short";break;case"y":_.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":_.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":_.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":_.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");_.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");_.weekday=["short","long","narrow","short"][t-4];break;case"a":_.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":_.hourCycle="h12",_.hour=["numeric","2-digit"][t-1];break;case"H":_.hourCycle="h23",_.hour=["numeric","2-digit"][t-1];break;case"K":_.hourCycle="h11",_.hour=["numeric","2-digit"][t-1];break;case"k":_.hourCycle="h24",_.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":_.minute=["numeric","2-digit"][t-1];break;case"s":_.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":_.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),_):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:g,style:p},err:null}}
30return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:g,style:null!==(s=null==h?void 0:h.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,X(C,(0,b.__assign)({},C)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),T=0;if("select"!==c&&"offset"===N.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),N=this.parseIdentifierIfPossible(),T=f.val}var j=this.tryParsePluralOrSelectOptions(e,c,t,N);if(j.err)return j;var v=this.tryParseArgumentClose(o);if(v.err)return v;var S=X(o,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:ed(j.val),location:S},err:null};return{val:{type:i.plural,value:r,options:ed(j.val),offset:T,pluralType:"plural"===c?"cardinal":"ordinal",location:S},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,X(l,u))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,X(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,X(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(L).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],o=i.slice(1),s=0;s<o.length;s++)if(0===o[s].length)throw Error("Invalid number skeleton");r.push({stem:a,options:o})}return r}(e)}catch(i){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=D(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,b.__assign)((0,b.__assign)((0,b.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,b.__assign)((0,b.__assign)({},e),G(t))},{}));continue;case"engineering":t=(0,b.__assign)((0,b.__assign)((0,b.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,b.__assign)((0,b.__assign)({},e),G(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(z,function(e,r,n,i,a,o){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(H.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(B.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(B,function(e,r,n,i,a,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,b.__assign)((0,b.__assign)({}
vendor: 4,320 bytes, line 30
30,t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,b.__assign)((0,b.__assign)({},t),Z(i)));continue}if(F.test(n.stem)){t=(0,b.__assign)((0,b.__assign)({},t),Z(n.stem));continue}var a=U(n.stem);a&&(t=(0,b.__assign)((0,b.__assign)({},t),a));var o=V(n.stem);o&&(t=(0,b.__assign)((0,b.__assign)({},t),o))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,o=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(0===c.length){var h=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=X(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(l.has(c))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,X(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([c,{value:p.val,location:X(f,this.clonePosition())},]),l.add(c),this.bumpSpace(),c=(a=this.parseIdentifierIfPossible()).value,u=a.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,X(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(n.MISSING_OTHER_CLAUSE,X(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=10*a+(o-48),this.bump();else break}var s=X(n,this.clonePosition());return i?eo(a*=r)?{val:a,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ef(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(eu(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&e_(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function eb(e){return e>=97&&e<=122||e>=65&&e<=90}function ex(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function e_(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ew(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124
30===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function eC(e,t){void 0===t&&(t={}),t=(0,b.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ey(e,t).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,E(t)||k(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else T(t)&&P(t.style)?delete t.style.location:(j(t)||S(t))&&A(t.style)?delete t.style.location:R(t)&&e(t.children)})}(r.val),r.val}function eN(e,t){var r=t&&t.cache?t.cache:eP,n=t&&t.serializer?t.serializer:ek;return(t&&t.strategy?t.strategy:eE)(e,{cache:r,serializer:n})}function eT(e,t,r,n){var i,a=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function ej(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}function eS(e,t,r,n,i){return r.bind(t,e,n,i)}function eE(e,t){var r=1===e.length?eT:ej;return eS(e,this,r,t.cache.create(),t.serializer)}
30var ek=function(){return JSON.stringify(arguments)};function eO(){this.cache=Object.create(null)}eO.prototype.get=function(e){return this.cache[e]},eO.prototype.set=function(e,t){this.cache[e]=t};var eR,eP={create:function(){return new eO}},eA={variadic:function(e,t){return eS(e,this,ej,t.cache.create(),t.serializer)},monadic:function(e,t){return eS(e,this,eT,t.cache.create(),t.serializer)}};(eR=l||(l={})).MISSING_VALUE="MISSING_VALUE",eR.INVALID_VALUE="INVALID_VALUE",eR.MISSING_INTL_API="MISSING_INTL_API";var eM,eI=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,b.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eL=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),l.INVALID_VALUE,i)||this}return(0,b.__extends)(t,e),t}(eI),eD=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),l.INVALID_VALUE,n)||this}return(0,b.__extends)(t,e),t}(eI),eB=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),l.MISSING_VALUE,r)||this}return(0,b.__extends)(t,e),t}(eI);function eF(e){return"function"==typeof e}function ez(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(eM=c||(c={}))[eM.literal=0]="literal",eM[eM.object=1]="object";var eH,eZ=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var a,o,s,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===c.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,i,a,o,s){if(1===t.length&&C(t[0]))return[{type:c.literal,value:t[0].value},];for(var u,h=[],d=0;d<t.length;d++){var f=t[d];if(C(f)){h.push({type:c.literal,value:f.value});continue}if(O(f)){"number"==typeof o&&h.push({type:c.literal,value:n.getNumberFormat(r).format(o)});continue}var p=f.value;if(!(a&&p in a))throw new eB(p,s);var m=a[p];if(N(f)){m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),h.push({type:"string"==typeof m?c.literal:c.object,value:m});continue}if(j(f)){var v="string"==typeof f.style?i.date[f.style]:A(f.style)?f.style.parsedOptions:void 0;h.push({type:c.literal,value:n.getDateTimeFormat(r,v).format(m)});continue}if(S(f)){var v="string"==typeof f.style?i.time[f.style]:A(f.style)?f.style.parsedOptions:i.time.medium;h.push({type:c.literal,value:n.getDateTimeFormat(r,v).format(m)});continue}if(T(f)){var v="string"==typeof f.style?i.number[f.style]:P(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(m*=v.scale||1),h.push({type:c.literal,value:n.getNumberFormat(r,v).format(m)});continue}if(R(f)){var g=f.children,y=f.value,b=a[y];if(!eF(b))throw new eD(y,"function",s);var x=e(g,r,n,i,a,o),_=b(x.map(function(e){return e.value}));Array.isArray(_)||(_=[_]),h.push.apply(h,_.map(function(e){return{type:"string"==typeof e?c.literal:c.object,value:e}}))}if(E(f)){var w=f.options[m]||f.options.other;if(!w)throw new eL(f.value,m,Object.keys(f.options),s);h.push.apply(h,e(w.value,r,n,i,a));continue}if(k(f)){var w=f.options["=".concat(m)];if(!w){if(!Intl.PluralRules)throw new eI('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',l.MISSING_INTL_API,s);var M=n.getPluralRules(r,{type:f.pluralType}).select(m-(f.offset||0));w=f.options[M]||f.options.other}if(!w)throw new eL(f.value,m,Object.keys(f.options),s);h.push.apply(h,e(w.value,r,n,i,a,m-(f.offset||0)));continue}}return h.length<2?h:h.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===c.literal&&t.type===c.literal?r.value+=t.value:e.push(t),e},[])}(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=i||{},d=(h.formatters,(0,b.__rest)(h,["formatters"]));this.ast=e.__parse(t,(0,b.__assign)((0,b.__assign)({},d),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,n?Object.keys(a).reduce(function(e,t){var r,i;return e[t]=(r=a[t],(i=n[t])?(0,b.__assign)((0,b.__assign)((0,b.__assign)({},r||{}),i||{}
30),Object.keys(r).reduce(function(e,t){return e[t]=(0,b.__assign)((0,b.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,b.__assign)({},a)):a),this.formatters=i&&i.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:ez(s.number),strategy:eA.variadic}),getDateTimeFormat:eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:ez(s.dateTime),strategy:eA.variadic}),getPluralRules:eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:ez(s.pluralRules),strategy:eA.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eC,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();(eH=u||(u={})).FORMAT_ERROR="FORMAT_ERROR",eH.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",eH.INVALID_CONFIG="INVALID_CONFIG",eH.MISSING_DATA="MISSING_DATA",eH.MISSING_TRANSLATION="MISSING_TRANSLATION";var eU=function(e){function t(r,n,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,b.__extends)(t,e),t}(Error),eV=function(e){function t(t,r){return e.call(this,u.UNSUPPORTED_FORMATTER,t,r)||this}return(0,b.__extends)(t,e),t}(eU),eG=function(e){function t(t,r){return e.call(this,u.INVALID_CONFIG,t,r)||this}return(0,b.__extends)(t,e),t}(eU),eq=function(e){function t(t,r){return e.call(this,u.MISSING_DATA,t,r)||this}return(0,b.__extends)(t,e),t}(eU),eK=function(e){function t(t,r,n){return e.call(this,u.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this}return(0,b.__extends)(t,e),t}(eU),eQ=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a}return(0,b.__extends)(t,e),t}(eK),eW=function(e){function t(t,r){var n=e.call(this,u.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return(0,b.__extends)(t,e),t}(eU);function eX(e,t,r){return void 0===r&&(r={}),t.reduce(function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t},{})}var e$={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function eY(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eJ(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function e0(e,t,r,n){var i,a=e&&e[t];
30if(a&&(i=a[r]),i)return i;n(new eV("No ".concat(t," format named: ").concat(r)))}function e1(e){w(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var e2=(0,b.__assign)((0,b.__assign)({},e$),{textComponent:m.Fragment});function e5(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var o=r[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}function e6(e){var t,r,n=(t=m.useContext(x),e1(t),t),i=n.formatMessage,a=n.textComponent,o=void 0===a?m.Fragment:a,s=e.id,l=e.description,c=e.defaultMessage,u=e.values,h=e.children,d=e.tagName,f=void 0===d?o:d,p=i({id:s,description:l,defaultMessage:c},u,{ignoreTag:e.ignoreTag});return"function"==typeof h?h(Array.isArray(p)?p:[p]):f?m.createElement(f,null,m.Children.toArray(p)):m.createElement(m.Fragment,null,p)}e6.displayName="FormattedMessage";var e8=m.memo(e6,function(e,t){var r=e.values,n=(0,b.__rest)(e,["values"]),i=t.values,a=(0,b.__rest)(t,["values"]);return e5(i,r)&&e5(n,a)});e8.displayName="MemoizedFormattedMessage";var e4=r(5696),e3=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size,r=void 0===t?32:t;return(0,p.jsx)("svg",{width:r,height:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 125.57 125.57",children:(0,p.jsx)("path",{fill:"currentColor",d:"M783.08,345.1V455.37a7.67,7.67,0,0,1-7.65,7.65H730.89V421.28h14.85l2.82-18.42H730.89V390.91c0-5,2.47-10,10.39-10h8V365.28A98.28,98.28,0,0,0,735.05,364c-14.56,0-24.07,8.82-24.07,24.79v14H694.8v18.42H711V463H665.16a7.67,7.67,0,0,1-7.65-7.65V345.1a7.67,7.67,0,0,1,7.65-7.65H775.43A7.67,7.67,0,0,1,783.08,345.1Z",transform:"translate(-657.51 -337.45)"})})},e7=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size,r=void 0===t?32:t;return(0,p.jsx)("svg",{width:r,height:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 131.5 133.2",children:(0,p.jsx)("path",{fill:"currentColor",d:"M120.9,3.8l-110.3,0c-4.2,0-7.6,3.4-7.6,7.6v110.3c0,4.2,3.4,7.6,7.6,7.6l110.3,0c4.2,0,7.6-3.4,7.6-7.6V11.5 C128.5,7.2,125.1,3.8,120.9,3.8z M102.5,81.3c0,12.2-9.9,22.1-22.1,22.1H51c-12.2,0-22.1-9.9-22.1-22.1V51.9 c0-12.2,9.9-22.1,22.1-22.1h29.4c12.2,0,22.1,9.9,22.1,22.1V81.3z M80.4,36.7H51c-8.4,0-15.2,6.8-15.2,15.2v29.4 c0,8.4,6.8,15.2,15.2,15.2h29.4c8.4,0,15.2-6.8,15.2-15.2V51.9C95.6,43.5,88.8,36.7,80.4,36.7z M66,84.7c-10,0-18.1-8.1-18.1-18.1 c0-10,8.1-18.1,18.1-18.1c10,0,18.1,8.1,18.1,18.1C84.2,76.6,76,84.7,66,84.7z M85.2,51.6c-2.4,0-4.3-1.9-4.3-4.3 c0-2.4,1.9-4.3,4.3-4.3c2.4,0,4.3,1.9,4.3,4.3C89.5,49.6,87.6,51.6,85.2,51.6z M77.7,66.6c0,6.4-5.2,11.6-11.6,11.6 c-6.4,0-11.6-5.2-11.6-11.6S59.6,55,66,55C72.4,55,77.7,60.2,77.7,66.6z"})})},e9=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size,r=void 0===t?32:t;return(0,p.jsx)("svg",{width:r,height:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 125.57 125.57",children:(0,p.jsx)("path",{fill:"currentColor",d:"M731.24,401.42,714,410c-.68.37-3-.12-3-.89V391.52c0-.78,2.32-1.27,3-.88l16.55,9C731.21,400,731.94,401,731.24,401.42Zm51.84-56.32V455.37a7.67,7.67,0,0,1-7.65,7.65H665.16a7.67,7.67,0,0,1-7.65-7.65V345.1a7.67,7.67,0,0,1,7.65-7.65H775.43A7.67,7.67,0,0,1,783.08,345.1Zm-29.17,46A15.08,15.08,0,0,0,738.83,376H700.28a15.08,15.08,0,0,0-15.08,15.08v17.94a15.08,15.08,0,0,0,15.08,15.07h38.55a15.08,15.08,0,0,0,15.08-15.07Z",transform:"translate(-657.51 -337.45)"})})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size,r=void 0===t?32:t;return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,strokeWidth:1.5,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 125.5701 125.57",children:[(0,p.jsx)("path",{d:"M62.7848,86.0524q-4.4056,0-8.7159-.3905-.0085.1936-.0085.3905a8.7253,8.7253,0,0,0,17.4505,0q0-.1967-.0086-.3909Q67.1944,86.05,62.7848,86.0524Z"}),(0,p.jsx)("path",{d:"M117.92,0H7.65A7.67,7.67,0,0,0,0,7.65V117.92a7.67,7.67,0,0,0,7.65,7.65H117.92a7.67,7.67,0,0,0,7.65-7.65V7.65A7.67,7.67,0,0,0,117.92,0ZM25.4981,44.8533a37.689,37.689,0,0,1,9.1055-18.909,2.9084,2.9084,0,0,1,4.3343,3.8793,31.8721,31.8721,0,0,0-7.7031,15.9921,2.9084,2.9084,0,0,1-5.7367-.9624Zm72.341,33.2556a2.9092,2.9092,0,0,1-1.8165,2.0316,95.3212,95.3212,0,0,1-18.7352,4.8229q.04.54.04,1.089a14.5421,14.5421,0,1,1-29.0842,0q0-.5491.04-1.089a95.3329,95.3329,0,0,1-18.7366-4.8229,2.9084,2.9084,0,0,1-1.1536-4.6752A31.8646,31.8646,0,0,0,36.6091,54.06l.0008-2.9091a26.1758,26.1758,0,0,1,52.3515.0007l-.0008.1908V54.06a31.8633,31.8633,0,0,0,8.2157,21.4056A2.9083,2.9083,0,0,1,97.8391,78.1089Zm-.1544-29.9061a2.9087,2.9087,0,0,1-3.35-2.3871,31.8744,31.8744,0,0,0-7.703-15.9921,2.9084,2.9084,0,0,1,4.3342-3.8793,37.6927,37.6927,0,0,1,9.1058,18.909A2.9086,2.9086,0,0,1,97.6847,48.2028Z"})]})},tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size,r=void 0===t?32:t;return(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,strokeWidth:1.5,stroke:"currentColor",fill:"
30currentColor",viewBox:"0 0 125.5701 125.57",children:(0,p.jsx)("path",{d:"M117.92,0H7.65A7.67,7.67,0,0,0,0,7.65V117.92a7.67,7.67,0,0,0,7.65,7.65H117.92a7.67,7.67,0,0,0,7.65-7.65V7.65A7.67,7.67,0,0,0,117.92,0ZM74.1973,79.4922,58.3135,95.375A19.8832,19.8832,0,1,1,30.1943,67.2559l6.2022-6.2017a4,4,0,1,1,5.6562,5.6567l-6.2016,6.2012A11.8837,11.8837,0,1,0,52.6567,89.7187L68.541,73.8359a11.8949,11.8949,0,0,0-3.2793-19.13,4,4,0,0,1,3.4492-7.2188,19.8881,19.8881,0,0,1,5.4864,32.0054ZM95.375,58.314l-6.2,6.2016a4,4,0,1,1-5.6582-5.6562l6.2012-6.2022A11.8834,11.8834,0,1,0,72.9121,35.8516L57.03,51.7349a11.8945,11.8945,0,0,0,3.2778,19.1294,4,4,0,1,1-3.4482,7.2187,19.8953,19.8953,0,0,1-5.4868-32.0054L67.2559,30.1943A19.8834,19.8834,0,1,1,95.375,58.314Z"})})},tr=r(4855),tn=[{url:"https://www.facebook.com/videotage",icon:(0,p.jsx)(e3,{size:"37"})},{url:"https://www.instagram.com/videotage_hk",icon:(0,p.jsx)(e7,{size:"40"})},{url:"https://www.youtube.com/channel/UC0PamPmLT5wqHCs-uMISFwA",icon:(0,p.jsx)(e9,{size:"38"})},{url:"https://eepurl.com/bX52qD",icon:(0,p.jsx)(te,{size:"38"})},{type:"copy",url:"https://www.videotage.org.hk",icon:(0,p.jsx)(tt,{size:"38"})},],ti=function(e){var t=e.section,r=void 0===t?"videotage":t,n=e.className,i=e.colorClassName,a=e.hasSubscribe,o=void 0===a||a,s=e.copyTipsText,l=void 0===s?"Copy":s,c=(0,m.useRef)(null),u=(0,m.useState)(l),h=u[0],d=u[1],f=(0,m.useState)(!1),v=f[0],b=f[1],x=(0,y.useRouter)(),_=x.asPath,w=x.locale,C=(0,m.useCallback)(function(){d("Copied!"),b(!0);var e=setTimeout(function(){b(!1),d(l),clearInterval(e)},2e3);return function(){clearInterval(e)}},[]);return(0,p.jsx)("div",{className:"flex flex-row ".concat(n||"gap-4 justify-center items-center"),children:tn.map(function(e,t){var n=e.type,a=e.url,s=e.icon;return"copy"===(void 0===n?null:n)?(0,p.jsx)(tr.CopyToClipboard,{text:"".concat("https://www.videotage.org.hk","/").concat("zh"===w?w:"").concat(_),onCopy:C,children:(0,p.jsx)("div",{ref:c,"data-tip":h,className:"tooltip ".concat(v?"tooltip-open":""," ").concat(i||("vmac"!==r?"text-[#4d4d4d] hover:text-white/[.6]":"text-white/[.8] hover:text-white")," duration-300 ease-out cursor-pointer"),children:s})},"social-icon-".concat(t)):o||"https://eepurl.com/bX52qD"!==a?(0,p.jsx)(g(),{href:a,children:(0,p.jsx)("a",{className:"".concat(i||("vmac"!==r?"text-[#4d4d4d] hover:text-white/[.6]":"text-white/[.8] hover:text-white")," duration-300 ease-out"),target:"_blank",rel:"noopener noreferrer",children:s})},"social-icon-".concat(t)):""})})},ta=function(e){var t=e.onClick,r=e.className;return(0,p.jsx)("button",{className:"btn bg-transparent hover:bg-transparent border-none text-primary-content ".concat(void 0===r?"":r," p-0"),onClick:t,children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})},to=r(9815),ts=r(7598),tl=r.n(ts),tc=r(9283),tu=r(2416),th=r(6038),td={videotage:[{key:"nav.videotage.news",path:"/news"},{key:"nav.videotage.about",path:"/about"},{key:"nav.videotage.programmes",path:"/programmes"},{key:"nav.videotage.onlineScreening",path:"/online-screening"},{key:"nav.videotage.vmac",path:"/vmac"},],vmac:[{key:"nav.vmac.home",path:"/"},{key:"nav.vmac.about",path:"/vmac/about"},{key:"nav.vmac.news",path:"/vmac/newsletters"},{key:"nav.vmac.works",path:"/vmac"},{key:"nav.vmac.artists",path:"/vmac/artists"},{key:"nav.vmac.advancedSearch",path:"/vmac/advanced/search"},]},tf=function(e){var t=e.onClick,r=e.showInfo,n=e.setShowInfo,i=(0,m.useRef)(null),a=(0,m.useRef)([]),o=(0,m.useRef)(),s=(0,y.useRouter)(),l=s.pathname,c=s.asPath,u=s.locale,h=(s.query,s.isReady),d=(0,m.useContext)(e4.Z).section,v=function(e){return"/"!==e&&""!==e&&l==e},b=function(e,t){var r=(0,f.Z)(t,2),n=r[0],i=r[1];return"vmac"===d?l==e?"text-green-500":"text-white":l==e?n:void 0===i?"text-primary-content":i},x=function(){if(u){var e="en"===u?"zh":"en";return n(!1),i.current=th.p8.timeline().to((0,to.Z)(a.current).concat([o.current]),{opacity:0,duration:.5,stagger:{amount:.5},ease:"power2.in",onComplete:function(){s.replace(l,c,{locale:e,shallow:!0})}}),function(){i.current.kill()}}};if((0,m.useEffect)(function(){if(h&&i.current)return n(!0),i.current.to((0,to.Z)(a.current).concat([o.current]),{opacity:1,duration:.5,stagger:{amount:.5},ease:"power2.out"}),function(){i.current.kill()}},[h,u]),d)return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)("ul",{className:"".concat(tl()["navmenu-list"]," w-full flex flex-col gap-5 md:gap-3"),children:[td["vmac"===d?d:"videotage"].map(function(e,n){var i,o,l=e.key,c=e.target,h=e.path,f=e.logo,m=null!==(i=tu.O9[h.replace("/","")])&&void 0!==i?i:"";return(0,p.jsx)("li",{ref:function(e){return a.current[n]=e},className:"".concat(tl()["navmenu-item"]," ").concat(v(h)?"pointer-events-none":""," ").concat(r?"":"pointer-events-none"),children:(0,p.jsx)(g(),{href:"".concat(h),locale:s.locale,activeClassName:tl().selected,children:(0,p.jsxs)("a",{target:"".concat(c||"_self"),className:"flex justify-end text-right p-0 bg-transparent\n ".concat("en"===u?"text-5xl sm:text-6xl md:text-[5rem] leading-[2.5rem] md:leading-none":"","\n ").concat("zh"===u?"text-4xl md:text-[4.5rem] leading-tight":"","\n ").concat("vmac"!=d?null!==(o=tu.bG["hover:text"][m])&&void 0!==o?o:"hover:text-secondary-content":"","\n ").concat(b(h,[tu.bG.text[m],"text-primary-content",]),"\n ").concat(v(h)?"".concat(tl().active," opacity-30"):"","\n "),onClick:t,children:[!f&&(0,p.jsx)(e8,{id:l}),f&&"en"==u&&(0,p.jsx)(tc.Z,{width:"450",height:"80",className:"w-full md:w-min text-primary-content select-none"}),f&&"zh"==u&&(0,p.jsx)(e8,{id:l})]})})},n)}),(0,p.jsx)("li",{ref:o,children:(0,p.jsx)("div",{onClick:x,className:"flex justify-end p-0 bg-transparent text-5xl md:text-7xl text-primary-content hover:text-secondary-content mt-1 md:mt-2 ".concat(r?"":"pointer-events-none"),children:"zh"!==u?"ç¹":"EN"})})]})})},tp=r(6712),tm=function(e){var t=e.onClose,r=(0,y.useRouter)(),n=r.locale,i=r.pathname;r.isReady;var a=(0,m.useContext)(e4.Z),o=(0,m.useState)(!0),s=o[0],l=o[1],c=a.section;return(0,p.jsx)("div",{className:"menu p-4 pb-12 overflow-y-auto w-full md:w-9/12 lg:w-7/12 xl:w-3/6 text-base-content pointer-events-auto flex items-end bg-primary",children:(0,p.jsxs)("div",{className:"flex flex-col items-end justify-between",children:[(0,p.jsx)(ta,{onClick:t}),(0,p.jsx)(tf,{onClick:t,showInfo:s,setShowInfo:l}),(0,p.jsxs)("footer",{className:"flex flex-col gap-2 items-end",children:[(0,p.jsxs)("div",{className:"flex flex-row gap-10 items-center justify-center mt-12 mb-5",children:["vmac"!==c&&(0,p.jsx)(g(),{href:"/",locale:n,children:(0,p.jsx)("a",{className:"/"==i?"pointer-events-none":"pointer-events-auto",children:(0,p.jsx)(tc.Z,{width:"300",height:"60",className:"text-primary-content hover:text-white trasition-color duration-300 ease-out select-none"})})}),"vmac"==c&&(0,p.jsx)(tp.Z,{width:"150",height:"60",className:"text-primary-content select-none"})]}),(0,p.jsx)(ti,{section:c}),(0,p.jsxs)("div",{className:"flex flex-col gap-4 justify-end items-end",children:[(0,p.jsxs)("div",{className:"flex flex-col items-end mt-4 text-grey text-sm not-italic text-primary-content delay-300 duration-500 ".concat(s?"opacity-100":"opacity-0 pointer-events-none"),children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(e8,{id:"contact.tel"})," +852 2573 1814"]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(e8,{id:"contact.email"})," ",(0,p.jsx)("a",{href:"mailto:[email protected]",className:"".concat("vmac"===c?"text-[rgb(240,255,240)] hover:text-[rgb(100,200,100)]":"text-[rgb(160,160,160)] hover:text-[rgb(100,100,100)]"," transition-colors duration-300 ease-out"),children:"[email protected]"})]})]}),(0,p.jsx)("address",{className:"flex text-primary-content text-sm not-italic text-right whitespace-pre-line transition-opacity delay-500 duration-500 ease-in-out ".concat(s?"opacity-100":"opacity-0 pointer-events-none"),children:(0,p.jsx)(e8,{id:"contact.address"})}),(0,p.jsxs)("div",{className:"flex flex-col text-primary-content text-sm text-right transition-opacity delay-700 duration-500 ease-in-out ".concat(s?"opacity-100":"opacity-0 pointer-events-none"),children:[(0,p.jsx)("div",{children:(0,p.jsx)(e8,{id:"contact.opening",values:{open:(0,p.jsx)("time",{children:(0,p.jsx)(e8,{id:"contact.opening.open"})}),to:(0,p.jsx)(e8,{id:"contact.opening.to"}),close:(0,p.jsx)("time",{children:(0,p.jsx)(e8,{id:"contact.opening.close"})}),week:(0,p.jsx)(e8,{id:"contact.opening.week"})}})}),(0,p.jsx)("div",{className:"text-xs",children:(0,p.jsx)(e8,{id:"contact.opening.notes"})})]})]})]})]})})},tv=r(9727),tg=r(4924);function ty(){return(ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
30for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tb(e){if(null==e)throw TypeError("Cannot destructure "+e)}function tx(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function t_(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=t_(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t)}return n}function tw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=t_(e))&&(n&&(n+=" "),n+=t);return n}function tC(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=tN(e))&&(n&&(n+=" "),n+=t);return n}function tN(e){if("string"==typeof e)return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=tN(e[n]))&&(r&&(r+=" "),r+=t);return r}function tT(){return(tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var tj=/^\[(.+)\]$/;function tS(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var tE=/\s+/;function tk(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var tO=/^\[(.+)\]$/,tR=/^\d+\/\d+$/,tP=new Set(["px","full","screen"]),tA=/^(\d+)?(xs|sm|md|lg|xl)$/,tM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,tI=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function tL(e){return!Number.isNaN(Number(e))||tP.has(e)||tR.test(e)||tD(e)}function tD(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&(r.startsWith("length:")||tM.test(r))}function tB(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&r.startsWith("size:")}function tF(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&r.startsWith("position:")}function tz(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&(r.startsWith("url(")||r.startsWith("url:"))}function tH(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&(!Number.isNaN(Number(r))||r.startsWith("number:"))}function tZ(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return r?Number.isInteger(Number(r)):Number.isInteger(Number(e))}function tU(e){return tO.test(e)}function tV(){return!0}function tG(e){return tA.test(e)}function tq(e){var t,r=null==(t=tO.exec(e))?void 0:t[1];return!!r&&tI.test(r)}var tK=function(){for(var e,t,r,n=function(n){var a,s,c,u,h,d,f,p,m,v,g,y,b,x=o[0];return t=(e=tT({cache:function(e){var t=function(t,a){n.set(t,a),++r>e&&(r=0,i=n,n=new Map)};if(e<1)return{get:function(){},set:function(){}};var r=0,n=new Map,i=new Map;return{get:function(e){var r=n.get(e);return void 0!==r?r:void 0!==(r=i.get(e))?(t(e,r),r):void 0},set:function(e,r){n.has(e)?n.set(e,r):t(e,r)}}}((a=o.slice(1).reduce(function(e,t){return t(e)},x())).cacheSize),splitModifiers:(c=a.separator||":",function(e){for(var t=0,r=[],n=0,i=0;i<e.length;i++){var a=e[i];0===t&&a===c[0]&&(1===c.length||e.slice(i,i+c.length)===c)&&(r.push(e.slice(n,i)),n=i+c.length),"["===a?t++:"]"===a&&t--}var o=0===r.length?e:e.substring(n),s=o.startsWith("!"),l=s?o.substring(1):o;return{modifiers:r,hasImportantModifier:s,baseClassName:l}})},(h=function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n,i=t[0],a=r.nextPart.get(i),o=a?e(t.slice(1),a):void 0;if(o)return o;if(0!==r.validators.length){var s=t.join("-");return null==(n=r.validators.find(function(e){return(0,e.validator)(s)}))?void 0:n.classGroupId}}(t,f)||function(e){if(tj.test(e)){var t=tj.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},d=function(e){return a.conflictingClassGroups[e]||[]},m=(p=a).theme,v=p.prefix,g={nextPart:new Map,validators:[]},f=((y=Object.entries(p.classGroups),b=v,b?y.map(function(e){var t;return[e[0],e[1].map(function(e){return"string"==typeof e?b+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){var t;return[b+e[0],e[1]]})):e})]}
30):y).forEach(function(e){var t=e[0];(function e(t,r,n,i){t.forEach(function(t){if("string"==typeof t){(""===t?r:tS(r,t)).classGroupId=n;return}if("function"==typeof t){var a;if(a=t,a.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var a=t[0];e(t[1],tS(r,a),n,i)})})})(e[1],g,t,m)}),g),{getClassGroupId:h,getConflictingClassGroupIds:d}))).cache.get,r=e.cache.set,l=i,i(n)},i=function(n){var i=t(n);if(i)return i;var a,o,s,l,c,u,h=(s=(o=e).splitModifiers,l=o.getClassGroupId,c=o.getConflictingClassGroupIds,u=new Set,n.trim().split(tE).map(function(e){var t=s(e),r=t.modifiers,n=t.hasImportantModifier,i=l(t.baseClassName);if(!i)return{isTailwindClass:!1,originalClassName:e};var a=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?a+"!":a,classGroupId:i,originalClassName:e}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=t+r;return!u.has(n)&&(u.add(n),c(r).forEach(function(e){return u.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,h),h},a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=n;return function(){return l(tC.apply(null,arguments))}}(function(){var e=tk("colors"),t=tk("spacing"),r=tk("blur"),n=tk("brightness"),i=tk("borderColor"),a=tk("borderRadius"),o=tk("borderSpacing"),s=tk("borderWidth"),l=tk("contrast"),c=tk("grayscale"),u=tk("hueRotate"),h=tk("invert"),d=tk("gap"),f=tk("gradientColorStops"),p=tk("inset"),m=tk("margin"),v=tk("opacity"),g=tk("padding"),y=tk("saturate"),b=tk("scale"),x=tk("sepia"),_=tk("skew"),w=tk("space"),C=tk("translate"),N=function(){return["auto","contain","none"]},T=function(){return["auto","hidden","clip","visible","scroll"]},j=function(){return["auto",t]},S=function(){return["",tL]},E=function(){return["auto",tZ]},k=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},O=function(){return["solid","dashed","dotted","double","none"]},R=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},P=function(){return["start","end","center","between","around","evenly"]},A=function(){return["","0",tU]},M=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[tV],spacing:[tL],blur:["none","",tG,tD],brightness:[tZ],borderColor:[e],borderRadius:["none","","full",tG,tD],borderSpacing:[t],borderWidth:S(),contrast:[tZ],grayscale:A(),hueRotate:[tZ],invert:A(),gap:[t],gradientColorStops:[e],inset:j(),margin:j(),opacity:[tZ],padding:[t],saturate:[tZ],scale:[tZ],sepia:A(),skew:[tZ,tU],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",tU]}],container:["container"],columns:[{columns:[tG]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(k(),[tU])}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],top:[{top:[p]}
vendor: 4,876 bytes, line 30
30],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:[tZ]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tU]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",tZ]}],"grid-cols":[{"grid-cols":[tV]}],"col-start-end":[{col:["auto",{span:[tZ]}]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[tV]}],"row-start-end":[{row:["auto",{span:[tZ]}]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tU]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tU]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:P()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(P(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(P(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",tL]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[tG]},tG,tD]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",tL]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",tG,tD]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tH]}],"font-family":[{font:[tV]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tD]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tL]}],"list-style-type":[{list:["none","disc","decimal",tU]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(O(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",tL]}],"underline-offset":[{"underline-offset":["auto",tL]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tD]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",tU]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(k(),[tF])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tB]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tz]}],"bg-color":[{bg:[e]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}
vendor: 4,635 bytes, line 30
30],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(O(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(O())}],"outline-offset":[{"outline-offset":[tL]}],"outline-w":[{outline:[tL]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[tL]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tG,tq]}],"shadow-color":[{shadow:[tV]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":R()}],"bg-blend":[{"bg-blend":R()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tG,tU]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tU]}],duration:[{duration:[tZ]}],ease:[{ease:["linear","in","out","in-out",tU]}],delay:[{delay:[tZ]}],animate:[{animate:["none","spin","ping","pulse","bounce",tU]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[tZ,tU]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tU]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tU]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tU]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tL,tH]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col
30-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}),tQ=["children","href","shape","size","variant","color","startIcon","endIcon","fullWidth","responsive","animation","loading","active","disabled","dataTheme","className","style"],tW=(0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.href,a=e.shape,o=e.size,s=e.variant,l=e.color,c=e.startIcon,u=e.endIcon,h=e.fullWidth,d=e.responsive,f=e.animation,m=e.loading,v=e.active,g=e.disabled,y=e.dataTheme,b=e.className,x=e.style,_=tx(e,tQ),w=tK("btn",b,tw((c&&!m||u)&&"gap-2",(r={},(0,tg.Z)(r,"btn-".concat(o),o),(0,tg.Z)(r,"btn-".concat(a),a),(0,tg.Z)(r,"btn-".concat(s),s),(0,tg.Z)(r,"btn-".concat(l),l),(0,tg.Z)(r,"btn-block",h),(0,tg.Z)(r,"btn-xs md:btn-sm lg:btn-md xl:btn-lg",d),(0,tg.Z)(r,"no-animation",!(void 0===f||f)),(0,tg.Z)(r,"btn-active",v),(0,tg.Z)(r,"btn-disabled",g),(0,tg.Z)(r,"loading",m),r)));return i?(0,p.jsxs)("a",{className:w,style:x,href:i,children:[c&&c,n,u&&u]}):(0,p.jsxs)("button",ty({},_,{ref:t,"data-theme":y,className:w,style:x,disabled:g,children:[c&&!m&&c,n,u&&u]}))});tW.displayName="Button";var tX=["dataTheme","className"],t$=function(e){var t=e.dataTheme,r=e.className,n=tx(e,tX),i=tK("dropdown-content menu p-2 shadow bg-base-100 rounded-box",r);return(0,p.jsx)("ul",ty({},n,{tabIndex:0,"data-theme":t,className:i}))},tY=["className"],tJ=m.forwardRef(function(e,t){var r=e.className,n=tx(e,tY);return(0,p.jsx)("li",{className:r,children:(0,p.jsx)("a",ty({ref:t},n))})}),t0=["children","color","size","button","dataTheme","className","disabled"],t1=function(e){var t=e.children,r=e.color,n=e.size,i=e.button,a=e.dataTheme,o=e.className,s=e.disabled,l=tx(e,t0);return(0,p.jsx)("label",ty({tabIndex:0,className:o},l,{children:void 0===i||i?(0,p.jsx)(tW,{type:"button",dataTheme:a,color:r,size:n,disabled:s,children:t}):t}))},t2=["children","className","item","horizontal","vertical","hover","open","dataTheme"];Object.assign(m.forwardRef(function(e,t){var r,n=e.children,i=e.className,a=e.item,o=e.horizontal,s=e.vertical,l=e.hover,c=e.open,u=e.dataTheme,h=tx(e,t2),d=tK("dropdown",i,tw((r={},(0,tg.Z)(r,"dropdown-".concat(o),o),(0,tg.Z)(r,"dropdown-".concat(s),s),(0,tg.Z)(r,"dropdown-hover",l),(0,tg.Z)(r,"dropdown-open",c),r)));return(0,p.jsxs)("div",ty({role:"listbox"},h,{ref:t,"data-theme":u,className:d,children:[(0,p.jsx)("label",{tabIndex:0,children:n}),(0,p.jsx)("ul",{className:"dropdown-content",children:a})]}))}),{Toggle:t1,Menu:t$,Item:tJ});var t5=["children","className"],t6=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=tx(e,t5),a=tK("modal-action",n);return(0,p.jsx)("div",ty({},i,{className:a,ref:t,children:r}))});t6.displayName="ModalActions";var t8=["children","className"],t4=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=tx(e,t8);return(0,p.jsx)("div",ty({},i,{className:n,ref:t,children:r}))});t4.displayName="ModalBody";var t3=["children","className"],t7=m.forwardRef(function(e,t){var r=e.children,n=e.className,i=tx(e,t3),a=tK("w-full mb-8 text-xl",n);return(0,p.jsx)("div",ty({},i,{className:a,ref:t,children:r}))});t7.displayName="ModalHeader";var t9=["children","open","responsive","onClickBackdrop","dataTheme","className"],re=(0,m.forwardRef)(function(e,t){var r=e.children,n=e.open,i=e.responsive,a=e.onClickBackdrop,o=e.dataTheme,s=e.className,l=tx(e,t9),c=tK("modal",tw({"modal
30-open":n,"modal-bottom sm:modal-middle":i})),u=tK("modal-box",s);return(0,p.jsx)("div",{"aria-label":"Modal","aria-hidden":!n,"aria-modal":n,"data-theme":o,className:c,onClick:function(e){e.stopPropagation(),e.target===e.currentTarget&&(e.stopPropagation(),a&&a())},children:(0,p.jsx)("div",ty({},l,{"data-theme":o,className:u,ref:t,children:r}))})});re.displayName="Modal",Object.assign(re,{Header:t7,Body:t4,Actions:t6});var rt=["children","icon","status","dataTheme","className","innerClassName"];(0,m.forwardRef)(function(e,t){var r=e.children,n=e.icon,i=e.status,a=e.dataTheme,o=e.className,s=e.innerClassName,l=tx(e,rt),c=tK("alert",o,tw((0,tg.Z)({},"alert-".concat(i),i)));return(0,p.jsx)("div",ty({role:"alert"},l,{ref:t,"data-theme":a,className:c,children:(0,p.jsxs)("div",{className:tK("flex-1",s),children:[n,r]})}))}).displayName="Alert";var rr=["children","space","className"],rn=m.forwardRef(function(e,t){var r=e.children,n=e.space,i=void 0===n?-6:n,a=e.className,o=tx(e,rr),s="".concat(i<0?"-":"","space-x-").concat(Math.abs(i)),l=tw("avatar-group",s,a);return(0,p.jsx)("div",ty({"aria-label":"Group of ".concat(r.length," avatar photos")},o,{className:l,ref:t,children:r}))}),ri=["size","src","letters","shape","color","border","borderColor","online","offline","dataTheme","className","children"];Object.assign(m.forwardRef(function(e,t){var r,n,i=e.size,a=void 0===i?"md":i,o=e.src,s=e.letters,l=e.shape,c=e.color,u=e.border,h=e.borderColor,d=e.online,f=e.offline,v=e.dataTheme,g=e.className,y=e.children,b=tx(e,ri),x=tK("avatar",g,tw({online:d,offline:f,placeholder:!o})),_=tw((r={"ring ring-offset-base-100 ring-offset-2":u},(0,tg.Z)(r,"ring-".concat(h),h),(0,tg.Z)(r,"rounded-btn","square"===l),(0,tg.Z)(r,"rounded-full","circle"===l),(0,tg.Z)(r,"w-32 h-32","lg"===a),(0,tg.Z)(r,"w-24 h-24","md"===a),(0,tg.Z)(r,"w-14 h-14","sm"===a),(0,tg.Z)(r,"w-10 h-10","xs"===a),r)),w=tw((n={"bg-neutral-focus":!c,"text-neutral-content":!c},(0,tg.Z)(n,"bg-".concat(c),c),(0,tg.Z)(n,"text-".concat(c,"-content"),c),(0,tg.Z)(n,"ring ring-offset-base-100 ring-offset-2",u),(0,tg.Z)(n,"ring-".concat(h),h),(0,tg.Z)(n,"rounded-btn","square"===l),(0,tg.Z)(n,"rounded-full","circle"===l),(0,tg.Z)(n,"w-32 h-32 text-3xl","lg"===a),(0,tg.Z)(n,"w-24 h-24 text-xl","md"===a),(0,tg.Z)(n,"w-14 h-14","sm"===a),(0,tg.Z)(n,"w-10 h-10","xs"===a),n)),C="number"==typeof a?{width:a,height:a}:{};return(0,p.jsx)("div",ty({"aria-label":"Avatar photo"},b,{"data-theme":v,className:x,ref:t,children:function(){if(o)return(0,p.jsx)("div",{className:_,style:C,children:(0,p.jsx)("img",{src:o})});if(s||(e=y)&&1===m.Children.count(e)&&m.isValidElement(e)&&"string"==typeof e.props.children)return(0,p.jsx)("div",{className:w,style:C,children:(0,p.jsx)("span",{children:s||y})});if(1!==m.Children.count(y))return(0,p.jsx)("div",{className:_,style:C,children:y});var e,t=m.Children.only(y);return m.cloneElement(t,{className:tK(_,t.props.className),style:ty({},C,t.props.style)})}()}))}),{Group:rn});var ra=["children","variant","size","color","responsive","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.variant,a=e.size,o=e.color,s=e.responsive,l=e.dataTheme,c=e.className,u=tx(e,ra),h=tK("badge",c,tw((r={},(0,tg.Z)(r,"badge-".concat(a),a),(0,tg.Z)(r,"badge-".concat(i),i),(0,tg.Z)(r,"badge-".concat(o),o),(0,tg.Z)(r,"badge-xs md:badge-sm lg:badge-md xl:badge-lg",s),r)));return(0,p.jsx)("div",ty({"aria-label":"Badge"},u,{"data-theme":l,className:h,ref:t,children:n}))}).displayName="Badge";var ro=["className"],rs=m.forwardRef(function(e,t){var r=e.className,n=tx(e,ro);return(0,p.jsx)("div",ty({},n,{className:tK("card-actions",r),ref:t}))}),rl=["className"],rc=m.forwardRef(function(e,t){var r=e.className,n=tx(e,rl);return(0,p.jsx)("div",ty({},n,{className:tK("card-body",r),ref:t}))}),ru=["className","tag"],rh=m.forwardRef(function(e,t){var r=e.className,n=e.tag,i=tx(e,ru);return(0,p.jsx)(void 0===n?"div":n,ty({},i,{className:tK("card-title",r),ref:t}))}),rd=m.forwardRef(function(e,t){var r=ty({},(tb(e),e));return(0,p.jsx)("figure",{ref:t,children:(0,p.jsx)("img",ty({},r))})}),rf=["bordered","imageFull","normal","compact","side","className"],rp={compact:{true:"card-compact",xs:"xs:card-compact",sm:"sm:card-compact",md:"md:card-compact",lg:"lg:card-compact"},normal:{true:"card-normal",xs:"xs:card-normal",sm:"sm:card-normal",md:"md:card-normal",lg:"lg:card-normal"},side:{true:"card-side",xs:"xs:card-side",sm:"sm:card-side",md:"md:card-side",lg:"lg:card-side"}};Object.assign(m.forwardRef(function(e,t){var r,n=e.bordered,i=e.imageFull,a=e.normal,o=e.compact,s=e.side,l=e.className,c=tx(e,rf),u=tK("card",l,tw((r={"card-bordered":void 0===n||n,"image-full":i},(0,tg.Z)(r,o&&rp.compact[o.toString()]||"",o),(0,tg.Z)(r,a&&rp.normal[a.toString()]||"",a),(0,tg.Z)(r,s&&rp.side[s.toString()]||"",s),r)));return(0,p.jsx)("div",ty({"aria-label":"Card"},c,{className:u,ref:t}))}),{Actions:rs,Body:rc,Title:rh,Image:rd});var rm=["children","innerRef","src","alt","index","width","hasButtons","buttonStyle","onPrev","onNext","className"],rv=function(e){var t=e.children,r=e.innerRef,n=e.src,i=e.alt,a=e.index,o=e.width,s=e.hasButtons,l=e.buttonStyle,c=e.onPrev,u=e.onNext,h=e.className,d=tx(e,rm),f=tK("carousel-item relative",h,tw({"w-full":"full"===o,"w-1/2":"half"===o,"h-full":!0})),v=tw({"w-full":"full"===o});return(0,p.jsxs)("div",ty({},d,{id:"item".concat(void 0===a?0:a),ref:r,className:f,children:[n?(0,p.jsx)("img",{src:n,alt:i,className:v}):t,s&&(0,p.jsx)("div",{className:"absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2",children:null!=l?(0,p.jsxs)(p.Fragment,{children:[(0,m.cloneElement)(l("â®"),{onClick:c}),(0,m.cloneElement)(l("â¯"),{onClick:u})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(tW,{onClick:c,shape:"circle",children:"â®"}),(0,p.jsx)(tW,{onClick:u,shape:"circle",children:"â¯"})]})})]}))},rg=["children","display","snap","vertical","width","buttonStyle","dataTheme","className"];Object.assign((0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.display,a=void 0===i?"slider":i,o=e.snap,s=e.vertical,l=e.width,c=e.buttonStyle,u=e.dataTheme,h=e.className,d=tx(e,rg),f=tK("carousel",h,tw((r={},(0,tg.Z)(r,"carousel-".concat(o),o),(0,tg.Z)(r,"carousel-vertical",s),(0,tg.Z)(r,"w-full","slider"!==a),r))),v=(0,m.useState)([]),g=v[0],y=v[1],b=(0,m.useState)(0),x=b[0],_=b[1];(0,m.useEffect)(function(){var e=[];n.map(function(t){e.push((0,m.createRef)())}),y(e)},[n]);var w=function(e){var t;null==(t=g[e].current)||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:o}),_(e)};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",ty({role:"listbox","aria-label":"Image carousel"},d,{ref:t,"data-theme":u,className:f,children:n.map(function(e,t){return(0,m.cloneElement)(e,ty({key:t,innerRef:g[t],index:t+1,children:e.props.children,src:e.props.src,alt:e.props.alt,width:"slider"!==a?"full":l,hasButtons:"sequential"===a,buttonStyle:c,onPrev:function(){return w(t-1<0?n.length-1:t-1)},onNext:function(){return w(t+1>n.length-1?0:t+1)}},e.props))})})),"numbered"===a&&(0,p.jsx)("div",{className:"flex justify-center w-full py-2 gap-2",children:n.map(function(e,t){return null!=c?(0,m.cloneElement)(c((t+1).toString()),{key:t,onClick:function(){return w(t)}}):(0,p.jsx)(tW,{active:t===x,onClick:function(){return w(t)},children:t+1},t)})})]})}),{Item:rv});var ry=["children","className"],rb=function(e){var t=e.children,r=e.className,n=tx(e,ry),i=tK("collapse-title",r);return(0,p.jsx)("div",ty({},n,{className:i,children:t}))},rx=["children","className"],r_=function(e){var t=e.children,r=e.className,n=tx(e,rx),i=tK("collapse-content",r);return(0,p.jsx)("div",ty({},n,{className:i,children:t}))},rw=["children","checkbox","icon","open","dataTheme","className","onOpen","onClose","onToggle"];Object.assign(m.forwardRef(function(e,t){var r,n=e.children,i=e.checkbox,a=e.icon,o=e.open,s=e.dataTheme,l=e.className,c=e.onOpen,u=e.onClose,h=e.onToggle,d=tx(e,rw),f=tK("collapse",l,t
30w((r={},(0,tg.Z)(r,"collapse-".concat(a),a),(0,tg.Z)(r,"collapse-open",!0===o),(0,tg.Z)(r,"collapse-close",!1===o),r))),v=(0,m.useState)(o),g=v[0],y=v[1],b=(0,m.useRef)(null),x=function(){var e,t,r;h&&h(),c&&null!=(e=b.current)&&e.checked?c():u&&!(null!=(t=b.current)&&t.checked)&&u(),y(null==(r=b.current)?void 0:r.checked)},_=function(e){!i&&h&&h(),!i&&u&&u(),d.onBlur&&d.onBlur(e)},w=function(e){!i&&h&&h(),!i&&c&&c(),d.onFocus&&d.onFocus(e)};return(0,p.jsxs)("div",ty({"aria-expanded":o},d,{ref:t,tabIndex:!0===g?void 0:0,"data-theme":s,className:f,onBlur:_,onFocus:w,children:[i&&(0,p.jsx)("input",{type:"checkbox",tabIndex:!0===g?0:void 0,className:"peer",ref:b,onChange:x}),n]}))}),{Title:rb,Content:r_});var rC=["color","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r=e.color,n=e.dataTheme,i=e.className,a=tx(e,rC),o=tK("progress",i,tw((0,tg.Z)({},"progress-".concat(r),r)));return(0,p.jsx)("progress",ty({},a,{ref:t,"data-theme":n,className:o}))}).displayName="Progress";var rN=["value","size","thickness","color","dataTheme","className","children"];(0,m.forwardRef)(function(e,t){var r=e.value,n=e.size,i=e.thickness,a=e.color,o=e.dataTheme,s=e.className,l=e.children,c=tx(e,rN),u=tK("radial-progress",s,tw((0,tg.Z)({},"text-".concat(a),a))),h=Math.min(100,Math.max(0,r));return(0,p.jsx)("div",ty({role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":100},c,{ref:t,"data-theme":o,className:u,style:{"--value":h,"--size":void 0===n?"4rem":n,"--thickness":void 0===i?"4px":i},children:l}))}).displayName="RadialProgress";var rT=["variant","className"],rj=m.forwardRef(function(e,t){var r=e.variant,n=e.className,i=tx(e,rT),a=tK(n,tw((0,tg.Z)({},"stat-".concat(r),r)));return(0,p.jsx)("div",ty({},i,{className:a,ref:t}))}),rS=["dataTheme","className"],rE=Object.assign((0,m.forwardRef)(function(e,t){var r=e.dataTheme,n=e.className,i=tx(e,rS),a=tK("stat",n);return(0,p.jsx)("div",ty({},i,{"data-theme":r,className:a,ref:t}))}),{Item:rj}),rk=["horizontal","vertical","dataTheme","className","children"];Object.assign(m.forwardRef(function(e,t){var r=e.horizontal,n=e.vertical,i=e.dataTheme,a=e.className,o=e.children,s=tx(e,rk),l=tK("stats",a,tw({"stats-horizontal":r,"stats-vertical":n}));return(0,p.jsx)("div",ty({},s,{ref:t,"data-theme":i,className:l,children:o}))}),{Stat:rE});var rO=["children"],rR=m.forwardRef(function(e,t){var r=e.children,n=tx(e,rO);return(0,p.jsx)("thead",ty({},n,{ref:t,children:(0,p.jsx)("tr",{children:null==r?void 0:r.map(function(e,t){return(0,p.jsx)("th",{children:e},t)})})}))}),rP=["children"],rA=m.forwardRef(function(e,t){var r=e.children,n=tx(e,rP);return(0,p.jsx)("tbody",ty({},n,{ref:t,children:r}))}),rM=["children","active","hover","className"],rI=m.forwardRef(function(e,t){var r=e.children,n=e.active,i=e.hover,a=e.className,o=tx(e,rM),s=tK(a,tw({active:n,hover:i}));return(0,p.jsx)("tr",ty({},o,{className:s,ref:t,children:null==r?void 0:r.map(function(e,t){return t<1?(0,p.jsx)("th",{children:e},t):(0,p.jsx)("td",{children:e},t)})}))}),rL=["children"],rD=m.forwardRef(function(e,t){var r=e.children,n=tx(e,rL);return(0,p.jsx)("tfoot",ty({},n,{ref:t,children:(0,p.jsx)("tr",{children:null==r?void 0:r.map(function(e,t){return(0,p.jsx)("th",{children:e},t)})})}))}),rB=["children","compact","zebra","dataTheme","className"];Object.assign(m.forwardRef(function(e,t){var r=e.children,n=e.compact,i=e.zebra,a=e.dataTheme,o=e.className,s=tx(e,rB),l=tK("table",o,tw({"table-zebra":i,"table-compact":n}));return(0,p.jsx)("table",ty({},s,{"data-theme":a,className:l,ref:t,children:r}))}),{Head:rR,Body:rA,Row:rI,Footer:rD});var rF=["message","children","open","color","position","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.message,i=e.children,a=e.open,o=e.color,s=e.position,l=e.dataTheme,c=e.className,u=tx(e,rF),h=tK("tooltip",c,tw((r={"tooltip-open":a},(0,tg.Z)(r,"tooltip-".concat(o),o),(0,tg.Z)(r,"tooltip-top","top"===s),(0,tg.Z)(r,"tooltip-bottom","bottom"===s),(0,tg.Z)(r,"tooltip-left","left"===s),(0,tg.Z)(r,"tooltip-right","right"===s),r)));return(0,p.jsx)("div",ty({role:"tooltip"},u,{ref:t,"data-theme":l,"data-tip":n,className:h,children:i}))}).displayName="Tooltip";var rz=["children","title","dataTheme","className"],rH=m.forwardRef(function(e,t){var r=e.children,n=e.title,i=e.className,a=tx(e,rz),o=tK("label",i);return(0,p.jsxs)("label",ty({},a,{className:o,children:[(0,p.jsx)("span",{className:"label-text cursor-pointer",ref:t,children:n}),r]}))}),rZ=["children","dataTheme","className"],rU=Object.assign(m.forwardRef(function(e,t){var r=e.children,n=e.dataTheme,i=e.className,a=tx(e,rZ),o=tK("form-control",i);return(0,p.jsx)("form",ty({role:"form"},a,{"data-theme":n,className:o,ref:t,children:r}))}),{Label:rH}),rV=["color","size","indeterminate","dataTheme","className"];
30(0,m.forwardRef)(function(e,t){var r,n=e.color,i=e.size,a=e.indeterminate,o=e.dataTheme,s=e.className,l=tx(e,rV),c=tK("checkbox",s,tw((r={},(0,tg.Z)(r,"checkbox-".concat(i),i),(0,tg.Z)(r,"checkbox-".concat(n),n),r))),u=(0,m.useRef)(null);return(0,m.useImperativeHandle)(t,function(){return u.current}),(0,m.useEffect)(function(){u.current&&(a?u.current.indeterminate=!0:u.current.indeterminate=!1)},[a]),(0,p.jsx)("input",ty({},l,{ref:u,type:"checkbox","data-theme":o,className:c}))}).displayName="Checkbox";var rG=["value","placeholder","bordered","borderOffset","size","color","dataTheme","className","type"];(0,m.forwardRef)(function(e,t){var r,n=e.value,i=e.placeholder,a=e.bordered,o=e.borderOffset,s=e.size,l=e.color,c=e.dataTheme,u=e.className,h=e.type,d=tx(e,rG),f=tK("input",u,tw((r={},(0,tg.Z)(r,"input-".concat(s),s),(0,tg.Z)(r,"input-".concat(l),l),(0,tg.Z)(r,"focus:outline-offset-0",!o),(0,tg.Z)(r,"input-bordered",void 0===a||a),r)));return(0,p.jsx)("input",ty({},d,{ref:t,type:h,value:n,placeholder:i,"data-theme":c,className:f}))}).displayName="Input";var rq=["color","size","name","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.color,i=e.size,a=e.name,o=e.dataTheme,s=e.className,l=tx(e,rq),c=tK("radio",s,tw((r={},(0,tg.Z)(r,"radio-".concat(i),i),(0,tg.Z)(r,"radio-".concat(n),n),r)));return(0,p.jsx)("input",ty({},l,{ref:t,type:"radio",name:a,"data-theme":o,className:c}))}).displayName="Radio";var rK=["color","size","step","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n,i=e.color,a=e.size,o=e.step,s=e.dataTheme,l=e.className,c=tx(e,rK),u=tK("range",l,tw((r={},(0,tg.Z)(r,"range-".concat(a),a),(0,tg.Z)(r,"range-".concat(i),i),r))),h=(0,m.useMemo)(function(){var e;return null!=(e=Math.ceil(100/Math.max(1,Number(o))))?e:1},[c.max,o]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("input",ty({},c,{ref:t,type:"range",step:o,"data-theme":s,className:u})),!isNaN(parseFloat(o))&&isFinite(o)&&(0,p.jsx)("div",{className:"w-full flex justify-between text-xs px-2",children:(0,to.Z)(Array(h+1)).map(function(e,t){return(0,p.jsx)("span",{children:"|"},t)})})]})}).displayName="Range";var rQ=function(e){var t=ty({},(tb(e),e));return(0,p.jsx)("input",ty({},t,{type:"checkbox"}))},rW=["children","size","half","hidden","dataTheme","className","value","onChange"];Object.assign(m.forwardRef(function(e,t){var r,n=e.children,i=e.size,a=e.half,o=e.hidden,s=e.dataTheme,l=e.className,c=e.value,u=e.onChange,h=tx(e,rW),d=tK("rating",l,tw((r={},(0,tg.Z)(r,"rating-".concat(i),i),(0,tg.Z)(r,"rating-half",a),(0,tg.Z)(r,"rating-hidden",o||0===c),r)));return(0,p.jsxs)("div",ty({"aria-label":"Rating"},h,{ref:t,"data-theme":s,className:d,children:[0===c&&(0,p.jsx)(rQ,{className:tw(d,"hidden"),checked:!0,readOnly:!0}),m.Children.map(n,function(e,t){return m.cloneElement(e,{key:t+c,checked:c===t+1,readOnly:null==u,onChange:function(){null==u||u(t+1)}})})]}))}),{Item:rQ});var rX=["value","children"],r$=function(e){var t=e.value,r=e.children,n=tx(e,rX);return(0,p.jsx)("option",ty({},n,{value:t,children:r}))},rY=["children","value","onChange","size","color","bordered","borderOffset","dataTheme","className"],rJ=function(e,t){var r,n=e.children,i=e.value,a=e.onChange,o=e.size,s=e.color,l=e.bordered,c=e.borderOffset,u=e.dataTheme,h=e.className,d=tx(e,rY),f=tK("select",h,tw((r={},(0,tg.Z)(r,"select-".concat(o),o),(0,tg.Z)(r,"select-".concat(s),s),(0,tg.Z)(r,"focus:outline-offset-0",!c),(0,tg.Z)(r,"select-bordered",void 0===l||l),r)));return(0,p.jsx)("select",ty({},d,{ref:t,"data-theme":u,className:f,onChange:function(e){return null==a?void 0:a(e.currentTarget.value)},value:i,children:n}))};Object.assign(m.forwardRef(rJ),{Option:r$});var r0=["color","size","dataTheme","className"],r1=(0,m.forwardRef)(function(e,t){var r,n=e.color,i=e.size,a=e.dataTheme,o=e.className,s=tx(e,r0),l=tK("toggle",o,tw((r={},(0,tg.Z)(r,"toggle-".concat(i),i),(0,tg.Z)(r,"toggle-".concat(n),n),r)));return(0,p.jsx)("input",ty({},s,{ref:t,type:"checkbox","data-theme":a,className:l}))});r1.displayName="Toggle";var r2=["children","size","horizontal","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.size,a=e.horizontal,o=e.dataTheme,s=e.className,l=tx(e,r2),c=tK("artboard","artboard-demo",s,tw((r={},(0,tg.Z)(r,"phone-".concat(i),i),(0,tg.Z)(r,"horizontal",a),r)));return(0,p.jsx)("div",ty({"aria-label":"Artboard"},l,{ref:t,"data-theme":o,className:c,children:n}))}).displayName="Artboard";var r5=["children","side","open","mobile","end","dataTheme","className","toggleClassName","contentClassName","sideClassName","overlayClassName","onClickOverlay"],r6=function(e){var t=e.children,r=e.side,n=e.open,i=e.mobile,a=e.end,o=e.dataTheme,s=e.className,l=e.toggleClassName,c=e.contentClassName,u=e.sideClassName,h=e.overlayClassName,d=e.onClickOverlay,f=tx(e,r5),m=tK("drawer",s,tw({"drawer-mobile":i,"drawer-end":a}));return(0,p.jsxs)("div",ty({"aria-expanded":n},f,{"data-theme":o,className:m,children:[(0,p.jsx)("input",{type:"checkbox",className:tw("drawer
30-toggle",l),checked:n,readOnly:!0}),(0,p.jsx)("div",{className:tw("drawer-content",c),children:t}),(0,p.jsxs)("div",{className:tw("drawer-side",u),children:[(0,p.jsx)("label",{className:tw("drawer-overlay",h),onClick:d}),r]})]}))},r8=["className"],r4=m.forwardRef(function(e,t){var r=e.className,n=tx(e,r8),i=tK("footer-title",r);return(0,p.jsx)("span",ty({},n,{className:i,ref:t}))}),r3=["center","dataTheme","className"];Object.assign(m.forwardRef(function(e,t){var r=e.center,n=e.dataTheme,i=e.className,a=tx(e,r3),o=tK("footer",i,tw({"footer-center":r}));return(0,p.jsx)("div",ty({role:"contentinfo"},a,{"data-theme":n,className:o,ref:t}))}),{Title:r4});var r7=["dataTheme","className","children"],r9=m.forwardRef(function(e,t){var r=e.dataTheme,n=e.className,i=e.children,a=tx(e,r7),o=tK("hero-content",n);return(0,p.jsx)("div",ty({},a,{"data-theme":r,className:o,ref:t,children:i}))}),ne=["dataTheme","className","children"],nt=m.forwardRef(function(e,t){var r=e.dataTheme,n=e.className,i=e.children,a=tx(e,ne),o=tK("hero-overlay",n);return(0,p.jsx)("div",ty({},a,{"data-theme":r,className:o,ref:t,children:i}))}),nr=["dataTheme","className","children"];Object.assign(m.forwardRef(function(e,t){var r=e.dataTheme,n=e.className,i=e.children,a=tx(e,nr),o=tK("hero",n);return(0,p.jsx)("div",ty({role:"banner"},a,{"data-theme":r,className:o,ref:t,children:i}))}),{Content:r9,Overlay:nt});var nn=["children","size","vertical","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.size,a=e.vertical,o=e.dataTheme,s=e.className,l=tx(e,nn),c=tK("input-group",s,tw((r={},(0,tg.Z)(r,"input-group-".concat(i),i),(0,tg.Z)(r,"input-group-vertical",a),r)));return(0,p.jsx)("label",ty({},l,{"data-theme":o,className:c,ref:t,children:n}))}).displayName="InputGroup";var ni=["dataTheme","className","children"];(0,m.forwardRef)(function(e,t){var r=e.dataTheme,n=e.className,i=e.children,a=tx(e,ni),o=tK("stack",n);return(0,p.jsx)("div",ty({"aria-label":"Stack"},a,{ref:t,"data-theme":r,className:o,children:i}))}).displayName="Stack";var na=["horizontal","vertical","className","children"],no={start:"toast-start",center:"toast-center",end:"toast-end"},ns={top:"toast-top",middle:"toast-middle",bottom:"toast-bottom"};(0,m.forwardRef)(function(e,t){var r=e.horizontal,n=e.vertical,i=e.className,a=e.children,o=tx(e,na);return(0,p.jsx)("div",ty({},o,{className:tK("toast",no[void 0===r?"end":r],ns[void 0===n?"bottom":n],i),ref:t,children:a}))}).displayName="Toast";var nl=["children","href"],nc=m.forwardRef(function(e,t){var r=e.children,n=e.href,i=tx(e,nl);return(0,p.jsx)("li",ty({role:"link"},i,{ref:t,children:n?(0,p.jsx)("a",{href:n,children:r}):(0,p.jsx)(p.Fragment,{children:r})}))}),nu=["children","dataTheme","className","innerProps","innerRef"];Object.assign(m.forwardRef(function(e,t){var r=e.children,n=e.dataTheme,i=e.className,a=e.innerProps,o=e.innerRef,s=tx(e,nu),l=tK("breadcrumbs","text-sm",i);return(0,p.jsx)("div",ty({role:"navigation","aria-label":"Breadcrumbs"},s,{"data-theme":n,className:l,ref:t,children:(0,p.jsx)("ul",ty({},a,{ref:o,children:r}))}))}),{Item:nc});var nh=["children","className"],nd=(0,m.forwardRef)(function(e,t){var r=e.children,n=e.className,i=tx(e,nh),a=tK("btm-nav-label",n);return(0,p.jsx)("span",ty({},i,{className:a,ref:t,children:r}))}),nf=["size","dataTheme","className","children"],np=(0,m.forwardRef)(function(e,t){var r=e.size,n=e.dataTheme,i=e.className,a=e.children,o=tx(e,nf),s=tK("btm-nav",tw((0,tg.Z)({},"btm-nav-".concat(r),r)),i);return(0,p.jsx)("div",ty({},o,{"data-theme":n,className:s,ref:t,children:a}))});np.displayName="BottomNavigation",Object.assign(np,{Label:nd});var nm=["children","href","color","hover","dataTheme","className"];(0,m.forwardRef)(function(e,t){var r,n=e.children,i=e.href,a=e.color,o=e.hover,s=e.dataTheme,l=e.className,c=tx(e,nm),u=tK("link",l,tw((r={},(0,tg.Z)(r,"link-".concat(a),a),(0,tg.Z)(r,"link-hover",void 0===o||o),r)));return(0,p.jsx)("a",ty({rel:"noopener noreferrer"},c,{href:i,"data-theme":s,className:u,ref:t,children:n}))}).displayName="Link";var nv=["className"],ng=m.forwardRef(function(e,t){var r=e.className,n=tx(e,nv),i=tK("menu-title",r);return(0,p.jsx)("li",ty({},n,{className:i,ref:t}))}),ny=["className","disabled"],nb=m.forwardRef(function(e,t){var r=e.className,n=e.disabled,i=tx(e,ny),a=tK(r,tw({disabled:n}));return(0,p.jsx)("li",ty({role:"menuitem",className:a},i,{ref:t}))}
30),nx=["normal","compact","horizontal","vertical","dataTheme","className"],n_={compact:{true:"menu-compact",xs:"xs:menu-compact",sm:"sm:menu-compact",md:"md:menu-compact",lg:"lg:menu-compact"},normal:{true:"menu-normal",xs:"xs:menu-normal",sm:"sm:menu-normal",md:"md:menu-normal",lg:"lg:menu-normal"},horizontal:{true:"menu-horizontal",xs:"xs:menu-horizontal",sm:"sm:menu-horizontal",md:"md:menu-horizontal",lg:"lg:menu-horizontal"},vertical:{true:"menu-vertical",xs:"xs:menu-vertical",sm:"sm:menu-vertical",md:"md:menu-vertical",lg:"lg:menu-vertical"}};Object.assign(m.forwardRef(function(e,t){var r,n=e.normal,i=e.compact,a=e.horizontal,o=e.vertical,s=e.dataTheme,l=e.className,c=tx(e,nx),u=tK("menu",l,tw((r={},(0,tg.Z)(r,i&&n_.compact[i.toString()]||"",i),(0,tg.Z)(r,n&&n_.normal[n.toString()]||"",n),(0,tg.Z)(r,a&&n_.horizontal[a.toString()]||"",a),(0,tg.Z)(r,o&&n_.vertical[o.toString()]||"",o),r)));return(0,p.jsx)("ul",ty({role:"menu","data-theme":s,className:u},c,{ref:t}))}),{Title:ng,Item:nb});var nw=m.forwardRef(function(e,t){var r,n=e.children,i=e.section,a=e.dataTheme,o=e.className,s=e.style,l=tK(o,tw((r={},(0,tg.Z)(r,"flex-1","center"!==i),(0,tg.Z)(r,"navbar-".concat(i),i),r)));return(0,p.jsx)("div",{"data-theme":a,className:l,style:s,ref:t,children:n})}),nC=["children","dataTheme","className"],nN=m.forwardRef(function(e,t){var r=e.children,n=e.dataTheme,i=e.className,a=tx(e,nC),o=tK("navbar",i);return(0,p.jsx)("div",ty({role:"navigation","aria-label":"Navbar"},a,{"data-theme":n,className:o,ref:t,children:r}))}),nT=m.forwardRef(function(e,t){return(0,p.jsx)(nw,ty({},e,{section:"start",ref:t}))}),nj=m.forwardRef(function(e,t){return(0,p.jsx)(nw,ty({},e,{section:"center",ref:t}))}),nS=m.forwardRef(function(e,t){return(0,p.jsx)(nw,ty({},e,{section:"end",ref:t}))});Object.assign(nN,{Start:nT,Center:nj,End:nS});var nE=["children","value","color","dataTheme","className"],nk=m.forwardRef(function(e,t){var r=e.children,n=e.value,i=e.color,a=e.dataTheme,o=e.className,s=tx(e,nE),l=tK("step",o,tw((0,tg.Z)({},"step-".concat(i),i)));return(0,p.jsx)("li",ty({"aria-label":"Step"},s,{"data-theme":a,"data-content":n,className:l,ref:t,children:r}))}),nO=["children","dataTheme","className","vertical","horizontal"];Object.assign(m.forwardRef(function(e,t){var r,n=e.children,i=e.dataTheme,a=e.className,o=e.vertical,s=e.horizontal,l=tx(e,nO),c=tK("steps",a,tw((r={},(0,tg.Z)(r,"steps-vertical",o),(0,tg.Z)(r,"steps-horizontal",s),r)));return(0,p.jsx)("ul",ty({"aria-label":"Steps",role:"group"},l,{"data-theme":i,className:c,ref:t,children:n}))}),{Step:nk});var nR=["children","value","activeValue","onClick","size","variant","className","style"],nP=function(e,t){var r,n=e.children,i=e.value,a=e.activeValue,o=e.onClick,s=e.size,l=e.variant,c=e.className,u=e.style,h=tx(e,nR),d=tK("tab",c,tw((r={"tab-active":null!=i&&i===a},(0,tg.Z)(r,"tab-".concat(s),s),(0,tg.Z)(r,"tab-".concat(l),l),r)));return(0,p.jsx)("a",ty({role:"tab"},h,{className:d,style:u,onClick:function(){return o&&o(i)},children:n}))},nA=m.forwardRef(nP),nM=["children","value","onChange","variant","size","boxed","dataTheme","className"],nI=function(e,t){var r=e.children,n=e.value,i=e.onChange,a=e.variant,o=e.size,s=e.boxed,l=e.dataTheme,c=e.className,u=tx(e,nM),h=tK("tabs",c,tw({"tabs-boxed":s}));return(0,p.jsx)("div",ty({ref:t,role:"tablist"},u,{"data-theme":l,className:h,children:r.map(function(e,t){return(0,m.cloneElement)(e,{key:e.props.value,variant:a,size:o,activeValue:n,onClick:function(e){i&&i(e)}})})}))};Object.assign(m.forwardRef(nI),{Tab:nA});var nL=["dataPrefix","dataTheme","status","className","children","innerProps","innerRef"],nD=(0,m.forwardRef)(function(e,t){var r,n=e.dataPrefix,i=e.dataTheme,a=e.status,o=e.className,s=e.children,l=e.innerProps,c=e.innerRef,u=tx(e,nL),h=tK(tw((r={},(0,tg.Z)(r,"bg-".concat(a),a),(0,tg.Z)(r,"text-".concat(a,"-content"),a),r)),o),d=ty({},u,{className:h},!1!==n&&{"data-prefix":n||">"});return(0,p.jsx)("pre",ty({},d,{"data-theme":i,className:h,ref:t,children:(0,p.jsx)("code",ty({},l,{ref:c,children:s}))}))});nD.displayName="CodeMockup.Line";var nB=["dataTheme","className","children"],nF=(0,m.forwardRef)(function(e,t){var r=e.dataTheme,n=e.className,i=e.children,a=tx(e,nB),o=tK("mockup-code",n);return(0,p.jsx)("div",ty({"aria-label":"Code mockup"},a,{"data-theme":r,className:o,ref:t,children:m.Children.map(i,function(e,t){return m.cloneElement(e,{key:t})})}))});nF.displayName="CodeMockup",Object.assign(nF,{Line:nD});var nz=["color","dataTheme","className","children","innerRef","innerProps"];(0,m.forwardRef)(function(e,t){var r=e.color,n=e.dataTheme,i=e.className,a=e.children,o=e.innerRef,s=e.innerProps,l=tx(e,nz),c=tK("mockup-phone",tw((0,tg.Z)({},"border-".concat(r),r)),i);return(0,p.jsxs)("div",ty({"aria-label":"Phone mockup"},l,{"data-theme":n,className:c,ref:t,children:[(0,p.jsx)("div",{className:"camera"}),(0,p.jsx)("div",{className:"display",children:(0,p.jsx)("div",ty({},s,{className:tK("artboard artboard-demo phone-1",null==s?void 0:s.className),ref:o,children:a}))})]}))}).displayName="PhoneMockup";var nH=["border","borderColor","backgroundColor","frameColor","dataTheme","className","children"];(0,m.forwardRef)(function(e,t){var r,n=e.border,i=e.borderColor,a=e.backgroundColor,o=e.frameColor,s=e.dataTheme,l=e.className,c=e.children,u=tx(e,nH),h=i||o||"base-300",d=tK("mockup-window",n&&"border border-".concat(h),tw((r={},(0,tg.Z)(r,"border-".concat(h),h),(0,tg.Z)(r,"bg-".concat(o),o),r)),l),f=m.Children.count(c)>0&&m.Children.toArray(c)[0],v=tw(a&&"bg-".concat(a),n&&"border-t border-".concat(h),"p-4"),g=f&&m.isValidElement(f)?m.cloneElement(f,{className:tK(v,f.props.className)}):(0,p.jsx)("div",{className:v,children:c});return(0,p.jsx)("div",ty({"aria-label":"Window mockup"},u,{"data-theme":s,className:d,ref:t,children:g}))}).displayName="WindowMockup";var nZ=function(){var e=(0,m.useState)(!1),t=e[0],r=e[1],n=(0,m.useRef)(0),i=(0,m.useState)(!1),a=i[0],o=i[1],s=(0,m.useState)("videotage"),l=s[0],c=s[1],u=(0,tv.Z)().y,h=(0,m.useContext)(e4.Z).section;(0,m.useEffect)(function(){u>n.current?r(!0):u<n.current&&r(!1),n.current=u},[u,t]),(0,m.useEffect)(function(){"vmac"==h?c("vmac"):c("videotage")},[h]),(0,m.useEffect)(function(){a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);var d=function(){o(function(e){return!e})};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(tW,{color:"primary",onClick:d,className:"primary pointer-events-auto drawer-button border-none fixed top-4 right-4 flex gap-1 ".concat(t?"bg-black/[0]":"bg-black/[.5]"," hover:bg-black/[.8] text-white z-40 rounded-full w-16 h-16 shadow-lg transition-all duration-300 ease-out"),children:[(0,p.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full"}),(0,p.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full"}),(0,p.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full"})]}),(0,p.jsx)("div",{"data-theme":l,children:(0,p.jsx)(r6,{side:(0,p.jsx)(tm,{onClose:d}),end:!0,open:a,onClickOverlay:d,className:"fixed z-[100] drop-shadow-lg ".concat(a?"pointer-events-auto":"pointer-events-none")})})]})},nU=r(4079),nV=r(9136),nG=r(214),nq=r.n(nG),nK=r(9412);function nQ(e){var t=e.size,r=e.onClick,n=e.icon,i=e.className;return(0,p.jsx)(g(),{href:"https://eepurl.com/bX52qD",children:(0,p.jsx)("a",{target:"_blank",rel:"noopener noreferrer",children:(0,p.jsxs)(tW,{onClick:r,color:"primary",className:"w-full md:w-auto px-10 bg-black/[.3] text-zinc-600 hover:text-zinc-200 border-zinc-700 hover:border-zinc-300 rounded-none mb-7 md:mb-0 z-20 ".concat(i),size:void 0===t?"":t,children:[void 0!==n&&n?(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0M3.124 7.5A8.969 8.969 0 015.292 3m13.416 0a8.969 8.969 0 012.168 4.5"})}):"","subscribe now"]})})})}var nW=function(e){var t=e.className,r=(0,nU.F)(["option"],{slug:"website-footer"},{initialData:"VIDEOTAGE \xa9 1986 - 2023 All rights reserved. Videotage is financially supported by the HKADC. Hong Kong Arts Development fully supports freedom of artistic expression. The views and opinions expressed in this project do not represent the stand of the Council."}),n=r.data,i=r.isLoading,a=(r.isFetching,r.isError);return i?(0,p.jsx)(nV.Z,{}):a?void 0:(0,p.jsx)("footer",{className:"".concat(nq().footer," flex-col pointer-events-auto"),children:(0,p.jsxs)("div",{className:"".concat((void 0===t?null:t)||"w-5/6 md:w-4/6"," grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mx-auto gap-14"),children:[(0,p.jsxs)("div",{className:"col-span-2 md:col-span-1 w-full z-30",children:[(0,p.jsx)("div",{className:"w-max uppercase text-zinc-200 pb-1 pr-2 border-b border-b-zinc-700",children:(0,p.jsx)(e8,{id:"contact.title"})}),(0,p.jsxs)("div",{className:"flex flex-col gap-4 mt-5 justify-start items-start",children:[(0,p.jsxs)("div",{className:"flex flex-col items-start text-zinc-600 text-sm not-italic",children:[(0,p.jsxs)("div",{className:"text-left",children:[(0,p.jsx)(e8,{id:"contact.tel"})," ",(0,p.jsx)("a",{href:"tel:+85225731814",className:"text-zinc-400 hover:text-[rgb(100,100,100)] transition-colors duration-300 ease-out",children:"+852 2573 1814"})]}),(0,p.jsxs)("div",{className:"text-left",children:[(0,p.jsx)(e8,{id:"contact.email"})," ",(0,p.jsx)("a",{href:"mailto:[email protected]",className:"text-zinc-400 hover:text-[rgb(100,100,100)] transition-colors duration-300 ease-out",children:"[email protected]"})]})]}),(0,p.jsx)("address",{className:"flex text-zinc-600 text-sm not-italic text-left whitespace-pre-line",children:(0,p.jsx)(e8,{id:"contact.address"})}),(0,p.jsxs)("div",{className:"flex flex-col text-zinc-600 text-sm text-left",children:[(0,p.jsx)("div",{children:(0,p.jsx)(e8,{id:"contact.opening",values:{open:(0,p.jsx)("time",{children:(0,p.jsx)(e8,{id:"contact.opening.open"})}),to:(0,p.jsx)(e8,{id:"contact.opening.to"}),close:(0,p.jsx)("time",{children:(0,p.jsx)(e8,{id:"contact.opening.close"})}),week:(0,p.jsx)(e8,{id:"contact.opening.week"})}})}),(0,p.jsx)("div",{className:"text-xs",children:(0,p.jsx)(e8,{id:"contact.opening.notes"})})]})]}),(0,p.jsx)(ti,{className:"gap-3 justify-start mt-8",colorClassName:"text-zinc-800 hover:text-zinc-400",hasSubscribe:!1,copyTipsText:"Copy Link for Sharing"})]}),(0,p.jsxs)("div",{className:"col-span-2 md:col-span-1 w-full group flex flex-col justify-start items-start gap-5 mb-2 md:mb-0 pointer-events-auto z-30",children:[(0,p.jsx)("div",{className:"w-max uppercase text-zinc-200 pb-1 pr-2 border-b border-b-zinc-700",children:(0,p.jsx)(e8,{id:"subscribe.title"})}),(0,p.jsx)(nK.Z,{className:"w-full ml-auto text-left text-sm text-zinc-600 group-hover:text-zinc-500 transition-colors duration-300 ease-out",children:"Subscribe to our newsletter, to receive the information of the upcoming programmes of Videotage!"}
30),(0,p.jsx)(nQ,{className:"group-hover:text-zinc-300 group-hover:border-zinc-500 hover:!text-zinc-100 hover:!border-zinc-400 hover:!bg-zinc-600/[.4]"})]}),(0,p.jsx)("div",{className:"w-full col-span-2 lg:col-span-1 mt-3 lg:mt-0 flex flex-col md:flex-row mx-auto z-30",children:(0,p.jsx)(nK.Z,{className:"text-sm text-zinc-700",children:n})})]})})},nX=r(9664);function n$(e){var t=e.className,r=(0,m.useState)(!1),n=r[0],i=r[1],a=(0,m.useRef)(0),o=(0,tv.Z)().y;(0,m.useEffect)(function(){th.p8.registerPlugin(nX.ScrollToPlugin)},[]),(0,m.useEffect)(function(){o>a.current?i(!0):o<a.current&&i(!1),a.current=o},[o,n]);var s=function(){th.p8.to(window,{scrollTo:0,ease:"power2.out",duration:.5})};return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(tW,{color:"primary",onClick:s,className:"group primary pointer-events-none bg-transparent border-none fixed bottom-5 right-0 p-8 hover:bg-transparent hover:opacity-60 opacity-0 transition duration-500 ease-in-out translate-x-5 translate-y-5 z-40 ".concat(n?"":"opacity-100 pointer-events-auto translate-x-0 translate-y-0"," ").concat(void 0===t?"":t),children:(0,p.jsx)("div",{className:"transition-transform ease-in-out duration-500 group-hover:-translate-x-2 group-hover:-translate-y-2",children:(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 83.31 83.31",width:"30",height:"30",children:[(0,p.jsx)("polyline",{className:"fill-transparent stroke-white stroke-2",points:"40.63 1 1 1 1 42.97"}),(0,p.jsx)("line",{className:"fill-transparent stroke-white stroke-2",x1:"1",y1:"1",x2:"82.6",y2:"82.6"})]})})})})}var nY=r(8504),nJ=function(e){var t=e.onClick,r=e.className;return(0,p.jsx)("button",{className:"btn bg-transparent hover:bg-transparent border-none text-primary-content hover:text-white ".concat(void 0===r?"":r," p-0"),onClick:t,children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-6 h-6 md:w-5 md:h-5",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})})})},n0=r(2202),n1=function(e){var t=e.label,r=void 0===t?"collapse":t,n=e.tips,i=void 0!==n&&n,a=e.className,o=e.wrapperPadding,s=(e.expandHeight,e.selected),l=e.children,c=(0,m.useState)(!1),u=c[0],h=c[1],d=(0,m.useRef)(),f=(0,m.useRef)();return(0,p.jsxs)("div",{ref:d,className:"".concat(void 0===o?"pt-2 px-4 pr-6":o," "),children:[r?(0,p.jsxs)("label",{className:"label btn no-animation flex flex-row gap-3 sticky z-10 bg-black ".concat((void 0===a?"":a)||"top-0"),onClick:function(){h(function(e){return!e})},children:[(0,p.jsx)("span",{className:"label-text",children:r}),i?(0,p.jsx)("div",{className:"tooltip tooltip-plain text-zinc-500","data-tip":i,children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})}):"",s&&s.length>0?(0,p.jsxs)("span",{className:"badge badge-sm p-2 ".concat(u?"bg-zinc-900 text-zinc-500":"bg-transparent text-zinc-500"),children:["+",s.length]}):"",(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:3,stroke:"currentColor",className:"w-4 h-4 transition-all duration-200 ease-in-out ml-auto ".concat(u?"-rotate-90":""),children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}):"",(0,p.jsx)("div",{ref:f,className:"".concat(u?"h-0 overflow-hidden opacity-0":"h-full opacity-100"," transition-all duration-300 ease-in-out"),children:l})]})},n2=r(6627),n5=r.n(n2),n6=(0,m.forwardRef)(function(){var e,t,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=i.unit,o=void 0===a?"m":a,s=i.nextRef,l=void 0===s?null:s,c=i.dropdownEnd,u=(i.className,i.label,i.alt,i.value),h=i.setValue,d=i.range,f=void 0===d?[0,60]:d,v=i.inputClasses,g=i.min,y=void 0===g?null:g,b=i.max,x=void 0===b?null:b,_=arguments.length>1?arguments[1]:void 0,w=(0,m.useState)((0,to.Z)(Array(f[1]+1-f[0]).keys()).map(function(e){return String(f[0]+e).padStart(2,"0")})),C=w[0];w[1];var N=(0,m.useState)(),T=N[0];N[1];var j=(0,m.useState)(null!==(r=null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.value)&&void 0!==r?r:null),S=j[0],E=j[1],k=(0,m.useState)(null!==(n=null==x?void 0:null===(t=x.current)||void 0===t?void 0:t.value)&&void 0!==n?n:null),O=k[0],R=k[1],P=(0,m.useRef)(),A=(0,m.useRef)([]);(0,m.useRef)();var M=function(){var e;l&&(null==l||null===(e=l.current)||void 0===e||e.focus())};(0,m.useEffect)(function(){u&&h(u)},[u]);var I=(0,m.useCallback)(function(e){return(0,p.jsx)(n5(),{mask:"99",formatChars:{9:"[0-9]"},maskChar:"",value:e.value,onChange:e.onChange,children:function(t){return(0,p.jsx)("input",{type:"text",ref:_,onKeyDown:e.onKeyDown,placeholder:e.placeholder,className:e.className})}})},[]);return(0,p.jsxs)("div",{className:"dropdown p-0 m-0 ".concat(void 0!==c&&c?"dropdown-end":""),children:[(0,p.jsxs)("label",{tabIndex:0,className:"",onFocus:function(){var e,t,r,n;y&&E(null!==(r=null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.value)&&void 0!==r?r:null),x&&R(null!==(n=null==x?void 0:null===(t=x.current)||void 0===t?void 0:t.value)&&void 0!==n?n:null)},children:[(0,p.jsx)(I,{onKeyDown:function(e){"Enter"===e.key&&(P.current.blur(),M())},value:null!=u?u:"",onChange:function(){var e,t;h(null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.value),(null==_?void 0:null===(t=_.current)||void 0===t?void 0:t.value.length)===2&&(P.current.blur(),M())},placeholder:o,className:"input appearance-none w-full max-w-xs rounded-none ".concat(v," placeholder:text-zinc-500 w-12 text-center mx-0 px-0 border-l-0 border-r-0")}),(0,p.jsx)("label",{className:"label justify-center ",children:(0,p.jsx)("span",{className:"label-text-alt text-zinc-600",children:o})})]}),(0,p.jsx)("ul",{tabIndex:0,ref:P,className:"dropdown-content m-0 p-0 shadow bg-zinc-900 border border-zinc-800 rounded-md w-full h-72 overflow-y-auto",children:C.map(function(e,t){return(0,p.jsx)("li",{ref:function(e){A.current[t]=e},className:" bg-zinc-900 hover:bg-zinc-800 ".concat(S&&e<=S?"btn-disabled":""," ").concat(O&&e>=O?"btn-disabled":""," ").concat(S&&e==S||O&&e==O?"text-zinc-500":""),onClick:function(e){},children:(0,p.jsx)("a",{className:"text-sm py-3 ".concat(e==u||T==t?"bg-zinc-700":""),onClick:function(){_.current.value=e,h(e)},children:"".concat(e==S?"from: ":e==O?"to: ":"").concat(e)})},t)})})]})});n6.displayName="InputDuration";var n8=(0,m.forwardRef)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.className,e.inputClasses),r=e.setOutput,n=e.label,i=void 0===n?null:n,a=e.nextGroupRef,o=arguments.length>1?arguments[1]:void 0,s=(0,m.useRef)(),l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useState)(""),h=u[0],d=u[1],f=(0,m.useState)(""),v=f[0],g=f[1],y=(0,m.useState)(""),b=y[0],x=y[1];return(0,m.useEffect)(function(){var e,t,n;r([null!==(e=null==h?void 0:h.padStart(2,"0"))&&void 0!==e?e:null,null!==(t=null==v?void 0:v.padStart(2,"0"))&&void 0!==t?t:null,null!==(n=null==b?void 0:b.padStart(2,"0"))&&void 0!==n?n:null,])},[h,v,b]),(0,p.jsxs)("div",{className:"form-control",children:[i?(0,p.jsxs)("label",{className:"label",children:[(0,p.jsx)("span",{className:"label-text-alt",children:i}),(0,p.jsx)("button",{className:"label-text-alt text-zinc-500",onClick:function(){s.current&&(s.current.value=""),o.current&&(o.current.value=""),l.current.value="",c.current.value="",d(null),g(null),x(null),r([null,null,null])},children:"Clear"})]}):"",(0,p.jsxs)("div",{className:"dropdown flex flex-row items-stretch justify-items-stretch",children:[(0,p.jsx)(n6,{ref:o,nextRef:l,unit:"hh",inputClasses:t,value:h,setValue:d}
30),(0,p.jsx)("div",{className:"h-full self-stretch flex items-center ",children:"'"}),(0,p.jsx)(n6,{ref:l,nextRef:c,unit:"mm",inputClasses:t,value:v,setValue:g}),(0,p.jsx)("div",{className:"h-full self-stretch flex items-center ",children:"'"}),(0,p.jsx)(n6,{ref:c,nextRef:void 0===a?null:a,unit:"ss",inputClasses:t,value:b,setValue:x})]})]})});n8.displayName="InputDurationGroup";var n4=(0,m.forwardRef)(function(){var e,t,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=i.className,o=i.label,s=void 0===o?null:o,l=i.alt,c=void 0===l?null:l,u=i.setOutput,h=i.range,d=i.inputClasses,f=i.min,v=void 0===f?null:f,g=i.max,y=void 0===g?null:g,b=arguments.length>1?arguments[1]:void 0,x=(0,m.useState)((0,to.Z)(Array(h[1]+1-h[0]).keys()).map(function(e){return h[0]+e})),_=x[0];x[1];var w=(0,m.useState)(""),C=w[0],N=w[1],T=(0,m.useState)(),j=T[0],S=T[1],E=(0,m.useState)(null!==(r=null==v?void 0:null===(e=v.current)||void 0===e?void 0:e.value)&&void 0!==r?r:null),k=E[0],O=E[1],R=(0,m.useState)(null!==(n=null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.value)&&void 0!==n?n:null),P=R[0],A=R[1],M=(0,m.useRef)(),I=(0,m.useRef)([]),L=(0,m.useRef)(null),D=(0,m.useCallback)(function(e){return(0,p.jsx)(n5(),{mask:"1234",formatChars:{1:"[1-2]",2:"[8-9|0]",3:"[0-3|7-9]",4:"[0-9]"},maskChar:"",value:e.value,onFocus:e.onFocus,onBlur:e.onBlur,onChange:e.onChange,children:function(t){return(0,p.jsx)("input",{type:"text",ref:b,placeholder:e.placeholder,className:e.className})}})},[]),B=function(){var e;y&&(null==y||null===(e=y.current)||void 0===e||e.focus())};return(0,m.useEffect)(function(){th.p8.registerPlugin(nX.ScrollToPlugin)},[]),(0,m.useEffect)(function(){if(C){var e=_.findIndex(function(e){return e.toString().match(RegExp("^".concat(C)))});if(!(e<0))return S(e),L.current=th.p8.timeline().to(M.current,{scrollTo:I.current[e],duration:.3,ease:"power2.out"}),u(C),function(){}}},[C]),(0,p.jsxs)("div",{className:"dropdown dropdown-bottom w-full ".concat(void 0===a?"":a),children:[s?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text",children:s})}):"",c?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text-alt",children:c})}):"",(0,p.jsx)("label",{tabIndex:0,className:"",onFocus:function(){var e,t,r,n;v&&O(null!==(r=null==v?void 0:null===(e=v.current)||void 0===e?void 0:e.value)&&void 0!==r?r:null),y&&A(null!==(n=null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.value)&&void 0!==n?n:null)},children:(0,p.jsx)(D,{onKeyDown:function(e){var t=e.key;"Escape"===t&&b.current.blur(),"Enter"===t&&(b.current.blur(),B())},value:C,onChange:function(){N(b.current.value)},placeholder:c,className:"input w-full max-w-xs rounded-md ".concat(d," placeholder:text-zinc-600")})}),(0,p.jsx)("ul",{tabIndex:0,ref:M,className:"dropdown-content my-2 shadow bg-zinc-900 border border-zinc-800 rounded-md w-full h-72 overflow-y-scroll",children:_.map(function(e,t){return(0,p.jsx)("li",{ref:function(e){I.current[t]=e},className:" bg-zinc-900 hover:bg-zinc-800 ".concat(k&&e<=k?"btn-disabled":""," ").concat(P&&e>=P?"btn-disabled":""," ").concat(k&&e==k||P&&e==P?"text-zinc-500":""),onClick:function(e){M.current.blur()},children:(0,p.jsx)("a",{className:"text-sm py-3 ".concat(e==C||j==t?"bg-zinc-700":""),onClick:function(){b.current.value=e,N(e),B()},children:"".concat(e==k?"from: ":e==P?"to: ":"").concat(e)})},t)})})]})});n4.displayName="InputDropdown";var n3=r(120),n7=r(9153),n9=(0,m.forwardRef)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.afterClick,r=void 0===t?function(){}:t,n=e.taxonomy,i=e.setTerms,a=e.selected,o=void 0===a?[]:a,s=e.setSelected,l=e.searchString,c=e.matchIndex,u=void 0===c?null:c,h=arguments.length>1?arguments[1]:void 0,d=(0,n7.e)(["taxonomy",n,"terms"],{taxonomy:n}),f=d.data,v=(d.error,d.fetchNextPage,d.hasNextPage,d.isLoading),g=d.isError;if(d.isFetching,d.isFetchingNextPage,d.status,(0,m.useEffect)(function(){v||i(f.pages[0].result)},[v,f]),v)return(0,p.jsx)(nV.Z,{});if(g)return(0,p.jsx)(p.Fragment,{children:"Error"});var y=f.pages;return null==y?void 0:y.map(function(e,t){var n=null==e?void 0:e.result;if(l){var i=RegExp(l,"ig");n=null==e?void 0:e.result.filter(function(e){return e.name.match(i)})}return n.map(function(e,n){var i=e.count>0,a=null==o?void 0:o.some(function(t){return t===e});return(0,p.jsx)("li",{ref:function(e){h.current[(t+1)*n]=e},className:" bg-zinc-900 hover:bg-zinc-800 block ".concat(a?"text-gray-500":""," ").concat(i?"":"btn-disabled"),onClick:function(t){o.some(function(t){return t==e})?s(function(t){return t.filter(function(t,r){return t!==e})}):s(function(t){return(0,to.Z)(t).concat([e])}),r()},children:(0,p.jsxs)("a",{className:"text-sm py-3 ".concat(u==n?"bg-zinc-700":""),children:[a?(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}):"",(0,n3.IK)(e.name)]})},(t+1)*n)})})});n9.displayName="TaxonomyDropdownList";var ie=function(e){var t=e.size,r=e.sizeClasses,n=e.className,i=e.onClick,a=e.closeIcon,o=e.children;
30return(0,p.jsxs)("div",{className:"btn gap-2 bg-zinc-800 hover:bg-zinc-900 capitalize h-max ".concat(void 0===r?"btn-sm":r," ").concat(void 0===n?"":n," ").concat("large"==(void 0===t?null:t)?"w-full flex flex-row justify-between":"btn-sm"),onClick:i,children:[o,void 0===a||a?(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}):""]})};ie.displayName="BtnChip";var it=(0,m.forwardRef)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,r=e.label,n=void 0===r?null:r,i=e.alt,a=void 0===i?null:i,o=e.placeholder,s=(e.range,e.inputClasses),l=e.setOutput,c=e.setOperator,u=void 0!==c&&c,h=e.taxonomy;arguments.length>1&&arguments[1];var d=(0,m.useState)([]),f=d[0],v=d[1],g=(0,m.useState)([]),y=g[0],b=g[1],x=(0,m.useState)(),_=x[0],w=x[1],C=(0,m.useState)(),N=C[0],T=C[1],j=(0,m.useState)(!1),S=j[0],E=j[1],k=(0,m.useRef)(),O=(0,m.useRef)(),R=(0,m.useRef)([]),P=(0,m.useRef)(null);return(0,m.useEffect)(function(){th.p8.registerPlugin(nX.ScrollToPlugin)},[]),(0,m.useEffect)(function(){l(y.map(function(e){return e.id}))},[y]),(0,m.useEffect)(function(){u&&u(S)},[S]),(0,m.useEffect)(function(){if(_){var e=f.findIndex(function(e){return e.name.match(RegExp("^".concat(_),"i"))});if(!(e<0)&&(T(e),null==O?void 0:O.current[e]))return P.current=th.p8.timeline().to(O.current,{scrollTo:R.current[e],duration:.3,ease:"power2.out"}),function(){}}},[_]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"dropdown dropdown-bottom w-full ".concat(void 0===t?"":t),children:[n?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text",children:n})}):"",a?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text-alt",children:a})}):"",(0,p.jsx)("label",{tabIndex:0,className:"",children:(0,p.jsx)("input",{ref:k,type:"text",onKeyDown:function(e){if("Escape"===e.key&&k.current.blur(),"Enter"===e.key){var t=f[N];y.some(function(e){return e===t})?b(function(e){return e.filter(function(e){return e!==t})}):(b(function(e){return(0,to.Z)(e).concat([t])}),k.current.value="")}"ArrowUp"===e.key&&N>0&&T(function(e){return e-1}),"ArrowDown"===e.key&&N<(null==f?void 0:f.length)-1&&T(function(e){return e+1})},onChange:function(){w(k.current.value)},placeholder:void 0===o?"":o,className:"input w-full rounded-md ".concat(s)})}),(0,p.jsx)("ul",{tabIndex:0,ref:O,className:"dropdown-content my-2 bg-zinc-900 border border-zinc-800 rounded-md w-full h-min max-h-72 overflow-y-auto drop-shadow-[0_15px_25px_rgba(0,0,0,0.9)]",children:(0,p.jsx)(n9,{ref:R,afterClick:function(){O.current.blur()},searchString:_,taxonomy:h,setTerms:v,selected:y,setSelected:b,matchIndex:N})})]}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1 my-2",children:null==y?void 0:y.map(function(e,t){return(0,p.jsx)(ie,{onClick:function(){b(function(e){return e.filter(function(e,r){return r!==t})})},children:(0,n3.IK)(null==e?void 0:e.name)},t)})}),(null==y?void 0:y.length)>0?(0,p.jsx)(rU,{className:"bg-base-200 rounded-lg shadow",children:(0,p.jsx)(rU.Label,{title:S?"Must include all":"Match Any",className:"justify-end gap-2",children:(0,p.jsx)(r1,{className:"m-2 mr-0 bg-zinc-600 border-zinc-700",size:"sm",color:"second",onChange:function(){E(function(e){return!e})}})})}):""]})});it.displayName="InputSelectChips";var ir=r(9403),ii=r(7568);function ia(){return(ia=(0,ii.Z)(function(e){var t,r,n,i,a,o,s,l,c,u,f,p,m,v,g,y,x,_,w,C;return(0,b.__generator)(this,function(b){switch(b.label){case 0:return r=void 0===(t=e.perPage)?25:t,i=void 0===(n=e.pageParam)?1:n,o=void 0!==(a=e.searchString)&&a,l=void 0===(s=e.orderby)?"hl":s,u=void 0===(c=e.order)?"desc":c,p=void 0===(f=e.fields)?"id,title,slug,type,acf.hl,acf.hlf,acf.english_title,acf.chinese_title,acf.date_range,acf.program_type,acf.images":f,v=void 0===(m=e.imagesFormat)?"index":m,g="".concat("https://api.videotage.org.hk/wp-json/wp/v2/","programme?per_page=").concat(r,"&page=").concat(i,"&orderby=").concat(l,"&order=").concat(u,"&acf_format=standard&_fields=").concat(p).concat(o?"&search=".concat(o):"").concat(v?"&images_format=".concat(v):""),(0,n3.LE)(g),[4,fetch(g).catch(n3.
30S3)];case 1:if(!(y=b.sent()).ok)return[2,Promise.reject(JSON.stringify(y))];return[4,y.headers.get("x-wp-totalPages")];case 2:return x=b.sent(),[4,y.json()];case 3:if(_=b.sent(),w=i<x&&i+1,!_)return[2,Promise.reject(JSON.stringify(y))];return[2,{result:_.map(function(e){var t=(e.acf.date_range.from.split("/")||!1)[2]||!1;return(0,d.Z)((0,h.Z)({},e),{year:t,hlf:e.acf.hlf||!1,hl:e.acf.hl||!1,title:(0,n3.$Q)(e.post_title||e.title.rendered||null,e.acf||null)})}),nextPage:w}]}})})).apply(this,arguments)}var io=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["programmes"],t=arguments.length>1?arguments[1]:void 0,r=t.fields,n=t.searchString,i=void 0!==n&&n,a=t.perPage,o=void 0===a?15:a,s=t.orderby,l=void 0===s?"hl":s,c=t.order,u=void 0===c?"desc":c,h=t.staleTime,d=t.cacheTime;return(0,ir.N)(e,function(e){var t=e.pageParam;return function(e){return ia.apply(this,arguments)}({fields:r,pageParam:void 0===t?1:t,perPage:o,orderby:l,order:u,searchString:i})},{getNextPageParam:function(e,t){return!!e.result.length&&!(e.result.length<o)&&(e.result.length?e.nextPage:void 0)},staleTime:void 0===h?1/0:h,cacheTime:void 0===d?1/0:d})},is=(0,m.forwardRef)(function(){var e,t,r,n,i,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=o.programme,l=(o.i,o.j),c=o.afterClick,u=void 0===c?function(){}:c,h=o.selected,d=void 0===h?[]:h,f=o.setSelected,m=o.matchIndex,v=void 0===m?null:m;arguments.length>1&&arguments[1];var g=null==d?void 0:d.some(function(e){return e===s}),y=0;return(null===(e=s.acf)||void 0===e?void 0:e.related_objects)&&(y=null!==(a=null===(n=s.acf)||void 0===n?void 0:null===(i=n.related_objects)||void 0===i?void 0:i.filter(function(e){return"videos"===e.post_type}).length)&&void 0!==a&&a),(0,p.jsx)("li",{className:" bg-zinc-900 hover:bg-zinc-800 ".concat(g?"text-gray-500":""," ").concat(y?"":"btn-disabled"),onClick:function(e){var t,r;(null===(t=s.acf)||void 0===t?void 0:null===(r=t.related_objects)||void 0===r?void 0:r.length)&&(d.some(function(e){return e==s})?f(function(e){return e.filter(function(e,t){return e!==s})}):f(function(e){return(0,to.Z)(e).concat([s])}),u())},children:(0,p.jsxs)("a",{className:"text-sm py-4 flex flex-row items-start gap-2 ".concat(!1==v&&v==l?"bg-zinc-700":""),children:[g?(0,p.jsx)("div",{className:"shrink-0",children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})})}):"",(0,p.jsx)("div",{className:"shrink-0",children:s.year}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(null==s?void 0:null===(t=s.title)||void 0===t?void 0:t.en)?(0,p.jsx)("div",{children:(0,n3.IK)(s.title.en)}):"",(null==s?void 0:null===(r=s.title)||void 0===r?void 0:r.tc)?(0,p.jsx)("div",{children:(0,n3.IK)(s.title.tc)}):""]})]})})});is.displayName="ProgrammeDropdownListItem";var il=(0,m.forwardRef)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.afterClick,r=void 0===t?function(){}:t,n=e.setProgrammes,i=e.selected,a=void 0===i?[]:i,o=e.setSelected,s=e.filterString,l=e.searchString,c=void 0===l?"":l,u=e.matchIndex,h=void 0===u?null:u,d=arguments.length>1?arguments[1]:void 0,f=io(["programmes","dropdown","date","desc"],{searchString:c,fields:"id,title,acf.english_title,acf.chinese_title,acf.date_range,acf.related_objects",perPage:25,orderby:"date",order:"desc",staleTime:0,cacheTime:0}),v=f.data,g=f.error,y=(f.fetchNextPage,f.hasNextPage,f.isLoading),b=f.isFetching;if(f.isFetchingNextPage,f.status,(0,m.useEffect)(function(){y||n(v.pages[0].result)},[y,v]),y||b)return(0,p.jsx)(nV.Z,{});var x=v.pages;if(!g)return null==x?void 0:x.map(function(e,t){var n=null==e?void 0:e.result;if(s&&!c){var i=RegExp(s,"ig");n=null==e?void 0:e.result.filter(function(e){var t,r,n,a;return(null===(t=e.title)||void 0===t?void 0:null===(r=t.en)||void 0===r?void 0:r.match(i))||(null===(n=e.title)||void 0===n?void 0:null===(a=n.tc)||void 0===a?void 0:a.match(i))})}return n.map(function(e,n){return(0,p.jsx)(is,{ref:function(e){d.current[(t+1)*n]=e},programme:e,i:t,j:n,afterClick:r,selected:a,setSelected:o,matchIndex:h},(t+1)*n)})})});
30il.displayName="ProgrammeDropdownList",r(2368);var ic=(0,m.forwardRef)(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.className,n=t.label,i=void 0===n?null:n,a=t.alt,o=void 0===a?null:a,s=(t.hints,t.placeholder),l=(t.range,t.inputClasses),c=t.setOutput,u=t.setOutputIds;arguments.length>1&&arguments[1];var h=(0,m.useState)([]),d=h[0],f=h[1],v=(0,m.useState)([]),g=v[0],y=v[1],b=(0,m.useState)(!1),x=b[0],_=b[1],w=(0,m.useState)(),C=w[0],N=w[1],T=(0,m.useState)(),j=T[0],S=T[1],E=(0,m.useState)(),k=E[0],O=E[1],R=(0,m.useRef)(),P=(0,m.useRef)(),A=(0,m.useRef)([]),M=(0,m.useRef)(null);return(0,m.useEffect)(function(){th.p8.registerPlugin(nX.ScrollToPlugin)},[]),(0,m.useEffect)(function(){c(g.map(function(e){return e.id})),u(g.map(function(e){var t,r=(null==e?void 0:null===(t=e.acf)||void 0===t?void 0:t.related_objects)||null;return!!r&&r.filter(function(e){return"videos"===e.post_type}).map(function(e){return e.ID})}).filter(function(e){return e}).flatMap(function(e){return e}))},[g]),(0,m.useEffect)(function(){if(j){var e=RegExp(j,"ig"),t=d.findIndex(function(t){var r,n,i,a;if((null===(r=t.title)||void 0===r?void 0:null===(n=r.rendered)||void 0===n?void 0:n.match(e))||(null===(i=t.title)||void 0===i?void 0:i.en.match(e))||(null===(a=t.title)||void 0===a?void 0:a.tc.match(e)))return!0});if(!(t<0)&&(O(t),null==P?void 0:P.current))return M.current=th.p8.timeline().to(P.current,{scrollTo:A.current[t],duration:.3,ease:"power2.out"}),function(){}}},[j]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"dropdown dropdown-bottom w-full ".concat(void 0===r?"":r),children:[i?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text",children:i})}):"",o?(0,p.jsx)("label",{className:"label",children:(0,p.jsx)("span",{className:"label-text-alt",children:o})}):"",(0,p.jsx)("label",{tabIndex:0,className:"",children:(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)("input",{ref:R,type:"text",onKeyDown:function(e){"Escape"===e.key&&R.current.blur(),"Enter"===e.key&&""!=R.current.value&&N(R.current.value)},onFocus:function(){_(!0)},onBlur:function(){_(!1)},onChange:function(){S(R.current.value)},placeholder:void 0===s?"":s,className:"input w-full rounded-md pr-32 ".concat(l)}),(null==R?void 0:null===(e=R.current)||void 0===e?void 0:e.value)!=""?(0,p.jsx)("div",{className:"btn btn-ghost hover:bg-transparent absolute top-1/2 transform -translate-y-1/2 hover:active:-translate-y-1/2 hover:-translate-y-1/2 duration-150 right-24 p-1 px-3 no-animation text-zinc-400 active:text-zinc-600",onClick:function(){R.current.value="",S(""),N("")},children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}):"",(0,p.jsx)("div",{className:"btn btn-sm border border-zinc-600 hover:border-zinc-500 absolute top-1/2 transform -translate-y-1/2 hover:active:translate-y-[calc(-50%+3px)] hover:-translate-y-1/2 active:bg-zinc-700 duration-150 right-4 p-1 px-3 no-animation",onClick:function(){R.current.value!==C&&N(R.current.value)},children:"Search"})]})}),(0,p.jsx)("ul",{tabIndex:0,ref:P,className:"dropdown-content my-2 shadow bg-zinc-900 border border-zinc-800 rounded-md w-full h-min max-h-72 overflow-y-auto focus:opacity-0 drop-shadow-[0_15px_25px_rgba(0,0,0,0.9)]",children:(0,p.jsx)(il,{ref:A,searchString:C,filterString:j,afterClick:function(){P.current.blur()},setProgrammes:f,selected:g,setSelected:y,matchIndex:k},null!=C?C:"pdrop")})]}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1 my-2 ".concat(x?"opacity-30":""," transition-opacity duration-150 ease-out"),children:null==g?void 0:g.map(function(e,t){var r,n;return(0,p.jsx)(ie,{label:null==e?void 0:e.title,className:"text-xs",size:"large",sizeClasses:"btn-md",onClick:function(){y(function(e){return e.filter(function(e,r){return r!==t})})},children:(0,p.jsx)("div",{className:"w-5/6 py-3",children:(0,p.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,p.jsx)("div",{className:"",children:null==e?void 0:e.year}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,p.jsx)("div",{className:"text-left",children:(0,n3.IK)(null==e?void 0:null===(r=e.title)||void 0===r?void 0:r.en)}),(0,p.jsx)("div",{className:"text-left",children:(0,n3.IK)(null==e?void 0:null===(n=e.title)||void 0===n?void 0:n.tc)})]})]})})},t)})})]})});ic.displayName="InputSelectProgrammeChips";var iu=(0,m.createContext)({searchDrawer:!0,toggleSearchDrawer:function(){}});function ih(e){var t=function(){a(!0)},r=function(){a(!1)},n=(0,m.useState)(!0),i=n[0],a=n[1];return(0,p.jsx)(iu.Provider,{value:{searchDrawer:i,openSearchDrawer:t,closeSearchDrawer:r},children:e.children})}var id="p-4 pr-6",ip="border border-zinc-700 hover:border-zinc-500 bg-transparent text-slate-400 focus:text-zinc-200",im=function(e){var t=e.sidebarClasses,r=function(){v(!1),b(!0);var e=s.current.value,t=l.current.value,r=c.current.value;n.push({query:(0,h.Z)({},""!=e&&{search:e},e_("yearFrom",t),e_("yearTo",r),ew("durationMin",j,"-"),ew("durationMax",k,"-"),ex("classifications",P),eC("classificationsOperator",I),ex("topics-subjects",B),eC("topics-subjectsOperator",H),ex("include",K),ex("format",X),eC("formatOperator",J),ex("color",er),eC("colorOperator",ea),ex("sound",el),eC("soundOperator",eh),ex("language",ep),eC("languageOperator",eg))},void 0,{shallow:!0}),o<768&&a.closeSearchDrawer()},n=(0,y.useRouter)(),i=n.query,a=(0,m.useContext)(iu),o=(0,nY.Z)().width,s=(0,m.useRef)(),l=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(),d=(0,m.useRef)(),f=(0,m.useState)(!1),v=(f[0],f[1]),g=(0,m.useState)(!1),b=(g[0],g[1]),x=(0,m.useState)("");x[0],x[1];var _=(0,m.useState)(i.yearFrom||""),w=(_[0],_[1]),C=(0,m.useState)(i.yearTo||""),N=(C[0],C[1]),T=(0,m.useState)(i.durationMin||!1),j=T[0],S=T[1],E=(0,m.useState)(i.durationMax||!1),k=E[0],O=E[1],R=(0,m.useState)(i.classifications||!1),P=R[0],A=R[1],M=(0,m.useState)(i.classificationsOperator||!1),I=M[0],L=M[1],D=(0,m.useState)(i.topics||!1),B=D[0],F=D[1],z=(0,m.useState)(i.topicsOperator||!1),H=z[0],Z=z[1],U=(0,m.useState)(i.programmes||!1),V=U[0],G=U[1],q=(0,m.useState)(i.includeIds||!1),K=q[0],Q=q[1],W=(0,m.useState)(i.format||!1),X=W[0],$=W[1],Y=(0,m.useState)(i.formatOperator||!1),J=Y[0],ee=Y[1],et=(0,m.useState)(i.color||!1),er=et[0],en=et[1],ei=(0,m.useState)(i.colorOperator||!1),ea=ei[0],eo=ei[1],es=(0,m.useState)(i.sound||!1),el=es[0],ec=es[1],eu=(0,m.useState)(i.soundOperator||!1),eh=eu[0],ed=eu[1],ef=(0,m.useState)(i.language||!1),ep=ef[0],em=ef[1],ev=(0,m.useState)(i.languageOperator||!1),eg=ev[0],ey=ev[1],eb=(0,m.useState)(!1);eb[0],eb[1];var ex=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",";return t&&t.length>0&&(0,tg.Z)({},e,t.join(r))},e_=function(e,t){return""===t?null:(0,tg.Z)({},e,t)},ew=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",";if(t.every(function(e){return"00"===e})||!t.some(function(e){return e}))return null;var n=t.map(function(e){return e||"00"});return(0,tg.Z)({},e,n.join(r))},eC=function(e,t){return t?t&&(0,tg.Z)({},e,t?"AND":"OR"):null};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"w-full flex flex-col",children:[(0,p.jsx)("div",{className:"bg-black border-b border-r border-zinc-800 sticky top-0 z-20 ",children:(0,p.jsxs)("div",{className:"".concat(id," pb-2 h-24 flex justify-center items-center"),children:[(0,p.jsxs)("label",{className:"relative text-slate-400 focus:text-zinc-200 block w-full",children:[(0,p.jsx)(n0.Z,{width:"32",height:"32",className:"pointer-events-none absolute top-1/2 transform -translate-y-1/2 left-3 p-1"}
30),(0,p.jsx)("input",{ref:s,type:"text",name:"searchVideotage",id:"searchVideotage",placeholder:"Search videos by title or descriptions",className:"input pl-14 w-[calc(100%-30px)] rounded-full border border-zinc-700 hover:border-zinc-500 bg-transparent text-slate-400 focus:text-zinc-200"})]}),(0,p.jsx)(nJ,{onClick:a.closeSearchDrawer,className:"ml-auto absolute top-0 right-3 z-50"})]})}),(0,p.jsxs)("div",{className:"h-[calc(100vh-96px-81px)] pb-80 overflow-x-hidden overflow-y-auto",children:[(0,p.jsx)(n1,{label:"Year",children:(0,p.jsxs)("div",{className:"flex flex-row gap-3 items-center",children:[(0,p.jsx)(n4,{ref:l,setOutput:w,alt:"From",className:"",max:null!=c?c:null,range:[1970,2032],inputClasses:ip}),(0,p.jsx)(n4,{ref:c,setOutput:N,alt:"To",className:"",range:[1970,2032],min:null!=l?l:null,inputClasses:ip})]})}),(0,p.jsx)(n1,{label:"Duration",children:(0,p.jsxs)("div",{className:"flex flex-row gap-3 items-center",children:[(0,p.jsx)(n8,{ref:u,setOutput:S,label:"Min",className:"",min:null!=u?u:null,inputClasses:ip,nextGroupRef:d}),(0,p.jsx)(n8,{ref:d,setOutput:O,label:"Max",className:"",min:null!=d?d:null,inputClasses:ip})]})}),(0,p.jsx)(n1,{label:"Classification",selected:P,children:(0,p.jsx)(it,{taxonomy:"classifications",setOutput:A,setOperator:L,placeholder:"search classifications",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Topic and Subjects",selected:B,children:(0,p.jsx)(it,{taxonomy:"topics-subjects",setOutput:F,setOperator:Z,placeholder:"search topic & subjects",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Programmes",selected:V,tips:"Filter programmes by title, or press `search` for searching more results",children:(0,p.jsx)(ic,{setOutput:G,setOutputIds:Q,placeholder:"search by title",hints:"Filter the latest programmes or press search for more specific",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Format",selected:X,children:(0,p.jsx)(it,{taxonomy:"format",setOutput:$,setOperator:ee,placeholder:"search format",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Color",selected:er,children:(0,p.jsx)(it,{taxonomy:"color",setOutput:en,setOperator:eo,placeholder:"search color",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Sound",selected:el,children:(0,p.jsx)(it,{taxonomy:"sound",setOutput:ec,setOperator:ed,placeholder:"search sound",inputClasses:ip})}),(0,p.jsx)(n1,{label:"Language",selected:ep,children:(0,p.jsx)(it,{taxonomy:"language",setOutput:em,setOperator:ey,placeholder:"search language",inputClasses:ip})})]})]}),(0,p.jsx)("div",{className:"".concat(t," bg-black border-t border-r border-zinc-800 fixed left-0 bottom-0 z-50 drop-shadow-[0_0_35px_rgba(0,0,0,1)]"),children:(0,p.jsx)("div",{className:"".concat(id," flex justify-end items-center"),children:(0,p.jsx)("div",{className:"btn px-6 bg-zinc-900 border-zinc-700 hover:border-zinc-600",onClick:function(){r()},children:"Search Videos"})})})]})},iv=function(e){var t=e.className,r=e.sidebarClasses;return(0,p.jsx)("div",{className:"".concat(void 0===t?"":t," menu text-base-content pointer-events-auto flex items-start justify-start bg-black border-r border-r-zinc-800\n relative"),children:(0,p.jsx)("div",{className:"flex flex-col w-full",children:(0,p.jsx)("div",{className:"form-control ".concat(r),children:(0,p.jsx)(im,{sidebarClasses:r})})})})};function ig(e){var t=e.show,r=e.onClick,n=(0,m.useState)(!0),i=n[0],a=n[1],o=(0,m.useState)(0),s=o[0],l=o[1],c=(0,tv.Z)().y;return(0,m.useEffect)(function(){c>s&&i?a(!1):s>c&&a(!0),l(c)},[c,i]),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(tW,{onClick:r,color:"primary",className:"group primary bg-transparent border-none fixed top-0 -left-3 hover:bg-transparent transition duration-500 ease-in-out z-40 opacity-0 pointer-events-none ".concat((void 0===t||t)&&i?"opacity-100 pointer-events-auto":""),children:(0,p.jsx)("div",{className:"bg-black/[.6] hover:bg-black/[.7] transition duration-300 ease-in-out py-3 px-2 rounded-lg",children:(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-5 h-5 rotate-180",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})})})})})}function iy(e){var t=e.onClick,r=(e.visible,e.sidebarClasses),n=(0,m.useContext)(iu);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ig,{onClick:n.openSearchDrawer}),(0,p.jsx)(r6,{side:(0,p.jsx)(iv,{onClose:n.closeSearchDrawer,className:r,sidebarClasses:r}),open:n.searchDrawer,sideClassName:"hidden pointer-events-none",contentClassName:"hidden pointer-events-none",overlayClassName:"hidden pointer-events-none",onClickOverlay:t,className:"fixed z-50 drop-shadow-lg pointer-events-none"})]})}var ib=r(5675),ix=r.n(ib);function i_(){var e=(0,y.useRouter)().locale,t="vmac"==(0,m.useContext)(e4.Z).section;return(0,p.jsxs)("div",{className:"fixed left-6 bottom-5 z-50",children:[t&&(0,p.jsx)(g(),{href:"/vmac",locale:e,children:(0,p.jsx)("a",{children:(0,p.jsx)(tp.Z,{width:"100",height:"41",className:"text-white"})})}),!t&&(0,p.jsx)(g(),{href:"/",locale:e,children:(0,p.jsx)("a",{children:(0,p.jsx)(ix(),{src:"/logo-v.svg",width:"30",height:"30",alt:"Videotage Logo"})})})]})}function iw(){var e=(0,y.useRouter)(),t=(0,m.useCallback)(function(t){t.preventDefault(),e.back()},[e]);return(0,p.jsx)(tW,{color:"primary",onClick:t,className:"group ghost primary pointer-events-auto bg-transparent hover:bg-transparent border-none fixed top-0 left-0 p-6 z-40 transition hover:opacity-60",children:(0,p.jsx)("div",{className:"transition-transform ease-in-out duration-300 group-hover:-translate-x-1",children:(0,p.jsx)("svg",{viewBox:"0 0 76.81 59.11",width:"30",height:"30",children:(0,p.jsx)("path",{className:"fill-transparent stroke-white stroke-2",d:"M431.23,306.37l-29.68-29.68,28-28m47.37,28h-75.4",transform:"translate(-400.14 -247.96)"})})})})}var iC=r(9277),iN=function(){var e=(0,m.useContext)(iC.Z),t=(0,m.useRef)(null),r=(0,y.useRouter)(),n=function(){var t=e.allItems,r=e.selectedIndex;if(null!=t&&null!=r)return t.current.filter(function(e,t){if(null!=e&&t!=r)return!0})},i=function(){var r=e.allItems,i=e.selectedIndex;if(null!=r&&null!=i&&n){var a=n(),o=r.current[i];null!=a&&null!=o&&(t.current=th.p8.timeline().to(a,{opacity:0,duration:1,stagger:{grid:"auto",from:0,amount:.5},ease:"power2.inOut"},0).to(o,{opacity:0,duration:1,ease:"power2.inOut"},.8))}},a=function(){};(0,m.useEffect)(function(){return r.events.on("routeChangeStart",i),r.events.on("routeChangeComplete",a),r.events.on("routeChangeError",a),function(){r.events.off("routeChangeStart",i),r.events.off("routeChangeComplete",a),r.events.off("routeChangeError",a)}},[r])},iT=r(2161);let ij=console;var iS=r(81),iE=r(2379);class ik{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,iT.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:iT.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}
30class iO extends ik{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ij,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==e.initialData,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,i=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.meta=e.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.meta=null==e?void 0:e.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=(0,iT.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(iT.ZT).catch(iT.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,iT.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,i,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let o=this.observers.find(e=>e.options.queryFn);o&&this.setOptions(o.options)}Array.isArray(this.options.queryKey);let s=(0,iT.G9)(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};c(l);let u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn"),h={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};c(h),null==(r=this.options.behavior)||r.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=h.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(a=h.fetchOptions)?void 0:a.meta});let d=e=>{if((0,iE.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,iE.DV)(e)){var t,r;null==(t=(r=this.cache.config).onError)||t.call(r,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,iE.Mz)({fn:h.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,r;if(void 0===e){d(Error("undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,iE.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,iE.DV)(i)&&i.revert&&this.revertState)return{...this.revertState};
30return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),iS.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var iR=r(3989);class iP extends iR.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let i=t.queryKey,a=null!=(n=t.queryHash)?n:(0,iT.Rm)(i,t),o=this.get(a);return o||(o=new iO({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){iS.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=(0,iT.I6)(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,iT._x)(r,e))}findAll(e,t){let[r]=(0,iT.I6)(e,t);return Object.keys(r).length>0?this.queries.filter(e=>(0,iT._x)(r,e)):this.queries}notify(e){iS.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){iS.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){iS.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class iA extends ik{constructor(e){super(),this.options={...e.defaultOptions,...e.options},this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ij,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){var e,t,r,n,i,a,o,s,l,c,u,h,d,f,p,m;let v="loading"===this.state.status;try{if(!v){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(s=this.mutationCache.config).onMutate)?void 0:o.call(s,this.state.variables,this));let g=await (null==(l=(c=this.options).onMutate)?void 0:l.call(c,this.state.variables));g!==this.state.context&&this.dispatch({type:"loading",context:g,variables:this.state.variables})}let y=await (()=>{var e;return this.retryer=(0,iE.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,y,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,y,this.state.variables,this.state.context)),await (null==(i=(a=this.options).onSettled)?void 0:i.call(a,y,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:y}),y}catch(b){try{throw await (null==(u=(h=this.mutationCache.config).onError)?void 0:u.call(h,b,this.state.variables,this.state.context,this)),await (null==(d=(f=this.options).onError)?void 0:d.call(f,b,this.state.variables,this.state.context)),await (null==(p=(m=this.options).onSettled)?void 0:p.call(m,void 0,b,this.state.variables,this.state.context)),b}finally{this.dispatch({type:"error",error:b})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,iE.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
30sed:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),iS.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class iM extends iR.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new iA({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){iS.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,iT.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,iT.X7)(e,t))}notify(e){iS.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.mutations.filter(e=>
30e.state.isPaused);return iS.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(iT.ZT)),Promise.resolve()))}}var iI=r(5761),iL=r(6474),iD=r(9499);class iB{constructor(e={}){this.queryCache=e.queryCache||new iP,this.mutationCache=e.mutationCache||new iM,this.logger=e.logger||ij,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=iI.j.subscribe(()=>{iI.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=iL.N.subscribe(()=>{iL.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)}isFetching(e,t){let[r]=(0,iT.I6)(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let r=t.data;return[e,r]})}setQueryData(e,t,r){let n=this.queryCache.find(e),i=null==n?void 0:n.state.data,a=(0,iT.SE)(t,i);if(void 0===a)return;let o=(0,iT._v)(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return iS.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=(0,iT.I6)(e,t),n=this.queryCache;iS.V.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,i]=(0,iT.I6)(e,t,r),a=this.queryCache,o={type:"active",...n};return iS.V.batch(()=>(a.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(o,i)))}cancelQueries(e,t,r){let[n,i={}]=(0,iT.I6)(e,t,r);void 0===i.revert&&(i.revert=!0);let a=iS.V.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)));return Promise.all(a).then(iT.ZT).catch(iT.ZT)}invalidateQueries(e,t,r){let[n,i]=(0,iT.I6)(e,t,r);return iS.V.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)})}refetchQueries(e,t,r){let[n,i]=(0,iT.I6)(e,t,r),a=iS.V.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})})),o=Promise.all(a).then(iT.ZT);return null!=i&&i.throwOnError||(o=o.catch(iT.ZT)),o}fetchQuery(e,t,r){let n=(0,iT._v)(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);let a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(iT.ZT).catch(iT.ZT)}fetchInfiniteQuery(e,t,r){let n=(0,iT._v)(e,t,r);return n.behavior=(0,iD.Gm)(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(iT.ZT).catch(iT.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>(0,iT.yF)(e)===(0,iT.yF)(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,iT.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>(0,iT.yF)(e)===(0,iT.yF)(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,iT.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,iT.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var iF=r(5945);let iz=({children:e,options:t,state:r})=>(!function(e,t={}){let r=(0,iF.NL)({context:t.context}),n=m.useRef(t);n.current=t,m.useMemo(()=>{e&&function(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],o=t.queries||[];a.forEach(t=>{var i;n.build(e,{...null==r?void 0:null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)}),o.forEach(t=>{var n;let a=i.get(t.queryHash);if(a){a.state.dataUpdatedAt<t.state.dataUpdatedAt&&a.setState(t.state);return}i.build(e,{...null==r?void 0:null==(n=r.defaultOptions)?void 0:n.queries,queryKey:t.queryKey,queryHash:t.queryHash},t.state)})}(r,e,n.current)},[r,e])}(r,t),e),iH=function(){return null};r(7644);var iZ=r(7594),iU=r(3457),iV=r.n(iU);let iG=["light","dark"],iq="(prefers-color-scheme: dark)",iK="undefined"==typeof window,iQ=(0,m.createContext)(void 0),iW=e=>(0,m.useContext)(iQ)?m.createElement(m.Fragment,null,e.children):m.createElement(iX,e),iX=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:a=["light","dark"],defaultTheme:o=r?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:u})=>{let[h,d]=(0,m.useState)(()=>iY(i,o)),[f,p]=(0,m.useState)(()=>iY(i)),v=l?Object.values(l):a,g=(0,m.useCallback)(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=i0());let a=l?l[i]:i,c=t?iJ():null,u=document.documentElement;if("class"===s?(u.classList.remove(...v),a&&u.classList.add(a)):a?u.setAttribute(s,a):u.removeAttribute(s),n){let h=iG.includes(o)?o:null,d=iG.includes(i)?i:h;u.style.colorScheme=d}null==c||c()},[]),y=(0,m.useCallback)(e=>{d(e);try{localStorage.setItem(i,e)}catch(t){}},[e]),b=(0,m.useCallback)(t=>{let n=i0(t);p(n),"system"===h&&r&&!e&&g("system")},[h,e]);return(0,m.useEffect)(()=>{let e=window.matchMedia(iq);return e.addListener(b),b(e),()=>e.removeListener(b)},[b]),(0,m.useEffect)(()=>{let e=e=>{e.key===i&&y(e.newValue||o)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[y]),(0,m.useEffect)(()=>{g(null!=e?e:h)},[e,h]),m.createElement(iQ.Provider,{value:{theme:h,setTheme:y,forcedTheme:e,resolvedTheme:"system"===h?f:h,themes:r?[...a,"system"]:a,systemTheme:r?f:void 0}},m.createElement(i$,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:i,themes:a,defaultTheme:o,attribute:s,value:l,children:c,attrs:v,nonce:u}),c)},i$=(0,m.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:l})=>{let c="system"===a,u="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${s.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=i?iG.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(e,t=!1,n=!0)=>{let a=o?o[e]:e,s=t?e+"|| ''":`'${a}'`,l="";return i&&n&&!t&&iG.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||a?`c.add(${s})`:"null":a&&(l+=`d[s](n,${s})`),l},f=e?`!function(){${u}${d(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${iq}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}${c?"":"else{"+d(a,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}else{${d(a,!1,!1)};}${h}}catch(t){}}();`;return m.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})},()=>!0),iY=(e,t)=>{if(iK)return;let r;try{r=localStorage.getItem(e)||void 0}catch(n){}return r||t},iJ=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},i0=e=>
30(e||(e=window.matchMedia(iq)),e.matches?"dark":"light");var i1,i2=r(5885),i5=r(9347),i6=(i1=function(e,t){return(i1=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}i1(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i8=function(e){function t(t){var r=e.call(this,t)||this;return t.cookies?r.cookies=t.cookies:r.cookies=new i2.Z,r}return i6(t,e),t.prototype.render=function(){return m.createElement(i5.zt,{value:this.cookies},this.props.children)},t}(m.Component),i4=r(7998);function i3(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,b.__assign)({timeZone:t},e[n]),r},{})}function i7(e,t){return Object.keys((0,b.__assign)((0,b.__assign)({},e),t)).reduce(function(r,n){return r[n]=(0,b.__assign)((0,b.__assign)({},e[n]||{}),t[n]||{}),r},{})}function i9(e,t){if(!t)return e;var r=eZ.formats;return(0,b.__assign)((0,b.__assign)((0,b.__assign)({},r),e),{date:i7(i3(r.date,t),i3(e.date||{},t)),time:i7(i3(r.time,t),i3(e.time||{},t))})}var ae=function(e,t,r,n,a){var o=e.locale,s=e.formats,l=e.messages,c=e.defaultLocale,u=e.defaultFormats,h=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var m=r.id,v=r.defaultMessage;w(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(m),y=l&&Object.prototype.hasOwnProperty.call(l,g)&&l[g];if(Array.isArray(y)&&1===y.length&&y[0].type===i.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,b.__assign)((0,b.__assign)({},p),n||{}),s=i9(s,f),u=i9(u,f),!y){if(!1===h&&""===y)return y;if((!v||o&&o.toLowerCase()!==c.toLowerCase())&&d(new eW(r,o)),v)try{var x=t.getMessageFormat(v,c,u,a);return x.format(n)}catch(_){return d(new eQ('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,r,_)),"string"==typeof v?v:g}return g}try{var x=t.getMessageFormat(y,o,s,(0,b.__assign)({formatters:t},a||{}));return x.format(n)}catch(C){d(new eQ('Error formatting message: "'.concat(g,'", using ').concat(v?"default message":"id"," as fallback."),o,r,C))}if(v)try{var x=t.getMessageFormat(v,c,u,a);return x.format(n)}catch(N){d(new eQ('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,r,N))}return"string"==typeof y?y:"string"==typeof v?v:g},at=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem",];function ar(e,t,r){var n=e.locale,i=e.formats,a=e.onError;void 0===r&&(r={});var o=r.format,s=o&&e0(i,"number",o,a)||{},l=eX(r,at,s);return t(n,l)}function an(e,t,r,n){void 0===n&&(n={});try{return ar(e,t,n).format(r)}catch(i){e.onError(new eU(u.FORMAT_ERROR,"Error formatting number.",i))}return String(r)}function ai(e,t,r,n){void 0===n&&(n={});try{return ar(e,t,n).formatToParts(r)}catch(i){e.onError(new eU(u.FORMAT_ERROR,"Error formatting number.",i))}return[]}var aa=["numeric","style"];function ao(e,t,r,n,i){var a,o,s,c,u,h,d,f,p;void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new eI('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',l.MISSING_INTL_API));try{return(a=e,o=t,s=i,c=a.locale,u=a.formats,h=a.onError,void 0===s&&(s={}),f=!!(d=s.format)&&e0(u,"relative",d,h)||{},p=eX(s,aa,f),o(c,p)).format(r,n)}catch(m){e.onError(new eK("Error formatting relative time.",e.locale,m))}return String(r)}var as=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits",];function al(e,t,r,n){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,c=(0,b.__assign)((0,b.__assign)({},s&&{timeZone:s}),l&&e0(a,t,l,o)),u=eX(n,as,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=(0,b.__assign)((0,b.__assign)({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function ac(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o="string"==typeof i?new Date(i||0):i;try{return al(e,"date",t,void 0===a?{}
30:a).format(o)}catch(s){e.onError(new eU(u.FORMAT_ERROR,"Error formatting date.",s))}return String(o)}function au(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o="string"==typeof i?new Date(i||0):i;try{return al(e,"time",t,void 0===a?{}:a).format(o)}catch(s){e.onError(new eU(u.FORMAT_ERROR,"Error formatting time.",s))}return String(o)}function ah(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=r[2],s=e.timeZone,l=e.locale,c=e.onError,h=eX(void 0===o?{}:o,as,s?{timeZone:s}:{});try{return t(l,h).formatRange(i,a)}catch(d){c(new eU(u.FORMAT_ERROR,"Error formatting date time range.",d))}return String(i)}function ad(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o="string"==typeof i?new Date(i||0):i;try{return al(e,"date",t,void 0===a?{}:a).formatToParts(o)}catch(s){e.onError(new eU(u.FORMAT_ERROR,"Error formatting date.",s))}return[]}function af(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o="string"==typeof i?new Date(i||0):i;try{return al(e,"time",t,void 0===a?{}:a).formatToParts(o)}catch(s){e.onError(new eU(u.FORMAT_ERROR,"Error formatting time.",s))}return[]}var ap=["type"];function am(e,t,r,n){var i=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new eI('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',l.MISSING_INTL_API));var o=eX(n,ap);try{return t(i,o).select(r)}catch(s){a(new eK("Error formatting plural.",i,s))}return"other"}var av=["type","style",],ag=Date.now();function ay(e,t,r,n){void 0===n&&(n={});var i=ab(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function ab(e,t,r,n){var i=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new eI('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',l.MISSING_INTL_API));var o=eX(n,av);try{var s={},c=r.map(function(e,t){if("object"==typeof e){var r,n="".concat(ag,"_").concat(t,"_").concat(ag);return s[n]=e,n}return String(e)});return t(i,o).formatToParts(c).map(function(e){return"literal"===e.type?e:(0,b.__assign)((0,b.__assign)({},e),{value:s[e.value]||e.value})})}catch(h){a(new eU(u.FORMAT_ERROR,"Error formatting list.",h))}return r}var ax=["style","type","fallback","languageDisplay",];function a_(e,t,r,n){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new eI('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',l.MISSING_INTL_API));var o=eX(n,ax);try{return t(i,o).of(r)}catch(s){a(new eU(u.FORMAT_ERROR,"Error formatting display name.",s))}}function aw(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function aC(e){return e?Object.keys(e).reduce(function(t,r){var n,i=e[r];return t[r]=eF(i)?function(e){return i(m.Children.toArray(e))}:i,t},{}):e}var aN=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var o=aC(n),s=ae.apply(void 0,(0,b.__spreadArray)([e,t,r,o],i,!1));return Array.isArray(s)?m.Children.toArray(s):s},aT=function(e,t){var r,n,i,a,o,s,l,c,u,h,d,f,p,m,v,g,y=e.defaultRichTextElements,x=(0,b.__rest)(e,["defaultRichTextElements"]),_=aC(y),w=(i=(0,b.__assign)((0,b.__assign)((0,b.__assign)({},e2),x),{defaultRichTextElements:_}),void 0===(o=t)&&(o=eY()),s=Intl.RelativeTimeFormat,l=Intl.ListFormat,c=Intl.DisplayNames,u=eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:eJ(o.dateTime),strategy:eA.variadic}),h=eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:eJ(o.number),strategy:eA.variadic}),d=eN(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,b.__spreadArray)([void 0],t,!1)))},{cache:eJ(o.pluralRules),strategy:eA.variadic}),f={getDateTimeFormat:u,getNumberFormat:h,getMessageFormat:eN(function(e,t,r,n){return new eZ(e,t,r,(0,b.__assign)({formatters:{getNumberFormat:h,getDateTimeFormat:u,getPluralRules:d}},n||{}))},{cache:eJ(o.message),strategy:eA.variadic}),getRelativeTimeFormat:eN(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(s.bind.apply(s,(0,b.__spreadArray)([void 0],e,!1)))},{cache:eJ(o.relativeTime),strategy:eA.variadic}),getPluralRules:d,getListFormat:eN(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(l.bind.apply(l,(0,b.__spreadArray)([void 0],e,!1)))},{cache:eJ(o.list),strategy:eA.variadic}),getDisplayNames:eN(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(c.bind.apply(c,(0,b.__spreadArray)([void 0],e,!1)))},{cache:eJ(o.displayNames),strategy:eA.variadic})},m=(p=(0,b.__assign)((0,b.__assign)({},e$),i)).locale,v=p.defaultLocale,g=p.onError,m?!Intl.NumberFormat.supportedLocalesOf(m).length&&g?g(new eq('Missing locale data for locale: "'.concat(m,'" in Intl.NumberFormat. Using default locale: "').concat(v,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(m).length&&g&&g(new eq('Missing locale data for locale: "'.concat(m,'" in Intl.DateTimeFormat. Using default locale: "').concat(v,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(g&&g(new eG('"locale" was not configured, using "'.concat(v,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),p.locale=p.defaultLocale||"en"),(r=p).onWarn&&r.defaultRichTextElements&&"string"==typeof(n=r.messages||{},n[Object.keys(n)[0]])&&r.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),(0,b.__assign)((0,b.__assign)({},p),{formatters:f,formatNumber:an.bind(null,p,f.getNumberFormat),formatNumberToParts:ai.bind(null,p,f.getNumberFormat),formatRelativeTime:ao.bind(null,p,f.getRelativeTimeFormat),formatDate:ac.bind(null,p,f.getDateTimeFormat),formatDateToParts:ad.bind(null,p,f.getDateTimeFormat),formatTime:au.bind(null,p,f.getDateTimeFormat),formatDateTimeRange:ah.bind(null,p,f.getDateTimeFormat),formatTimeToParts:af.bind(null,p,f.getDateTimeFormat),formatPlural
30:am.bind(null,p,f.getPluralRules),formatMessage:ae.bind(null,p,f),$t:ae.bind(null,p,f),formatList:ay.bind(null,p,f.getListFormat),formatListToParts:ab.bind(null,p,f.getListFormat),formatDisplayName:a_.bind(null,p,f.getDisplayNames)})),C={locale:w.locale,timeZone:w.timeZone,fallbackOnEmptyString:w.fallbackOnEmptyString,formats:w.formats,defaultLocale:w.defaultLocale,defaultFormats:w.defaultFormats,messages:w.messages,onError:w.onError,defaultRichTextElements:_};return(0,b.__assign)((0,b.__assign)({},w),{formatMessage:aN.bind(null,C,w.formatters),$t:aN.bind(null,C,w.formatters)})},aj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=eY(),t.state={cache:t.cache,intl:aT(aw(t.props),t.cache),prevConfig:aw(t.props)},t}return(0,b.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=aw(e);return e5(r,i)?null:{intl:aT(i,n),prevConfig:i}},t.prototype.render=function(){return e1(this.state.intl),m.createElement(_,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=e2,t}(m.PureComponent),aS=JSON.parse('{"nav.videotage.news":"news","nav.videotage.about":"about","nav.videotage.programmes":"programmes","nav.videotage.onlineScreening":"online screening","nav.videotage.vmac":"VMAC","nav.vmac.home":"home","nav.vmac.about":"about VMAC","nav.vmac.news":"VMAC newsletter","nav.vmac.works":"works","nav.vmac.artists":"artists","nav.vmac.advancedSearch":"advanced search","subscribe.title":"subscribe","contact.title":"contact us","contact.tel":"TEL:","contact.email":"Email:","contact.address":"Unit 13, Cattle Depot Artist Village,\\n63 Ma Tau Kok Road, To Kwa Wan, Hong Kong","contact.opening":"Opening Hours: {open}{to}{close} {week}
30","contact.opening.open":"11:00","contact.opening.close":"19:00","contact.opening.to":" - ","contact.opening.week":"(Mon - Fri)","contact.opening.notes":"* further notice on opening hours during exhibition period"}'),aE=JSON.parse('{"nav.videotage.news":"ææ°æ¶æ¯","nav.videotage.about":"éæ¼","nav.videotage.programmes":"ç¯ç®","nav.videotage.onlineScreening":"ç¶²ä¸æ¾æ ","nav.videotage.vmac":"åªé«èè¡æ¶è","nav.vmac.home":"主é ","nav.vmac.about":"éæ¼VMAC","nav.vmac.news":"éæ å¤ªå¥åº«èéè¨","nav.vmac.works":"ä½å","nav.vmac.artists":"èè¡å®¶","nav.vmac.advancedSearch":"é²éæå°","subscribe.title":"è¨é±","contact.title":"è¯çµ¡æå","contact.tel":"é»è©±:","contact.email":"é»éµ:","contact.address":"馿¸¯ä¹é¾åçç£é¦¬é è§é63è\\nçæ£èè¡æ13室","contact.opening":"éæ¾æé︰{open}{to}{close} {week}","contact.opening.open":"ä¸å11æ","contact.opening.close":"ä¸å7æ","contact.opening.to":"è³","contact.opening.week":"ï¼ææä¸è³äºï¼","contact.opening.notes":"éæ¾æ¥ææå å±è¦½èç°ï¼è«åé±åå¥å±è¦½è©³æ
"}'),ak={LayoutGrid:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsxs)("main",{className:"p-2.5",children:[t,(0,p.jsx)(n$,{})]}),(0,p.jsx)(nW,{className:"w-full px-10"})]})},LayoutSearch:function(e){var t=e.children,r=(0,m.useContext)(iu);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(iy,{onClick:r.openSearchDrawer,visible:r.searchDrawer,sidebarClasses:"w-full md:w-96"}),(0,p.jsx)(nZ,{}),(0,p.jsx)("div",{className:"flex",children:(0,p.jsx)("div",{className:"transition-all duration-700 ease-in-out ".concat(r.searchDrawer?"pl-0 lg:pl-96 w-full":"w-full"),children:(0,p.jsxs)("main",{className:"p-2.5 w-full",children:[t,(0,p.jsx)(n$,{})]})})})]})},LayoutArticle:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsx)(i_,{}),(0,p.jsxs)("main",{className:"py-10 ml-[75px] sm:ml-[100px]",children:[t,(0,p.jsx)(n$,{})]}),(0,p.jsx)(nW,{className:"w-full px-[75px] sm:px-[100px]"})]})},LayoutNews:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsx)(i_,{}),(0,p.jsxs)("main",{className:"p-0 py-10 lg:p-10 pb-10",children:[t,(0,p.jsx)(n$,{})]}),(0,p.jsx)(nW,{className:"w-full px-8 lg:px-48"})]})},LayoutSingle:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsx)(i_,{}),(0,p.jsx)(iw,{}),(0,p.jsxs)("main",{className:"py-10 w-5/6 pt-20 md:pt-9 md:w-4/6 m-auto",children:[t,(0,p.jsx)(n$,{})]}),(0,p.jsx)(nW,{})]})},LayoutVmac:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsxs)("main",{className:"p-2.5",children:[t,(0,p.jsx)(n$,{})]}),(0,p.jsx)(nW,{className:"w-full px-10 lg:px-28"})]})},LayoutDefault:function(e){var t=e.children;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nZ,{}),(0,p.jsx)(i_,{}),(0,p.jsxs)("main",{children:[t,(0,p.jsx)(n$,{className:"mr-2.5"})]}),(0,p.jsx)(nW,{})]})}},aO=function(e){var t,r,n,i,a=e.Component,o=e.pageProps,s=(0,y.useRouter)(),l=s.pathname,c=s.locale,u=s.defaultLocale,v=(0,f.Z)(m.useState(function(){return new iB}),1)[0],g=(0,m.useMemo)(function(){return"zh"===c?aE:aS},[c]),b=(t=(0,y.useRouter)().asPath,r=(0,m.useRef)(null),(0,m.useEffect)(function(){r.current=t},[t]),r.current),x=ak[a.layout]||ak.LayoutDefault||function(e){};return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(iW,{attribute:"data-theme",defaultTheme:"dark",enableSystem:!0,children:(0,p.jsx)(aj,{locale:c,messages:g,defaultLocale:u,onError:function(){return null},children:(0,p.jsx)(i8,{children:(0,p.jsx)(e4.r,{children:(0,p.jsx)(i4.s,{children:(0,p.jsx)(iC.j,{children:(0,p.jsx)(ih,{children:(0,p.jsx)(iF.aH,{client:v,children:(0,p.jsx)(iz,{state:o.dehydratedState,children:(0,p.jsx)(x,{children:(0,p.jsxs)(iZ.default,{children:[(0,p.jsx)(iV(),{color:null!==(i=null===(n=[{name:"vmac",color:"#00FF00"},{name:"programme",color:"#FF0000"},{name:"screening",color:"#0000FF"},].filter(function(e){return l.indexOf(e.name)>-1})[0])||void 0===n?void 0:n.color)&&void 0!==i?i:"#FFF"}),(0,p.jsx)(iN,{}),(0,p.jsx)(a,(0,d.Z)((0,h.Z)({},o),{previousRoute:b})),(0,p.jsx)(iH,{initialIsOpen:!0})]})})})})})})})})})})})})}},7594:function(e,t,r){"use strict";r.r(t);var n=r(5893);r(9008);var i=r(7294),a=r(5696);r(1163);var o=function(e){var t=e.children,r=(0,i.useState)(""),o=(r[0],r[1]),s=(0,i.useContext)(a.Z);return(0,i.useEffect)(function(){"programmes"==s.section&&o("Programmes")},[s]),(0,n.jsx)(n.Fragment,{children:t})};t.default=o},7598:function(e){e.exports={"navmenu-list":"nav-menu_navmenu-list__sNfEG","navmenu-item":"nav-menu_navmenu-item__i9a1Z",active:"nav-menu_active__Q5yLA",selected:"nav-menu_selected__aKWNp"}},214:function(e){e.exports={container:"Home_container__bCOhY",main:"Home_main__nLjiQ",footer
30:"Home_footer____T7K",title:"Home_title__T09hD",description:"Home_description__41Owk",code:"Home_code__suPER",grid:"Home_grid__GxQ85",card:"Home_card___LpL1",logo:"Home_logo__27_tb"}},906:function(){},9008:function(e,t,r){e.exports=r(5443)},5675:function(e,t,r){e.exports=r(8045)},1664:function(e,t,r){e.exports=r(8418)},1163:function(e,t,r){e.exports=r(387)},3457:function(e,t,r){var n,i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=e=>a(e,"__esModule",{value:!0}),h=(e,t)=>a(e,"name",{value:t,configurable:!0}),d=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))!c.call(e,i)&&(r||"default"!==i)&&a(e,i,{get:()=>t[i],enumerable:!(n=o(t,i))||n.enumerable});return e},f=(e,t)=>d(u(a(null!=e?i(l(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),p=(n="undefined"!=typeof WeakMap?new WeakMap:0,(e,t)=>n&&n.get(e)||(t=d(u({}),e,1),n&&n.set(e,t),t)),m={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(m,{default:()=>x});var v=f(r(1163)),g=f(r(4865)),y=f(r(5697)),b=f(r(7294));function x({color:e="#29D",startPosition:t=.3,stopDelayMs:r=200,height:n=3,showOnShallow:i=!0,options:a,nonce:o}){let s=null;b.useEffect(()=>(a&&g.configure(a),v.default.events.on("routeChangeStart",l),v.default.events.on("routeChangeComplete",c),v.default.events.on("routeChangeError",u),()=>{v.default.events.off("routeChangeStart",l),v.default.events.off("routeChangeComplete",c),v.default.events.off("routeChangeError",u)}),[]);let l=h((e,{shallow:r})=>{(!r||i)&&(g.set(t),g.start())},"routeChangeStart"),c=h((e,{shallow:t})=>{(!t||i)&&(s&&clearTimeout(s),s=setTimeout(()=>{g.done(!0)},r))},"routeChangeEnd"),u=h((e,t,{shallow:n})=>{(!n||i)&&(s&&clearTimeout(s),s=setTimeout(()=>{g.done(!0)},r))},"routeChangeError");return b.createElement("style",{nonce:o},` 31 #nprogress { 32 pointer-events: none; 33 } 34 #nprogress .bar { 35 background: ${e}; 36 position: fixed; 37 z-index: 9999; 38 top: 0; 39 left: 0; 40 width: 100%; 41 height: ${n}px; 42 } 43 #nprogress .peg { 44 display: block; 45 position: absolute; 46 right: 0px; 47 width: 100px; 48 height: 100%; 49 box-shadow: 0 0 10px ${e}, 0 0 5px ${e}; 50 opacity: 1; 51 -webkit-transform: rotate(3deg) translate(0px, -4px); 52 -ms-transform: rotate(3deg) translate(0px, -4px); 53 transform: rotate(3deg) translate(0px, -4px); 54 } 55 #nprogress .spinner { 56 display: block; 57 position: fixed; 58 z-index: 1031; 59 top: 15px; 60 right: 15px; 61 } 62 #nprogress .spinner-icon { 63 width: 18px; 64 height: 18px; 65 box-sizing: border-box; 66 border: solid 2px transparent; 67 border-top-color: ${e}; 68 border-left-color: ${e}; 69 border-radius: 50%; 70 -webkit-animation: nprogresss-spinner 400ms linear infinite; 71 animation: nprogress-spinner 400ms linear infinite; 72 } 73 .nprogress-custom-parent { 74 overflow: hidden; 75 position: relative; 76 } 77 .nprogress-custom-parent #nprogress .spinner, 78 .nprogress-custom-parent #nprogress .bar { 79 position: absolute; 80 } 81 @-webkit-keyframes nprogress-spinner { 82 0% { 83 -webkit-transform: rotate(0deg); 84 } 85 100% { 86 -webkit-transform: rotate(360deg); 87 } 88 } 89 @keyframes nprogress-spinner { 90 0% { 91 transform: rotate(0deg); 92 } 93 100% { 94 transform: rotate(360deg); 95 } 96 } 97 `)}h(x,"NextNProgress"),x.propTypes={color:y.string,startPosition:y.number,stopDelayMs:y.number,height:y.number,showOnShallow:y.bool,options:y.object,nonce:y.string},e.exports=p(m)},4865:function(e,t,r){var n,i,a; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress 98 * @license MIT */ a=function(){var e={};e.version="0.2.0";var t,r,n=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,r){return e<t?t:e>r?r:e}function a(e){return(-1+e)*100}e.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(n[t]=r);return this},e.status=null,e.set=function(t){var r=e.isStarted();t=i(t,n.minimum,1),e.status=1===t?null:t;var o=e.render(!r),c=o.querySelector(n.barSelector),u=n.speed,h=n.easing;return o.offsetWidth,s(function(r){var i,s,d,f;""===n.positionUsing&&(n.positionUsing=e.getPositioningCSS()),l(c,(i=t,s=u,d=h,(f="translate3d"===n.positionUsing?{transform:"translate3d("+a(i)+"
98%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+a(i)+"%,0)"}:{"margin-left":a(i)+"%"}).transition="all "+s+"ms "+d,f)),1===t?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout(function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),r()},u)},u)):setTimeout(r,u)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var t=function(){setTimeout(function(){e.status&&(e.trickle(),t())},n.trickleSpeed)};return n.trickle&&t(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!=typeof t&&(t=(1-r)*i(Math.random()*r,.1,.95)),r=i(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*n.trickleRate)},t=0,r=0,e.promise=function(n){return n&&"resolved"!==n.state()&&(0===r&&e.start(),t++,r++,n.always(function(){0==--r?(t=0,e.done()):e.set((t-r)/t)})),this},e.render=function(t){if(e.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var r=document.createElement("div");r.id="nprogress",r.innerHTML=n.template;var i,o=r.querySelector(n.barSelector),s=t?"-100":a(e.status||0),c=document.querySelector(n.parent);return l(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!n.showSpinner&&(i=r.querySelector(n.spinnerSelector))&&f(i),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(r),r},e.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var o,s=(o=[],function(e){o.push(e),1==o.length&&function e(){var t=o.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var a,o;n=t[a=(o=a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+a)in r)return n;return t}(a)),r.style[n]=i}return function(e,t){var n,i,a=arguments;if(2==a.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e);c(r,t)||(e.className=(r+t).substring(1))}function h(e,t){var r,n=d(e);c(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e},void 0!==(i=a.call(t,r,t,e))&&(e.exports=i)},2703:function(e,t,r){"use strict";var n=r(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
98;return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9347:function(e,t,r){"use strict";r.d(t,{zt:function(){return o},ZP:function(){return s}});var n=r(7294),i=r(5885).Z,a=n.createContext(new i),o=a.Provider;a.Consumer;var s=a},4300:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(r(7294)),a=s(r(640)),o=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,r,s,l,m,v=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=f(g);if(r){var i=f(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e=v.call.apply(v,[this].concat(r)),p(d(e),"onClick",function(t){var r=e.props,n=r.text,o=r.onCopy,s=r.children,l=r.options,c=i.default.Children.only(s),u=(0,a.default)(n,l);o&&o(n,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)}),e}return l=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,o),n=i.default.Children.only(t);return i.default.cloneElement(n,c(c({},r),{},{onClick:this.onClick}))}}],u(g.prototype,l),m&&u(g,m),Object.defineProperty(g,"prototype",{writable:!1}),g}(i.default.PureComponent);t.CopyToClipboard=m,p(m,"defaultProps",{onCopy:void 0,options:void 0})},4855:function(e,t,r){"use strict";var n=r(4300).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},6627:function(e,t,r){e.exports=r(6012)},6012:function(e,t,r){"use strict";var n,i=(n=r(7294))&&"object"==typeof n&&"default"in n?n.default:n,a=r(3935);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
98for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e,t,r,n,i,a,o,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,a,o,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};function c(e,t,r){if("selectionStart"in e&&"selectionEnd"in e)e.selectionStart=t,e.selectionEnd=r;else{var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t),n.moveEnd("character",r-t),n.select()}}var u={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};function h(e,t,r){var n="",i="",a=null,o=[];if(void 0===t&&(t="_"),null==r&&(r=u),!e||"string"!=typeof e)return{maskChar:t,formatChars:r,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return e.split("").forEach(function(e){s=!s&&"\\"===e||(s||!r[e]?(o.push(n.length),n.length===o.length-1&&(i+=e)):a=n.length+1,n+=e,!1)}),{maskChar:t,formatChars:r,prefix:i,mask:n,lastEditablePosition:a,permanents:o}}function d(e,t){return -1!==e.permanents.indexOf(t)}function f(e,t,r){var n=e.mask,i=e.formatChars;return!!r&&(d(e,t)?n[t]===r:RegExp(i[n[t]]).test(r))}function p(e,t){return t.split("").every(function(t,r){return d(e,r)||!f(e,r,t)})}function m(e,t){var r=e.maskChar,n=e.prefix;if(!r){for(;t.length>n.length&&d(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var i=n.length,a=t.length;a>=n.length;a--){var o=t[a];if(!d(e,a)&&f(e,a,o)){i=a+1;break}}return i}function v(e,t){return m(e,t)===e.mask.length}function g(e,t){var r=e.maskChar,n=e.mask,i=e.prefix;if(!r){for((t=y(e,"",t,0)).length<i.length&&(t=i);t.length<n.length&&d(e,t.length);)t+=n[t.length];return t}if(t)return y(e,g(e,""),t,0);for(var a=0;a<n.length;a++)d(e,a)?t+=n[a]:t+=r;return t}function y(e,t,r,n){var i=e.mask,a=e.maskChar,o=e.prefix,s=r.split(""),l=v(e,t);return!a&&n>t.length&&(t+=i.slice(t.length,n)),s.every(function(r){for(var s,c,u;d(e,u=n)&&r!==i[u];){if(n>=t.length&&(t+=i[n]),s=r,c=n,a&&d(e,c)&&s===a)return!0;if(++n>=i.length)return!1}return!f(e,n,r)&&r!==a||(n<t.length?t=a||l||n<o.length?t.slice(0,n)+r+t.slice(n+1):g(e,t=t.slice(0,n)+r+t.slice(n)):a||(t+=r),++n<i.length)}),t}function b(e,t){for(var r=e.mask,n=t;n<r.length;++n)if(!d(e,n))return n;return null}function x(e){return e||0===e?e+"":""}function _(e){return"function"==typeof e}function w(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function C(e){return(w()?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame:function(){return setTimeout(e,1e3/60)})(e)}function N(e){(w()||clearTimeout)(e)}var T=function(e){function t(t){var r=e.call(this,t)||this;r.focused=!1,r.mounted=!1,r.previousSelection=null,r.selectionDeferId=null,r.saveSelectionLoopDeferId=null,r.saveSelectionLoop=function(){r.previousSelection=r.getSelection(),r.saveSelectionLoopDeferId=C(r.saveSelectionLoop)},r.runSaveSelectionLoop=function(){null===r.saveSelectionLoopDeferId&&r.saveSelectionLoop()},r.stopSaveSelectionLoop=function(){null!==r.saveSelectionLoopDeferId&&(N(r.saveSelectionLoopDeferId),r.saveSelectionLoopDeferId=null,r.previousSelection=null)},r.getInputDOMNode=function(){if(!r.mounted)return null;var e=a.findDOMNode(s(s(r))),t="undefined"!=typeof window&&e instanceof window.Element;if(e&&!t)return null;if("INPUT"!==e.nodeName&&(e=e.querySelector("input")),!e)throw Error("react-input-mask: inputComponent doesn't contain input node");return e},r.getInputValue=function(){var e=r.getInputDOMNode();return e?e.value:null},r.setInputValue=function(e){var t=r.getInputDOMNode();t&&(r.value=e,t.value=e)},r.setCursorToEnd=function(){var e=m(r.maskOptions,r.value),t=b(r.maskOptions,e);null!==t&&r.setCursorPosition(t)},r.setSelection=function(e,t,n){void 0===n&&(n={});
vendor: 7,419 bytes, line 98
98var i=r.getInputDOMNode(),a=r.isFocused();i&&a&&(n.deferred||c(i,e,t),null!==r.selectionDeferId&&N(r.selectionDeferId),r.selectionDeferId=C(function(){r.selectionDeferId=null,c(i,e,t)}),r.previousSelection={start:e,end:t,length:Math.abs(t-e)})},r.getSelection=function(){return function(e){var t=0,r=0;if("selectionStart"in e&&"selectionEnd"in e)t=e.selectionStart,r=e.selectionEnd;else{var n=document.selection.createRange();n.parentElement()===e&&(t=-n.moveStart("character",-e.value.length),r=-n.moveEnd("character",-e.value.length))}return{start:t,end:r,length:r-t}}(r.getInputDOMNode())},r.getCursorPosition=function(){return r.getSelection().start},r.setCursorPosition=function(e){r.setSelection(e,e)},r.isFocused=function(){return r.focused},r.getBeforeMaskedValueChangeConfig=function(){var e=r.maskOptions,t=e.mask,n=e.maskChar,i=e.permanents,a=e.formatChars;return{mask:t,maskChar:n,permanents:i,alwaysShowMask:!!r.props.alwaysShowMask,formatChars:a}},r.isInputAutofilled=function(e,t,n,i){var a=r.getInputDOMNode();try{if(a.matches(":-webkit-autofill"))return!0}catch(o){}return!r.focused||i.end<n.length&&t.end===e.length},r.onChange=function(e){var t=s(s(r)).beforePasteState,n=s(s(r)).previousSelection,i=r.props.beforeMaskedValueChange,a=r.getInputValue(),o=r.value,l=r.getSelection();r.isInputAutofilled(a,l,o,n)&&(o=g(r.maskOptions,""),n={start:0,end:0,length:0}),t&&(n=t.selection,o=t.value,l={start:n.start+a.length,end:n.start+a.length,length:0},a=o.slice(0,n.start)+a+o.slice(n.end),r.beforePasteState=null);var c=function(e,t,r,n,i){var a,o,s,l,c,u,h,p=e.mask,m=e.prefix,v=e.lastEditablePosition,x=t,_="",w=0,C=0,N=Math.min(i.start,r.start);return r.end>i.start?(o=_=x.slice(i.start,r.end),s=N,l=e.mask,c=e.maskChar,u=o.split(""),h=s,u.every(function(t){for(var r;d(e,r=s)&&t!==l[r];)if(++s>=l.length)return!1;return(f(e,s,t)||t===c)&&s++,s<l.length}),C=(w=s-h)?i.length:0):x.length<n.length&&(C=n.length-x.length),x=n,C&&(1!==C||i.length||(N=i.start===r.start?b(e,r.start):function(e,t){for(var r=t;0<=r;--r)if(!d(e,r))return r;return null}(e,r.start)),x=function(e,t,r,n){var i=r+n,a=e.maskChar,o=e.mask,s=e.prefix,l=t.split("");if(a)return l.map(function(t,n){return n<r||i<=n?t:d(e,n)?o[n]:a}).join("");for(var c=i;c<l.length;c++)d(e,c)&&(l[c]="");return r=Math.max(s.length,r),l.splice(r,i-r),g(e,t=l.join(""))}(e,x,N,C)),x=y(e,x,_,N),(N+=w)>=p.length?N=p.length:N<m.length&&!w?N=m.length:N>=m.length&&N<v&&w&&(N=b(e,N)),_||(_=null),{value:x=g(e,x),enteredString:_,selection:{start:N,end:N}}}(r.maskOptions,a,l,o,n),u=c.enteredString,h=c.selection,p=c.value;if(_(i)){var m=i({value:p,selection:h},{value:o,selection:n},u,r.getBeforeMaskedValueChangeConfig());p=m.value,h=m.selection}r.setInputValue(p),_(r.props.onChange)&&r.props.onChange(e),r.isWindowsPhoneBrowser?r.setSelection(h.start,h.end,{deferred:!0}):r.setSelection(h.start,h.end)},r.onFocus=function(e){var t=r.props.beforeMaskedValueChange,n=r.maskOptions,i=n.mask,a=n.prefix;if(r.focused=!0,r.mounted=!0,i){if(r.value)m(r.maskOptions,r.value)<r.maskOptions.mask.length&&r.setCursorToEnd();else{var o=g(r.maskOptions,a),s=g(r.maskOptions,o),l=m(r.maskOptions,s),c=b(r.maskOptions,l),u={start:c,end:c};if(_(t)){var h=t({value:s,selection:u},{value:r.value,selection:null},null,r.getBeforeMaskedValueChangeConfig());s=h.value,u=h.selection}var d=s!==r.getInputValue();d&&r.setInputValue(s),d&&_(r.props.onChange)&&r.props.onChange(e),r.setSelection(u.start,u.end)}r.runSaveSelectionLoop()}_(r.props.onFocus)&&r.props.onFocus(e)},r.onBlur=function(e){var t=r.props.beforeMaskedValueChange,n=r.maskOptions.mask;if(r.stopSaveSelectionLoop(),r.focused=!1,n&&!r.props.alwaysShowMask&&p(r.maskOptions,r.value)){var i="";_(t)&&(i=t({value:i,selection:null},{value:r.value,selection:r.previousSelection},null,r.getBeforeMaskedValueChangeConfig()).value);var a=i!==r.getInputValue();a&&r.setInputValue(i),a&&_(r.props.onChange)&&r.props.onChange(e)}_(r.props.onBlur)&&r.props.onBlur(e)},r.onMouseDown=function(e){if(!r.focused&&document.addEventListener){r.mouseDownX=e.clientX,r.mouseDownY=e.clientY,r.mouseDownTime=(new Date).getTime();var t=function e(t){if(document.removeEventListener("mouseup",e),r.focused){var n,i=Math.max(Math.abs(t.clientX-r.mouseDownX),Math.abs(t.clientY-r.mouseDownY)),a=(new Date).getTime()-r.mouseDownTime;(i<=10&&a<=200||i<=5&&a<=300)&&r.setCursorToEnd()}};document.addEventListener("mouseup",t)}_(r.props.onMouseDown)&&r.props.onMouseDown(e)},r.onPaste=function(e){_(r.props.onPaste)&&r.props.onPaste(e),e.defaultPrevented||(r.beforePasteState={value:r.getInputValue(),selection:r.getSelection()},r.setInputValue(""))},r.handleRef=function(e){null==r.props.children&&_(r.props.inputRef)&&r.props.inputRef(e)};var n=t.mask,i=t.maskChar,o=t.formatChars,l=t.alwaysShowMask,u=t.beforeMaskedValueChange,v=t.defaultValue,w=t.value;r.maskOptions=h(n,i,o),null==v&&(v=""),null==w&&(w=v);var T=x(w);if(r.maskOptions.mask&&(l||T)&&(T=g(r.maskOptions,T),_(u))){var j=t.value;null==t.value&&(j=v),T=u({value:T,selection:null},{value:j=x(j),selection:null},null,r.getBeforeMaskedValueChangeConfig()).value}return r.value=T,r}r=t,n=e,r.prototype=Object.create(n.prototype),function(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var i=r[n],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&void 0===e[i]&&Object.defineProperty(e,i,a)}}(r.prototype.constructor=r,n);var r,n,u=t.prototype;return u.componentDidMount=function(){var e;this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=(e=navigator.userAgent,/windows/i.test(e)&&/phone/i.test(e)),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},u.componentDidUpdate=function(){var e=this.previousSelection,t=this.props,r=t.beforeMaskedValueChange,n=t.alwaysShowMask,i=t.mask,a=t.maskChar,o=t.formatChars,s=this.maskOptions,l=n||this.isFocused(),c=null!=this.props.value,u=c?x(this.props.value):this.value,d=e?e.start:null;if(this.maskOptions=h(i,a,o),this.maskOptions.mask){!s.mask&&this.isFocused()&&this.runSaveSelectionLoop();var f=this.maskOptions.mask&&this.maskOptions.mask!==s.mask;if(s.mask||c||(u=this.getInputValue()),(f||this.maskOptions.mask&&(u||l))&&(u=g(this.maskOptions,u)),f){var y=m(this.maskOptions,u);(null===d||y<d)&&(d=v(this.maskOptions,u)?y:b(this.maskOptions,y))}!this.maskOptions.mask||!p(this.maskOptions,u)||l||c&&this.props.value||(u="");var w={start:d,end:d};if(_(r)){var C=r({value:u,selection:w},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());u=C.value,w=C.selection}this.value=u;var N=this.getInputValue()!==this.value;N?(this.setInputValue(this.value),this.forceUpdate()):f&&this.forceUpdate();var T=!1;null!=w.start&&null!=w.end&&(T=!e||e.start!==w.start||e.end!==w.end),(T||N)&&this.setSelection(w.start,w.end)}else s.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},u.componentWillUnmount=function(){this.mounted=!1,null!==this.selectionDeferId&&N(this.selectionDeferId),this.stopSaveSelectionLoop()},u.render=function(){var e,t=this.props,r=(t.mask,t.alwaysShowMask,t.maskChar,t.formatChars,t.inputRef,t.beforeMaskedValueChange,t.children),n=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)0<=t.indexOf(r=a[n])||(i[r]=e[r]);return i}(t,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(r){_(r)||l(!1);
98var a=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],s=o({},n);a.forEach(function(e){return delete s[e]}),e=r(s),a.filter(function(t){return null!=e.props[t]&&e.props[t]!==n[t]}).length&&l(!1)}else e=i.createElement("input",o({ref:this.handleRef},n));var c={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(n.disabled||n.readOnly||(c.onChange=this.onChange,c.onPaste=this.onPaste,c.onMouseDown=this.onMouseDown),null!=n.value&&(c.value=this.value)),e=i.cloneElement(e,c)},t}(i.Component);e.exports=T},9921:function(e,t){"use strict";/** @license React v16.13.1 99 * react-is.production.min.js 100 * 101 * Copyright (c) Facebook, Inc. and its affiliates. 102 * 103 * This source code is licensed under the MIT license found in the 104 * LICENSE file in the root directory of this source tree. 105 */ var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case h:case a:case s:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return _(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||_(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===o},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===s||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=_},9864:function(e,t,r){"use strict";e.exports=r(9921)},6362:function(e,t,r){"use strict";function n(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}r.d(t,{S1:function(){return i},jU:function(){return a},on:function(){return n}});var a="undefined"!=typeof window},5101:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7294),i=function(e){(0,n.useEffect)(e,[])},a=function(e){var t=(0,n.useRef)(e);t.current=e,i(function(){return function(){return t.current()}})},o=function(e){var t=(0,n.useRef)(0),r=(0,n.useState)(e),i=r[0],o=r[1],s=(0,n.useCallback)(function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(e)})},[]);return a(function(){cancelAnimationFrame(t.current)}),[i,s]}},9727:function(e,t,r){"use strict";var n=r(7294),i=r(6362),a=r(5101),o=function(){var e=(0,a.Z)(function(){return{x:i.jU?window.pageXOffset:0,y:i.jU?window.pageYOffset:0}}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r(function(e){var t=window.pageXOffset,r=window.pageYOffset;return e.x!==t||e.y!==r?{x:t,y:r}:e})};return e(),(0,i.on)(window,"scroll",e,{capture:!1,passive:!0}),function(){(0,i.S1)(window,"scroll",e)}},[]),t};t.Z=o},8504:function(e,t,r){"use strict";var n=r(7294),i=r(5101),a=r(6362),o=function(e,t){void 0===e&&(e=1/0),void 0===t&&(t=1/0);var r=(0,i.Z)({width:a.jU?window.innerWidth:e,height:a.jU?window.innerHeight:t}),o=r[0],s=r[1];return(0,n.useEffect)(function(){if(a.jU){var e=function(){s({width:window.innerWidth,height:window.innerHeight})};return(0,a.on)(window,"resize",e),function(){(0,a.S1)(window,"resize",e)}}},[]),o};t.Z=o},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
105),t&&t.focus()}}},5885:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6489);function i(e,t){void 0===t&&(t={});var r,n,i,a=(r=e,r&&"j"===r[0]&&":"===r[1]?r.substr(2):r);if(void 0===(i=t.doNotParse)&&(i=!a||"{"!==a[0]&&"["!==a[0]&&'"'!==a[0]),!i)try{return JSON.parse(a)}catch(o){}return e}var a,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(){function e(e,t){var r,i,a=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?n.Q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){a.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=n.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=i(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o(o({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=o(o({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=n.q(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},3250:function(e,t,r){"use strict";/** 106 * @license React 107 * use-sync-external-store-shim.production.min.js 108 * 109 * Copyright (c) Facebook, Inc. and its affiliates. 110 * 111 * This source code is licensed under the MIT license found in the 112 * LICENSE file in the root directory of this source tree. 113 */ var n=r(7294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}function u(e,t){return t()}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?u:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),o(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:h},1688:function(e,t,r){"use strict";e.exports=r(3250)},943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},7568:function(e,t,r){"use strict";function n(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)})}}r.d(t,{Z:function(){return i}})},4924:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return n}})},3375:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},6042:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(4924);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
113))),i.forEach(function(t){(0,n.Z)(e,t,r[t])})}return e}},9396:function(e,t,r){"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{Z:function(){return n}})},828:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(3375),i=r(1566);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,n.Z)(e,t)||(0,i.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9815:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(943),i=r(3375),a=r(1566);function o(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,i.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1566:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(943);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}},5761:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(3989),i=r(2161);class a extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let o=new a},9499:function(e,t,r){"use strict";function n(){return{onFetch(e){e.fetchFn=()=>{var t,r,n,o,s,l;let c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,u=null==(n=e.fetchOptions)?void 0:null==(o=n.meta)?void 0:o.fetchMore,h=null==u?void 0:u.pageParam,d=(null==u?void 0:u.direction)==="forward",f=(null==u?void 0:u.direction)==="backward",p=(null==(s=e.state.data)?void 0:s.pages)||[],m=(null==(l=e.state.data)?void 0:l.pageParams)||[],v=m,g=!1,y=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get(){var t,r;return null!=(t=e.signal)&&t.aborted?g=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{g=!0}),e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),x=(e,t,r,n)=>(v=n?[t,...v]:[...v,t],n?[r,...e]:[...e,r]),_=(t,r,n,i)=>{if(g)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:n,meta:e.meta};y(a);let o=b(a),s=Promise.resolve(o).then(e=>x(t,n,e,i));return s},w;if(p.length){if(d){let C=void 0!==h,N=C?h:i(e.options,p);w=_(p,C,N)}else if(f){let T=void 0!==h,j=T?h:a(e.options,p);w=_(p,T,j,!0)}else{v=[];let S=void 0===e.options.getNextPageParam,E=!c||!p[0]||c(p[0],0,p);w=E?_([],S,m[0]):Promise.resolve(x([],m[0],p[0]));for(let k=1;k<p.length;k++)w=w.then(t=>{let r=!c||!p[k]||c(p[k],k,p);if(r){let n=S?m[k]:i(e.options,t);return _(t,S,n)}return Promise.resolve(x(t,m[k],p[k]))})}}else w=_([]);let O=w.then(e=>({pages:e,pageParams:v}));return O}}}}function i(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function a(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function o(e,t){if(e.getNextPageParam&&Array.isArray(t)){let r=i(e,t);return null!=r&&!1!==r}}function s(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){let r=a(e,t);return null!=r&&!1!==r}}r.d(t,{Gm:function(){return n},Qy:function(){return o},ZF:function(){return s}})},81:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(2161);let i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},a=e=>{let r;t++;try{r=e()}finally{--t||l()}return r},o=i=>{t?e.push(i):(0,n.A4)(()=>{r(i)})},s=e=>(...t)=>{o(()=>{e(...t)})},l=()=>{let t=e;e=[],t.length&&(0,n.A4)(()=>{i(()=>
113{t.forEach(e=>{r(e)})})})},c=e=>{r=e},u=e=>{i=e};return{batch:a,batchCalls:s,schedule:o,setNotifyFunction:c,setBatchNotifyFunction:u}}()},6474:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n=r(3989),i=r(2161);class a extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(e=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let o=new a},2924:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(2161),i=r(81),a=r(5761),o=r(3989),s=r(2379);class l extends o.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.length&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return u(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,n.VS)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let a=this.hasListeners();a&&h(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e);return this.createResult(t,e)}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(n.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),n.sk||this.currentResult.isStale||!(0,n.PN)(this.options.staleTime))return;let e=(0,n.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!n.sk&&!1!==this.options.enabled&&(0,n.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>
113{(this.options.refetchIntervalInBackground||a.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,l=this.currentResultOptions,u=e!==r,f=u?e.state:this.currentQueryInitialState,p=u?this.currentResult:this.previousQueryResult,{state:m}=e,{dataUpdatedAt:v,error:g,errorUpdatedAt:y,fetchStatus:b,status:x}=m,_=!1,w=!1,C;if(t._optimisticResults){let N=this.hasListeners(),T=!N&&c(e,t),j=N&&h(e,r,t,i);(T||j)&&(b=(0,s.Kw)(e.options.networkMode)?"fetching":"paused",v||(x="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!m.dataUpdateCount&&null!=p&&p.isSuccess&&"error"!==x)C=p.data,v=p.dataUpdatedAt,x=p.status,_=!0;else if(t.select&&void 0!==m.data){if(a&&m.data===(null==o?void 0:o.data)&&t.select===this.selectFn)C=this.selectResult;else try{this.selectFn=t.select,C=t.select(m.data),C=(0,n.oE)(null==a?void 0:a.data,C,t),this.selectResult=C,this.selectError=null}catch(S){this.selectError=S}}else C=m.data;if(void 0!==t.placeholderData&&void 0===C&&"loading"===x){let E;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==l?void 0:l.placeholderData))E=a.data;else if(E="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==E)try{E=t.select(E),E=(0,n.oE)(null==a?void 0:a.data,E,t),this.selectError=null}catch(k){this.selectError=k}void 0!==E&&(x="success",C=E,w=!0)}this.selectError&&(g=this.selectError,C=this.selectResult,y=Date.now(),x="error");let O="fetching"===b,R="loading"===x,P="error"===x,A={status:x,fetchStatus:b,isLoading:R,isSuccess:"success"===x,isError:P,isInitialLoading:R&&O,data:C,dataUpdatedAt:v,error:g,errorUpdatedAt:y,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:O,isRefetching:O&&!R,isLoadingError:P&&0===m.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:w,isPreviousData:_,isRefetchError:P&&0!==m.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch,remove:this.remove};return A}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,n.VS)(r,t))return;this.currentResult=r;let i={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options;if("all"===e||!e&&!this.trackedProps.size)return!0;let r=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&r.has(e)})})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,s.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){i.V.batch(()=>{var t,r,n,i,a,o,s,l;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null)):e.onError&&(null==(a=(o=this.options).onError)||a.call(o,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(e=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function c(e,t){var r,n;return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOn
113Mount)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&d(e,t)}return!1}function h(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&d(e,r)}function d(e,t){return e.isStaleByTime(t.staleTime)}},2379:function(e,t,r){"use strict";r.d(t,{DV:function(){return c},Kw:function(){return s},Mz:function(){return u}});var n=r(5761),i=r(6474),a=r(2161);function o(e){return Math.min(1e3*2**e,3e4)}function s(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof l}function u(e){let t=!1,r=0,c=!1,u,h,d,f=new Promise((e,t)=>{h=e,d=t}),p=t=>{c||(b(new l(t)),null==e.abort||e.abort())},m=()=>{t=!0},v=()=>{t=!1},g=()=>!n.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),y=t=>{c||(c=!0,null==e.onSuccess||e.onSuccess(t),null==u||u(),h(t))},b=t=>{c||(c=!0,null==e.onError||e.onError(t),null==u||u(),d(t))},x=()=>new Promise(t=>{u=e=>{if(c||!g())return t(e)},null==e.onPause||e.onPause()}).then(()=>{u=void 0,c||null==e.onContinue||e.onContinue()}),_=()=>{if(c)return;let n;try{n=e.fn()}catch(i){n=Promise.reject(i)}Promise.resolve(n).then(y).catch(n=>{var i,s;if(c)return;let l=null!=(i=e.retry)?i:3,u=null!=(s=e.retryDelay)?s:o,h="function"==typeof u?u(r,n):u,d=!0===l||"number"==typeof l&&r<l||"function"==typeof l&&l(r,n);if(t||!d){b(n);return}r++,null==e.onFail||e.onFail(r,n),(0,a.Gh)(h).then(()=>{if(g())return x()}).then(()=>{t?b(n):_()})})};return s(e.networkMode)?_():x().then(_),{promise:f,cancel:p,continue(){null==u||u()},cancelRetry:m,continueRetry:v}}},3989:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});class n{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.push(e),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(t=>t!==e),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}},2161:function(e,t,r){"use strict";r.d(t,{A4:function(){return w},G9:function(){return C},Gh:function(){return _},I6:function(){return c},Kp:function(){return s},PN:function(){return o},Rm:function(){return d},SE:function(){return a},VS:function(){return v},X7:function(){return h},ZT:function(){return i},_v:function(){return l},_x:function(){return u},oE:function(){return N},sk:function(){return n},to:function(){return p},yF:function(){return f}});let n="undefined"==typeof window;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,r){return x(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function c(e,t,r){return x(e)?[{...t,queryKey:e},r]:[e||{},t]}function u(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(x(o)){if(n){if(t.queryHash!==d(o,t.options))return!1}else{var l,c;if(l=t.queryKey,c=o,!m(l,c))return!1}}if("all"!==r){let u=t.isActive();if("active"===r&&!u||"inactive"===r&&u)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(void 0===i||i===t.state.fetchStatus)&&(!a||!!a(t))}function h(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(x(a)){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(a))return!1}else{var o,s;if(o=t.options.mutationKey,s=a,!m(o,s))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function d(e,t){let r=(null==t?void 0:t.queryKeyHashFn)||f;return r(e)}function f(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return m(e,t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!m(e[r],t[r]))}function v(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function w(e){_(0).then(e)}function C(){if("function"==typeof AbortController)return new AbortController}function N(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=g(t)&&g(r);if(n||y(t)&&y(r)){let i=n?t.length:Object.keys(t).length,a=n?r:Object.keys(r),o=a.length,s=n?[]:{},l=0;for(let c=0;c<o;c++){let u=n?c:a[c];s[u]=e(t[u],r[u]),s[u]===t[u]&&l++}return i===o&&l===i?t:s}return r}(e,t):t}},5945:function(e,t,r){"use strict";r.d(t,{NL:function(){return s},aH:function(){return l}});var n=r(7294);let i=n.createContext(void 0),a=n.createContext(!1);function o(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let s=({context:e}={})=>{let t=n.useContext(o(e,n.useContext(a)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:r,contextSharing:i=!1})=>{n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let s=o(r,i);return n.createElement(a.Provider,{value:!r&&i},n.createElement(s.Provider,{value:e},t))}},3750:function(e,t,r){"use strict";r.d(t,{r:function(){return v}});var n=r(7294),i=r(1688);let a=i.useSyncExternalStore;var o=r(81);let s,l=n.createContext((s=!1,{clearReset(){s=!1},reset(){s=!0},isReset:()=>s})),c=()=>n.useContext(l);var u=r(5945);let h=n.createContext(!1),d=()=>n.useContext(h);h.Provider;let f=(e,t)=>
113{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},p=e=>{n.useEffect(()=>{e.clearReset()},[e])},m=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>{var i,a;return e.isError&&!t.isReset()&&!e.isFetching&&(a=[e.error,n],"function"==typeof r?r(...a):!!r)};function v(e,t){let r=(0,u.NL)({context:e.context}),i=d(),s=c(),l=r.defaultQueryOptions(e);l._optimisticResults=i?"isRestoring":"optimistic",l.onError&&(l.onError=o.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=o.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=o.V.batchCalls(l.onSettled)),l.suspense&&"number"!=typeof l.staleTime&&(l.staleTime=1e3),f(l,s),p(s);let[h]=n.useState(()=>new t(r,l)),v=h.getOptimisticResult(l);if(a(n.useCallback(e=>i?()=>void 0:h.subscribe(o.V.batchCalls(e)),[h,i]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),n.useEffect(()=>{h.setOptions(l,{listeners:!1})},[l,h]),l.suspense&&v.isLoading&&v.isFetching&&!i)throw h.fetchOptimistic(l).then(({data:e})=>{null==l.onSuccess||l.onSuccess(e),null==l.onSettled||l.onSettled(e,null)}
113).catch(e=>{s.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)});if(m({result:v,errorResetBoundary:s,useErrorBoundary:l.useErrorBoundary,query:h.getCurrentQuery()}))throw v.error;return l.notifyOnChangeProps?v:h.trackResult(v)}},9403:function(e,t,r){"use strict";r.d(t,{N:function(){return l}});var n=r(2161),i=r(2924),a=r(9499);class o extends i.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,a.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,a.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,i,o,s,l;let{state:c}=e,u=super.createResult(e,t);return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.Qy)(t,null==(r=c.data)?void 0:r.pages),hasPreviousPage:(0,a.ZF)(t,null==(n=c.data)?void 0:n.pages),isFetchingNextPage:"fetching"===c.fetchStatus&&(null==(i=c.fetchMeta)?void 0:null==(o=i.fetchMore)?void 0:o.direction)==="forward",isFetchingPreviousPage:"fetching"===c.fetchStatus&&(null==(s=c.fetchMeta)?void 0:null==(l=s.fetchMore)?void 0:l.direction)==="backward"}}}var s=r(3750);function l(e,t,r){let i=(0,n._v)(e,t,r);return(0,s.r)(i,o)}},6492:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(2161),i=r(2924),a=r(3750);function o(e,t,r){let o=(0,n._v)(e,t,r);return(0,a.r)(o,i.z)}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(1118),t(387)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.