@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.3 → 1.0.31-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(I,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],A):(I=typeof globalThis<"u"?globalThis:I||self,A(I.ReactGjirafaVPPlayer={},I.React))})(this,(function(I,A){"use strict";function xr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const ae=xr(A);var Pe={exports:{}},pe={};/**
1
+ (function(F,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],A):(F=typeof globalThis<"u"?globalThis:F||self,A(F.ReactGjirafaVPPlayer={},F.React))})(this,(function(F,A){"use strict";function wr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const ae=wr(A);var ve={exports:{}},de={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ue;function Pr(){if(Ue)return pe;Ue=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,o){var s=null;if(o!==void 0&&(s=""+o),a.key!==void 0&&(s=""+a.key),"key"in a){o={};for(var l in a)l!=="key"&&(o[l]=a[l])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:s,ref:a!==void 0?a:null,props:o}}return pe.Fragment=r,pe.jsx=t,pe.jsxs=t,pe}var he={};/**
9
+ */var Le;function xr(){if(Le)return de;Le=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,s){var u=null;if(s!==void 0&&(u=""+s),a.key!==void 0&&(u=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:n,key:u,ref:a!==void 0?a:null,props:s}}return de.Fragment=r,de.jsx=t,de.jsxs=t,de}var pe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ze;function wr(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===X?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case y:return"Fragment";case k:return"Profiler";case b:return"StrictMode";case C:return"Suspense";case x:return"SuspenseList";case U:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case g:return"Portal";case N:return i.displayName||"Context";case j:return(i._context.displayName||"Context")+".Consumer";case V:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case H:return c=i.displayName||null,c!==null?c:e(i.type)||"Memo";case re:c=i._payload,i=i._init;try{return e(i(c))}catch{}}return null}function r(i){return""+i}function t(i){try{r(i);var c=!1}catch{c=!0}if(c){c=console;var T=c.error,R=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return T.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R),r(i)}}function n(i){if(i===y)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===re)return"<...>";try{var c=e(i);return c?"<"+c+">":"<...>"}catch{return"<...>"}}function a(){var i=D.A;return i===null?null:i.getOwner()}function o(){return Error("react-stack-top-frame")}function s(i){if($.call(i,"key")){var c=Object.getOwnPropertyDescriptor(i,"key").get;if(c&&c.isReactWarning)return!1}return i.key!==void 0}function l(i,c){function T(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",c))}T.isReactWarning=!0,Object.defineProperty(i,"key",{get:T,configurable:!0})}function d(){var i=e(this.type);return ne[i]||(ne[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function h(i,c,T,R,B,de){var v=T.ref;return i={$$typeof:_,type:i,key:c,props:T,_owner:R},(v!==void 0?v:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:d}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function p(i,c,T,R,B,de){var v=c.children;if(v!==void 0)if(R)if(te(v)){for(R=0;R<v.length;R++)m(v[R]);Object.freeze&&Object.freeze(v)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(v);if($.call(c,"key")){v=e(i);var S=Object.keys(c).filter(function(u){return u!=="key"});R=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",oe[v+R]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Ie;function kr(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===X?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case v:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case $:return"Suspense";case x:return"SuspenseList";case W:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case b:return"Portal";case U:return o.displayName||"Context";case j:return(o._context.displayName||"Context")+".Consumer";case z:var p=o.render;return o=o.displayName,o||(o=p.displayName||p.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case G:return p=o.displayName||null,p!==null?p:e(o.type)||"Memo";case te:p=o._payload,o=o._init;try{return e(o(p))}catch{}}return null}function r(o){return""+o}function t(o){try{r(o);var p=!1}catch{p=!0}if(p){p=console;var i=p.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return i.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),r(o)}}function n(o){if(o===v)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===te)return"<...>";try{var p=e(o);return p?"<"+p+">":"<...>"}catch{return"<...>"}}function a(){var o=Y.A;return o===null?null:o.getOwner()}function s(){return Error("react-stack-top-frame")}function u(o){if(g.call(o,"key")){var p=Object.getOwnPropertyDescriptor(o,"key").get;if(p&&p.isReactWarning)return!1}return o.key!==void 0}function f(o,p){function i(){B||(B=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",p))}i.isReactWarning=!0,Object.defineProperty(o,"key",{get:i,configurable:!0})}function P(){var o=e(this.type);return ie[o]||(ie[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function m(o,p,i,c,k,T){var l=i.ref;return o={$$typeof:O,type:o,key:p,props:i,_owner:c},(l!==void 0?l:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:P}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function h(o,p,i,c,k,T){var l=p.children;if(l!==void 0)if(c)if(ne(l)){for(c=0;c<l.length;c++)y(l[c]);Object.freeze&&Object.freeze(l)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(l);if(g.call(p,"key")){l=e(o);var d=Object.keys(p).filter(function(L){return L!=="key"});c=0<d.length?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}",H[l+c]||(d=0<d.length?"{"+d.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,R,v,S,v),oe[v+R]=!0)}if(v=null,T!==void 0&&(t(T),v=""+T),s(c)&&(t(c.key),v=""+c.key),"key"in c){T={};for(var f in c)f!=="key"&&(T[f]=c[f])}else T=c;return v&&l(T,typeof i=="function"?i.displayName||i.name||"Unknown":i),h(i,v,T,a(),B,de)}function m(i){O(i)?i._store&&(i._store.validated=1):typeof i=="object"&&i!==null&&i.$$typeof===re&&(i._payload.status==="fulfilled"?O(i._payload.value)&&i._payload.value._store&&(i._payload.value._store.validated=1):i._store&&(i._store.validated=1))}function O(i){return typeof i=="object"&&i!==null&&i.$$typeof===_}var E=A,_=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),N=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),D=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,te=Array.isArray,Y=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(i){return i()}};var q,ne={},J=E.react_stack_bottom_frame.bind(E,o)(),ie=Y(n(o)),oe={};he.Fragment=y,he.jsx=function(i,c,T){var R=1e4>D.recentlyCreatedOwnerStacks++;return p(i,c,T,!1,R?Error("react-stack-top-frame"):J,R?Y(n(i)):ie)},he.jsxs=function(i,c,T){var R=1e4>D.recentlyCreatedOwnerStacks++;return p(i,c,T,!0,R?Error("react-stack-top-frame"):J,R?Y(n(i)):ie)}})()),he}var De;function kr(){return De||(De=1,process.env.NODE_ENV==="production"?Pe.exports=Pr():Pe.exports=wr()),Pe.exports}var F=kr();function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ce.apply(null,arguments)}function Sr(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function Er(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var _r=(function(){function e(t){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Er(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Sr(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),z="-ms-",we="-moz-",P="-webkit-",We="comm",je="rule",$e="decl",Tr="@import",Ye="@keyframes",Rr="@layer",Ar=Math.abs,ke=String.fromCharCode,Or=Object.assign;function Cr(e,r){return L(e,0)^45?(((r<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function qe(e){return e.trim()}function jr(e,r){return(e=r.exec(e))?e[0]:e}function w(e,r,t){return e.replace(r,t)}function Me(e,r){return e.indexOf(r)}function L(e,r){return e.charCodeAt(r)|0}function me(e,r,t){return e.slice(r,t)}function Q(e){return e.length}function Ie(e){return e.length}function Se(e,r){return r.push(e),e}function $r(e,r){return e.map(r).join("")}var Ee=1,ce=1,Ge=0,W=0,M=0,le="";function _e(e,r,t,n,a,o,s){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:Ee,column:ce,length:s,return:""}}function ge(e,r){return Or(_e("",null,null,"",null,null,0),e,{length:-e.length},r)}function Mr(){return M}function Ir(){return M=W>0?L(le,--W):0,ce--,M===10&&(ce=1,Ee--),M}function G(){return M=W<Ge?L(le,W++):0,ce++,M===10&&(ce=1,Ee++),M}function K(){return L(le,W)}function Te(){return W}function ye(e,r){return me(le,e,r)}function be(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return Ee=ce=1,Ge=Q(le=e),W=0,[]}function Be(e){return le="",e}function Re(e){return qe(ye(W-1,Fe(e===91?e+2:e===40?e+1:e)))}function Fr(e){for(;(M=K())&&M<33;)G();return be(e)>2||be(M)>3?"":" "}function Lr(e,r){for(;--r&&G()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return ye(e,Te()+(r<6&&K()==32&&G()==32))}function Fe(e){for(;G();)switch(M){case e:return W;case 34:case 39:e!==34&&e!==39&&Fe(M);break;case 40:e===41&&Fe(e);break;case 92:G();break}return W}function Nr(e,r){for(;G()&&e+M!==57;)if(e+M===84&&K()===47)break;return"/*"+ye(r,W-1)+"*"+ke(e===47?e:G())}function Vr(e){for(;!be(K());)G();return ye(e,W)}function Ur(e){return Be(Ae("",null,null,null,[""],e=He(e),0,[0],e))}function Ae(e,r,t,n,a,o,s,l,d){for(var h=0,p=0,m=s,O=0,E=0,_=0,g=1,y=1,b=1,k=0,j="",N=a,V=o,C=n,x=j;y;)switch(_=k,k=G()){case 40:if(_!=108&&L(x,m-1)==58){Me(x+=w(Re(k),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=Re(k);break;case 9:case 10:case 13:case 32:x+=Fr(_);break;case 92:x+=Lr(Te()-1,7);continue;case 47:switch(K()){case 42:case 47:Se(zr(Nr(G(),Te()),r,t),d);break;default:x+="/"}break;case 123*g:l[h++]=Q(x)*b;case 125*g:case 59:case 0:switch(k){case 0:case 125:y=0;case 59+p:b==-1&&(x=w(x,/\f/g,"")),E>0&&Q(x)-m&&Se(E>32?Je(x+";",n,t,m-1):Je(w(x," ","")+";",n,t,m-2),d);break;case 59:x+=";";default:if(Se(C=Xe(x,r,t,h,p,a,l,j,N=[],V=[],m),o),k===123)if(p===0)Ae(x,r,C,C,N,o,m,l,V);else switch(O===99&&L(x,3)===110?100:O){case 100:case 108:case 109:case 115:Ae(e,C,C,n&&Se(Xe(e,C,C,0,0,a,l,j,a,N=[],m),V),a,V,m,l,n?N:V);break;default:Ae(x,C,C,C,[""],V,0,l,V)}}h=p=E=0,g=b=1,j=x="",m=s;break;case 58:m=1+Q(x),E=_;default:if(g<1){if(k==123)--g;else if(k==125&&g++==0&&Ir()==125)continue}switch(x+=ke(k),k*g){case 38:b=p>0?1:(x+="\f",-1);break;case 44:l[h++]=(Q(x)-1)*b,b=1;break;case 64:K()===45&&(x+=Re(G())),O=K(),p=m=Q(j=x+=Vr(Te())),k++;break;case 45:_===45&&Q(x)==2&&(g=0)}}return o}function Xe(e,r,t,n,a,o,s,l,d,h,p){for(var m=a-1,O=a===0?o:[""],E=Ie(O),_=0,g=0,y=0;_<n;++_)for(var b=0,k=me(e,m+1,m=Ar(g=s[_])),j=e;b<E;++b)(j=qe(g>0?O[b]+" "+k:w(k,/&\f/g,O[b])))&&(d[y++]=j);return _e(e,r,t,a===0?je:l,d,h,p)}function zr(e,r,t){return _e(e,r,t,We,ke(Mr()),me(e,2,-2),0)}function Je(e,r,t,n){return _e(e,r,t,$e,me(e,0,n),me(e,n+1,-1),n)}function ue(e,r){for(var t="",n=Ie(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Dr(e,r,t,n){switch(e.type){case Rr:if(e.children.length)break;case Tr:case $e:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+ue(e.children,n)+"}";case je:e.value=e.props.join(",")}return Q(t=ue(e.children,n))?e.return=e.value+"{"+t+"}":""}function Wr(e){var r=Ie(e);return function(t,n,a,o){for(var s="",l=0;l<r;l++)s+=e[l](t,n,a,o)||"";return s}}function Yr(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ze(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var qr=function(r,t,n){for(var a=0,o=0;a=o,o=K(),a===38&&o===12&&(t[n]=1),!be(o);)G();return ye(r,W)},Gr=function(r,t){var n=-1,a=44;do switch(be(a)){case 0:a===38&&K()===12&&(t[n]=1),r[n]+=qr(W-1,t,n);break;case 2:r[n]+=Re(a);break;case 4:if(a===44){r[++n]=K()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=ke(a)}while(a=G());return r},Hr=function(r,t){return Be(Gr(He(r),t))},Qe=new WeakMap,Br=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!Qe.get(n))&&!a){Qe.set(r,!0);for(var o=[],s=Hr(t,o),l=n.props,d=0,h=0;d<s.length;d++)for(var p=0;p<l.length;p++,h++)r.props[h]=o[d]?s[d].replace(/&\f/g,l[p]):l[p]+" "+s[d]}}},Xr=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ke(e,r){switch(Cr(e,r)){case 5103:return P+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+we+e+z+e+e;case 6828:case 4268:return P+e+z+e+e;case 6165:return P+e+z+"flex-"+e+e;case 5187:return P+e+w(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return P+e+z+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return P+e+z+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+z+w(e,"shrink","negative")+e;case 5292:return P+e+z+w(e,"basis","preferred-size")+e;case 6060:return P+"box-"+w(e,"-grow","")+P+e+z+w(e,"grow","positive")+e;case 4554:return P+w(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,P+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-r>6)switch(L(e,r+1)){case 109:if(L(e,r+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+we+(L(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Me(e,"stretch")?Ke(w(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(L(e,r+1)!==115)break;case 6444:switch(L(e,Q(e)-3-(~Me(e,"!important")&&10))){case 107:return w(e,":",":"+P)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(L(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(L(e,r+11)){case 114:return P+e+z+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+z+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+z+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+z+e+e}return e}var Jr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case $e:r.return=Ke(r.value,r.length);break;case Ye:return ue([ge(r,{value:w(r.value,"@","@"+P)})],a);case je:if(r.length)return $r(r.props,function(o){switch(jr(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ge(r,{props:[w(o,/:(read-\w+)/,":"+we+"$1")]})],a);case"::placeholder":return ue([ge(r,{props:[w(o,/:(plac\w+)/,":"+P+"input-$1")]}),ge(r,{props:[w(o,/:(plac\w+)/,":"+we+"$1")]}),ge(r,{props:[w(o,/:(plac\w+)/,z+"input-$1")]})],a)}return""})}},Zr=[Jr],Qr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=r.stylisPlugins||Zr,o={},s,l=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)o[y[b]]=!0;l.push(g)});var d,h=[Br,Xr];{var p,m=[Dr,Yr(function(g){p.insert(g)})],O=Wr(h.concat(a,m)),E=function(y){return ue(Ur(y),O)};d=function(y,b,k,j){p=k,E(y?y+"{"+b.styles+"}":b.styles),j&&(_.inserted[b.name]=!0)}}var _={key:t,sheet:new _r({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:o,registered:{},insert:d};return _.sheet.hydrate(l),_},Kr=!0;function et(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var er=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||Kr===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},rt=function(r,t,n){er(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var o=t;do r.insert(t===o?"."+a:"",o,r.sheet,!0),o=o.next;while(o!==void 0)}};function tt(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var nt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},at=/[A-Z]|^ms/g,it=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rr=function(r){return r.charCodeAt(1)===45},tr=function(r){return r!=null&&typeof r!="boolean"},Le=Ze(function(e){return rr(e)?e:e.replace(at,"-$&").toLowerCase()}),nr=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(it,function(n,a,o){return ee={name:a,styles:o,next:ee},a})}return nt[r]!==1&&!rr(r)&&typeof t=="number"&&t!==0?t+"px":t};function ve(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return ee={name:a.name,styles:a.styles,next:ee},a.name;var o=t;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ee={name:s.name,styles:s.styles,next:ee},s=s.next;var l=o.styles+";";return l}return ot(e,r,t)}case"function":{if(e!==void 0){var d=ee,h=t(e);return ee=d,ve(e,r,h)}break}}var p=t;if(r==null)return p;var m=r[p];return m!==void 0?m:p}function ot(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=ve(e,r,t[a])+";";else for(var o in t){var s=t[o];if(typeof s!="object"){var l=s;r!=null&&r[l]!==void 0?n+=o+"{"+r[l]+"}":tr(l)&&(n+=Le(o)+":"+nr(o,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var d=0;d<s.length;d++)tr(s[d])&&(n+=Le(o)+":"+nr(o,s[d])+";");else{var h=ve(e,r,s);switch(o){case"animation":case"animationName":{n+=Le(o)+":"+h+";";break}default:n+=o+"{"+h+"}"}}}return n}var ar=/label:\s*([^\s;{]+)\s*(;|$)/g,ee;function st(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";ee=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=ve(t,r,o);else{var s=o;a+=s[0]}for(var l=1;l<e.length;l++)if(a+=ve(t,r,e[l]),n){var d=o;a+=d[l]}ar.lastIndex=0;for(var h="",p;(p=ar.exec(a))!==null;)h+="-"+p[1];var m=tt(a)+h;return{name:m,styles:a,next:ee}}var ct=function(r){return r()},lt=ae.useInsertionEffect?ae.useInsertionEffect:!1,ut=lt||ct,ir=ae.createContext(typeof HTMLElement<"u"?Qr({key:"css"}):null);ir.Provider;var ft=function(r){return A.forwardRef(function(t,n){var a=A.useContext(ir);return r(t,a,n)})},dt=ae.createContext({}),pt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ht=Ze(function(e){return pt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mt=ht,gt=function(r){return r!=="theme"},or=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?mt:gt},sr=function(r,t,n){var a;if(t){var o=t.shouldForwardProp;a=r.__emotion_forwardProp&&o?function(s){return r.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},yt=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return er(t,n,a),ut(function(){return rt(t,n,a)}),null},bt=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,o,s;t!==void 0&&(o=t.label,s=t.target);var l=sr(r,t,n),d=l||or(a),h=!d("as");return function(){var p=arguments,m=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var O=p[0];m.push(O[0]);for(var E=p.length,_=1;_<E;_++)m.push(p[_],O[_])}var g=ft(function(y,b,k){var j=h&&y.as||a,N="",V=[],C=y;if(y.theme==null){C={};for(var x in y)C[x]=y[x];C.theme=ae.useContext(dt)}typeof y.className=="string"?N=et(b.registered,V,y.className):y.className!=null&&(N=y.className+" ");var H=st(m.concat(V),b.registered,C);N+=b.key+"-"+H.name,s!==void 0&&(N+=" "+s);var re=h&&l===void 0?or(j):d,U={};for(var X in y)h&&X==="as"||re(X)&&(U[X]=y[X]);return U.className=N,k&&(U.ref=k),ae.createElement(ae.Fragment,null,ae.createElement(yt,{cache:b,serialized:H,isStringTag:typeof j=="string"}),ae.createElement(j,U))});return g.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",g.defaultProps=r.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=m,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(y,b){var k=e(y,Ce({},t,b,{shouldForwardProp:sr(g,b,!0)}));return k.apply(void 0,m)},g}},vt=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fe=bt.bind(null);vt.forEach(function(e){fe[e]=fe(e)});const xt=fe.div`
22
+ <%s key={someKey} {...props} />`,c,l,d,l),H[l+c]=!0)}if(l=null,i!==void 0&&(t(i),l=""+i),u(p)&&(t(p.key),l=""+p.key),"key"in p){i={};for(var V in p)V!=="key"&&(i[V]=p[V])}else i=p;return l&&f(i,typeof o=="function"?o.displayName||o.name||"Unknown":o),m(o,l,i,a(),k,T)}function y(o){C(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===te&&(o._payload.status==="fulfilled"?C(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function C(o){return typeof o=="object"&&o!==null&&o.$$typeof===O}var R=A,O=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),U=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),Y=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,g=Object.prototype.hasOwnProperty,ne=Array.isArray,Z=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(o){return o()}};var B,ie={},Q=R.react_stack_bottom_frame.bind(R,s)(),oe=Z(n(s)),H={};pe.Fragment=v,pe.jsx=function(o,p,i){var c=1e4>Y.recentlyCreatedOwnerStacks++;return h(o,p,i,!1,c?Error("react-stack-top-frame"):Q,c?Z(n(o)):oe)},pe.jsxs=function(o,p,i){var c=1e4>Y.recentlyCreatedOwnerStacks++;return h(o,p,i,!0,c?Error("react-stack-top-frame"):Q,c?Z(n(o)):oe)}})()),pe}var Ue;function Sr(){return Ue||(Ue=1,process.env.NODE_ENV==="production"?ve.exports=xr():ve.exports=kr()),ve.exports}var N=Sr();function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ae.apply(null,arguments)}function Er(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function _r(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Tr=(function(){function e(t){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_r(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Er(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),D="-ms-",Pe="-moz-",S="-webkit-",ze="comm",Ce="rule",$e="decl",Rr="@import",De="@keyframes",Or="@layer",Ar=Math.abs,we=String.fromCharCode,Cr=Object.assign;function $r(e,r){return I(e,0)^45?(((r<<2^I(e,0))<<2^I(e,1))<<2^I(e,2))<<2^I(e,3):0}function We(e){return e.trim()}function jr(e,r){return(e=r.exec(e))?e[0]:e}function E(e,r,t){return e.replace(r,t)}function je(e,r){return e.indexOf(r)}function I(e,r){return e.charCodeAt(r)|0}function he(e,r,t){return e.slice(r,t)}function K(e){return e.length}function Me(e){return e.length}function xe(e,r){return r.push(e),e}function Mr(e,r){return e.map(r).join("")}var ke=1,ce=1,Ye=0,q=0,M=0,le="";function Se(e,r,t,n,a,s,u){return{value:e,root:r,parent:t,type:n,props:a,children:s,line:ke,column:ce,length:u,return:""}}function ge(e,r){return Cr(Se("",null,null,"",null,null,0),e,{length:-e.length},r)}function Fr(){return M}function Nr(){return M=q>0?I(le,--q):0,ce--,M===10&&(ce=1,ke--),M}function J(){return M=q<Ye?I(le,q++):0,ce++,M===10&&(ce=1,ke++),M}function ee(){return I(le,q)}function Ee(){return q}function me(e,r){return he(le,e,r)}function ye(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qe(e){return ke=ce=1,Ye=K(le=e),q=0,[]}function He(e){return le="",e}function _e(e){return We(me(q-1,Fe(e===91?e+2:e===40?e+1:e)))}function Vr(e){for(;(M=ee())&&M<33;)J();return ye(e)>2||ye(M)>3?"":" "}function Lr(e,r){for(;--r&&J()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return me(e,Ee()+(r<6&&ee()==32&&J()==32))}function Fe(e){for(;J();)switch(M){case e:return q;case 34:case 39:e!==34&&e!==39&&Fe(M);break;case 40:e===41&&Fe(e);break;case 92:J();break}return q}function Ir(e,r){for(;J()&&e+M!==57;)if(e+M===84&&ee()===47)break;return"/*"+me(r,q-1)+"*"+we(e===47?e:J())}function Ur(e){for(;!ye(ee());)J();return me(e,q)}function zr(e){return He(Te("",null,null,null,[""],e=qe(e),0,[0],e))}function Te(e,r,t,n,a,s,u,f,P){for(var m=0,h=0,y=u,C=0,R=0,O=0,b=1,v=1,w=1,_=0,j="",U=a,z=s,$=n,x=j;v;)switch(O=_,_=J()){case 40:if(O!=108&&I(x,y-1)==58){je(x+=E(_e(_),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:x+=_e(_);break;case 9:case 10:case 13:case 32:x+=Vr(O);break;case 92:x+=Lr(Ee()-1,7);continue;case 47:switch(ee()){case 42:case 47:xe(Dr(Ir(J(),Ee()),r,t),P);break;default:x+="/"}break;case 123*b:f[m++]=K(x)*w;case 125*b:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+h:w==-1&&(x=E(x,/\f/g,"")),R>0&&K(x)-y&&xe(R>32?Ge(x+";",n,t,y-1):Ge(E(x," ","")+";",n,t,y-2),P);break;case 59:x+=";";default:if(xe($=Je(x,r,t,m,h,a,f,j,U=[],z=[],y),s),_===123)if(h===0)Te(x,r,$,$,U,s,y,f,z);else switch(C===99&&I(x,3)===110?100:C){case 100:case 108:case 109:case 115:Te(e,$,$,n&&xe(Je(e,$,$,0,0,a,f,j,a,U=[],y),z),a,z,y,f,n?U:z);break;default:Te(x,$,$,$,[""],z,0,f,z)}}m=h=R=0,b=w=1,j=x="",y=u;break;case 58:y=1+K(x),R=O;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&Nr()==125)continue}switch(x+=we(_),_*b){case 38:w=h>0?1:(x+="\f",-1);break;case 44:f[m++]=(K(x)-1)*w,w=1;break;case 64:ee()===45&&(x+=_e(J())),C=ee(),h=y=K(j=x+=Ur(Ee())),_++;break;case 45:O===45&&K(x)==2&&(b=0)}}return s}function Je(e,r,t,n,a,s,u,f,P,m,h){for(var y=a-1,C=a===0?s:[""],R=Me(C),O=0,b=0,v=0;O<n;++O)for(var w=0,_=he(e,y+1,y=Ar(b=u[O])),j=e;w<R;++w)(j=We(b>0?C[w]+" "+_:E(_,/&\f/g,C[w])))&&(P[v++]=j);return Se(e,r,t,a===0?Ce:f,P,m,h)}function Dr(e,r,t){return Se(e,r,t,ze,we(Fr()),he(e,2,-2),0)}function Ge(e,r,t,n){return Se(e,r,t,$e,he(e,0,n),he(e,n+1,-1),n)}function ue(e,r){for(var t="",n=Me(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Wr(e,r,t,n){switch(e.type){case Or:if(e.children.length)break;case Rr:case $e:return e.return=e.return||e.value;case ze:return"";case De:return e.return=e.value+"{"+ue(e.children,n)+"}";case Ce:e.value=e.props.join(",")}return K(t=ue(e.children,n))?e.return=e.value+"{"+t+"}":""}function Yr(e){var r=Me(e);return function(t,n,a,s){for(var u="",f=0;f<r;f++)u+=e[f](t,n,a,s)||"";return u}}function qr(e){return function(r){r.root||(r=r.return)&&e(r)}}function Be(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Hr=function(r,t,n){for(var a=0,s=0;a=s,s=ee(),a===38&&s===12&&(t[n]=1),!ye(s);)J();return me(r,q)},Jr=function(r,t){var n=-1,a=44;do switch(ye(a)){case 0:a===38&&ee()===12&&(t[n]=1),r[n]+=Hr(q-1,t,n);break;case 2:r[n]+=_e(a);break;case 4:if(a===44){r[++n]=ee()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=we(a)}while(a=J());return r},Gr=function(r,t){return He(Jr(qe(r),t))},Xe=new WeakMap,Br=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!Xe.get(n))&&!a){Xe.set(r,!0);for(var s=[],u=Gr(t,s),f=n.props,P=0,m=0;P<u.length;P++)for(var h=0;h<f.length;h++,m++)r.props[m]=s[P]?u[P].replace(/&\f/g,f[h]):f[h]+" "+u[P]}}},Xr=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ze(e,r){switch($r(e,r)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+Pe+e+D+e+e;case 6828:case 4268:return S+e+D+e+e;case 6165:return S+e+D+"flex-"+e+e;case 5187:return S+e+E(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+D+"flex-$1$2")+e;case 5443:return S+e+D+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return S+e+D+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+D+E(e,"shrink","negative")+e;case 5292:return S+e+D+E(e,"basis","preferred-size")+e;case 6060:return S+"box-"+E(e,"-grow","")+S+e+D+E(e,"grow","positive")+e;case 4554:return S+E(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-r>6)switch(I(e,r+1)){case 109:if(I(e,r+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+Pe+(I(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~je(e,"stretch")?Ze(E(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(I(e,r+1)!==115)break;case 6444:switch(I(e,K(e)-3-(~je(e,"!important")&&10))){case 107:return E(e,":",":"+S)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(I(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(I(e,r+11)){case 114:return S+e+D+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+D+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+D+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+D+e+e}return e}var Zr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case $e:r.return=Ze(r.value,r.length);break;case De:return ue([ge(r,{value:E(r.value,"@","@"+S)})],a);case Ce:if(r.length)return Mr(r.props,function(s){switch(jr(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ue([ge(r,{props:[E(s,/:(read-\w+)/,":"+Pe+"$1")]})],a);case"::placeholder":return ue([ge(r,{props:[E(s,/:(plac\w+)/,":"+S+"input-$1")]}),ge(r,{props:[E(s,/:(plac\w+)/,":"+Pe+"$1")]}),ge(r,{props:[E(s,/:(plac\w+)/,D+"input-$1")]})],a)}return""})}},Qr=[Zr],Kr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var v=b.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var a=r.stylisPlugins||Qr,s={},u,f=[];u=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var v=b.getAttribute("data-emotion").split(" "),w=1;w<v.length;w++)s[v[w]]=!0;f.push(b)});var P,m=[Br,Xr];{var h,y=[Wr,qr(function(b){h.insert(b)})],C=Yr(m.concat(a,y)),R=function(v){return ue(zr(v),C)};P=function(v,w,_,j){h=_,R(v?v+"{"+w.styles+"}":w.styles),j&&(O.inserted[w.name]=!0)}}var O={key:t,sheet:new Tr({key:t,container:u,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:P};return O.sheet.hydrate(f),O},et=!0;function rt(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var Qe=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||et===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},tt=function(r,t,n){Qe(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var s=t;do r.insert(t===s?"."+a:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function nt(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var at={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},it=/[A-Z]|^ms/g,ot=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ke=function(r){return r.charCodeAt(1)===45},er=function(r){return r!=null&&typeof r!="boolean"},Ne=Be(function(e){return Ke(e)?e:e.replace(it,"-$&").toLowerCase()}),rr=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(ot,function(n,a,s){return re={name:a,styles:s,next:re},a})}return at[r]!==1&&!Ke(r)&&typeof t=="number"&&t!==0?t+"px":t};function be(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return re={name:a.name,styles:a.styles,next:re},a.name;var s=t;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)re={name:u.name,styles:u.styles,next:re},u=u.next;var f=s.styles+";";return f}return st(e,r,t)}case"function":{if(e!==void 0){var P=re,m=t(e);return re=P,be(e,r,m)}break}}var h=t;if(r==null)return h;var y=r[h];return y!==void 0?y:h}function st(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=be(e,r,t[a])+";";else for(var s in t){var u=t[s];if(typeof u!="object"){var f=u;r!=null&&r[f]!==void 0?n+=s+"{"+r[f]+"}":er(f)&&(n+=Ne(s)+":"+rr(s,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(r==null||r[u[0]]===void 0))for(var P=0;P<u.length;P++)er(u[P])&&(n+=Ne(s)+":"+rr(s,u[P])+";");else{var m=be(e,r,u);switch(s){case"animation":case"animationName":{n+=Ne(s)+":"+m+";";break}default:n+=s+"{"+m+"}"}}}return n}var tr=/label:\s*([^\s;{]+)\s*(;|$)/g,re;function ct(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";re=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,a+=be(t,r,s);else{var u=s;a+=u[0]}for(var f=1;f<e.length;f++)if(a+=be(t,r,e[f]),n){var P=s;a+=P[f]}tr.lastIndex=0;for(var m="",h;(h=tr.exec(a))!==null;)m+="-"+h[1];var y=nt(a)+m;return{name:y,styles:a,next:re}}var lt=function(r){return r()},ut=ae.useInsertionEffect?ae.useInsertionEffect:!1,ft=ut||lt,nr=ae.createContext(typeof HTMLElement<"u"?Kr({key:"css"}):null);nr.Provider;var dt=function(r){return A.forwardRef(function(t,n){var a=A.useContext(nr);return r(t,a,n)})},pt=ae.createContext({}),ht=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gt=Be(function(e){return ht.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mt=gt,yt=function(r){return r!=="theme"},ar=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?mt:yt},ir=function(r,t,n){var a;if(t){var s=t.shouldForwardProp;a=r.__emotion_forwardProp&&s?function(u){return r.__emotion_forwardProp(u)&&s(u)}:s}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},bt=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return Qe(t,n,a),ft(function(){return tt(t,n,a)}),null},vt=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,s,u;t!==void 0&&(s=t.label,u=t.target);var f=ir(r,t,n),P=f||ar(a),m=!P("as");return function(){var h=arguments,y=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)y.push.apply(y,h);else{var C=h[0];y.push(C[0]);for(var R=h.length,O=1;O<R;O++)y.push(h[O],C[O])}var b=dt(function(v,w,_){var j=m&&v.as||a,U="",z=[],$=v;if(v.theme==null){$={};for(var x in v)$[x]=v[x];$.theme=ae.useContext(pt)}typeof v.className=="string"?U=rt(w.registered,z,v.className):v.className!=null&&(U=v.className+" ");var G=ct(y.concat(z),w.registered,$);U+=w.key+"-"+G.name,u!==void 0&&(U+=" "+u);var te=m&&f===void 0?ar(j):P,W={};for(var X in v)m&&X==="as"||te(X)&&(W[X]=v[X]);return W.className=U,_&&(W.ref=_),ae.createElement(ae.Fragment,null,ae.createElement(bt,{cache:w,serialized:G,isStringTag:typeof j=="string"}),ae.createElement(j,W))});return b.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=y,b.__emotion_forwardProp=f,Object.defineProperty(b,"toString",{value:function(){return"."+u}}),b.withComponent=function(v,w){var _=e(v,Ae({},t,w,{shouldForwardProp:ir(b,w,!0)}));return _.apply(void 0,y)},b}},Pt=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fe=vt.bind(null);Pt.forEach(function(e){fe[e]=fe(e)});const wt=fe.div`
23
23
  display: flex;
24
24
  align-items: center;
25
25
  justify-content: center;
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  background-color: rgba(255, 165, 0, 0.1);
48
48
  border: 1px solid orange;
49
49
  `;default:return""}}}
50
- `,cr=({type:e,children:r,className:t,icon:n,action:a})=>F.jsxs(xt,{type:e,className:t,children:[n&&F.jsx("span",{children:n}),F.jsx("span",{children:r}),a&&F.jsx("span",{children:a})]}),Ne=fe.div`
50
+ `,or=({type:e,children:r,className:t,icon:n,action:a})=>N.jsxs(wt,{type:e,className:t,children:[n&&N.jsx("span",{children:n}),N.jsx("span",{children:r}),a&&N.jsx("span",{children:a})]}),Ve=fe.div`
51
51
  width: ${({width:e})=>e||"100%"};
52
52
  height: ${({height:e})=>e||"100%"};
53
53
  border-radius: 0px !important; /* Force remove rounded corners on container */
@@ -59,7 +59,7 @@ React keys must be passed directly to JSX without using spread:
59
59
 
60
60
  /* Hide specific elements inside the player */
61
61
  ${({$hiddenClasses:e})=>(e==null?void 0:e.length)&&e.map(r=>`.${r} { display: none !important; }`).join("")}
62
- `,lr=fe.div`
62
+ `,sr=fe.div`
63
63
  position: fixed;
64
64
  top: 0;
65
65
  left: 0;
@@ -71,7 +71,7 @@ React keys must be passed directly to JSX without using spread:
71
71
  align-items: center;
72
72
  z-index: 1000;
73
73
  pointer-events: auto;
74
- `,ur=fe.div`
74
+ `,cr=fe.div`
75
75
  position: relative;
76
76
  height: 80vh;
77
77
  width: auto;
@@ -79,4 +79,4 @@ React keys must be passed directly to JSX without using spread:
79
79
  max-width: 90vw;
80
80
  max-height: 90vh;
81
81
  z-index: 1001;
82
- `,xe="https://host.vpplayer.tech",fr=e=>`${xe}/player/${e}/vpplayer.js`,Pt=e=>`${xe}/player/${e}.js`,dr=(e,r)=>`${xe}/player/${e}/${r}.js`,Ve=e=>`${xe}/vertical-player/${e}.js`,pr=(e,r)=>e?`vp-player-${e}`:r?`vp-player-default-${r}`:"vp-player-default",hr=(e,r)=>{const t=new URL(e);return t.searchParams.set("divId",r),t.toString()},Oe=new Map,mr=(e,r)=>{const[t,n]=A.useState(!1),[a,o]=A.useState(null);return A.useEffect(()=>{let s;try{s=r||fr(e||"latest")}catch(h){const p=h instanceof Error?h.message:String(h);o(`Failed to resolve script URL: ${p}`);return}if(!Oe.has(s))if(document.querySelector(`script[src="${s}"]`))Oe.set(s,Promise.resolve());else{const p=new Promise((m,O)=>{const E=document.createElement("script");E.src=s,E.async=!0,E.onload=()=>m(),E.onerror=()=>O(new Error(`Failed to load script: ${s}`)),document.body.appendChild(E)});Oe.set(s,p)}let l=!0;const d=Oe.get(s);return d&&d.then(()=>{l&&(n(!0),o(null))}).catch(h=>{l&&(n(!1),o(h instanceof Error?h.message:String(h)))}),()=>{l=!1}},[e,r]),{isLoaded:t,error:a}};function wt(e,r,t=!1){const n=e.startIndex??0,a=e.videos[n]||e.videos[0];if(!a)throw new Error("Manual playlist must have at least one video");const o=a.file||a.hlsUrl;if(!o)throw new Error("Each video in manual playlist must have a 'file' or 'hlsUrl' property");const s=e.videos.map(d=>({videoId:d.videoId||"",title:d.title||"",file:d.file||d.hlsUrl||"",thumbnailUrl:d.thumbnailUrl||d.thumbnail||"",duration:d.duration||0}));return{projectId:r||"",video:{videoId:a.videoId||"",file:o,title:a.title||"",thumbnail:a.thumbnailUrl||a.thumbnail||"",playlist:{state:!0,playlistId:"",playlistVideoIndex:n,videos:s}},config:{autoplay:!0,muted:!0,...t&&{size:{sizeType:"RESPONSIVE",aspectRatio:"9:16"}}}}}const gr=({scriptId:e,videoId:r,scriptUrl:t,projectId:n,playlist:a,playerId:o,isVertical:s=!1,isReels:l=!1,onReady:d,onPlay:h,onPause:p,onResume:m,onComplete:O,onError:E,onVideoStarted:_,onTimeUpdate:g,onQuartile25:y,onQuartile50:b,onQuartile75:k,onNext:j,onPrevious:N,onProgress10s:V,onProgress20s:C})=>{var i;const x=A.useRef(null),H=A.useRef(null),[re,U]=A.useState(null),X=A.useId().replace(/:/g,""),D=A.useMemo(()=>pr(o||`auto-${X}`,r),[o,X,r]),$=A.useRef({onReady:d,onPlay:h,onPause:p,onResume:m,onComplete:O,onError:E,onVideoStarted:_,onTimeUpdate:g,onQuartile25:y,onQuartile50:b,onQuartile75:k,onNext:j,onPrevious:N,onProgress10s:V,onProgress20s:C});A.useEffect(()=>{$.current={onReady:d,onPlay:h,onPause:p,onResume:m,onComplete:O,onError:E,onVideoStarted:_,onTimeUpdate:g,onQuartile25:y,onQuartile50:b,onQuartile75:k,onNext:j,onPrevious:N,onProgress10s:V,onProgress20s:C}});const te=A.useRef(!1),Y=!!((i=a==null?void 0:a.videos)!=null&&i.length),q=A.useMemo(()=>s||l?!0:t?t.includes("vertical-player")||t.includes("vpverticalplayer"):!1,[s,l,t]),ne=A.useMemo(()=>{let c;if(t)c=t;else if(e&&r&&!Y)c=q?Ve(e):dr(e,r);else if(e)c=q?Ve(e):`https://host.vpplayer.tech/player/${e}.js`;else return null;return hr(c,D)},[t,e,r,q,D,Y]),J=A.useMemo(()=>{if(!Y||!a)return null;try{return wt(a,n,q)}catch(c){return console.error("Failed to build manual playlist config:",c),null}},[Y,a,n,q]),{isLoaded:ie,error:oe}=mr(null,ne||void 0);return A.useEffect(()=>{if(!ne){U("VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + playlist) to initialize the player.");return}if(oe){U(oe);return}if(!ie)return;if(Y&&!J){U("VPPlayer: Failed to build manual playlist configuration.");return}let c=!0;return(async()=>{var R;try{const B=q?window.vpVerticalPlayer:window.vpPlayer;if(!B){U(`VP Player: Script loaded but global function not found. Expected ${q?"vpVerticalPlayer":"vpPlayer"}.`);return}if(await new Promise(S=>setTimeout(S,0)),!document.getElementById(D)){console.error(`VP Player: Container element with ID '${D}' not found in DOM.`);return}const v=B(D);if(!v){U("VP Player: Failed to get player instance.");return}if(c){if(H.current=v,U(null),te.current=!1,Y&&J){console.log("VP Player: Manual playlist mode - calling setup() with config:",J);try{v.setup(J)}catch(S){const f=S instanceof Error?S.message:String(S);if(f.includes("already initialized")){console.warn("VP Player: Player already initialized, attempting to destroy and retry.");try{if((R=v.destroy)==null||R.call(v),await new Promise(u=>setTimeout(u,50)),c&&document.getElementById(D)){const u=B(D);u&&(u.setup(J),H.current=u)}}catch(u){console.error("VP Player: Failed to recover from initialization error",u)}}else{console.error("VP Player: Setup error",S),U(`Player setup failed: ${f}`);return}}}if(v.on){const S=v.on.bind(v);S("ready",()=>{var f,u;(u=(f=$.current).onReady)==null||u.call(f)}),S("play",()=>{var f,u;(u=(f=$.current).onPlay)==null||u.call(f)}),S("pause",()=>{var f,u;(u=(f=$.current).onPause)==null||u.call(f)}),S("resume",()=>{var f,u;(u=(f=$.current).onResume)==null||u.call(f)}),S("complete",()=>{var f,u;(u=(f=$.current).onComplete)==null||u.call(f),te.current=!1}),S("video-started",f=>{var u,Z;(Z=(u=$.current).onVideoStarted)==null||Z.call(u,f)}),S("firstQuartile",()=>{var f,u;(u=(f=$.current).onQuartile25)==null||u.call(f)}),S("secondQuartile",()=>{var f,u;(u=(f=$.current).onQuartile50)==null||u.call(f)}),S("thirdQuartile",()=>{var f,u;(u=(f=$.current).onQuartile75)==null||u.call(f)}),S("video-state",()=>{var u,Z,se;const f=((u=v.getPosition)==null?void 0:u.call(v))??0;(se=(Z=$.current).onProgress10s)==null||se.call(Z,Math.floor(f))}),S("time",f=>{var Z,se,yr,br,vr;let u=0;typeof f=="number"?u=f:f&&typeof f=="object"&&"position"in f?u=f.position:u=((Z=v.getPosition)==null?void 0:Z.call(v))??0,(yr=(se=$.current).onTimeUpdate)==null||yr.call(se,u),!te.current&&u>=20&&(te.current=!0,(vr=(br=$.current).onProgress20s)==null||vr.call(br,Math.floor(u)))}),S("playlistItem",()=>{var f,u;(u=(f=$.current).onNext)==null||u.call(f),te.current=!1}),S("error",f=>{var Z,se;const u=typeof f=="string"?f:(f==null?void 0:f.message)||"Unknown error";(se=(Z=$.current).onError)==null||se.call(Z,u)})}}}catch(B){if(c){const de=B instanceof Error?B.message:String(B);U(de),console.error("VP Player initialization error:",B)}}})(),()=>{var R;if(c=!1,(R=H.current)!=null&&R.destroy){try{H.current.destroy()}catch{}H.current=null}}},[ie,D,oe,ne,q,Y,J]),{playerRef:x,playerInstanceRef:H,isScriptLoaded:ie,isLoading:!ie&&!re,error:re,generatedPlayerId:D}},kt=({scriptId:e,videoId:r,scriptUrl:t,projectId:n,playlist:a,playerId:o,isVertical:s=!1,isReels:l=!1,thumbnailUrl:d,onClose:h,className:p,hiddenClasses:m=[],onReady:O,onPlay:E,onPause:_,onResume:g,onComplete:y,onError:b,onVideoStarted:k,onTimeUpdate:j,onQuartile25:N,onQuartile50:V,onQuartile75:C,onNext:x,onPrevious:H,onProgress10s:re,onProgress20s:U})=>{const{playerRef:X,playerInstanceRef:D,isScriptLoaded:$,isLoading:te,error:Y,generatedPlayerId:q}=gr({scriptId:e,videoId:r,scriptUrl:t,projectId:n,playlist:a,playerId:o,isVertical:s,isReels:l,onReady:O,onPlay:E,onPause:_,onResume:g,onComplete:y,onError:b,onVideoStarted:k,onTimeUpdate:j,onQuartile25:N,onQuartile50:V,onQuartile75:C,onNext:x,onPrevious:H,onProgress10s:re,onProgress20s:U}),[ne,J]=A.useState(!0),ie=()=>l&&J(!0),oe=()=>{var c,T;!l||!ne||(J(!1),(T=(c=D.current)==null?void 0:c.pause)==null||T.call(c),h==null||h())};if(Y)return F.jsxs(cr,{type:"error",children:["An error occurred: ",Y]});const i=()=>F.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.8)",zIndex:10},children:F.jsx(cr,{type:"loading",children:"Loading..."})});return l?F.jsxs(F.Fragment,{children:[!ne&&F.jsx("div",{onClick:ie,style:{cursor:"pointer",width:"100%",height:"100%",backgroundImage:d?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}}),ne&&F.jsx(lr,{onClick:oe,className:p,children:F.jsx(ur,{className:p,onClick:c=>c.stopPropagation(),children:F.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[F.jsx(Ne,{id:q,ref:X,width:"100%",height:"100%",$hiddenClasses:m,className:p}),(te||!$)&&F.jsx(i,{})]})})})]}):F.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[F.jsx(Ne,{id:q,ref:X,width:"100%",height:"100%",$hiddenClasses:m,className:p}),(te||!$)&&F.jsx(i,{})]})};I.Overlay=lr,I.PlayerContainer=Ne,I.PlayerWrapper=ur,I.VPPlayer=kt,I.VP_PLAYER_BASE_URL=xe,I.appendDivIdToUrl=hr,I.generatePlayerId=pr,I.getFullyManagedPlayerScriptUrl=dr,I.getManagedPlayerScriptUrl=Pt,I.getPlayerScriptUrl=fr,I.getVerticalPlayerScriptUrl=Ve,I.useVPPlayerLogic=gr,I.useVPPlayerScript=mr,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
82
+ `,se="https://host.vpplayer.tech",lr=e=>`${se}/player/${e}/vpplayer.js`,xt=e=>`${se}/player/${e}.js`,ur=(e,r)=>`${se}/player/${e}/${r}.js`,fr=e=>`${se}/vertical-player/${e}.js`,kt=(e,r)=>`${se}/vertical-player/${e}/${r}.js`,St=(e,r)=>`${se}/player/${e}/${r}.json`,Et=(e,r)=>`${se}/vertical-player/${e}/${r}.json`,dr=(e,r)=>e?`vp-player-${e}`:r?`vp-player-default-${r}`:"vp-player-default",pr=(e,r)=>{const t=new URL(e);return t.searchParams.set("divId",r),t.toString()},Re=new Map,hr=(e,r)=>{const[t,n]=A.useState(!1),[a,s]=A.useState(null);return A.useEffect(()=>{let u;try{u=r||lr(e||"latest")}catch(m){const h=m instanceof Error?m.message:String(m);s(`Failed to resolve script URL: ${h}`);return}if(!Re.has(u))if(document.querySelector(`script[src="${u}"]`))Re.set(u,Promise.resolve());else{const h=new Promise((y,C)=>{const R=document.createElement("script");R.src=u,R.async=!0,R.onload=()=>y(),R.onerror=()=>C(new Error(`Failed to load script: ${u}`)),document.body.appendChild(R)});Re.set(u,h)}let f=!0;const P=Re.get(u);return P&&P.then(()=>{f&&(n(!0),s(null))}).catch(m=>{f&&(n(!1),s(m instanceof Error?m.message:String(m)))}),()=>{f=!1}},[e,r]),{isLoaded:t,error:a}};function Oe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function gr(e,r){if(!Oe(e)||!Oe(r))return r;const t={...e};for(const n of Object.keys(r)){const a=r[n],s=t[n];Oe(a)&&Oe(s)?t[n]=gr(s,a):a!==void 0&&(t[n]=a)}return t}async function _t(e,r,t){if(!e)return console.warn("VP Player: No scriptId provided, cannot fetch config. Using user config directly."),null;r||console.warn("VP Player: No videoId provided, attempting to fetch config with scriptId only...");const n=t?Et(e,r||""):St(e,r||"");try{console.log("VP Player: Attempting to fetch config from",n);const a=await fetch(n);if(!a.ok)return console.warn(`VP Player: Failed to fetch config from ${n} (${a.status}). Using user config directly.`),null;const s=await a.json();return console.log("VP Player: Successfully fetched config from",n),s}catch(a){return console.warn(`VP Player: Error fetching config from ${n}:`,a,"Using user config directly."),null}}const mr=({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u=!1,isReels:f=!1,onReady:P,onPlay:m,onPause:h,onResume:y,onComplete:C,onError:R,onVideoStarted:O,onTimeUpdate:b,onQuartile25:v,onQuartile50:w,onQuartile75:_,onNext:j,onPrevious:U,onProgress10s:z,onProgress20s:$})=>{const x=A.useRef(null),G=A.useRef(null),[te,W]=A.useState(null),X=A.useId().replace(/:/g,""),Y=A.useMemo(()=>dr(s||`auto-${X}`,r),[s,X,r]),g=A.useRef({onReady:P,onPlay:m,onPause:h,onResume:y,onComplete:C,onError:R,onVideoStarted:O,onTimeUpdate:b,onQuartile25:v,onQuartile50:w,onQuartile75:_,onNext:j,onPrevious:U,onProgress10s:z,onProgress20s:$});A.useEffect(()=>{g.current={onReady:P,onPlay:m,onPause:h,onResume:y,onComplete:C,onError:R,onVideoStarted:O,onTimeUpdate:b,onQuartile25:v,onQuartile50:w,onQuartile75:_,onNext:j,onPrevious:U,onProgress10s:z,onProgress20s:$}});const ne=A.useRef(!1),Z=!!a,B=A.useMemo(()=>u||f?!0:t?t.includes("vertical-player")||t.includes("vpverticalplayer"):!1,[u,f,t]),ie=A.useMemo(()=>{let H;if(t)H=t;else if(e&&r&&!Z)H=B?kt(e,r):ur(e,r);else if(e)H=B?fr(e):`https://host.vpplayer.tech/player/${e}.js`;else return null;return pr(H,Y)},[t,e,r,B,Y,Z]),{isLoaded:Q,error:oe}=hr(null,ie||void 0);return A.useEffect(()=>{if(!ie){W("VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player.");return}if(oe){W(oe);return}if(!Q)return;let H=!0;return(async()=>{var p;try{const i=B?window.vpVerticalPlayer:window.vpPlayer;if(!i){W(`VP Player: Script loaded but global function not found. Expected ${B?"vpVerticalPlayer":"vpPlayer"}.`);return}if(await new Promise(T=>setTimeout(T,0)),!document.getElementById(Y)){console.error(`VP Player: Container element with ID '${Y}' not found in DOM.`);return}const k=i(Y);if(!k){W("VP Player: Failed to get player instance.");return}if(H){if(G.current=k,W(null),ne.current=!1,Z&&a){let T;const l=await _t(e,r,B);l?(console.log("VP Player: Fetched config (base):",JSON.parse(JSON.stringify(l))),console.log("VP Player: User config (overrides):",JSON.parse(JSON.stringify(a))),T=gr(l,a),console.log("VP Player: Merged config (final):",JSON.parse(JSON.stringify(T)))):(T=a,console.log("VP Player: Using user config directly (no fetch):",JSON.parse(JSON.stringify(T)))),n&&!T.projectId&&(T.projectId=n);try{k.setup(T)}catch(d){const V=d instanceof Error?d.message:String(d);if(V.includes("already initialized")){console.warn("VP Player: Player already initialized, attempting to destroy and retry.");try{if((p=k.destroy)==null||p.call(k),await new Promise(L=>setTimeout(L,50)),H&&document.getElementById(Y)){const L=i(Y);L&&(L.setup(T),G.current=L)}}catch(L){console.error("VP Player: Failed to recover from initialization error",L)}}else{console.error("VP Player: Setup error",d),W(`Player setup failed: ${V}`);return}}}if(k.on){const T=k.on.bind(k);T("ready",()=>{var l,d;(d=(l=g.current).onReady)==null||d.call(l)}),T("play",()=>{var l,d;(d=(l=g.current).onPlay)==null||d.call(l)}),T("pause",()=>{var l,d;(d=(l=g.current).onPause)==null||d.call(l)}),T("resume",()=>{var l,d;(d=(l=g.current).onResume)==null||d.call(l)}),T("complete",()=>{var l,d;(d=(l=g.current).onComplete)==null||d.call(l),ne.current=!1}),T("video-started",l=>{var d,V;(V=(d=g.current).onVideoStarted)==null||V.call(d,l)}),T("firstQuartile",()=>{var l,d;(d=(l=g.current).onQuartile25)==null||d.call(l)}),T("secondQuartile",()=>{var l,d;(d=(l=g.current).onQuartile50)==null||d.call(l)}),T("thirdQuartile",()=>{var l,d;(d=(l=g.current).onQuartile75)==null||d.call(l)}),T("video-state",()=>{var d,V,L;const l=((d=k.getPosition)==null?void 0:d.call(k))??0;(L=(V=g.current).onProgress10s)==null||L.call(V,Math.floor(l))}),T("time",l=>{var V,L,br,vr,Pr;let d=0;typeof l=="number"?d=l:l&&typeof l=="object"&&"position"in l?d=l.position:d=((V=k.getPosition)==null?void 0:V.call(k))??0,(br=(L=g.current).onTimeUpdate)==null||br.call(L,d),!ne.current&&d>=20&&(ne.current=!0,(Pr=(vr=g.current).onProgress20s)==null||Pr.call(vr,Math.floor(d)))}),T("playlistItem",()=>{var l,d;(d=(l=g.current).onNext)==null||d.call(l),ne.current=!1}),T("error",l=>{var V,L;const d=typeof l=="string"?l:(l==null?void 0:l.message)||"Unknown error";(L=(V=g.current).onError)==null||L.call(V,d)})}}}catch(i){if(H){const c=i instanceof Error?i.message:String(i);W(c),console.error("VP Player initialization error:",i)}}})(),()=>{var p;if(H=!1,(p=G.current)!=null&&p.destroy){try{G.current.destroy()}catch{}G.current=null}}},[Q,Y,oe,ie,B,Z,a,e,r,n]),{playerRef:x,playerInstanceRef:G,isScriptLoaded:Q,isLoading:!Q&&!te,error:te,generatedPlayerId:Y}},yr=A.forwardRef(({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u=!1,isReels:f=!1,thumbnailUrl:P,onClose:m,className:h,hiddenClasses:y=[],onReady:C,onPlay:R,onPause:O,onResume:b,onComplete:v,onError:w,onVideoStarted:_,onTimeUpdate:j,onQuartile25:U,onQuartile50:z,onQuartile75:$,onNext:x,onPrevious:G,onProgress10s:te,onProgress20s:W},X)=>{const{playerRef:Y,playerInstanceRef:g,isScriptLoaded:ne,isLoading:Z,error:B,generatedPlayerId:ie}=mr({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u,isReels:f,onReady:C,onPlay:R,onPause:O,onResume:b,onComplete:v,onError:w,onVideoStarted:_,onTimeUpdate:j,onQuartile25:U,onQuartile50:z,onQuartile75:$,onNext:x,onPrevious:G,onProgress10s:te,onProgress20s:W});A.useImperativeHandle(X,()=>({play:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.play)==null?void 0:c.call(i)},pause:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.pause)==null?void 0:c.call(i)},seek:i=>{var c,k;return(k=(c=g.current)==null?void 0:c.seek)==null?void 0:k.call(c,i)},forward:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.forward)==null?void 0:c.call(i)},rewind:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.rewind)==null?void 0:c.call(i)},replay:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.replay)==null?void 0:c.call(i)},mute:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.mute)==null?void 0:c.call(i)},unmute:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.unmute)==null?void 0:c.call(i)},togglePlay:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.togglePlay)==null?void 0:c.call(i)},toggleMute:()=>{var i,c;return(c=(i=g.current)==null?void 0:i.toggleMute)==null?void 0:c.call(i)},enterFullScreen:()=>{var i,c,k;return(k=((i=g.current)==null?void 0:i.enterFullScreen)??((c=g.current)==null?void 0:c.enterFullscreen))==null?void 0:k()},exitFullScreen:()=>{var i,c,k;return(k=((i=g.current)==null?void 0:i.exitFullScreen)??((c=g.current)==null?void 0:c.exitFullscreen))==null?void 0:k()},getPosition:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.getPosition)==null?void 0:c.call(i))??null},getDuration:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.getDuration)==null?void 0:c.call(i))??null},getVolume:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.getVolume)==null?void 0:c.call(i))??null},setVolume:i=>{var c,k;return(k=(c=g.current)==null?void 0:c.setVolume)==null?void 0:k.call(c,i)},isMuted:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.isMuted)==null?void 0:c.call(i))??!1},isPlaying:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.isPlaying)==null?void 0:c.call(i))??!1},isPaused:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.isPaused)==null?void 0:c.call(i))??!1},isFullscreen:()=>{var i,c;return((c=(i=g.current)==null?void 0:i.isFullscreen)==null?void 0:c.call(i))??!1}}),[]);const[Q,oe]=A.useState(!0),H=()=>f&&oe(!0),o=()=>{var i,c;!f||!Q||(oe(!1),(c=(i=g.current)==null?void 0:i.pause)==null||c.call(i),m==null||m())};if(B)return N.jsxs(or,{type:"error",children:["An error occurred: ",B]});const p=()=>N.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.8)",zIndex:10},children:N.jsx(or,{type:"loading",children:"Loading..."})});return f?N.jsxs(N.Fragment,{children:[!Q&&N.jsx("div",{onClick:H,style:{cursor:"pointer",width:"100%",height:"100%",backgroundImage:P?`url(${P})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}}),Q&&N.jsx(sr,{onClick:o,className:h,children:N.jsx(cr,{className:h,onClick:i=>i.stopPropagation(),children:N.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[N.jsx(Ve,{id:ie,ref:Y,width:"100%",height:"100%",$hiddenClasses:y,className:h}),(Z||!ne)&&N.jsx(p,{})]})})})]}):N.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[N.jsx(Ve,{id:ie,ref:Y,width:"100%",height:"100%",$hiddenClasses:y,className:h}),(Z||!ne)&&N.jsx(p,{})]})});yr.displayName="VPPlayer",F.Overlay=sr,F.PlayerContainer=Ve,F.PlayerWrapper=cr,F.VPPlayer=yr,F.VP_PLAYER_BASE_URL=se,F.appendDivIdToUrl=pr,F.generatePlayerId=dr,F.getFullyManagedPlayerScriptUrl=ur,F.getManagedPlayerScriptUrl=xt,F.getPlayerScriptUrl=lr,F.getVerticalPlayerScriptUrl=fr,F.useVPPlayerLogic=mr,F.useVPPlayerScript=hr,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devix-technologies/react-gjirafa-vp-player",
3
- "version": "1.0.31-beta.3",
3
+ "version": "1.0.31-beta.6",
4
4
  "type": "module",
5
5
  "main": "./dist/react-gjirafa-vp-player.umd.js",
6
6
  "module": "./dist/react-gjirafa-vp-player.es.js",