1/*! For license information please see main.9f89f198.js.LICENSE.txt */ 2(()=>{var e={14:e=>{e.exports=function(){return!1}},39:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(8497)},149:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=o(n(620)),i=o(n(840)),a=o(n(2322)),s=o(n(3411));function o(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,s.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},219:(e,t,n)=>{"use strict";var r=n(3763),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(m){var i=p(n);i&&i!==m&&e(t,i,r)}var s=d(n);u&&(s=s.concat(u(n)));for(var o=l(t),f=l(n),g=0;g<s.length;++g){var v=s[g];if(!a[v]&&(!r||!r[v])&&(!f||!f[v])&&(!o||!o[v])){var b=h(n,v);try{c(t,v,b)}catch(y){}}}}return t}},310:(e,t,n)=>{"use strict";n.d(t,{X4:()=>c,a:()=>u,e$:()=>d,eM:()=>l,tL:()=>h});var r=n(2538);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let i,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),i=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.A)(10,i))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function o(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=o(e),r=o(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function d(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function u(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return o(e)>.5?d(e,t):u(e,t)}},396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}}
2,438:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).get(e)}},449:(e,t,n)=>{var r=n(6924),i=n(2761);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},474:(e,t,n)=>{var r=n(3204),i=n(8122),a=n(6571);e.exports=function(e){return a(e)?r(e,!0):i(e)}},579:(e,t,n)=>{"use strict";e.exports=n(1153)},620:(e,t,n)=>{var r=n(6913),i=n(4052),a=n(2761);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},726:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},793:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},805:(e,t,n)=>{"use strict";n(5881)},840:(e,t,n)=>{var r=n(4664),i=n(5111);e.exports=function(e,t){return e&&r(e,i(t))}},914:(e,t,n)=>{var r=n(9841);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},918:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},950:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3468).A},1069:(e,t,n)=>{var r=n(8541);e.exports=function(e){return null==e?"":r(e)}},1104:(e,t,n)=>{var r=n(6614),i=n(8673);e.exports=function(e,t){return e&&r(t,i(t),e)}},1143:(e,t,n)=>{var r=n(3028)(Object.keys,Object);e.exports=r},1153:(e,t,n)=>{"use strict";var r=n(5043),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:d,props:a,_owner:o.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},1268:(e,t,n)=>{var r=n(5428),i=n(7574),a=n(6832),s=a&&a.isTypedArray,o=s?i(s):r;e.exports=o},1295:(e,t,n)=>{var r=n(9812),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},1310:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},1340:(e,t,n)=>{var r=n(3211);e.exports=function(e,t){for(var n=e.length;n--;
2)if(r(e[n][0],t))return n;return-1}},1497:(e,t,n)=>{"use strict";var r=n(3218);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,s){if(s!==r){var o=new 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 o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={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};return n.PropTypes=n,n}},1516:(e,t,n)=>{var r=n(2929);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},1629:(e,t,n)=>{var r=n(6913),i=n(6686);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1668:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},1714:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},1722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>a});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},1775:(e,t,n)=>{var r=n(5654);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1782:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5043),i=n(4440);const a=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},1817:(e,t,n)=>{var r=n(6686),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},1844:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},1946:(e,t,n)=>{var r=n(1340);e.exports=function(e){return r(this.__data__,e)>-1}},1980:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},2070:(e,t,n)=>{var r=n(7937)(n(6552),"Set");e.exports=r},2074:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},2086:(e,t,n)=>{"use strict";e.exports=n(5082)},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var a,s,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(o[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(o[s[d]]=a[s[d]])}}return o}},2154:(e,t,n)=>{var r=n(5575),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},2322:(e,t,n)=>{var r=n(6913),i=n(5990),a=n(2761),s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},2330:(e,t,n)=>{"use strict";var r=n(5043);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,s=r.useEffect,o=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var d="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,d=r[1];return o((function(){i.value=n,i.getSnapshot=t,c(i)&&d({inst:i})}),[e,n,t]),s((function(){return c(i)&&d({inst:i}),e((function(){c(i)&&d({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d}
2,2372:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9386);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a=i[t];return a?"".concat(n,"-").concat(a):"".concat(r.A.generate(e),"-").concat(t)}},2427:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1668).A},2532:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2372);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.A)(e,t,n)})),i}},2538:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},2587:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},2597:(e,t,n)=>{var r=n(4052),i=n(9841),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},2614:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},2622:(e,t,n)=>{var r=n(705);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2662:(e,t,n)=>{var r=n(5575);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},2730:(e,t,n)=>{"use strict";var r=n(5043),i=n(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),u=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function f(e,t,n,r,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new f(e,6,!1,e,null,!1,!1)}
vendor: 33,586 bytes, line 2
2)),["rowSpan","start"].forEach((function(e){g[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!u.call(m,e)||!u.call(p,e)&&(h.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),j=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function O(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var M,_=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(1!==s||1!==o)do{if(s--,0>--o||i[s]!==a[o]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=o);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case w:return"Fragment";case k:return"Portal";case C:return"Profiler";case T:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:G(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(t);case 8:return t===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return _({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,ue=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,we=null,Te=null;function Ce(e){if(e=yi(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=Si(t),ke(e.stateNode,e.type,t))}}function Ee(e){we?Te?Te.push(e):Te=[e]:we=e}function je(){if(we){var e=we,t=Te;if(Te=we=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ne(){}var Pe=!1;function Re(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ae(e,t,n)}finally{Pe=!1,(null!==we||null!==Te)&&(Ne(),je())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=Si(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ie=!1;if(d)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(de){Ie=!1}function Oe(e,t,n,r,i,a,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Me=!1,_e=null,Fe=!1,Be=null,Ue={onError:function(e){Me=!0,_e=e}};function ze(e,t,n,r,i,a,s,o,l){Me=!1,_e=null,Oe.apply(Ue,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ge(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return He(i),e;if(s===r)return He(i),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Xe=i.unstable_shouldYield,Je=i.unstable_requestPaint,Qe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2;var ct=64,dt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!==s){var o=s&~i;0!==o?r=ut(o):0!==(a&=s)&&(r=ut(a))}else 0!==(s=n&~i)?r=ut(s):0!==a&&(r=ut(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var St,kt,wt,Tt,Ct,Et=!1,jt=[],At=null,Nt=null,Pt=null,Rt=new Map,Lt=new Map,It=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=yi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _t(e){var t=bi(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ct(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Et=!1,null!==At&&Ft(At)&&(At=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==Pt&&Ft(Pt)&&(Pt=null),Rt.forEach(Bt),Lt.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Gt(e){function t(t){return zt(t,e)}if(0<jt.length){zt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&zt(At,e),null!==Nt&&zt(Nt,e),null!==Pt&&zt(Pt,e),Rt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)_t(n),null===n.blockedOn&&It.shift()}var Wt=x.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=yt,a=Wt.transition;Wt.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=i,Wt.transition=a}}function Kt(e,t,n,r){var i=yt,a=Wt.transition;Wt.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=i,Wt.transition=a}}function qt(e,t,n,r){if(Ht){var i=Xt(e,t,n,r);if(null===i)Hr(e,t,r,Yt,n),Ot(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=Mt(At,e,t,n,r,i),!0;case"dragenter":return Nt=Mt(Nt,e,t,n,r,i),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Rt.set(a,Mt(Rt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Lt.set(a,Mt(Lt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==i;){var a=yi(i);if(null!==a&&St(a),null===(a=Xt(e,t,n,r))&&Hr(e,t,r,Yt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Yt=null;function Xt(e,t,n,r){if(Yt=null,null!==(e=bi(e=Se(r))))if(null===(t=Ge(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,$t=null;function en(){if($t)return $t;var e,t,n=Zt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[a-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,on,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(cn),un=_({},cn,{view:0,detail:0}),hn=an(un),pn=_({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),mn=an(pn),fn=an(_({},pn,{dataTransfer:0})),gn=an(_({},un,{relatedTarget:0})),vn=an(_({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=_({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(bn),xn=an(_({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function Cn(){return Tn}var En=_({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=an(En),An=an(_({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=an(_({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=an(_({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=_({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=an(Rn),In=[9,13,27,32],Dn=d&&"CompositionEvent"in window,On=null;d&&"documentMode"in document&&(On=document.documentMode);var Mn=d&&"TextEvent"in window&&!On,_n=d&&(!Dn||On&&8<On&&11>=On),Fn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ee(r),0<(t=Kr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Yn(e){Fr(e,0)}function Xn(e){if(q(xi(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(d){var Zn;if(d){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Zn=$n}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Xn(qn)){var t=[];Vn(t,qn,e,Se(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function ar(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var or="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(or(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!u.call(t,i)||!or(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=dr(n,a);var s=dr(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Kr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},wr={},Tr={};function Cr(e){if(wr[e])return wr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tr)return wr[e]=n[t];return e}d&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Er=Cr("animationend"),jr=Cr("animationiteration"),Ar=Cr("animationstart"),Nr=Cr("transitionend"),Pr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Pr.set(e,t),l(t,[e])}for(var Ir=0;Ir<Rr.length;Ir++){var Dr=Rr[Ir];Lr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Lr(Er,"onAnimationEnd"),Lr(jr,"onAnimationIteration"),Lr(Ar,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function _r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,s,o,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(a(198));var d=_e;Me=!1,_e=null,Fe||(Fe=!0,Be=d)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;_r(i,o,c),a=l}else for(s=0;s<r.length;s++){if(l=(o=r[s]).instance,c=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;_r(i,o,c),a=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Gr(e){if(!e[zr]){e[zr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var i=Vt;break;case 4:i=Kt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var o=r.stateNode.containerInfo;if(o===i||8===o.nodeType&&o.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==o;){if(null===(s=bi(o)))return;if(5===(l=s.tag)||6===l){r=a=s;continue e}o=o.parentNode}}r=r.return}Re((function(){var r=a,i=Se(n),s=[];e:{var o=Pr.get(e);if(void 0!==o){var l=dn,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=jn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case jr:case Ar:l=vn;break;case Nr:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var d=0!==(4&t),u=!d&&"scroll"===e,h=d?null!==o?o+"Capture":null:o;d=[];for(var p,m=r;null!==m;){var f=(p=m).stateNode;if(5===p.tag&&null!==f&&(p=f,null!==h&&(null!=(f=Le(m,h))&&d.push(Vr(m,f,p)))),u)break;m=m.return}0<d.length&&(o=new l(o,c,null,n,i),s.push({event:o,listeners:d}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bi(c)&&!c[mi])&&(l||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bi(c):null)&&(c!==(u=Ge(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(d=mn,f="onMouseLeave",h="onMouseEnter",m="mou
2se","pointerout"!==e&&"pointerover"!==e||(d=An,f="onPointerLeave",h="onPointerEnter",m="pointer"),u=null==l?o:xi(l),p=null==c?o:xi(c),(o=new d(f,m+"leave",l,n,i)).target=u,o.relatedTarget=p,f=null,bi(i)===r&&((d=new d(h,m+"enter",c,n,i)).target=p,d.relatedTarget=u,f=d),u=f,l&&c)e:{for(h=c,m=0,p=d=l;p;p=qr(p))m++;for(p=0,f=h;f;f=qr(f))p++;for(;0<m-p;)d=qr(d),m--;for(;0<p-m;)h=qr(h),p--;for(;m--;){if(d===h||null!==h&&d===h.alternate)break e;d=qr(d),h=qr(h)}d=null}else d=null;null!==l&&Yr(s,o,l,d,!1),null!==c&&null!==u&&Yr(s,u,c,d,!0)}if("select"===(l=(o=r?xi(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=Jn;else if(Hn(o))if(Qn)g=sr;else{g=ir;var v=rr}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=ar);switch(g&&(g=g(e,r))?Vn(s,g,n,i):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=r?xi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(s,n,i);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":xr(s,n,i)}var b;if(Dn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Gn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(_n&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Gn&&(b=en()):(Zt="value"in(Qt=i)?Qt.value:Qt.textContent,Gn=!0)),0<(v=Kr(r,y)).length&&(y=new xn(y,e,null,n,i),s.push({event:y,listeners:v}),b?y.data=b:null!==(b=zn(n))&&(y.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Dn&&Un(e,t)?(e=en(),$t=Zt=Qt=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=b))}Fr(s,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Le(e,n))&&r.unshift(Vr(e,a,i)),null!=(a=Le(e,t))&&r.push(Vr(e,a,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var a=t._reactName,s=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===r)break;5===o.tag&&null!==c&&(o=c,i?null!=(l=Le(n,a))&&s.unshift(Vr(n,l,o)):i||null!=(l=Le(n,a))&&s.push(Vr(n,l,o))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Xr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Xr,"\n").replace(Jr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(a(425))}function $r(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,si="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(oi)}:ri;function oi(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Gt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Gt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
vendor: 82,893 bytes, line 2
2if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function di(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ui=Math.random().toString(36).slice(2),hi="__reactFiber$"+ui,pi="__reactProps$"+ui,mi="__reactContainer$"+ui,fi="__reactEvents$"+ui,gi="__reactListeners$"+ui,vi="__reactHandles$"+ui;function bi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=di(e);null!==e;){if(n=e[hi])return n;e=di(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[hi]||e[mi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Si(e){return e[pi]||null}var ki=[],wi=-1;function Ti(e){return{current:e}}function Ci(e){0>wi||(e.current=ki[wi],ki[wi]=null,wi--)}function Ei(e,t){wi++,ki[wi]=e.current,e.current=t}var ji={},Ai=Ti(ji),Ni=Ti(!1),Pi=ji;function Ri(e,t){var n=e.type.contextTypes;if(!n)return ji;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Li(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Ci(Ni),Ci(Ai)}function Di(e,t,n){if(Ai.current!==ji)throw Error(a(168));Ei(Ai,t),Ei(Ni,n)}function Oi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,W(e)||"Unknown",i));return _({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ji,Pi=Ai.current,Ei(Ai,e),Ei(Ni,Ni.current),!0}function _i(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Oi(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ni),Ci(Ai),Ei(Ai,e)):Ci(Ni),Ei(Ni,n)}var Fi=null,Bi=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function Gi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=yt;try{var n=Fi;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Bi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),qe($e,Gi),i}finally{yt=t,Ui=!1}}return null}var Wi=[],Hi=0,Vi=null,Ki=0,qi=[],Yi=0,Xi=null,Ji=1,Qi="";function Zi(e,t){Wi[Hi++]=Ki,Wi[Hi++]=Vi,Vi=e,Ki=t}function $i(e,t,n){qi[Yi++]=Ji,qi[Yi++]=Qi,qi[Yi++]=Xi,Xi=e;var r=Ji;e=Qi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var a=32-st(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ji=1<<32-st(t)+i|n<<i|r,Qi=a+e}else Ji=1<<a|n<<i|r,Qi=e}function ea(e){null!==e.return&&(Zi(e,1),$i(e,1,0))}function ta(e){for(;e===Vi;)Vi=Wi[--Hi],Wi[Hi]=null,Ki=Wi[--Hi],Wi[Hi]=null;for(;e===Xi;)Xi=qi[--Yi],qi[Yi]=null,Qi=qi[--Yi],qi[Yi]=null,Ji=qi[--Yi],qi[Yi]=null}var na=null,ra=null,ia=!1,aa=null;function sa(e,t){var n=Lc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xi?{id:Ji,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function la(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ia){var t=ra;if(t){var n=t;if(!oa(e,t)){if(la(e))throw Error(a(418));t=ci(n.nextSibling);var r=na;t&&oa(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function ua(e){if(e!==na)return!1;if(!ia)return da(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(la(e))throw ha(),Error(a(418));for(;t;)sa(e,t),t=ci(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ci(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ra;e;)e=ci(e.nextSibling)}function pa(){ra=na=null,ia=!1}function ma(e){null===aa?aa=[e]:aa.push(e)}var fa=x.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=_({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=Ti(null),ba=null,ya=null,xa=null;function Sa(){xa=ya=ba=null}function ka(e){var t=va.current;Ci(va),e._currentValue=t}function wa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){ba=e,xa=ya=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xo=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(xa!==e)if(e={context:e,memoizedValue:t,next:null},null===ya){if(null===ba)throw Error(a(308));ya=e,ba.dependencies={lanes:0,firstContext:e}}else ya=ya.next=e;return t}var Ea=null;function ja(e){null===Ea?Ea=[e]:Ea.push(e)}function Aa(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,Na(e,r)}function Na(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pa=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ia(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Nl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Na(e,n)}return null===(i=r.interleaved)?(t.next=t,ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,Na(e,n)}function Oa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ma(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _a(e,t,n,r){var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var d=e.alternate;null!==d&&((o=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===o?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=l))}if(null!==a){var u=i.baseState;for(s=0,d=c=l=null,o=a;;){var h=o.lane,p=o.eventTime;if((r&h)===h){null!==d&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,f=o;switch(h=t,p=n,f.tag){case 1:if("function"===typeof(m=f.payload)){u=m.call(p,u,h);break e}u=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=f.payload)?m.call(p,u,h):m)||void 0===h)break e;u=_({},u,h);break e;case 2:Pa=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[o]:h.push(o))}else p={eventTime:p,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(c=d=p,l=u):d=d.next=p,s|=h;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(h=o).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===d&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);_l|=s,e.lanes=s,e.memoizedState=u}}function Fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Ba=(new r.Component).refs;function Ua(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:_({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),a=Ia(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Da(e,a,i))&&(rc(t,e,i,r),Oa(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),a=Ia(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Da(e,a,i))&&(rc(t,e,i,r),Oa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Ia(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Da(e,i,r))&&(rc(t,e,r,n),Oa(t,e,r))}};function Ga(e,t,n,r,i,a,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function Wa(e,t,n){var r=!1,i=ji,a=t.contextType;return"object"===typeof a&&null!==a?a=Ca(a):(i=Li(t)?Pi:Ai.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ri(e,i):ji),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&za.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ba,Ra(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ca(a):(a=Li(t)?Pi:Ai.current,i.context=Ri(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&za.enqueueReplaceState(i,i.state,null),_a(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;t===Ba&&(t=i.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===w?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===L&&Ya(a)===t.type)?((r=i(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Oc(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case k:return(t=Bc(t,e.mode,n)).return=e,t;case L:return h(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Mc(t,e.mode,n,null)).return=e,t;qa(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?c(e,t,n,r):null;case k:return n.key===i?d(e,t,n,r):null;case L:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||O(n))return null!==i?null:u(e,t,n,r,null);qa(e,n)}return null}function m(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return d(t,e=e.get(null===r.key?n:r.key)||null,r,i);case L:return m(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||O(r))return u(t,e=e.get(n)||null,r,i,null);qa(t,r)}return null}function f(i,a,o,l){for(var c=null,d=null,u=a,f=a=0,g=null;null!==u&&f<o.length;f++){u.index>f?(g=u,u=null):g=u.sibling;var v=p(i,u,o[f],l);if(null===v){null===u&&(u=g);break}e&&u&&null===v.alternate&&t(i,u),a=s(v,a,f),null===d?c=v:d.sibling=v,d=v,u=g}if(f===o.length)return n(i,u),ia&&Zi(i,f),c;if(null===u){for(;f<o.length;f++)null!==(u=h(i,o[f],l))&&(a=s(u,a,f),null===d?c=u:d.sibling=u,d=u);return ia&&Zi(i,f),c}for(u=r(i,u);f<o.length;f++)null!==(g=m(u,i,f,o[f],l))&&(e&&null!==g.alternate&&u.delete(null===g.key?f:g.key),a=s(g,a,f),null===d?c=g:d.sibling=g,d=g);return e&&u.forEach((function(e){return t(i,e)})),ia&&Zi(i,f),c}function g(i,o,l,c){var d=O(l);if("function"!==typeof d)throw Error(a(150));if(null==(l=d.call(l)))throw Error(a(151));for(var u=d=null,f=o,g=o=0,v=null,b=l.next();null!==f&&!b.done;g++,b=l.next()){f.index>g?(v=f,f=null):v=f.sibling;var y=p(i,f,b.value,c);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=s(y,o,g),null===u?d=y:u.sibling=y,u=y,f=v}if(b.done)return n(i,f),ia&&Zi(i,g),d;if(null===f){for(;!b.done;g++,b=l.next())null!==(b=h(i,b.value,c))&&(o=s(b,o,g),null===u?d=b:u.sibling=b,u=b);return ia&&Zi(i,g),d}for(f=r(i,f);!b.done;g++,b=l.next())null!==(b=m(f,i,g,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?g:b.key),o=s(b,o,g),null===u?d=b:u.sibling=b,u=b);return e&&f.forEach((function(e){return t(i,e)})),ia&&Zi(i,g),d}return function e(r,a,s,l){if("object"===typeof s&&null!==s&&s.type===w&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case S:e:{for(var c=s.key,d=a;null!==d;){if(d.key===c){if((c=s.type)===w){if(7===d.tag){n(r,d.sibling),(a=i(d,s.props.children)).return=r,r=a;break e}}else if(d.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&Ya(c)===d.type){n(r,d.sibling),(a=i(d,s.props)).ref=Ka(r,d,s),a.return=r,r=a;break e}n(r,d);break}t(r,d),d=d.sibling}s.type===w?((a=Mc(s.props.children,r.mode,l,s.key)).return=r,r=a):((l=Oc(s.type,s.key,s.props,null,r.mode,l)).ref=Ka(r,a,s),l.return=r,r=l)}return o(r);case k:e:{for(d=s.key;null!==a;){if(a.key===d){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=i(a,s.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Bc(s,r.mode,l)).return=r,r=a}return o(r);case L:return e(r,a,(d=s._init)(s._payload),l)}if(te(s))return f(r,a,s,l);if(O(s))return g(r,a,s,l);qa(r,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,s)).return=r,r=a):(n(r,a),(a=Fc(s,r.mode,l)).return=r,r=a),o(r)):n(r,a)}}var Ja=Xa(!0),Qa=Xa(!1),Za={},$a=Ti(Za),es=Ti(Za),ts=Ti(Za);function ns(e){if(e===Za)throw Error(a(174));return e}function rs(e,t){switch(Ei(ts,t),Ei(es,e),Ei($a,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci($a),Ei($a,t)}function is(){Ci($a),Ci(es),Ci(ts)}function as(e){ns(ts.current);var t=ns($a.current),n=le(t,e.type);t!==n&&(Ei(es,e),Ei($a,n))}function ss(e){es.current===e&&(Ci($a),Ci(es))}var os=Ti(0);function ls(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ds(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var us=x.ReactCurrentDispatcher,hs=x.ReactCurrentBatchConfig,ps=0,ms=null,fs=null,gs=null,vs=!1,bs=!1,ys=0,xs=0;function Ss(){throw Error(a(321))}function ks(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function ws(e,t,n,r,i,s){if(ps=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,us.current=null===e||null===e.memoizedState?so:oo,e=n(r,i),bs){s=0;do{if(bs=!1,ys=0,25<=s)throw Error(a(301));s+=1,gs=fs=null,t.updateQueue=null,us.current=lo,e=n(r,i)}while(bs)}if(us.current=ao,t=null!==fs&&null!==fs.next,ps=0,gs=fs=ms=null,vs=!1,t)throw Error(a(300));return e}function Ts(){var e=0!==ys;return ys=0,e}function Cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gs?ms.memoizedState=gs=e:gs=gs.next=e,gs}function Es(){if(null===fs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=fs.next;var t=null===gs?ms.memoizedState:gs.next;if(null!==t)gs=t,fs=e;else{if(null===e)throw Error(a(310));e={memoizedState:(fs=e).memoizedState,baseState:fs.baseState,baseQueue:fs.baseQueue,queue:fs.queue,next:null},null===gs?ms.memoizedState=gs=e:gs=gs.next=e}return gs}function js(e,t){return"function"===typeof t?t(e):t}function As(e){var t=Es(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=fs,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=o=null,c=null,d=s;do{var u=d.lane;if((ps&u)===u)null!==c&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};null===c?(l=c=h,o=r):c=c.next=h,ms.lanes|=u,_l|=u}d=d.next}while(null!==d&&d!==s);null===c?o=r:c.next=l,or(r,t.memoizedState)||(xo=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,ms.lanes|=s,_l|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ns(e){var t=Es(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{s=e(s,o.action),o=o.next}while(o!==i);or(s,t.memoizedState)||(xo=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ps(){}function Rs(e,t){var n=ms,r=Es(),i=t(),s=!or(r.memoizedState,i);if(s&&(r.memoizedState=i,xo=!0),r=r.queue,Ws(Ds.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==gs&&1&gs.memoizedState.tag){if(n.flags|=2048,Fs(9,Is.bind(null,n,r,i,t),void 0,null),null===Pl)throw Error(a(349));0!==(30&ps)||Ls(n,t,i)}return i}function Ls(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Is(e,t,n,r){t.value=n,t.getSnapshot=r,Os(t)&&Ms(e)}function Ds(e,t,n){return n((function(){Os(t)&&Ms(e)}))}function Os(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(r){return!0}}function Ms(e){var t=Na(e,1);null!==t&&rc(t,e,1,-1)}function _s(e){var t=Cs();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:e},t.queue=e,e=e.dispatch=to.bind(null,ms,e),[t.memoizedState,e]}function Fs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Es().memoizedState}function Us(e,t,n,r){var i=Cs();ms.flags|=e,i.memoizedState=Fs(1|t,n,void 0,void 0===r?null:r)}function zs(e,t,n,r){var i=Es();r=void 0===r?null:r;var a=void 0;if(null!==fs){var s=fs.memoizedState;if(a=s.destroy,null!==r&&ks(r,s.deps))return void(i.memoizedState=Fs(t,n,a,r))}ms.flags|=e,i.memoizedState=Fs(1|t,n,a,r)}function Gs(e,t){return Us(8390656,8,e,t)}function Ws(e,t){return zs(2048,8,e,t)}function Hs(e,t){return zs(4,2,e,t)}function Vs(e,t){return zs(4,4,e,t)}function Ks(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qs(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zs(4,4,Ks.bind(null,t,e),n)}function Ys(){}function Xs(e,t){var n=Es();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=Es();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qs(e,t,n){return 0===(21&ps)?(e.baseState&&(e.baseState=!1,xo=!0),e.memoizedState=n):(or(n,t)||(n=ft(),ms.lanes|=n,_l|=n,e.baseState=!0),t)}function Zs(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{yt=n,hs.transition=r}}function $s(){return Es().memoizedState}function eo(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},no(e))ro(t,n);else if(null!==(n=Aa(e,t,n,r))){rc(n,e,r,tc()),io(n,t,r)}}function to(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(e))ro(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,or(o,s)){var l=t.interleaved;return null===l?(i.next=i,ja(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Aa(e,t,i,r))&&(rc(n,e,r,i=tc()),io(n,t,r))}}function no(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function ro(e,t){bs=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function io(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var ao={readContext:Ca,useCallback:Ss,useContext:Ss,useEffect:Ss,useImperativeHandle:Ss,useInsertionEffect:Ss,useLayoutEffect:Ss,useMemo:Ss,useReducer:Ss,useRef:Ss,useState:Ss,useDebugValue:Ss,useDeferredValue:Ss,useTransition:Ss,useMutableSource:Ss,useSyncExternalStore:Ss,useId:Ss,unstable_isNewReconciler:!1},so={readContext:Ca,useCallback:function(e,t){return Cs().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:Gs,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Us(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var n=Cs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=eo.bind(null,ms,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cs().memoizedState=e},useState:_s,useDebugValue:Ys,useDeferredValue:function(e){return Cs().memoizedState=e},useTransition:function(){var e=_s(!1),t=e[0];return e=Zs.bind(null,e[1]),Cs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ms,i=Cs();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Pl)throw Error(a(349));0!==(30&ps)||Ls(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Gs(Ds.bind(null,r,s,e),[e]),r.flags|=2048,Fs(9,Is.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Cs(),t=Pl.identifierPrefix;if(ia){var n=Qi;t=":"+t+"R"+(n=(Ji&~(1<<32-st(Ji)-1)).toString(32)+n),0<(n=ys++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oo={readContext:Ca,useCallback:Xs,useContext:Ca,useEffect:Ws,useImperativeHandle:qs,useInsertionEffect:Hs,useLayoutEffect:Vs,useMemo:Js,useReducer:As,useRef:Bs,useState:function(){return As(js)},useDebugValue:Ys,useDeferredValue:function(e){return Qs(Es(),fs.memoizedState,e)},useTransition:function(){return[As(js)[0],Es().memoizedState]},useMutableSource:Ps,useSyncExternalStore:Rs,useId:$s,unstable_isNewReconciler:!1},lo={readContext:Ca,useCallback:Xs,useContext:Ca,useEffect:Ws,useImperativeHandle:qs,useInsertionEffect:Hs,useLayoutEffect:Vs,useMemo:Js,useReducer:Ns,useRef:Bs,useState:function(){return Ns(js)},useDebugValue:Ys,useDeferredValue:function(e){var t=Es();return null===fs?t.memoizedState=e:Qs(t,fs.memoizedState,e)},useTransition:function(){return[Ns(js)[0],Es().memoizedState]},useMutableSource:Ps,useSyncExternalStore:Rs,useId:$s,unstable_isNewReconciler:!1};function co(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function uo(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ho(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var po="function"===typeof WeakMap?WeakMap:Map;function mo(e,t,n){(n=Ia(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Kl=r),ho(0,t)},n}function fo(e,t,n){(n=Ia(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ho(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ho(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function go(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new po;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function vo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bo(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ia(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var yo=x.ReactCurrentOwner,xo=!1;function So(e,t,n,r){t.child=null===e?Qa(t,null,n,r):Ja(t,e.child,n,r)}function ko(e,t,n,r,i){n=n.render;var a=t.ref;return Ta(t,i),r=ws(e,t,n,r,a,i),n=Ts(),null===e||xo?(ia&&n&&ea(t),t.flags|=1,So(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vo(e,t,i))}function wo(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Ic(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,To(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Vo(e,t,i)}return t.flags|=1,(e=Dc(a,r)).ref=t.ref,e.return=t,t.child=e}function To(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(xo=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Vo(e,t,i);0!==(131072&e.flags)&&(xo=!0)}}return jo(e,t,n,r,i)}function Co(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Dl,Il),Il|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Dl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ei(Dl,Il),Il|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ei(Dl,Il),Il|=r;return So(e,t,i,n),t.child}function Eo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jo(e,t,n,r,i){var a=Li(n)?Pi:Ai.current;return a=Ri(t,a),Ta(t,i),n=ws(e,t,n,r,a,i),r=Ts(),null===e||xo?(ia&&r&&ea(t),t.flags|=1,So(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vo(e,t,i))}function Ao(e,t,n,r,i){if(Li(n)){var a=!0;Mi(t)}else a=!1;if(Ta(t,i),null===t.stateNode)Ho(e,t),Wa(t,n,r),Va(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ca(c):c=Ri(t,c=Li(n)?Pi:Ai.current);var d=n.getDerivedStateFromProps,u="function"===typeof d||"function"===typeof s.getSnapshotBeforeUpdate;u||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o!==r||l!==c)&&Ha(t,s,r,c),Pa=!1;var h=t.memoizedState;s.state=h,_a(t,r,s,i),l=t.memoizedState,o!==r||h!==l||Ni.current||Pa?("function"===typeof d&&(Ua(t,n,d,r),l=t.memoizedState),(o=Pa||Ga(t,n,o,r,h,l,c))?(u||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,La(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:ga(t.type,o),s.props=c,u=t.pendingProps,h=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ca(l):l=Ri(t,l=Li(n)?Pi:Ai.current);var p=n.getDerivedStateFromProps;(d="function"===typeof p||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o!==u||h!==l)&&Ha(t,s,r,l),Pa=!1,h=t.memoizedState,s.state=h,_a(t,r,s,i);var m=t.memoizedState;o!==u||h!==m||Ni.current||Pa?("function"===typeof p&&(Ua(t,n,p,r),m=t.memoizedState),(c=Pa||Ga(t,n,c,r,h,m,l)||!1)?(d||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,m,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,m,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=c):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return No(e,t,n,r,a,i)}function No(e,t,n,r,i,a){Eo(e,t);var s=0!==(128&t.flags);if(!r&&!s)return i&&_i(t,n,!1),Vo(e,t,a);r=t.stateNode,yo.current=t;var o=s&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,o,a)):So(e,t,o,a),t.memoizedState=r.state,i&&_i(t,n,!0),t.child}function Po(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),rs(e,t.containerInfo)}function Ro(e,t,n,r,i){return pa(),ma(i),t.flags|=256,So(e,t,n,r),t.child}var Lo,Io,Do,Oo,Mo={dehydrated:null,treeContext:null,retryLane:0};function _o(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fo(e,t,n){var r,i=t.pendingProps,s=os.current,o=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&s)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Ei(os,1&s),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,o?(i=t.mode,o=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=_c(l,i,0,null),e=Mc(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_o(n),t.memoizedState=Mo,e):Bo(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,o){if(n)return 256&t.flags?(t.flags&=-257,Uo(e,t,o,r=uo(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=_c({mode:"visible",children:r.children},i,0,null),(s=Mc(s,i,o,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!==(1&t.mode)&&Ja(t,e.child,null,o),t.child.memoizedState=_o(o),t.memoizedState=Mo,s);if(0===(1&t.mode))return Uo(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Uo(e,t,o,r=uo(s=Error(a(419)),r,void 0))}if(l=0!==(o&e.childLanes),xo||l){if(null!==(r=Pl)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|o))?0:i)&&i!==s.retryLane&&(s.retryLane=i,Na(e,i),rc(r,e,i,-1))}return gc(),Uo(e,t,o,r=uo(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ra=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(qi[Yi++]=Ji,qi[Yi++]=Qi,qi[Yi++]=Xi,Ji=e.id,Qi=e.overflow,Xi=t),t=Bo(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,s,n);if(o){o=i.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==s?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Dc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?o=Dc(r,o):(o=Mc(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,l=null===(l=e.child.memoizedState)?_o(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Mo,i}return e=(o=e.child).sibling,i=Dc(o,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Bo(e,t){return(t=_c({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Uo(e,t,n,r){return null!==r&&ma(r),Ja(t,e.child,null,n),(e=Bo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wa(e.return,t,n)}function Go(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Wo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(So(e,t,r.children,n),0!==(2&(r=os.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zo(e,n,t);else if(19===e.tag)zo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(os,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ls(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ls(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,a);break;case"together":Go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ho(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_l|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ko(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yo(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qo(t),null;case 1:case 17:return Li(t.type)&&Ii(),qo(t),null;case 3:return r=t.stateNode,is(),Ci(Ni),Ci(Ai),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ua(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(oc(aa),aa=null))),Io(e,t),qo(t),null;case 5:ss(t);var i=ns(ts.current);if(n=t.type,null!==e&&null!=t.stateNode)Do(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return qo(t),null}if(e=ns($a.current),ua(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[hi]=t,r[pi]=s,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)Br(Or[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":J(r,s),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Br("invalid",r);break;case"textarea":ie(r,s),Br("invalid",r)}for(var l in be(n,s),i=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Zr(r.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":K(r),$(r,s,!0);break;case"textarea":K(r),se(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=$r)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[pi]=r,Lo(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Br(Or[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":J(e,r),i=X(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=_({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(s in be(n,i),c=i)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?ge(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ue(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&he(e,d):"number"===typeof d&&he(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Br("scroll",e):null!=d&&y(e,s,d,l))}switch(n){case"input":K(e),$(e,r,!1);break;case"textarea":K(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qo(t),null;case 6:if(e&&null!=t.stateNode)Oo(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=ns(ts.current),ns($a.current),ua(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(s=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return qo(t),null;case 13:if(Ci(os),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))ha(),pa(),t.flags|=98560,s=!1;else if(s=ua(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(a(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(a(317));s[hi]=t}else pa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qo(t),s=!1}else null!==aa&&(oc(aa),aa=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&os.current)?0===Ol&&(Ol=3):gc())),null!==t.updateQueue&&(t.flags|=4),qo(t),null);case 4:return is(),Io(e,t),null===e&&Gr(t.stateNode.containerInfo),qo(t),null;case 10:return ka(t.type._context),qo(t),null;case 19:if(Ci(os),null===(s=t.memoizedState))return qo(t),null;if(r=0!==(128&t.flags),null===(l=s.rendering))if(r)Ko(s,!1);else{if(0!==Ol||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ls(e))){for(t.flags|=128,Ko(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(os,1&os.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Wl&&(t.flags|=128,r=!0,Ko(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ls(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ko(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ia)return qo(t),null}else 2*Qe()-s.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Ko(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,n=os.current,Ei(os,r?1&n|2:1&n),t):(qo(t),null);case 22:case 23:return hc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Il)&&(qo(t),6&t.subtreeFlags&&(t.flags|=8192)):qo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xo(e,t){switch(ta(t),t.tag){case 1:return Li(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Ci(Ni),Ci(Ai),ds(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ss(t),null;case 13:if(Ci(os),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(os),null;case 4:return is(),null;case 10:return ka(t.type._context),null;case 22:case 23:return hc(),null;default:return null}}Lo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Io=function(){},Do=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ns($a.current);var a,s=null;switch(n){case"input":i=X(e,i),r=X(e,r),s=[];break;case"select":i=_({},i,{value:void 0}),r=_({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(d in be(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var l=i[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(o.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(l=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(null!=c||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(o.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Br("scroll",e),s||l===c||(s=[])):(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Oo=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jo=!1,Qo=!1,Zo="function"===typeof WeakSet?WeakSet:Set,$o=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&tl(t,n,a)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[fi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function dl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(dl(e,t,n),e=e.sibling;null!==e;)dl(e,t,n),e=e.sibling}var ul=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(o){}switch(n.tag){case 5:Qo||el(n,t);case 6:var r=ul,i=hl;ul=null,pl(e,t,n),hl=i,null!==(ul=r)&&(hl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(hl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Gt(e)):li(ul,n.stateNode));break;case 4:r=ul,i=hl,ul=n.stateNode.containerInfo,hl=!0,pl(e,t,n),ul=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Qo&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,void 0!==s&&(0!==(2&a)||0!==(4&a))&&tl(n,t,s),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Qo&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Cc(n,t,o)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Qo=(r=Qo)||null!==n.memoizedState,pl(e,t,n),Qo=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zo),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,hl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));ml(s,o,i),ul=null,hl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(d){Cc(i,t,d)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(g){Cc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Cc(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){Cc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,o=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&Q(i,s),ye(l,o);var d=ye(l,s);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];"style"===u?ge(i,h):"dangerouslySetInnerHTML"===u?ue(i,h):"children"===u?he(i,h):y(i,u,h,d)}switch(l){case"input":Z(i,s);break;case"textarea":ae(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;null!=m?ne(i,!!s.multiple,m,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[pi]=s}catch(g){Cc(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){Cc(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Gt(t.containerInfo)}catch(g){Cc(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Gl=Qe())),4&r&&fl(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Qo=(d=Qo)||u,gl(t,e),Qo=d):gl(t,e),bl(e),8192&r){if(d=null!==e.memoizedState,(e.stateNode.isHidden=d)&&!u&&0!==(1&e.mode))for($o=e,u=e.child;null!==u;){for(h=$o=u;null!==$o;){switch(m=(p=$o).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var f=p.stateNode;if("function"===typeof f.componentWillUnmount){r=p,n=p.return;try{t=r,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(g){Cc(r,n,g)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){kl(h);continue}}null!==m?(m.return=p,$o=m):kl(h)}u=u.sibling}e:for(u=null,h=e;;){if(5===h.tag){if(null===u){u=h;try{i=h.stateNode,d?"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,o=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=fe("display",o))}catch(g){Cc(e,e.return,g)}}}else if(6===h.tag){if(null===u)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(g){Cc(e,e.return,g)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),bl(e),4&r&&fl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),dl(e,ll(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;cl(e,ll(e),s);break;default:throw Error(a(161))}}catch(o){Cc(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){$o=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!==(1&e.mode);null!==$o;){var i=$o,a=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||Jo;if(!s){var o=i.alternate,l=null!==o&&null!==o.memoizedState||Qo;o=Jo;var c=Qo;if(Jo=s,(Qo=l)&&!c)for($o=i;null!==$o;)l=(s=$o).child,22===s.tag&&null!==s.memoizedState?wl(i):null!==l?(l.return=s,$o=l):wl(i);for(;null!==a;)$o=a,xl(a,t,n),a=a.sibling;$o=i,Jo=o,Qo=c}Sl(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,$o=a):Sl(e)}}function Sl(e){for(;null!==$o;){var t=$o;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qo||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qo)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Fa(t,s,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fa(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var d=t.alternate;if(null!==d){var u=d.memoizedState;if(null!==u){var h=u.dehydrated;null!==h&&Gt(h)}}}break;default:throw Error(a(163))}Qo||512&t.flags&&al(t)}catch(p){Cc(t,t.return,p)}}if(t===e){$o=null;break}if(null!==(n=t.sibling)){n.return=t.return,$o=n;break}$o=t.return}}function kl(e){for(;null!==$o;){var t=$o;if(t===e){$o=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$o=n;break}$o=t.return}}function wl(e){for(;null!==$o;){var t=$o;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Cc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Cc(t,i,l)}}var a=t.return;try{al(t)}catch(l){Cc(t,a,l)}break;case 5:var s=t.return;try{al(t)}catch(l){Cc(t,s,l)}}}catch(l){Cc(t,t.return,l)}if(t===e){$o=null;break}var o=t.sibling;if(null!==o){o.return=t.return,$o=o;break}$o=t.return}}var Tl,Cl=Math.ceil,El=x.ReactCurrentDispatcher,jl=x.ReactCurrentOwner,Al=x.ReactCurrentBatchConfig,Nl=0,Pl=null,Rl=null,Ll=0,Il=0,Dl=Ti(0),Ol=0,Ml=null,_l=0,Fl=0,Bl=0,Ul=null,zl=null,Gl=0,Wl=1/0,Hl=null,Vl=!1,Kl=null,ql=null,Yl=!1,Xl=null,Jl=0,Ql=0,Zl=null,$l=-1,ec=0;function tc(){return 0!==(6&Nl)?Qe():-1!==$l?$l:$l=Qe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Nl)&&0!==Ll?Ll&-Ll:null!==fa.transition?(0===ec&&(ec=ft()),ec):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function rc(e,t,n,r){if(50<Ql)throw Ql=0,Zl=null,Error(a(185));vt(e,n,r),0!==(2&Nl)&&e===Pl||(e===Pl&&(0===(2&Nl)&&(Fl|=n),4===Ol&&lc(e,Ll)),ic(e,r),1===n&&0===Nl&&0===(1&t.mode)&&(Wl=Qe()+500,Bi&&Gi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-st(a),o=1<<s,l=i[s];-1===l?0!==(o&n)&&0===(o&r)||(i[s]=pt(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}(e,t);var r=ht(e,e===Pl?Ll:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Bi=!0,zi(e)}(cc.bind(null,e)):zi(cc.bind(null,e)),si((function(){0===(6&Nl)&&Gi()})),n=null;else{switch(xt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if($l=-1,ec=0,0!==(6&Nl))throw Error(a(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=ht(e,e===Pl?Ll:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var i=Nl;Nl|=2;var s=fc();for(Pl===e&&Ll===t||(Hl=null,Wl=Qe()+500,pc(e,t));;)try{yc();break}catch(l){mc(e,l)}Sa(),El.current=s,Nl=i,null!==Rl?t=0:(Pl=null,Ll=0,t=Ol)}if(0!==t){if(2===t&&(0!==(i=mt(e))&&(r=i,t=sc(e,i))),1===t)throw n=Ml,pc(e,0),lc(e,r),ic(e,Qe()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!or(a(),i))return!1}catch(o){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vc(e,r))&&(0!==(s=mt(e))&&(r=s,t=sc(e,s))),1===t))throw n=Ml,pc(e,0),lc(e,r),ic(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:kc(e,zl,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Gl+500-Qe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kc.bind(null,e,zl,Hl),t);break}kc(e,zl,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-st(r);s=1<<o,(o=t[o])>i&&(i=o),r&=~s}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(kc.bind(null,e,zl,Hl),r);break}kc(e,zl,Hl);break;default:throw Error(a(329))}}}return ic(e,Qe()),e.callbackNode===n?ac.bind(null,e):null}function sc(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=zl,zl=n,null!==t&&oc(t)),e}function oc(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~Bl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Nl))throw Error(a(327));wc();var t=ht(e,0);if(0===(1&t))return ic(e,Qe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Ml,pc(e,0),lc(e,t),ic(e,Qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,zl,Hl),ic(e,Qe()),null}function dc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(Wl=Qe()+500,Bi&&Gi())}}function uc(e){null!==Xl&&0===Xl.tag&&0===(6&Nl)&&wc();var t=Nl;Nl|=1;var n=Al.transition,r=yt;try{if(Al.transition=null,yt=1,e)return e()}finally{yt=r,Al.transition=n,0===(6&(Nl=t))&&Gi()}}function hc(){Il=Dl.current,Ci(Dl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:is(),Ci(Ni),Ci(Ai),ds();break;case 5:ss(r);break;case 4:is();break;case 13:case 19:Ci(os);break;case 10:ka(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Pl=e,Rl=e=Dc(e.current,null),Ll=Il=t,Ol=0,Ml=null,Bl=Fl=_l=0,zl=Ul=null,null!==Ea){for(t=0;t<Ea.length;t++)if(null!==(r=(n=Ea[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var s=a.next;a.next=i,r.next=s}n.pending=r}Ea=null}return e}function mc(e,t){for(;;){var n=Rl;try{if(Sa(),us.current=ao,vs){for(var r=ms.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}vs=!1}if(ps=0,gs=fs=ms=null,bs=!1,ys=0,jl.current=null,null===n||null===n.return){Ol=1,Ml=t,Rl=null;break}e:{var s=e,o=n.return,l=n,c=t;if(t=Ll,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var d=c,u=l,h=u.tag;if(0===(1&u.mode)&&(0===h||11===h||15===h)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=vo(o);if(null!==m){m.flags&=-257,bo(m,o,l,0,t),1&m.mode&&go(s,d,t),c=d;var f=(t=m).updateQueue;if(null===f){var g=new Set;g.add(c),t.updateQueue=g}else f.add(c);break e}if(0===(1&t)){go(s,d,t),gc();break e}c=Error(a(426))}else if(ia&&1&l.mode){var v=vo(o);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),bo(v,o,l,0,t),ma(co(c,l));break e}}s=c=co(c,l),4!==Ol&&(Ol=2),null===Ul?Ul=[s]:Ul.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Ma(s,mo(0,c,t));break e;case 1:l=c;var b=s.type,y=s.stateNode;if(0===(128&s.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===ql||!ql.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t,Ma(s,fo(s,l,t));break e}}s=s.return}while(null!==s)}Sc(n)}catch(x){t=x,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function fc(){var e=El.current;return El.current=ao,null===e?ao:e}function gc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Pl||0===(268435455&_l)&&0===(268435455&Fl)||lc(Pl,Ll)}function vc(e,t){var n=Nl;Nl|=2;var r=fc();for(Pl===e&&Ll===t||(Hl=null,pc(e,t));;)try{bc();break}catch(i){mc(e,i)}if(Sa(),Nl=n,El.current=r,null!==Rl)throw Error(a(261));return Pl=null,Ll=0,Ol}function bc(){for(;null!==Rl;)xc(Rl)}function yc(){for(;null!==Rl&&!Xe();)xc(Rl)}function xc(e){var t=Tl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?Sc(e):Rl=t,jl.current=null}function Sc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Yo(n,t,Il)))return void(Rl=n)}else{if(null!==(n=Xo(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Ol=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Ol&&(Ol=5)}function kc(e,t,n){var r=yt,i=Al.transition;try{Al.transition=null,yt=1,function(e,t,n,r){do{wc()}while(null!==Xl);if(0!==(6&Nl))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,s),e===Pl&&(Rl=Pl=null,Ll=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Pc(tt,(function(){return wc(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Al.transition,Al.transition=null;var o=yt;yt=1;var l=Nl;Nl|=4,jl.current=null,function(e,t){if(ei=Ht,pr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(S){n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,p=null;t:for(;;){for(var m;h!==n||0!==i&&3!==h.nodeType||(l=o+i),h!==s||0!==r&&3!==h.nodeType||(c=o+r),3===h.nodeType&&(o+=h.nodeValue.length),null!==(m=h.firstChild);)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++d===i&&(l=o),p===s&&++u===r&&(c=o),null!==(m=h.nextSibling))break;p=(h=p).parentNode}h=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,$o=t;null!==$o;)if(e=(t=$o).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$o=e;else for(;null!==$o;){t=$o;try{var f=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var g=f.memoizedProps,v=f.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ga(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(S){Cc(t,t.return,S)}if(null!==(e=t.sibling)){e.return=t.return,$o=e;break}$o=t.return}f=nl,nl=!1}(e,n),vl(n,e),mr(ti),Ht=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Je(),Nl=l,yt=o,Al.transition=s}else e.current=n;if(Yl&&(Yl=!1,Xl=e,Jl=i),s=e.pendingLanes,0===s&&(ql=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Kl,Kl=null,e;0!==(1&Jl)&&0!==e.tag&&wc(),s=e.pendingLanes,0!==(1&s)?e===Zl?Ql++:(Ql=0,Zl=e):Ql=0,Gi()}(e,t,n,r)}finally{Al.transition=i,yt=r}return null}function wc(){if(null!==Xl){var e=xt(Jl),t=Al.transition,n=yt;try{if(Al.transition=null,yt=16>e?16:e,null===Xl)var r=!1;else{if(e=Xl,Xl=null,Jl=0,0!==(6&Nl))throw Error(a(331));var i=Nl;for(Nl|=4,$o=e.current;null!==$o;){var s=$o,o=s.child;if(0!==(16&$o.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var d=l[c];for($o=d;null!==$o;){var u=$o;switch(u.tag){case 0:case 11:case 15:rl(8,u,s)}var h=u.child;if(null!==h)h.return=u,$o=h;else for(;null!==$o;){var p=(u=$o).sibling,m=u.return;if(sl(u),u===d){$o=null;break}if(null!==p){p.return=m,$o=p;break}$o=m}}}var f=s.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}$o=s}}if(0!==(2064&s.subtreeFlags)&&null!==o)o.return=s,$o=o;else e:for(;null!==$o;){if(0!==(2048&(s=$o).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var b=s.sibling;if(null!==b){b.return=s.return,$o=b;break e}$o=s.return}}var y=e.current;for($o=y;null!==$o;){var x=(o=$o).child;if(0!==(2064&o.subtreeFlags)&&null!==x)x.return=o,$o=x;else e:for(o=y;null!==$o;){if(0!==(2048&(l=$o).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(k){Cc(l,l.return,k)}if(l===o){$o=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,$o=S;break e}$o=l.return}}if(Nl=i,Gi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(k){}r=!0}return r}finally{yt=n,Al.transition=t}}return!1}function Tc(e,t,n){e=Da(e,t=mo(0,t=co(n,t),1),1),t=tc(),null!==e&&(vt(e,1,t),ic(e,t))}function Cc(e,t,n){if(3===e.tag)Tc(e,e,n);else for(;null!==t;){if(3===t.tag){Tc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Da(t,e=fo(t,e=co(n,e),1),1),e=tc(),null!==t&&(vt(t,1,e),ic(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ll&n)===n&&(4===Ol||3===Ol&&(130023424&Ll)===Ll&&500>Qe()-Gl?pc(e,0):Bl|=n),ic(e,t)}function jc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=dt,0===(130023424&(dt<<=1))&&(dt=4194304)));var n=tc();null!==(e=Na(e,t))&&(vt(e,t,n),ic(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),jc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),jc(e,n)}function Pc(e,t){return qe(e,t)}function Rc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lc(e,t,n,r){return new Rc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Lc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,r,i,s){var o=2;if(r=e,"function"===typeof e)Ic(e)&&(o=1);else if("string"===typeof e)o=5;else e:switch(e){case w:return Mc(n.children,i,s,t);case T:o=8,i|=8;break;case C:return(e=Lc(12,n,t,2|i)).elementType=C,e.lanes=s,e;case N:return(e=Lc(13,n,t,i)).elementType=N,e.lanes=s,e;case P:return(e=Lc(19,n,t,i)).elementType=P,e.lanes=s,e;case I:return _c(n,i,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:o=10;break e;case j:o=9;break e;case A:o=11;break e;case R:o=14;break e;case L:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Lc(o,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Mc(e,t,n,r){return(e=Lc(7,e,r,t)).lanes=n,e}function _c(e,t,n,r){return(e=Lc(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Lc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Lc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,a,s,o,l){return e=new Uc(e,t,n,o,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Lc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Gc(e){if(!e)return ji;e:{if(Ge(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Li(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Li(n))return Oi(e,n,t)}return t}function Wc(e,t,n,r,i,a,s,o,l){return(e=zc(n,r,!0,e,0,a,0,o,l)).context=Gc(null),n=e.current,(a=Ia(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Da(n,a,i),e.current.lanes=i,vt(e,i,r),ic(e,r),e}function Hc(e,t,n,r){var i=t.current,a=tc(),s=nc(i);return n=Gc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ia(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(i,t,s))&&(rc(e,i,s,a),Oa(e,i,s)),s}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Kc(e,t),(e=e.alternate)&&Kc(e,t)}Tl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ni.current)xo=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xo=!1,function(e,t,n){switch(t.tag){case 3:Po(t),pa();break;case 5:as(t);break;case 1:Li(t.type)&&Mi(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(va,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(os,1&os.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fo(e,t,n):(Ei(os,1&os.current),null!==(e=Vo(e,t,n))?e.sibling:null);Ei(os,1&os.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Wo(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(os,os.current),r)break;return null;case 22:case 23:return t.lanes=0,Co(e,t,n)}return Vo(e,t,n)}(e,t,n);xo=0!==(131072&e.flags)}else xo=!1,ia&&0!==(1048576&t.flags)&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ho(e,t),e=t.pendingProps;var i=Ri(t,Ai.current);Ta(t,n),i=ws(null,t,r,e,i,n);var s=Ts();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Li(r)?(s=!0,Mi(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ra(t),i.updater=za,t.stateNode=i,i._reactInternals=t,Va(t,r,e,n),t=No(null,t,r,!0,s,n)):(t.tag=0,ia&&s&&ea(t),So(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ho(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===R)return 14}return 2}(r),e=ga(r,e),i){case 0:t=jo(null,t,r,e,n);break e;case 1:t=Ao(null,t,r,e,n);break e;case 11:t=ko(null,t,r,e,n);break e;case 14:t=wo(null,t,r,ga(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:ga(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:ga(r,i),n);case 3:e:{if(Po(t),null===e)throw Error(a(387));r=t.pendingProps,i=(s=t.memoizedState).element,La(e,t),_a(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ro(e,t,r,n,i=co(Error(a(423)),t));break e}if(r!==i){t=Ro(e,t,r,n,i=co(Error(a(424)),t));break e}for(ra=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=Qa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===i){t=Vo(e,t,n);break e}So(e,t,r,n)}t=t.child}return t;case 5:return as(t),null===e&&ca(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,o=i.children,ni(r,i)?o=null:null!==s&&ni(r,s)&&(t.flags|=32),Eo(e,t),So(e,t,o,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Fo(e,t,n);case 4:return rs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ja(t,null,r,n):So(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ko(e,t,r,i=t.elementType===r?i:ga(r,i),n);case 7:return So(e,t,t.pendingProps,n),t.child;case 8:case 12:return So(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Ei(va,r._currentValue),r._currentValue=o,null!==s)if(or(s.value,o)){if(s.children===i.children&&!Ni.current){t=Vo(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){o=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Ia(-1,n&-n)).tag=2;var d=s.updateQueue;if(null!==d){var u=(d=d.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),wa(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)o=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(o=s.return))throw Error(a(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),wa(o,n,t),o=s.sibling}else o=s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}So(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ta(t,n),r=r(i=Ca(i)),t.flags|=1,So(e,t,r,n),t.child;case 14:return i=ga(r=t.type,t.pendingProps),wo(e,t,r,i=ga(r.type,i),n);case 15:return To(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ga(r,i),Ho(e,t),t.tag=1,Li(r)?(e=!0,Mi(t)):e=!1,Ta(t,n),Wa(t,r,i),Va(t,r,i,n),No(null,t,r,!0,e,n);case 19:return Wo(e,t,n);case 22:return Co(e,t,n)}throw Error(a(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $c(){}function ed(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if("function"===typeof i){var o=i;i=function(){var e=Vc(s);o.call(e)}}Hc(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Vc(s);a.call(e)}}var s=Wc(t,r,e,0,null,!1,0,"",$c);return e._reactRootContainer=s,e[mi]=s.current,Gr(8===e.nodeType?e.parentNode:e),uc(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var o=r;r=function(){var e=Vc(l);o.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",$c);return e._reactRootContainer=l,e[mi]=l.current,Gr(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,n,r)})),l}(n,t,e,i,r);return Vc(s)}Jc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Jc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[mi]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&_t(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(bt(t,1|n),ic(t,Qe()),0===(6&Nl)&&(Wl=Qe()+500,Gi()))}break;case 13:uc((function(){var t=Na(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},kt=function(e){if(13===e.tag){var t=Na(e,134217728);if(null!==t)rc(t,e,134217728,tc());qc(e,134217728)}},wt=function(e){if(13===e.tag){var t=nc(e),n=Na(e,t);if(null!==n)rc(n,e,t,tc());qc(e,t)}},Tt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Si(r);if(!i)throw Error(a(90));q(r),Z(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=dc,Ne=uc;var td={usingClientEntryPoint:!1,Events:[yi,xi,Si,Ee,je,dc]},nd={findFiberByHostInstance:bi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rd={bundleType:nd.bundleType,version:nd.version,rendererPackageName:nd.rendererPackageName,rendererConfig:nd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var id=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!id.isDisabled&&id.supportsFiber)try{it=id.inject(rd),at=id}catch(de){}}
vendor: 6,766 bytes, line 2
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=td,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(a(299));var n=!1,r="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,i),e[mi]=t.current,Gr(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(a(200));return ed(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",o=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,s,o),e[mi]=t.current,Gr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Jc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(a(200));return ed(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){ed(null,null,e,!1,(function(){e._reactRootContainer=null,e[mi]=null}))})),!0)},t.unstable_batchedUpdates=dc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ed(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},2740:e=>{"use strict";e.exports=function(e,t,n,r,i,a,s,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,o],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2777:(e,t,n)=>{var r=n(5193),i=n(2761),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},2830:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r={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,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},i=n(918),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,i.A)((function(e){return o(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||o(e)||"number"!==typeof t||0===t?t:t+"px"};function u(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=u(e,t,n[i])+";";else for(var a in n){var s=n[a];if("object"!==typeof s)null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":l(s)&&(r+=c(a)+":"+d(a,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var o=u(e,t,s);switch(a){case"animation":case"animationName":r+=c(a)+":"+o+";";break;default:r+=a+"{"+o+"}"}}else for(var h=0;h<s.length;h++)l(s[h])&&(r+=c(a)+":"+d(a,s[h])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=h,a=n(e);return h=i,u(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";h=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=u(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=u(n,t,e[s]),r&&(i+=a[s]);p.lastIndex=0;for(var o,l="";null!==(o=p.exec(i));)l+="-"+o[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:h}}},2866:(e,t,n)=>{var r=n(2969);e.exports=function(e){return function(t){return r(t,e)}}},2876:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(2919),i=n(5170),a=n(3375);function s(e){let{props:t,name:n}=e;return(0,r.A)({props:t,name:n,defaultTheme:i.A,themeId:a.A})}},2919:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9549);var i=n(8653);function a(e){let{props:t,name:n,defaultTheme:a,themeId:s}=e,o=(0,i.A)(a);s&&(o=o[s]||o);const l=function(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}({theme:o,name:n,props:t});return l}},2926:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(5043);let i,a=!0,s=!1;const o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function c(){a=!1}
2function d(){"hidden"===this.visibilityState&&s&&(a=!0)}function u(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return a||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!o[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!u(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,window.clearTimeout(i),i=window.setTimeout((()=>{s=!1}),100),t.current=!1,!0)},ref:e}}},2929:(e,t,n)=>{var r=n(6552).Uint8Array;e.exports=r},2969:(e,t,n)=>{var r=n(5324),i=n(914);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},3028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},3097:(e,t,n)=>{var r=n(2969);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3204:(e,t,n)=>{var r=n(3343),i=n(2777),a=n(4052),s=n(4543),o=n(9194),l=n(1268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&i(e),u=!n&&!d&&s(e),h=!n&&!d&&!u&&l(e),p=n||d||u||h,m=p?r(e.length,String):[],f=m.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||u&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,f))||m.push(g);return m}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3279:e=>{e.exports=function(e){return e}},3319:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1782).A},3343:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},3366:(e,t,n)=>{var r=n(7894),i=n(9057);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3375:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},3411:(e,t,n)=>{var r=n(149),i=n(9096),a=n(8883),s=n(4052);e.exports=function(e,t){return(s(e)?r:a)(e,i(t,3))}},3440:(e,t,n)=>{var r=n(6552)["__core-js_shared__"];e.exports=r},3462:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5043),i=n(2614);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.A)(t,e)}))}),t)}},3468:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:()=>r})},3516:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},3650:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,n&&n.set(e,r)}(n(5043));var i=r(n(39)),a=n(579);function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var o=(0,i.default)((0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"Twitter");t.A=o},3668:(e,t,n)=>{var r=n(8902),i=n(2587),a=n(8114);e.exports=function(e,t,n,s,o,l){var c=1&n,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var m=-1,f=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++m<d;){var v=e[m],b=t[m];if(s)var y=c?s(b,v,m,t,e,l):s(v,b,m,e,t,l);if(void 0!==y){if(y)continue;f=!1;break}if(g){if(!i(t,(function(e,t){if(!a(g,t)&&(v===e||o(v,e,n,s,l)))return g.push(t)}))){f=!1;break}}else if(v!==b&&!o(v,b,n,s,l)){f=!1;break}}return l.delete(e),l.delete(t),f}},3713:(e,t,n)=>{var r=n(6140),i=n(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},3781:(e,t,n)=>{var r=n(9417),i=n(8673);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],s=e[a];t[n]=[a,s,r(s)]}return t}},3815:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5713);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},3932:(e,t,n)=>{var r=n(396),i=n(2866),a=n(2597),s=n(914);e.exports=function(e){return a(e)?r(s(e)):i(e)}},3940:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1668);function i(e){return(0,r.A)(e).defaultView||window}},4052:e=>{var t=Array.isArray;e.exports=t},4079:(e,t,n)=>{var r=n(8259),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=s},4157:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(5043),s=(r=a)&&r.__esModule?r:{default:r};function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return a=l=o(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return s.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},s.default.createElement(e,i({},l.props,l.state)))},o(l,a)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(s.default.Component)};t.default=l},4160:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4190:(e,t,n)=>{var r=n(1340);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,f(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray,k=Object.prototype.hasOwnProperty,w={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},s=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,i)&&!T.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];a.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:o,props:a,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,i,a,s){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===a?"."+A(l,0):a,S(s)?(i="",null!=e&&(i=e.replace(j,"$&/")+"/"),N(s,t,i,"",(function(e){return e}))):null!=s&&(E(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(j,"$&/")+"/")+e)),t.push(s)),1;if(l=0,a=""===a?".":a+":",S(e))for(var c=0;c<e.length;c++){var d=a+A(o=e[c],c);l+=N(o,t,i,d,s)}else if(d=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof d)for(e=d.call(e),c=0;!(o=e.next()).done;)l+=N(o=o.value,t,i,d=a+A(o,c++),s);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return N(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},I={transition:null},D={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:I,ReactCurrentOwner:w};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=s,t.PureComponent=y,t.StrictMode=a,t.Suspense=
2d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=f({},e.props),a=e.key,s=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,o=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!T.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},4258:(e,t,n)=>{var r=n(5906)();e.exports=r},4262:(e,t,n)=>{var r=n(8895),i=n(4052);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},4353:(e,t,n)=>{e=n.nmd(e);var r=n(6552),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}},4371:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(5043),s=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,o=e.height,l=void 0===o?24:o,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return s.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},d)},u),s.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},4440:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5043);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},4535:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,_n:()=>o,ep:()=>s});var r=n(5979),i=n(5170),a=n(3375);const s=e=>(0,r.MC)(e)&&"classes"!==e,o=r.MC,l=(0,r.Ay)({themeId:a.A,defaultTheme:i.A,rootShouldForwardProp:s})},4543:(e,t,n)=>{e=n.nmd(e);var r=n(6552),i=n(14),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||i;e.exports=l},4545:(e,t,n)=>{var r=n(7160);e.exports=function(){this.__data__=new r,this.size=0}}
2,4552:(e,t,n)=>{var r=n(9812),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(l){}var i=s.call(e);return r&&(t?e[o]=n:delete e[o]),i}},4600:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4664:(e,t,n)=>{var r=n(4258),i=n(8673);e.exports=function(e,t){return e&&r(e,t,i)}},4816:(e,t,n)=>{var r=n(7251),i=n(7159),a=n(438),s=n(9394),o=n(6874);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},4973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(5043),s=(r=a)&&r.__esModule?r:{default:r};function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,d=Array(c),u=0;u<c;u++)d[u]=arguments[u];return a=l=o(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(d))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return s.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},s.default.createElement(e,i({},l.props,l.state)))},o(l,a)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(s.default.Component)};t.default=l},4983:(e,t)=>
2{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case u:case a:case o:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case f:case l:return e;default:return t}}case i:return t}}}function k(e){return S(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||S(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===o},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===u||e===o||e===s||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=S},4984:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>b,q_:()=>y});var r=n(8168),i=n(5043),a=n(918),s=/^((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|download|draggable|encType|enterKeyHint|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|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|enableBackgroun
2d|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)-.*))$/,o=(0,a.A)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(5025),c=n(1722),d=n(2830),u=n(9436),h=o,p=function(e){return"theme"!==e},m=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?h:p},f=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,u.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var a,s,o=t.__emotion_real===t,u=o&&t.__emotion_base||t;void 0!==n&&(a=n.label,s=n.target);var h=f(t,n,o),p=h||m(u),v=!p("as");return function(){var b=arguments,y=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&y.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var x=b.length,S=1;S<x;S++)y.push(b[S],b[0][S])}var k=(0,l.w)((function(e,t,n){var r=v&&e.as||u,a="",o=[],f=e;if(null==e.theme){for(var b in f={},e)f[b]=e[b];f.theme=i.useContext(l.T)}"string"===typeof e.className?a=(0,c.Rk)(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var x=(0,d.J)(y.concat(o),t.registered,f);a+=t.key+"-"+x.name,void 0!==s&&(a+=" "+s);var S=v&&void 0===h?m(r):p,k={};for(var w in e)v&&"as"===w||S(w)&&(k[w]=e[w]);return k.className=a,k.ref=n,i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:x,isStringTag:"string"===typeof r}),i.createElement(r,k))}));return k.displayName=void 0!==a?a:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=u,k.__emotion_styles=y,k.__emotion_forwardProp=h,Object.defineProperty(k,"toString",{value:function(){return"."+s}}),k.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:f(k,i,!0)})).apply(void 0,y)},k}}.bind();function b(e,t){return v(e,t)}["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"].forEach((function(e){v[e]=v(e)}));const y=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},4994:e=>
2{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5013:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(4440).A},5025:(e,t,n)=>{"use strict";n.d(t,{T:()=>l,i:()=>a,w:()=>o});var r=n(5043),i=n(5513),a=(n(2830),n(9436),!0),s=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null);s.Provider;var o=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(s);return e(t,i,n)}))};a||(o=function(e){return function(t){var n=(0,r.useContext)(s);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(s.Provider,{value:n},e(t,n))):e(t,n)}});var l=r.createContext({})},5029:(e,t,n)=>{var r=n(6989),i=n(3097),a=n(3366),s=n(2597),o=n(9417),l=n(1310),c=n(914);e.exports=function(e,t){return s(e)&&o(t)?l(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?a(n,e):r(t,s,3)}}},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},5082:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,a=60108,s=60114,o=60109,l=60110,c=60112,d=60113,u=60120,h=60115,p=60116,m=60121,f=60122,g=60117,v=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),i=y("react.fragment"),a=y("react.strict_mode"),s=y("react.profiler"),o=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),d=y("react.suspense"),u=y("react.suspense_list"),h=y("react.memo"),p=y("react.lazy"),m=y("react.block"),f=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case a:case d:case u:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case o:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return x(e)===l}},5111:(e,t,n)=>{var r=n(3279);e.exports=function(e){return"function"==typeof e?e:r}},5119:(e,t,n)=>{var r=n(6614),i=n(474);e.exports=function(e,t){return e&&r(t,i(t),e)}},5170:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(8279).A)()},5173:(e,t,n)=>{e.exports=n(1497)()},5193:(e,t,n)=>{var r=n(6913),i=n(2761);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},5204:(e,t,n)=>{var r=n(7937)(n(6552),"Map");e.exports=r},5324:(e,t,n)=>{var r=n(4052),i=n(2597),a=n(4079),s=n(1069);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(s(e))}},5387:(e,t,n)=>{var r=n(7937)(n(6552),"Promise");e.exports=r},5420:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5043);const i=function(e){let{controlled:t,default:n,name:i,state:a="value"}=e;const{current:s}=r.useRef(void 0!==t),[o,l]=r.useState(n);return[s?t:o,r.useCallback((e=>{s||l(e)}),[])]}}
vendor: 1,895 bytes, line 2
2,5428:(e,t,n)=>{var r=n(6913),i=n(6173),a=n(2761),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!s[r(e)]}},5513:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,072 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,a=String.fromCharCode,s=Object.assign;function o(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function h(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}var f=1,g=1,v=0,b=0,y=0,x="";function S(e,t,n,r,i,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:f,column:g,length:s,return:""}}function k(e,t){return s(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return y=b>0?d(x,--b):0,g--,10===y&&(g=1,f--),y}function T(){return y=b<v?d(x,b++):0,g++,10===y&&(g=1,f++),y}function C(){return d(x,b)}function E(){return b}function j(e,t){return u(x,e,t)}function A(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 N(e){return f=g=1,v=h(x=e),b=0,[]}function P(e){return x="",e}function R(e){return o(j(b-1,D(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(y=C())&&y<33;)T();return A(e)>2||A(y)>3?"":" "}function I(e,t){for(;--t&&T()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return j(e,E()+(t<6&&32==C()&&32==T()))}function D(e){for(;T();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&D(y);break;case 40:41===e&&D(e);break;case 92:T()}return b}function O(e,t){for(;T()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+j(t,b-1)+"*"+a(47===e?e:T())}function M(e){for(;!A(C());)T();return j(e,b)}var _="-ms-",F="-moz-",B="-webkit-",U="comm",z="rule",G="decl",W="@keyframes";function H(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case G:return e.return=e.return||e.value;case U:return"";case W:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return h(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return P(q("",null,null,null,[""],e=N(e),0,[0],e))}function q(e,t,n,r,i,s,o,u,p){for(var f=0,g=0,v=o,b=0,y=0,x=0,S=1,k=1,j=1,A=0,N="",P=i,D=s,_=r,F=N;k;)switch(x=A,A=T()){case 40:if(108!=x&&58==d(F,v-1)){-1!=c(F+=l(R(A),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:F+=R(A);break;case 9:case 10:case 13:case 32:F+=L(x);break;case 92:F+=I(E()-1,7);continue;case 47:switch(C()){case 42:case 47:m(X(O(T(),E()),t,n),p);break;default:F+="/"}break;case 123*S:u[f++]=h(F)*j;case 125*S:case 59:case 0:switch(A){case 0:case 125:k=0;case 59+g:-1==j&&(F=l(F,/\f/g,"")),y>0&&h(F)-v&&m(y>32?J(F+";",r,n,v-1):J(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(m(_=Y(F,t,n,f,g,i,u,N,P=[],D=[],v),s),123===A)if(0===g)q(F,t,_,_,P,s,v,u,D);else switch(99===b&&110===d(F,3)?100:b){case 100:case 108:case 109:case 115:q(e,_,_,r&&m(Y(e,_,_,0,0,i,u,N,i,P=[],v),D),i,D,v,u,r?P:D);break;default:q(F,_,_,_,[""],D,0,u,D)}}f=g=y=0,S=j=1,N=F="",v=o;break;case 58:v=1+h(F),y=x;default:if(S<1)if(123==A)--S;else if(125==A&&0==S++&&125==w())continue;switch(F+=a(A),A*S){case 38:j=g>0?1:(F+="\f",-1);break;case 44:u[f++]=(h(F)-1)*j,j=1;break;case 64:45===C()&&(F+=R(T())),b=C(),g=v=h(N=F+=M(E())),A++;break;case 45:45===x&&2==h(F)&&(S=0)}}return s}function Y(e,t,n,r,a,s,c,d,h,m,f){for(var g=a-1,v=0===a?s:[""],b=p(v),y=0,x=0,k=0;y<r;++y)for(var w=0,T=u(e,g+1,g=i(x=c[y])),C=e;w<b;++w)(C=o(x>0?v[w]+" "+T:l(T,/&\f/g,v[w])))&&(h[k++]=C);return S(e,t,n,0===a?z:d,h,m,f)}function X(e,t,n){return S(e,t,n,U,a(y),u(e,2,-2),0)}function J(e,t,n,r){return S(e,t,n,G,u(e,0,r),u(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=C(),38===r&&12===i&&(t[n]=1),!A(i);)T();return j(e,b)},Z=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=Q(b-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=T());return e}(N(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var i=[],a=Z(t,i),s=n.props,o=0,l=0;o<a.length;o++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[o]?a[o].replace(/&\f/g,s[c]):s[c]+" "+a[o]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return B+"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 B+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+_+e+e;case 6828:case 4268:return B+e+_+e+e;case 6165:return B+e+_+"flex-"+e+e;case 5187:return B+e+l(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+_+"flex-$1$2")+e;case 5443:return B+e+_+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return B+e+_+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+_+l(e,"shrink","negative")+e;case 5292:return B+e+_+l(e,"basis","preferred-size")+e;case 6060:return B+"box-"+l(e,"-grow","")+B+e+_+l(e,"grow","positive")+e;case 4554:return B+l(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,B+"$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(h(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===d(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+_+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return B+e+_+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+_+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+_+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+_+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case G:e.return=ne(e.value,e.length);break;case W:return H([k(e,{value:l(e.value,"@","@"+B)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([k(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,_+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var a,s,o={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;l.push(e)}));var c,d,u=[V,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=function(e){var t=p(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}([ee,te].concat(i,u));s=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new r({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(l),m}},5538:(e,t,n)=>{var r=n(7160),i=n(4545),a=n(793),s=n(7760),o=n(3892),l=n(6788);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=o,c.prototype.set=l,e.exports=c},5575:(e,t,n)=>{var r=n(7937)(Object,"create");e.exports=r},5652:(e,t,n)=>{var r=n(4664),i=n(6516)(r);e.exports=i},5654:(e,t,n)=>{var r=n(7937),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},5713:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>i});var r=n(8168);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function a(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const o=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?o[r]=s(e[r],t[r],n):n.clone?o[r]=i(t[r])?a(t[r]):t[r]:o[r]=t[r])})),o}}
2,5752:(e,t,n)=>{var r=n(9395),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,o){var l=1&n,c=r(e),d=c.length;if(d!=r(t).length&&!l)return!1;for(var u=d;u--;){var h=c[u];if(!(l?h in t:i.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var f=!0;o.set(e,t),o.set(t,e);for(var g=l;++u<d;){var v=e[h=c[u]],b=t[h];if(a)var y=l?a(b,v,h,t,e,o):a(v,b,h,e,t,o);if(!(void 0===y?v===b||s(v,b,n,a,o):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(f=!1)}return o.delete(e),o.delete(t),f}},5758:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5043);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},5791:(e,t,n)=>{var r=n(6924),i=n(2761);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},5797:(e,t,n)=>{var r=n(4816);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},5844:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>o});var i=n(5043);let a=0;const s=(r||(r=n.t(i,2)))["useId".toString()];function o(e){if(void 0!==s){const t=s();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(a+=1,n("mui-".concat(a)))}),[t]),r}(e)}},5849:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3462).A},5881:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case o:case s:case h:case p:return e;default:switch(e=e&&e.$$typeof){case d:case c:case u:case f:case m:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},5906:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}},5921:(e,t,n)=>{var r=n(449),i=n(7574),a=n(6832),s=a&&a.isSet,o=s?i(s):r;e.exports=o},5979:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>C,MC:()=>y});var r=n(8587),i=n(8168),a=n(4984),s=n(5713),o=n(7024),l=n(7598);const c=["variant"];function d(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.A)(e,c);let i=t||"";return Object.keys(n).sort().forEach((t=>{i+="color"===t?d(i)?e[t]:(0,l.A)(e[t]):"".concat(d(i)?t:(0,l.A)(t)).concat((0,l.A)(e[t].toString()))})),i}var h=n(8812);const p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const m=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,f=e=>{const t={};return e&&e.forEach((e=>{const n=u(e.props);t[n]=e.style})),t},g=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),f(n)},v=(e,t,n)=>{const{ownerState:r={}}=e,i=[];return n&&n.forEach((n=>{let a=!0;Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(a=!1)})),a&&i.push(t[u(n.props)])})),i},b=(e,t,n,r)=>{var i;const a=null==n||null==(i=n.components)||null==(i=i[r])?void 0:i.variants;return v(e,t,a)};function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const x=(0,o.A)(),S=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function k(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function w(e){return e?(t,n)=>n[e]:null}const T=e=>{let{styledArg:t,props:n,defaultTheme:r,themeId:a}=e;const s=t((0,i.A)({},n,{theme:k((0,i.A)({},n,{defaultTheme:r,themeId:a}))}));let o;if(s&&s.variants&&(o=s.variants,delete s.variants),o){return[s,...v(n,f(o),o)]}return s};function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=x,rootShouldForwardProp:o=y,slotShouldForwardProp:l=y}=e,c=e=>(0,h.A)((0,i.A)({},e,{theme:k((0,i.A)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,function(e){let d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.q_)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:h,skipVariantsResolver:x,skipSx:C,overridesResolver:E=w(S(h))}=d,j=(0,r.A)(d,p),A=void 0!==x?x:h&&"Root"!==h&&"root"!==h||!1,N=C||!1;let P=y;"Root"===h||"root"===h?P=o:h?P=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(P=void 0);const R=(0,a.Ay)(e,(0,i.A)({shouldForwardProp:P,label:undefined},j)),L=function(r){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];const d=o?o.map((e=>{if("function"===typeof e&&e.__emotion_real!==e)return r=>T({styledArg:e,props:r,defaultTheme:n,themeId:t});if((0,s.Q)(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return v(n,f(t),t).forEach((e=>{r=(0,s.A)(r,e)})),r}),n}return e})):[];let h=r;if((0,s.Q)(r)){let e;r&&r.variants&&(e=r.variants,delete h.variants,h=t=>{let n=r;return v(t,f(e),e).forEach((e=>{n=(0,s.A)(n,e)})),n})}else"function"===typeof r&&r.__emotion_real!==r&&(h=e=>T({styledArg:r,props:e,defaultTheme:n,themeId:t}));u&&E&&d.push((e=>{const r=k((0,i.A)({},e,{defaultTheme:n,themeId:t})),a=m(u,r);if(a){const t={};
2return Object.entries(a).forEach((n=>{let[a,s]=n;t[a]="function"===typeof s?s((0,i.A)({},e,{theme:r})):s})),E(e,t)}return null})),u&&!A&&d.push((e=>{const r=k((0,i.A)({},e,{defaultTheme:n,themeId:t}));return b(e,g(u,r),r,u)})),N||d.push(c);const p=d.length-o.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");h=[...r,...e],h.raw=[...r.raw,...e]}const y=R(h,...d);return e.muiName&&(y.muiName=e.muiName),y};return R.withConfig&&(L.withConfig=R.withConfig),L}}},5990:(e,t,n)=>{var r=n(3028)(Object.getPrototypeOf,Object);e.exports=r},6078:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(3940).A},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6326:(e,t,n)=>{var r=n(8895),i=n(5990),a=n(9621),s=n(7828),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:s;e.exports=o},6366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var o,l,c,d;if(Array.isArray(e)){if((o=e.length)!=s.length)return!1;for(l=o;0!==l--;)if(!a(e[l],s[l]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(d=e.entries();!(l=d.next()).done;)if(!s.has(l.value[0]))return!1;for(d=e.entries();!(l=d.next()).done;)if(!a(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(d=e.entries();!(l=d.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((o=e.length)!=s.length)return!1;for(l=o;0!==l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof s.toString)return e.toString()===s.toString();if((o=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=o;0!==l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=o;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],s[c[l]]))return!1;return!0}return e!==e&&s!==s}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6399:(e,t,n)=>{var r=n(5538),i=n(3668),a=n(9987),s=n(5752),o=n(6924),l=n(4052),c=n(4543),d=n(1268),u="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,g,v){var b=l(e),y=l(t),x=b?h:o(e),S=y?h:o(t),k=(x=x==u?p:x)==p,w=(S=S==u?p:S)==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(T&&!k)return v||(v=new r),b||d(e)?i(e,t,n,f,g,v):a(e,t,x,n,f,g,v);if(!(1&n)){var C=k&&m.call(e,"__wrapped__"),E=w&&m.call(t,"__wrapped__");
2if(C||E){var j=C?e.value():e,A=E?t.value():t;return v||(v=new r),g(j,A,n,f,v)}}return!!T&&(v||(v=new r),s(e,t,n,f,g,v))}},6434:(e,t,n)=>{var r=n(7132);e.exports=function(e){return r(e,5)}},6440:e=>{"use strict";var t=function(){};e.exports=t},6516:(e,t,n)=>{var r=n(6571);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,s=t?a:-1,o=Object(n);(t?s--:++s<a)&&!1!==i(o[s],s,o););return n}}},6532:(e,t,n)=>{var r=n(5538),i=n(6989);e.exports=function(e,t,n,a){var s=n.length,o=s,l=!a;if(null==e)return!o;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var d=(c=n[s])[0],u=e[d],h=c[1];if(l&&c[2]){if(void 0===u&&!(d in e))return!1}else{var p=new r;if(a)var m=a(u,h,d,e,t,p);if(!(void 0===m?i(h,u,3,a,p):m))return!1}}return!0}},6552:(e,t,n)=>{var r=n(7105),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},6571:(e,t,n)=>{var r=n(1629),i=n(6173);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},6581:()=>{},6600:(e,t,n)=>{var r=n(7937)(n(6552),"WeakMap");e.exports=r},6614:(e,t,n)=>{var r=n(8420),i=n(1775);e.exports=function(e,t,n,a){var s=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],d=a?a(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?i(n,c,d):r(n,c,d)}return n}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,n)=>{var r=n(7160),i=n(5204),a=n(4816);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(7598).A},6806:(e,t,n)=>{var r=n(1516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6832:(e,t,n)=>{e=n.nmd(e);var r=n(7105),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=o},6874:(e,t,n)=>{var r=n(2622);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},6913:(e,t,n)=>{var r=n(9812),i=n(4552),a=n(6095),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):a(e)}},6924:(e,t,n)=>{var r=n(7685),i=n(5204),a=n(5387),s=n(2070),o=n(6600),l=n(6913),c=n(6996),d="[object Map]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",f=c(r),g=c(i),v=c(a),b=c(s),y=c(o),x=l;(r&&x(new r(new ArrayBuffer(1)))!=m||i&&x(new i)!=d||a&&x(a.resolve())!=u||s&&x(new s)!=h||o&&x(new o)!=p)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return m;case g:return d;case v:return u;case b:return h;case y:return p}return t}),e.exports=x},6954:(e,t,n)=>{var r=n(1629),i=n(7857),a=n(6686),s=n(6996),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,h=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?h:o).test(s(e))}},6989:(e,t,n)=>{var r=n(6399),i=n(2761);e.exports=function e(t,n,a,s,o){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,a,s,e,o))}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},7024:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),a=n(5713);const s=["values","unit","step"];function o(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,o=(0,i.A)(e,s),l=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.A)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function u(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-a/100).concat(n,")")}function h(e,r){const i=c.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[c[i]]?t[c[i]]:r)-a/100).concat(n,")")}return(0,r.A)({keys:c,values:l,up:d,down:u,between:h,only:function(e){return c.indexOf(e)+1<c.length?h(e,c[c.indexOf(e)+1]):d(e)},not:function(e){const t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?u(c[t]):h(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const l={borderRadius:4};var c=n(8604);var d=n(8812),u=n(7758);const h=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:s,shape:p={}}=e,m=(0,i.A)(e,h),f=o(t),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(s);let v=(0,a.A)({breakpoints:f,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:g,shape:(0,r.A)({},l,p)},m);for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];return v=y.reduce(((e,t)=>(0,a.A)(e,t)),v),v.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,d.A)({sx:e,theme:this})},v}},7105:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7107:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{A:()=>r})},7132:(e,t,n)=>{var r=n(5538),i=n(726),a=n(8420),s=n(1104),o=n(5119),l=n(4353),c=n(1980),d=n(8124),u=n(9075),h=n(9395),p=n(8592),m=n(6924),f=n(8268),g=n(8630),v=n(7929),b=n(4052),y=n(4543),x=n(7887),S=n(6686),k=n(5921),w=n(8673),T=n(474),C="[object Arguments]",E="[object Function]",j="[object Object]",A={};A[C]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array
2]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[j]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[E]=A["[object WeakMap]"]=!1,e.exports=function e(t,n,N,P,R,L){var I,D=1&n,O=2&n,M=4&n;if(N&&(I=R?N(t,P,R,L):N(t)),void 0!==I)return I;if(!S(t))return t;var _=b(t);if(_){if(I=f(t),!D)return c(t,I)}else{var F=m(t),B=F==E||"[object GeneratorFunction]"==F;if(y(t))return l(t,D);if(F==j||F==C||B&&!R){if(I=O||B?{}:v(t),!D)return O?u(t,o(I,t)):d(t,s(I,t))}else{if(!A[F])return R?t:{};I=g(t,F,D)}}L||(L=new r);var U=L.get(t);if(U)return U;L.set(t,I),k(t)?t.forEach((function(r){I.add(e(r,n,N,r,t,L))})):x(t)&&t.forEach((function(r,i){I.set(i,e(r,n,N,i,t,L))}));var z=_?void 0:(M?O?p:h:O?T:w)(t);return i(z||t,(function(r,i){z&&(r=t[i=r]),a(I,i,e(r,n,N,i,t,L))})),I}},7159:(e,t,n)=>{var r=n(2622);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7160:(e,t,n)=>{var r=n(7563),i=n(9935),a=n(4190),s=n(1946),o=n(1714);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},7162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,BO:()=>s,Yn:()=>a});var r=n(7598),i=n(9751);function a(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function s(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}const o=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],d=a(e.theme,o)||{};return(0,i.NI)(e,c,(e=>{let i=s(d,l,e);return e===i&&"string"===typeof e&&(i=s(d,l,"".concat(t).concat("default"===e?"":(0,r.A)(e)),e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var o=2*(r+1)-1,l=e[o],c=o+1,d=e[c];if(0>a(l,n))c<i&&0>a(d,l)?(e[r]=d,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<i&&0>a(d,n)))break e;e[r]=d,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,p=3,m=!1,f=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(d);null!==t;){if(null===t.callback)i(d);else{if(!(t.startTime<=e))break;i(d),t.sortIndex=t.expirationTime,n(c,t)}t=r(d)}}function S(e){if(g=!1,x(e),!f)if(null!==r(c))f=!0,I(k);else{var t=r(d);null!==t&&D(S,t.startTime-e)}}function k(e,n){f=!1,g&&(g=!1,b(E),E=-1),m=!0;var a=p;try{for(x(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!N());){var s=h.callback;if("function"===typeof s){h.callback=null,p=h.priorityLevel;var o=s(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof o?h.callback=o:h===r(c)&&i(c),x(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var u=r(d);null!==u&&D(S,u.startTime-n),l=!1}return l}finally{h=null,p=a,m=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,T=!1,C=null,E=-1,j=5,A=-1;function N(){return!(t.unstable_now()-A<j)}function P(){if(null!==C){var e=t.unstable_now();A=e;var n=!0;try{n=C(!0,e)}finally{n?w():(T=!1,C=null)}}else T=!1}if("function"===typeof y)w=function(){y(P)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,L=R.port2;R.port1.onmessage=P,w=function(){L.postMessage(null)}}else w=function(){v(P,0)};function I(e){C=e,T||(T=!0,w())}function D(e,n){E=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||m||(f=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:u++,callback:i,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>s?(e.sortIndex=a,n(d,e),null===r(c)&&e===r(d)&&(g?(b(E),E=-1):g=!0,D(S,a-s))):(e.sortIndex=o,n(c,e),f||m||(f=!0,I(k))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7251:(e,t,n)=>{var r=n(8724),i=n(7160),a=n(5204);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}}
2,7514:(e,t,n)=>{"use strict";t.H8=void 0;var r=c(n(218)),i=c(n(9144)),a=c(n(9211)),s=c(n(4157)),o=c(n(4973)),l=c(n(7642));function c(e){return e&&e.__esModule?e:{default:e}}s.default,t.H8=s.default,o.default,l.default;var d=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var o=(0,r.default)(n),l=(0,i.default)(e,o);return(0,a.default)(l)};t.Ay=d},7529:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},7598:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2538);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7615:(e,t,n)=>{var r=n(5575);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},7642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},7685:(e,t,n)=>{var r=n(7937)(n(6552),"DataView");e.exports=r},7758:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(8604),i=n(7162),a=n(3815);const s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,a.A)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var o=n(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const d=c("border",l),u=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),m=c("borderLeft",l),f=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),b=c("borderBottomColor"),y=c("borderLeftColor"),x=c("outline",l),S=c("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,o.NI)(e,e.borderRadius,n)}return null};k.propTypes={},k.filterProps=["borderRadius"];s(d,u,h,p,m,f,g,v,b,y,k,x,S);const w=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,o.NI)(e,e.gap,n)}return null};w.propTypes={},w.filterProps=["gap"];const T=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,o.NI)(e,e.columnGap,n)}return null};T.propTypes={},T.filterProps=["columnGap"];const C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,o.NI)(e,e.rowGap,n)}return null};C.propTypes={},C.filterProps=["rowGap"];s(w,T,C,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function E(e,t){return"grey"===t?t:e}s((0,i.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));function j(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const A=(0,i.Ay)({prop:"width",transform:j}),N=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||o.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(i).concat(e.theme.breakpoints.unit)}:{maxWidth:i}:{maxWidth:j(t)}};return(0,o.NI)(e,e.maxWidth,t)}return null};N.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:j}),R=(0,i.Ay)({prop:"height",transform:j}),L=(0,i.Ay)({prop:"maxHeight",transform:j}),I=(0,i.Ay)({prop:"minHeight",transform:j}),D=((0,i.Ay)({prop:"size",cssProperty:"width",transform:j}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:j}),s(A,N,P,R,L,I,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms}
2,paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:C},columnGap:{style:T},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:N},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},7828:e=>{e.exports=function(){return[]}},7857:(e,t,n)=>{var r=n(3440),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},7887:(e,t,n)=>{var r=n(5791),i=n(7574),a=n(6832),s=a&&a.isMap,o=s?i(s):r;e.exports=o},7894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7929:(e,t,n)=>{var r=n(1817),i=n(5990),a=n(6140);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},7937:(e,t,n)=>{var r=n(6954),i=n(4657);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},8114:e=>{e.exports=function(e,t){return e.has(t)}},8122:(e,t,n)=>{var r=n(6686),i=n(6140),a=n(3516),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}},8124:(e,t,n)=>{var r=n(6614),i=n(9621);e.exports=function(e,t){return r(e,i(e),t)}},8161:(e,t,n)=>{"use strict";var r,i=n(5043),a=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function d(){l=e(c.map((function(e){return e.props}))),u.canUseDOM?t(l):n&&(l=n(l))}var u=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var s=i.prototype;return s.UNSAFE_componentWillMount=function(){c.push(this),d()},s.componentDidUpdate=function(){d()},s.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),d()},s.render=function(){return a.createElement(r,this.props)},i}(i.PureComponent);return s(u,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),s(u,"canUseDOM",o),u}}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8259:(e,t,n)=>{var r=n(5797);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},8268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input
vendor: 4,601 bytes, line 2
2=e.input),r}},8279:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(8168),i=n(8587),a=n(2538),s=n(5713),o=n(7024),l=n(7758),c=n(8812);var d=n(310);const u={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},f={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:u.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){const i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,d.a)(e.main,i):"dark"===t&&(e.dark=(0,d.e$)(e.main,a)))}function w(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,l=(0,i.A)(e,y),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),w=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),T=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(t),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),E=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),j=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[400],light:f[300],dark:f[700]}:{main:"#ed6c02",light:f[500],dark:f[900]}}(t);function A(e){return(0,d.eM)(e,S.text.primary)>=n?S.text.primary:x.text.primary}const N=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,a.A)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error((0,a.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return k(t,"light",s,o),k(t,"dark",l,o),t.contrastText||(t.contrastText=A(t.main)),t},P={dark:S,light:x};return(0,s.A)((0,r.A)({common:(0,r.A)({},u),mode:t,primary:N({color:c,name:"primary"}
2),secondary:N({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:T,name:"error"}),warning:N({color:j,name:"warning"}),info:N({color:C,name:"info"}),success:N({color:E,name:"success"}),grey:h,contrastThreshold:n,getContrastText:A,augmentColor:N,tonalOffset:o},P[t]),l)}const T=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){const n="function"===typeof t?t(e):t,{fontFamily:a=E,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:h=16,allVariants:p,pxToRem:m}=n,f=(0,i.A)(n,T);const g=o/14,v=m||(e=>"".concat(e/h*g,"rem")),b=(e,t,n,i,s)=>{return(0,r.A)({fontFamily:a,fontWeight:e,fontSize:v(t),lineHeight:n},a===E?{letterSpacing:"".concat((o=i/t,Math.round(1e5*o)/1e5),"em")}:{},s,p);var o},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(d,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(d,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(d,14,1.75,.4,C),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,r.A)({htmlFontSize:h,pxToRem:v,fontFamily:a,fontSize:o,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:u},y),f,{clone:!1})}function A(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const N=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)],P=["duration","easing","delay"],R={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I(e){return"".concat(Math.round(e),"ms")}function D(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function O(e){const t=(0,r.A)({},R,e.easing),n=(0,r.A)({},L,e.duration);return(0,r.A)({getAutoHeightDuration:D,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:s=t.easeInOut,delay:o=0}=r;(0,i.A)(r,P);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:I(a)," ").concat(s," ").concat("string"===typeof o?o:I(o)))).join(",")}},e,{easing:t,duration:n})}const M={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:d={},typography:u={}}=e,h=(0,i.A)(e,_);if(e.vars)throw new Error((0,a.A)(18));const p=w(n),m=(0,o.A)(e);let f=(0,s.A)(m,{mixins:(g=m.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:N.slice(),typography:j(p,u),transitions:O(d),zIndex:(0,r.A)({},M)});var g,v;f=(0,s.A)(f,h);for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];return f=y.reduce(((e,t)=>(0,s.A)(e,t)),f),f.unstable_sxConfig=(0,r.A)({},l.A,null==h?void 0:h.unstable_sxConfig),f.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},f}const B=F},8420:(e,t,n)=>{var r=n(1775),i=n(3211),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];a.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},8497:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>a,createSvgIcon:()=>s.A,debounce:()=>o.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>d.A,ownerWindow:()=>u.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>S,unstable_useEnhancedEffect:()=>m.A,unstable_useId:()=>f,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>b.A,useForkRef:()=>y.A,useIsFocusVisible:()=>x.A});var r=n(9386),i=n(6803);const a=n(7107).A;var s=n(9662),o=n(950);const l=function(e,t){return()=>null};var c=n(5758),d=n(2427),u=n(6078);const h=function(e,t){return()=>null};const p=n(2614).A;var m=n(5013);const f=n(5844).A;const g=function(e,t,n,r,i){return null};var v=n(5420),b=n(3319),y=n(5849),x=n(2926);const S={configure:e=>{r.A.configure(e)}}},8541:(e,t,n)=>{var r=n(9812),i=n(149),a=n(4052),s=n(9841),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8592:(e,t,n)=>{var r=n(4262),i=n(6326),a=n(474);e.exports=function(e){return r(e,a,i)}}
2,8604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>m,MA:()=>p,_W:()=>f,Lc:()=>b,Ms:()=>y});var r=n(9751),i=n(7162),a=n(3815);const s={m:"margin",p:"padding"},o={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=s[t],i=o[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...d,...u];function p(e,t,n,r){var a;const s=null!=(a=(0,i.Yn)(e,t,!1))?a:n;return"number"===typeof s?e=>"string"===typeof e?e:s*e:Array.isArray(s)?e=>"string"===typeof e?e:s[e]:"function"===typeof s?s:()=>{}}function m(e){return p(e,"spacing",8)}function f(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=f(t,n),e)),{})}(c(n),i),s=e[n];return(0,r.NI)(e,s,a)}function v(e,t){const n=m(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(a.A,{})}function b(e){return v(e,d)}function y(e){return v(e,u)}function x(e){return v(e,h)}b.propTypes={},b.filterProps=d,y.propTypes={},y.filterProps=u,x.propTypes={},x.filterProps=h},8610:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},8630:(e,t,n)=>{var r=n(1516),i=n(6806),a=n(8962),s=n(1295),o=n(8710);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(e)}}},8653:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(7024),i=n(5043),a=n(5025);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(a.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},o=(0,r.A)();const l=function(){return s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o)}},8673:(e,t,n)=>{var r=n(3204),i=n(3713),a=n(6571);e.exports=function(e){return a(e)?r(e):i(e)}},8710:(e,t,n)=>{var r=n(1516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},8724:(e,t,n)=>{var r=n(7615),i=n(5051),a=n(2154),s=n(8734),o=n(2662);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=o,e.exports=l},8734:(e,t,n)=>{var r=n(5575),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(7598),i=n(3815),a=n(7162),s=n(9751),o=n(7758);const l=function(){function e(e,t,n,i){const o={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:d,transform:u,style:h}=l;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const p=(0,a.Yn)(n,d)||{};if(h)return h(o);return(0,s.NI)(o,t,(t=>{let n=(0,a.BO)(p,u,t);return t===n&&"string"===typeof t&&(n=(0,a.BO)(p,u,"".concat(e).concat("default"===t?"":(0,r.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:a,theme:l={}}=n||{};if(!a)return null;const c=null!=(r=l.unstable_sxConfig)?r:o.A;function d(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const a=(0,s.EU)(l.breakpoints),o=Object.keys(a);let d=a;return Object.keys(r).forEach((n=>{const a=(o=r[n],u=l,"function"===typeof o?o(u):o);var o,u;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[n])d=(0,i.A)(d,e(n,a,l,c));else{const e=(0,s.NI)({theme:l},a,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,a)?d=(0,i.A)(d,e):d[n]=t({sx:a,theme:l})}else d=(0,i.A)(d,e(n,a,l,c))})),(0,s.vf)(o,d)}return Array.isArray(a)?a.map(d):d(a)}}();l.filterProps=["sx"];const c=l},8853:(e,t,n)=>{"use strict";e.exports=n(7234)}
2,8883:(e,t,n)=>{var r=n(5652),i=n(6571);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}},8895:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},8902:(e,t,n)=>{var r=n(4816),i=n(6179),a=n(6704);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=a,e.exports=s},8962:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},9057:(e,t,n)=>{var r=n(5324),i=n(2777),a=n(4052),s=n(9194),o=n(6173),l=n(914);e.exports=function(e,t,n){for(var c=-1,d=(t=r(t,e)).length,u=!1;++c<d;){var h=l(t[c]);if(!(u=null!=e&&n(e,h)))break;e=e[h]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&o(d)&&s(h,d)&&(a(e)||i(e))}},9075:(e,t,n)=>{var r=n(6614),i=n(6326);e.exports=function(e,t){return r(e,i(e),t)}},9096:(e,t,n)=>{var r=n(9256),i=n(5029),a=n(3279),s=n(4052),o=n(3932);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):o(e)}},9128:(e,t,n)=>{"use strict";var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(5043),s=(r=a)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,o=e.height,l=void 0===o?24:o,c=e.style,d=void 0===c?{}:c,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return s.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:a,height:l},d)},u),s.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},9144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=s(n(840)),i=s(n(6434)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function s(e){return e&&e.__esModule?e:{default:e}}var o=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],i[t])})),t})),n};t.default=o},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},9211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(840),a=(r=i)&&r.__esModule?r:{default:r},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=o[t];n?r=s({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=l},9256:(e,t,n)=>{var r=n(6532),i=n(3781),a=n(1310);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},9292:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},9386:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},9394:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).has(e)}},9395:(e,t,n)=>{var r=n(4262),i=n(9621),a=n(8673);e.exports=function(e){return r(e,a,i)}},9417:(e,t,n)=>{var r=n(6686);e.exports=function(e){return e===e&&!r(e)}},9436:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>o,s:()=>s});var i=n(5043),a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=a||function(e){return e()},o=a||i.useLayoutEffect},9461:(e,t,n)=>{"use strict";e.exports=n(2330)}
2,9549:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))n[a]=(0,r.A)({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const s=e[a]||{},o=t[a];n[a]={},o&&Object.keys(o)?s&&Object.keys(s)?(n[a]=(0,r.A)({},o),Object.keys(s).forEach((e=>{n[a][e]=i(s[e],o[e])}))):n[a]=o:n[a]=s}else void 0===n[a]&&(n[a]=e[a])})),n}},9621:(e,t,n)=>{var r=n(7529),i=n(7828),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=o},9662:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(8168),i=n(5043),a=n(8587),s=n(9292),o=n(8610),l=n(6803),c=n(2876),d=n(4535),u=n(2532),h=n(2372);function p(e){return(0,h.A)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=n(579);const f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,d.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,a,s,o,l,c,d,u,h,p,m,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(a=t.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(o=s.pxToRem)?void 0:o.call(s,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(d=t.typography)||null==(u=d.pxToRem)?void 0:u.call(d,35))||"2.1875rem"}[n.fontSize],color:null!=(h=null==(p=(t.vars||t).palette)||null==(p=p[n.color])?void 0:p.main)?h:{action:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[n.color]}})),v=i.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:d,className:u,color:h="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:x=!1,titleAccess:S,viewBox:k="0 0 24 24"}=n,w=(0,a.A)(n,f),T=i.isValidElement(d)&&"svg"===d.type,C=(0,r.A)({},n,{color:h,component:v,fontSize:b,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:k,hasSvgAsChild:T}),E={};x||(E.viewBox=k);const j=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,o.A)(i,p,r)})(C);return(0,m.jsxs)(g,(0,r.A)({as:v,className:(0,s.A)(j.root,u),focusable:"false",color:y,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},E,w,T&&d.props,{ownerState:C,children:[T?d.props.children:d,S?(0,m.jsx)("title",{children:S}):null]}))}));v.muiName="SvgIcon";const b=v;function y(e,t){function n(n,i){return(0,m.jsx)(b,(0,r.A)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=b.muiName,i.memo(i.forwardRef(n))}},9751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>o,NI:()=>s,iZ:()=>c,kW:()=>d,vf:()=>l,zu:()=>i});var r=n(5713);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(i[e],"px)")};function s(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||a;return t.reduce(((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"===typeof t){const e=r.breakpoints||a;return Object.keys(t).reduce(((r,a)=>{if(-1!==Object.keys(e.values||i).indexOf(a)){r[e.up(a)]=n(t[a],a)}else{const e=a;r[e]=t[e]}return r}),{})}return n(t)}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=o(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];const s=[t,...i].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),s)}function d(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),a=Object.keys(i);if(0===a.length)return t;let s;return a.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[s],s=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[s],s=n):e[n]=t,e)),{})}}
2,9812:(e,t,n)=>{var r=n(6552).Symbol;e.exports=r},9841:(e,t,n)=>{var r=n(6913),i=n(2761);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},9935:(e,t,n)=>{var r=n(1340),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},9987:(e,t,n)=>{var r=n(9812),i=n(2929),a=n(3211),s=n(3668),o=n(4160),l=n(2074),c=r?r.prototype:void 0,d=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,u,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=o;case"[object Set]":var m=1&r;if(p||(p=l),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;r|=2,h.set(e,t);var g=s(p(e),p(t),r,c,u,h);return h.delete(e),g;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&r;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>r[e]));return s.default=()=>r,n.d(a,s),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Lr,hasStandardBrowserEnv:()=>Dr,hasStandardBrowserWebWorkerEnv:()=>Or,navigator:()=>Ir,origin:()=>Mr});var t={};function r(e){return r="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},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.r(t),n.d(t,{Decoder:()=>hs,Encoder:()=>ds,PacketType:()=>cs,protocol:()=>ls});const l=e=>"string"===typeof e,c=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},d=e=>null==e?"":""+e,u=/###/g,h=e=>e&&e.indexOf("###")>-1?e.replace(u,"."):e,p=e=>
2!e||l(e),m=(e,t,n)=>{const r=l(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(p(e))return{};const t=h(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return p(e)?{}:{obj:e,k:h(r[i])}},f=(e,t,n)=>{const{obj:r,k:i}=m(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let a=t[t.length-1],s=t.slice(0,t.length-1),o=m(e,s,Object);for(;void 0===o.obj&&s.length;){var l;a="".concat(s[s.length-1],".").concat(a),s=s.slice(0,s.length-1),o=m(e,s,Object),null!==(l=o)&&void 0!==l&&l.obj&&"undefined"!==typeof o.obj["".concat(o.k,".").concat(a)]&&(o.obj=void 0)}o.obj["".concat(o.k,".").concat(a)]=n},g=(e,t)=>{const{obj:n,k:r}=m(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},v=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?l(e[r])||e[r]instanceof String||l(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):v(e[r],t[r],n):e[r]=t[r]);return e},b=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const x=e=>l(e)?e.replace(/[&<>"'\/]/g,(e=>y[e])):e;const S=[" ",",","?","!",";"],k=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),w=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||"object"!==typeof i)return;let e,t="";for(let s=a;s<r.length;++s)if(s!==a&&(t+=n),t+=r[s],e=i[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;a+=s-a+1;break}i=e}return i},T=e=>null===e||void 0===e?void 0:e.replace("_","-"),C={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;null===(n=console)||void 0===n||null===(n=n[e])||void 0===n||null===(r=n.apply)||void 0===r||r.call(n,console,t)}};class E{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||C,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(l(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new E(this.logger,o(o({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new E(this.logger,e)}}var j=new E;class A{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let i=0;i<r;i++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let a=0;a<i;a++)r.apply(r,[e,...n])}))}}}class N extends A{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var r;let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l(n)&&a?o.push(...n.split(a)):o.push(n)));const c=g(this.data,o);return!c&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!c&&s&&l(n)?w(null===(r=this.data)||void 0===r||null===(r=r[e])||void 0===r?void 0:r[t],n,a):c}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];
2n&&(s=s.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),f(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(l(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let l=g(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?v(l,n,i):l=o(o({},l),n),f(this.data,s,l),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{var a,s;t=null!==(a=null===(s=this.processors[e])||void 0===s?void 0:s.process(t,n,r,i))&&void 0!==a?a:t})),t}};const R=Symbol("i18next/PATH_KEY");function L(e,t){var n;const{[R]:r}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var a,s;return null===(a=n)||void 0===a||null===(s=a.revoke)||void 0===s||s.call(a),i===R?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}());return r.join(null!==(n=null===t||void 0===t?void 0:t.keySeparator)&&void 0!==n?n:".")}const I={},D=e=>!l(e)&&"boolean"!==typeof e&&"number"!==typeof e;class O extends A{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach((e=>{t[e]&&(n[e]=t[e])}))})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=j.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){const t=o({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});if(null==e)return!1;const n=this.resolve(e,t);if(void 0===(null===n||void 0===n?void 0:n.res))return!1;const r=D(n.res);return!1!==t.returnObjects||!r}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";const r=S.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=k.getRegExp("(".concat(r.map((e=>"?"===e?"\\?":e)).join("|"),")"));let a=!i.test(e);if(!a){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a})(e,n,r);if(a&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l(i)?[i]:i};const a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:l(i)?[i]:i}}translate(e,t,n){let r="object"===typeof t?o({},t):t;if("object"!==typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof r&&(r=o({},r)),r||(r={}),null==e)return"";"function"===typeof e&&(e=L(e,o(o({},this.options),r))),Array.isArray(e)||(e=[String(e)]);const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:s,namespaces:c}=this.extractFromKey(e[e.length-1],r),d=c[c.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const h=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===(null===h||void 0===h?void 0:h.toLowerCase()))return p?i?{res:"".concat(d).concat(u).concat(s),usedKey:s,exactUsedKey:s,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:"".concat(d).concat(u).concat(s):i?{res:s,usedKey:s,exactUsedKey:s,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:s;const m=this.resolve(e,r);let f=null===m||void 0===m?void 0:m.res;const g=(null===m||void 0===m?void 0:m.usedKey)||s,v=(null===m||void 0===m?void 0:m.exactUsedKey)||s,b=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==r.count&&!l(r.count),S=O.hasDefaultValue(r),k=x?this.pluralResolver.getSuffix(h,r.count,r):"",w=r.ordinal&&x?this.pluralResolver.getSuffix(h,r.count,{ordinal:!1}):"",T=x&&!r.ordinal&&0===r.count,C=T&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]||r["defaultValue".concat(k)]||r["defaultValue".concat(w)]||r.defaultValue;let E=f;y&&!f&&S&&(E=C);const j=D(E),A=Object.prototype.toString.apply(E);if(!(y&&E&&j&&["[object Number]","[object Function]","[object RegExp]"].indexOf(A)<0)||l(b)&&Array.isArray(E))if(y&&l(b)&&Array.isArray(f))f=f.join(b),f&&(f=this.extendTranslation(f,e,r,n));else{let t=!1,i=!1;!this.isValidLookup(f)&&S&&(t=!0,f=C),this.isValidLookup(f)||(i=!0,f=s);const l=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,c=S&&C!==f&&this.options.updateMissing;if(i||t||c){if(this.logger.log(c?"updateKey":"missingKey",h,d,s,c?C:f),a){const e=this.resolve(s,o(o({},r),{},{keySeparator:!1}));e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{var i;const a=S&&n!==f?n:l;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,a,c,r):null!==(i=this.backendConnector)&&void 0!==i&&i.saveMissing&&this.backendConnector.saveMissing(e,d,t,a,c,r),this.emit
2("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach((e=>{const t=this.pluralResolver.getSuffixes(e,r);T&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]&&t.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&t.push("".concat(this.options.pluralSeparator,"zero")),t.forEach((t=>{n([e],s+t,r["defaultValue".concat(t)]||C)}))})):n(e,s,C))}f=this.extendTranslation(f,e,r,m,n),i&&f===s&&this.options.appendNamespaceToMissingKey&&(f="".concat(d).concat(u).concat(s)),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d).concat(u).concat(s):s,t?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,E,o(o({},r),{},{ns:c})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(m.res=e,m.usedParams=this.getUsedParamsDetails(r),m):e}if(a){const e=Array.isArray(E),t=e?[]:{},n=e?v:g;for(const i in E)if(Object.prototype.hasOwnProperty.call(E,i)){const e="".concat(n).concat(a).concat(i);t[i]=S&&!f?this.translate(e,o(o({},r),{},{defaultValue:D(C)?C[i]:void 0},{joinArrays:!1,ns:c})):this.translate(e,o(o({},r),{joinArrays:!1,ns:c})),t[i]===e&&(t[i]=E[i])}f=t}}return i?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(e,t,n,r,i){var a,s=this;if(null!==(a=this.i18nFormat)&&void 0!==a&&a.parse)e=this.i18nFormat.parse(e,o(o({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){var c;n.interpolation&&this.interpolator.init(o(o({},n),{interpolation:o(o({},this.options.interpolation),n.interpolation)}));const a=l(e)&&(void 0!==(null===n||void 0===n||null===(c=n.interpolation)||void 0===c?void 0:c.skipOnVariables)?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(a){const t=e.match(this.interpolator.nestingRegexp);d=t&&t.length}let u=n.replace&&!l(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=o(o({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);d<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return(null===i||void 0===i?void 0:i[0])!==r[0]||n.context?s.translate(...r,t):(s.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null)}),n)),n.interpolation&&this.interpolator.reset()}const d=n.postProcess||this.options.postProcess,u=l(d)?[d]:d;return null!=e&&null!==u&&void 0!==u&&u.length&&!1!==n.applyPostProcessor&&(e=P.handle(u,e,t,this.options&&this.options.postProcessPassResolved?o({i18nResolved:o(o({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}resolve(e){let t,n,r,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const o=this.extractFromKey(e,s),c=o.key;n=c;let d=o.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const u=void 0!==s.count&&!l(s.count),h=u&&!s.ordinal&&0===s.count,p=void 0!==s.context&&(l(s.context)||"number"===typeof s.context)&&""!==s.context,m=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);d.forEach((e=>{var o,l;this.isValidLookup(t)||(a=e,I["".concat(m[0],"-").concat(e)]||null===(o=this.utils)||void 0===o||!o.hasLoadedNamespace||null!==(l=this.utils)&&void 0!==l&&l.hasLoadedNamespace(a)||(I["".concat(m[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((n=>{var a;if(this.isValidLookup(t))return;i=n;const o=[c];if(null!==(a=this.i18nFormat)&&void 0!==a&&a.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(u&&(s.ordinal&&0===e.indexOf(r)&&o.push(c+e.replace(r,this.options.pluralSeparator)),o.push(c+e),h&&o.push(c+t)),p){const n="".concat(c).concat(this.options.contextSeparator||"_").concat(s.context);o.push(n),u&&(s.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),o.push(n+e),h&&o.push(n+t))}}let l;for(;l=o.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,s))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){var r;let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null!==(r=this.i18nFormat)&&void 0!==r&&r.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!l(e.replace);let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=o(o({},this.options.interpolation.defaultVariables),r)),!n){r=o({},r);for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class M{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}getScriptPartFromCode(e){if(!(e=T(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=T(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(Ps){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find((e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),l(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];
2return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return l(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):l(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}const _={zero:0,one:1,two:2,few:3,many:4,other:5},F={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class B{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=j.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=T("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch(s){if("undefined"===typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F;if(!e.match(/-|_/))return F;const n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),(null===(t=r)||void 0===t?void 0:t.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort(((e,t)=>_[e]-_[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,n))}}const U=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=((e,t,n)=>{const r=g(e,n);return void 0!==r?r:g(t,n)})(e,t,n);return!a&&i&&l(n)&&(a=w(e,n,r),void 0===a&&(a=w(t,n,r))),a},z=e=>e.replace(/\$/g,"$$$$");class G{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("interpolator"),this.options=t,this.format=(null===t||void 0===t||null===(e=t.interpolation)||void 0===e?void 0:e.format)||(e=>e),this.init(t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:o,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:f,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:x,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?b(i):a||"{{",this.suffix=s?b(s):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?b(u):h||b("$t("),this.nestingSuffix=p?b(p):m||b(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>
2(null===e||void 0===e?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\))*?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){var i;let a,s,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(e.indexOf(this.formatSeparator)<0){const i=U(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,o(o(o({},r),t),{},{interpolationkey:e})):i}const i=e.split(this.formatSeparator),a=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(U(t,u,a,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,o(o(o({},r),t),{},{interpolationkey:a}))};this.resetRegExp();const p=(null===r||void 0===r?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=void 0!==(null===r||void 0===r||null===(i=r.interpolation)||void 0===i?void 0:i.skipOnVariables)?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>z(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?z(this.escape(e)):z(e)}].forEach((t=>{for(c=0;a=t.regex.exec(e);){const n=a[1].trim();if(s=h(n),void 0===s)if("function"===typeof p){const t=p(e,a,r);s=l(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))s="";else{if(m){s=a[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),s=""}else l(s)||this.useRawValueToEscape||(s=d(s));const i=t.safeValue(s);if(e=e.replace(a[0],i),m?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,c++,c>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=(e,t)=>{var n,r;const a=this.nestingOptionsSeparator;if(e.indexOf(a)<0)return e;const s=e.split(new RegExp("".concat(b(a),"[ ]*{")));let l="{".concat(s[1]);e=s[0],l=this.interpolate(l,i);const c=l.match(/'/g),d=l.match(/"/g);((null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)%2===0&&!d||(null!==(r=null===d||void 0===d?void 0:d.length)&&void 0!==r?r:0)%2!==0)&&(l=l.replace(/'/g,'"'));try{i=JSON.parse(l),t&&(i=o(o({},t),i))}catch(Ps){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),Ps),"".concat(e).concat(a).concat(l)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let c=[];i=o({},a),i=i.replace&&!l(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==u&&(c=n[1].slice(u).split(this.formatSeparator).map((e=>e.trim())).filter(Boolean),n[1]=n[1].slice(0,u)),r=t(s.call(this,n[1].trim(),i),i),r&&n[0]===e&&!l(r))return r;l(r)||(r=d(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c.length&&(r=c.reduce(((e,t)=>this.format(e,t,a.lng,o(o({},a),{},{interpolationkey:n[1].trim()}))),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const W=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=o(o({},a),{},{[i.interpolationkey]:void 0}));const s=r+JSON.stringify(a);let l=t[s];return l||(l=e(T(r),i),t[s]=l),l(n)}},H=e=>(t,n,r)=>e(T(n),r)(t);class V{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("formatter"),this.options=e,this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?W:H;this.formats={number:n(((e,t)=>{const n=new Intl.NumberFormat(e,o({},t));return e=>n.format(e)})),currency:n(((e,t)=>{const n=new Intl.NumberFormat(e,o(o({},t),{},{style:"currency"}));return e=>n.format(e)})),datetime:n(((e,t)=>{const n=new Intl.DateTimeFormat(e,o({},t));return e=>n.format(e)})),relativetime:n(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,o({},t));return e=>n.format(e,t.range||"day")})),list:n(((e,t)=>{const n=new Intl.ListFormat(e,o({},t));return e=>n.format(e)}))}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=W(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const a=i.reduce(((e,t)=>{const{formatName:i,formatOptions:a}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();
2n[a]||(n[a]=i),"false"===i&&(n[a]=!1),"true"===i&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{var s;const l=(null===r||void 0===r||null===(s=r.formatParams)||void 0===s?void 0:s[r.interpolationkey])||{},c=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[i](e,c,o(o(o({},a),r),l))}catch(l){this.logger.warn(l)}return t}return this.logger.warn("there was no format function for ".concat(i)),e}),e);return a}}class K extends A{constructor(e,t,n){var r,i;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=j.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],null===(r=this.backend)||void 0===r||null===(i=r.init)||void 0===i||i.call(r,n,a.backend,a)}queueLoad(e,t,n,r){const i={},a={},s={},o={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const s="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===a[s]&&(a[s]=!0):(this.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===o[t]&&(o[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const s={};this.queue.forEach((n=>{((e,t,n)=>{const{obj:r,k:i}=m(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],a),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});this.readingCalls++;const s=(s,o)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&o&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,a)}),i):a(s,o)},o=this.backend[n].bind(this.backend);if(2!==o.length)return o(e,t,s);try{const n=o(e,t);n&&"function"===typeof n.then?n.then((e=>s(null,e))).catch(s):s(null,n)}catch(l){s(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();l(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,a)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&a&&this.logger.log("".concat(t,"loaded namespace ").concat(i," for language ").concat(r),a),this.loaded(e,n,a)}))}saveMissing(e,t,n,r,i){var a,s,l;let c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(null===(a=this.services)||void 0===a||null===(a=a.utils)||void 0===a||!a.hasLoadedNamespace||null!==(s=this.services)&&void 0!==s&&null!==(s=s.utils)&&void 0!==s&&s.hasLoadedNamespace(t)){if(void 0!==n&&null!==n&&""!==n){if(null!==(l=this.backend)&&void 0!==l&&l.create){const a=o(o({},c),{},{isUpdate:i}),s=this.backend.create.bind(this.backend);if(s.length<6)try{let i;i=5===s.length?s(e,t,n,r,a):s(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>d(null,e))).catch(d):d(null,i)}catch(u){d(u)}else s(e,t,n,r,d,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const q=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"===typeof e[1]&&(t=e[1]),l(e[1])&&(t.defaultValue=e[1]),l(e[2])&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];
2Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Y=e=>{var t,n;return l(e.ns)&&(e.ns=[e.ns]),l(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),(null===(t=e.supportedLngs)||void 0===t||null===(n=t.indexOf)||void 0===n?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"===typeof e.initImmediate&&(e.initAsync=e.initImmediate),e},X=()=>{},J="__i18next_supportNoticeShown";class Q extends A{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Y(e),this.services={},this.logger=j,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),null==t.defaultNS&&t.ns&&(l(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=q();this.options=o(o(o({},r),this.options),Y(t)),this.options.interpolation=o(o({},r.interpolation),this.options.interpolation),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!==typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(e=>{var t,n,r,i,a;return(null===e||void 0===e||null===(t=e.modules)||void 0===t||null===(t=t.backend)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.indexOf("Locize"))>0||(null===e||void 0===e||null===(n=e.modules)||void 0===n||null===(n=n.backend)||void 0===n||null===(n=n.constructor)||void 0===n||null===(n=n.name)||void 0===n?void 0:n.indexOf("Locize"))>0||!(null===e||void 0===e||null===(r=e.options)||void 0===r||null===(r=r.backend)||void 0===r||!r.backends||!e.options.backend.backends.some((e=>{var t,n;return(null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.indexOf("Locize"))>0||(null===e||void 0===e||null===(n=e.constructor)||void 0===n||null===(n=n.name)||void 0===n?void 0:n.indexOf("Locize"))>0})))||!(null===e||void 0===e||null===(i=e.options)||void 0===i||null===(i=i.backend)||void 0===i||!i.projectId)||!(null===e||void 0===e||null===(a=e.options)||void 0===a||null===(a=a.backend)||void 0===a||!a.backendOptions||!e.options.backend.backendOptions.some((e=>null===e||void 0===e?void 0:e.projectId)))})(this)||"undefined"!==typeof globalThis&&globalThis[J]||("undefined"!==typeof console&&"undefined"!==typeof console.info&&console.info("\ud83c\udf10 i18next is maintained with support from Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \ud83d\udc99"),"undefined"!==typeof globalThis&&(globalThis[J]=!0));const i=e=>e?"function"===typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?j.init(i(this.modules.logger),this.options):j.init(null,this.options),t=this.modules.formatter?this.modules.formatter:V;const n=new M(this.options);this.store=new N(this.options.resources,this.options);const a=this.services;a.logger=j,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new B(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(
vendor: 4,417 bytes, line 2
2a.formatter=i(t),a.formatter.init&&a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new G(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new K(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new O(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=X),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=c(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;const n=l(e)?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){var r,i;if("cimode"===(null===n||void 0===n?void 0:n.toLowerCase())&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],a=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)a(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>a(e)))}null===(r=this.options.preload)||void 0===r||null===(i=r.forEach)||void 0===i||i.call(r,(e=>a(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=c();return"function"===typeof e&&(n=e,e=void 0),"function"===typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=X),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=c();
2this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(a,s)=>{s?this.isLanguageChangingTo===e&&(i(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(a,(function(){return n.t(...arguments)}))},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=l(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l(t)?[t]:t);var s,o;r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),null===(s=this.services.languageDetector)||void 0===s||null===(o=s.cacheUserLanguage)||void 0===o||o.call(s,r));this.loadResources(r,(e=>{a(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let a;if("object"!==typeof t){for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];a=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else a=o({},t);a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);const d=r.options.keySeparator||".";let u;return a.keyPrefix&&Array.isArray(e)?u=e.map((e=>("function"===typeof e&&(e=L(e,o(o({},r.options),t))),"".concat(a.keyPrefix).concat(d).concat(e)))):("function"===typeof e&&(e=L(e,o(o({},r.options),t))),u=a.keyPrefix?"".concat(a.keyPrefix).concat(d).concat(e):e),r.t(u,a)};return l(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.translate(...n)}exists(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null===(e=this.translator)||void 0===e?void 0:e.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,a);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||r&&!a(i,e)))}loadNamespaces(e,t){const n=c();return this.options.ns?(l(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=c();l(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){var t,n;if(e||(e=this.resolvedLanguage||((null===(t=this.languages)||void 0===t?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(Ps){}const r=(null===(n=this.services)||void 0===n?void 0:n.languageUtils)||new M(q());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){const e=new Q(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0);return e.createInstance=Q.createInstance,e}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r=o(o(o({},this.options),e),{isClone:!0}),i=new Q(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services=o({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const e=Object.keys(this.store.data).reduce(((e,t)=>(e[t]=o({},this.store.data[t]),e[t]=Object.keys(e[t]).reduce(((n,r)=>(n[r]=o({},e[t][r]),n)),e[t]),e)),{});i.store=new N(e,r),i.services.resourceStore=i.store}if(e.interpolation){const t=o(o(o({},q().interpolation),this.options.interpolation),e.interpolation),n=o(o({},r),{},{interpolation:t});i.services.interpolator=new G(n)}return i.translator=new O(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Z=Q.createInstance();Z.createInstance,Z.dir,Z.init,Z.loadResources,Z.reloadResources,Z.use,Z.changeLanguage,Z.getFixedT,Z.t,Z.exists,Z.setDefaultNamespace,Z.hasLoadedNamespace,Z.loadNamespaces,Z.loadLanguages;var $=n(5043),ee=n.t($,2);n(1844);Object.create(null);const te=(e,t,n,r)=>{var i,a,s;const l=[n,o({code:t},r||{})];if(null!==e&&void 0!==e&&null!==(i=e.services)&&void 0!==i&&null!==(i=i.logger)&&void 0!==i&&i.forward)return e.services.logger.forward(l,"warn","react-i18next::",!0);oe(l[0])&&(l[0]="react-i18next:: ".concat(l[0])),null!==e&&void 0!==e&&null!==(a=e.services)&&void 0!==a&&null!==(a=a.logger)&&void 0!==a&&a.warn?e.services.logger.warn(...l):null!==(s=console)&&void 0!==s&&s.warn&&console.warn(...l)},ne={},re=(e,t,n,r)=>{oe(n)&&ne[n]||(oe(n)&&(ne[n]=new Date),te(e,t,n,r))},ie=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},ae=(e,t,n)=>{e.loadNamespaces(t,ie(e,n))},se=(e,t,n,r)=>{if(oe(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ae(e,n,r);
2n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,ie(e,r))},oe=e=>"string"===typeof e,le=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ce={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},de=e=>ce[e];let ue={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(le,de),transDefaultProps:void 0};let he;const pe=()=>he,me={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ue=o(o({},ue),e)}(e.options.react),(e=>{he=e})(e)}},fe=(0,$.createContext)();class ge{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}class ve extends Error{constructor(e,t,n){super(e),this.name="TranslationParserError",this.position=t,this.translationString=n,Error.captureStackTrace&&Error.captureStackTrace(this,ve)}}const be={" ":"\xa0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xa9","®":"\xae","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201a","“":"\u201c","”":"\u201d","„":"\u201e","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203a","§":"\xa7","¶":"\xb6","·":"\xb7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20ac","£":"\xa3","¥":"\xa5","¢":"\xa2","¤":"\xa4","×":"\xd7","÷":"\xf7","−":"\u2212","±":"\xb1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221e","∫":"\u222b","∑":"\u2211","∏":"\u220f","√":"\u221a","∂":"\u2202","‰":"\u2030","°":"\xb0","µ":"\xb5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21b5","⇐":"\u21d0","⇑":"\u21d1","⇒":"\u21d2","⇓":"\u21d3","⇔":"\u21d4","α":"\u03b1","β":"\u03b2","γ":"\u03b3","δ":"\u03b4","ε":"\u03b5","ζ":"\u03b6","η":"\u03b7","θ":"\u03b8","ι":"\u03b9","κ":"\u03ba","λ":"\u03bb","μ":"\u03bc","ν":"\u03bd","ξ":"\u03be","ο":"\u03bf","π":"\u03c0","ρ":"\u03c1","σ":"\u03c3","τ":"\u03c4","υ":"\u03c5","φ":"\u03c6","χ":"\u03c7","ψ":"\u03c8","ω":"\u03c9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039a","Λ":"\u039b","Μ":"\u039c","Ν":"\u039d","Ξ":"\u039e","Ο":"\u039f","Π":"\u03a0","Ρ":"\u03a1","Σ":"\u03a3","Τ":"\u03a4","Υ":"\u03a5","Φ":"\u03a6","Χ":"\u03a7","Ψ":"\u03a8","Ω":"\u03a9","À":"\xc0","Á":"\xc1","Â":"\xc2","Ã":"\xc3","Ä":"\xc4","Å":"\xc5","Æ":"\xc6","Ç":"\xc7","È":"\xc8","É":"\xc9","Ê":"\xca","Ë":"\xcb","Ì":"\xcc","Í":"\xcd","Î":"\xce","Ï":"\xcf","Ð":"\xd0","Ñ":"\xd1","Ò":"\xd2","Ó":"\xd3","Ô":"\xd4","Õ":"\xd5","Ö":"\xd6","Ø":"\xd8","Ù":"\xd9","Ú":"\xda","Û":"\xdb","Ü":"\xdc","Ý":"\xdd","Þ":"\xde","ß":"\xdf","à":"\xe0","á":"\xe1","â":"\xe2","ã":"\xe3","ä":"\xe4","å":"\xe5","æ":"\xe6","ç":"\xe7","è":"\xe8","é":"\xe9","ê":"\xea","ë":"\xeb","ì":"\xec","í":"\xed","î":"\xee","ï":"\xef","ð":"\xf0","ñ":"\xf1","ò":"\xf2","ó":"\xf3","ô":"\xf4","õ":"\xf5","ö":"\xf6","ø":"\xf8","ù":"\xf9","ú":"\xfa","û":"\xfb","ü":"\xfc","ý":"\xfd","þ":"\xfe","ÿ":"\xff","¡":"\xa1","¿":"\xbf","ƒ
2":"\u0192","ˆ":"\u02c6","˜":"\u02dc","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xaa","º":"\xba","¯":"\xaf","´":"\xb4","¸":"\xb8","¹":"\xb9","²":"\xb2","³":"\xb3","¼":"\xbc","½":"\xbd","¾":"\xbe","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25ca","‾":"\u203e","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211c","ℵ":"\u2135"},ye=new RegExp(Object.keys(be).map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),"g");var xe=n(8587);function Se(e,t){if(null==e)return{};var n,r,i=(0,xe.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const ke=["children"],we=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return[];const n=(e=>{const t=[];let n=0,r="";const i=()=>{r&&(t.push({type:"Text",value:r,position:n-r.length}),r="")};for(;n<e.length;){const a=e[n];if("<"===a){const s=e.slice(n).match(/^<(\d+)>/);if(s)i(),t.push({type:"TagOpen",value:s[0],position:n,tagNumber:parseInt(s[1],10)}),n+=s[0].length;else{const s=e.slice(n).match(/^<\/(\d+)>/);s?(i(),t.push({type:"TagClose",value:s[0],position:n,tagNumber:parseInt(s[1],10)}),n+=s[0].length):(r+=a,n+=1)}}else r+=a,n+=1}return i(),t})(e),r=[],i=[],a=new Set;if(n.forEach((n=>{switch(n.type){case"Text":{const e=n.value.replace(ye,(e=>be[e])).replace(/&#(\d+);/g,((e,t)=>
2String.fromCharCode(parseInt(t,10)))).replace(/&#x([0-9a-fA-F]+);/g,((e,t)=>String.fromCharCode(parseInt(t,16))));(i.length>0?i[i.length-1].children:r).push(e)}break;case"TagOpen":{const{tagNumber:e}=n,s=(()=>{var e;if(0===i.length)return t;const n=i[i.length-1];return null!==(e=n.declaration.props)&&void 0!==e&&e.children&&Array.isArray(n.declaration.props.children)?n.declaration.props.children:n.declarations})(),o=s[e];if(!o){a.add(e);const t="<".concat(e,">");(i.length>0?i[i.length-1].children:r).push(t);break}i.push({tagNumber:e,children:[],position:n.position,declaration:o,declarations:s})}break;case"TagClose":{const{tagNumber:t}=n;if(a.has(t)){const e="</".concat(t,">");(i.length>0?i[i.length-1].children:r).push(e),a.delete(t);break}if(0===i.length)throw new ve("Unexpected closing tag </".concat(t,"> at position ").concat(n.position),n.position,e);const s=i.pop();if(s.tagNumber!==t)throw new ve("Mismatched tags: expected </".concat(s.tagNumber,"> but got </").concat(t,"> at position ").concat(n.position),n.position,e);const o=((e,t,n)=>{const{type:r,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&n){const{children:e}=i,n=Se(i,ke);return $.createElement(r,n,...t)}return 0===t.length?$.createElement(r,i):1===t.length?$.createElement(r,i,t[0]):$.createElement(r,i,...t)})(s.declaration,s.children,s.declarations);(i.length>0?i[i.length-1].children:r).push(o)}}})),i.length>0){const t=i[i.length-1];throw new ve("Unclosed tag <".concat(t.tagNumber,"> at position ").concat(t.position),t.position,e)}return r};function Te(e){var t,n,r;let{i18nKey:i,defaultTranslation:a,content:s,ns:l,values:c={},i18n:d,t:u}=e;const h=d||pe();if(!h)return re(h,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:i}),$.createElement($.Fragment,{},a);const p=u||(null===(t=h.t)||void 0===t?void 0:t.bind(h))||(e=>e);let m=l||p.ns||(null===(n=h.options)||void 0===n?void 0:n.defaultNS);m=oe(m)?[m]:m||["translation"];let f=c;null!==(r=h.options)&&void 0!==r&&null!==(r=r.interpolation)&&void 0!==r&&r.defaultVariables&&(f=c&&Object.keys(c).length>0?o(o({},c),h.options.interpolation.defaultVariables):o({},h.options.interpolation.defaultVariables));const g=p(i,o(o({defaultValue:a},f),{},{ns:m}));try{const e=we(g,s);return $.createElement($.Fragment,{},...e)}catch(v){return te(h,"ICU_TRANS_RENDER_ERROR",'IcuTrans component error for key "'.concat(i,'": ').concat(v.message),{i18nKey:i,error:v}),$.createElement($.Fragment,{},g)}}Te.displayName="IcuTransWithoutContext";var Ce=n(9461);const Ee={t:(e,t)=>{return oe(t)?t:"object"===typeof(n=t)&&null!==n&&oe(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},ready:!1},je=()=>()=>{},Ae=function(e){var t,n,r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:a}=i,{i18n:s,defaultNS:l}=(0,$.useContext)(fe)||{},c=a||s||pe();c&&!c.reportNamespaces&&(c.reportNamespaces=new ge),c||re(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=(0,$.useMemo)((()=>{var e;return o(o(o({},ue),null===c||void 0===c||null===(e=c.options)||void 0===e?void 0:e.react),i)}),[c,i]),{useSuspense:u,keyPrefix:h}=d,p=e||l||(null===c||void 0===c||null===(t=c.options)||void 0===t?void 0:t.defaultNS),m=oe(p)?[p]:p||["translation"],f=(0,$.useMemo)((()=>m),m);null===c||void 0===c||null===(n=c.reportNamespaces)||void 0===n||null===(r=n.addUsedNamespaces)||void 0===r||r.call(n,f);const g=(0,$.useRef)(0),v=(0,$.useCallback)((e=>{if(!c)return je;const{bindI18n:t,bindI18nStore:n}=d,r=()=>{g.current+=1,e()};return t&&c.on(t,r),n&&c.store.on(n,r),()=>{t&&t.split(" ").forEach((e=>c.off(e,r))),n&&n.split(" ").forEach((e=>c.store.off(e,r)))}}),[c,d]),b=(0,$.useRef)(),y=(0,$.useCallback)((()=>{if(!c)return Ee;const e=!(!c.isInitialized&&!c.initializedStoreOnce)&&f.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(re(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0)}(e,c,d))),t=i.lng||c.language,n=g.current,r=b.current;if(r&&r.ready===e&&r.lng===t&&r.keyPrefix===h&&r.revision===n)return r;const a={t:c.getFixedT(t,"fallback"===d.nsMode?f:f[0],h),ready:e,lng:t,keyPrefix:h,revision:n};return b.current=a,a}),[c,f,h,d,i.lng]),[x,S]=(0,$.useState)(0),{t:k,ready:w}=(0,Ce.useSyncExternalStore)(v,y,y);(0,$.useEffect)((()=>
2{if(c&&!w&&!u){const e=()=>S((e=>e+1));i.lng?se(c,i.lng,f,e):ae(c,f,e)}}),[c,i.lng,f,w,u,x]);const T=c||{},C=(0,$.useRef)(null),E=(0,$.useRef)(),j=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(vo){}return n},A=(0,$.useMemo)((()=>{const e=T,t=null===e||void 0===e?void 0:e.language;let n=e;e&&(C.current&&C.current.__original===e?E.current!==t?(n=j(e),C.current=n,E.current=t):n=C.current:(n=j(e),C.current=n,E.current=t));const r=[k,n,w];return r.t=k,r.i18n=n,r.ready=w,r}),[k,T,w,T.resolvedLanguage,T.language,T.languages]);if(c&&u&&!w)throw new Promise((e=>{const t=()=>e();i.lng?se(c,i.lng,f,t):ae(c,f,t)}));return A};const{slice:Ne,forEach:Pe}=[];const Re=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Le={create(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},r=encodeURIComponent(t);let i="".concat(e,"=").concat(r);if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(e))}if(n.domain){if(!Re.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(n.domain)}if(n.path){if(!Re.test(n.path))throw new TypeError("option path is invalid");i+="; Path=".concat(n.path)}if(n.expires){if("function"!==typeof n.expires.toUTCString)throw new TypeError("option expires is invali
2d");i+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"===typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(i+="; Partitioned"),i}(e,t,i)},read(e){const t="".concat(e,"="),n=document.cookie.split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Ie={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!==typeof document)return Le.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&"undefined"!==typeof document&&Le.create(n,e,r,i,a)}},De={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!==typeof window){var r;let{search:e}=window.location;!window.location.search&&(null===(r=window.location.hash)||void 0===r?void 0:r.indexOf("?"))>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const i=e.substring(1).split("&");for(let r=0;r<i.length;r++){const e=i[r].indexOf("=");if(e>0){i[r].substring(0,e)===n&&(t=i[r].substring(e+1))}}}return t}},Oe={name:"hash",lookup(e){let t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!==typeof window){const{hash:e}=window.location;if(e&&e.length>2){const a=e.substring(1);if(n){const e=a.split("&");for(let r=0;r<e.length;r++){const i=e[r].indexOf("=");if(i>0){e[r].substring(0,i)===n&&(t=e[r].substring(i+1))}}}if(t)return t;if(!t&&r>-1){var i;const t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return null===(i=t["number"===typeof r?r:0])||void 0===i?void 0:i.replace("/","")}}}return t}};let Me=null;const _e=()=>{if(null!==Me)return Me;try{if(Me="undefined"!==typeof window&&null!==window.localStorage,!Me)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(Ps){Me=!1}return Me};var Fe={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&_e())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&_e()&&window.localStorage.setItem(n,e)}};let Be=null;const Ue=()=>{if(null!==Be)return Be;try{if(Be="undefined"!==typeof window&&null!==window.sessionStorage,!Be)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(Ps){Be=!1}return Be};var ze={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Ue())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Ue()&&window.sessionStorage.setItem(n,e)}},Ge={name:"navigator",lookup(e){const t=[];if("undefined"!==typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let i=0;i<e.length;i++)t.push(e[i]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},We={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!==typeof document?document.documentElement:null);return r&&"function"===typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},He={name:"path",lookup(e){var t;let{lookupFromPathIndex:n}=e;if("undefined"===typeof window)return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(r))return;return null===(t=r["number"===typeof n?n:0])||void 0===t?void 0:t.replace("/","")}},Ve={name:"subdomain",lookup(e){var t;let{lookupFromSubdomainIndex:n}=e;const r="number"===typeof n?n+1:1,i="undefined"!==typeof window&&(null===(t=window.location)||void 0===t||null===(t=t.hostname)||void 0===t?void 0:t.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(i)return i[r]}};let Ke=!1;try{document.cookie,Ke=!0}catch(Ps){}const qe=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ke||qe.splice(1,1);class Ye{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Pe.call(Ne.call(arguments,1
2),(t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:qe,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"===typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Ie),this.addDetector(De),this.addDetector(Fe),this.addDetector(ze),this.addDetector(Ge),this.addDetector(We),this.addDetector(He),this.addDetector(Ve),this.addDetector(Oe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach((e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"===typeof n&&(n=[n]),n&&(t=t.concat(n))}})),t=t.filter((e=>void 0!==e&&null!==e&&!function(e){return"string"===typeof e&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some((t=>t.test(e)))}(e))).map((e=>this.options.convertDetectedLanguage(e))),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)})))}}Ye.type="languageDetector";const Xe={en:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Login","logout":"Logout","signUp":"Sign Up","signUpFree":"Sign Up Free","profile":"Profile","creatorDashboard":"Creator Dashboard","notifications":"Notifications","pricing":"Pricing","admin":"Admin","
2save":"Save","saving":"Saving...","cancel":"Cancel","delete":"Delete","continue":"Continue","skip":"Skip","skipForNow":"Skip for now","done":"Done","loading":"Loading...","edit":"Edit","connect":"Connect","disconnect":"Disconnect","comingSoon":"Coming Soon","connected":"Connected","back":"Back","upgrade":"Upgrade","options":"Options","confirm":"Confirm","areYouSure":"Are you sure?","appearance":"Appearance","subs":"Subs","myPage":"MyPage","clipsTab":"CLIPS","calendarTab":"CALENDAR","profileTab":"ME","company":"Company","about":"About","press":"Press","contact":"Contact","followUs":"Follow Us","termsAndConditions":"Terms & Conditions","cookiePolicy":"Cookie Policy","connectedTo":"Connected to {{platform}}!","planActivated":"Plan activated! You now have full access.","saved":"Saved!","failedToSave":"Failed to save","deleting":"Deleting...","logOut":"Log out","and":"and","download":"Download","freePlan":"Free Plan","planLabel":"{{plan}} Plan","outOfCredits":"\u26a1 Out of credits","creditsRemaining_one":"\u26a1 {{count}} credit remaining","creditsRemaining_other":"\u26a1 {{count}} credits remaining","topUpCredits":"Top-up credits","buy":"Buy","manageAccount":"Manage account","signOut":"Sign out"}'),auth:JSON.parse('{"welcomeBack":"Welcome back","signInToContinue":"Sign in to continue to Clipbait","continueWithGoogle":"Continue with Google","orContinueWithEmail":"or continue with email","enterYourEmail":"Enter your email","checkYourEmail":"Check your email","weSentCodeTo":"We sent a code to","pleaseEnter6DigitCode":"Please enter the 6-digit code","verifyAndContinue":"Verify & Continue","resendCodeIn":"Resend code in {{countdown}}s","resendCode":"Resend code","byContinuingYouAgree":"By continuing, you agree to ClipBait\'s","termsOfService":"Terms of Service","privacyPolicy":"Privacy Policy","invalidCode":"Invalid code. Try again.","invalidEmail":"Please enter a valid email address","failedToSendCode":"Failed to send code. Try again.","signingYouIn":"Signing you in...","emailOrUsername":"Email or Username","password":"Password","forgotPassword":"Forgot password?","logIn":"Log In","incorrectCredentials":"Incorrect username/email or password","emailNotVerified":"Email not verified. Check your email.","email":"Email","username":"Username","birthdayLabel":"Birthday (Month / Day / Year)","monthPlaceholder":"MM","dayPlaceholder":"DD","yearPlaceholder":"YYYY","usernameTooShort":"Username must be at least {{min}} characters.","usernameTooLong":"Username must be at most {{max}} characters.","usernameInvalidFormat":"Only letters, numbers, and underscores are allowed. No spaces.","birthdayRequired":"Please select your full birthday.","invalidEmailFormat":"Please enter a valid email address.","passwordRequired":"Password is required.","passwordTooShort":"Password must be at least 3 characters.","emailAvailable":"Email looks good.","usernameAvailable":"Username is available.","usernameTaken":"This username is already taken.","emailTaken":"An account with this email already exists.","passwordHint":"At least 3 characters.","fixErrorsToContinue":"Fix errors to continue","bySigningUpYouAgree":"By signing up, you agree to our","termsOfUse":"Terms of Use","accountCreated":"Account created!","registrationFailed":"Registration failed. Please try again.","alreadyHaveAccount":"Already have an account?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"Sign up and start connecting!","termsAgreementFull":"By signing up, you agree to our Terms, Privacy Policy, and Cookies Policy.","resetYourPassword":"Reset your password","enterEmailToReset":"Enter email of account you want to reset","pleaseEnterEmail":"Please enter an email","resetPassword":"Reset password","pleaseEnterYourEmail":"Please enter your email","couldNotStartRecovery":"Could not start recovery.","backToLogin":"Back to login","emailVerification":"Email Verification","weSent4DigitCode":"We sent a 4-digit code to","yourEmail":"your email","pleaseEnter4DigitCode":"Please enter the 4-digit code.","verifyAccount":"Verify Account","
2incorrectOrExpiredCode":"The code you entered is not correct or has expired. Try again or resend.","didntReceiveCode":"Didn\'t receive code?","resendIn":"Resend in {{timer}}s","sending":"Sending\u2026","verifying":"Verifying\u2026","newCodeSent":"A new code has been sent to your email.","missingEmail":"Missing email.","failedToResendCode":"Failed to resend code. Try again in a moment.","changePassword":"Change Password","newPassword":"New Password","confirmPassword":"Confirm password","passwordsDontMatch":"Passwords don\'t match","failedToResetPassword":"Failed to reset password","couldNotResetPassword":"Could not reset password.","invalidOrExpiredCode":"Invalid or expired code.","passwordSuccessfullySet":"Password successfully set","successTitle":"Success!","emailSentInstructions":"Your account verification email has been sent to your email. Please open this email to verify your account. If you don\'t see this email in your inbox within 15 minutes, look for it in your junk mail folder. If you find it there, please mark the email as \\"Not Junk\\".","emailVerifiedSuccessfully":"Email verified successfully","emailSuccessfullyVerifiedAlert":"Email successfully verified","notFound404":"404 Not Found"}'),onboarding:JSON.parse('{"title":"Hey there, I\'m Clipbait","subtitle":"I\'m your AI-Clipper for your streams","factHeader":"Here\'s a few things you should know about me:","fact1":"I was made by an elite editor, my skills are constantly improving","fact2":"I was made to HELP make streamers and clippers lives easier","letsGetStarted":"Let\'s Get Started","questionUserType":"Are you a Clipper or a Streamer?","questionFoundUs":"How did you find Clipbait?","imAClipper":"I\'m a Clipper","imAStreamer":"I\'m a Streamer","questionStreamerNameClipper":"What\'s the streamer\'s name?","questionStreamerNameStreamer":"What\'s your streamer name?","placeholderStreamerNameClipper":"e.g. Kai Cenat","placeholderStreamerNameStreamer":"e.g. Your display name","streamerNameHint":"This helps the AI write better hooks for clips.","questionChannelUsernameClipper":"What is the channel username of the streamer you clip for?","questionChannelUsernameStreamer":"Before we get started, what is your channel username? (plain text- No @ symbols)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"Which platform do they stream on?","questionPlatformStreamer":"Which site is your primary streaming platform?","twitchStreamer":"I stream on Twitch","rumbleStreamer":"I stream on Rumble","youtubeStreamer":"I stream on YouTube","kickStreamer":"I stream on Kick","xStreamer":"I stream on X","ganjingStreamer":"I stream on Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"Upload a profile picture","profilePictureHint":"This helps our AI identify you in the video to create better clips.","choosePhoto":"Choose Photo","uploading":"Uploading...","questionOpportunitiesClipper":"Want invites to earn income clipping?","questionOpportunitiesStreamer":"Want to hire Clipbait Clippers for your streams?","yesInterested":"Yes, I\'m interested","notRightNow":"Not right now","questionConnectPages":"Connect your pages to post clips","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","ganjingWorld":"Ganjing World","questionStreamType":"What type of content do you create?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay with commentary, clutch moments, reactions","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, interviews, reactions, commentary","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Real-life streaming, events, outdoor content","streamTypeMusic":"Music","streamTypeMusicDesc":"Live performances, DJ sets, music production","finishSetup":"Finish Setup","ownStreamer":"I stream on OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI-Powered Clip Generator","turnStreamsInto":"Turn streams into","viralClips":"viral clips","pasteUrl":"Paste URL","uploadVideo":"Upload Video","pasteYouTubeLivestream":"Paste your YouTube livestream","pasteRumbleLivestream":"Paste your Rumble livestream","pasteGanjingWorldLink":"Paste your Ganjing World link","pasteKickLink":"Paste your Kick link","pasteTwitchLink":"Paste your Twitch link","pasteXLink":"Paste your X link","generateClips":"Generate Clips","starting":"Starting...","uploadingProgress":"Uploading {{progress}}
2%...","processing":"Processing","yourClips":"Your Clips","loadingClips":"Loading clips...","noClipsYet":"No clips yet","pasteStreamUrl":"Paste a stream URL to get started","clipsReady":"{{count}} clips ready!","clipCount":"{{count}} clips","dropFileHere":"Drop your file here","dragAndDrop":"Drag & drop or click to choose","mp4OrMovMax2GB":"MP4 or MOV, max 2GB","freeTrialBanner":"You\'re on the Free Plan. Some features are limited. Upgrade to unlock all features.","pasteVideoLinkFirst":"Paste a video link first","selectPlatformInSettings":"Select your platform in Settings","setChannelUsername":"Set your channel username in Settings","onlyMp4MovSupported":"Only MP4 and MOV files are supported","fileMustBeUnder2GB":"File must be under 2GB","selectVideoFileFirst":"Select a video file first","clippingStarted":"Clipping Started!","uploadCompleteClippingStarted":"Upload complete \u2014 clipping started!","uploadFailed":"Upload failed","failedToStartClipping":"Failed to start clipping","havingTroubleWithLink":"Having trouble with that link \u2014 try downloading the video and uploading it instead, or try a YouTube link","reachedUploadLimit":"You\'ve reached your upload limit this month.","jobCancelled":"Job cancelled","projectDeleted":"Project deleted","failedToDeleteProject":"Failed to delete project","deleteProject":"Delete Project?","cannotBeUndone":"This action cannot be undone.","jobStillProcessing":"This job is still processing","jobCancelledClipsDeleted":"The job will be cancelled and All clips will be permanently deleted.","allClipsDeleted":"All clips will be permanently deleted.","creatingYourClips":"Creating your clips","wellEmailYouWhenReady":"We\'ll email you when it\'s ready","estimatingTime":"Estimating...","underTwoMinutes":"under 2 minutes","minutesRemaining":"~{{count}} min remaining","hoursMinutesRemaining":"~{{hours}}hr {{minutes}}min remaining","almostDone":"almost done...","phaseDownloading":"Downloading video...","phaseDownloaded":"Download complete","ph
2aseExtractingAudio":"Extracting audio...","phaseTranscribing":"Transcribing audio...","phaseTranscribingLong":"(this is the slow step for long streams)","phaseAnalyzing":"AI selecting best moments...","phaseRendering":"Rendering clips...","phaseDone":"Done!","tryUploadingInstead":"Try uploading instead","processingStatus":"Processing...","clipsReadyCount":"{{count}} clips ready","schedule":"Schedule","post":"Post","goodClip":"Good clip","badClip":"Bad clip","downloadClip":"Download clip","moreOptions":"More options","clipDefaultTitle":"Clip {{number}}","editCaption":"Edit caption","editingDesktopOnly":"Editing available on desktop","captionSaved":"Caption saved!","funMessages":{"goGrabCoffee":"Go grab a coffee","timeForStretch":"Time for a stretch","takeQuickWalk":"Take a quick walk","hydrateYourself":"Hydrate yourself","doPushups":"Do some pushups","callYourMom":"Call your mom","petYourDog":"Pet your dog","goForSwim":"Go for a swim","touchSomeGrass":"Touch some grass","checkYourPosture":"Check your posture"},"funMessagesModal":{"goForSwim":"Go for a swim while we work our magic","perfectTimeForCoffee":"Perfect time to grab a coffee","quickStretch":"Maybe do a quick stretch?","hydrationCheck":"Hydration check! Drink some water","takeWalk":"Take a walk, we got this","callSomeone":"Call someone you love","petYourPet":"Pet your pet if you have one","touchGrass":"Touch some grass, literally","jumpingJacks":"Do 10 jumping jacks","victoryDance":"Practice your victory dance","deepBreaths":"Deep breaths... you\'re doing great","timeToSnack":"This is your sign to snack"},"downloadFailed":"Download failed, please try again","editClip":"Edit clip","clipEditor":"Clip Editor","trimIn":"In","trimOut":"Out","previewTrim":"Preview Trim","saveCaption":"Save","saveAndDownload":"Save & Download","export":"Export","exportComplete":"Export complete!","exportNotSupported":"Export not supported in this browser","backToClips":"Back","uploadLimitReached":"Upload Limit Reached","limitResets":"Your limit resets on {{date}}","gotIt":"Got it","failed":"Failed","creditsRefunded":"Credits refunded","tryAgainDifferentLink":"Try again or use a different link.","noSpeechInVideo":"The link you pasted had no spoken words. Try one where the creator is speaking.","expiresToday":"Expires today","expiresTomorrow":"Expires tomorrow","expiresInDays":"Expires in {{count}} days","retry":"Retry","cancelJobBtn":"Cancel","hookScore":"Hook Score","best":"Best","clipsSelected":"{{count}} selected","switchToFileUpload":"Switch to file upload","switchToURL":"Switch to URL","selectContentTypeFirst":"Please select a content type first.","livestreamsNotSupported":"Live streams aren\'t supported yet \u2014 please use a VOD or recorded video.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"Music","documentary":"Documentary"},"cancelThisJob":"Cancel this job?","deleteTheseAssets":"Delete these assets?","willStopProcessingRemoveJob":"This will stop processing and remove the job.","keepGoing":"Keep going","noKeepThem":"No, keep them","yesCancelJob":"Yes, cancel job","yesDeleteForever":"Yes, delete forever","titleCaption":"Title Caption","information":"Information","duration":"Duration","platform":"Platform","creator":"Creator","rateThisClip":"Rate this clip","type":"Type","format":"Format","clipsLabel":"Clips","slowConnection":"Slow connection","couldntLoad":"Couldn\'t load","tapToRetry":"Tap to retry","clipsDeleted_one":"{{count}} clip deleted","clipsDeleted_other":"{{count}} clips deleted"}'),schedule:JSON.parse('{"shareClip":"Share Clip","loadingPlatforms":"Loading platforms...","noConnectedPlatforms":"No connected platforms.","connectSocialsToSchedule":"Connect your social media accounts to schedule posts.","connectYourAccounts":"Connect your accounts","postTo":"Post to:","deselectAll":"Deselect All","selectAll":"Select All","caption":"Caption","writeCaptionPlaceholder":"Write a caption for your post...","scheduleAction":"Schedule","saveAndSchedule":"Save and schedule post","postAction":"Post","publishImmediately":"Publish immediately","scheduling":"Scheduling...","publishing":"Publishing...","viewPost":"View Post","postedSuccessfully":"Posted Successfully!","partiallyPosted":"Partially Posted","failedToPost":"Failed to Post","selectAtLeastOnePlatform":"Select at least one platform","selectATime":"Select a time","selectFutureTime":"Please select a future time","postScheduled":"Post scheduled!","failedToSchedule":"Failed to schedule","failedToPublish":"Failed to publish","postedSuccess":"Posted successfully!","postedToSomePlatforms":"Posted to some platforms","failedToPostError":"Failed to post","scheduledPost":"Scheduled Post","postingTo":"Posting to","writeCaptionShort":"Write a caption...","saveChanges":"Save Changes","cancelScheduledPost":"Cancel this scheduled post?","clipWontBePosted":"This clip won\'t be posted to your selected platforms.","keepIt":"Keep It","cancelling":"Cancelling...","yesCancelPost":"Yes, Cancel Post","changesSaved":"Changes saved","failedToSaveChanges":"Failed to save changes","postCancelled":"Post cancelled","failedToCancelPost":"Failed to cancel post","todayAt":"Today at","tomorrowAt":"Tomorrow at","upcomingClips":"Upcoming Clips","noScheduledClipsThisMonth":"No scheduled clips this month.","scheduleClipsHint":"Schedule clips after they finish rendering.","cancelScheduledPostConfirm":"Cancel Scheduled Post?","cancelPostMessage":"This will remove the post from your schedule. You can always reschedule it later.","cancelPost":"Cancel Post","sun":"Sun","mon":"Mon","tue":"Tue","wed":"Wed","thu":"Thu","fri":"Fri","sat":"Sat","untitledCl
2ip":"Untitled Clip","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Connected Accounts","linkSocialsToPost":"Link your socials to post clips directly.","yourChannel":"Your Channel","watermarkDescription":"Your profile picture helps AI identify you in the video to create better clips.","streamerName":"Streamer Name","placeholderStreamerName":"e.g. Kai Cenat","streamerNameHint":"The name of the streamer you clip for. This helps the AI write better hooks.","channelUsername":"Channel Username","placeholderChannelUsername":"Your streaming username","platform":"Platform","selectPlatform":"Select Platform","tapToChangePhoto":"Tap to change photo","pleaseSelectImageFile":"Please select an image file","imageMustBeLess5MB":"Image must be less than 5MB","profilePictureUpdated":"Profile picture updated!","failedToUploadPicture":"Failed to upload picture","disconnectedFrom":"Disconnected from {{platform}}","failedToDisconnect":"Failed to disconnect","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","socialGanjingWorld":"Ganjing World","subscriptionSettings":"Subscription Settings","stripeConnectionStatus":"Stripe Connection Status","stripeConnectedMessage":"Your Stripe account is connected and ready to receive payments","manageStripeAccount":"Manage Stripe Account","stripeConnectInstructions":"Connect your Stripe account to start receiving subscription payments...","stripeSetupWarning":"IMPORTANT: You must complete the entire Stripe setup process...","stripeSupportMessage":"Having issues? Contact support at [email protected]...","connectingToStripe":"Connecting to Stripe...","connectStripeAccount":"Connect Stripe Account","enableSubscriptions":"Enable Subscriptions","monthlySubscriptionPrice":"Monthly Subscription Price (USD)","subscriptionDescription":"Subscription Description","describeSubscriptionBenefits":"Describe what subscribers will get access to...","saveSettings":"Save Settings","settingsSaved":"Settings saved successfully!","savingFailed":"Failed to save settings. Please try again.","stripeConnectionError":"Failed to connect Stripe. Please try again.","stripeDashboardError":"Failed to open Stripe dashboard. Please try again.","stripeSetupError":"Failed to complete Stripe setup. Please try again.","xsubscribeAdmin":"XSubscribe Admin","preview":"Preview","fetchLinksError":"Failed to fetch user links","deleteLinkError":"Failed to delete link","orderUpdateSuccess":"Order values updated on the server","orderUpdateError":"Failed to update order values on the server","addLinkError":"Failed to add link","profileSection":"Profile","pickAnImage":"Pick an Image","remove":"Remove","usernameInputPlaceholder":"Your X handle (@username)","bioInputPlaceholder":"Why Should People Subscribe?","getUnlimitedCustomization":"Get unlimited customization","verifiedCheckmark":"Verified Checkmark","customBackgroundImages":"Custom background images","removeXSubscribeLogo":"Remove the XSubscribe logo","dollarPerMonth":"$9 /month after","flatColour":"Flat Colour","image":"Image","pickAColor":"Pick a Color","hideXSubscribeLogo":"Hide the XSubscribe logo","errorUpdatingProfileTitle":"Error updating profile title","errorUpdatingBio":"Error updating profile title","errorSavingBackgroun
2dColor":"Error saving background color","errorUpdatingEffects":"Error updating background effects","errorUpdatingLogo":"Error updating user logo","invalidUser":"currentUser is not valid.","errorFetchingLogoStatus":"Error fetching initial logo status","errorFetchingUserData":"Error fetching user data","errorFetchingProfilePic":"Error fetching profile picture","uploadFailed":"Upload failed","accountSettings":"Account Settings","manageSubscription":"Manage Subscription","manageSubscriptionDesc":"Update payment method, view invoices, or cancel","deleteAccount":"Delete Account","deleteAccountWarning":"This action cannot be undone. All your data will be permanently deleted.","typeDeleteToConfirm":"Type DELETE to confirm","accountDeleted":"Account deleted successfully","failedToDeleteAccount":"Failed to delete account","failedToOpenBilling":"Failed to open billing portal","yourBrands":"Your Brands","addBrand":"Add Brand","addBrandDesc":"Create a new brand with its own social connections and settings.","brandName":"Brand Name","brandNamePlaceholder":"Enter brand name","createBrand":"Create Brand","switchBrand":"Switch Brand","deleteBrand":"Delete Brand","deleteBrandDesc":"Remove \\"{{brand}}\\" and all its connections","deleteBrandWarning":"Are you sure you want to delete \\"{{brand}}\\"? All its social connections and settings will be lost. You\'ll be switched to another brand.","cannotDeleteLastBrand":"Cannot delete your only brand","brandCreated":"Brand created!","brandSwitched":"Brand switched!","brandDeleted":"Brand deleted","failedToCreateBrand":"Failed to create brand","failedToSwitchBrand":"Failed to switch brand","failedToDeleteBrand":"Failed to delete brand","captionPresets":"Caption Style","captionPresetsDesc":"Set the default look for captions on your clips. New clips will use your active preset.","presetName":"Preset Name","presetNamePlaceholder":"e.g. Bold Red","addPreset":"Add Preset","editPreset":"Edit","deletePreset":"Delete","createPreset":"Create Preset","presetCreated":"Preset created!","presetActivated":"Caption style switched!","presetDeleted":"Preset deleted","cannotDeleteLastPreset":"Cannot delete your only preset","failedToSwitchPreset":"Failed to switch preset","failedToDeletePreset":"Failed to delete preset","captionPreview":"This is your caption preview","captionColor":"Color","captionFont":"Font","captionPosition":"Position","captionWidth":"Width","streamType":"Content Type","streamTypeHint":"What kind of content do you create? This helps the AI tailor clips for your style.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay with commentary, clutch moments, reactions","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, interviews, reactions, commentary","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Real-life streaming, events, outdoor content","streamTypeMusic":"Music","streamTypeMusicDesc":"Live performances, DJ sets, music production","streamTypeDocumentary":"Documentary","streamTypeDocumentaryDesc":"Documentaries, mini-docs, and films","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Unlock Clipbait","getFullAccess":"Get full access to AI-powered clip generation","monthly":"Monthly","annual":"Annual","save15Percent":"Save 15%","perMonth":"/month","perMonthShort":"/mo","billedAsPerYear":"Billed as ${{amount}}/year","upload30Videos":"Upload 30 videos monthly","upTo2Hours":"Up to 2 hours long videos","generate300Clips":"Generate 300 clips monthly","downloadAndSchedule":"Download & schedule clips","upTo5Accounts":"Up to 5 brand accounts","getStarted":"Get Started","redirecting":"Redirecting...","exclusiveOffer":"EXCLUSIVE OFFER","russellBrandsPick":"Russell Brand\'s Pick","get10PercentOff":"Get 10% off Clipbait Pro \u2014 exclusive for Russell\'s audience","discountApplied":"10% off applied automatically","claim10Off":"Claim 10% Off","noThanksFullPrice":"No thanks, I\'ll pay full price","generateWithoutLimits":"Generate without limits","upgradePlan":"Upgrade Plan","buyCredits":"Buy Credits","creditsNeverExpireNote":"Credits never expire and are used after your monthly plan allowance runs out.","mostPopular":"Most Popular","bestValue":"Best Value","generationsPerMonth":"{{count}} generations/mo","twentyPercentOff":"20% off","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"Save 16%","save26Percent":"Save 26%","perMonthBilledAnnually":"per month, billed annually"}'),pages:JSON.parse('{"foundersStoryTitle":"Our Founders\' Story","foundersStoryContent":"In 2021, Spirit encountered the stifling grip of censorship on mainstream platforms. Determined to find a space where free expression thrived, he discovered a platform that resonated with his beliefs in open dialogue and creative freedom. This pivotal moment sparked the idea for what would become XSubscribe \u2014 a platform where creators and their communities could connect authentically, without fear of censorship. Spirit, with his unique vision and passion for empowering creators, laid the foundation for a new era in content monetization. As XSubscribe continues to evolve, it remains rooted in the belief that every voice deserves to be heard. Whether you\'re a seasoned creator or just starting out, XSubscribe is here to help you build a sustainable career doing what you love.","termsTitle":"Terms and Conditions","lastUpdatedTerms":"Last updated: Sunday Jan 7, 2024","termsSection1Title":"1. Welcome to XSubscribe:","termsSection1Content":"These Terms of Use (\\"Terms\\") govern the use of XSubscribe services, including the website, APIs, mobile apps, and all related services. By using our platform, you agree to follow these Terms.","termsSection2Title":"2. Changes to Terms:","termsSection2Content":"XSubscribe may update these Terms from time to time. You will be notified of any major changes, and continued use of the platform after changes means you accept the new terms.","termsSection3Title":"3. Your Account:","termsSection3Content":"You must be 18 years or older to use XSubscribe, or have permission from a parent/guardian. Keep your account information up to date and secure your password. You\'re responsible for what happens on your account.","termsSection4Title":"4. Your Username:","termsSection4Content":"Usernames must respect others\' rights. XSubscribe can reclaim or change usernames if needed.","termsSection5Title":"5. Managing Your Plan:","termsSection5Content":"XSubscribe offers free and paid plans. Paid plans require a valid payment method. You can switch between plans.","termsSection6Title":"6. Your Content:","termsSection6Content":"You\'re responsible for your content. It must follow our guidelines and the law. XSubscribe may remove content that violates these standards.","termsSection7Title":"7. What we can do with Your Content:","termsSection7Content":"XSubscribe has a license to use, distribute, and display your content as part of running the platform. You can control your content through privacy settings.","termsSection8Title":"8. Suspension or Cancellation of Your Account:","termsSection8Content":"XSubscribe can suspend or cancel accounts for rule violations. You can also cancel your own account.","termsSection9Title":"9. Your Responsibility for Your Visitors and Customers:","termsSection9Content":"You\'re responsible for the experience of people who visit or interact with your profile.","termsSection10Title":"10. Feedback:","termsSection10Content":"If you provide feedback, XSubscribe can use it freely. You\'re not required to give feedback.","termsSection11Title":"11. Our Platform:","termsSection11Content":"You get a limited right to use the platform for your content business. Don\'t misuse it or try to harm it.","termsSection12Title":"12. Fees and Payment:","termsSection12Content":"Subscription fees, transaction fees, and payment terms are detailed in the Fee Schedule.","termsSection13Title":"13. Privacy:","termsSection13Content":"XSubscribe\'s Privacy Notice outlines how we handle your information.","termsSection14Title":"14. Confidentiality:","termsSection14Content":"Keep confidential any non-public information shared by XSubscribe.","termsSection15Title":"15. Liability:","termsSection15Content":"You\'re responsible for your use of the platform. XSubscribe\'s liability is limited.","termsSection16Title":"16. Disclaimers:","termsSection16Content":"The platform is provided \\"AS IS\\" without warranties.","termsSection17Title":"17. Third Party Services:","termsSection17Content":"XSubscribe works with third-party services. Their own terms and policies apply.","termsSection18Title":"18. App Terms:","termsSection18Content":"Specific terms apply when using the XSubscribe mobile app.","termsSection19Title":"19. Open Source:","termsSection19Content":"The app may include open-source software with its own licenses.","termsSection20Title":"20. A Few Last Things:","termsSection20Content":"Certain laws may apply depen
2ding on your location. These Terms represent the full agreement between you and XSubscribe.","furtherInformation":"Where can you get further information?","termsContactInstructions":"If you have any questions about our Terms and Conditions, please contact us:","cookieNoticeTitle":"Cookie Notice","lastUpdatedCookies":"Last updated: Sunday Jan 7, 2023","cookieIntroduction":"This Cookie Notice explains how XSubscribe LLC uses cookies and similar technologies.","whatAreCookies":"What are cookies?","cookieDefinition":"Cookies are small data files stored on your device when you visit a website.","thirdPartyCookies":"Cookies set by parties other than XSubscribe are called third-party cookies.","whyUseCookies":"Why do we use cookies?","cookieUsage":"We use first-party and third-party cookies for several purposes.","cookieContactInstructions":"If you have any questions about our use of cookies, please contact us:","contactSpiritTitle":"Contact Spirit","contactInstructions":"Hey Ye you can contact me in several ways listed below:","searchTitle":"SEARCH","searchPlaceholder":"SEARCH STREAMERS\u2026","searchResults":"RESULTS","suggestedStreamers":"SUGGESTED STREAMERS","profileTitle":"Profile","onlyJpgPngAllowed":"Only JPG/PNG allowed","maxFileSize2MB":"Max file size is 2MB","selectAvatar":"SELECT AVATAR","updating":"UPDATING...","demoSubscriptionAlert":"This is a Demo. You cannot subscribe to this creator.","subscribe":"Subscribe","perMonth":"/month","subscribed":"\u2713 Subscribed","successfullySubscribedTo":"Successfully subscribed to","weLockedIn":"We locked in.","createYourXSubscribe":"Create Your XSubscribe","pageNotFoundHeading":"The page you\'re looking for doesn\'t exist.","pageNotFoundMessage":"Want this to be your username?","createXSubscribeNow":"Create your XSubscribe now.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"Loading SuperChats...","recentSuperchats":"Recent SuperChat messages and tips","noSuperchatsPart1":"No SuperChats yet for","noSuperchatsPart2":"Be the first to send a SuperChat!","loadingSuperChatsError":"Failed to load SuperChats","addComment":"ADD A COMMENT\u2026","signInToComment":"SIGN IN TO COMMENT","send":"Send","signIn":"Sign in","beTheFirstToComment":"BE THE FIRST TO COMMENT.","writeReply":"Write a reply\u2026","reply":"Reply","unlike":"Unlike","like":"Like","comments":"comments","shareThisStream":"SHARE THIS STREAM","goTo":"Go to","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Messages","emailShare":"Email","copyLink":"Copy link","more":"More","deleting":"Deleting\u2026","anon":"Anon","noCommentsYet":"No comments yet.","sendSuperChat":"Send SuperChat","amountDollar":"Amount ($)","messageMaxChars":"Message (max 200 characters)","typeSuperChatMessage":"Type your SuperChat message...","processingPayment":"Processing...","sendAmount":"Send ${{amount}} SuperChat","pleaseLogInToSuperChat":"Please log in to send SuperChat","pleaseEnterMessage":"Please enter a message","amountMustBeAtLeast1":"Amount must be at least $1","failedToCreateCheckout":"Failed to create checkout session","highlightedFor":"Highlighted for"}'),notifications:JSON.parse('{"notifications":"Notifications","viaEmail":"VIA EMAIL","receiveNotificationThroughEmail":"RECEIVE NOTIFICATION THROUGH EMAIL","all":"All","unread":"Unread","noUnreadNotifications":"No unread notifications.","noNotificationsYet":"No notifications yet.","couldntLoadNotifications":"Couldn\'t load notifications from server","someone":"Someone","isLiveNow":"is live now","postedReplay":"posted a replay","repliedToComment":"replied to your comment","likedYourComment":"liked your comment","activity":"activity","secondsAgo":"{{count}}s","minutesAgo":"{{count}}m","hoursAgo":"{{count}}h","daysAgo":"{{count}}d"}')},"zh-TW":{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\u767b\u5165","logout":"\u767b\u51fa","signUp":"\u8a3b\u518a","signUpFree":"\u514d\u8cbb\u8a3b\u518a","profile":"\u500b\u4eba\u6a94\u6848","creatorDashboard":"\u5275\u4f5c\u8005\u5100\u8868\u677f","notifications":"\u901a\u77e5","pricing":"\u65b9\u6848\u50f9\u683c","admin":"\u7ba1\u7406\u54e1","save":"\u5132\u5b58","saving":"\u5132\u5b58\u4e2d...","cancel":"\u53d6\u6d88","delete":"\u522a\u9664","continue":"\u7e7c\u7e8c","skip":"\u7565\u904e","skipForNow":"\u66ab\u6642\u7565\u904e","done":"\u5b8c\u6210","loading":"\u8f09\u5165\u4e2d...","edit":"\u7de8\u8f2f","connect":"\u9023\u7d50","disconnect":"\u4e2d\u65b7\u9023\u7d50","comingSoon":"\u5373\u5c07\u63a8\u51fa","connected":"\u5df2\u9023\u7d50","back":"\u8fd4\u56de","upgrade":"\u5347\u7d1a","options":"\u9078\u9805","confirm":"\u78ba\u8a8d","areYouSure":"\u60a8\u78ba\u5b9a\u55ce\uff1f","appearance":"\u5916\u89c0","subs":"\u8a02\u95b1","myPage":"\u6211\u7684\u9801\u9762","clipsTab":"\u526a\u8f2f","calendarTab":"\u65e5\u66c6","profileTab":"\u500b\u4eba\u6a94\u6848","company":"\u516c\u53f8","about":"\u95dc\u65bc","press":"\u65b0\u805e","contact":"\u806f\u7d61","followUs":"\u8ffd\u8e64\u6211\u5011","termsAndConditions":"\u689d\u6b3e\u8207\u7d30\u5247","cookiePolicy":"Cookie \u653f\u7b56","connectedTo":"\u5df2\u9023\u7d50\u81f3 {{platform}}\uff01","planActivated":"\u65b9\u6848\u5df2\u555f\u7528\uff01\u60a8\u73fe\u5728\u64c1\u6709\u5b8c\u6574\u5b58\u53d6\u6b0a\u9650\u3002","saved":"\u5df2\u5132\u5b58\uff01","failedToSave":"\u5132\u5b58\u5931\u6557","deleting":"\u522a\u9664\u4e2d...","logOut":"\u767b\u51fa","download":"\u4e0b\u8f09","freePlan":"\u514d\u8cbb\u65b9\u6848","planLabel":"{{plan}} \u65b9\u6848","outOfCredits":"\u26a1 \u9ede\u6578\u7528\u5b8c","creditsRemaining_one":"\u26a1 \u5269\u9918 {{count}} \u9ede","creditsRemaining_other":"\u26a1 \u5269\u9918 {{count}} \u9ede","topUpCredits":"\u88dc\u5145\u9ede\u6578","buy":"\u8cfc\u8cb7","manageAccount":"\u7ba1\u7406\u5e33\u865f","signOut":"\u767b\u51fa"}'),auth:JSON.parse('{"welcomeBack":"\u6b61\u8fce\u56de\u4f86","signInToContinue":"\u767b\u5165\u4ee5\u7e7c\u7e8c\u4f7f\u7528 Clipbait","continueWithGoogle":"\u900f\u904e Google \u7e7c\u7e8c","orContinueWithEmail":"\u6216\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u7e7c\u7e8c","enterYourEmail":"\u8f38\u5165\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","checkYourEmail":"\u8acb\u6aa2\u67e5\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","weSentCodeTo":"\u6211\u5011\u5df2\u5c07\u9a57\u8b49\u78bc\u767c\u9001\u81f3","pleaseEnter6DigitCode":"\u8acb\u8f38\u5165 6 \u4f4d\u6578\u9a57\u8b49\u78bc","verifyAndContinue":"\u9a57\u8b49\u4e26\u7e7c\u7e8c","resendCodeIn":"{{countdown}} \u79d2\u5f8c\u91cd\u65b0\u767c\u9001\u9a57\u8b49\u78bc","resendCode":"\u91cd\u65b0\u767c\u9001\u9a57\u8b49\u78bc","byContinuingYouAgree":"\u7e7c\u7e8c\u5373\u8868\u793a\u60a8\u540c\u610f ClipBait \u7684","termsOfService":"\u670d\u52d9\u689d\u6b3e","privacyPolicy":"\u96b1\u79c1\u6b0a\u653f\u7b56","invali
2dCode":"\u9a57\u8b49\u78bc\u7121\u6548\uff0c\u8acb\u91cd\u8a66\u3002","invalidEmail":"\u8acb\u8f38\u5165\u6709\u6548\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740","failedToSendCode":"\u9a57\u8b49\u78bc\u767c\u9001\u5931\u6557\uff0c\u8acb\u91cd\u8a66\u3002","signingYouIn":"\u6b63\u5728\u767b\u5165...","emailOrUsername":"\u96fb\u5b50\u90f5\u4ef6\u6216\u4f7f\u7528\u8005\u540d\u7a31","password":"\u5bc6\u78bc","forgotPassword":"\u5fd8\u8a18\u5bc6\u78bc\uff1f","logIn":"\u767b\u5165","incorrectCredentials":"\u4f7f\u7528\u8005\u540d\u7a31/\u96fb\u5b50\u90f5\u4ef6\u6216\u5bc6\u78bc\u4e0d\u6b63\u78ba","emailNotVerified":"\u96fb\u5b50\u90f5\u4ef6\u5c1a\u672a\u9a57\u8b49\uff0c\u8acb\u6aa2\u67e5\u60a8\u7684\u4fe1\u7bb1\u3002","email":"\u96fb\u5b50\u90f5\u4ef6","username":"\u4f7f\u7528\u8005\u540d\u7a31","birthdayLabel":"\u751f\u65e5\uff08\u6708 / \u65e5 / \u5e74\uff09","monthPlaceholder":"\u6708","dayPlaceholder":"\u65e5","yearPlaceholder":"\u5e74","usernameTooShort":"\u4f7f\u7528\u8005\u540d\u7a31\u81f3\u5c11\u9700\u8981 {{min}} \u500b\u5b57\u5143\u3002","usernameTooLong":"\u4f7f\u7528\u8005\u540d\u7a31\u6700\u591a {{max}} \u500b\u5b57\u5143\u3002","usernameInvalidFormat":"\u50c5\u5141\u8a31\u4f7f\u7528\u5b57\u6bcd\u3001\u6578\u5b57\u548c\u5e95\u7dda\uff0c\u4e0d\u53ef\u5305\u542b\u7a7a\u683c\u3002","birthdayRequired":"\u8acb\u9078\u64c7\u60a8\u7684\u5b8c\u6574\u751f\u65e5\u3002","invalidEmailFormat":"\u8acb\u8f38\u5165\u6709\u6548\u7684\u96fb\u5b50\u90f5\u4ef6\u5730\u5740\u3002","passwordRequired":"\u8acb\u8f38\u5165\u5bc6\u78bc\u3002","passwordTooShort":"\u5bc6\u78bc\u81f3\u5c11\u9700\u8981 3 \u500b\u5b57\u5143\u3002","emailAvailable":"\u6b64\u96fb\u5b50\u90f5\u4ef6\u53ef\u4ee5\u4f7f\u7528\u3002","usernameAvailable":"\u6b64\u4f7f\u7528\u8005\u540d\u7a31\u53ef\u4ee5\u4f7f\u7528\u3002","usernameTaken":"\u6b64\u4f7f\u7528\u8005\u540d\u7a31\u5df2\u88ab\u4f7f\u7528\u3002","emailTaken":"\u4f7f\u7528\u6b64\u96fb\u5b50\u90f5\u4ef6\u7684\u5e33\u865f\u5df2\u5b58\u5728\u3002","passwordHint":"\u81f3\u5c11 3 \u500b\u5b57\u5143\u3002","fixErrorsToContinue":"\u8acb\u4fee\u6b63\u932f\u8aa4\u5f8c\u7e7c\u7e8c","bySigningUpYouAgree":"\u8a3b\u518a\u5373\u8868\u793a\u60a8\u540c\u610f\u6211\u5011\u7684","termsOfUse":"\u4f7f\u7528\u689d\u6b3e","accountCreated":"\u5e33\u865f\u5df2\u5efa\u7acb\uff01","registrationFailed":"\u8a3b\u518a\u5931\u6557\uff0c\u8acb\u91cd\u8a66\u3002","alreadyHaveAccount":"\u5df2\u6709\u5e33\u865f\uff1f","starterPlanTitle":"XSubscribe.bio \u5165\u9580\u7248","proPlanTitle":"XSubscribe.bio \u5c08\u696d\u7248","premiumPlanTitle":"XSubscribe.bio \u9ad8\u7d1a\u7248","signUpAndStart":"\u7acb\u5373\u8a3b\u518a\uff0c\u958b\u59cb\u9023\u7d50\uff01","termsAgreementFull":"\u8a3b\u518a\u5373\u8868\u793a\u60a8\u540c\u610f\u6211\u5011\u7684\u689d\u6b3e\u3001\u96b1\u79c1\u6b0a\u653f\u7b56\u548c Cookie \u653f\u7b56\u3002","resetYourPassword":"\u91cd\u8a2d\u60a8\u7684\u5bc6\u78bc","enterEmailToReset":"\u8f38\u5165\u60a8\u8981\u91cd\u8a2d\u7684\u5e33\u865f\u96fb\u5b50\u90f5\u4ef6","pleaseEnterEmail":"\u8acb\u8f38\u5165\u96fb\u5b50\u90f5\u4ef6","resetPassword":"\u91cd\u8a2d\u5bc6\u78bc","pleaseEnterYourEmail":"\u8acb\u8f38\u5165\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","couldNotStartRecovery":"\u7121\u6cd5\u958b\u59cb\u5e33\u865f\u5fa9\u539f\u3002","backToLogin":"\u8fd4\u56de\u767b\u5165","emailVerification":"\u96fb\u5b50\u90f5\u4ef6\u9a57\u8b49","weSent4DigitCode":"\u6211\u5011\u5df2\u767c\u9001 4 \u4f4d\u6578\u9a57\u8b49\u78bc\u81f3","yourEmail":"\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6","pleaseEnter4DigitCode":"\u8acb\u8f38\u5165 4 \u4f4d\u6578\u9a57\u8b49\u78bc\u3002","verifyAccount":"\u9a57\u8b49\u5e33\u865f","incorrectOrExpiredCode":"\u60a8\u8f38\u5165\u7684\u9a57\u8b49\u78bc\u4e0d\u6b63\u78ba\u6216\u5df2\u904e\u671f\uff0c\u8acb\u91cd\u8a66\u6216\u91cd\u65b0\u767c\u9001\u3002","didntReceiveCode":"\u6c92\u6709\u6536\u5230\u9a57\u8b49\u78bc\uff1f","resendIn":"{{timer}} \u79d2\u5f8c\u91cd\u65b0\u767c\u9001","sending":"\u767c\u9001\u4e2d\u2026","verifying":"\u9a57\u8b49\u4e2d\u2026","newCodeSent":"\u65b0\u7684\u9a57\u8b49\u78bc\u5df2\u767c\u9001\u81f3\u60a8\u7684\u96fb\u5b50\u90f5\u4ef6\u3002","missingEmail":"\u7f3a\u5c11\u96fb\u5b50\u90f5\u4ef6\u3002","failedToResendCode":"\u91cd\u65b0\u767c\u9001\u9a57\u8b49\u78bc\u5931\u6557\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\u3002","changePassword":"\u8b8a\u66f4\u5bc6\u78bc","newPassword":"\u65b0\u5bc6\u78bc","confirmPassword":"\u78ba\u8a8d\u5bc6\u78bc","passwordsDontMatch":"\u5bc6\u78bc\u4e0d\u76f8\u7b26","failedToResetPassword":"\u91cd\u8a2d\u5bc6\u78bc\u5931\u6557","couldNotResetPassword":"\u7121\u6cd5\u91cd\u8a2d\u5bc6\u78bc\u3002","invali
2dOrExpiredCode":"\u9a57\u8b49\u78bc\u7121\u6548\u6216\u5df2\u904e\u671f\u3002","passwordSuccessfullySet":"\u5bc6\u78bc\u5df2\u6210\u529f\u8a2d\u5b9a","successTitle":"\u6210\u529f\uff01","emailSentInstructions":"\u5e33\u865f\u9a57\u8b49\u96fb\u5b50\u90f5\u4ef6\u5df2\u767c\u9001\u81f3\u60a8\u7684\u4fe1\u7bb1\u3002\u8acb\u958b\u555f\u8a72\u90f5\u4ef6\u4ee5\u9a57\u8b49\u60a8\u7684\u5e33\u865f\u3002\u5982\u679c\u60a8\u5728 15 \u5206\u9418\u5167\u672a\u5728\u6536\u4ef6\u5323\u4e2d\u770b\u5230\u6b64\u90f5\u4ef6\uff0c\u8acb\u6aa2\u67e5\u5783\u573e\u90f5\u4ef6\u8cc7\u6599\u593e\u3002\u5982\u679c\u5728\u5783\u573e\u90f5\u4ef6\u4e2d\u627e\u5230\uff0c\u8acb\u5c07\u5176\u6a19\u8a18\u70ba\u300c\u975e\u5783\u573e\u90f5\u4ef6\u300d\u3002","emailVerifiedSuccessfully":"\u96fb\u5b50\u90f5\u4ef6\u9a57\u8b49\u6210\u529f","emailSuccessfullyVerifiedAlert":"\u96fb\u5b50\u90f5\u4ef6\u5df2\u6210\u529f\u9a57\u8b49","notFound404":"404 \u627e\u4e0d\u5230\u9801\u9762"}'),onboarding:JSON.parse('{"title":"\u55e8\uff0c\u6211\u662f Clipbait","subtitle":"\u6211\u662f\u60a8\u76f4\u64ad\u7684 AI \u526a\u8f2f\u52a9\u624b","factHeader":"\u4ee5\u4e0b\u662f\u60a8\u9700\u8981\u4e86\u89e3\u7684\u5e7e\u4ef6\u4e8b\uff1a","fact1":"\u6211\u7531\u9802\u5c16\u526a\u8f2f\u5e2b\u6253\u9020\uff0c\u6280\u80fd\u6301\u7e8c\u63d0\u5347\u4e2d","fact2":"\u6211\u7684\u76ee\u7684\u662f\u8b93\u5be6\u6cc1\u4e3b\u548c\u526a\u8f2f\u5e2b\u7684\u5de5\u4f5c\u66f4\u8f15\u9b06","letsGetStarted":"\u958b\u59cb\u5427","questionUserType":"\u60a8\u662f\u526a\u8f2f\u5e2b\u9084\u662f\u5be6\u6cc1\u4e3b\uff1f","imAClipper":"\u6211\u662f\u526a\u8f2f\u5e2b","imAStreamer":"\u6211\u662f\u5be6\u6cc1\u4e3b","questionStreamerNameClipper":"\u5be6\u6cc1\u4e3b\u7684\u540d\u5b57\u662f\u4ec0\u9ebc\uff1f","questionStreamerNameStreamer":"\u60a8\u7684\u5be6\u6cc1\u4e3b\u540d\u7a31\u662f\u4ec0\u9ebc\uff1f","placeholderStreamerNameClipper":"\u4f8b\u5982\uff1aKai Cenat","placeholderStreamerNameStreamer":"\u4f8b\u5982\uff1a\u60a8\u7684\u986f\u793a\u540d\u7a31","streamerNameHint":"\u9019\u80fd\u5e6b\u52a9 AI \u70ba\u526a\u8f2f\u64b0\u5beb\u66f4\u597d\u7684\u6a19\u984c\u3002","questionChannelUsernameClipper":"\u60a8\u526a\u8f2f\u7684\u5be6\u6cc1\u4e3b\u983b\u9053\u4f7f\u7528\u8005\u540d\u7a31\u662f\u4ec0\u9ebc\uff1f","questionChannelUsernameStreamer":"\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u60a8\u7684\u983b\u9053\u4f7f\u7528\u8005\u540d\u7a31\u662f\u4ec0\u9ebc\uff1f\uff08\u7d14\u6587\u5b57\uff0c\u4e0d\u9700\u8981 @ \u7b26\u865f\uff09","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\u4ed6\u5011\u5728\u54ea\u500b\u5e73\u53f0\u76f4\u64ad\uff1f","questionPlatformStreamer":"\u60a8\u7684\u4e3b\u8981\u76f4\u64ad\u5e73\u53f0\u662f\u54ea\u500b\uff1f","twitchStreamer":"\u6211\u5728 Twitch \u4e0a\u76f4\u64ad","rumbleStreamer":"\u6211\u5728 Rumble \u4e0a\u76f4\u64ad","youtubeStreamer":"\u6211\u5728 YouTube \u4e0a\u76f4\u64ad","kickStreamer":"\u6211\u5728 Kick \u4e0a\u76f4\u64ad","xStreamer":"\u6211\u5728 X \u4e0a\u76f4\u64ad","ganjingStreamer":"\u6211\u5728 Ganjing World \u4e0a\u76f4\u64ad","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"\u4e7e\u6de8\u4e16\u754c","questionUploadPicture":"\u4e0a\u50b3\u5927\u982d\u8cbc","profilePictureHint":"\u9019\u80fd\u5e6b\u52a9 AI \u5728\u5f71\u7247\u4e2d\u8fa8\u8b58\u4f60\uff0c\u88fd\u4f5c\u66f4\u597d\u7684\u526a\u8f2f\u7247\u6bb5\u3002","choosePhoto":"\u9078\u64c7\u7167\u7247","uploading":"\u4e0a\u50b3\u4e2d...","questionOpportunitiesClipper":"\u60f3\u6536\u5230\u526a\u8f2f\u8cfa\u9322\u6a5f\u6703\u7684\u9080\u8acb\u55ce\uff1f","questionOpportunitiesStreamer":"\u60f3\u8058\u8acb Clipbait \u526a\u8f2f\u5e2b\u70ba\u60a8\u7684\u76f4\u64ad\u526a\u8f2f\u55ce\uff1f","yesInterested":"\u662f\u7684\uff0c\u6211\u6709\u8208\u8da3","notRightNow":"\u66ab\u6642\u4e0d\u9700\u8981","questionConnectPages":"\u9023\u7d50\u60a8\u7684\u5e33\u865f\u4ee5\u767c\u4f48\u526a\u8f2f","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\u60a8\u5275\u4f5c\u4ec0\u9ebc\u985e\u578b\u7684\u5167\u5bb9\uff1f","streamTypeGaming":"\u904a\u6232","streamTypeGamingDesc":"\u904a\u6232\u5be6\u6cc1\u642d\u914d\u89e3\u8aaa\u3001\u7cbe\u5f69\u64cd\u4f5c\u3001\u53cd\u61c9","streamTypeTalkingHead":"\u8ac7\u8a71\u985e","streamTypeTalkingHeadDesc":"Podcast\u3001\u8a2a\u8ac7\u3001\u53cd\u61c9\u3001\u8a55\u8ad6","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u5be6\u5883\u76f4\u64ad\u3001\u6d3b\u52d5\u3001\u6236\u5916\u5167\u5bb9","streamTypeMusic":"\u97f3\u6a02","streamTypeMusicDesc":"\u73fe\u5834\u8868\u6f14\u3001DJ \u6f14\u51fa\u3001\u97f3\u6a02\u88fd\u4f5c","finishSetup":"\u5b8c\u6210\u8a2d\u5b9a","ownStreamer":"\u6211\u5728 OWN \u4e0a\u76f4\u64ad","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI \u667a\u6167\u526a\u8f2f\u7522\u751f\u5668","turnStreamsInto":"\u5c07\u76f4\u64ad\u8b8a\u6210","viralClips":"\u7206\u7d05\u526a\u8f2f","pasteUrl":"\u8cbc\u4e0a\u7db2\u5740","uploadVideo":"\u4e0a\u50b3\u5f71\u7247","pasteYouTubeLivestream":"\u8cbc\u4e0a\u60a8\u7684 YouTube \u76f4\u64ad\u9023\u7d50","pasteRumbleLivestream":"\u8cbc\u4e0a\u60a8\u7684 Rumble \u76f4\u64ad\u9023\u7d50","pasteGanjingWorldLink":"\u8cbc\u4e0a\u4f60\u7684\u5e72\u6de8\u4e16\u754c\u9023\u7d50","pasteKickLink":"\u8cbc\u4e0a\u4f60\u7684 Kick \u9023\u7d50","pasteTwitchLink":"\u8cbc\u4e0a\u4f60\u7684 Twitch \u9023\u7d50","pasteXLink":"\u8cbc\u4e0a\u4f60\u7684 X \u9023\u7d50","generateClips":"\u7522\u751f\u526a\u8f2f","starting":"\u555f\u52d5\u4e2d...","uploadingProgress":"\u4e0a\u50b3\u4e2d {{progress}}%...","processing":"\u8655\u7406\u4e2d","yourClips":"\u60a8\u7684\u526a\u8f2f","loadingClips":"\u8f09\u5165\u526a\u8f2f\u4e2d...","noClipsYet":"\u5c1a\u7121\u526a\u8f2f","pasteStreamUrl":"\u8cbc\u4e0a\u76f4\u64ad\u7db2\u5740\u4ee5\u958b\u59cb","clipsReady":"{{count}} \u500b\u526a\u8f2f\u5df2\u5c31\u7dd2\uff01","clipCount":"{{count}} \u500b\u526a\u8f2f","dropFileHere":"\u5c07\u6a94\u6848\u62d6\u653e\u81f3\u6b64","dragAndDrop":"\u62d6\u653e\u6216\u9ede\u64ca\u4ee5\u9078\u64c7","mp4OrMovMax2GB":"MP4 \u6216 MOV\uff0c\u6700\u5927 2GB","freeTrialBanner":"\u60a8\u6b63\u5728\u4f7f\u7528\u514d\u8cbb\u8a66\u7528\u7248\uff0c\u90e8\u5206\u529f\u80fd\u53d7\u5230\u9650\u5236\u3002\u5347\u7d1a\u4ee5\u89e3\u9396\u6240\u6709\u529f\u80fd\u3002","pasteVideoLink
2First":"\u8acb\u5148\u8cbc\u4e0a\u5f71\u7247\u9023\u7d50","selectPlatformInSettings":"\u8acb\u5728\u8a2d\u5b9a\u4e2d\u9078\u64c7\u60a8\u7684\u5e73\u53f0","setChannelUsername":"\u8acb\u5728\u8a2d\u5b9a\u4e2d\u8a2d\u5b9a\u60a8\u7684\u983b\u9053\u4f7f\u7528\u8005\u540d\u7a31","onlyMp4MovSupported":"\u50c5\u652f\u63f4 MP4 \u548c MOV \u683c\u5f0f","fileMustBeUnder2GB":"\u6a94\u6848\u5927\u5c0f\u5fc5\u9808\u5728 2GB \u4ee5\u4e0b","selectVideoFileFirst":"\u8acb\u5148\u9078\u64c7\u5f71\u7247\u6a94\u6848","clippingStarted":"\u526a\u8f2f\u5df2\u958b\u59cb\uff01","uploadCompleteClippingStarted":"\u4e0a\u50b3\u5b8c\u6210 \u2014 \u526a\u8f2f\u5df2\u958b\u59cb\uff01","uploadFailed":"\u4e0a\u50b3\u5931\u6557","failedToStartClipping":"\u7121\u6cd5\u958b\u59cb\u526a\u8f2f","havingTroubleWithLink":"\u8a72\u9023\u7d50\u4f3c\u4e4e\u6709\u554f\u984c \u2014 \u8acb\u5617\u8a66\u4e0b\u8f09\u5f71\u7247\u5f8c\u4e0a\u50b3\uff0c\u6216\u4f7f\u7528 YouTube \u9023\u7d50","reachedUploadLimit":"\u60a8\u672c\u6708\u7684\u4e0a\u50b3\u6b21\u6578\u5df2\u9054\u4e0a\u9650\u3002","jobCancelled":"\u4efb\u52d9\u5df2\u53d6\u6d88","projectDeleted":"\u5c08\u6848\u5df2\u522a\u9664","failedToDeleteProject":"\u522a\u9664\u5c08\u6848\u5931\u6557","deleteProject":"\u522a\u9664\u5c08\u6848\uff1f","cannotBeUndone":"\u6b64\u64cd\u4f5c\u7121\u6cd5\u5fa9\u539f\u3002","jobStillProcessing":"\u6b64\u4efb\u52d9\u4ecd\u5728\u8655\u7406\u4e2d","jobCancelledClipsDeleted":"\u4efb\u52d9\u5c07\u88ab\u53d6\u6d88\uff0c\u6240\u6709\u526a\u8f2f\u5c07\u6c38\u4e45\u522a\u9664\u3002","allClipsDeleted":"\u6240\u6709\u526a\u8f2f\u5c07\u6c38\u4e45\u522a\u9664\u3002","creatingYourClips":"\u6b63\u5728\u70ba\u60a8\u5efa\u7acb\u526a\u8f2f","wellEmailYouWhenReady":"\u5b8c\u6210\u5f8c\u6211\u5011\u6703\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u901a\u77e5\u60a8","estimatingTime":"\u4f30\u7b97\u4e2d...","underTwoMinutes":"\u4e0d\u5230 2 \u5206\u9418","minutesRemaining":"\u7d04 {{count}} \u5206\u9418\u5269\u9918","hoursMinutesRemaining":"\u7d04 {{hours}} \u5c0f\u6642 {{minutes}} \u5206\u9418\u5269\u9918","almostDone":"\u5feb\u5b8c\u6210\u4e86...","phaseDownloading":"\u6b63\u5728\u4e0b\u8f09\u5f71\u7247...","phaseDownloaded":"\u4e0b\u8f09\u5b8c\u6210","phaseExtractingAudio":"\u6b63\u5728\u63d0\u53d6\u97f3\u8a0a...","phaseTranscribing":"\u6b63\u5728\u8f49\u9304\u97f3\u8a0a...","phaseTranscribingLong":"\uff08\u9019\u662f\u9577\u76f4\u64ad\u6700\u6162\u7684\u6b65\u9a5f\uff09","phaseAnalyzing":"AI \u6b63\u5728\u9078\u64c7\u6700\u4f73\u7247\u6bb5...","phaseRendering":"\u6b63\u5728\u6e32\u67d3\u526a\u8f2f\u7247\u6bb5...","phaseDone":"\u5b8c\u6210\uff01","tryUploadingInstead":"\u6539\u70ba\u5617\u8a66\u4e0a\u50b3","processingStatus":"\u8655\u7406\u4e2d...","clipsReadyCount":"{{count}} \u500b\u526a\u8f2f\u5df2\u5c31\u7dd2","schedule":"\u6392\u7a0b","post":"\u767c\u4f48","goodClip":"\u597d\u526a\u8f2f","badClip":"\u5dee\u526a\u8f2f","downloadClip":"\u4e0b\u8f09\u526a\u8f2f","moreOptions":"\u66f4\u591a\u9078\u9805","clipDefaultTitle":"\u526a\u8f2f {{number}}","funMessages":{"goGrabCoffee":"\u53bb\u559d\u676f\u5496\u5561\u5427","timeForStretch":"\u662f\u6642\u5019\u4f38\u5c55\u4e00\u4e0b\u4e86","takeQuickWalk":"\u51fa\u53bb\u8d70\u8d70\u5427","hydrateYourself":"\u8a18\u5f97\u88dc\u5145\u6c34\u5206","doPushups":"\u505a\u5e7e\u500b\u4f0f\u5730\u633a\u8eab\u5427","callYourMom":"\u6253\u96fb\u8a71\u7d66\u5abd\u5abd\u5427","petYourDog":"\u6478\u6478\u4f60\u7684\u72d7\u72d7\u5427","goForSwim":"\u53bb\u6e38\u500b\u6cf3\u5427","touchSomeGrass":"\u51fa\u53bb\u8d70\u8d70\u78b0\u78b0\u8349\u5730","checkYourPosture":"\u6aa2\u67e5\u4e00\u4e0b\u4f60\u7684\u5750\u59ff"},"funMessagesModal":{"goForSwim":"\u8d81\u6211\u5011\u65bd\u5c55\u9b54\u6cd5\u6642\u53bb\u6e38\u500b\u6cf3\u5427","perfectTimeForCoffee":"\u6b63\u597d\u53ef\u4ee5\u53bb\u559d\u676f\u5496\u5561","quickStretch":"\u4e5f\u8a31\u4f38\u5c55\u4e00\u4e0b\uff1f","hydrationCheck":"\u88dc\u6c34\u6642\u9593\uff01\u559d\u9ede\u6c34\u5427","takeWalk":"\u53bb\u6563\u500b\u6b65\uff0c\u4ea4\u7d66\u6211\u5011\u5c31\u597d","callSomeone":"\u6253\u96fb\u8a71\u7d66\u4f60\u5728\u4e4e\u7684\u4eba\u5427","petYourPet":"\u5982\u679c\u6709\u5bf5\u7269\u5c31\u53bb\u6478\u6478\u7260\u5427","touchGrass":"\u771f\u7684\u53bb\u5916\u9762\u78b0\u78b0\u8349\u5730\u5427","jumpingJacks":"\u505a 10 \u500b\u958b\u5408\u8df3\u5427","victoryDance":"\u7df4\u7df4\u4f60\u7684\u52dd\u5229\u4e4b\u821e","deepBreaths":"\u6df1\u547c\u5438...\u4f60\u505a\u5f97\u5f88\u597d","timeToSnack":"\u9019\u662f\u4f60\u8a72\u5403\u96f6\u98df\u7684\u6697\u793a"},"editClip":"\u7de8\u8f2f\u526a\u8f2f","clipEditor":"\u526a\u8f2f\u7de8\u8f2f\u5668","trimIn":"\u8d77\u9ede","trimOut":"\u7d42\u9ede","previewTrim":"\u9810\u89bd\u88c1\u526a","saveCaption":"\u5132\u5b58","saveAndDownload":"\u5132\u5b58\u4e26\u4e0b\u8f09","export":"\u532f\u51fa","exportComplete":"\u532f\u51fa\u5b8c\u6210\uff01","exportNotSupported":"\u6b64\u700f\u89bd\u5668\u4e0d\u652f\u63f4\u532f\u51fa","backToClips":"\u8fd4\u56de","uploadLimitReached":"\u5df2\u9054\u4e0a\u50b3\u4e0a\u9650","limitResets":"\u60a8\u7684\u4e0a\u9650\u5c07\u65bc {{date}} \u91cd\u8a2d","gotIt":"\u4e86\u89e3","failed":"\u5931\u6557","creditsRefunded":"\u9ede\u6578\u5df2\u9000\u9084","tryAgainDifferentLink":"\u8acb\u91cd\u8a66\u6216\u4f7f\u7528\u5176\u4ed6\u9023\u7d50\u3002","noSpeechInVideo":"\u4f60\u8cbc\u4e0a\u7684\u9023\u7d50\u6c92\u6709\u4efb\u4f55\u53e3\u8aaa\u5167\u5bb9\u3002\u8acb\u6539\u7528\u6709\u5275\u4f5c\u8005\u8aaa\u8a71\u7684\u5f71\u7247\u3002","retry":"\u91cd\u8a66","cancelJobBtn":"\u53d6\u6d88","hookScore":"\u9264\u5b50\u5206\u6578","best":"\u6700\u4f73","clipsSelected":"\u5df2\u9078 {{count}} \u500b","switchToFileUpload":"\u5207\u63db\u70ba\u4e0a\u50b3\u6a94\u6848","switchToURL":"\u5207\u63db\u70ba\u7db2\u5740","selectContentTypeFirst":"\u8acb\u5148\u9078\u64c7\u5167\u5bb9\u985e\u578b\u3002","livestreamsNotSupported":"\u5c1a\u4e0d\u652f\u63f4\u76f4\u64ad \u2014 \u8acb\u4f7f\u7528 VOD \u6216\u9304\u88fd\u5f71\u7247\u3002","contentTypes":{"gaming":"\u904a\u6232","podcastTalkingHead":"\u64ad\u5ba2 / \u8ac7\u8a71\u7bc0\u76ee","irlVlog":"IRL / Vlog","music":"\u97f3\u6a02","documentary":"\u7d00\u9304\u7247"},"cancelThisJob":"\u53d6\u6d88\u6b64\u4efb\u52d9\uff1f","deleteTheseAssets":"\u522a\u9664\u9019\u4e9b\u8cc7\u6e90\uff1f","willStopProcessingRemoveJob":"\u9019\u5c07\u505c\u6b62\u8655\u7406\u4e26\u79fb\u9664\u6b64\u4efb\u52d9\u3002","keepGoing":"\u7e7c\u7e8c","noKeepThem":"\u4e0d\uff0c\u4fdd\u7559\u5b83\u5011","yesCancelJob":"\u662f\uff0c\u53d6\u6d88\u4efb\u52d9","yesDeleteForever":"\u662f\uff0c\u6c38\u4e45\u522a\u9664","titleCaption":"\u6a19\u984c\u5b57\u5e55","information":"\u8cc
27\u8a0a","duration":"\u6642\u9577","platform":"\u5e73\u53f0","creator":"\u5275\u4f5c\u8005","rateThisClip":"\u8a55\u50f9\u6b64\u526a\u8f2f","type":"\u985e\u578b","format":"\u683c\u5f0f","clipsLabel":"\u7247\u6bb5","slowConnection":"\u7db2\u8def\u901f\u5ea6\u7de9\u6162","couldntLoad":"\u7121\u6cd5\u8f09\u5165","tapToRetry":"\u9ede\u64ca\u91cd\u8a66","clipsDeleted_one":"\u5df2\u522a\u9664 {{count}} \u500b\u7247\u6bb5","clipsDeleted_other":"\u5df2\u522a\u9664 {{count}} \u500b\u7247\u6bb5"}'),schedule:JSON.parse('{"shareClip":"\u5206\u4eab\u526a\u8f2f","loadingPlatforms":"\u8f09\u5165\u5e73\u53f0\u4e2d...","noConnectedPlatforms":"\u5c1a\u7121\u5df2\u9023\u7d50\u7684\u5e73\u53f0\u3002","connectSocialsToSchedule":"\u9023\u7d50\u60a8\u7684\u793e\u7fa4\u5a92\u9ad4\u5e33\u865f\u4ee5\u6392\u7a0b\u767c\u4f48\u3002","connectYourAccounts":"\u9023\u7d50\u60a8\u7684\u5e33\u865f","postTo":"\u767c\u4f48\u81f3\uff1a","deselectAll":"\u53d6\u6d88\u5168\u9078","selectAll":"\u5168\u9078","caption":"\u8aaa\u660e\u6587\u5b57","writeCaptionPlaceholder":"\u70ba\u60a8\u7684\u8cbc\u6587\u64b0\u5beb\u8aaa\u660e\u6587\u5b57...","scheduleAction":"\u6392\u7a0b","saveAndSchedule":"\u5132\u5b58\u4e26\u6392\u7a0b\u767c\u4f48","postAction":"\u767c\u4f48","publishImmediately":"\u7acb\u5373\u767c\u4f48","scheduling":"\u6392\u7a0b\u4e2d...","publishing":"\u767c\u4f48\u4e2d...","viewPost":"\u67e5\u770b\u8cbc\u6587","postedSuccessfully":"\u767c\u4f48\u6210\u529f\uff01","partiallyPosted":"\u90e8\u5206\u767c\u4f48\u6210\u529f","failedToPost":"\u767c\u4f48\u5931\u6557","selectAtLeastOnePlatform":"\u8acb\u81f3\u5c11\u9078\u64c7\u4e00\u500b\u5e73\u53f0","selectATime":"\u8acb\u9078\u64c7\u6642\u9593","selectFutureTime":"\u8acb\u9078\u64c7\u672a\u4f86\u7684\u6642\u9593","postScheduled":"\u8cbc\u6587\u5df2\u6392\u7a0b\uff01","failedToSchedule":"\u6392\u7a0b\u5931\u6557","failedToPublish":"\u767c\u4f48\u5931\u6557","postedSuccess":"\u767c\u4f48\u6210\u529f\uff01","postedToSomePlatforms":"\u5df2\u767c\u4f48\u81f3\u90e8\u5206\u5e73\u53f0","failedToPostError":"\u767c\u4f48\u5931\u6557","scheduledPost":"\u5df2\u6392\u7a0b\u7684\u8cbc\u6587","postingTo":"\u767c\u4f48\u81f3","writeCaptionShort":"\u64b0\u5beb\u8aaa\u660e\u6587\u5b57...","saveChanges":"\u5132\u5b58\u8b8a\u66f4","cancelScheduledPost":"\u53d6\u6d88\u6b64\u6392\u7a0b\u8cbc\u6587\uff1f","clipWontBePosted":"\u6b64\u526a\u8f2f\u5c07\u4e0d\u6703\u767c\u4f48\u81f3\u60a8\u6240\u9078\u7684\u5e73\u53f0\u3002","keepIt":"\u4fdd\u7559","cancelling":"\u53d6\u6d88\u4e2d...","yesCancelPost":"\u662f\u7684\uff0c\u53d6\u6d88\u8cbc\u6587","changesSaved":"\u8b8a\u66f4\u5df2\u5132\u5b58","failedToSaveChanges":"\u5132\u5b58\u8b8a\u66f4\u5931\u6557","postCancelled":"\u8cbc\u6587\u5df2\u53d6\u6d88","failedToCancelPost":"\u53d6\u6d88\u8cbc\u6587\u5931\u6557","todayAt":"\u4eca\u5929","tomorrowAt":"\u660e\u5929","upcomingClips":"\u5373\u5c07\u767c\u4f48\u7684\u526a\u8f2f","noScheduledClipsThisMonth":"\u672c\u6708\u7121\u5df2\u6392\u7a0b\u7684\u526a\u8f2f\u3002","scheduleClipsHint":"\u526a\u8f2f\u7b97\u7e6a\u5b8c\u6210\u5f8c\u5373\u53ef\u9032\u884c\u6392\u7a0b\u3002","cancelScheduledPostConfirm":"\u53d6\u6d88\u5df2\u6392\u7a0b\u7684\u8cbc\u6587\uff1f","cancelPostMessage":"\u9019\u5c07\u5f9e\u60a8\u7684\u6392\u7a0b\u4e2d\u79fb\u9664\u6b64\u8cbc\u6587\u3002\u60a8\u96a8\u6642\u53ef\u4ee5\u91cd\u65b0\u6392\u7a0b\u3002","cancelPost":"\u53d6\u6d88\u8cbc\u6587","sun":"\u65e5","mon":"\u4e00","tue":"\u4e8c","wed":"\u4e09","thu":"\u56db","fri":"\u4e94","sat":"\u516d","untitledClip":"\u672a\u547d\u540d\u526a\u8f2f","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"\u5df2\u9023\u7d50\u7684\u5e33\u865f","linkSocialsToPost":"\u9023\u7d50\u60a8\u7684\u793e\u7fa4\u5e33\u865f\u4ee5\u76f4\u63a5\u767c\u4f48\u526a\u8f2f\u3002","yourChannel":"\u60a8\u7684\u983b\u9053","watermarkDescription":"\u4f60\u7684\u982d\u50cf\u80fd\u5e6b\u52a9 AI \u5728\u5f71\u7247\u4e2d\u8fa8\u8b58\u4f60\uff0c\u88fd\u4f5c\u66f4\u597d\u7684\u526a\u8f2f\u7247\u6bb5\u3002","streamerName":"\u5be6\u6cc1\u4e3b\u540d\u7a31","placeholderStreamerName":"\u4f8b\u5982\uff1aKai Cenat","streamerNameHint":"\u60a8\u526a\u8f2f\u7684\u5be6\u6cc1\u4e3b\u540d\u7a31\u3002\u9019\u80fd\u5e6b\u52a9 AI \u64b0\u5beb\u66f4\u597d\u7684\u6a19\u984c\u3002","channelUsername":"\u983b\u9053\u4f7f\u7528\u8005\u540d\u7a31","placeholderChannelUsername":"\u60a8\u7684\u76f4\u64ad\u4f7f\u7528\u8005\u540d\u7a31","platform":"\u5e73\u53f0","selectPlatform":"\u9078\u64c7\u5e73\u53f0","tapToChangePhoto":"\u9ede\u64ca\u4ee5\u66f4\u63db\u7167\u7247","pleaseSelectImageFile":"\u8acb\u9078\u64c7\u5716\u7247\u6a94\u6848","imageMustBeLess5MB":"\u5716\u7247\u5927\u5c0f\u5fc5\u9808\u5c0f\u65bc 5MB","profilePictureUpdated":"\u5927\u982d\u8cbc\u5df2\u66f4\u65b0\uff01","failedToUploadPicture":"\u4e0a\u50b3\u5716\u7247\u5931\u6557","disconnectedFrom":"\u5df2\u4e2d\u65b7\u8207 {{platform}} \u7684\u9023\u7d50","failedToDisconnect":"\u4e2d\u65b7\u9023\u7d50\u5931\u6557","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"\u4e7e\u6de8\u4e16\u754c","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","
2socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"\u8a02\u95b1\u8a2d\u5b9a","stripeConnectionStatus":"Stripe \u9023\u7d50\u72c0\u614b","stripeConnectedMessage":"\u60a8\u7684 Stripe \u5e33\u865f\u5df2\u9023\u7d50\uff0c\u53ef\u4ee5\u958b\u59cb\u63a5\u6536\u4ed8\u6b3e","manageStripeAccount":"\u7ba1\u7406 Stripe \u5e33\u865f","stripeConnectInstructions":"\u9023\u7d50\u60a8\u7684 Stripe \u5e33\u865f\u4ee5\u958b\u59cb\u63a5\u6536\u8a02\u95b1\u4ed8\u6b3e...","stripeSetupWarning":"\u91cd\u8981\u63d0\u9192\uff1a\u60a8\u5fc5\u9808\u5b8c\u6210\u6574\u500b Stripe \u8a2d\u5b9a\u6d41\u7a0b...","stripeSupportMessage":"\u9047\u5230\u554f\u984c\uff1f\u8acb\u806f\u7e6b\u5ba2\u670d\[email protected]...","connectingToStripe":"\u6b63\u5728\u9023\u7d50 Stripe...","connectStripeAccount":"\u9023\u7d50 Stripe \u5e33\u865f","enableSubscriptions":"\u555f\u7528\u8a02\u95b1","monthlySubscriptionPrice":"\u6bcf\u6708\u8a02\u95b1\u50f9\u683c\uff08\u7f8e\u5143\uff09","subscriptionDescription":"\u8a02\u95b1\u8aaa\u660e","describeSubscriptionBenefits":"\u63cf\u8ff0\u8a02\u95b1\u8005\u5c07\u7372\u5f97\u7684\u6b0a\u76ca...","saveSettings":"\u5132\u5b58\u8a2d\u5b9a","settingsSaved":"\u8a2d\u5b9a\u5df2\u6210\u529f\u5132\u5b58\uff01","savingFailed":"\u5132\u5b58\u8a2d\u5b9a\u5931\u6557\uff0c\u8acb\u91cd\u8a66\u3002","stripeConnectionError":"Stripe \u9023\u7d50\u5931\u6557\uff0c\u8acb\u91cd\u8a66\u3002","stripeDashboardError":"\u7121\u6cd5\u958b\u555f Stripe \u5100\u8868\u677f\uff0c\u8acb\u91cd\u8a66\u3002","stripeSetupError":"Stripe \u8a2d\u5b9a\u672a\u5b8c\u6210\uff0c\u8acb\u91cd\u8a66\u3002","xsubscribeAdmin":"XSubscribe \u7ba1\u7406\u54e1","preview":"\u9810\u89bd","fetchLinksError":"\u7121\u6cd5\u53d6\u5f97\u4f7f\u7528\u8005\u9023\u7d50","deleteLinkError":"\u522a\u9664\u9023\u7d50\u5931\u6557","orderUpdateSuccess":"\u6392\u5e8f\u503c\u5df2\u66f4\u65b0\u81f3\u4f3a\u670d\u5668","orderUpdateError":"\u66f4\u65b0\u6392\u5e8f\u503c\u81f3\u4f3a\u670d\u5668\u5931\u6557","addLinkError":"\u65b0\u589e\u9023\u7d50\u5931\u6557","profileSection":"\u500b\u4eba\u6a94\u6848","pickAnImage":"\u9078\u64c7\u5716\u7247","remove":"\u79fb\u9664","usernameInputPlaceholder":"\u60a8\u7684 X \u5e33\u865f\uff08@\u4f7f\u7528\u8005\u540d\u7a31\uff09","bioInputPlaceholder":"\u4eba\u5011\u70ba\u4ec0\u9ebc\u8981\u8a02\u95b1\uff1f","getUnlimitedCustomization":"\u53d6\u5f97\u7121\u9650\u5ba2\u88fd\u5316\u529f\u80fd","verifiedCheckmark":"\u8a8d\u8b49\u52fe\u865f","customBackgroundImages":"\u81ea\u8a02\u80cc\u666f\u5716\u7247","removeXSubscribeLogo":"\u79fb\u9664 XSubscribe \u6a19\u8a8c","dollarPerMonth":"\u4e4b\u5f8c\u6bcf\u6708 $9","flatColour":"\u7d14\u8272","image":"\u5716\u7247","pickAColor":"\u9078\u64c7\u984f\u8272","hideXSubscribeLogo":"\u96b1\u85cf XSubscribe \u6a19\u8a8c","errorUpdatingProfileTitle":"\u66f4\u65b0\u500b\u4eba\u6a94\u6848\u6a19\u984c\u6642\u767c\u751f\u932f\u8aa4","errorUpdatingBio":"\u66f4\u65b0\u500b\u4eba\u7c21\u4ecb\u6642\u767c\u751f\u932f\u8aa4","errorSavingBackgroun
2dColor":"\u5132\u5b58\u80cc\u666f\u984f\u8272\u6642\u767c\u751f\u932f\u8aa4","errorUpdatingEffects":"\u66f4\u65b0\u80cc\u666f\u6548\u679c\u6642\u767c\u751f\u932f\u8aa4","errorUpdatingLogo":"\u66f4\u65b0\u4f7f\u7528\u8005\u6a19\u8a8c\u6642\u767c\u751f\u932f\u8aa4","invalidUser":"\u76ee\u524d\u4f7f\u7528\u8005\u7121\u6548\u3002","errorFetchingLogoStatus":"\u53d6\u5f97\u6a19\u8a8c\u72c0\u614b\u6642\u767c\u751f\u932f\u8aa4","errorFetchingUserData":"\u53d6\u5f97\u4f7f\u7528\u8005\u8cc7\u6599\u6642\u767c\u751f\u932f\u8aa4","errorFetchingProfilePic":"\u53d6\u5f97\u5927\u982d\u8cbc\u6642\u767c\u751f\u932f\u8aa4","uploadFailed":"\u4e0a\u50b3\u5931\u6557","accountSettings":"\u5e33\u865f\u8a2d\u5b9a","manageSubscription":"\u7ba1\u7406\u8a02\u95b1","manageSubscriptionDesc":"\u66f4\u65b0\u4ed8\u6b3e\u65b9\u5f0f\u3001\u67e5\u770b\u767c\u7968\u6216\u53d6\u6d88\u8a02\u95b1","deleteAccount":"\u522a\u9664\u5e33\u865f","deleteAccountWarning":"\u6b64\u64cd\u4f5c\u7121\u6cd5\u5fa9\u539f\u3002\u60a8\u7684\u6240\u6709\u8cc7\u6599\u5c07\u88ab\u6c38\u4e45\u522a\u9664\u3002","typeDeleteToConfirm":"\u8f38\u5165 DELETE \u4ee5\u78ba\u8a8d","accountDeleted":"\u5e33\u865f\u5df2\u6210\u529f\u522a\u9664","failedToDeleteAccount":"\u522a\u9664\u5e33\u865f\u5931\u6557","failedToOpenBilling":"\u7121\u6cd5\u958b\u555f\u5e33\u55ae\u7ba1\u7406\u9801\u9762","yourBrands":"\u60a8\u7684\u54c1\u724c","addBrand":"\u65b0\u589e\u54c1\u724c","brandName":"\u54c1\u724c\u540d\u7a31","brandNamePlaceholder":"\u8f38\u5165\u54c1\u724c\u540d\u7a31","createBrand":"\u5efa\u7acb\u54c1\u724c","switchBrand":"\u5207\u63db\u54c1\u724c","deleteBrand":"\u522a\u9664\u54c1\u724c","cannotDeleteLastBrand":"\u7121\u6cd5\u522a\u9664\u60a8\u552f\u4e00\u7684\u54c1\u724c","brandCreated":"\u54c1\u724c\u5df2\u5efa\u7acb\uff01","brandSwitched":"\u54c1\u724c\u5df2\u5207\u63db\uff01","brandDeleted":"\u54c1\u724c\u5df2\u522a\u9664","failedToCreateBrand":"\u5efa\u7acb\u54c1\u724c\u5931\u6557","failedToSwitchBrand":"\u5207\u63db\u54c1\u724c\u5931\u6557","failedToDeleteBrand":"\u522a\u9664\u54c1\u724c\u5931\u6557","captionPresets":"\u5b57\u5e55\u6a23\u5f0f","captionPresetsDesc":"\u8a2d\u5b9a\u526a\u8f2f\u5b57\u5e55\u7684\u9810\u8a2d\u5916\u89c0\u3002\u65b0\u526a\u8f2f\u5c07\u4f7f\u7528\u60a8\u555f\u7528\u7684\u9810\u8a2d\u6a23\u5f0f\u3002","presetName":"\u9810\u8a2d\u540d\u7a31","presetNamePlaceholder":"\u4f8b\u5982\uff1a\u7c97\u9ad4\u7d05\u8272","addPreset":"\u65b0\u589e\u9810\u8a2d","editPreset":"\u7de8\u8f2f","deletePreset":"\u522a\u9664","createPreset":"\u5efa\u7acb\u9810\u8a2d","presetCreated":"\u9810\u8a2d\u5df2\u5efa\u7acb\uff01","presetActivated":"\u5b57\u5e55\u6a23\u5f0f\u5df2\u5207\u63db\uff01","presetDeleted":"\u9810\u8a2d\u5df2\u522a\u9664","cannotDeleteLastPreset":"\u7121\u6cd5\u522a\u9664\u60a8\u552f\u4e00\u7684\u9810\u8a2d","failedToSwitchPreset":"\u5207\u63db\u9810\u8a2d\u5931\u6557","failedToDeletePreset":"\u522a\u9664\u9810\u8a2d\u5931\u6557","captionPreview":"\u9019\u662f\u60a8\u7684\u5b57\u5e55\u9810\u89bd","captionColor":"\u984f\u8272","captionFont":"\u5b57\u578b","captionPosition":"\u4f4d\u7f6e","captionWidth":"\u5bec\u5ea6","streamType":"\u5167\u5bb9\u985e\u578b","streamTypeHint":"\u4f60\u5275\u4f5c\u4ec0\u9ebc\u985e\u578b\u7684\u5167\u5bb9\uff1f\u9019\u80fd\u5e6b\u52a9 AI \u70ba\u4f60\u7684\u98a8\u683c\u91cf\u8eab\u6253\u9020\u526a\u8f2f\u3002","streamTypeGaming":"\u904a\u6232","streamTypeGamingDesc":"\u9644\u89e3\u8aaa\u7684\u904a\u6232\u756b\u9762\u3001\u7cbe\u5f69\u64cd\u4f5c\u3001\u53cd\u61c9\u7247\u6bb5","streamTypeTalkingHead":"\u8ac7\u8a71\u985e","streamTypeTalkingHeadDesc":"Podcast\u3001\u8a2a\u8ac7\u3001\u53cd\u61c9\u5f71\u7247\u3001\u8a55\u8ad6","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u5be6\u6cc1\u76f4\u64ad\u3001\u6d3b\u52d5\u3001\u6236\u5916\u5167\u5bb9","streamTypeMusic":"\u97f3\u6a02","streamTypeMusicDesc":"\u73fe\u5834\u6f14\u51fa\u3001DJ \u8868\u6f14\u3001\u97f3\u6a02\u88fd\u4f5c","streamTypeDocumentary":"\u7d00\u9304\u7247","streamTypeDocumentaryDesc":"\u7d00\u9304\u7247\u3001\u8ff7\u4f60\u7d00\u9304\u7247\u53ca\u96fb\u5f71","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"\u89e3\u9396 Clipbait","getFullAccess":"\u53d6\u5f97 AI \u667a\u6167\u526a\u8f2f\u7522\u751f\u7684\u5b8c\u6574\u5b58\u53d6\u6b0a\u9650","monthly":"\u6708\u7e73","annual"
2:"\u5e74\u7e73","save15Percent":"\u7701 15%","perMonth":"/\u6708","perMonthShort":"/\u6708","billedAsPerYear":"\u4ee5\u6bcf\u5e74 ${{amount}} \u8a08\u8cbb","upload30Videos":"\u6bcf\u6708\u4e0a\u50b3 30 \u652f\u5f71\u7247","upTo2Hours":"\u6700\u9577 2 \u5c0f\u6642\u7684\u5f71\u7247","generate300Clips":"\u6bcf\u6708\u7522\u751f 300 \u500b\u526a\u8f2f","downloadAndSchedule":"\u4e0b\u8f09\u53ca\u6392\u7a0b\u526a\u8f2f","upTo5Accounts":"\u6700\u591a 5 \u500b\u54c1\u724c\u5e33\u865f","getStarted":"\u7acb\u5373\u958b\u59cb","redirecting":"\u91cd\u65b0\u5c0e\u5411\u4e2d...","exclusiveOffer":"\u7368\u5bb6\u512a\u60e0","russellBrandsPick":"Russell Brand \u7cbe\u9078","get10PercentOff":"Clipbait Pro \u4eab 9 \u6298\u512a\u60e0 \u2014 Russell \u89c0\u773e\u5c08\u5c6c","discountApplied":"9 \u6298\u512a\u60e0\u5df2\u81ea\u52d5\u5957\u7528","claim10Off":"\u9818\u53d6 9 \u6298\u512a\u60e0","noThanksFullPrice":"\u4e0d\u7528\u4e86\uff0c\u6211\u8981\u4ee5\u539f\u50f9\u8cfc\u8cb7","generateWithoutLimits":"\u7121\u9650\u5236\u7522\u751f","upgradePlan":"\u5347\u7d1a\u65b9\u6848","buyCredits":"\u8cfc\u8cb7\u9ede\u6578","creditsNeverExpireNote":"\u9ede\u6578\u6c38\u4e0d\u904e\u671f\uff0c\u4e26\u5728\u6bcf\u6708\u65b9\u6848\u984d\u5ea6\u7528\u5b8c\u5f8c\u624d\u4f7f\u7528\u3002","mostPopular":"\u6700\u53d7\u6b61\u8fce","bestValue":"\u6700\u5212\u7b97","generationsPerMonth":"\u6bcf\u6708 {{count}} \u6b21\u751f\u6210","twentyPercentOff":"\u516b\u6298\u512a\u60e0","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"\u7701 16%","save26Percent":"\u7701 26%","perMonthBilledAnnually":"\u6bcf\u6708\uff0c\u6309\u5e74\u8a08\u8cbb"}'),pages:JSON.parse('{"foundersStoryTitle":"\u5275\u8fa6\u4eba\u7684\u6545\u4e8b","foundersStoryContent":"2021 \u5e74\uff0cSpirit \u906d\u9047\u4e86\u4e3b\u6d41\u5e73\u53f0\u4e0a\u4ee4\u4eba\u7a92\u606f\u7684\u5be9\u67e5\u58d3\u529b\u3002\u70ba\u4e86\u5c0b\u627e\u4e00\u500b\u81ea\u7531\u8868\u9054\u84ec\u52c3\u767c\u5c55\u7684\u7a7a\u9593\uff0c\u4ed6\u767c\u73fe\u4e86\u4e00\u500b\u8207\u4ed6\u5c0d\u958b\u653e\u5c0d\u8a71\u548c\u5275\u4f5c\u81ea\u7531\u4fe1\u5ff5\u76f8\u5951\u5408\u7684\u5e73\u53f0\u3002\u9019\u4e00\u95dc\u9375\u6642\u523b\u6fc0\u767c\u4e86\u5f8c\u4f86\u6210\u70ba XSubscribe \u7684\u69cb\u60f3 \u2014 \u4e00\u500b\u8b93\u5275\u4f5c\u8005\u8207\u793e\u7fa4\u80fd\u5920\u771f\u5be6\u9023\u7d50\u3001\u4e0d\u5fc5\u64d4\u5fc3\u5be9\u67e5\u7684\u5e73\u53f0\u3002Spirit \u6191\u85c9\u7368\u7279\u7684\u9858\u666f\u548c\u8ce6\u80fd\u5275\u4f5c\u8005\u7684\u71b1\u60c5\uff0c\u5960\u5b9a\u4e86\u5167\u5bb9\u8b8a\u73fe\u65b0\u6642\u4ee3\u7684\u57fa\u790e\u3002\u96a8\u8457 XSubscribe \u6301\u7e8c\u767c\u5c55\uff0c\u5b83\u59cb\u7d42\u7d2e\u6839\u65bc\u6bcf\u500b\u8072\u97f3\u90fd\u503c\u5f97\u88ab\u807d\u898b\u7684\u4fe1\u5ff5\u3002\u7121\u8ad6\u60a8\u662f\u8cc7\u6df1\u5275\u4f5c\u8005\u9084\u662f\u525b\u8d77\u6b65\uff0cXSubscribe \u90fd\u5728\u9019\u88e1\u5e6b\u52a9\u60a8\u5efa\u7acb\u53ef\u6301\u7e8c\u7684\u8077\u696d\u751f\u6daf\uff0c\u505a\u60a8\u6240\u611b\u7684\u4e8b\u3002","termsTitle":"\u689d\u6b3e\u8207\u7d30\u5247","lastUpdatedTerms":"\u6700\u5f8c\u66f4\u65b0\u65e5\u671f\uff1a2024 \u5e74 1 \u6708 7 \u65e5\uff08\u661f\u671f\u65e5\uff09","termsSection1Title":"1. \u6b61\u8fce\u4f7f\u7528 XSubscribe\uff1a","termsSection1Content":"\u672c\u4f7f\u7528\u689d\u6b3e\uff08\u300c\u689d\u6b3e\u300d\uff09\u898f\u7bc4 XSubscribe \u670d\u52d9\u7684\u4f7f\u7528\uff0c\u5305\u62ec\u7db2\u7ad9\u3001API\u3001\u884c\u52d5\u61c9\u7528\u7a0b\u5f0f\u53ca\u6240\u6709\u76f8\u95dc\u670d\u52d9\u3002\u4f7f\u7528\u6211\u5011\u7684\u5e73\u53f0\u5373\u8868\u793a\u60a8\u540c\u610f\u9075\u5b88\u672c\u689d\u6b3e\u3002","termsSection2Title":"2. \u689d\u6b3e\u8b8a\u66f4\uff1a","termsSection2Content":"XSubscribe \u53ef\u80fd\u6703\u4e0d\u5b9a\u671f\u66f4\u65b0\u672c\u689d\u6b3e\u3002\u4efb\u4f55\u91cd\u5927\u8b8a\u66f4\u5c07\u6703\u901a\u77e5\u60a8\uff0c\u82e5\u5728\u8b8a\u66f4\u5f8c\u7e7c\u7e8c\u4f7f\u7528\u672c\u5e73\u53f0\uff0c\u5373\u8868\u793a\u60a8\u63a5\u53d7\u65b0\u689d\u6b3e\u3002","termsSection3Title":"3. \u60a8\u7684\u5e33\u865f\uff1a","termsSection3Content":"\u60a8\u5fc5\u9808\u5e74\u6eff 18 \u6b72\u6216\u53d6\u5f97\u5bb6\u9577/\u76e3\u8b77\u4eba\u8a31\u53ef\u65b9\u53ef\u4f7f\u7528 XSubscribe\u3002\u8acb\u78ba\u4fdd\u5e33\u865f\u8cc
27\u8a0a\u4fdd\u6301\u6700\u65b0\u4e26\u59a5\u5584\u4fdd\u7ba1\u5bc6\u78bc\u3002\u60a8\u9808\u5c0d\u5e33\u865f\u4e0a\u7684\u6240\u6709\u884c\u70ba\u8ca0\u8cac\u3002","termsSection4Title":"4. \u60a8\u7684\u4f7f\u7528\u8005\u540d\u7a31\uff1a","termsSection4Content":"\u4f7f\u7528\u8005\u540d\u7a31\u5fc5\u9808\u5c0a\u91cd\u4ed6\u4eba\u7684\u6b0a\u5229\u3002XSubscribe \u6709\u6b0a\u5728\u5fc5\u8981\u6642\u6536\u56de\u6216\u66f4\u6539\u4f7f\u7528\u8005\u540d\u7a31\u3002","termsSection5Title":"5. \u7ba1\u7406\u60a8\u7684\u65b9\u6848\uff1a","termsSection5Content":"XSubscribe \u63d0\u4f9b\u514d\u8cbb\u548c\u4ed8\u8cbb\u65b9\u6848\u3002\u4ed8\u8cbb\u65b9\u6848\u9700\u8981\u6709\u6548\u7684\u4ed8\u6b3e\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u5728\u65b9\u6848\u4e4b\u9593\u5207\u63db\u3002","termsSection6Title":"6. \u60a8\u7684\u5167\u5bb9\uff1a","termsSection6Content":"\u60a8\u9808\u5c0d\u60a8\u7684\u5167\u5bb9\u8ca0\u8cac\u3002\u5167\u5bb9\u5fc5\u9808\u9075\u5b88\u6211\u5011\u7684\u6e96\u5247\u548c\u6cd5\u5f8b\u3002XSubscribe \u53ef\u80fd\u6703\u79fb\u9664\u9055\u53cd\u9019\u4e9b\u6a19\u6e96\u7684\u5167\u5bb9\u3002","termsSection7Title":"7. \u6211\u5011\u5c0d\u60a8\u5167\u5bb9\u7684\u4f7f\u7528\u6b0a\u9650\uff1a","termsSection7Content":"XSubscribe \u64c1\u6709\u4f7f\u7528\u3001\u6563\u4f48\u548c\u5c55\u793a\u60a8\u5167\u5bb9\u7684\u6388\u6b0a\uff0c\u4f5c\u70ba\u5e73\u53f0\u71df\u904b\u7684\u4e00\u90e8\u5206\u3002\u60a8\u53ef\u4ee5\u900f\u904e\u96b1\u79c1\u8a2d\u5b9a\u63a7\u5236\u60a8\u7684\u5167\u5bb9\u3002","termsSection8Title":"8. \u5e33\u865f\u66ab\u505c\u6216\u53d6\u6d88\uff1a","termsSection8Content":"XSubscribe \u53ef\u56e0\u9055\u53cd\u898f\u5247\u800c\u66ab\u505c\u6216\u53d6\u6d88\u5e33\u865f\u3002\u60a8\u4e5f\u53ef\u4ee5\u81ea\u884c\u53d6\u6d88\u5e33\u865f\u3002","termsSection9Title":"9. \u60a8\u5c0d\u8a2a\u5ba2\u548c\u5ba2\u6236\u7684\u8cac\u4efb\uff1a","termsSection9Content":"\u60a8\u9808\u5c0d\u9020\u8a2a\u6216\u8207\u60a8\u7684\u500b\u4eba\u9801\u9762\u4e92\u52d5\u7684\u4f7f\u7528\u8005\u9ad4\u9a57\u8ca0\u8cac\u3002","termsSection10Title":"10. \u610f\u898b\u56de\u994b\uff1a","termsSection10Content":"\u5982\u679c\u60a8\u63d0\u4f9b\u610f\u898b\u56de\u994b\uff0cXSubscribe \u53ef\u81ea\u7531\u4f7f\u7528\u3002\u60a8\u6c92\u6709\u7fa9\u52d9\u63d0\u4f9b\u56de\u994b\u3002","termsSection11Title":"11. \u6211\u5011\u7684\u5e73\u53f0\uff1a","termsSection11Content":"\u60a8\u7372\u5f97\u6709\u9650\u7684\u5e73\u53f0\u4f7f\u7528\u6b0a\u4ee5\u7d93\u71df\u60a8\u7684\u5167\u5bb9\u4e8b\u696d\u3002\u8acb\u52ff\u6feb\u7528\u6216\u5617\u8a66\u640d\u5bb3\u5e73\u53f0\u3002","termsSection12Title":"12. \u8cbb\u7528\u8207\u4ed8\u6b3e\uff1a","termsSection12Content":"\u8a02\u95b1\u8cbb\u7528\u3001\u4ea4\u6613\u624b\u7e8c\u8cbb\u53ca\u4ed8\u6b3e\u689d\u6b3e\u8a73\u898b\u8cbb\u7528\u8aaa\u660e\u3002","termsSection13Title":"13. \u96b1\u79c1\u6b0a\uff1a","termsSection13Content":"XSubscribe \u7684\u96b1\u79c1\u6b0a\u8072\u660e\u8aaa\u660e\u4e86\u6211\u5011\u5982\u4f55\u8655\u7406\u60a8\u7684\u8cc7\u8a0a\u3002","termsSection14Title":"14. \u4fdd\u5bc6\u6027\uff1a","termsSection14Content":"\u8acb\u5c0d XSubscribe \u5206\u4eab\u7684\u975e\u516c\u958b\u8cc7\u8a0a\u4fdd\u5bc6\u3002","termsSection15Title":"15. \u8cac\u4efb\u9650\u5236\uff1a","termsSection15Content":"\u60a8\u9808\u5c0d\u5e73\u53f0\u7684\u4f7f\u7528\u8ca0\u8cac\u3002XSubscribe \u7684\u8cac\u4efb\u53d7\u5230\u9650\u5236\u3002","termsSection16Title":"16. \u514d\u8cac\u8072\u660e\uff1a","termsSection16Content":"\u672c\u5e73\u53f0\u4ee5\u300c\u73fe\u6cc1\u300d\u63d0\u4f9b\uff0c\u4e0d\u9644\u5e36\u4efb\u4f55\u4fdd\u8b49\u3002","termsSection17Title":"17. \u7b2c\u4e09\u65b9\u670d\u52d9\uff1a","termsSection17Content":"XSubscribe \u8207\u7b2c\u4e09\u65b9\u670d\u52d9\u5408\u4f5c\u3002\u9019\u4e9b\u670d\u52d9\u9069\u7528\u5176\u5404\u81ea\u7684\u689d\u6b3e\u548c\u653f\u7b56\u3002","termsSection18Title":"18. \u61c9\u7528\u7a0b\u5f0f\u689d\u6b3e\uff1a","termsSection18Content":"\u4f7f\u7528 XSubscribe \u884c\u52d5\u61c9\u7528\u7a0b\u5f0f\u6642\u9069\u7528\u7279\u5b9a\u689d\u6b3e\u3002","termsSection19Title":"19. \u958b\u653e\u539f\u59cb\u78bc\uff1a","termsSection19Content":"\u672c\u61c9\u7528\u7a0b\u5f0f\u53ef\u80fd\u5305\u542b\u5177\u6709\u81ea\u8eab\u6388\u6b0a\u7684\u958b\u653e\u539f\u59cb\u78bc\u8edf\u9ad4\u3002","termsSection20Title":"20. \u5176\u4ed6\u4e8b\u9805\uff1a","termsSection20Content":"\u6839\u64da\u60a8\u6240\u5728\u5730\u5340\uff0c\u53ef\u80fd\u9069\u7528\u7279\u5b9a\u6cd5\u5f8b\u3002\u672c\u689d\u6b3e\u4ee3\u8868\u60a8\u8207 XSubscribe \u4e4b\u9593\u7684\u5b8c\u6574\u5354\u8b70\u3002","furtherInformation":"\u54ea\u88e1\u53ef\u4ee5\u7372\u5f97\u66f4\u591a\u8cc7\u8a0a\uff1f","termsContactInstructions":"\u5982\u679c\u60a8\u5c0d\u6211\u5011\u7684\u689d\u6b3e\u8207\u7d30\u5247\u6709\u4efb\u4f55\u7591\u554f\uff0c\u8acb\u806f\u7e6b\u6211\u5011\uff1a","cookieNoticeTitle":"Cookie \u8072\u660e","lastUpdatedCookies":"\u6700\u5f8c\u66f4\u65b0\u65e5\u671f\uff1a2023 \u5e74 1 \u6708 7 \u65e5\uff08\u661f\u671f\u65e5\uff09","cookieIntroduction":"\u672c Cookie \u8072\u660e\u8aaa\u660e XSubscribe LLC \u5982\u4f55\u4f7f\u7528 Cookie \u53ca\u985e\u4f3c\u6280\u8853\u3002","whatAreCookies":"\u4ec0\u9ebc\u662f Cookie\uff1f","cookieDefinition":"Cookie \u662f\u60a8\u9020\u8a2a\u7db2\u7ad9\u6642\u5132\u5b58\u5728\u88dd\u7f6e\u4e0a\u7684\u5c0f\u578b\u8cc7\u6599\u6a94\u6848\u3002","thirdPartyCookies":"\u7531 XSubscribe \u4ee5\u5916\u7684\u7b2c\u4e09\u65b9\u8a2d\u7f6e\u7684 Cookie \u7a31\u70ba\u7b2c\u4e09\u65b9 Cookie\u3002","whyUseCo
2okies":"\u6211\u5011\u70ba\u4f55\u4f7f\u7528 Cookie\uff1f","cookieUsage":"\u6211\u5011\u57fa\u65bc\u591a\u7a2e\u76ee\u7684\u4f7f\u7528\u7b2c\u4e00\u65b9\u548c\u7b2c\u4e09\u65b9 Cookie\u3002","cookieContactInstructions":"\u5982\u679c\u60a8\u5c0d\u6211\u5011\u4f7f\u7528 Cookie \u6709\u4efb\u4f55\u7591\u554f\uff0c\u8acb\u806f\u7e6b\u6211\u5011\uff1a","contactSpiritTitle":"\u806f\u7e6b Spirit","contactInstructions":"\u55e8\uff0c\u60a8\u53ef\u4ee5\u900f\u904e\u4ee5\u4e0b\u65b9\u5f0f\u806f\u7e6b\u6211\uff1a","searchTitle":"\u641c\u5c0b","searchPlaceholder":"\u641c\u5c0b\u5be6\u6cc1\u4e3b\u2026","searchResults":"\u641c\u5c0b\u7d50\u679c","suggestedStreamers":"\u63a8\u85a6\u5be6\u6cc1\u4e3b","profileTitle":"\u500b\u4eba\u6a94\u6848","onlyJpgPngAllowed":"\u50c5\u5141\u8a31 JPG/PNG \u683c\u5f0f","maxFileSize2MB":"\u6a94\u6848\u5927\u5c0f\u4e0a\u9650\u70ba 2MB","selectAvatar":"\u9078\u64c7\u982d\u50cf","updating":"\u66f4\u65b0\u4e2d...","demoSubscriptionAlert":"\u9019\u662f\u793a\u7bc4\u6a21\u5f0f\u3002\u60a8\u7121\u6cd5\u8a02\u95b1\u6b64\u5275\u4f5c\u8005\u3002","subscribe":"\u8a02\u95b1","perMonth":"/\u6708","subscribed":"\u2713 \u5df2\u8a02\u95b1","successfullySubscribedTo":"\u5df2\u6210\u529f\u8a02\u95b1","weLockedIn":"\u641e\u5b9a\u4e86\u3002","createYourXSubscribe":"\u5efa\u7acb\u60a8\u7684 XSubscribe","pageNotFoundHeading":"\u627e\u4e0d\u5230\u60a8\u8981\u7684\u9801\u9762\u3002","pageNotFoundMessage":"\u60f3\u8b93\u9019\u6210\u70ba\u60a8\u7684\u4f7f\u7528\u8005\u540d\u7a31\u55ce\uff1f","createXSubscribeNow":"\u7acb\u5373\u5efa\u7acb\u60a8\u7684 XSubscribe\u3002","planStarter":"\u5165\u9580\u7248","planPro":"\u5c08\u696d\u7248","planPremium":"\u9ad8\u7d1a\u7248","superchatsHeader":"SuperChats -","loadingSuperChats":"\u8f09\u5165 SuperChats \u4e2d...","recentSuperchats":"\u6700\u8fd1\u7684 SuperChat \u8a0a\u606f\u548c\u6253\u8cde","noSuperchatsPart1":"\u5c1a\u7121 SuperChats \u7d66","noSuperchatsPart2":"\u6210\u70ba\u7b2c\u4e00\u500b\u767c\u9001 SuperChat \u7684\u4eba\uff01","loadingSuperChatsError":"\u8f09\u5165 SuperChats \u5931\u6557","addComment":"\u65b0\u589e\u7559\u8a00\u2026","signInToComment":"\u767b\u5165\u4ee5\u767c\u8868\u7559\u8a00","send":"\u767c\u9001","signIn":"\u767b\u5165","beTheFirstToComment":"\u6210\u70ba\u7b2c\u4e00\u500b\u7559\u8a00\u7684\u4eba\u3002","writeReply":"\u64b0\u5beb\u56de\u8986\u2026","reply":"\u56de\u8986","unlike":"\u53d6\u6d88\u6309\u8b9a","like":"\u6309\u8b9a","comments":"\u7559\u8a00","shareThisStream":"\u5206\u4eab\u6b64\u76f4\u64ad","goTo":"\u524d\u5f80","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"\u8a0a\u606f","emailShare":"\u96fb\u5b50\u90f5\u4ef6","copyLink":"\u8907\u88fd\u9023\u7d50","more":"\u66f4\u591a","deleting":"\u522a\u9664\u4e2d\u2026","anon":"\u533f\u540d","noCommentsYet":"\u5c1a\u7121\u7559\u8a00\u3002","sendSuperChat":"\u767c\u9001 SuperChat","amountDollar":"\u91d1\u984d\uff08$\uff09","messageMaxChars":"\u8a0a\u606f\uff08\u6700\u591a 200 \u5b57\u5143\uff09","typeSuperChatMessage":"\u8f38\u5165\u60a8\u7684 SuperChat \u8a0a\u606f...","processingPayment":"\u8655\u7406\u4e2d...","sendAmount":"\u767c\u9001 ${{amount}} SuperChat","pleaseLogInToSuperChat":"\u8acb\u5148\u767b\u5165\u4ee5\u767c\u9001 SuperChat","pleaseEnterMessage":"\u8acb\u8f38\u5165\u8a0a\u606f","amountMustBeAtLeast1":"\u91d1\u984d\u81f3\u5c11\u9700\u8981 $1","failedToCreateCheckout":"\u5efa\u7acb\u7d50\u5e33\u968e\u6bb5\u5931\u6557","highlightedFor":"\u7f6e\u9802\u986f\u793a"}'),notifications:JSON.parse('{"notifications":"\u901a\u77e5","viaEmail":"\u900f\u904e\u96fb\u5b50\u90f5\u4ef6","receiveNotificationThroughEmail":"\u900f\u904e\u96fb\u5b50\u90f5\u4ef6\u63a5\u6536\u901a\u77e5","all":"\u5168\u90e8","unread":"\u672a\u8b80","noUnreadNotifications":"\u6c92\u6709\u672a\u8b80\u901a\u77e5\u3002","noNotificationsYet":"\u5c1a\u7121\u901a\u77e5\u3002","couldntLoadNotifications":"\u7121\u6cd5\u5f9e\u4f3a\u670d\u5668\u8f09\u5165\u901a\u77e5","someone":"\u67d0\u4eba","isLiveNow":"\u6b63\u5728\u76f4\u64ad","postedReplay":"\u767c\u4f48\u4e86\u91cd\u64ad","repliedToComment":"\u56de\u8986\u4e86\u60a8\u7684\u7559\u8a00","likedYourComment":"\u5c0d\u60a8\u7684\u7559\u8a00\u6309\u8b9a","activity":"\u52d5\u614b","secondsAgo":"{{count}}\u79d2","minutesAgo":"{{count}}\u5206","hoursAgo":"{{count}}\u6642","daysAgo":"{{count}}\u5929"}')},"zh-CN":{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\u767b\u5f55","logout":"\u9000\u51fa\u767b\u5f55","signUp":"\u6ce8\u518c","signUpFree":"\u514d\u8d39\u6ce8\u518c","profile":"\u4e2a\u4eba\u8d44\u
26599","creatorDashboard":"\u521b\u4f5c\u8005\u4eea\u8868\u76d8","notifications":"\u901a\u77e5","pricing":"\u5b9a\u4ef7","admin":"\u7ba1\u7406","save":"\u4fdd\u5b58","saving":"\u4fdd\u5b58\u4e2d...","cancel":"\u53d6\u6d88","delete":"\u5220\u9664","continue":"\u7ee7\u7eed","skip":"\u8df3\u8fc7","skipForNow":"\u6682\u65f6\u8df3\u8fc7","done":"\u5b8c\u6210","loading":"\u52a0\u8f7d\u4e2d...","edit":"\u7f16\u8f91","connect":"\u8fde\u63a5","disconnect":"\u65ad\u5f00\u8fde\u63a5","comingSoon":"\u5373\u5c06\u63a8\u51fa","connected":"\u5df2\u8fde\u63a5","back":"\u8fd4\u56de","upgrade":"\u5347\u7ea7","options":"\u9009\u9879","confirm":"\u786e\u8ba4","areYouSure":"\u786e\u5b9a\u5417\uff1f","appearance":"\u5916\u89c2","subs":"\u8ba2\u9605","myPage":"\u6211\u7684\u4e3b\u9875","clipsTab":"\u7247\u6bb5","calendarTab":"\u65e5\u5386","profileTab":"\u4e2a\u4eba\u8d44\u6599","company":"\u516c\u53f8","about":"\u5173\u4e8e","press":"\u5a92\u4f53","contact":"\u8054\u7cfb","followUs":"\u5173\u6ce8\u6211\u4eec","termsAndConditions":"\u6761\u6b3e\u4e0e\u6761\u4ef6","cookiePolicy":"Cookie \u653f\u7b56","connectedTo":"\u5df2\u8fde\u63a5\u5230 {{platform}}\uff01","planActivated":"\u65b9\u6848\u5df2\u6fc0\u6d3b\uff01\u60a8\u73b0\u5728\u62e5\u6709\u5b8c\u6574\u8bbf\u95ee\u6743\u9650\u3002","saved":"\u5df2\u4fdd\u5b58\uff01","failedToSave":"\u4fdd\u5b58\u5931\u8d25","deleting":"\u5220\u9664\u4e2d...","logOut":"\u9000\u51fa\u767b\u5f55","download":"\u4e0b\u8f7d","freePlan":"\u514d\u8d39\u5957\u9910","planLabel":"{{plan}} \u5957\u9910","outOfCredits":"\u26a1 \u70b9\u6570\u7528\u5b8c","creditsRemaining_one":"\u26a1 \u5269\u4f59 {{count}} \u70b9","creditsRemaining_other":"\u26a1 \u5269\u4f59 {{count}} \u70b9","topUpCredits":"\u8865\u5145\u70b9\u6570","buy":"\u8d2d\u4e70","manageAccount":"\u7ba1\u7406\u8d26\u6237","signOut":"\u9000\u51fa\u767b\u5f55"}'),auth:JSON.parse('{"welcomeBack":"\u6b22\u8fce\u56de\u6765","signInToContinue":"\u767b\u5f55\u4ee5\u7ee7\u7eed\u4f7f\u7528 Clipbait","continueWithGoogle":"\u4f7f\u7528 Google \u7ee7\u7eed","orContinueWithEmail":"\u6216\u4f7f\u7528\u90ae\u7bb1\u7ee7\u7eed","enterYourEmail":"\u8f93\u5165\u60a8\u7684\u90ae\u7bb1","checkYourEmail":"\u8bf7\u67e5\u7
270b\u60a8\u7684\u90ae\u7bb1","weSentCodeTo":"\u6211\u4eec\u5df2\u53d1\u9001\u9a8c\u8bc1\u7801\u81f3","pleaseEnter6DigitCode":"\u8bf7\u8f93\u51656\u4f4d\u9a8c\u8bc1\u7801","verifyAndContinue":"\u9a8c\u8bc1\u5e76\u7ee7\u7eed","resendCodeIn":"{{countdown}}\u79d2\u540e\u91cd\u65b0\u53d1\u9001","resendCode":"\u91cd\u65b0\u53d1\u9001\u9a8c\u8bc1\u7801","byContinuingYouAgree":"\u7ee7\u7eed\u5373\u8868\u793a\u60a8\u540c\u610f ClipBait \u7684","termsOfService":"\u670d\u52a1\u6761\u6b3e","privacyPolicy":"\u9690\u79c1\u653f\u7b56","invalidCode":"\u9a8c\u8bc1\u7801\u65e0\u6548\uff0c\u8bf7\u91cd\u8bd5\u3002","invalidEmail":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740","failedToSendCode":"\u53d1\u9001\u9a8c\u8bc1\u7801\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","signingYouIn":"\u6b63\u5728\u767b\u5f55...","emailOrUsername":"\u90ae\u7bb1\u6216\u7528\u6237\u540d","password":"\u5bc6\u7801","forgotPassword":"\u5fd8\u8bb0\u5bc6\u7801\uff1f","logIn":"\u767b\u5f55","incorrectCredentials":"\u7528\u6237\u540d/\u90ae\u7bb1\u6216\u5bc6\u7801\u4e0d\u6b63\u786e","emailNotVerified":"\u90ae\u7bb1\u672a\u9a8c\u8bc1\uff0c\u8bf7\u67e5\u7
270b\u60a8\u7684\u90ae\u7bb1\u3002","email":"\u90ae\u7bb1","username":"\u7528\u6237\u540d","birthdayLabel":"\u751f\u65e5\uff08\u6708 / \u65e5 / \u5e74\uff09","monthPlaceholder":"\u6708","dayPlaceholder":"\u65e5","yearPlaceholder":"\u5e74","usernameTooShort":"\u7528\u6237\u540d\u81f3\u5c11\u9700\u8981 {{min}} \u4e2a\u5b57\u7b26\u3002","usernameTooLong":"\u7528\u6237\u540d\u6700\u591a {{max}} \u4e2a\u5b57\u7b26\u3002","usernameInvalidFormat":"\u4ec5\u5141\u8bb8\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\uff0c\u4e0d\u5141\u8bb8\u7a7a\u683c\u3002","birthdayRequired":"\u8bf7\u9009\u62e9\u60a8\u7684\u5b8c\u6574\u751f\u65e5\u3002","invalidEmailFormat":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740\u3002","passwordRequired":"\u8bf7\u8f93\u5165\u5bc6\u7801\u3002","passwordTooShort":"\u5bc6\u7801\u81f3\u5c11\u9700\u89813\u4e2a\u5b57\u7b26\u3002","emailAvailable":"\u90ae\u7bb1\u53ef\u7528\u3002","usernameAvailable":"\u7528\u6237\u540d\u53ef\u7528\u3002","usernameTaken":"\u8be5\u7528\u6237\u540d\u5df2\u88ab\u4f7f\u7528\u3002","emailTaken":"\u8be5\u90ae\u7bb1\u5df2\u6ce8\u518c\u8d26\u53f7\u3002","passwordHint":"\u81f3\u5c113\u4e2a\u5b57\u7b26\u3002","fixErrorsToContinue":"\u8bf7\u4fee\u6b63\u9519\u8bef\u540e\u7ee7\u7eed","bySigningUpYouAgree":"\u6ce8\u518c\u5373\u8868\u793a\u60a8\u540c\u610f\u6211\u4eec\u7684","termsOfUse":"\u4f7f\u7528\u6761\u6b3e","accountCreated":"\u8d26\u53f7\u521b\u5efa\u6210\u529f\uff01","registrationFailed":"\u6ce8\u518c\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","alreadyHaveAccount":"\u5df2\u6709\u8d26\u53f7\uff1f","starterPlanTitle":"XSubscribe.bio \u5165\u95e8\u7248","proPlanTitle":"XSubscribe.bio \u4e13\u4e1a\u7248","premiumPlanTitle":"XSubscribe.bio \u9ad8\u7ea7\u7248","signUpAndStart":"\u6ce8\u518c\u5e76\u5f00\u59cb\u8fde\u63a5\uff01","termsAgreementFull":"\u6ce8\u518c\u5373\u8868\u793a\u60a8\u540c\u610f\u6211\u4eec\u7684\u6761\u6b3e\u3001\u9690\u79c1\u653f\u7b56\u548c Cookie \u653f\u7b56\u3002","resetYourPassword":"\u91cd\u7f6e\u5bc6\u7801","enterEmailToReset":"\u8f93\u5165\u60a8\u8981\u91cd\u7f6e\u7684\u8d26\u53f7\u90ae\u7bb1","pleaseEnterEmail":"\u8bf7\u8f93\u5165\u90ae\u7bb1","resetPassword":"\u91cd\u7f6e\u5bc6\u7801","pleaseEnterYourEmail":"\u8bf7\u8f93\u5165\u60a8\u7684\u90ae\u7bb1","couldNotStartRecovery":"\u65e0\u6cd5\u542f\u52a8\u5bc6\u7801\u6062\u590d\u3002","backToLogin":"\u8fd4\u56de\u767b\u5f55","emailVerification":"\u90ae\u7bb1\u9a8c\u8bc1","weSent4DigitCode":"\u6211\u4eec\u5df2\u53d1\u90014\u4f4d\u9a8c\u8bc1\u7801\u81f3","yourEmail":"\u60a8\u7684\u90ae\u7bb1","pleaseEnter4DigitCode":"\u8bf7\u8f93\u51654\u4f4d\u9a8c\u8bc1\u7801\u3002","verifyAccount":"\u9a8c\u8bc1\u8d26\u53f7","incorrectOrExpiredCode":"\u60a8\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\u6216\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u8bd5\u6216\u91cd\u65b0\u53d1\u9001\u3002","didntReceiveCode":"\u6ca1\u6709\u6536\u5230\u9a8c\u8bc1\u7801\uff1f","resendIn":"{{timer}}\u79d2\u540e\u91cd\u65b0\u53d1\u9001","sending":"\u53d1\u9001\u4e2d\u2026","verifying":"\u9a8c\u8bc1\u4e2d\u2026","newCodeSent":"\u65b0\u7684\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\u81f3\u60a8\u7684\u90ae\u7bb1\u3002","missingEmail":"\u7f3a\u5c11\u90ae\u7bb1\u3002","failedToResendCode":"\u91cd\u65b0\u53d1\u9001\u9a8c\u8bc1\u7801\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002","changePassword":"\u4fee\u6539\u5bc6\u7801","newPassword":"\u65b0\u5bc6\u7801","confirmPassword":"\u786e\u8ba4\u5bc6\u7801","passwordsDontMatch":"\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u81f4","failedToResetPassword":"\u91cd\u7f6e\u5bc6\u7801\u5931\u8d25","couldNotResetPassword":"\u65e0\u6cd5\u91cd\u7f6e\u5bc6\u7801\u3002","invalidOrExpiredCode":"\u9a8c\u8bc1\u7801\u65e0\u6548\u6216\u5df2\u8fc7\u671f\u3002","passwordSuccessfullySet":"\u5bc6\u7801\u8bbe\u7f6e\u6210\u529f","successTitle":"\u6210\u529f\uff01","emailSentInstructions":"\u8d26\u53f7\u9a8c\u8bc1\u90ae\u4ef6\u5df2\u53d1\u9001\u81f3\u60a8\u7684\u90ae\u7bb1\u3002\u8bf7\u6253\u5f00\u8be5\u90ae\u4ef6\u4ee5\u9a8c\u8bc1\u60a8\u7684\u8d26\u53f7\u3002\u5982\u679c15\u5206\u949f\u5185\u672a\u5728\u6536\u4ef6\u7bb1\u4e2d\u770b\u5230\u6b64\u9
20ae\u4ef6\uff0c\u8bf7\u68c0\u67e5\u5783\u573e\u90ae\u4ef6\u6587\u4ef6\u5939\u3002\u5982\u679c\u5728\u5783\u573e\u90ae\u4ef6\u4e2d\u627e\u5230\uff0c\u8bf7\u5c06\u5176\u6807\u8bb0\u4e3a\u300c\u975e\u5783\u573e\u90ae\u4ef6\u300d\u3002","emailVerifiedSuccessfully":"\u90ae\u7bb1\u9a8c\u8bc1\u6210\u529f","emailSuccessfullyVerifiedAlert":"\u90ae\u7bb1\u9a8c\u8bc1\u6210\u529f","notFound404":"404 \u9875\u9762\u672a\u627e\u5230"}'),onboarding:JSON.parse('{"title":"\u4f60\u597d\uff0c\u6211\u662f Clipbait","subtitle":"\u6211\u662f\u4f60\u7684 AI \u76f4\u64ad\u526a\u8f91\u52a9\u624b","factHeader":"\u4ee5\u4e0b\u662f\u4f60\u9700\u8981\u4e86\u89e3\u7684\u51e0\u4ef6\u4e8b\uff1a","fact1":"\u6211\u7531\u9876\u5c16\u526a\u8f91\u5e08\u6253\u9020\uff0c\u6280\u80fd\u5728\u4e0d\u65ad\u63d0\u5347","fact2":"\u6211\u7684\u4f7f\u547d\u662f\u5e2e\u52a9\u4e3b\u64ad\u548c\u526a\u8f91\u5e08\u66f4\u8f7b\u677e\u5730\u5de5\u4f5c","letsGetStarted":"\u5f00\u59cb\u5427","questionUserType":"\u4f60\u662f\u526a\u8f91\u5e08\u8fd8\u662f\u4e3b\u64ad\uff1f","imAClipper":"\u6211\u662f\u526a\u8f91\u5e08","imAStreamer":"\u6211\u662f\u4e3b\u64ad","questionStreamerNameClipper":"\u4e3b\u64ad\u53eb\u4ec0\u4e48\u540d\u5b57\uff1f","questionStreamerNameStreamer":"\u4f60\u7684\u4e3b\u64ad\u540d\u5b57\u662f\u4ec0\u4e48\uff1f","placeholderStreamerNameClipper":"\u4f8b\u5982 Kai Cenat","placeholderStreamerNameStreamer":"\u4f8b\u5982 \u4f60\u7684\u663e\u793a\u540d\u79f0","streamerNameHint":"\u8fd9\u6709\u52a9\u4e8e AI \u4e3a\u7247\u6bb5\u64b0\u5199\u66f4\u597d\u7684\u6807\u9898\u3002","questionChannelUsernameClipper":"\u4f60\u526a\u8f91\u7684\u4e3b\u64ad\u7684\u9891\u9053\u7528\u6237\u540d\u662f\u4ec0\u4e48\uff1f","questionChannelUsernameStreamer":"\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u4f60\u7684\u9891\u9053\u7528\u6237\u540d\u662f\u4ec0\u4e48\uff1f\uff08\u7eaf\u6587\u672c\uff0c\u4e0d\u8981\u5e26 @ \u7b26\u53f7\uff09","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\u4ed6\u4eec\u5728\u54ea\u4e2a\u5e73\u53f0\u76f4\u64ad\uff1f","questionPlatformStreamer":"\u4f60\u7684\u4e3b\u8981\u76f4\u64ad\u5e73\u53f0\u662f\u54ea\u4e2a\uff1f","twitchStreamer":"\u6211\u5728 Twitch \u4e0a\u76f4\u64ad","rumbleStreamer":"\u6211\u5728 Rumble \u4e0a\u76f4\u64ad","youtubeStreamer":"\u6211\u5728 YouTube \u4e0a\u76f4\u64ad","kickStreamer":"\u6211\u5728 Kick \u4e0a\u76f4\u64ad","xStreamer":"\u6211\u5728 X \u4e0a\u76f4\u64ad","ganjingStreamer":"\u6211\u5728 Ganjing World \u4e0a\u76f4\u64ad","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"\u4e0a\u4f20\u5934\u50cf","profilePictureHint":"\u8fd9\u80fd\u5e2e\u52a9 AI \u5728\u89c6\u9891\u4e2d\u8bc6\u522b\u4f60\uff0c\u5236\u4f5c\u66f4\u597d\u7684\u526a\u8f91\u7247\u6bb5\u3002","choosePhoto":"\u9009\u62e9\u7167\u7247","uploading":"\u4e0a\u4f20\u4e2d...","questionOpportunitiesClipper":"\u60f3\u8981\u83b7\u5f97\u526a\u8f91\u8d5a\u94b1\u7684\u9080\u8bf7\u5417\uff1f","questionOpportunitiesStreamer":"\u60f3\u8981\u4e3a\u4f60\u7684\u76f4\u64ad\u96c7\u4f63 Clipbait \u526a\u8f91\u5e08\u5417\uff1f","yesInterested":"\u662f\u7684\uff0c\u6211\u611f\u5174\u8da3","notRightNow":"\u6682\u65f6\u4e0d\u9700\u8981","questionConnectPages":"\u8fde\u63a5\u4f60\u7684\u793e\u4ea4\u8d26\u53f7\u4ee5\u53d1\u5e03\u7247\u6bb5","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\u4f60\u521b\u4f5c\u4ec0\u4e48\u7c7b\u578b\u7684\u5185\u5bb9\uff1f","streamTypeGaming":"\u6e38\u620f","streamTypeGamingDesc":"\u6e38\u620f\u5b9e\u51b5\u642d\u914d\u89e3\u8bf4\u3001\u7cbe\u5f69\u64cd\u4f5c\u3001\u53cd\u5e94","streamTypeTalkingHead":"\u8c08\u8bdd\u7c7b","streamTypeTalkingHeadDesc":"\u64ad\u5ba2\u3001\u8bbf\u8c08\u3001\u53cd\u5e94\u3001\u8bc4\u8bba","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u5b9e\u5883\u76f4\u64ad\u3001\u6d3b\u52a8\u3001\u6237\u5916\u5185\u5bb9","streamTypeMusic":"\u97f3\u4e50","streamTypeMusicDesc":"\u73b0\u573a\u8868\u6f14\u3001DJ \u6f14\u51fa\u3001\u97f3\u4e50\u5236\u4f5c","finishSetup":"\u5b8c\u6210\u8bbe\u7f6e","ownStreamer":"\u6211\u5728 OWN \u4e0a\u76f4\u64ad","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI \u9a71\u52a8\u7684\u7247\u6bb5\u751f\u6210\u5668","turnStreamsInto":"\u5c06\u76f4\u64ad\u53d8\u6210","viralClips":"\u7206\u6b3e\u7247\u6bb5","pasteUrl":"\u7c98\u8d34\u94fe\u63a5","uploadVideo":"\u4e0a\u4f20\u89c6\u9891","pasteYouTubeLivestream":"\u7c98\u8d34\u4f60\u7684 YouTube \u76f4\u64ad\u94fe\u63a5","pasteRumbleLivestream":"\u7c98\u8d34\u4f60\u7684 Rumble \u76f4\u64ad\u94fe\u63a5","pasteGanjingWorldLink":"\u7c98\u8d34\u4f60\u7684\u5e72\u51c0\u4e16\u754c\u94fe\u63a5","pasteKickLink":"\u7c98\u8d34\u4f60\u7684 Kick \u94fe\u63a5","pasteTwitchLink":"\u7c98\u8d34\u4f60\u7684 Twitch \u94fe\u63a5","pasteXLink":"\u7c98\u8d34\u4f60\u7684 X \u94fe\u63a5","generateClips":"\u751f\u6210\u7247\u6bb5","starting":"\u542f\u52a8\u4e2d...","uploadingProgress":"\u4e0a\u4f20\u4e2d {{progress}}%...","processing":"\u5904\u7406\u4e2d","yourClips":"\u4f60\u7684\u7247\u6bb5","loadingClips":"\u52a0\u8f7d\u7247\u6bb5\u4e2d...","noClipsYet":"\u6682\u65e0\u7247\u6bb5","pasteStreamUrl":"\u7c98\u8d34\u76f4\u64ad\u94fe\u63a5\u5f00\u59cb\u4f7f\u7528","clipsReady":"{{count}} \u4e2a\u7247\u6bb5\u5df2\u5c31\u7eea\uff01","clipCount":"{{count}} \u4e2a\u7247\u6bb5","dropFileHere":"\u5c06\u6587\u4ef6\u62d6\u653e\u5230\u8fd9\u91cc","dragAndDrop":"\u62d6\u653e\u6216\u70b9\u51fb\u9009\u62e9","mp4OrMovMax2GB":"MP4 \u6216 MOV \u683c\u5f0f\uff0c\u6700\u5927 2GB","freeTrialBanner":"\u60a8\u6b63\u5728\u4f7f\u7528\u514d\u8d39\u8bd5\u7528\u7248\uff0c\u90e8\u5206\u529f\u80fd\u53d7\u9650\u3002\u5347\u7ea7\u4ee5\u89e3\u9501\u6240\u6709\u529f\u80fd\u3002","pasteVideoLink
2First":"\u8bf7\u5148\u7c98\u8d34\u89c6\u9891\u94fe\u63a5","selectPlatformInSettings":"\u8bf7\u5728\u8bbe\u7f6e\u4e2d\u9009\u62e9\u60a8\u7684\u5e73\u53f0","setChannelUsername":"\u8bf7\u5728\u8bbe\u7f6e\u4e2d\u8bbe\u7f6e\u60a8\u7684\u9891\u9053\u7528\u6237\u540d","onlyMp4MovSupported":"\u4ec5\u652f\u6301 MP4 \u548c MOV \u683c\u5f0f","fileMustBeUnder2GB":"\u6587\u4ef6\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 2GB","selectVideoFileFirst":"\u8bf7\u5148\u9009\u62e9\u89c6\u9891\u6587\u4ef6","clippingStarted":"\u526a\u8f91\u5df2\u5f00\u59cb\uff01","uploadCompleteClippingStarted":"\u4e0a\u4f20\u5b8c\u6210 \u2014 \u526a\u8f91\u5df2\u5f00\u59cb\uff01","uploadFailed":"\u4e0a\u4f20\u5931\u8d25","failedToStartClipping":"\u542f\u52a8\u526a\u8f91\u5931\u8d25","havingTroubleWithLink":"\u8be5\u94fe\u63a5\u5904\u7406\u9047\u5230\u95ee\u9898 \u2014 \u8bf7\u5c1d\u8bd5\u4e0b\u8f7d\u89c6\u9891\u540e\u4e0a\u4f20\uff0c\u6216\u4f7f\u7528 YouTube \u94fe\u63a5","reachedUploadLimit":"\u60a8\u672c\u6708\u7684\u4e0a\u4f20\u6b21\u6570\u5df2\u7528\u5b8c\u3002","jobCancelled":"\u4efb\u52a1\u5df2\u53d6\u6d88","projectDeleted":"\u9879\u76ee\u5df2\u5220\u9664","failedToDeleteProject":"\u5220\u9664\u9879\u76ee\u5931\u8d25","deleteProject":"\u5220\u9664\u9879\u76ee\uff1f","cannotBeUndone":"\u6b64\u64cd\u4f5c\u65e0\u6cd5\u64a4\u9500\u3002","jobStillProcessing":"\u6b64\u4efb\u52a1\u4ecd\u5728\u5904\u7406\u4e2d","jobCancelledClipsDeleted":"\u4efb\u52a1\u5c06\u88ab\u53d6\u6d88\uff0c\u6240\u6709\u7247\u6bb5\u5c06\u88ab\u6c38\u4e45\u5220\u9664\u3002","allClipsDeleted":"\u6240\u6709\u7247\u6bb5\u5c06\u88ab\u6c38\u4e45\u5220\u9664\u3002","creatingYourClips":"\u6b63\u5728\u521b\u5efa\u60a8\u7684\u7247\u6bb5","wellEmailYouWhenReady":"\u5b8c\u6210\u540e\u6211\u4eec\u4f1a\u901a\u8fc7\u90ae\u4ef6\u901a\u77e5\u60a8","estimatingTime":"\u4f30\u7b97\u4e2d...","underTwoMinutes":"\u4e0d\u5230 2 \u5206\u949f","minutesRemaining":"\u7ea6 {{count}} \u5206\u949f\u5269\u4f59","hoursMinutesRemaining":"\u7ea6 {{hours}} \u5c0f\u65f6 {{minutes}} \u5206\u949f\u5269\u4f59","almostDone":"\u5feb\u5b8c\u6210\u4e86...","phaseDownloading":"\u6b63\u5728\u4e0b\u8f7d\u89c6\u9891...","phaseDownloaded":"\u4e0b\u8f7d\u5b8c\u6210","phaseExtractingAudio":"\u6b63\u5728\u63d0\u53d6\u97f3\u9891...","phaseTranscribing":"\u6b63\u5728\u8f6c\u5f55\u97f3\u9891...","phaseTranscribingLong":"\uff08\u8fd9\u662f\u957f\u76f4\u64ad\u6700\u6162\u7684\u6b65\u9aa4\uff09","phaseAnalyzing":"AI \u6b63\u5728\u9009\u62e9\u6700\u4f73\u7247\u6bb5...","phaseRendering":"\u6b63\u5728\u6e32\u67d3\u526a\u8f91\u7247\u6bb5...","phaseDone":"\u5b8c\u6210\uff01","tryUploadingInstead":"\u8bd5\u8bd5\u76f4\u63a5\u4e0a\u4f20","processingStatus":"\u5904\u7406\u4e2d...","clipsReadyCount":"{{count}} \u4e2a\u7247\u6bb5\u5df2\u5c31\u7eea","schedule":"\u5b9a\u65f6\u53d1\u5e03","post":"\u53d1\u5e03","goodClip":"\u597d\u7247\u6bb5","badClip":"\u5dee\u7247\u6bb5","downloadClip":"\u4e0b\u8f7d\u7247\u6bb5","moreOptions":"\u66f4\u591a\u9009\u9879","clipDefaultTitle":"\u7247\u6bb5 {{number}}","funMessages":{"goGrabCoffee":"\u53bb\u559d\u676f\u5496\u5561\u5427","timeForStretch":"\u8be5\u4f38\u4e2a\u61d2\u8170\u4e86","takeQuickWalk":"\u51fa\u53bb\u8d70\u8d70\u5427","hydrateYourself":"\u559d\u70b9\u6c34\u5427","doPushups":"\u505a\u51e0\u4e2a\u4fef\u5367\u6491","callYourMom":"\u7ed9\u5988\u5988\u6253\u4e2a\u7535\u8bdd","petYourDog":"\u64b8\u64b8\u4f60\u7684\u72d7\u5b50","goForSwim":"\u53bb\u6e38\u4e2a\u6cf3\u5427","touchSomeGrass":"\u51fa\u53bb\u547c\u5438\u4e0b\u65b0\u9c9c\u7a7a\u6c14","checkYourPosture":"\u6ce8\u610f\u4f60\u7684\u5750\u59ff"},"funMessagesModal":{"goForSwim":"\u8d81\u6211\u4eec\u65bd\u5c55\u9b54\u6cd5\uff0c\u53bb\u6e38\u4e2a\u6cf3\u5427","perfectTimeForCoffee":"\u73b0\u5728\u6b63\u597d\u53bb\u559d\u676f\u5496\u5561","quickStretch":"\u8981\u4e0d\u4f38\u5c55\u4e00\u4e0b\uff1f","hydrationCheck":"\u8865\u6c34\u65f6\u95f4\uff01\u559d\u70b9\u6c34\u5427","takeWalk":"\u51fa\u53bb\u6563\u6563\u6b65\uff0c\u4ea4\u7ed9\u6211\u4eec","callSomeone":"\u7ed9\u4f60\u5173\u5fc3\u7684\u4eba\u6253\u4e2a\u7535\u8bdd","petYourPet":"\u5982\u679c\u6709\u5ba0\u7269\u7684\u8bdd\uff0c\u64b8\u4e00\u64b8","touchGrass":"\u51fa\u53bb\u547c\u5438\u4e0b\u65b0\u9c9c\u7a7a\u6c14\u5427","jumpingJacks":"\u505a10\u4e2a\u5f00\u5408\u8df3","victoryDance":"\u7ec3\u4e60\u4e00\u4e0b\u4f60\u7684\u5e86\u795d\u821e\u6b65","deepBreaths":"\u6df1\u547c\u5438...\u4f60\u505a\u5f97\u5f88\u68d2","timeToSnack":"\u662f\u65f6\u5019\u5403\u70b9\u96f6\u98df\u4e86"},"editClip":"\u7f16\u8f91\u7247\u6bb5","clipEditor":"\u7247\u6bb5\u7f16\u8f91\u5668","trimIn":"\u8d77\u70b9","trimOut":"\u7ec8\u70b9","previewTrim":"\u9884\u89c8\u88c1\u526a","saveCaption":"\u4fdd\u5b58","saveAndDownload":"\u4fdd\u5b58\u5e76\u4e0b\u8f7d","export":"\u5bfc\u51fa","exportComplete":"\u5bfc\u51fa\u5b8c\u6210\uff01","exportNotSupported":"\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5bfc\u51fa","backToClips":"\u8fd4\u56de","uploadLimitReached":"\u4e0a\u4f20\u6b21\u6570\u5df2\u8fbe\u4e0a\u9650","limitResets":"\u60a8\u7684\u9650\u989d\u5c06\u4e8e {{date}} \u91cd\u7f6e","gotIt":"\u77e5\u9053\u4e86","failed":"\u5931\u8d25","creditsRefunded":"\u70b9\u6570\u5df2\u9000\u8fd8","tryAgainDifferentLink":"\u8bf7\u91cd\u8bd5\u6216\u4f7f\u7528\u5176\u4ed6\u94fe\u63a5\u3002","noSpeechInVideo":"\u4f60\u7c98\u8d34\u7684\u94fe\u63a5\u6ca1\u6709\u4efb\u4f55\u8bed\u97f3\u5185\u5bb9\u3002\u8bf7\u6539\u7528\u6709\u521b\u4f5c\u8005\u8bf4\u8bdd\u7684\u89c6\u9891\u3002","retry":"\u91cd\u8bd5","cancelJobBtn":"\u53d6\u6d88","hookScore":"\u94a9\u5b50\u5f97\u5206","best":"\u6700\u4f73","clipsSelected":"\u5df2\u9009 {{count}} \u4e2a","switchToFileUpload":"\u5207\u6362\u4e3a\u4e0a\u4f20\u6587\u4ef6","switchToURL":"\u5207\u6362\u4e3a\u7f51\u5740","selectContentTypeFirst":"\u8bf7\u5148\u9009\u62e9\u5185\u5bb9\u7c7b\u578b\u3002","livestreamsNotSupported":"\u6682\u4e0d\u652f\u6301\u76f4\u64ad \u2014 \u8bf7\u4f7f\u7528 VOD \u6216\u5f55\u5236\u89c6\u9891\u3002","contentTypes":{"gaming":"\u6e38\u620f","podcastTalkingHead":"\u64ad\u5ba2 / \u8bbf\u8c08\u8282\u76ee","irlVlog":"IRL / Vlog","music":"\u97f3\u4e50","documentary":"\u7eaa\u5f55\u7247"},"cancelThisJob":"\u53d6\u6d88\u6b64\u4efb\u52a1\uff1f","deleteTheseAssets":"\u5220\u9664\u8fd9\u4e9b\u8d44\u6e90\uff1f","willStopProcessingRemoveJob":"\u8fd9\u5c06\u505c\u6b62\u5904\u7406\u5e76\u79fb\u9664\u6b64\u4efb\u52a1\u3002","keepGoing":"\u7ee7\u7eed","noKeepThem":"\u4e0d\uff0c\u4fdd\u7559\u5b83\u4eec","yesCancelJob":"\u662f\uff0c\u53d6\u6d88\u4efb\u52a1","yesDeleteForever":"\u662f\uff0c\u6c38\u4e45\u5220\u9664","titleCaption":"\u6807\u9898\u5b57\u5e55","information":"\u4fe1\u606f","duration":"\u65f6\u957f","platform":"\u5e73\u53f0","creator":"\u521b\u4f5c\u8005","rateThisClip":"\u8bc4\u4ef7\u6b64\u7247\u6bb5","type":"\u7c7b\u578b","format":"\u683c\u5f0f","clipsLabel":"\u7247\u6bb5","slowConnection":"\u7f51\u7edc\u901f\u5ea6\u7f13\u6162","couldntLoad":"\u65e0\u6cd5\u52a0\u8f7d","tapToRetry":"\u70b9\u51fb\u91cd\u8bd5","clipsDeleted_one":"\u5df2\u5220\u9664 {{count}} \u4e2a\u7247\u6bb5","clipsDeleted_other":"\u5df2\u5220\u9664 {{count}} \u4e2a\u7247\u6bb5"}'),schedule:JSON.parse('{"shareClip":"\u5206\u4eab\u7247\u6bb5","loadingPlatforms":"\u52a0\u8f7d\u5e73\u53f0\u4e2d...","noConnectedPlatforms":"\u6ca1\u6709\u5df2\u8fde\u
263a5\u7684\u5e73\u53f0\u3002","connectSocialsToSchedule":"\u8fde\u63a5\u60a8\u7684\u793e\u4ea4\u5a92\u4f53\u8d26\u53f7\u4ee5\u5b9a\u65f6\u53d1\u5e03\u3002","connectYourAccounts":"\u8fde\u63a5\u60a8\u7684\u8d26\u53f7","postTo":"\u53d1\u5e03\u5230\uff1a","deselectAll":"\u53d6\u6d88\u5168\u9009","selectAll":"\u5168\u9009","caption":"\u6807\u9898","writeCaptionPlaceholder":"\u4e3a\u60a8\u7684\u5e16\u5b50\u5199\u4e00\u6bb5\u63cf\u8ff0...","scheduleAction":"\u5b9a\u65f6\u53d1\u5e03","saveAndSchedule":"\u4fdd\u5b58\u5e76\u5b9a\u65f6\u53d1\u5e03","postAction":"\u53d1\u5e03","publishImmediately":"\u7acb\u5373\u53d1\u5e03","scheduling":"\u6b63\u5728\u5b89\u6392\u53d1\u5e03...","publishing":"\u53d1\u5e03\u4e2d...","viewPost":"\u67e5\u770b\u5e16\u5b50","postedSuccessfully":"\u53d1\u5e03\u6210\u529f\uff01","partiallyPosted":"\u90e8\u5206\u53d1\u5e03\u6210\u529f","failedToPost":"\u53d1\u5e03\u5931\u8d25","selectAtLeastOnePlatform":"\u8bf7\u81f3\u5c11\u9009\u62e9\u4e00\u4e2a\u5e73\u53f0","selectATime":"\u8bf7\u9009\u62e9\u65f6\u95f4","selectFutureTime":"\u8bf7\u9009\u62e9\u672a\u6765\u7684\u65f6\u95f4","postScheduled":"\u5e16\u5b50\u5df2\u5b89\u6392\u53d1\u5e03\uff01","failedToSchedule":"\u5b89\u6392\u53d1\u5e03\u5931\u8d25","failedToPublish":"\u53d1\u5e03\u5931\u8d25","postedSuccess":"\u53d1\u5e03\u6210\u529f\uff01","postedToSomePlatforms":"\u5df2\u53d1\u5e03\u5230\u90e8\u5206\u5e73\u53f0","failedToPostError":"\u53d1\u5e03\u5931\u8d25","scheduledPost":"\u5b9a\u65f6\u5e16\u5b50","postingTo":"\u53d1\u5e03\u5230","writeCaptionShort":"\u5199\u4e00\u6bb5\u63cf\u8ff0...","saveChanges":"\u4fdd\u5b58\u66f4\u6539","cancelScheduledPost":"\u53d6\u6d88\u6b64\u5b9a\u65f6\u5e16\u5b50\uff1f","clipWontBePosted":"\u6b64\u7247\u6bb5\u5c06\u4e0d\u4f1a\u53d1\u5e03\u5230\u60a8\u9009\u62e9\u7684\u5e73\u53f0\u3002","keepIt":"\u4fdd\u7559","cancelling":"\u53d6\u6d88\u4e2d...","yesCancelPost":"\u662f\u7684\uff0c\u53d6\u6d88\u53d1\u5e03","changesSaved":"\u66f4\u6539\u5df2\u4fdd\u5b58","failedToSaveChanges":"\u4fdd\u5b58\u66f4\u6539\u5931\u8d25","postCancelled":"\u5e16\u5b50\u5df2\u53d6\u6d88","failedToCancelPost":"\u53d6\u6d88\u5e16\u5b50\u5931\u8d25","todayAt":"\u4eca\u5929","tomorrowAt":"\u660e\u5929","upcomingClips":"\u5373\u5c06\u53d1\u5e03\u7684\u7247\u6bb5","noScheduledClipsThisMonth":"\u672c\u6708\u6ca1\u6709\u5df2\u5b89\u6392\u7684\u7247\u6bb5\u3002","scheduleClipsHint":"\u7247\u6bb5\u6e32\u67d3\u5b8c\u6210\u540e\u5373\u53ef\u5b89\u6392\u53d1\u5e03\u3002","cancelScheduledPostConfirm":"\u53d6\u6d88\u5b9a\u65f6\u5e16\u5b50\uff1f","cancelPostMessage":"\u8fd9\u5c06\u4ece\u53d1\u5e03\u8ba1\u5212\u4e2d\u79fb\u9664\u8be5\u5e16\u5b50\u3002\u60a8\u968f\u65f6\u53ef\u4ee5\u91cd\u65b0\u5b89\u6392\u3002","cancelPost":"\u53d6\u6d88\u5e16\u5b50","sun":"\u5468\u65e5","mon":"\u5468\u4e00","tue":"\u5468\u4e8c","wed":"\u5468\u4e09","thu":"\u5468\u56db","fri":"\u5468\u4e94","sat":"\u5468\u516d","untitledClip":"\u65e0\u6807\u9898\u7247\u6bb5","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"\u5df2\u8fde\u63a5\u7684\u8d26\u53f7","linkSocialsToPost":"\u5173\u8054\u793e\u4ea4\u8d26\u53f7\u4ee5\u76f4\u63a5\u53d1\u5e03\u7247\u6bb5\u3002","yourChannel":"\u60a8\u7684\u9891\u9053","watermarkDescription":"\u4f60\u7684\u5934\u50cf\u80fd\u5e2e\u52a9 AI \u5728\u89c6\u9891\u4e2d\u8bc6\u522b\u4f60\uff0c\u5236\u4f5c\u66f4\u597d\u7684\u526a\u8f91\u7247\u6bb5\u3002","streamerName":"\u4e3b\u64ad\u540d\u79f0","placeholderStreamerName":"\u4f8b\u5982 Kai Cenat","streamerNameHint":"\u60a8\u526a\u8f91\u7684\u4e3b\u64ad\u540d\u79f0\u3002\u8fd9\u6709\u52a9\u4e8e AI \u64b0\u5199\u66f4\u597d\u7684\u6807\u9898\u3002","channelUsername":"\u9891\u9053\u7528\u6237\u540d","placeholderChannelUsername":"\u60a8\u7684\u76f4\u64ad\u7528\u6237\u540d","platform":"\u5e73\u53f0","selectPlatform":"\u9009\u62e9\u5e73\u53f0","tapToChangePhoto":"\u70b9\u51fb\u66f4\u6362\u7167\u7247","pleaseSelectImageFile":"\u8bf7\u9009\u62e9\u56fe\u7247\u6587\u4ef6","imageMustBeLess5MB":"\u56fe\u7247\u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc7 5M
2B","profilePictureUpdated":"\u5934\u50cf\u5df2\u66f4\u65b0\uff01","failedToUploadPicture":"\u4e0a\u4f20\u56fe\u7247\u5931\u8d25","disconnectedFrom":"\u5df2\u65ad\u5f00 {{platform}} \u8fde\u63a5","failedToDisconnect":"\u65ad\u5f00\u8fde\u63a5\u5931\u8d25","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"\u8ba2\u9605\u8bbe\u7f6e","stripeConnectionStatus":"Stripe \u8fde\u63a5\u72b6\u6001","stripeConnectedMessage":"\u60a8\u7684 Stripe \u8d26\u53f7\u5df2\u8fde\u63a5\uff0c\u53ef\u4ee5\u63a5\u6536\u4ed8\u6b3e","manageStripeAccount":"\u7ba1\u7406 Stripe \u8d26\u53f7","stripeConnectInstructions":"\u8fde\u63a5\u60a8\u7684 Stripe \u8d26\u53f7\u4ee5\u5f00\u59cb\u63a5\u6536\u8ba2\u9605\u4ed8\u6b3e...","stripeSetupWarning":"\u91cd\u8981\u63d0\u793a\uff1a\u60a8\u5fc5\u987b\u5b8c\u6210\u6574\u4e2a Stripe \u8bbe\u7f6e\u6d41\u7a0b...","stripeSupportMessage":"\u9047\u5230\u95ee\u9898\uff1f\u8bf7\u8054\u7cfb\u652f\u6301\u90ae\u7bb1 [email protected]...","connectingToStripe":"\u6b63\u5728\u8fde\u
263a5 Stripe...","connectStripeAccount":"\u8fde\u63a5 Stripe \u8d26\u53f7","enableSubscriptions":"\u542f\u7528\u8ba2\u9605","monthlySubscriptionPrice":"\u6bcf\u6708\u8ba2\u9605\u4ef7\u683c\uff08\u7f8e\u5143\uff09","subscriptionDescription":"\u8ba2\u9605\u63cf\u8ff0","describeSubscriptionBenefits":"\u63cf\u8ff0\u8ba2\u9605\u8005\u5c06\u83b7\u5f97\u7684\u6743\u76ca...","saveSettings":"\u4fdd\u5b58\u8bbe\u7f6e","settingsSaved":"\u8bbe\u7f6e\u4fdd\u5b58\u6210\u529f\uff01","savingFailed":"\u4fdd\u5b58\u8bbe\u7f6e\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","stripeConnectionError":"\u8fde\u63a5 Stripe \u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","stripeDashboardError":"\u6253\u5f00 Stripe \u63a7\u5236\u9762\u677f\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","stripeSetupError":"\u5b8c\u6210 Stripe \u8bbe\u7f6e\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5\u3002","xsubscribeAdmin":"XSubscribe \u7ba1\u7406","preview":"\u9884\u89c8","fetchLinksError":"\u83b7\u53d6\u7528\u6237\u94fe\u63a5\u5931\u8d25","deleteLinkError":"\u5220\u9664\u94fe\u63a5\u5931\u8d25","orderUpdateSuccess":"\u6392\u5e8f\u503c\u5df2\u66f4\u65b0\u5230\u670d\u52a1\u5668","orderUpdateError":"\u66f4\u65b0\u6392\u5e8f\u503c\u5931\u8d25","addLinkError":"\u6dfb\u52a0\u94fe\u63a5\u5931\u8d25","profileSection":"\u4e2a\u4eba\u8d44\u6599","pickAnImage":"\u9009\u62e9\u56fe\u7247","remove":"\u79fb\u9664","usernameInputPlaceholder":"\u60a8\u7684 X \u7528\u6237\u540d\uff08@\u7528\u6237\u540d\uff09","bioInputPlaceholder":"\u4e3a\u4ec0\u4e48\u4eba\u4eec\u5e94\u8be5\u8ba2\u9605\uff1f","getUnlimitedCustomization":"\u83b7\u53d6\u65e0\u9650\u81ea\u5b9a\u4e49","verifiedCheckmark":"\u8ba4\u8bc1\u6807\u8bb0","customBackgroundImages":"\u81ea\u5b9a\u4e49\u80cc\u666f\u56fe\u7247","removeXSubscribeLogo":"\u79fb\u9664 XSubscribe \u6807\u5fd7","dollarPerMonth":"\u4e4b\u540e $9/\u6708","flatColour":"\u7eaf\u8272","image":"\u56fe\u7247","pickAColor":"\u9009\u62e9\u989c\u8272","hideXSubscribeLogo":"\u9690\u85cf XSubscribe \u6807\u5fd7","errorUpdatingProfileTitle":"\u66f4\u65b0\u4e2a\u4eba\u8d44\u6599\u6807\u9898\u51fa\u9519","errorUpdatingBio":"\u66f4\u65b0\u4e2a\u4eba\u7b80\u4ecb\u51fa\u9519","errorSavingBackgroun
2dColor":"\u4fdd\u5b58\u80cc\u666f\u989c\u8272\u51fa\u9519","errorUpdatingEffects":"\u66f4\u65b0\u80cc\u666f\u6548\u679c\u51fa\u9519","errorUpdatingLogo":"\u66f4\u65b0\u7528\u6237\u6807\u5fd7\u51fa\u9519","invalidUser":"\u5f53\u524d\u7528\u6237\u65e0\u6548\u3002","errorFetchingLogoStatus":"\u83b7\u53d6\u6807\u5fd7\u72b6\u6001\u51fa\u9519","errorFetchingUserData":"\u83b7\u53d6\u7528\u6237\u6570\u636e\u51fa\u9519","errorFetchingProfilePic":"\u83b7\u53d6\u5934\u50cf\u51fa\u9519","uploadFailed":"\u4e0a\u4f20\u5931\u8d25","accountSettings":"\u8d26\u53f7\u8bbe\u7f6e","manageSubscription":"\u7ba1\u7406\u8ba2\u9605","manageSubscriptionDesc":"\u66f4\u65b0\u652f\u4ed8\u65b9\u5f0f\u3001\u67e5\u770b\u8d26\u5355\u6216\u53d6\u6d88\u8ba2\u9605","deleteAccount":"\u5220\u9664\u8d26\u53f7","deleteAccountWarning":"\u6b64\u64cd\u4f5c\u65e0\u6cd5\u64a4\u9500\u3002\u60a8\u7684\u6240\u6709\u6570\u636e\u5c06\u88ab\u6c38\u4e45\u5220\u9664\u3002","typeDeleteToConfirm":"\u8f93\u5165 DELETE \u4ee5\u786e\u8ba4","accountDeleted":"\u8d26\u53f7\u5df2\u6210\u529f\u5220\u9664","failedToDeleteAccount":"\u5220\u9664\u8d26\u53f7\u5931\u8d25","failedToOpenBilling":"\u65e0\u6cd5\u6253\u5f00\u8d26\u5355\u7ba1\u7406\u9875\u9762","yourBrands":"\u60a8\u7684\u54c1\u724c","addBrand":"\u6dfb\u52a0\u54c1\u724c","brandName":"\u54c1\u724c\u540d\u79f0","brandNamePlaceholder":"\u8f93\u5165\u54c1\u724c\u540d\u79f0","createBrand":"\u521b\u5efa\u54c1\u724c","switchBrand":"\u5207\u6362\u54c1\u724c","deleteBrand":"\u5220\u9664\u54c1\u724c","cannotDeleteLastBrand":"\u65e0\u6cd5\u5220\u9664\u60a8\u552f\u4e00\u7684\u54c1\u724c","brandCreated":"\u54c1\u724c\u5df2\u521b\u5efa\uff01","brandSwitched":"\u54c1\u724c\u5df2\u5207\u6362\uff01","brandDeleted":"\u54c1\u724c\u5df2\u5220\u9664","failedToCreateBrand":"\u521b\u5efa\u54c1\u724c\u5931\u8d25","failedToSwitchBrand":"\u5207\u6362\u54c1\u724c\u5931\u8d25","failedToDeleteBrand":"\u5220\u9664\u54c1\u724c\u5931\u8d25","captionPresets":"\u5b57\u5e55\u6837\u5f0f","captionPresetsDesc":"\u8bbe\u7f6e\u526a\u8f91\u5b57\u5e55\u7684\u9ed8\u8ba4\u5916\u89c2\u3002\u65b0\u526a\u8f91\u5c06\u4f7f\u7528\u60a8\u542f\u7528\u7684\u9884\u8bbe\u6837\u5f0f\u3002","presetName":"\u9884\u8bbe\u540d\u79f0","presetNamePlaceholder":"\u4f8b\u5982\uff1a\u7c97\u4f53\u7ea2\u8272","addPreset":"\u6dfb\u52a0\u9884\u8bbe","editPreset":"\u7f16\u8f91","deletePreset":"\u5220\u9664","createPreset":"\u521b\u5efa\u9884\u8bbe","presetCreated":"\u9884\u8bbe\u5df2\u521b\u5efa\uff01","presetActivated":"\u5b57\u5e55\u6837\u5f0f\u5df2\u5207\u6362\uff01","presetDeleted":"\u9884\u8bbe\u5df2\u5220\u9664","cannotDeleteLastPreset":"\u65e0\u6cd5\u5220\u9664\u60a8\u552f\u4e00\u7684\u9884\u8bbe","failedToSwitchPreset":"\u5207\u6362\u9884\u8bbe\u5931\u8d25","failedToDeletePreset":"\u5220\u9664\u9884\u8bbe\u5931\u8d25","captionPreview":"\u8fd9\u662f\u60a8\u7684\u5b57\u5e55\u9884\u89c8","captionColor":"\u989c\u8272","captionFont":"\u5b57\u4f53","captionPosition":"\u4f4d\u7f6e","captionWidth":"\u5bbd\u5ea6","streamType":"\u5185\u5bb9\u7c7b\u578b","streamTypeHint":"\u4f60\u521b\u4f5c\u4ec0\u4e48\u7c7b\u578b\u7684\u5185\u5bb9\uff1f\u8fd9\u80fd\u5e2e\u52a9 AI \u4e3a\u4f60\u7684\u98ce\u683c\u91cf\u8eab\u5b9a\u5236\u526a\u8f91\u3002","streamTypeGaming":"\u6e38\u620f","streamTypeGamingDesc":"\u5e26\u89e3\u8bf4\u7684\u6e38\u620f\u753b\u9762\u3001\u7cbe\u5f69\u64cd\u4f5c\u3001\u53cd\u5e94\u7247\u6bb5","streamTypeTalkingHead":"\u8c08\u8bdd\u7c7b","streamTypeTalkingHeadDesc":"\u64ad\u5ba2\u3001\u8bbf\u8c08\u3001\u53cd\u5e94\u89c6\u9891\u3001\u8bc4\u8bba","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u73b0\u5b9e\u751f\u6d3b\u76f4\u64ad\u3001\u6d3b\u52a8\u3001\u6237\u5916\u5185\u5bb9","streamTypeMusic":"\u97f3\u4e50","streamTypeMusicDesc":"\u73b0\u573a\u6f14\u51fa\u3001DJ \u8868\u6f14\u3001\u97f3\u4e50\u5236\u4f5c","streamTypeDocumentary":"\u7eaa\u5f55\u7247","streamTypeDocumentaryDesc":"\u7eaa\u5f55\u7247\u3001\u8ff7\u4f60\u7eaa\u5f55\u7247\u53ca\u7535\u5f71","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"\u89e3\u9501 Clipbait","getFullAccess":"\u83b7\u53d6 AI \u9a71\u52a8\u7684\u7247\u6bb5\u751f\u6210\u5b8c\u6574\u6743\u9650","monthly":"\u6708\u4ed8","annual"
2:"\u5e74\u4ed8","save15Percent":"\u7701 15%","perMonth":"/\u6708","perMonthShort":"/\u6708","billedAsPerYear":"\u6309 ${{amount}}/\u5e74 \u8ba1\u8d39","upload30Videos":"\u6bcf\u6708\u4e0a\u4f20 30 \u4e2a\u89c6\u9891","upTo2Hours":"\u6700\u957f 2 \u5c0f\u65f6\u89c6\u9891","generate300Clips":"\u6bcf\u6708\u751f\u6210 300 \u4e2a\u7247\u6bb5","downloadAndSchedule":"\u4e0b\u8f7d\u548c\u5b9a\u65f6\u53d1\u5e03\u7247\u6bb5","upTo5Accounts":"\u6700\u591a 5 \u4e2a\u54c1\u724c\u8d26\u53f7","getStarted":"\u7acb\u5373\u5f00\u59cb","redirecting":"\u8df3\u8f6c\u4e2d...","exclusiveOffer":"\u4e13\u5c5e\u4f18\u60e0","russellBrandsPick":"Russell Brand \u63a8\u8350","get10PercentOff":"Clipbait Pro \u4eab\u53d79\u6298\u4f18\u60e0 \u2014 Russell \u7c89\u4e1d\u4e13\u5c5e","discountApplied":"9\u6298\u4f18\u60e0\u81ea\u52a8\u751f\u6548","claim10Off":"\u9886\u53d69\u6298\u4f18\u60e0","noThanksFullPrice":"\u4e0d\u7528\u4e86\uff0c\u6211\u6309\u539f\u4ef7\u8d2d\u4e70","generateWithoutLimits":"\u65e0\u9650\u5236\u751f\u6210","upgradePlan":"\u5347\u7ea7\u5957\u9910","buyCredits":"\u8d2d\u4e70\u70b9\u6570","creditsNeverExpireNote":"\u70b9\u6570\u6c38\u4e0d\u8fc7\u671f\uff0c\u5728\u6bcf\u6708\u5957\u9910\u989d\u5ea6\u7528\u5b8c\u540e\u624d\u4f7f\u7528\u3002","mostPopular":"\u6700\u53d7\u6b22\u8fce","bestValue":"\u6700\u8d85\u503c","generationsPerMonth":"\u6bcf\u6708 {{count}} \u6b21\u751f\u6210","twentyPercentOff":"\u516b\u6298\u4f18\u60e0","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"\u7701 16%","save26Percent":"\u7701 26%","perMonthBilledAnnually":"\u6bcf\u6708\uff0c\u6309\u5e74\u8ba1\u8d39"}'),pages:JSON.parse('{"foundersStoryTitle":"\u521b\u59cb\u4eba\u7684\u6545\u4e8b","foundersStoryContent":"2021\u5e74\uff0cSpirit \u906d\u9047\u4e86\u4e3b\u6d41\u5e73\u53f0\u4e0a\u4ee4\u4eba\u7a92\u606f\u7684\u5ba1\u67e5\u3002\u4e3a\u4e86\u5bfb\u627e\u4e00\u4e2a\u81ea\u7531\u8868\u8fbe\u5f97\u4ee5\u84ec\u52c3\u53d1\u5c55\u7684\u7a7a\u95f4\uff0c\u4ed6\u53d1\u73b0\u4e86\u4e00\u4e2a\u4e0e\u4ed6\u5bf9\u5f00\u653e\u5bf9\u8bdd\u548c\u521b\u4f5c\u81ea\u7531\u4fe1\u5ff5\u76f8\u5951\u5408\u7684\u5e73\u53f0\u3002\u8fd9\u4e2a\u5173\u952e\u65f6\u523b\u6fc0\u53d1\u4e86 XSubscribe \u7684\u521b\u610f\u2014\u2014\u4e00\u4e2a\u8ba9\u521b\u4f5c\u8005\u548c\u4ed6\u4eec\u7684\u793e\u533a\u80fd\u591f\u771f\u5b9e\u8fde\u63a5\u3001\u4e0d\u5fc5\u62c5\u5fc3\u5ba1\u67e5\u7684\u5e73\u53f0\u3002Spirit \u51ed\u501f\u72ec\u7279\u7684\u613f\u666f\u548c\u8d4b\u80fd\u521b\u4f5c\u8005\u7684\u70ed\u60c5\uff0c\u4e3a\u5185\u5bb9\u53d8\u73b0\u7684\u65b0\u65f6\u4ee3\u5960\u5b9a\u4e86\u57fa\u7840\u3002\u968f\u7740 XSubscribe \u4e0d\u65ad\u53d1\u5c55\uff0c\u5b83\u59cb\u7ec8\u624e\u6839\u4e8e\u4e00\u4e2a\u4fe1\u5ff5\uff1a\u6bcf\u4e00\u4e2a\u58f0\u97f3\u90fd\u503c\u5f97\u88ab\u542c\u5230\u3002\u65e0\u8bba\u60a8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u521b\u4f5c\u8005\u8fd8\u662f\u521a\u521a\u8d77\u6b65\uff0cXSubscribe \u90fd\u4f1a\u5e2e\u52a9\u60a8\u5efa\u7acb\u53ef\u6301\u7eed\u7684\u4e8b\u4e1a\uff0c\u505a\u60a8\u70ed\u7231\u7684\u4e8b\u60c5\u3002","termsTitle":"\u6761\u6b3e\u4e0e\u6761\u4ef6","lastUpdatedTerms":"\u6700\u540e\u66f4\u65b0\uff1a2024\u5e741\u67087\u65e5 \u661f\u671f\u65e5","termsSection1Title":"1. \u6b22\u8fce\u4f7f\u7528 XSubscribe\uff1a","termsSection1Content":"\u672c\u4f7f\u7528\u6761\u6b3e\uff08\u300c\u6761\u6b3e\u300d\uff09\u9002\u7528\u4e8e XSubscribe \u7684\u5404\u9879\u670d\u52a1\uff0c\u5305\u62ec\u7f51\u7ad9\u3001API\u3001\u79fb\u52a8\u5e94\u7528\u53ca\u6240\u6709\u76f8\u5173\u670d\u52a1\u3002\u4f7f\u7528\u6211\u4eec\u7684\u5e73\u53f0\u5373\u8868\u793a\u60a8\u540c\u610f\u9075\u5b88\u8fd9\u4e9b\u6761\u6b3e\u3002","termsSection2Title":"2. \u6761\u6b3e\u53d8\u66f4\uff1a","termsSection2Content":"XSubscribe \u53ef\u80fd\u4f1a\u4e0d\u65f6\u66f4\u65b0\u8fd9\u4e9b\u6761\u6b3e\u3002\u5982\u6709\u91cd\u5927\u53d8\u66f4\uff0c\u6211\u4eec\u5c06\u901a\u77e5\u60a8\uff0c\u7ee7\u7eed\u4f7f\u7528\u5e73\u53f0\u5373\u8868\u793a\u60a8\u63a5\u53d7\u65b0\u7684\u6761\u6b3e\u3002","termsSection3Title":"3. \u60a8\u7684\u8d26\u53f7\uff1a","termsSection3Content":"\u60a8\u5fc5\u987b\u5e74\u6ee118\u5c81\u624d\u80fd\u4f7f\u7528 XSubscribe\uff0c\u6216\u8005\u9700\u8981\u83b7\u5f97\u5bb6\u957f/\u76d1\u62a4\u4eba\u7684\u8bb8\u53ef\u3002\u8bf7\u4fdd\u6301\u8d26\u53f7\u4fe1\u606f\u6700\u65b0\u5e76\u59a5\u5584\u4fdd\u7ba1\u5bc6\u7801\u3002\u60a8\u9700\u8981\u5bf9\u8d26\u53f7\u4e2d\u53d1\u751f\u7684\u4e00\u5207\u8d1f\u8d23\u3002","termsSection4Title":"4. \u60a8\u7684\u7528\u6237\u540d\uff1a","termsSection4Content":"\u7528\u6237\u540d\u5fc5\u987b\u5c0a\u91cd\u4ed6\u4eba\u7684\u6743\u5229\u3002XSubscribe \u53ef\u4ee5\u5728\u5fc5\u8981\u65f6\u6536\u56de\u6216\u66f4\u6539\u7528\u6237\u540d\u3002","termsSection5Title":"5. \u7ba1\u7406\u60a8\u7684\u65b9\u6848\uff1a","termsSection5Content":"XSubscribe \u63d0\u4f9b\u514d\u8d39\u548c\u4ed8\u8d39\u65b9\u6848\u3002\u4ed8\u8d39\u65b9\u6848\u9700\u8981\u6709\u6548\u7684\u652f\u4ed8\u65b9\u5f0f\u3002\u60a8\u53ef\u4ee5\u5728\u4e0d\u540c\u65b9\u6848\u4e4b\u95f4\u5207\u6362\u3002","termsSection6Title":"6. \u60a8\u7684\u5185\u5bb9\uff1a","termsSection6Content":"\u60a8\u9700\u8981\u5bf9\u81ea\u5df1\u7684\u5185\u5bb9\u8d1f\u8d23\u3002\u5185\u5bb9\u5fc5\u987b\u9075\u5b88\u6211\u4eec\u7684\u51c6\u5219\u548c\u6cd5\u5f8b\u3002XSubscribe \u53ef\u80fd\u4f1a\u79fb\u9664\u8fdd\u53cd\u8fd9\u4e9b\u6807\u51c6\u7684\u5185\u5bb9\u3002","termsSection7Title":"7. \u6211\u4eec\u5bf9\u60a8\u5185\u5bb9\u7684\u4f7f\u7528\u6743\uff1a","termsSection7Content":"XSubscribe \u6709\u6743\u4f7f\u7528\u3001\u5206\u53d1\u548c\u5c55\u793a\u60a8\u7684\u5185\u5bb9\u4f5c\u4e3a\u5e73\u53f0\u8fd0\u8425\u7684\u4e00\u90e8\u5206\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u9690\u79c1\u8bbe\u7f6e\u63a7\u5236\u60a8\u7684\u5185\u5bb9\u3002","termsSection8Title":"8. \u6682\u505c\u6216\u6ce8\u9500\u60a8\u7684\u8d26\u53f7\uff1a","termsSection8Content":"XSubscribe \u53ef\u4ee5\u56e0\u8fdd\u89c4\u884c\u4e3a\u6682\u505c\u6216\u6ce8\u9500\u8d26\u53f7\u3002\u60a8\u4e5f\u53ef\u4ee5\u81ea\u884c\u6ce8\u9500\u8d26\u53f7\u3002","termsSection9Title":"9. \u60a8\u5bf9\u8bbf\u5ba2\u548c\u5ba2\u6237\u7684\u8d23\u4efb\uff1a","termsSection9Content":"\u60a8\u9700\u8981\u5bf9\u8bbf\u95ee\u6216\u4e0e\u60a8\u7684\u4e2a\u4eba\u4e3b\u9875\u4e92\u52a8\u7684\u4eba\u7684\u4f53\u9a8c\u8d1f\u8d23\u3002","termsSection10Title":"10. \u53cd\u9988\uff1a","termsSection10Content":"\u5982\u679c\u60a8\u63d0\u4f9b\u53cd\u9988\uff0cXSubscribe \u53ef\u4ee5\u81ea\u7531\u4f7f\u7528\u3002\u60a8\u65e0\u9700\u63d0\u4f9b\u53cd\u9988\u3002","termsSection11Title":"11. \u6211\u4eec\u7684\u5e73\u53f0\uff1a","termsSection11Content":"\u60a8\u83b7\u5f97\u4f7f\u7528\u5e73\u53f0\u8fdb\u884c\u5185\u5bb9\u521b\u4e1a\u7684\u6709\u9650\u6743\u5229\u3002\u8bf7\u52ff\u6ee5\u7528\u6216\u8bd5\u56fe\u635f\u5bb3\u5e73\u53f0\u3002","termsSection12Title":"12. \u8d39\u7528\u4e0e\u652f\u4ed8\uff1a","termsSection12Content":"\u8ba2\u9605\u8d39\u3001\u4ea4\u6613\u8d39\u548c\u652f\u4ed8\u6761\u6b3e\u8be6\u89c1\u8d39\u7528\u8868\u3002","termsSection13Title":"13. \u9690\u79c1\uff1a","termsSection13Content":"XSubscribe \u7684\u9690\u79c1\u58f0\u660e\u8bf4\u660e\u4e86\u6211\u4eec\u5982\u4f55\u5904\u7406\u60a8\u7684\u4fe1\u606f\u3002","termsSection14Title":"14. \u4fdd\u5bc6\u6027\uff1a","termsSection14Content":"\u8bf7\u5bf9 XSubscribe \u5206\u4eab\u7684\u975e\u516c\u5f00\u4fe1\u606f\u4fdd\u5bc6\u3002","termsSection15Title":"15. \u8d23\u4efb\u9650\u5236\uff1a","termsSection15Content":"\u60a8\u9700\u8981\u5bf9\u60a8\u4f7f\u7528\u5e73\u53f0\u7684\u884c\u4e3a\u8d1f\u8d23\u3002XSubscribe \u7684\u8d23\u4efb\u662f\u6709\u9650\u7684\u3002","termsSection16Title":"16. \u514d\u8d23\u58f0\u660e\uff1a","termsSection16Content":"\u5e73\u53f0\u6309\u300c\u539f\u6837\u300d\u63d0\u4f9b\uff0c\u4e0d\u4f5c\u4efb\u4f55\u4fdd\u8bc1\u3002","termsSection17Title":"17. \u7b2c\u4e09\u65b9\u670d\u52a1\uff1a","termsSection17Content":"XSubscribe \u4e0e\u7b2c\u4e09\u65b9\u670d\u52a1\u5408\u4f5c\u3002\u5b83\u4eec\u5404\u81ea\u7684\u6761\u6b3e\u548c\u653f\u7b56\u9002\u7528\u3002","termsSection18Title":"18. \u5e94\u7528\u6761\u6b3e\uff1a","termsSection18Content":"\u4f7f\u7528 XSubscribe \u79fb\u52a8\u5e94\u7528\u65f6\u9002\u7528\u7279\u5b9a\u6761\u6b3e\u3002","termsSection19Title":"19. \u5f00\u6e90\uff1a","termsSection19Content":"\u5e94\u7528\u53ef\u80fd\u5305\u542b\u5177\u6709\u81ea\u8eab\u8bb8\u53ef\u8bc1\u7684\u5f00\u6e90\u8f6f\u4ef6\u3002","termsSection20Title":"20. \u5176\u4ed6\u4e8b\u9879\uff1a","termsSection20Content":"\u6839\u636e\u60a8\u6240\u5728\u5730\u533a\uff0c\u53ef\u80fd\u9002\u7528\u7279\u5b9a\u6cd5\u5f8b\u3002\u8fd9\u4e9b\u6761\u6b3e\u4ee3\u8868\u60a8\u4e0e XSubscribe \u4e4b\u95f4\u7684\u5b8c\u6574\u534f\u8bae\u3002","furtherInformation":"\u5982\u4f55\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\uff1f","termsContactInstructions":"\u5982\u679c\u60a8\u5bf9\u6211\u4eec\u7684\u6761\u6b3e\u4e0e\u6761\u4ef6\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u8bf7\u8054\u7cfb\u6211\u4eec\uff1a","cookieNoticeTitle":"Cookie \u58f0\u660e","lastUpdatedCookies":"\u6700\u540e\u66f4\u65b0\uff1a2023\u5e741\u67087\u65e5 \u661f\u671f\u65e5","cookieIntroduction":"\u672c Cookie \u58f0\u660e\u89e3\u91ca\u4e86 XSubscribe LLC \u5982\u4f55\u4f7f\u7528 Cookie \u53ca\u7c7b\u4f3c\u6280\u672f\u3002","whatAreCookies":"\u4ec0\u4e48\u662f Cookie\uff1f","cookieDefinition":"Cookie \u662f\u5f53\u60a8\u8bbf\u95ee\u7f51\u7ad9\u65f6\u5b58\u50a8\u5728\u8bbe\u5907\u4e0a\u7684\u5c0f\u6570\u636e\u6587\u4ef6\u3002","thirdPartyCookies":"\u7531 XSubscribe \u4ee5\u5916\u7684\u65b9\u8bbe\u7f6e\u7684 Cookie \u79f0\u4e3a\u7b2c\u4e09\u65b9 Cookie\u3002","whyUseCo
2okies":"\u6211\u4eec\u4e3a\u4ec0\u4e48\u4f7f\u7528 Cookie\uff1f","cookieUsage":"\u6211\u4eec\u51fa\u4e8e\u591a\u79cd\u76ee\u7684\u4f7f\u7528\u7b2c\u4e00\u65b9\u548c\u7b2c\u4e09\u65b9 Cookie\u3002","cookieContactInstructions":"\u5982\u679c\u60a8\u5bf9\u6211\u4eec\u4f7f\u7528 Cookie \u6709\u4efb\u4f55\u7591\u95ee\uff0c\u8bf7\u8054\u7cfb\u6211\u4eec\uff1a","contactSpiritTitle":"\u8054\u7cfb Spirit","contactInstructions":"\u563f\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8054\u7cfb\u6211\uff1a","searchTitle":"\u641c\u7d22","searchPlaceholder":"\u641c\u7d22\u4e3b\u64ad...","searchResults":"\u641c\u7d22\u7ed3\u679c","suggestedStreamers":"\u63a8\u8350\u4e3b\u64ad","profileTitle":"\u4e2a\u4eba\u8d44\u6599","onlyJpgPngAllowed":"\u4ec5\u5141\u8bb8 JPG/PNG \u683c\u5f0f","maxFileSize2MB":"\u6700\u5927\u6587\u4ef6\u5927\u5c0f\u4e3a 2MB","selectAvatar":"\u9009\u62e9\u5934\u50cf","updating":"\u66f4\u65b0\u4e2d...","demoSubscriptionAlert":"\u8fd9\u662f\u6f14\u793a\u7248\u3002\u60a8\u65e0\u6cd5\u8ba2\u9605\u6b64\u521b\u4f5c\u8005\u3002","subscribe":"\u8ba2\u9605","perMonth":"/\u6708","subscribed":"\u5df2\u8ba2\u9605","successfullySubscribedTo":"\u6210\u529f\u8ba2\u9605\u4e86","weLockedIn":"\u641e\u5b9a\u4e86\u3002","createYourXSubscribe":"\u521b\u5efa\u60a8\u7684 XSubscribe","pageNotFoundHeading":"\u60a8\u67e5\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728\u3002","pageNotFoundMessage":"\u60f3\u8ba9\u8fd9\u4e2a\u6210\u4e3a\u60a8\u7684\u7528\u6237\u540d\u5417\uff1f","createXSubscribeNow":"\u7acb\u5373\u521b\u5efa\u60a8\u7684 XSubscribe\u3002","planStarter":"\u5165\u95e8\u7248","planPro":"\u4e13\u4e1a\u7248","planPremium":"\u9ad8\u7ea7\u7248","superchatsHeader":"SuperChat -","loadingSuperChats":"\u52a0\u8f7d SuperChat \u4e2d...","recentSuperchats":"\u6700\u8fd1\u7684 SuperChat \u6d88\u606f\u548c\u6253\u8d4f","noSuperchatsPart1":"\u6682\u65e0 SuperChat","noSuperchatsPart2":"\u6210\u4e3a\u7b2c\u4e00\u4e2a\u53d1\u9001 SuperChat \u7684\u4eba\uff01","loadingSuperChatsError":"\u52a0\u8f7d SuperChat \u5931\u8d25","addComment":"\u6dfb\u52a0\u8bc4\u8bba...","signInToComment":"\u767b\u5f55\u4ee5\u8bc4\u8bba","send":"\u53d1\u9001","signIn":"\u767b\u5f55","beTheFirstToComment":"\u6210\u4e3a\u7b2c\u4e00\u4e2a\u8bc4\u8bba\u7684\u4eba\u3002","writeReply":"\u5199\u4e00\u6761\u56de\u590d...","reply":"\u56de\u590d","unlike":"\u53d6\u6d88\u70b9\u8d5e","like":"\u70b9\u8d5e","comments":"\u8bc4\u8bba","shareThisStream":"\u5206\u4eab\u6b64\u76f4\u64ad","goTo":"\u524d\u5f80","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"\u6d88\u606f","emailShare":"\u90ae\u4ef6","copyLink":"\u590d\u5236\u94fe\u63a5","more":"\u66f4\u591a","deleting":"\u5220\u9664\u4e2d\u2026","anon":"\u533f\u540d","noCommentsYet":"\u6682\u65e0\u8bc4\u8bba\u3002","sendSuperChat":"\u53d1\u9001 SuperChat","amountDollar":"\u91d1\u989d\uff08$\uff09","messageMaxChars":"\u6d88\u606f\uff08\u6700\u591a200\u5b57\uff09","typeSuperChatMessage":"\u8f93\u5165\u60a8\u7684 SuperChat \u6d88\u606f...","processingPayment":"\u5904\u7406\u4e2d...","sendAmount":"\u53d1\u9001 ${{amount}} SuperChat","pleaseLogInToSuperChat":"\u8bf7\u767b\u5f55\u4ee5\u53d1\u9001 SuperChat","pleaseEnterMessage":"\u8bf7\u8f93\u5165\u6d88\u606f","amountMustBeAtLeast1":"\u91d1\u989d\u81f3\u5c11\u4e3a $1","failedToCreateCheckout":"\u521b\u5efa\u7ed3\u8d26\u4f1a\u8bdd\u5931\u8d25","highlightedFor":"\u9ad8\u4eae\u663e\u793a"}'),notifications:JSON.parse('{"notifications":"\u901a\u77e5","viaEmail":"\u901a\u8fc7\u90ae\u4ef6","receiveNotificationThroughEmail":"\u901a\u8fc7\u90ae\u4ef6\u63a5\u6536\u901a\u77e5","all":"\u5168\u90e8","unread":"\u672a\u8bfb","noUnreadNotifications":"\u6ca1\u6709\u672a\u8bfb\u901a\u77e5\u3002","noNotificationsYet":"\u6682\u65e0\u901a\u77e5\u3002","couldntLoadNotifications":"\u65e0\u6cd5\u4ece\u670d\u52a1\u5668\u52a0\u8f7d\u901a\u77e5","someone":"\u67d0\u4eba","isLiveNow":"\u6b63\u5728\u76f4\u64ad","postedReplay":"\u53d1\u5e03\u4e86\u56de\u653e","repliedToComment":"\u56de\u590d\u4e86\u60a8\u7684\u8bc4\u8bba","likedYourComment":"\u8d5e\u4e86\u60a8\u7684\u8bc4\u8bba","activity":"\u52a8\u
26001","secondsAgo":"{{count}}\u79d2\u524d","minutesAgo":"{{count}}\u5206\u949f\u524d","hoursAgo":"{{count}}\u5c0f\u65f6\u524d","daysAgo":"{{count}}\u5929\u524d"}')},ja:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\u30ed\u30b0\u30a4\u30f3","logout":"\u30ed\u30b0\u30a2\u30a6\u30c8","signUp":"\u65b0\u898f\u767b\u9332","signUpFree":"\u7121\u6599\u3067\u767b\u9332","profile":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb","creatorDashboard":"\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9","notifications":"\u901a\u77e5","pricing":"\u6599\u91d1\u30d7\u30e9\u30f3","admin":"\u7ba1\u7406\u8005","save":"\u4fdd\u5b58","saving":"\u4fdd\u5b58\u4e2d...","cancel":"\u30ad\u30e3\u30f3\u30bb\u30eb","delete":"\u524a\u9664","continue":"\u7d9a\u3051\u308b","skip":"\u30b9\u30ad\u30c3\u30d7","skipForNow":"\u4eca\u306f\u30b9\u30ad\u30c3\u30d7","done":"\u5b8c\u4e86","loading":"\u8aad\u307f\u8fbc\u307f\u4e2d...","edit":"\u7de8\u96c6","connect":"\u63a5\u7d9a","disconnect":"\u5207\u65ad","comingSoon":"\u8fd1\u65e5\u516c\u958b","connected":"\u63a5\u7d9a\u6e08\u307f","back":"\u623b\u308b","upgrade":"\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9","options":"\u30aa\u30d7\u30b7\u30e7\u30f3","confirm":"\u78ba\u8a8d","areYouSure":"\u672c\u5f53\u306b\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f","appearance":"\u5916\u89b3","subs":"\u767b\u9332\u8005","myPage":"\u30de\u30a4\u30da\u30fc\u30b8","clipsTab":"\u30af\u30ea\u30c3\u30d7","calendarTab":"\u30ab\u30ec\u30f3\u30c0\u30fc","profileTab":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb","company":"\u4f1a\u793e\u60c5\u5831","about":"\u6982\u8981","press":"\u30d7\u30ec\u30b9","contact":"\u304a\u554f\u3044\u5408\u308f\u305b","followUs":"\u30d5\u30a9\u30ed\u30fc\u3059\u308b","termsAndConditions":"\u5229\u7528\u898f\u7d04","cookiePolicy":"Cookie\u30dd\u30ea\u30b7\u30fc","connectedTo":"{{platform}}\u306b\u63a5\u7d9a\u3057\u307e\u3057\u305f\uff01","planActivated":"\u30d7\u30e9\u30f3\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\uff01\u3059\u3079\u3066\u306e\u6a5f\u80fd\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002","saved":"\u4fdd\u5b58\u3057\u307e\u3057\u305f\uff01","failedToSave":"\u4fdd\u5b58\u306b\u5931\u6557\u3057\u307e\u3057\u305f","deleting":"\u524a\u9664\u4e2d...","logOut":"\u30ed\u30b0\u30a2\u30a6\u30c8","download":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","freePlan":"\u7121\u6599\u30d7\u30e9\u30f3","planLabel":"{{plan}}\u30d7\u30e9\u30f3","outOfCredits":"\u26a1 \u30af\u30ec\u30b8\u30c3\u30c8\u4e0d\u8db3","creditsRemaining_one":"\u26a1 {{count}}\u30af\u30ec\u30b8\u30c3\u30c8\u6b8b","creditsRemaining_other":"\u26a1 {{count}}\u30af\u30ec\u30b8\u30c3\u30c8\u6b8b","topUpCredits":"\u30af\u30ec\u30b8\u30c3\u30c8\u3092\u30c1\u30e3\u30fc\u30b8","buy":"\u8cfc\u5165","manageAccount":"\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406","signOut":"\u30ed\u30b0\u30a2\u30a6\u30c8"}'),auth:JSON.parse('{"welcomeBack":"\u304a\u304b\u3048\u308a\u306a\u3055\u3044","signInToContinue":"Clipbait\u306b\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u3066\u7d9a\u3051\u308b","continueWithGoogle":"Google\u3067\u7d9a\u3051\u308b","orContinueWithEmail":"\u307e\u305f\u306f\u30e1\u30fc\u30eb\u3067\u7d9a\u3051\u308b","enterYourEmail":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b","checkYourEmail":"\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044","weSentCodeTo":"\u30b3\u30fc\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\uff1a","pleaseEnter6DigitCode":"6\u6841\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","verifyAndContinue":"\u8a8d\u8a3c\u3057\u3066\u7d9a\u3051\u308b","resendCodeIn":"\u30b3\u30fc\u30c9\u3092\u518d\u9001\u4fe1\uff08{{countdown}}\u79d2\u5f8c\uff09","resendCode":"\u30b3\u30fc\u30c9\u3092\u518d\u9001\u4fe1","byContinuingYouAgree":"\u7d9a\u3051\u308b\u3053\u3068\u3067\u3001ClipBait\u306e\u4ee5\u4e0b\u306b\u540c\u610f\u3057\u307e\u3059\uff1a","termsOfService":"\u5229\u7528\u898f\u7d04","privacyPolicy":"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc","invalidCode":"\u7121\u52b9\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","invali
2dEmail":"\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","failedToSendCode":"\u30b3\u30fc\u30c9\u306e\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","signingYouIn":"\u30b5\u30a4\u30f3\u30a4\u30f3\u4e2d...","emailOrUsername":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u540d","password":"\u30d1\u30b9\u30ef\u30fc\u30c9","forgotPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304a\u5fd8\u308c\u3067\u3059\u304b\uff1f","logIn":"\u30ed\u30b0\u30a4\u30f3","incorrectCredentials":"\u30e6\u30fc\u30b6\u30fc\u540d/\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093","emailNotVerified":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u672a\u8a8d\u8a3c\u3067\u3059\u3002\u30e1\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002","email":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9","username":"\u30e6\u30fc\u30b6\u30fc\u540d","birthdayLabel":"\u751f\u5e74\u6708\u65e5\uff08\u6708 / \u65e5 / \u5e74\uff09","monthPlaceholder":"MM","dayPlaceholder":"DD","yearPlaceholder":"YYYY","usernameTooShort":"\u30e6\u30fc\u30b6\u30fc\u540d\u306f{{min}}\u6587\u5b57\u4ee5\u4e0a\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","usernameTooLong":"\u30e6\u30fc\u30b6\u30fc\u540d\u306f{{max}}\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","usernameInvalidFormat":"\u4f7f\u7528\u3067\u304d\u308b\u306e\u306f\u82f1\u5b57\u3001\u6570\u5b57\u3001\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u306e\u307f\u3067\u3059\u3002\u30b9\u30da\u30fc\u30b9\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002","birthdayRequired":"\u751f\u5e74\u6708\u65e5\u3092\u3059\u3079\u3066\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","invalidEmailFormat":"\u6709\u52b9\u306a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","passwordRequired":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fc5\u9808\u3067\u3059\u3002","passwordTooShort":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306f3\u6587\u5b57\u4ee5\u4e0a\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","emailAvailable":"\u3053\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002","usernameAvailable":"\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002","usernameTaken":"\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u65e2\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002","emailTaken":"\u3053\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u767b\u9332\u6e08\u307f\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002","passwordHint":"3\u6587\u5b57\u4ee5\u4e0a\u3002","fixErrorsToContinue":"\u30a8\u30e9\u30fc\u3092\u4fee\u6b63\u3057\u3066\u304b\u3089\u7d9a\u3051\u3066\u304f\u3060\u3055\u3044","bySigningUpYouAgree":"\u767b\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306b\u540c\u610f\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\uff1a","termsOfUse":"\u5229\u7528\u898f\u7d04","accountCreated":"\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\uff01","registrationFailed":"\u767b\u9332\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","alreadyHaveAccount":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u304a\u6301\u3061\u3067\u3059\u304b\uff1f","starterPlanTitle":"XSubscribe.bio \u30b9\u30bf\u30fc\u30bf\u30fc","proPlanTitle":"XSubscribe.bio \u30d7\u30ed","premiumPlanTitle":"XSubscribe.bio \u30d7\u30ec\u30df\u30a2\u30e0","signUpAndStart":"\u767b\u9332\u3057\u3066\u3064\u306a\u304c\u308a\u307e\u3057\u3087\u3046\uff01","termsAgreementFull":"\u767b\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u5229\u7528\u898f\u7d04\u3001\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc\u3001Cookie\u30dd\u30ea\u30b7\u30fc\u306b\u540c\u610f\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002","resetYourPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8","enterEmailToReset":"\u30ea\u30bb\u30c3\u30c8\u3057\u305f\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","pleaseEnterEmail":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","resetPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8","pleaseEnterYourEmail":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","couldNotStartRecovery":"\u30ea\u30ab\u30d0\u30ea\u30fc\u3092\u958b\u59cb\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002","backToLogin":"\u30ed\u30b0\u30a4\u30f3\u306b\u623b\u308b","emailVerification":"\u30e1\u30fc\u30eb\u8a8d\u8a3c","weSent4DigitCode":"4\u6841\u306e\u30b3\u30fc\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3057\u305f\uff1a","yourEmail":"\u3042\u306a\u305f\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9","pleaseEnter4DigitCode":"4\u6841\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","verifyAccount":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a8d\u8a3c","incorrectOrExpiredCode":"\u5165\u529b\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u306a\u3044\u304b\u3001\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u307e\u3059\u3002\u518d\u5ea6\u304a\u8a66\u3057\u3044\u305f\u3060\u304f\u304b\u3001\u518d\u9001\u4fe1\u3057\u3066\u304f\u3060\u3055\u3044\u3002","didntReceiveCode":"\u30b3\u30fc\u30c9\u304c\u5c4a\u304d\u307e\u305b\u3093\u304b\uff1f","resendIn":"\u518d\u9001\u4fe1\u307e\u3067{{timer}}\u79d2","sending":"\u9001\u4fe1\u4e2d\u2026","verifying":"\u8a8d\u8a3c\u4e2d\u2026","newCodeSent":"\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u3092\u30e1\u30fc\u30eb\u306b\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002","missingEmail":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u3042\u308a\u307e\u305b\u3093\u3002","failedToResendCode":"\u30b3\u30fc\u30c9\u306e\u518d\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u5c11\u3057\u5f85\u3063\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","changePassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4","newPassword":"\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9","confirmPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d","passwordsDontMatch":"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093","failedToResetPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u306b\u5931\u6557\u3057\u307e\u3057\u305f","couldNotResetPassword":"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002","invali
2dOrExpiredCode":"\u7121\u52b9\u307e\u305f\u306f\u671f\u9650\u5207\u308c\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002","passwordSuccessfullySet":"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u5e38\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f","successTitle":"\u6210\u529f\uff01","emailSentInstructions":"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a8d\u8a3c\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\u3002\u30e1\u30fc\u30eb\u3092\u958b\u3044\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a8d\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u300215\u5206\u4ee5\u5185\u306b\u53d7\u4fe1\u30c8\u30ec\u30a4\u306b\u30e1\u30fc\u30eb\u304c\u5c4a\u304b\u306a\u3044\u5834\u5408\u306f\u3001\u8ff7\u60d1\u30e1\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\u8ff7\u60d1\u30e1\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u306b\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001\u300c\u8ff7\u60d1\u30e1\u30fc\u30eb\u3067\u306f\u306a\u3044\u300d\u3068\u30de\u30fc\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002","emailVerifiedSuccessfully":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u8a8d\u8a3c\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f","emailSuccessfullyVerifiedAlert":"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u6b63\u5e38\u306b\u8a8d\u8a3c\u3055\u308c\u307e\u3057\u305f","notFound404":"404 \u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093"}'),onboarding:JSON.parse('{"title":"\u306f\u3058\u3081\u307e\u3057\u3066\u3001Clipbait\u3067\u3059","subtitle":"\u3042\u306a\u305f\u306e\u914d\u4fe1\u5c02\u7528AI\u30af\u30ea\u30c3\u30d1\u30fc\u3067\u3059","factHeader":"\u79c1\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u3044\u3066\u307b\u3057\u3044\u3053\u3068\uff1a","fact1":"\u4e00\u6d41\u306e\u7de8\u96c6\u8005\u306b\u3088\u3063\u3066\u4f5c\u3089\u308c\u3001\u30b9\u30ad\u30eb\u306f\u5e38\u306b\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059","fact2":"\u914d\u4fe1\u8005\u3084\u30af\u30ea\u30c3\u30d1\u30fc\u306e\u4ed5\u4e8b\u3092\u3082\u3063\u3068\u697d\u306b\u3059\u308b\u305f\u3081\u306b\u4f5c\u3089\u308c\u307e\u3057\u305f","letsGetStarted":"\u306f\u3058\u3081\u307e\u3057\u3087\u3046","questionUserType":"\u3042\u306a\u305f\u306f\u30af\u30ea\u30c3\u30d1\u30fc\u3067\u3059\u304b\uff1f\u914d\u4fe1\u8005\u3067\u3059\u304b\uff1f","imAClipper":"\u30af\u30ea\u30c3\u30d1\u30fc\u3067\u3059","imAStreamer":"\u914d\u4fe1\u8005\u3067\u3059","questionStreamerNameClipper":"\u914d\u4fe1\u8005\u306e\u540d\u524d\u306f\u4f55\u3067\u3059\u304b\uff1f","questionStreamerNameStreamer":"\u3042\u306a\u305f\u306e\u914d\u4fe1\u8005\u540d\u306f\u4f55\u3067\u3059\u304b\uff1f","placeholderStreamerNameClipper":"\u4f8b\uff1aKai Cenat","placeholderStreamerNameStreamer":"\u4f8b\uff1a\u8868\u793a\u540d","streamerNameHint":"AI\u304c\u30af\u30ea\u30c3\u30d7\u306b\u9069\u3057\u305f\u30d5\u30c3\u30af\u3092\u66f8\u304f\u305f\u3081\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002","questionChannelUsernameClipper":"\u30af\u30ea\u30c3\u30d7\u5bfe\u8c61\u306e\u914d\u4fe1\u8005\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u4f55\u3067\u3059\u304b\uff1f","questionChannelUsernameStreamer":"\u59cb\u3081\u308b\u524d\u306b\u3001\u3042\u306a\u305f\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\uff08\u30c6\u30ad\u30b9\u30c8\u306e\u307f\u3001@\u8a18\u53f7\u306a\u3057\uff09","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\u3069\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059\u304b\uff1f","questionPlatformStreamer":"\u3042\u306a\u305f\u306e\u30e1\u30a4\u30f3\u914d\u4fe1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u3069\u308c\u3067\u3059\u304b\uff1f","twitchStreamer":"Twitch\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","rumbleStreamer":"Rumble\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","youtubeStreamer":"YouTube\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","kickStreamer":"Kick\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","xStreamer":"X\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","ganjingStreamer":"Ganjing World\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","profilePictureHint":"\u3053\u308c\u306b\u3088\u308aAI\u304c\u52d5\u753b\u5185\u3067\u3042\u306a\u305f\u3092\u8b58\u5225\u3057\u3001\u3088\u308a\u826f\u3044\u30af\u30ea\u30c3\u30d7\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002","choosePhoto":"\u5199\u771f\u3092\u9078\u629e","uploading":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d...","questionOpportunitiesClipper":"\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3067\u53ce\u5165\u3092\u5f97\u308b\u62db\u5f85\u3092\u53d7\u3051\u53d6\u308a\u305f\u3044\u3067\u3059\u304b\uff1f","questionOpportunitiesStreamer":"\u3042\u306a\u305f\u306e\u914d\u4fe1\u306bClipbait\u30af\u30ea\u30c3\u30d1\u30fc\u3092\u96c7\u3044\u305f\u3044\u3067\u3059\u304b\uff1f","yesInterested":"\u306f\u3044\u3001\u8208\u5473\u304c\u3042\u308a\u307e\u3059","notRightNow":"\u4eca\u306f\u3044\u3044\u3067\u3059","questionConnectPages":"\u30af\u30ea\u30c3\u30d7\u3092\u6295\u7a3f\u3059\u308b\u305f\u3081\u306b\u30da\u30fc\u30b8\u3092\u63a5\u7d9a","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\u3069\u3093\u306a\u30bf\u30a4\u30d7\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5236\u4f5c\u3057\u3066\u3044\u307e\u3059\u304b\uff1f","streamTypeGaming":"\u30b2\u30fc\u30e0","streamTypeGamingDesc":"\u5b9f\u6cc1\u30d7\u30ec\u30a4\u3001\u30d5\u30a1\u30a4\u30f3\u30d7\u30ec\u30fc\u3001\u30ea\u30a2\u30af\u30b7\u30e7\u30f3","streamTypeTalkingHead":"\u30c8\u30fc\u30af\u7cfb","streamTypeTalkingHeadDesc":"\u30d
2d\u30c3\u30c9\u30ad\u30e3\u30b9\u30c8\u3001\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u3001\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u89e3\u8aac","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u30ea\u30a2\u30eb\u30e9\u30a4\u30d5\u914d\u4fe1\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u30a2\u30a6\u30c8\u30c9\u30a2\u30b3\u30f3\u30c6\u30f3\u30c4","streamTypeMusic":"\u97f3\u697d","streamTypeMusicDesc":"\u30e9\u30a4\u30d6\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001DJ\u30bb\u30c3\u30c8\u3001\u97f3\u697d\u5236\u4f5c","finishSetup":"\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86","ownStreamer":"OWN\u3067\u914d\u4fe1\u3057\u3066\u3044\u307e\u3059","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI\u642d\u8f09\u30af\u30ea\u30c3\u30d7\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc","turnStreamsInto":"\u914d\u4fe1\u3092\u5909\u3048\u308b","viralClips":"\u30d0\u30ba\u308b\u30af\u30ea\u30c3\u30d7\u306b","pasteUrl":"URL\u3092\u8cbc\u308a\u4ed8\u3051","uploadVideo":"\u52d5\u753b\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","pasteYouTubeLivestream":"YouTube\u30e9\u30a4\u30d6\u914d\u4fe1\u306eURL\u3092\u8cbc\u308a\u4ed8\u3051","pasteRumbleLivestream":"Rumble\u30e9\u30a4\u30d6\u914d\u4fe1\u306eURL\u3092\u8cbc\u308a\u4ed8\u3051","pasteGanjingWorldLink":"Ganjing World\u306e\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051","pasteKickLink":"Kick\u306e\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051","pasteTwitchLink":"Twitch\u306e\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051","pasteXLink":"X\u306e\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051","generateClips":"\u30af\u30ea\u30c3\u30d7\u3092\u751f\u6210","starting":"\u958b\u59cb\u4e2d...","uploadingProgress":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e2d {{progress}}%...","processing":"\u51e6\u7406\u4e2d","yourClips":"\u3042\u306a\u305f\u306e\u30af\u30ea\u30c3\u30d7","loadingClips":"\u30af\u30ea\u30c3\u30d7\u3092\u8aad\u307f\u8fbc\u307f\u4e2d...","noClipsYet":"\u307e\u3060\u30af\u30ea\u30c3\u30d7\u304c\u3042\u308a\u307e\u305b\u3093","pasteStreamUrl":"\u914d\u4fe1URL\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u958b\u59cb\u3057\u307e\u3057\u3087\u3046","clipsReady":"{{count}}\u500b\u306e\u30af\u30ea\u30c3\u30d7\u304c\u5b8c\u6210\uff01","clipCount":"{{count}}\u500b\u306e\u30af\u30ea\u30c3\u30d7","dropFileHere":"\u3053\u3053\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30ed\u30c3\u30d7","dragAndDrop":"\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u307e\u305f\u306f\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e","mp4OrMovMax2GB":"MP4\u307e\u305f\u306fMOV\u3001\u6700\u59272GB","freeTrialBanner":"\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb\u4e2d\u3067\u3059\u3002\u4e00\u90e8\u306e\u6a5f\u80fd\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u30a2\u30f3\u30ed\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002","pasteVideoLinkFirst":"\u307e\u305a\u52d5\u753b\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044","selectPlatformInSettings":"\u8a2d\u5b9a\u3067\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","setChannelUsername":"\u8a2d\u5b9a\u3067\u30c1\u30e3\u30f3\u30cd\u30eb\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044","onlyMp4MovSupported":"MP4\u3068MOV\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059","fileMustBeUnder2GB":"\u30d5\u30a1\u30a4\u30eb\u306f2GB\u4ee5\u4e0b\u306b\u3057\u3066\u304f\u3060\u3055\u3044","selectVideoFileFirst":"\u307e\u305a\u52d5\u753b\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","clippingStarted":"\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u958b\u59cb\uff01","uploadCompleteClippingStarted":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5b8c\u4e86 \u2014 \u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u958b\u59cb\uff01","uploadFailed":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5931\u6557","failedToStartClipping":"\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u306e\u958b\u59cb\u306b\u5931\u6557\u3057\u307e\u3057\u305f","havingTroubleWithLink":"\u30ea\u30f3\u30af\u306b\u554f\u984c\u304c\u3042\u308a\u307e\u3059 \u2014 \u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001YouTube\u30ea\u30f3\u30af\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044","reachedUploadLimit":"\u4eca\u6708\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e0a\u9650\u306b\u9054\u3057\u307e\u3057\u305f\u3002","jobCancelled":"\u30b8\u30e7\u30d6\u304c\u30
2ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f","projectDeleted":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u524a\u9664\u3055\u308c\u307e\u3057\u305f","failedToDeleteProject":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524a\u9664\u306b\u5931\u6557\u3057\u307e\u3057\u305f","deleteProject":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f","cannotBeUndone":"\u3053\u306e\u64cd\u4f5c\u306f\u5143\u306b\u623b\u305b\u307e\u305b\u3093\u3002","jobStillProcessing":"\u3053\u306e\u30b8\u30e7\u30d6\u306f\u307e\u3060\u51e6\u7406\u4e2d\u3067\u3059","jobCancelledClipsDeleted":"\u30b8\u30e7\u30d6\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u3001\u3059\u3079\u3066\u306e\u30af\u30ea\u30c3\u30d7\u304c\u5b8c\u5168\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u3002","allClipsDeleted":"\u3059\u3079\u3066\u306e\u30af\u30ea\u30c3\u30d7\u304c\u5b8c\u5168\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u3002","creatingYourClips":"\u30af\u30ea\u30c3\u30d7\u3092\u4f5c\u6210\u4e2d","wellEmailYouWhenReady":"\u5b8c\u4e86\u3057\u305f\u3089\u30e1\u30fc\u30eb\u3067\u304a\u77e5\u3089\u305b\u3057\u307e\u3059","estimatingTime":"\u898b\u7a4d\u3082\u308a\u4e2d...","underTwoMinutes":"2\u5206\u4ee5\u5185","minutesRemaining":"\u6b8b\u308a\u7d04{{count}}\u5206","hoursMinutesRemaining":"\u6b8b\u308a\u7d04{{hours}}\u6642\u9593{{minutes}}\u5206","almostDone":"\u3082\u3046\u3059\u3050\u5b8c\u4e86...","phaseDownloading":"\u52d5\u753b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u4e2d...","phaseDownloaded":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5b8c\u4e86","phaseExtractingAudio":"\u97f3\u58f0\u3092\u62bd\u51fa\u4e2d...","phaseTranscribing":"\u97f3\u58f0\u3092\u6587\u5b57\u8d77\u3053\u3057\u4e2d...","phaseTranscribingLong":"\uff08\u9577\u3044\u914d\u4fe1\u3067\u306f\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u6700\u3082\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\uff09","phaseAnalyzing":"AI\u304c\u30d9\u30b9\u30c8\u306a\u77ac\u9593\u3092\u9078\u629e\u4e2d...","phaseRendering":"\u30af\u30ea\u30c3\u30d7\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u4e2d...","phaseDone":"\u5b8c\u4e86\uff01","tryUploadingInstead":"\u4ee3\u308f\u308a\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044","processingStatus":"\u51e6\u7406\u4e2d...","clipsReadyCount":"{{count}}\u500b\u306e\u30af\u30ea\u30c3\u30d7\u304c\u5b8c\u6210","schedule":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb","post":"\u6295\u7a3f","goodClip":"\u826f\u3044\u30af\u30ea\u30c3\u30d7","badClip":"\u60aa\u3044\u30af\u30ea\u30c3\u30d7","downloadClip":"\u30af\u30ea\u30c3\u30d7\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","moreOptions":"\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3","clipDefaultTitle":"\u30af\u30ea\u30c3\u30d7 {{number}}","funMessages":{"goGrabCoffee":"\u30b3\u30fc\u30d2\u30fc\u3092\u8cb7\u3044\u306b\u884c\u3053\u3046","timeForStretch":"\u30b9\u30c8\u30ec\u30c3\u30c1\u306e\u6642\u9593","takeQuickWalk":"\u3061\u3087\u3063\u3068\u6563\u6b69\u3057\u3088\u3046","hydrateYourself":"\u6c34\u5206\u88dc\u7d66\u3057\u3088\u3046","doPushups":"\u8155\u7acb\u3066\u4f0f\u305b\u3092\u3057\u3088\u3046","callYourMom":"\u304a\u6bcd\u3055\u3093\u306b\u96fb\u8a71\u3057\u3088\u3046","petYourDog":"\u72ac\u3092\u64ab\u3067\u3088\u3046","goForSwim":"\u6cf3\u304e\u306b\u884c\u3053\u3046","touchSomeGrass":"\u5916\u306b\u51fa\u3066\u8349\u306b\u89e6\u308d\u3046","checkYourPosture":"\u59ff\u52e2\u3092\u6b63\u305d\u3046"},"funMessagesModal":{"goForSwim":"\u9b54\u6cd5\u3092\u304b\u3051\u3066\u3044\u308b\u9593\u306b\u6cf3\u304e\u306b\u884c\u3053\u3046","perfectTimeForCoffee":"\u30b3\u30fc\u30d2\u30fc\u3092\u8cb7\u3046\u306e\u306b\u3074\u3063\u305f\u308a\u306e\u30bf\u30a4\u30df\u30f3\u30b0","quickStretch":"\u8efd\u304f\u30b9\u30c8\u30ec\u30c3\u30c1\u3067\u3082\u3069\u3046\uff1f","hydrationCheck":"\u6c34\u5206\u88dc\u7d66\u30c1\u30a7\u30c3\u30af\uff01\u304a\u6c34\u3092\u98f2\u3082\u3046","takeWalk":"\u6563\u6b69\u306b\u884c\u3053\u3046\u3001\u3042\u3068\u306f\u4efb\u305b\u3066","callSomeone":"\u5927\u5207\u306a\u4eba\u306b\u96fb\u8a71\u3057\u3088\u3046","petYourPet":"\u30da\u30c3\u30c8\u304c\u3044\u305f\u3089\u64ab\u3067\u3066\u3042\u3052\u3088\u3046","touchGrass":"\u5916\u306b\u51fa\u3066\u8349\u306b\u89e6\u308d\u3046\u3001\u672c\u5f53\u306b","jumpingJacks":"\u30b8\u30e3\u30f3\u30d4\u30f3\u30b0\u30b8\u30e3\u30c3\u30af10\u56de\u3084\u308d\u3046","victoryDance":"\u52dd\u5229\u306e\u30c0\u30f3\u30b9\u3092\u7df4\u7fd2\u3057\u3088\u3046","deepBreaths":"\u6df1\u547c\u5438...\u3088\u304f\u3084\u3063\u3066\u3044\u308b\u3088","timeToSnack":"\u304a\u3084\u3064\u3092\u98df\u3079\u308b\u30b5\u30a4\u30f3\u3060\u3088"},"editClip":"\u30af\u30ea\u30c3\u30d7\u3092\u7de8\u96c6","clipEditor":"\u30af\u30ea\u30c3\u30d7\u30a8\u30c7\u30a3\u30bf\u30fc","trimIn":"\u30a4\u30f3","trimOut":"\u30a2\u30a6\u30c8","previewTrim":"\u30c8\u30ea\u30df\u30f3\u30b0\u3092\u30d7\u30ec\u30d3\u30e5\u30fc","saveCaption":"\u4fdd\u5b58","saveAndDownload":"\u4fdd\u5b58\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","export":"\u30a8\u30af\u30b9\u30d
2d\u30fc\u30c8","exportComplete":"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u5b8c\u4e86\uff01","exportNotSupported":"\u3053\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093","backToClips":"\u623b\u308b","uploadLimitReached":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u4e0a\u9650\u306b\u9054\u3057\u307e\u3057\u305f","limitResets":"\u4e0a\u9650\u306f{{date}}\u306b\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059","gotIt":"\u4e86\u89e3","failed":"\u5931\u6557","creditsRefunded":"\u30af\u30ec\u30b8\u30c3\u30c8\u304c\u8fd4\u9084\u3055\u308c\u307e\u3057\u305f","tryAgainDifferentLink":"\u3082\u3046\u4e00\u5ea6\u8a66\u3059\u304b\u3001\u5225\u306e\u30ea\u30f3\u30af\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002","noSpeechInVideo":"\u8cbc\u308a\u4ed8\u3051\u305f\u30ea\u30f3\u30af\u306b\u306f\u8a71\u3057\u58f0\u304c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u304c\u8a71\u3057\u3066\u3044\u308b\u52d5\u753b\u3067\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","retry":"\u518d\u8a66\u884c","cancelJobBtn":"\u30ad\u30e3\u30f3\u30bb\u30eb","hookScore":"\u30d5\u30c3\u30af\u30b9\u30b3\u30a2","best":"\u6700\u9ad8","clipsSelected":"{{count}}\u4ef6\u9078\u629e\u4e2d","switchToFileUpload":"\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048","switchToURL":"URL\u306b\u5207\u308a\u66ff\u3048","selectContentTypeFirst":"\u5148\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002","livestreamsNotSupported":"\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30e0\u306f\u307e\u3060\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093 \u2014 VOD\u307e\u305f\u306f\u9332\u753b\u52d5\u753b\u3092\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002","contentTypes":{"gaming":"\u30b2\u30fc\u30e0","podcastTalkingHead":"\u30dd\u30c3\u30c9\u30ad\u30e3\u30b9\u30c8 / \u30c8\u30fc\u30ad\u30f3\u30b0\u30d8\u30c3\u30c9","irlVlog":"IRL / Vlog","music":"\u97f3\u697d","documentary":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30bf\u30ea\u30fc"},"cancelThisJob":"\u3053\u306e\u30b8\u30e7\u30d6\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u307e\u3059\u304b\uff1f","deleteTheseAssets":"\u3053\u308c\u3089\u306e\u30a2\u30bb\u30c3\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u304b\uff1f","willStopProcessingRemoveJob":"\u51e6\u7406\u3092\u505c\u6b62\u3057\u3001\u30b8\u30e7\u30d6\u3092\u524a\u9664\u3057\u307e\u3059\u3002","keepGoing":"\u7d9a\u3051\u308b","noKeepThem":"\u3044\u3044\u3048\u3001\u4fdd\u6301\u3059\u308b","yesCancelJob":"\u306f\u3044\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b","yesDeleteForever":"\u306f\u3044\u3001\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b","titleCaption":"\u30bf\u30a4\u30c8\u30eb\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3","information":"\u60c5\u5831","duration":"\u6642\u9593","platform":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0","creator":"\u30af\u30ea\u30a8\u30a4\u30bf\u30fc","rateThisClip":"\u3053\u306e\u30af\u30ea\u30c3\u30d7\u3092\u8a55\u4fa1\u3059\u308b","type":"\u30bf\u30a4\u30d7","format":"\u30d5\u30a9\u30fc\u30de\u30c3\u30c8","clipsLabel":"\u30af\u30ea\u30c3\u30d7","slowConnection":"\u63a5\u7d9a\u304c\u9045\u3044","couldntLoad":"\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f","tapToRetry":"\u30bf\u30c3\u30d7\u3057\u3066\u518d\u8a66\u884c","clipsDeleted_one":"{{count}} \u4ef6\u306e\u30af\u30ea\u30c3\u30d7\u3092\u524a\u9664\u3057\u307e\u3057\u305f","clipsDeleted_other":"{{count}} \u4ef6\u306e\u30af\u30ea\u30c3\u30d7\u3092\u524a\u9664\u3057\u307e\u3057\u305f"}'),schedule:JSON.parse('{"shareClip":"\u30af\u30ea\u30c3\u30d7\u3092\u5171\u6709","loadingPlatforms":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u8aad\u307f\u8fbc\u307f\u4e2d...","noConnectedPlatforms":"\u63a5\u7d9a\u6e08\u307f\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u3042\u308a\u307e\u305b\u3093\u3002","connectSocialsToSchedule":"\u6295\u7a3f\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001SNS\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002","connectYourAccounts":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a","postTo":"\u6295\u7a3f\u5148\uff1a","deselectAll":"\u3059\u3079\u3066\u89e3\u9664","selectAll":"\u3059\u3079\u3066\u9078\u629e","caption":"\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3","
2writeCaptionPlaceholder":"\u6295\u7a3f\u306e\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u3092\u5165\u529b...","scheduleAction":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb","saveAndSchedule":"\u4fdd\u5b58\u3057\u3066\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u6295\u7a3f","postAction":"\u6295\u7a3f","publishImmediately":"\u4eca\u3059\u3050\u516c\u958b","scheduling":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u4e2d...","publishing":"\u516c\u958b\u4e2d...","viewPost":"\u6295\u7a3f\u3092\u898b\u308b","postedSuccessfully":"\u6295\u7a3f\u306b\u6210\u529f\u3057\u307e\u3057\u305f\uff01","partiallyPosted":"\u4e00\u90e8\u306e\u307f\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f","failedToPost":"\u6295\u7a3f\u306b\u5931\u6557\u3057\u307e\u3057\u305f","selectAtLeastOnePlatform":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30921\u3064\u4ee5\u4e0a\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","selectATime":"\u6642\u9593\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","selectFutureTime":"\u672a\u6765\u306e\u6642\u9593\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","postScheduled":"\u6295\u7a3f\u304c\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\uff01","failedToSchedule":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u306b\u5931\u6557\u3057\u307e\u3057\u305f","failedToPublish":"\u516c\u958b\u306b\u5931\u6557\u3057\u307e\u3057\u305f","postedSuccess":"\u6295\u7a3f\u306b\u6210\u529f\u3057\u307e\u3057\u305f\uff01","postedToSomePlatforms":"\u4e00\u90e8\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f","failedToPostError":"\u6295\u7a3f\u306b\u5931\u6557\u3057\u307e\u3057\u305f","scheduledPost":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u6e08\u307f\u306e\u6295\u7a3f","postingTo":"\u6295\u7a3f\u5148","writeCaptionShort":"\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u3092\u5165\u529b...","saveChanges":"\u5909\u66f4\u3092\u4fdd\u5b58","cancelScheduledPost":"\u3053\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u6e08\u307f\u6295\u7a3f\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u307e\u3059\u304b\uff1f","clipWontBePosted":"\u3053\u306e\u30af\u30ea\u30c3\u30d7\u306f\u9078\u629e\u3057\u305f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u6295\u7a3f\u3055\u308c\u307e\u305b\u3093\u3002","keepIt":"\u7dad\u6301\u3059\u308b","cancelling":"\u30ad\u30e3\u30f3\u30bb\u30eb\u4e2d...","yesCancelPost":"\u306f\u3044\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b","changesSaved":"\u5909\u66f4\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f","failedToSaveChanges":"\u5909\u66f4\u306e\u4fdd\u5b58\u306b\u5931\u6557\u3057\u307e\u3057\u305f","postCancelled":"\u6295\u7a3f\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f","failedToCancelPost":"\u6295\u7a3f\u306e\u30ad\u30e3\u30f3\u30bb\u30eb\u306b\u5931\u6557\u3057\u307e\u3057\u305f","todayAt":"\u4eca\u65e5","tomorrowAt":"\u660e\u65e5","upcomingClips":"\u4e88\u5b9a\u306e\u30af\u30ea\u30c3\u30d7","noScheduledClipsThisMonth":"\u4eca\u6708\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3055\u308c\u305f\u30af\u30ea\u30c3\u30d7\u306f\u3042\u308a\u307e\u305b\u3093\u3002","scheduleClipsHint":"\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u5b8c\u4e86\u5f8c\u306b\u30af\u30ea\u30c3\u30d7\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002","cancelScheduledPostConfirm":"\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u6e08\u307f\u6295\u7a3f\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u307e\u3059\u304b\uff1f","cancelPostMessage":"\u6295\u7a3f\u304c\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u304b\u3089\u524a\u9664\u3055\u308c\u307e\u3059\u3002\u5f8c\u304b\u3089\u3044\u3064\u3067\u3082\u518d\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002","cancelPost":"\u6295\u7a3f\u3092\u30ad\u30e3\u30f3\u30bb\u30eb","sun":"\u65e5","mon":"\u6708","tue":"\u706b","wed":"\u6c34","thu":"\u6728","fri":"\u91d1","sat":"\u571f","untitledClip":"\u7121\u984c\u306e\u30af\u30ea\u30c3\u30d7","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"\u63a5\u7d9a\u6e08\u307f\u30a2\u30ab\u30a6\u30f3\u30c8","linkSocialsToPost":"SNS\u3092\u9023\u643a\u3057\u3066\u30af\u30ea\u30c3\u30d7\u3092\u76f4\u63a5\u6295\u7a3f\u3057\u307e\u3057\u3087\u3046\u3002","yourChannel":"\u3042\u306a\u305f\u306e\u30c1\u30e3\u30f3\u30cd\u30eb","watermarkDescription":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf\u306fAI\u304c\u52d5\u753b\u5185\u3067\u3042\u306a\u305f\u3092\u8b58\u5225\u3057\u3001\u3088\u308a\u826f\u3044\u30af\u30ea\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002","streamerName":"\u914d\u4fe1\u8005\u540d","placeholderStreamerName":"\u4f8b\uff1aKai Cenat","streamerNameHint":"\u30af\u30ea\u30c3\u30d7\u5bfe\u8c61\u306e\u914d\u4fe1\u8005\u540d\u3067\u3059\u3002AI\u304c\u3088\u308a\u826f\u3044\u30d5\u30c3\u30af\u3092\u66f8\u304f\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002","channelUsername":"\u30c1\u30e3\u30f3\u30cd\u30eb\u30e6\u30fc\u30b6\u30fc\u540d","placeholderChannelUsername":"\u914d\u4fe1\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u540d","platform":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0","selectPlatform":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u9078\u629e","tapToChangePhoto":"\u30bf\u30c3\u30d7\u3057\u3066\u5199\u771f\u3092\u5909\u66f4","pleaseSelectImageFile":"\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044","imageMustBeLess5MB":"\u753b\u50cf\u306f5MB\u4ee5\u4e0b\u306b\u3057\u3066\u304f\u3060\u3055\u3044","profilePictureUpdated":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\uff01","failedToUploadPicture":"\u753b\u50cf\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3057\u305f","disconnectedFrom":"{{platform}}\u304b\u3089\u5207\u65ad\u3057\u307e\u3057\u305f","failedToDisconnect":"\u5207\u65ad\u306b\u5931\u6557\u3057\u307e\u3057\u305f","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","
2socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a","stripeConnectionStatus":"Stripe\u63a5\u7d9a\u30b9\u30c6\u30fc\u30bf\u30b9","stripeConnectedMessage":"Stripe\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u63a5\u7d9a\u3055\u308c\u3001\u652f\u6255\u3044\u3092\u53d7\u3051\u53d6\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059","manageStripeAccount":"Stripe\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406","stripeConnectInstructions":"Stripe\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a\u3057\u3066\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u6c7a\u6e08\u306e\u53d7\u4ed8\u3092\u958b\u59cb\u3057\u307e\u3057\u3087\u3046...","stripeSetupWarning":"\u91cd\u8981\uff1aStripe\u306e\u8a2d\u5b9a\u30d7\u30ed\u30bb\u30b9\u3092\u3059\u3079\u3066\u5b8c\u4e86\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059...","stripeSupportMessage":"\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\[email protected]\u307e\u3067\u30b5\u30dd\u30fc\u30c8\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044...","connectingToStripe":"Stripe\u306b\u63a5\u7d9a\u4e2d...","connectStripeAccount":"Stripe\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a","enableSubscriptions":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b","monthlySubscriptionPrice":"\u6708\u984d\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u6599\u91d1\uff08USD\uff09","subscriptionDescription":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u8aac\u660e","describeSubscriptionBenefits":"\u767b\u9332\u8005\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5185\u5bb9\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044...","saveSettings":"\u8a2d\u5b9a\u3092\u4fdd\u5b58","settingsSaved":"\u8a2d\u5b9a\u304c\u6b63\u5e38\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3057\u305f\uff01","savingFailed":"\u8a2d\u5b9a\u306e\u4fdd\u5b58\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","stripeConnectionError":"Stripe\u3078\u306e\u63a5\u7d9a\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","stripeDashboardError":"Stripe\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u958b\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","stripeSetupError":"Stripe\u306e\u8a2d\u5b9a\u3092\u5b8c\u4e86\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002","xsubscribeAdmin":"XSubscribe\u7ba1\u7406\u753b\u9762","preview":"\u30d7\u30ec\u30d3\u30e5\u30fc","fetchLinksError":"\u30e6\u30fc\u30b6\u30fc\u30ea\u30f3\u30af\u306e\u53d6\u5f97\u306b\u5931\u6557\u3057\u307e\u3057\u305f","deleteLinkError":"\u30ea\u30f3\u30af\u306e\u524a\u9664\u306b\u5931\u6557\u3057\u307e\u3057\u305f","orderUpdateSuccess":"\u4e26\u3073\u9806\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f","orderUpdateError":"\u4e26\u3073\u9806\u306e\u30b5\u30fc\u30d0\u30fc\u66f4\u65b0\u306b\u5931\u6557\u3057\u307e\u3057\u305f","addLinkError":"\u30ea\u30f3\u30af\u306e\u8ffd\u52a0\u306b\u5931\u6557\u3057\u307e\u3057\u305f","profileSection":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb","pickAnImage":"\u753b\u50cf\u3092\u9078\u629e","remove":"\u524a\u9664","usernameInputPlaceholder":"X\u306e\u30cf\u30f3\u30c9\u30eb\uff08@\u30e6\u30fc\u30b6\u30fc\u540d\uff09","bioInputPlaceholder":"\u306a\u305c\u4eba\u3005\u306f\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3059\u3079\u304d\uff1f","getUnlimitedCustomization":"\u7121\u5236\u9650\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u624b\u306b\u5165\u308c\u3088\u3046","verifiedCheckmark":"\u8a8d\u8a3c\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af","customBackgroundImages":"\u30ab\u30b9\u30bf\u30e0\u80cc\u666f\u753b\u50cf","removeXSubscribeLogo":"XSubscribe\u30ed\u30b4\u3092\u975e\u8868\u793a","dollarPerMonth":"\u305d\u306e\u5f8c $9 /\u6708","flatColour":"\u5358\u8272","image":"\u753b\u50cf","pickAColor":"\u8272\u3092\u9078\u629e","hideXSubscribeLogo":"XSubscribe\u30ed\u30b4\u3092\u975e\u8868\u793a\u306b\u3059\u308b","errorUpdatingProfileTitle":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30bf\u30a4\u30c8\u30eb\u306e\u66f4\u65b0\u30a8\u30e9\u30fc","errorUpdatingBio":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u7d39\u4ecb\u6587\u306e\u66f4\u65b0\u30a8\u30e9\u30fc","errorSavingBackgroun
2dColor":"\u80cc\u666f\u8272\u306e\u4fdd\u5b58\u30a8\u30e9\u30fc","errorUpdatingEffects":"\u80cc\u666f\u30a8\u30d5\u30a7\u30af\u30c8\u306e\u66f4\u65b0\u30a8\u30e9\u30fc","errorUpdatingLogo":"\u30e6\u30fc\u30b6\u30fc\u30ed\u30b4\u306e\u66f4\u65b0\u30a8\u30e9\u30fc","invalidUser":"\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u7121\u52b9\u3067\u3059\u3002","errorFetchingLogoStatus":"\u30ed\u30b4\u521d\u671f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u53d6\u5f97\u30a8\u30e9\u30fc","errorFetchingUserData":"\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u30a8\u30e9\u30fc","errorFetchingProfilePic":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf\u306e\u53d6\u5f97\u30a8\u30e9\u30fc","uploadFailed":"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5931\u6557","accountSettings":"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a","manageSubscription":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3092\u7ba1\u7406","manageSubscriptionDesc":"\u652f\u6255\u3044\u65b9\u6cd5\u306e\u66f4\u65b0\u3001\u8acb\u6c42\u66f8\u306e\u78ba\u8a8d\u3001\u307e\u305f\u306f\u30ad\u30e3\u30f3\u30bb\u30eb","deleteAccount":"\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u524a\u9664","deleteAccountWarning":"\u3053\u306e\u64cd\u4f5c\u306f\u53d6\u308a\u6d88\u305b\u307e\u305b\u3093\u3002\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u5b8c\u5168\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u3002","typeDeleteToConfirm":"\u78ba\u8a8d\u306e\u305f\u3081 DELETE \u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","accountDeleted":"\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u6b63\u5e38\u306b\u524a\u9664\u3055\u308c\u307e\u3057\u305f","failedToDeleteAccount":"\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u524a\u9664\u306b\u5931\u6557\u3057\u307e\u3057\u305f","failedToOpenBilling":"\u8acb\u6c42\u30dd\u30fc\u30bf\u30eb\u3092\u958b\u3051\u307e\u305b\u3093\u3067\u3057\u305f","yourBrands":"\u3042\u306a\u305f\u306e\u30d6\u30e9\u30f3\u30c9","addBrand":"\u30d6\u30e9\u30f3\u30c9\u3092\u8ffd\u52a0","brandName":"\u30d6\u30e9\u30f3\u30c9\u540d","brandNamePlaceholder":"\u30d6\u30e9\u30f3\u30c9\u540d\u3092\u5165\u529b","createBrand":"\u30d6\u30e9\u30f3\u30c9\u3092\u4f5c\u6210","switchBrand":"\u30d6\u30e9\u30f3\u30c9\u3092\u5207\u308a\u66ff\u3048","deleteBrand":"\u30d6\u30e9\u30f3\u30c9\u3092\u524a\u9664","cannotDeleteLastBrand":"\u552f\u4e00\u306e\u30d6\u30e9\u30f3\u30c9\u306f\u524a\u9664\u3067\u304d\u307e\u305b\u3093","brandCreated":"\u30d6\u30e9\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\uff01","brandSwitched":"\u30d6\u30e9\u30f3\u30c9\u3092\u5207\u308a\u66ff\u3048\u307e\u3057\u305f\uff01","brandDeleted":"\u30d6\u30e9\u30f3\u30c9\u3092\u524a\u9664\u3057\u307e\u3057\u305f","failedToCreateBrand":"\u30d6\u30e9\u30f3\u30c9\u306e\u4f5c\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f","failedToSwitchBrand":"\u30d6\u30e9\u30f3\u30c9\u306e\u5207\u308a\u66ff\u3048\u306b\u5931\u6557\u3057\u307e\u3057\u305f","failedToDeleteBrand":"\u30d6\u30e9\u30f3\u30c9\u306e\u524a\u9664\u306b\u5931\u6557\u3057\u307e\u3057\u305f","captionPresets":"\u5b57\u5e55\u30b9\u30bf\u30a4\u30eb","captionPresetsDesc":"\u30af\u30ea\u30c3\u30d7\u306e\u5b57\u5e55\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u898b\u305f\u76ee\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u65b0\u3057\u3044\u30af\u30ea\u30c3\u30d7\u306b\u306f\u6709\u52b9\u306a\u30d7\u30ea\u30bb\u30c3\u30c8\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002","presetName":"\u30d7\u30ea\u30bb\u30c3\u30c8\u540d","presetNamePlaceholder":"\u4f8b\uff1a\u592a\u5b57\u306e\u8d64","addPreset":"\u30d7\u30ea\u30bb\u30c3\u30c8\u3092\u8ffd\u52a0","editPreset":"\u7de8\u96c6","deletePreset":"\u524a\u9664","createPreset":"\u30d7\u30ea\u30bb\u30c3\u30c8\u3092\u4f5c\u6210","presetCreated":"\u30d7\u30ea\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\uff01","presetActivated":"\u5b57\u5e55\u30b9\u30bf\u30a4\u30eb\u3092\u5207\u308a\u66ff\u3048\u307e\u3057\u305f\uff01","presetDeleted":"\u30d7\u30ea\u30bb\u30c3\u30c8\u3092\u524a\u9664\u3057\u307e\u3057\u305f","cannotDeleteLastPreset":"\u552f\u4e00\u306e\u30d7\u30ea\u30bb\u30c3\u30c8\u306f\u524a\u9664\u3067\u304d\u307e\u305b\u3093","failedToSwitchPreset":"\u30d7\u30ea\u30bb\u30c3\u30c8\u306e\u5207\u308a\u66ff\u3048\u306b\u5931\u6557\u3057\u307e\u3057\u305f","failedToDeletePreset":"\u30d7\u30ea\u30bb\u30c3\u30c8\u306e\u524a\u9664\u306b\u5931\u6557\u3057\u307e\u3057\u305f","captionPreview":"\u3053\u308c\u306f\u5b57\u5e55\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u3067\u3059","captionColor":"\u8272","captionFont":"\u30d5\u30a9\u30f3\u30c8","captionPosition":"\u4f4d\u7f6e","captionWidth":"\u5e45","
2streamType":"\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7","streamTypeHint":"\u3069\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5236\u4f5c\u3057\u3066\u3044\u307e\u3059\u304b\uff1fAI\u304c\u3042\u306a\u305f\u306e\u30b9\u30bf\u30a4\u30eb\u306b\u5408\u3063\u305f\u30af\u30ea\u30c3\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002","streamTypeGaming":"\u30b2\u30fc\u30e0","streamTypeGamingDesc":"\u5b9f\u6cc1\u30d7\u30ec\u30a4\u3001\u30af\u30e9\u30c3\u30c1\u30d7\u30ec\u30a4\u3001\u30ea\u30a2\u30af\u30b7\u30e7\u30f3","streamTypeTalkingHead":"\u30c8\u30fc\u30af\u7cfb","streamTypeTalkingHeadDesc":"\u30dd\u30c3\u30c9\u30ad\u30e3\u30b9\u30c8\u3001\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u3001\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3001\u89e3\u8aac","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\u30ea\u30a2\u30eb\u30e9\u30a4\u30d5\u914d\u4fe1\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u30a2\u30a6\u30c8\u30c9\u30a2\u30b3\u30f3\u30c6\u30f3\u30c4","streamTypeMusic":"\u97f3\u697d","streamTypeMusicDesc":"\u30e9\u30a4\u30d6\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001DJ\u30bb\u30c3\u30c8\u3001\u97f3\u697d\u5236\u4f5c","streamTypeDocumentary":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30bf\u30ea\u30fc","streamTypeDocumentaryDesc":"\u30c9\u30ad\u30e5\u30e1\u30f3\u30bf\u30ea\u30fc\u3001\u30df\u30cb\u30c9\u30ad\u30e5\u30e1\u30f3\u30bf\u30ea\u30fc\u3001\u6620\u753b","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Clipbait\u3092\u30a2\u30f3\u30ed\u30c3\u30af","getFullAccess":"AI\u642d\u8f09\u30af\u30ea\u30c3\u30d7\u751f\u6210\u306e\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u3092\u53d6\u5f97","monthly":"\u6708\u984d","annual":"\u5e74\u984d","save15Percent":"15%\u304a\u5f97","perMonth":"/\u6708","perMonthShort":"/\u6708","billedAsPerYear":"\u5e74\u984d ${{amount}} \u3067\u8acb\u6c42","upload30Videos":"\u670830\u672c\u306e\u52d5\u753b\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","upTo2Hours":"\u6700\u59272\u6642\u9593\u306e\u52d5\u753b\u306b\u5bfe\u5fdc","generate300Clips":"\u6708300\u500b\u306e\u30af\u30ea\u30c3\u30d7\u3092\u751f\u6210","downloadAndSchedule":"\u30af\u30ea\u30c3\u30d7\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff06\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb","upTo5Accounts":"\u6700\u59275\u3064\u306e\u30d6\u30e9\u30f3\u30c9\u30a2\u30ab\u30a6\u30f3\u30c8","getStarted":"\u306f\u3058\u3081\u308b","redirecting":"\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u4e2d...","exclusiveOffer":"\u9650\u5b9a\u30aa\u30d5\u30a1\u30fc","russellBrandsPick":"Russell Brand\u306e\u304a\u3059\u3059\u3081","get10PercentOff":"Clipbait Pro\u304c10%\u30aa\u30d5 \u2014 Russell\u306e\u8996\u8074\u8005\u9650\u5b9a","discountApplied":"10%\u5272\u5f15\u304c\u81ea\u52d5\u9069\u7528\u3055\u308c\u307e\u3059","claim10Off":"10%\u30aa\u30d5\u3092\u7372\u5f97","noThanksFullPrice":"\u3044\u3044\u3048\u3001\u901a\u5e38\u4fa1\u683c\u3067\u8cfc\u5165\u3057\u307e\u3059","generateWithoutLimits":"\u5236\u9650\u306a\u3057\u3067\u751f\u6210","upgradePlan":"\u30d7\u30e9\u30f3\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9","buyCredits":"\u30af\u30ec\u30b8\u30c3\u30c8\u3092\u8cfc\u5165","creditsNeverExpireNote":"\u30af\u30ec\u30b8\u30c3\u30c8\u306f\u7121\u671f\u9650\u3067\u3001\u6708\u984d\u30d7\u30e9\u30f3\u306e\u4e0a\u9650\u304c\u5207\u308c\u305f\u5f8c\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002","mostPopular":"\u6700\u3082\u4eba\u6c17","bestValue":"\u304a\u5f97","generationsPerMonth":"\u6708{{count}}\u56de\u751f\u6210","twentyPercentOff":"20%\u30aa\u30d5","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"16%\u7bc0\u7d04","save26Percent":"26%\u7bc0\u7d04","perMonthBilledAnnually":"\u6708\u984d\u3001\u5e74\u6255\u3044"}'),pages:JSON.parse('{"foundersStoryTitle":"\u5275\u696d\u8005\u306e\u30b9\u30c8\u30fc\u30ea\u30fc","foundersStoryContent":"2021\u5e74\u3001Spirit\u306f\u4e3b\u6d41\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u304a\u3051\u308b\u691c\u95b2\u306e\u7de0\u3081\u4ed8\u3051\u306b\u76f4\u9762\u3057\u307e\u3057\u305f\u3002\u81ea\u7531\u306a\u8868\u73fe\u304c\u5c0a\u91cd\u3055\u308c\u308b\u5834\u6240\u3092\u63a2\u3057\u6c42\u3081\u3001\u5f7c\u306f\u30aa\u30fc\u30d7\u30f3\u306a\u5bfe\u8a71\u3068\u5275\u9020\u306e\u81ea\u7531\u3092\u5927\u5207\u306b\u3059\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u3053\u306e\u91cd\u8981\u306a\u51fa\u4f1a\u3044\u304c\u3001\u5f8c\u306bXSubscribe\u3068\u306a\u308b\u30a2\u30a4\u30c7\u30a2\u306e\u706b\u4ed8\u3051\u5f79\u3068\u306a\u308a\u307e\u3057\u305f \u2014 \u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u3068\u305d\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u691c\u95b2\u3092\u6050\u308c\u308b\u3053\u3068\u306a\u304f\u3001\u672c\u7269\u306e\u3064\u306a\u304c\u308a\u3092\u7bc9\u3051\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002Spirit\u306f\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u306e\u529b\u3092\u5f15\u304d\u51fa\u3059\u3068\u3044\u3046\u30e6\u30cb\u30fc\u30af\u306a\u30d3\u30b8\u30e7\u30f3\u3068\u60c5\u71b1\u3092\u6301\u3061\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u53ce\u76ca\u5316\u306e\u65b0\u6642\u4ee3\u306e\u57fa\u76e4\u3092\u7bc9\u304d\u307e\u3057\u305f\u3002XSubscribe\u306f\u9032\u5316\u3092\u7d9a\u3051\u306a\u304c\u3089\u3082\u3001\u3059\u3079\u3066\u306e\u58f0\u304c\u805e\u304b\u308c\u308b\u3079\u304d\u3060\u3068\u3044\u3046\u4fe1\u5ff5\u306b\u6839\u3056\u3057\u3066\u3044\u307e\u3059\u3002\u30d9\u30c6\u30e9\u30f3\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u3067\u3082\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u65b9\u3067\u3082\u3001XSubscribe\u306f\u597d\u304d\u306a\u3053\u3068\u3067\u6301\u7d9a\u53ef\u80fd\u306a\u30ad\u30e3\u30ea\u30a2\u3092\u7bc9\u304f\u304a\u624b\u4f1d\u3044\u3092\u3057\u307e\u3059\u3002","termsTitle":"\u5229\u7528\u898f\u7d04","lastUpdatedTerms":"\u6700\u7d42\u66f4\u65b0\u65e5\uff1a2024\u5e741\u67087\u65e5\uff08\u65e5\u66dc\u65e5\uff09","termsSection1Title":"1. XSubscribe\u3078\u3088\u3046\u3053\u305d\uff1a","termsSection1Content":"\u3053\u306e\u5229\u7528\u898f\u7d04\uff08\u300c\u898f\u7d04\u300d\uff09\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3001API\u3001\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3001\u304a\u3088\u3073\u3059\u3079\u3066\u306e\u95a2\u9023\u30b5\u30fc\u30d3\u30b9\u3092\u542b\u3080XSubscribe\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u3092\u898f\u5b9a\u3057\u307e\u3059\u3002\u5f53\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u672c\u898f\u7d04\u306b\u5f93\u3046\u3053\u3068\u306b\u540c\u610f\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002","termsSection2Title":"2. \u898f\u7d04\u306e\u5909\u66f4\uff1a","termsSection2Content":"XSubscribe\u306f\u672c\u898f\u7d04\u3092\u968f\u6642\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u91cd\u5927\u306a\u5909\u
266f4\u304c\u3042\u308b\u5834\u5408\u306f\u901a\u77e5\u3055\u308c\u3001\u5909\u66f4\u5f8c\u3082\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u7d99\u7d9a\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u65b0\u3057\u3044\u898f\u7d04\u306b\u540c\u610f\u3057\u305f\u3082\u306e\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002","termsSection3Title":"3. \u3042\u306a\u305f\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\uff1a","termsSection3Content":"XSubscribe\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f18\u6b73\u4ee5\u4e0a\u3067\u3042\u308b\u304b\u3001\u4fdd\u8b77\u8005\u306e\u8a31\u53ef\u304c\u5fc5\u8981\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u6700\u65b0\u306e\u72b6\u614b\u306b\u4fdd\u3061\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5b89\u5168\u306b\u7ba1\u7406\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u4e0a\u306e\u884c\u70ba\u306b\u3064\u3044\u3066\u306f\u3001\u3042\u306a\u305f\u304c\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u3059\u3002","termsSection4Title":"4. \u30e6\u30fc\u30b6\u30fc\u540d\uff1a","termsSection4Content":"\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u4ed6\u8005\u306e\u6a29\u5229\u3092\u5c0a\u91cd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002XSubscribe\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u56de\u53ce\u307e\u305f\u306f\u5909\u66f4\u3067\u304d\u307e\u3059\u3002","termsSection5Title":"5. \u30d7\u30e9\u30f3\u306e\u7ba1\u7406\uff1a","termsSection5Content":"XSubscribe\u306f\u7121\u6599\u30d7\u30e9\u30f3\u3068\u6709\u6599\u30d7\u30e9\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u6709\u6599\u30d7\u30e9\u30f3\u306b\u306f\u6709\u52b9\u306a\u652f\u6255\u3044\u65b9\u6cd5\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d7\u30e9\u30f3\u9593\u306e\u5207\u308a\u66ff\u3048\u304c\u53ef\u80fd\u3067\u3059\u3002","termsSection6Title":"6. \u3042\u306a\u305f\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\uff1a","termsSection6Content":"\u3042\u306a\u305f\u306f\u3054\u81ea\u8eab\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u6cd5\u5f8b\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002XSubscribe\u306f\u3053\u308c\u3089\u306e\u57fa\u6e96\u306b\u9055\u53cd\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002","termsSection7Title":"7. \u3042\u306a\u305f\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5bfe\u3059\u308b\u5f53\u793e\u306e\u6a29\u5229\uff1a","termsSection7Content":"XSubscribe\u306f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u904b\u55b6\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u3042\u306a\u305f\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f7f\u7528\u3001\u914d\u5e03\u3001\u8868\u793a\u3059\u308b\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u6709\u3057\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u8a2d\u5b9a\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002","termsSection8Title":"8. \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u505c\u6b62\u307e\u305f\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\uff1a","termsSection8Content":"XSubscribe\u306f\u898f\u7d04\u9055\u53cd\u306b\u5bfe\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u505c\u6b62\u307e\u305f\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u81ea\u8eab\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002","termsSection9Title":"9. \u8a2a\u554f\u8005\u3068\u9867\u5ba2\u306b\u5bfe\u3059\u308b\u3042\u306a\u305f\u306e\u8cac\u4efb\uff1a","termsSection9Content":"\u3042\u306a\u305f\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u307e\u305f\u306f\u3084\u308a\u53d6\u308a\u3059\u308b\u4eba\u3005\u306e\u4f53\u9a13\u306b\u3064\u3044\u3066\u306f\u3001\u3042\u306a\u305f\u304c\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u3059\u3002","termsSection10Title":"10. \u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\uff1a","termsSection10Content":"\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u63d0\u4f9b\u3044\u305f\u3060\u3044\u305f\u5834\u5408\u3001XSubscribe\u306f\u305d\u308c\u3092\u81ea\u7531\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306e\u63d0\u4f9b\u306f\u4efb\u610f\u3067\u3059\u3002","termsSection11Title":"11. \u5f53\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff1a","termsSection11Content":"\u30b3\u30f3\u30c6\u30f3\u30c4\u30d3\u30b8\u30cd\u30b9\u306e\u305f\u3081\u306b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3059\u308b\u9650\u5b9a\u7684\u306a\u6a29\u5229\u304c\u4ed8\u4e0e\u3055\u308c\u307e\u3059\u3002\u60aa\u7528\u3057\u305f\u308a\u3001\u5bb3\u3092\u4e0e\u3048\u3088\u3046\u3068\u3057\u305f\u308a\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002","termsSection12Title":"12. \u6599\u91d1\u3068\u304a\u652f\u6255\u3044\uff1a","termsSection12Content":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u6599\u91d1\u3001\u53d6\u5f15\u624b\u6570\u6599\u3001\u652f\u6255\u3044\u6761\u4ef6\u306f\u6599\u91d1\u8868\u306b\u8a73\u7d30\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002","termsSection13Title":"13. \u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\uff1a","termsSection13Content":"XSubscribe\u306e\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u901a\u77e5\u306b\u306f\u3001\u304a\u5ba2\u69d8\u306e\u60c5\u5831\u306e\u53d6\u308a\u6271\u3044\u65b9\u6cd5\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002","termsSection14Title":"14. \u6a5f\u5bc6\u4fdd\u6301\uff1a","termsSection14Content":"XSubscribe\u304c\u5171\u6709\u3059\u308b\u975e\u516c\u958b\u60c5\u5831\u306f\u6a5f\u5bc6\u3068\u3057\u3066\u53d6\u308a\u6271\u3063\u3066\u304f\u3060\u3055\u3044\u3002","termsSection15Title":"15. \u8cac\u4efb\uff1a","termsSection15Content":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u306f\u304a\u5ba2\u69d8\u304c\u8cac\u4efb\u3092\u8ca0\u3044\u307e\u3059\u3002XSubscribe\u306e\u8cac\u4efb\u306f\u9650\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002","termsSection16Title":"16. \u514d\u8cac\u4e8b\u9805\uff1a","termsSection16Content":"\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u4fdd\u8a3c\u306a\u3057\u306e\u300c\u73fe\u72b6\u306e\u307e\u307e\u300d\u3067\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002","termsSection17Title":"17. \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30b5\u30fc\u30d3\u30b9\uff1a","termsSection17Content":"XSubscribe\u306f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u898f\u7d04\u3068\u30dd\u30ea\u30b7\u30fc\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002","termsSection18Title":"18. \u30a2\u30d7\u30ea\u306e\u898f\u7d04\uff1a","termsSection18Content":"XSubscribe\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u306e\u4f7f\u7528\u306b\u306f\u7279\u5b9a\u306e\u898f\u7d04\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002","termsSection19Title":"19. \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\uff1a","termsSection19Content":"\u30a2\u30d7\u30ea\u306b\u306f\u72ec\u81ea\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u6301\u3064\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002","termsSection20Title":"20. \u305d\u306e\u4ed6\uff1a","termsSection20Content":"\u304a\u4f4f\u307e\u3044\u306e\u5730\u57df\u306b\u3088\u3063\u3066\u7279\u5b9a\u306e\u6cd5\u5f8b\u304c\u9069\u7528\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u898f\u7d04\u306f\u304a\u5ba2\u69d8\u3068XSubscribe\u9593\u306e\u5b8c\u5168\u306a\u5408\u610f\u3092\u8868\u3057\u307e\u3059\u3002","furtherInformation":"\u8a73\u3057\u3044\u60c5\u5831\u306f\u3069\u3053\u3067\u5165\u624b\u3067\u304d\u307e\u3059\u304b\uff1f","termsContactInstructions":"\u5229\u7528\u898f\u7d04\u306b\u3064\u3044\u3066\u3054\u8cea\u554f\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\uff1a","cookieNoticeTitle":"Cookie\u306b\u95a2\u3059\u308b\u304a\u77e5\u3089\u305b","lastUpdatedCookies":"\u6700\u7d42\u66f4\u65b0\u65e5\uff1a2023\u5e741\u67087\u65e5\uff08\u65e5\u66dc\u65e5\uff09","cookieIntroduction":"\u3053\u306eCookie\u306b\u95a2\u3059\u308b\u304a\u77e5\u3089\u305b\u306f\u3001XSubscribe LLC\u304cCookie\u304a\u3088\u3073\u985e\u4f3c\u306e\u6280\u8853\u3092\u3069\u306e\u3088\u3046\u306b\u4f7f\u7528\u3059\u308b\u304b\u3092\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002","whatAreCookies":"Cookie\u3068\u306f\uff1f","cookieDefinition":"Cookie\u3068\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u969b\u306b\u30c7\u30d0\u30a4\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u308b\u5c0f\u3055\u306a\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002","thirdPartyCookies":"XSubscribe\u4ee5\u5916\u306e\u5f53\u4e8b\u8005\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u3055\u308c\u305fCookie\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3Cookie\u3068\u547c\u3070\u308c\u307e\u3059\u3002","whyUseCo
2okies":"\u306a\u305cCookie\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u3059\u304b\uff1f","cookieUsage":"\u5f53\u793e\u306f\u3055\u307e\u3056\u307e\u306a\u76ee\u7684\u3067\u30d5\u30a1\u30fc\u30b9\u30c8\u30d1\u30fc\u30c6\u30a3\u304a\u3088\u3073\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306eCookie\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002","cookieContactInstructions":"Cookie\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u3054\u8cea\u554f\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\uff1a","contactSpiritTitle":"Spirit\u306b\u9023\u7d61\u3059\u308b","contactInstructions":"\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u304a\u554f\u3044\u5408\u308f\u305b\u3044\u305f\u3060\u3051\u307e\u3059\uff1a","searchTitle":"\u691c\u7d22","searchPlaceholder":"\u914d\u4fe1\u8005\u3092\u691c\u7d22\u2026","searchResults":"\u691c\u7d22\u7d50\u679c","suggestedStreamers":"\u304a\u3059\u3059\u3081\u306e\u914d\u4fe1\u8005","profileTitle":"\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb","onlyJpgPngAllowed":"JPG/PNG\u306e\u307f\u5bfe\u5fdc","maxFileSize2MB":"\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306f\u6700\u59272MB","selectAvatar":"\u30a2\u30d0\u30bf\u30fc\u3092\u9078\u629e","updating":"\u66f4\u65b0\u4e2d...","demoSubscriptionAlert":"\u3053\u308c\u306f\u30c7\u30e2\u3067\u3059\u3002\u3053\u306e\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u306b\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002","subscribe":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3","perMonth":"/\u6708","subscribed":"\u2713 \u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u4e2d","successfullySubscribedTo":"\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3057\u307e\u3057\u305f\uff1a","weLockedIn":"\u767b\u9332\u5b8c\u4e86\u3002","createYourXSubscribe":"XSubscribe\u3092\u4f5c\u6210","pageNotFoundHeading":"\u304a\u63a2\u3057\u306e\u30da\u30fc\u30b8\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002","pageNotFoundMessage":"\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u4f7f\u3044\u305f\u3044\u3067\u3059\u304b\uff1f","createXSubscribeNow":"\u4eca\u3059\u3050XSubscribe\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002","planStarter":"\u30b9\u30bf\u30fc\u30bf\u30fc","planPro":"\u30d7\u30ed","planPremium":"\u30d7\u30ec\u30df\u30a2\u30e0","superchatsHeader":"SuperChat -","loadingSuperChats":"SuperChat\u3092\u8aad\u307f\u8fbc\u307f\u4e2d...","recentSuperchats":"\u6700\u8fd1\u306eSuperChat\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u6295\u3052\u92ad","noSuperchatsPart1":"\u307e\u3060SuperChat\u304c\u3042\u308a\u307e\u305b\u3093\uff1a","noSuperchatsPart2":"\u6700\u521d\u306bSuperChat\u3092\u9001\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01","loadingSuperChatsError":"SuperChat\u306e\u8aad\u307f\u8fbc\u307f\u306b\u5931\u6557\u3057\u307e\u3057\u305f","addComment":"\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u2026","signInToComment":"\u30b3\u30e1\u30f3\u30c8\u3059\u308b\u306b\u306f\u30b5\u30a4\u30f3\u30a4\u30f3","send":"\u9001\u4fe1","signIn":"\u30b5\u30a4\u30f3\u30a4\u30f3","beTheFirstToComment":"\u6700\u521d\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u6295\u7a3f\u3057\u307e\u3057\u3087\u3046\u3002","writeReply":"\u8fd4\u4fe1\u3092\u5165\u529b...","reply":"\u8fd4\u4fe1","unlike":"\u3044\u3044\u306d\u53d6\u308a\u6d88\u3057","like":"\u3044\u3044\u306d","comments":"\u30b3\u30e1\u30f3\u30c8","shareThisStream":"\u3053\u306e\u914d\u4fe1\u3092\u5171\u6709","goTo":"\u79fb\u52d5\u5148","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"\u30e1\u30c3\u30bb\u30fc\u30b8","emailShare":"\u30e1\u30fc\u30eb","copyLink":"\u30ea\u30f3\u30af\u3092\u30b3\u30d4\u30fc","more":"\u3082\u3063\u3068\u898b\u308b","deleting":"\u524a\u9664\u4e2d\u2026","anon":"\u533f\u540d","noCommentsYet":"\u307e\u3060\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093\u3002","sendSuperChat":"SuperChat\u3092\u9001\u308b","amountDollar":"\u91d1\u984d\uff08$\uff09","messageMaxChars":"\u30e1\u30c3\u30bb\u30fc\u30b8\uff08\u6700\u5927200\u6587\u5b57\uff09","typeSuperChatMessage":"SuperChat\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5165\u529b...","processingPayment":"\u51e6\u7406\u4e2d...","sendAmount":"${{amount}} SuperChat\u3092\u9001\u308b","pleaseLogInToSuperChat":"SuperChat\u3092\u9001\u308b\u306b\u306f\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044","pleaseEnterMessage":"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","amountMustBeAtLeast1":"\u91d1\u984d\u306f\u6700\u4f4e$1\u4ee5\u4e0a\u306b\u3057\u3066\u304f\u3060\u3055\u3044","failedToCreateCheckout":"\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f","highlightedFor":"\u30cf\u30a4\u30e9\u30a4\u30c8\u8868\u793a\u4e2d"}'),notifications:JSON.parse('{"notifications":"\u901a\u77e5","viaEmail":"\u30e1\u30fc\u30eb\u7d4c\u7531","receiveNotificationThroughEmail":"\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b","all":"\u3059\u3079\u3066","unread":"\u672a\u8aad","noUnreadNotifications":"\u672a\u8aad\u306e\u901a\u77e5\u306f\u3042\u308a\u307e\u305b\u3093\u3002","noNotificationsYet":"\u307e\u3060\u901a\u77e5\u304c\u3042\u308a\u307e\u305b\u3093\u3002","couldntLoadNotifications":"\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u901a\u77e5\u3092\u8aad\u307f\u8fbc\u3081\u307e\u305b\u3093\u3067\u3057\u305f","someone":"\u8ab0\u304b","isLiveNow":"\u304c\u914d\u4fe1\u4e2d\u3067\u3059","postedReplay":"\u304c\u30ea\u30d7\u30ec\u30a4\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f","repliedToComment":"\u304c\u30b3\u30e1\u30f3\u30c8\u306b\u8fd4\u4fe1\u3057\u307e\u3057\u305f","likedYourComment":"\u304c\u30b3\u30e1\u30f3\u30c8\u306b\u3044\u3044\u306d\u3057\u307e\u3057\u305f","activity":"\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3","secondsAgo":"{{count}}\u79d2\u524d","minutesAgo":"{{count}}\u5206\u524d","hoursAgo":"{{count}}\u6642\u9593\u524d","daysAgo":"{{count}}\u65e5\u524d"}')},ko:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\ub85c\uadf8\uc778","logout":"\ub85c\uadf8\uc544\uc6c3","signUp":"\ud68c\uc6d0\uac00\uc785","signUpFree":"\ubb34\ub8cc \ud68c\uc6d0\uac00\uc785","profile":"\ud504\ub85c\ud544","creatorDashboard":"\ud06c\ub9ac\uc5d0\uc774\ud130 \ub300\uc2dc\ubcf4\ub4dc","notifications":"\uc54c\ub9bc","pricing":"\uc694\uae08\uc81c","admin":"\uad00\ub9ac\uc790","save":"\uc800\uc7a5","saving":"\uc800\uc7a5 \uc911...","cancel":"\ucde8\uc18c","delete":"\uc0ad\uc81c","continue":"\uacc4\uc18d","skip":"\uac74\ub108\ub6f0\uae30","skipForNow":"\ub098\uc911\uc5d0 \ud558\uae30","done":"\uc644\ub8cc","loading":"\ub85c\ub529 \u
2c911...","edit":"\ud3b8\uc9d1","connect":"\uc5f0\uacb0","disconnect":"\uc5f0\uacb0 \ud574\uc81c","comingSoon":"\uace7 \ucd9c\uc2dc \uc608\uc815","connected":"\uc5f0\uacb0\ub428","back":"\ub4a4\ub85c","upgrade":"\uc5c5\uadf8\ub808\uc774\ub4dc","options":"\uc635\uc158","confirm":"\ud655\uc778","areYouSure":"\uc815\ub9d0\ub85c \uc9c4\ud589\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","appearance":"\uc678\uad00","subs":"\uad6c\ub3c5","myPage":"\ub0b4 \ud398\uc774\uc9c0","clipsTab":"\ud074\ub9bd","calendarTab":"\uce98\ub9b0\ub354","profileTab":"\ud504\ub85c\ud544","company":"\ud68c\uc0ac","about":"\uc18c\uac1c","press":"\uc5b8\ub860","contact":"\uc5f0\ub77d\ucc98","followUs":"\ud314\ub85c\uc6b0\ud558\uae30","termsAndConditions":"\uc774\uc6a9\uc57d\uad00","cookiePolicy":"\ucfe0\ud0a4 \uc815\ucc45","connectedTo":"{{platform}}\uc5d0 \uc5f0\uacb0\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","planActivated":"\ud50c\ub79c\uc774 \ud65c\uc131\ud654\ub418\uc5c8\uc2b5\ub2c8\ub2e4! \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","saved":"\uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","failedToSave":"\uc800\uc7a5\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","deleting":"\uc0ad\uc81c \uc911...","logOut":"\ub85c\uadf8\uc544\uc6c3","download":"\ub2e4\uc6b4\ub85c\ub4dc","freePlan":"\ubb34\ub8cc \ud50c\ub79c","planLabel":"{{plan}} \ud50c\ub79c","outOfCredits":"\u26a1 \ud06c\ub808\ub527 \uc18c\uc9c4","creditsRemaining_one":"\u26a1 {{count}}\uac1c \ud06c\ub808\ub527 \ub0a8\uc74c","creditsRemaining_other":"\u26a1 {{count}}\uac1c \ud06c\ub808\ub527 \ub0a8\uc74c","topUpCredits":"\ud06c\ub808\ub527 \ucda9\uc804","buy":"\uad6c\ub9e4","manageAccount":"\uacc4\uc815 \uad00\ub9ac","signOut":"\ub85c\uadf8\uc544\uc6c3"}'),auth:JSON.parse('{"welcomeBack":"\ub2e4\uc2dc \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4","signInToContinue":"Clipbait\uc744 \uacc4\uc18d \uc774\uc6a9\ud558\ub824\uba74 \ub85c\uadf8\uc778\ud558\uc138\uc694","continueWithGoogle":"Google\ub85c \uacc4\uc18d\ud558\uae30","orContinueWithEmail":"\ub610\ub294 \uc774\uba54\uc77c\ub85c \uacc4\uc18d\ud558\uae30","enterYourEmail":"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694","checkYourEmail":"\uc774\uba54\uc77c\uc744 \ud655\uc778\ud558\uc138\uc694","weSentCodeTo":"\uc778\uc99d \ucf54\ub4dc\ub97c \uc804\uc1a1\ud588\uc2b5\ub2c8\ub2e4:","pleaseEnter6DigitCode":"6\uc790\ub9ac \uc778\uc99d \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uc138\uc694","verifyAndContinue":"\uc778\uc99d \ud6c4 \uacc4\uc18d\ud558\uae30","resendCodeIn":"{{countdown}}\ucd08 \ud6c4 \ucf54\ub4dc \uc7ac\uc804\uc1a1","resendCode":"\ucf54\ub4dc \uc7ac\uc804\uc1a1","byContinuingYouAgree":"\uacc4\uc18d\ud558\uc2dc\uba74 Clipbait\uc758 \ub2e4\uc74c \uc0ac\ud56d\uc5d0 \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4:","termsOfService":"\uc11c\ube44\uc2a4 \uc774\uc6a9\uc57d\uad00","privacyPolicy":"\uac1c\uc778\uc815\ubcf4 \ucc98\ub9ac\ubc29\uce68","invalidCode":"\uc798\ubabb\ub41c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","invalidEmail":"\uc720\ud6a8\ud55c \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uc785\ub825\ud558\uc138\uc694","failedToSendCode":"\ucf54\ub4dc \uc804\uc1a1\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","signingYouIn":"\ub85c\uadf8\uc778 \uc911...","emailOrUsername":"\uc774\uba54\uc77c \ub610\ub294 \uc0ac\uc6a9\uc790\uba85","password":"\ube44\ubc00\ubc88\ud638","forgotPassword":"\ube44\ubc00\ubc88\ud638\ub97c \uc78a\uc73c\uc168\ub098\uc694?","logIn":"\ub85c\uadf8\uc778","incorrectCredentials":"\uc0ac\uc6a9\uc790\uba85/\uc774\uba54\uc77c \ub610\ub294 \ube44\ubc00\ubc88\ud638\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","emailNotVerified":"\uc774\uba54\uc77c\uc774 \uc778\uc99d\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4. \uc774\uba54\uc77c\uc744 \ud655\uc778\ud558\uc138\uc694.","email":"\uc774\uba54\uc77c","username":"\uc0ac\uc6a9\uc790\uba85","birthdayLabel":"\uc0dd\ub144\uc6d4\uc77c (\uc6d4 / \uc77c / \ub144)","monthPlaceholder":"MM","dayPlaceholder":"DD","yearPlaceholder":"YYYY","usernameTooShort":"\uc0ac\uc6a9\uc790\uba85\uc740 \ucd5c\uc18c {{min}}\uc790 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.","usernameTooLong":"\uc0ac\uc6a9\uc790\uba85\uc740 \ucd5c\ub300 {{max}}\uc790\uae4c\uc9c0 \uac00\ub2a5\ud569\ub2c8\ub2e4.","usernameInvalidFormat":"\uc601\ubb38\uc790, \uc22b\uc790, \ubc11\uc904\ub9cc \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uacf5\ubc31\uc740 \ud5c8\uc6a9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","birthdayRequired":"\uc0dd\ub144\uc6d4\uc77c\uc744 \ubaa8\ub450 \uc120\ud0dd\ud558\uc138\uc694.","invali
2dEmailFormat":"\uc720\ud6a8\ud55c \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uc785\ub825\ud558\uc138\uc694.","passwordRequired":"\ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4.","passwordTooShort":"\ube44\ubc00\ubc88\ud638\ub294 \ucd5c\uc18c 3\uc790 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.","emailAvailable":"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \uc774\uba54\uc77c\uc785\ub2c8\ub2e4.","usernameAvailable":"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \uc0ac\uc6a9\uc790\uba85\uc785\ub2c8\ub2e4.","usernameTaken":"\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \uc0ac\uc6a9\uc790\uba85\uc785\ub2c8\ub2e4.","emailTaken":"\uc774 \uc774\uba54\uc77c\ub85c \uac00\uc785\ub41c \uacc4\uc815\uc774 \uc774\ubbf8 \uc874\uc7ac\ud569\ub2c8\ub2e4.","passwordHint":"\ucd5c\uc18c 3\uc790 \uc774\uc0c1.","fixErrorsToContinue":"\uacc4\uc18d\ud558\ub824\uba74 \uc624\ub958\ub97c \uc218\uc815\ud558\uc138\uc694","bySigningUpYouAgree":"\ud68c\uc6d0\uac00\uc785 \uc2dc \ub2e4\uc74c \uc0ac\ud56d\uc5d0 \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4:","termsOfUse":"\uc774\uc6a9\uc57d\uad00","accountCreated":"\uacc4\uc815\uc774 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","registrationFailed":"\uac00\uc785\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","alreadyHaveAccount":"\uc774\ubbf8 \uacc4\uc815\uc774 \uc788\uc73c\uc2e0\uac00\uc694?","starterPlanTitle":"XSubscribe.bio \uc2a4\ud0c0\ud130","proPlanTitle":"XSubscribe.bio \ud504\ub85c","premiumPlanTitle":"XSubscribe.bio \ud504\ub9ac\ubbf8\uc5c4","signUpAndStart":"\uac00\uc785\ud558\uace0 \uc5f0\uacb0\uc744 \uc2dc\uc791\ud558\uc138\uc694!","termsAgreementFull":"\uac00\uc785 \uc2dc \uc774\uc6a9\uc57d\uad00, \uac1c\uc778\uc815\ubcf4 \ucc98\ub9ac\ubc29\uce68 \ubc0f \ucfe0\ud0a4 \uc815\ucc45\uc5d0 \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.","resetYourPassword":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815","enterEmailToReset":"\uc7ac\uc124\uc815\ud560 \uacc4\uc815\uc758 \uc774\uba54\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694","pleaseEnterEmail":"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694","resetPassword":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815","pleaseEnterYourEmail":"\uc774\uba54\uc77c\uc744 \uc785\ub825\ud558\uc138\uc694","couldNotStartRecovery":"\ubcf5\uad6c\ub97c \uc2dc\uc791\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","backToLogin":"\ub85c\uadf8\uc778\uc73c\ub85c \ub3cc\uc544\uac00\uae30","emailVerification":"\uc774\uba54\uc77c \uc778\uc99d","weSent4DigitCode":"4\uc790\ub9ac \uc778\uc99d \ucf54\ub4dc\ub97c \uc804\uc1a1\ud588\uc2b5\ub2c8\ub2e4:","yourEmail":"\uc774\uba54\uc77c","pleaseEnter4DigitCode":"4\uc790\ub9ac \uc778\uc99d \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uc138\uc694.","verifyAccount":"\uacc4\uc815 \uc778\uc99d","incorrectOrExpiredCode":"\uc785\ub825\ud55c \ucf54\ub4dc\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uac70\ub098 \ub9cc\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uac70\ub098 \uc7ac\uc804\uc1a1\ud558\uc138\uc694.","didntReceiveCode":"\ucf54\ub4dc\ub97c \ubc1b\uc9c0 \ubabb\ud558\uc168\ub098\uc694?","resendIn":"{{timer}}\ucd08 \ud6c4 \uc7ac\uc804\uc1a1","sending":"\uc804\uc1a1 \uc911\u2026","verifying":"\uc778\uc99d \uc911\u2026","newCodeSent":"\uc0c8 \uc778\uc99d \ucf54\ub4dc\uac00 \uc774\uba54\uc77c\ub85c \uc804\uc1a1\ub418\uc5c8\uc2b5\ub2c8\ub2e4.","missingEmail":"\uc774\uba54\uc77c\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","failedToResendCode":"\ucf54\ub4dc \uc7ac\uc804\uc1a1\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","changePassword":"\ube44\ubc00\ubc88\ud638 \ubcc0\uacbd","newPassword":"\uc0c8 \ube44\ubc00\ubc88\ud638","confirmPassword":"\ube44\ubc00\ubc88\ud638 \ud655\uc778","passwordsDontMatch":"\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","failedToResetPassword":"\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","couldNotResetPassword":"\ube44\ubc00\ubc88\ud638\ub97c \uc7ac\uc124\uc815\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","invali
2dOrExpiredCode":"\uc720\ud6a8\ud558\uc9c0 \uc54a\uac70\ub098 \ub9cc\ub8cc\ub41c \ucf54\ub4dc\uc785\ub2c8\ub2e4.","passwordSuccessfullySet":"\ube44\ubc00\ubc88\ud638\uac00 \uc131\uacf5\uc801\uc73c\ub85c \uc124\uc815\ub418\uc5c8\uc2b5\ub2c8\ub2e4","successTitle":"\uc131\uacf5!","emailSentInstructions":"\uacc4\uc815 \uc778\uc99d \uc774\uba54\uc77c\uc774 \uc804\uc1a1\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\uba54\uc77c\uc744 \uc5f4\uc5b4 \uacc4\uc815\uc744 \uc778\uc99d\ud574 \uc8fc\uc138\uc694. 15\ubd84 \uc774\ub0b4\uc5d0 \ubc1b\uc740\ud3b8\uc9c0\ud568\uc5d0\uc11c \uc774\uba54\uc77c\uc744 \ucc3e\uc744 \uc218 \uc5c6\ub294 \uacbd\uc6b0, \uc2a4\ud338 \uba54\uc77c\ud568\uc744 \ud655\uc778\ud558\uc138\uc694. \uc2a4\ud338 \uba54\uc77c\ud568\uc5d0\uc11c \ucc3e\uc73c\uc168\ub2e4\uba74 \\"\uc2a4\ud338 \uc544\ub2d8\\"\uc73c\ub85c \ud45c\uc2dc\ud574 \uc8fc\uc138\uc694.","emailVerifiedSuccessfully":"\uc774\uba54\uc77c\uc774 \uc131\uacf5\uc801\uc73c\ub85c \uc778\uc99d\ub418\uc5c8\uc2b5\ub2c8\ub2e4","emailSuccessfullyVerifiedAlert":"\uc774\uba54\uc77c\uc774 \uc131\uacf5\uc801\uc73c\ub85c \uc778\uc99d\ub418\uc5c8\uc2b5\ub2c8\ub2e4","notFound404":"404 \ud398\u
2c774\uc9c0\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4"}'),onboarding:JSON.parse('{"title":"\uc548\ub155\ud558\uc138\uc694, \uc800\ub294 Clipbait\uc785\ub2c8\ub2e4","subtitle":"\ub2f9\uc2e0\uc758 \uc2a4\ud2b8\ub9bc\uc744 \uc704\ud55c AI \ud074\ub9ac\ud37c\uc785\ub2c8\ub2e4","factHeader":"\uc800\uc5d0 \ub300\ud574 \uc54c\uc544\ub450\uc154\uc57c \ud560 \uba87 \uac00\uc9c0:","fact1":"\uc800\ub294 \ucd5c\uace0\uc758 \ud3b8\uc9d1\uc790\uc5d0 \uc758\ud574 \ub9cc\ub4e4\uc5b4\uc84c\uc73c\uba70, \uc81c \uc2e4\ub825\uc740 \uacc4\uc18d \ud5a5\uc0c1\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4","fact2":"\uc800\ub294 \uc2a4\ud2b8\ub9ac\uba38\uc640 \ud074\ub9ac\ud37c\uc758 \uc791\uc5c5\uc744 \ub354 \uc27d\uac8c \ub3c4\uc640\uc8fc\uae30 \uc704\ud574 \ub9cc\ub4e4\uc5b4\uc84c\uc2b5\ub2c8\ub2e4","letsGetStarted":"\uc2dc\uc791\ud558\uae30","questionUserType":"\ud074\ub9ac\ud37c\uc778\uac00\uc694, \uc2a4\ud2b8\ub9ac\uba38\uc778\uac00\uc694?","imAClipper":"\ud074\ub9ac\ud37c\uc785\ub2c8\ub2e4","imAStreamer":"\uc2a4\ud2b8\ub9ac\uba38\uc785\ub2c8\ub2e4","questionStreamerNameClipper":"\uc2a4\ud2b8\ub9ac\uba38\uc758 \uc774\ub984\uc740 \ubb34\uc5c7\uc778\uac00\uc694?","questionStreamerNameStreamer":"\uc2a4\ud2b8\ub9ac\uba38 \uc774\ub984\uc740 \ubb34\uc5c7\uc778\uac00\uc694?","placeholderStreamerNameClipper":"\uc608: Kai Cenat","placeholderStreamerNameStreamer":"\uc608: \ud45c\uc2dc \uc774\ub984","streamerNameHint":"\uc774 \uc815\ubcf4\ub294 AI\uac00 \ud074\ub9bd\uc5d0 \ub354 \ub098\uc740 \ud6c4\ud06c\ub97c \uc791\uc131\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.","questionChannelUsernameClipper":"\ud074\ub9bd\uc744 \ub9cc\ub4dc\ub294 \uc2a4\ud2b8\ub9ac\uba38\uc758 \ucc44\ub110 \uc0ac\uc6a9\uc790\uba85\uc740 \ubb34\uc5c7\uc778\uac00\uc694?","questionChannelUsernameStreamer":"\uc2dc\uc791\ud558\uae30 \uc804\uc5d0, \ucc44\ub110 \uc0ac\uc6a9\uc790\uba85\uc740 \ubb34\uc5c7\uc778\uac00\uc694? (\uc77c\ubc18 \ud14d\uc2a4\ud2b8 - @ \uae30\ud638 \uc5c6\uc774)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\uc5b4\ub5a4 \ud50c\ub7ab\ud3fc\uc5d0\uc11c \ubc29\uc1a1\ud558\ub098\uc694?","questionPlatformStreamer":"\uc8fc\uc694 \uc2a4\ud2b8\ub9ac\ubc0d \ud50c\ub7ab\ud3fc\uc740 \ubb34\uc5c7\uc778\uac00\uc694?","twitchStreamer":"Twitch\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","rumbleStreamer":"Rumble\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","youtubeStreamer":"YouTube\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","kickStreamer":"Kick\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","xStreamer":"X\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","ganjingStreamer":"Ganjing World\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"\ud504\ub85c\ud544 \uc0ac\uc9c4 \uc5c5\ub85c\ub4dc","profilePictureHint":"AI\uac00 \uc601\uc0c1\uc5d0\uc11c \ub2f9\uc2e0\uc744 \uc2dd\ubcc4\ud558\uc5ec \ub354 \ub098\uc740 \ud074\ub9bd\uc744 \ub9cc\ub4dc\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.","choosePhoto":"\uc0ac\uc9c4 \uc120\ud0dd","uploading":"\uc5c5\ub85c\ub4dc \uc911...","questionOpportunitiesClipper":"\ud074\ub9ac\ud551\uc73c\ub85c \uc218\uc775\uc744 \uc5bb\uc744 \uc218 \uc788\ub294 \ucd08\ub300\ub97c \ubc1b\uc73c\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","questionOpportunitiesStreamer":"\uc2a4\ud2b8\ub9bc\uc744 \uc704\ud574 Clipbait \ud074\ub9ac\ud37c\ub97c \uace0\uc6a9\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","yesInterested":"\ub124, \uad00\uc2ec \uc788\uc2b5\ub2c8\ub2e4","notRightNow":"\uc9c0\uae08\uc740 \uad1c\ucc2e\uc2b5\ub2c8\ub2e4","questionConnectPages":"\ud074\ub9bd\uc744 \uac8c\uc2dc\ud560 \ud398\uc774\uc9c0\ub97c \uc5f0\uacb0\ud558\uc138\uc694","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\uc5b4\ub5a4 \uc720\ud615\uc758 \ucf58\ud150\uce20\ub97c \uc81c\uc791\ud558\uc2dc\ub098\uc694?","streamTypeGaming":"\uac8c\uc784","streamTypeGamingDesc":"\ud574\uc124\uc774 \ud3ec\ud568\ub41c \uac8c\uc784\ud50c\ub808\uc774, \ud074\ub7ec\uce58 \uc7a5\uba74, \ub9ac\uc561\uc158","streamTypeTalkingHead":"\ud1a0\ud06c","streamTypeTalkingHeadDesc":"\ud31f\uce90\uc2a4\ud2b8, \uc778\ud130\ubdf0, \ub9ac\uc561\uc158, \ud574\uc124","streamTypeIRL":"IRL / \ube0c\uc774\ub85c\uadf8","streamTypeIRLDesc":"\uc2e4\uc0dd\ud65c \uc2a4\ud2b8\ub9ac\ubc0d, \uc774\ubca4\ud2b8, \uc57c\uc678 \ucf58\ud150\uce20","streamTypeMusic":"\uc74c\uc545","streamTypeMusicDesc":"\ub77c\uc774\ube0c \uacf5\uc5f0, DJ \uc138\ud2b8, \uc74c\uc545 \ud504\ub85c\ub355\uc158","finishSetup":"\uc124\uc815 \uc644\ub8cc","ownStreamer":"OWN\uc5d0\uc11c \ubc29\uc1a1\ud569\ub2c8\ub2e4","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI \uae30\ubc18 \ud074\ub9bd \uc0dd\uc131\uae30","turnStreamsInto":"\uc2a4\ud2b8\ub9bc\uc744 \ubc14\uafd4\ubcf4\uc138\uc694","viralClips":"\ubc14\uc774\ub7f4 \ud074\ub9bd\uc73c\ub85c","pasteUrl":"URL \ubd99\uc5ec\ub123\uae30","uploadVideo":"\uc601\uc0c1 \uc5c5\ub85c\ub4dc","pasteYouTubeLivestream":"YouTube \ub77c\uc774\ube0c \uc2a4\ud2b8\ub9bc U
2RL\uc744 \ubd99\uc5ec\ub123\uc73c\uc138\uc694","pasteRumbleLivestream":"Rumble \ub77c\uc774\ube0c \uc2a4\ud2b8\ub9bc URL\uc744 \ubd99\uc5ec\ub123\uc73c\uc138\uc694","pasteGanjingWorldLink":"Ganjing World \ub9c1\ud06c \ubd99\uc5ec\ub123\uae30","pasteKickLink":"Kick \ub9c1\ud06c \ubd99\uc5ec\ub123\uae30","pasteTwitchLink":"Twitch \ub9c1\ud06c \ubd99\uc5ec\ub123\uae30","pasteXLink":"X \ub9c1\ud06c \ubd99\uc5ec\ub123\uae30","generateClips":"\ud074\ub9bd \uc0dd\uc131","starting":"\uc2dc\uc791 \uc911...","uploadingProgress":"\uc5c5\ub85c\ub4dc \uc911 {{progress}}%...","processing":"\ucc98\ub9ac \uc911","yourClips":"\ub0b4 \ud074\ub9bd","loadingClips":"\ud074\ub9bd \ubd88\ub7ec\uc624\ub294 \uc911...","noClipsYet":"\uc544\uc9c1 \ud074\ub9bd\uc774 \uc5c6\uc2b5\ub2c8\ub2e4","pasteStreamUrl":"\uc2a4\ud2b8\ub9bc URL\uc744 \ubd99\uc5ec\ub123\uc5b4 \uc2dc\uc791\ud558\uc138\uc694","clipsReady":"{{count}}\uac1c\uc758 \ud074\ub9bd\uc774 \uc900\ube44\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","clipCount":"{{count}}\uac1c \ud074\ub9bd","dropFileHere":"\uc5ec\uae30\uc5d0 \ud30c\uc77c\uc744 \ub193\uc73c\uc138\uc694","dragAndDrop":"\ub4dc\ub798\uadf8 \uc564 \ub4dc\ub86d\ud558\uac70\ub098 \ud074\ub9ad\ud558\uc5ec \uc120\ud0dd","mp4OrMovMax2GB":"MP4 \ub610\ub294 MOV, \ucd5c\ub300 2GB","freeTrialBanner":"\ubb34\ub8cc \uccb4\ud5d8 \uc911\uc785\ub2c8\ub2e4. \uc77c\ubd80 \uae30\ub2a5\uc774 \uc81c\ud55c\ub429\ub2c8\ub2e4. \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\ub824\uba74 \uc5c5\uadf8\ub808\uc774\ub4dc\ud558\uc138\uc694.","pasteVideoLinkFirst":"\uba3c\uc800 \uc601\uc0c1 \ub9c1\ud06c\ub97c \ubd99\uc5ec\ub123\uc73c\uc138\uc694","selectPlatformInSettings":"\uc124\uc815\uc5d0\uc11c \ud50c\ub7ab\ud3fc\uc744 \uc120\ud0dd\ud558\uc138\uc694","setChannelUsername":"\uc124\uc815\uc5d0\uc11c \ucc44\ub110 \uc0ac\uc6a9\uc790\uba85\uc744 \uc124\uc815\ud558\uc138\uc694","onlyMp4MovSupported":"MP4 \ubc0f MOV \ud30c\uc77c\ub9cc \uc9c0\uc6d0\ub429\ub2c8\ub2e4","fileMustBeUnder2GB":"\ud30c\uc77c \ud06c\uae30\ub294 2GB \ubbf8\ub9cc\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4","selectVideoFileFirst":"\uba3c\uc800 \uc601\uc0c1 \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uc138\uc694","clippingStarted":"\ud074\ub9ac\ud551\uc774 \uc2dc\uc791\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","uploadCompleteClippingStarted":"\uc5c5\ub85c\ub4dc \uc644\ub8cc \u2014 \ud074\ub9ac\ud551\uc774 \uc2dc\uc791\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","uploadFailed":"\uc5c5\ub85c\ub4dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToStartClipping":"\ud074\ub9ac\ud551\uc744 \uc2dc\uc791\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4","havingTroubleWithLink":"\ud574\ub2f9 \ub9c1\ud06c\uc5d0 \ubb38\uc81c\uac00 \uc788\uc2b5\ub2c8\ub2e4 \u2014 \uc601\uc0c1\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud558\uc5ec \uc9c1\uc811 \uc5c5\ub85c\ub4dc\ud558\uac70\ub098 YouTube \ub9c1\ud06c\ub97c \uc0ac\uc6a9\ud574 \ubcf4\uc138\uc694","reachedUploadLimit":"\uc774\ubc88 \ub2ec \uc5c5\ub85c\ub4dc \ud55c\ub3c4\uc5d0 \ub3c4\ub2ec\ud588\uc2b5\ub2c8\ub2e4.","jobCancelled":"\uc791\uc5c5\uc774 \ucde8\uc18c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","projectDeleted":"\ud504\ub85c\uc81d\ud2b8\uac00 \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToDeleteProject":"\ud504\ub85c\uc81d\ud2b8 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","deleteProject":"\ud504\ub85c\uc81d\ud2b8\ub97c \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","cannotBeUndone":"\uc774 \uc791\uc5c5\uc740 \ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","jobStillProcessing":"\uc774 \uc791\uc5c5\uc740 \uc544\uc9c1 \ucc98\ub9ac \uc911\uc785\ub2c8\ub2e4","jobCancelledClipsDeleted":"\uc791\uc5c5\uc774 \ucde8\uc18c\ub418\uace0 \ubaa8\ub4e0 \ud074\ub9bd\uc774 \uc601\uad6c\uc801\uc73c\ub85c \uc0ad\uc81c\ub429\ub2c8\ub2e4.","allClipsDeleted":"\ubaa8\ub4e0 \ud074\ub9bd\uc774 \uc601\uad6c\uc801\uc73c\ub85c \uc0ad\uc81c\ub429\ub2c8\ub2e4.","creatingYourClips":"\ud074\ub9bd\uc744 \uc0dd\uc131\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4","wellEmailYouWhenReady":"\uc900\ube44\ub418\uba74 \uc774\uba54\uc77c\ub85c \uc54c\ub824\ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4","estimatingTime":"\uc608\uc0c1 \uc911...","underTwoMinutes":"2\ubd84 \uc774\ub0b4","minutesRemaining":"\uc57d {{count}}\ubd84 \ub0a8\uc74c","hoursMinutesRemaining":"\uc57d {{hours}}\uc2dc\uac04 {{minutes}}\ubd84 \ub0a8\uc74c","almostDone":"\uac70\uc758 \uc644\ub8cc...","phaseDownloading":"\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc \uc911...","phaseDownloaded":"\ub2e4\uc6b4\ub85c\ub4dc \uc644\ub8cc","phaseExtractingAudio":"\uc624\ub514\uc624 \ucd94\ucd9c \uc911...","phaseTranscribing":"\uc624\ub514\uc624 \uc804\uc0ac \uc911...","phaseTranscribingLong":"(\uae34 \ubc29\uc1a1\uc5d0\uc11c \uac00\uc7a5 \ub290\ub9b0 \ub2e8\uacc4\uc785\ub2c8\ub2e4)","phaseAnalyzing":"AI\uac00 \ucd5c\uace0\uc758 \uc21c\uac04\uc744 \uc120\ud0dd \uc911...","phaseRendering":"\ud074\ub9bd \ub80c\ub354\ub9c1 \uc911...","phaseDone":"\uc644\ub8cc!","tryUploadingInstead":"\ub300\uc2e0 \uc5c5\ub85c\ub4dc\ub97c \uc2dc\ub3c4\ud574 \ubcf4\uc138\uc694","processingStatus":"\ucc98\ub9ac \uc911...","clipsReadyCount":"{{count}}\uac1c\uc758 \ud074\ub9bd \uc900\ube44 \uc644\ub8cc","schedule":"\uc608\uc57d","post":"\uac8c\uc2dc","goodClip":"\uc88b\uc740 \ud074\ub9bd","badClip":"\ub098\uc05c \ud074\ub9bd","downloadClip":"\ud074\ub9bd \ub2e4\uc6b4\ub85c\ub4dc","moreOptions":"\ub354 \ub9ce\uc740 \uc635\uc158","clipDefaultTitle":"\ud074\ub9bd {{number}}","funMessages":{"goGrabCoffee":"\ucee4\ud53c \ud55c \uc794 \ud558\uace0 \uc624\uc138\uc694","timeForStretch":"\uc2a4\ud2b8\ub808\uce6d\ud560 \uc2dc\uac04\uc774\uc5d0\uc694","takeQuickWalk":"\uc7a0\uae50 \uc0b0\ucc45\ud558\uace0 \uc624\uc138\uc694","hydrateYourself":"\ubb3c \ud55c \uc794 \ub9c8\uc2dc\uc138\uc694","doPushups":"\ud314\uad7d\ud600\ud3b4\uae30 \uc880 \ud574\ubcf4\uc138\uc694","callYourMom":"\uc5b4\uba38\ub2c8\uaed8 \uc804\ud654\ud558\uc138\uc694","petYourDog":"\ubc18\ub824\uacac\uc744 \uc4f0\ub2e4\ub4ec\uc5b4 \uc8fc\uc138\uc694","goForSwim":"\uc218\uc601\ud558\ub7ec \uac00\uc138\uc694","touchSomeGrass":"\uc794\ub514\ubc2d\uc744 \ubc1f\uc544\ubcf4\uc138\uc694","checkYourPosture":"\uc790\uc138\ub97c \ud655\uc778\ud558\uc138\uc694"},"funMessagesModal":{"goForSwim":"\ub9c8\ubc95\uc744 \ubd80\ub9ac\ub294 \ub3d9\uc548 \uc218\uc601\ud558\ub7ec \uac00\uc138\uc694","perfectTimeForCoffee":"\ucee4\ud53c \ud55c \uc794 \ud558\uae30 \ub531 \uc88b\uc740 \uc2dc\uac04\uc774\uc5d0\uc694","quickStretch":"\uac00\ubcbc\uc6b4 \uc2a4\ud2b8\ub808\uce6d\uc740 \uc5b4\ub5a0\uc138\uc694?","hydrationCheck":"\uc218\ubd84 \ubcf4\uc
2da9 \uc2dc\uac04! \ubb3c\uc744 \ub9c8\uc2dc\uc138\uc694","takeWalk":"\uc0b0\ucc45\ud558\uace0 \uc624\uc138\uc694, \uc800\ud76c\uac00 \ucc98\ub9ac\ud560\uac8c\uc694","callSomeone":"\uc18c\uc911\ud55c \uc0ac\ub78c\uc5d0\uac8c \uc804\ud654\ud558\uc138\uc694","petYourPet":"\ubc18\ub824\ub3d9\ubb3c\uc774 \uc788\ub2e4\uba74 \uc4f0\ub2e4\ub4ec\uc5b4 \uc8fc\uc138\uc694","touchGrass":"\uc9c4\uc9dc\ub85c \uc794\ub514\ubc2d\uc744 \ubc1f\uc544\ubcf4\uc138\uc694","jumpingJacks":"\uc810\ud551\uc7ad 10\ubc88 \ud574\ubcf4\uc138\uc694","victoryDance":"\uc2b9\ub9ac\uc758 \ucda4\uc744 \uc5f0\uc2b5\ud574 \ubcf4\uc138\uc694","deepBreaths":"\uc2ec\ud638\ud761... \uc798\ud558\uace0 \uacc4\uc138\uc694","timeToSnack":"\uac04\uc2dd\uc744 \uba39\uc73c\ub77c\ub294 \uc2e0\ud638\uc608\uc694"},"editClip":"\ud074\ub9bd \ud3b8\uc9d1","clipEditor":"\ud074\ub9bd \ud3b8\uc9d1\uae30","trimIn":"\uc2dc\uc791","trimOut":"\ub05d","previewTrim":"\uc790\ub974\uae30 \ubbf8\ub9ac\ubcf4\uae30","saveCaption":"\uc800\uc7a5","saveAndDownload":"\uc800\uc7a5 \ubc0f \ub2e4\uc6b4\ub85c\ub4dc","export":"\ub0b4\ubcf4\ub0b4\uae30","exportComplete":"\ub0b4\ubcf4\ub0b4\uae30 \uc644\ub8cc!","exportNotSupported":"\uc774 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c\ub294 \ub0b4\ubcf4\ub0b4\uae30\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","backToClips":"\ub4a4\ub85c","uploadLimitReached":"\uc5c5\ub85c\ub4dc \ud55c\ub3c4 \ub3c4\ub2ec","limitResets":"\ud55c\ub3c4\ub294 {{date}}\uc5d0 \ucd08\uae30\ud654\ub429\ub2c8\ub2e4","gotIt":"\ud655\uc778","failed":"\uc2e4\ud328","creditsRefunded":"\ud06c\ub808\ub527\uc774 \ud658\ubd88\ub418\uc5c8\uc2b5\ub2c8\ub2e4","tryAgainDifferentLink":"\ub2e4\uc2dc \uc2dc\ub3c4\ud558\uac70\ub098 \ub2e4\ub978 \ub9c1\ud06c\ub97c \uc0ac\uc6a9\ud558\uc138\uc694.","noSpeechInVideo":"\ubd99\uc5ec\ub123\uc740 \ub9c1\ud06c\uc5d0 \uc74c\uc131\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \ud06c\ub9ac\uc5d0\uc774\ud130\uac00 \ub9d0\ud558\ub294 \uc601\uc0c1\uc73c\ub85c \uc2dc\ub3c4\ud574 \ubcf4\uc138\uc694.","retry":"\uc7ac\uc2dc\ub3c4","cancelJobBtn":"\ucde8\uc18c","hookScore":"\ud6c5 \uc810\uc218","best":"\ucd5c\uace0","clipsSelected":"{{count}}\uac1c \uc120\ud0dd\ub428","switchToFileUpload":"\ud30c\uc77c \uc5c5\ub85c\ub4dc\ub85c \uc804\ud658","switchToURL":"URL\ub85c \uc804\ud658","selectContentTypeFirst":"\uba3c\uc800 \ucf58\ud150\uce20 \uc720\ud615\uc744 \uc120\ud0dd\ud558\uc138\uc694.","livestreamsNotSupported":"\ub77c\uc774\ube0c \uc2a4\ud2b8\ub9bc\uc740 \uc544\uc9c1 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4 \u2014 VOD \ub610\ub294 \ub179\ud654 \uc601\uc0c1\uc744 \uc0ac\uc6a9\ud558\uc138\uc694.","contentTypes":{"gaming":"\uac8c\uc784","podcastTalkingHead":"\ud31f\uce90\uc2a4\ud2b8 / \ud1a0\ud0b9 \ud5e4\ub4dc","irlVlog":"IRL / Vlog","music":"\uc74c\uc545","documentary":"\ub2e4\ud050\uba58\ud130\ub9ac"},"cancelThisJob":"\uc774 \uc791\uc5c5\uc744 \ucde8\uc18c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","deleteTheseAssets":"\uc774 \uc790\uc0b0\ub4e4\uc744 \uc0ad\uc81c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","willStopProcessingRemoveJob":"\ucc98\ub9ac\ub97c \uc911\uc9c0\ud558\uace0 \uc791\uc5c5\uc744 \uc81c\uac70\ud569\ub2c8\ub2e4.","keepGoing":"\uacc4\uc18d","noKeepThem":"\uc544\ub2c8\uc694, \uc720\uc9c0\ud569\ub2c8\ub2e4","yesCancelJob":"\uc608, \ucde8\uc18c\ud569\ub2c8\ub2e4","yesDeleteForever":"\uc608, \uc601\uad6c \uc0ad\uc81c\ud569\ub2c8\ub2e4","titleCaption":"\uc81c\ubaa9 \uc790\ub9c9","information":"\uc815\ubcf4","duration":"\uc7ac\uc0dd \uc2dc\uac04","platform":"\ud50c\ub7ab\ud3fc","creator":"\ud06c\ub9ac\uc5d0\uc774\ud130","rateThisClip":"\uc774 \ud074\ub9bd \ud3c9\uac00\ud558\uae30","type":"\uc720\ud615","format":"\ud615\uc2dd","clipsLabel":"\ud074\ub9bd","slowConnection":"\uc5f0\uacb0 \uc18d\ub3c4 \ub290\ub9bc","couldntLoad":"\ubd88\ub7ec\uc62c \uc218 \uc5c6\uc74c","tapToRetry":"\ud0ed\ud
2558\uc5ec \uc7ac\uc2dc\ub3c4","clipsDeleted_one":"{{count}}\uac1c\uc758 \ud074\ub9bd\uc774 \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","clipsDeleted_other":"{{count}}\uac1c\uc758 \ud074\ub9bd\uc774 \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4"}'),schedule:JSON.parse('{"shareClip":"\ud074\ub9bd \uacf5\uc720","loadingPlatforms":"\ud50c\ub7ab\ud3fc \ubd88\ub7ec\uc624\ub294 \uc911...","noConnectedPlatforms":"\uc5f0\uacb0\ub41c \ud50c\ub7ab\ud3fc\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","connectSocialsToSchedule":"\uac8c\uc2dc\ubb3c\uc744 \uc608\uc57d\ud558\ub824\uba74 \uc18c\uc15c \ubbf8\ub514\uc5b4 \uacc4\uc815\uc744 \uc5f0\uacb0\ud558\uc138\uc694.","connectYourAccounts":"\uacc4\uc815 \uc5f0\uacb0\ud558\uae30","postTo":"\uac8c\uc2dc \ub300\uc0c1:","deselectAll":"\uc804\uccb4 \ud574\uc81c","selectAll":"\uc804\uccb4 \uc120\ud0dd","caption":"\ucea1\uc158","writeCaptionPlaceholder":"\uac8c\uc2dc\ubb3c\uc758 \ucea1\uc158\uc744 \uc791\uc131\ud558\uc138\uc694...","scheduleAction":"\uc608\uc57d","saveAndSchedule":"\uc800\uc7a5 \ubc0f \uac8c\uc2dc \uc608\uc57d","postAction":"\uac8c\uc2dc","publishImmediately":"\uc989\uc2dc \uac8c\uc2dc","scheduling":"\uc608\uc57d \uc911...","publishing":"\uac8c\uc2dc \uc911...","viewPost":"\uac8c\uc2dc\ubb3c \ubcf4\uae30","postedSuccessfully":"\uac8c\uc2dc \uc644\ub8cc!","partiallyPosted":"\uc77c\ubd80\ub9cc \uac8c\uc2dc\ub428","failedToPost":"\uac8c\uc2dc \uc2e4\ud328","selectAtLeastOnePlatform":"\ud558\ub098 \uc774\uc0c1\uc758 \ud50c\ub7ab\ud3fc\uc744 \uc120\ud0dd\ud558\uc138\uc694","selectATime":"\uc2dc\uac04\uc744 \uc120\ud0dd\ud558\uc138\uc694","selectFutureTime":"\ubbf8\ub798 \uc2dc\uac04\uc744 \uc120\ud0dd\ud558\uc138\uc694","postScheduled":"\uac8c\uc2dc\uac00 \uc608\uc57d\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","failedToSchedule":"\uc608\uc57d\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToPublish":"\uac8c\uc2dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","postedSuccess":"\uc131\uacf5\uc801\uc73c\ub85c \uac8c\uc2dc\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","postedToSomePlatforms":"\uc77c\ubd80 \ud50c\ub7ab\ud3fc\uc5d0 \uac8c\uc2dc\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToPostError":"\uac8c\uc2dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","scheduledPost":"\uc608\uc57d\ub41c \uac8c\uc2dc\ubb3c","postingTo":"\uac8c\uc2dc \ub300\uc0c1","writeCaptionShort":"\ucea1\uc158\uc744 \uc791\uc131\ud558\uc138\uc694...","saveChanges":"\ubcc0\uacbd \uc0ac\ud56d \uc800\uc7a5","cancelScheduledPost":"\uc608\uc57d\ub41c \uac8c\uc2dc\ubb3c\uc744 \ucde8\uc18c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","clipWontBePosted":"\uc774 \ud074\ub9bd\uc740 \uc120\ud0dd\ud55c \ud50c\ub7ab\ud3fc\uc5d0 \uac8c\uc2dc\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","keepIt":"\uc720\uc9c0\ud558\uae30","cancelling":"\ucde8\uc18c \uc911...","yesCancelPost":"\ub124, \uac8c\uc2dc \ucde8\uc18c","changesSaved":"\ubcc0\uacbd \uc0ac\ud56d\uc774 \uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToSaveChanges":"\ubcc0\uacbd \uc0ac\ud56d \uc800\uc7a5\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","postCancelled":"\uac8c\uc2dc\uac00 \ucde8\uc18c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToCancelPost":"\uac8c\uc2dc \ucde8\uc18c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","todayAt":"\uc624\ub298","tomorrowAt":"\ub0b4\uc77c","upcomingClips":"\uc608\uc815\ub41c \ud074\ub9bd","noScheduledClipsThisMonth":"\uc774\ubc88 \ub2ec \uc608\uc57d\ub41c \ud074\ub9bd\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","scheduleClipsHint":"\ub80c\ub354\ub9c1\uc774 \uc644\ub8cc\ub41c \ud6c4 \ud074\ub9bd\uc744 \uc608\uc57d\ud558\uc138\uc694.","cancelScheduledPostConfirm":"\uc608\uc57d\ub41c \uac8c\uc2dc\ubb3c\uc744 \ucde8\uc18c\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?","cancelPostMessage":"\uac8c\uc2dc\ubb3c\uc774 \uc77c\uc815\uc5d0\uc11c \uc81c\uac70\ub429\ub2c8\ub2e4. \ub098\uc911\uc5d0 \ub2e4\uc2dc \uc608\uc57d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","cancelPost":"\uac8c\uc2dc \ucde8\uc18c","sun":"\uc77c","mon":"\uc6d4","tue":"\ud654","wed":"\uc218","thu":"\ubaa9","fri":"\uae08","sat":"\ud1a0","untitledClip":"\uc81c\ubaa9 \uc5c6\ub294 \ud074\ub9bd","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"\uc5f0\uacb0\ub41c \uacc4\uc815","linkSocialsToPost":"\uc18c\uc15c \uacc4\uc815\uc744 \uc5f0\uacb0\ud558\uc5ec \ud074\ub9bd\uc744 \uc9c1\uc811 \uac8c\uc2dc\ud558\uc138\uc694.","yourChannel":"\ub0b4 \ucc44\ub110","watermarkDescription":"\ud504\ub85c\ud544 \uc0ac\uc9c4\uc740 AI\uac00 \uc601\uc0c1\uc5d0\uc11c \ub2f9\uc2e0\uc744 \uc2dd\ubcc4\ud558\uc5ec \ub354 \ub098\uc740 \ud074\ub9bd\uc744 \ub9cc\ub4dc\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.","streamerName":"\uc2a4\ud2b8\ub9ac\uba38 \uc774\ub984","placeholderStreamerName":"\uc608: Kai Cenat","streamerNameHint":"\ud074\ub9bd\uc744 \ub9cc\ub4dc\ub294 \uc2a4\ud2b8\ub9ac\uba38\uc758 \uc774\ub984\uc785\ub2c8\ub2e4. AI\uac00 \ub354 \ub098\uc740 \ud6c4\ud06c\ub97c \uc791\uc131\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.","channelUsername":"\ucc44\ub110 \uc0ac\uc6a9\uc790\uba85","placeholderChannelUsername":"\uc2a4\ud2b8\ub9ac\ubc0d \uc0ac\uc6a9\uc790\uba85","platform":"\ud50c\ub7ab\ud3fc","selectPlatform":"\ud50c\ub7ab\ud3fc \uc120\ud0dd","tapToChangePhoto":"\uc0ac\uc9c4\uc744 \ubcc0\uacbd\ud558\ub824\uba74 \ud0ed\ud
2558\uc138\uc694","pleaseSelectImageFile":"\uc774\ubbf8\uc9c0 \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uc138\uc694","imageMustBeLess5MB":"\uc774\ubbf8\uc9c0\ub294 5MB \ubbf8\ub9cc\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4","profilePictureUpdated":"\ud504\ub85c\ud544 \uc0ac\uc9c4\uc774 \uc5c5\ub370\uc774\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","failedToUploadPicture":"\uc0ac\uc9c4 \uc5c5\ub85c\ub4dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","disconnectedFrom":"{{platform}} \uc5f0\uacb0\uc774 \ud574\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToDisconnect":"\uc5f0\uacb0 \ud574\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"\uad6c\ub3c5 \uc124\uc815","stripeConnectionStatus":"Stripe \uc5f0\uacb0 \uc0c1\ud0dc","stripeConnectedMessage":"Stripe \uacc4\uc815\uc774 \uc5f0\uacb0\ub418\uc5b4 \uacb0\uc81c\ub97c \ubc1b\uc744 \uc900\ube44\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4","manageStripeAccount":"Stripe \uacc4\uc815 \uad00\ub9ac","stripeConnectInstructions":"\uad6c\ub3c5 \uacb0\uc81c\ub97c \ubc1b\uc73c\ub824\uba74 Stripe \uacc4\uc815\uc744 \uc5f0\uacb0\ud558\uc138\uc694...","stripeSetupWarning":"\uc911\uc694: Stripe \uc124\uc815 \uacfc\uc815\uc744 \ub05d\uae4c\uc9c0 \uc644\ub8cc\ud574\uc57c \ud569\ub2c8\ub2e4...","stripeSupportMessage":"\ubb38\uc81c\uac00 \uc788\uc73c\uc2e0\uac00\uc694? [email protected]\uc73c\ub85c \uc9c0\uc6d0\ud300\uc5d0 \ubb38\uc758\ud558\uc138\uc694...","connectingToStripe":"Stripe\uc5d0 \uc5f0\uacb0 \uc911...","connectStripeAccount":"Stripe \uacc4\uc815 \uc5f0\uacb0","enableSubscriptions":"\uad6c\ub3c5 \ud65c\uc131\ud654","monthlySubscriptionPrice":"\uc6d4\uac04 \uad6c\ub3c5\ub8cc (USD)","subscriptionDescription":"\uad6c\ub3c5 \uc124\uba85","describeSubscriptionBenefits":"\uad6c\ub3c5\uc790\uac00 \uc774\uc6a9\ud560 \uc218 \uc788\ub294 \ud61c\ud0dd\uc744 \uc124\uba85\ud558\uc138\uc694...","saveSettings":"\uc124\uc815 \uc800\uc7a5","settingsSaved":"\uc124\uc815\uc774 \uc131\uacf5\uc801\uc73c\ub85c \uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","savingFailed":"\uc124\uc815 \uc800\uc7a5\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","stripeConnectionError":"Stripe \uc5f0\uacb0\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","stripeDashboardError":"Stripe \ub300\uc2dc\ubcf4\ub4dc\ub97c \uc5f4\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","stripeSetupError":"Stripe \uc124\uc815\uc744 \uc644\ub8cc\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud558\uc138\uc694.","xsubscribeAdmin":"XSubscribe \uad00\ub9ac\uc790","preview":"\ubbf8\ub9ac\ubcf4\uae30","fetchLinksError":"\uc0ac\uc6a9\uc790 \ub9c1\ud06c\ub97c \ubd88\ub7ec\uc624\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4","deleteLinkError":"\ub9c1\ud06c \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","orderUpdateSuccess":"\uc11c\ubc84\uc5d0\uc11c \uc815\ub82c \uac12\uc774 \uc5c5\ub370\uc774\ud2b8\ub418\uc5c8\uc2b5\ub2c8\ub2e4","orderUpdateError":"\uc11c\ubc84\uc5d0\uc11c \uc815\ub82c \uac12 \uc5c5\ub370\uc774\ud2b8\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","addLinkError":"\ub9c1\ud06c \ucd94\uac00\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","profileSection":"\ud504\ub85c\ud544","pickAnImage":"\uc774\ubbf8\uc9c0 \uc120\ud0dd","remove":"\uc81c\uac70","usernameInputPlaceholder":"X \ud578\ub4e4 (@\uc0ac\uc6a9\uc790\uba85)","bioInputPlaceholder":"\uc0ac\ub78c\ub4e4\uc774 \uc65c \uad6c\ub3c5\ud574\uc57c \ud560\uae4c\uc694?","getUnlimitedCustomization":"\ubb34\uc81c\ud55c \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5 \ubc1b\uae30","verifiedCheckmark":"\uc778\uc99d \ub9c8\ud06c","customBackgroundImages":"\ub9de\ucda4 \ubc30\uacbd \uc774\ubbf8\uc9c0","removeXSubscribeLogo":"XSubscribe \ub85c\uace0 \uc81c\uac70","dollarPerMonth":"\uc774\ud6c4 \uc6d4 $9","flatColour":"\ub2e8\uc0c9","image":"\uc774\ubbf8\uc9c0","pickAColor":"\uc0c9\uc0c1 \uc120\ud0dd","hideXSubscribeLogo":"XSubscribe \ub85c\uace0 \uc228\uae30\uae30","errorUpdatingProfileTitle":"\ud504\ub85c\ud544 \uc81c\ubaa9 \uc5c5\ub370\uc774\ud2b8 \uc624\ub958","errorUpdatingBio":"\ud504\ub85c\ud544 \uc18c\uac1c \uc5c5\ub370\uc774\ud2b8 \uc624\ub958","errorSavingBackgroun
2dColor":"\ubc30\uacbd\uc0c9 \uc800\uc7a5 \uc624\ub958","errorUpdatingEffects":"\ubc30\uacbd \ud6a8\uacfc \uc5c5\ub370\uc774\ud2b8 \uc624\ub958","errorUpdatingLogo":"\uc0ac\uc6a9\uc790 \ub85c\uace0 \uc5c5\ub370\uc774\ud2b8 \uc624\ub958","invalidUser":"\ud604\uc7ac \uc0ac\uc6a9\uc790\uac00 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","errorFetchingLogoStatus":"\ucd08\uae30 \ub85c\uace0 \uc0c1\ud0dc \ubd88\ub7ec\uc624\uae30 \uc624\ub958","errorFetchingUserData":"\uc0ac\uc6a9\uc790 \ub370\uc774\ud130 \ubd88\ub7ec\uc624\uae30 \uc624\ub958","errorFetchingProfilePic":"\ud504\ub85c\ud544 \uc0ac\uc9c4 \ubd88\ub7ec\uc624\uae30 \uc624\ub958","uploadFailed":"\uc5c5\ub85c\ub4dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","accountSettings":"\uacc4\uc815 \uc124\uc815","manageSubscription":"\uad6c\ub3c5 \uad00\ub9ac","manageSubscriptionDesc":"\uacb0\uc81c \uc218\ub2e8 \ubcc0\uacbd, \uccad\uad6c\uc11c \ud655\uc778 \ub610\ub294 \uad6c\ub3c5 \ucde8\uc18c","deleteAccount":"\uacc4\uc815 \uc0ad\uc81c","deleteAccountWarning":"\uc774 \uc791\uc5c5\uc740 \ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ubaa8\ub4e0 \ub370\uc774\ud130\uac00 \uc601\uad6c\uc801\uc73c\ub85c \uc0ad\uc81c\ub429\ub2c8\ub2e4.","typeDeleteToConfirm":"\ud655\uc778\ud558\ub824\uba74 DELETE\ub97c \uc785\ub825\ud558\uc138\uc694","accountDeleted":"\uacc4\uc815\uc774 \uc131\uacf5\uc801\uc73c\ub85c \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToDeleteAccount":"\uacc4\uc815 \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToOpenBilling":"\uacb0\uc81c \ud3ec\ud138\uc744 \uc5f4\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4","yourBrands":"\ub0b4 \ube0c\ub79c\ub4dc","addBrand":"\ube0c\ub79c\ub4dc \ucd94\uac00","brandName":"\ube0c\ub79c\ub4dc \uc774\ub984","brandNamePlaceholder":"\ube0c\ub79c\ub4dc \uc774\ub984\uc744 \uc785\ub825\ud558\uc138\uc694","createBrand":"\ube0c\ub79c\ub4dc \ub9cc\ub4e4\uae30","switchBrand":"\ube0c\ub79c\ub4dc \uc804\ud658","deleteBrand":"\ube0c\ub79c\ub4dc \uc0ad\uc81c","cannotDeleteLastBrand":"\uc720\uc77c\ud55c \ube0c\ub79c\ub4dc\ub294 \uc0ad\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","brandCreated":"\ube0c\ub79c\ub4dc\uac00 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","brandSwitched":"\ube0c\ub79c\ub4dc\uac00 \uc804\ud658\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","brandDeleted":"\ube0c\ub79c\ub4dc\uac00 \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","failedToCreateBrand":"\ube0c\ub79c\ub4dc \uc0dd\uc131\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToSwitchBrand":"\ube0c\ub79c\ub4dc \uc804\ud658\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToDeleteBrand":"\ube0c\ub79c\ub4dc \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","captionPresets":"\uc790\ub9c9 \uc2a4\ud0c0\uc77c","captionPresetsDesc":"\ud074\ub9bd \uc790\ub9c9\uc758 \uae30\ubcf8 \ubaa8\uc591\uc744 \uc124\uc815\ud569\ub2c8\ub2e4. \uc0c8 \ud074\ub9bd\uc5d0\ub294 \ud65c\uc131\ud654\ub41c \ud504\ub9ac\uc14b\uc774 \uc801\uc6a9\ub429\ub2c8\ub2e4.","presetName":"\ud504\ub9ac\uc14b \uc774\ub984","presetNamePlaceholder":"\uc608: \uad75\uc740 \ube68\uac04\uc0c9","addPreset":"\ud504\ub9ac\uc14b \ucd94\uac00","editPreset":"\ud3b8\uc9d1","deletePreset":"\uc0ad\uc81c","createPreset":"\ud504\ub9ac\uc14b \ub9cc\ub4e4\uae30","presetCreated":"\ud504\ub9ac\uc14b\uc774 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","presetActivated":"\uc790\ub9c9 \uc2a4\ud0c0\uc77c\uc774 \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4!","presetDeleted":"\ud504\ub9ac\uc14b\uc774 \uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4","cannotDeleteLastPreset":"\uc720\uc77c\ud55c \ud504\ub9ac\uc14b\uc740 \uc0ad\uc81c\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","failedToSwitchPreset":"\ud504\ub9ac\uc14b \uc804\ud658\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","failedToDeletePreset":"\ud504\ub9ac\uc14b \uc0ad\uc81c\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4","captionPreview":"\uc790\ub9c9 \ubbf8\ub9ac\ubcf4\uae30\uc785\ub2c8\ub2e4","captionColor":"\uc0c9\uc0c1","captionFont":"\uae00\uaf34","captionPosition":"\uc704\uce58","captionWidth":"\ub108\ube44","streamType":"\ucf58\ud150\uce20 \uc720\ud615","streamTypeHint":"\uc5b4\ub5a4 \uc885\ub958\uc758 \ucf58\ud150\uce20\ub97c \ub9cc\ub4dc\uc2dc\ub098\uc694? AI\uac00 \ub2f9\uc2e0\uc758 \uc2a4\ud0c0\uc77c\uc5d0 \ub9de\ub294 \ud074\ub9bd\uc744 \ub9cc\ub4dc\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.","streamTypeGaming":"\uac8c\uc784","streamTypeGamingDesc":"\ud574\uc124\uc774 \ud3ec\ud568\ub41c \uac8c\uc784 \ud50c\ub808\uc774, \ud074\ub7ec\uce58 \uc7a5\uba74, \ub9ac\uc561\uc158","streamTypeTalkingHead":"\ud1a0\ud06c","streamTypeTalkingHeadDesc":"\ud31f\uce90\uc2a4\ud2b8, \uc778\ud130\ubdf0, \ub9ac\uc561\uc158, \ud574\uc124","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"\uc2e4\uc0dd\ud65c \uc2a4\ud2b8\ub9ac\ubc0d, \uc774\ubca4\ud2b8, \uc57c\uc678 \ucf58\ud150\uce20","streamTypeMusic":"\uc74c\uc545","streamTypeMusicDesc":"\ub77c\uc774\ube0c \uacf5\uc5f0, DJ \uc138\ud2b8, \uc74c\uc545 \uc81c\uc791","streamTypeDocumentary":"\ub2e4\ud050\uba58\ud130\ub9ac","streamTypeDocumentaryDesc":"\ub2e4\ud050\uba58\ud130\ub9ac, \ubbf8\ub2c8 \ub2e4\ud050, \uc601\ud654","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Clipbait \uc7a0\uae08 \ud574\uc81c","getFullAccess":"AI \uae30\ubc18 \ud074\ub9bd \uc0dd\uc131\uc758 \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\uc138\uc694","monthly":"\uc6d4\uac04","annual"
2:"\uc5f0\uac04","save15Percent":"15% \uc808\uc57d","perMonth":"/\uc6d4","perMonthShort":"/\uc6d4","billedAsPerYear":"\uc5f0 ${{amount}}\ub85c \uacb0\uc81c","upload30Videos":"\uc6d4 30\uac1c \uc601\uc0c1 \uc5c5\ub85c\ub4dc","upTo2Hours":"\ucd5c\ub300 2\uc2dc\uac04 \uae38\uc774\uc758 \uc601\uc0c1","generate300Clips":"\uc6d4 300\uac1c \ud074\ub9bd \uc0dd\uc131","downloadAndSchedule":"\ud074\ub9bd \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc608\uc57d","upTo5Accounts":"\ucd5c\ub300 5\uac1c \ube0c\ub79c\ub4dc \uacc4\uc815","getStarted":"\uc2dc\uc791\ud558\uae30","redirecting":"\ub9ac\ub514\ub809\uc158 \uc911...","exclusiveOffer":"\ub3c5\uc810 \ud61c\ud0dd","russellBrandsPick":"Russell Brand\uc758 \ucd94\ucc9c","get10PercentOff":"Russell\uc758 \uc2dc\uccad\uc790\ub97c \uc704\ud55c \ub3c5\uc810 \ud61c\ud0dd \u2014 Clipbait Pro 10% \ud560\uc778","discountApplied":"10% \ud560\uc778\uc774 \uc790\ub3d9 \uc801\uc6a9\ub429\ub2c8\ub2e4","claim10Off":"10% \ud560\uc778 \ubc1b\uae30","noThanksFullPrice":"\uad1c\ucc2e\uc2b5\ub2c8\ub2e4, \uc815\uac00\ub85c \uacb0\uc81c\ud558\uaca0\uc2b5\ub2c8\ub2e4","generateWithoutLimits":"\uc81c\ud55c \uc5c6\uc774 \uc0dd\uc131","upgradePlan":"\ud50c\ub79c \uc5c5\uadf8\ub808\uc774\ub4dc","buyCredits":"\ud06c\ub808\ub527 \uad6c\ub9e4","creditsNeverExpireNote":"\ud06c\ub808\ub527\uc740 \ub9cc\ub8cc\ub418\uc9c0 \uc54a\uc73c\uba70 \uc6d4\uac04 \ud50c\ub79c \ud55c\ub3c4 \uc18c\uc9c4 \ud6c4 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.","mostPopular":"\uac00\uc7a5 \uc778\uae30","bestValue":"\ucd5c\uace0 \uac00\uc131\ube44","generationsPerMonth":"\uc6d4 {{count}}\ud68c \uc0dd\uc131","twentyPercentOff":"20% \ud560\uc778","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"16% \uc808\uc57d","save26Percent":"26% \uc808\uc57d","perMonthBilledAnnually":"\uc6d4, \uc5f0\uac04 \uacb0\uc81c"}'),pages:JSON.parse('{"foundersStoryTitle":"\ucc3d\ub9bd\uc790\uc758 \uc774\uc57c\uae30","foundersStoryContent":"2021\ub144, Spirit\uc740 \uc8fc\ub958 \ud50c\ub7ab\ud3fc\uc5d0\uc11c\uc758 \uac80\uc5f4\uc758 \uc5b5\uc555\uc744 \uacbd\ud5d8\ud588\uc2b5\ub2c8\ub2e4. \uc790\uc720\ub85c\uc6b4 \ud45c\ud604\uc774 \uc0b4\uc544\uc788\ub294 \uacf5\uac04\uc744 \ucc3e\uae30\ub85c \uacb0\uc2ec\ud55c \uadf8\ub294 \uc5f4\ub9b0 \ub300\ud654\uc640 \ucc3d\uc791\uc758 \uc790\uc720\uc5d0 \ub300\ud55c \uc790\uc2e0\uc758 \uc2e0\ub150\uacfc \uacf5\uac10\ud558\ub294 \ud50c\ub7ab\ud3fc\uc744 \ubc1c\uacac\ud588\uc2b5\ub2c8\ub2e4. \uc774 \uacb0\uc815\uc801\uc778 \uc21c\uac04\uc774 XSubscribe\uc758 \uc2dc\uc791\uc774 \ub418\uc5c8\uc2b5\ub2c8\ub2e4 \u2014 \ud06c\ub9ac\uc5d0\uc774\ud130\uc640 \ucee4\ubba4\ub2c8\ud2f0\uac00 \uac80\uc5f4\uc758 \ub450\ub824\uc6c0 \uc5c6\uc774 \uc9c4\u
2c815\uc131 \uc788\uac8c \uc18c\ud1b5\ud560 \uc218 \uc788\ub294 \ud50c\ub7ab\ud3fc\uc785\ub2c8\ub2e4. Spirit\uc740 \ud06c\ub9ac\uc5d0\uc774\ud130\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uaca0\ub2e4\ub294 \ub3c5\ud2b9\ud55c \ube44\uc804\uacfc \uc5f4\uc815\uc73c\ub85c \ucf58\ud150\uce20 \uc218\uc775\ud654\uc758 \uc0c8 \uc2dc\ub300\ub97c \uc704\ud55c \uae30\ubc18\uc744 \ub9c8\ub828\ud588\uc2b5\ub2c8\ub2e4. XSubscribe\ub294 \uacc4\uc18d \ubc1c\uc804\ud558\uba74\uc11c\ub3c4 \ubaa8\ub4e0 \ubaa9\uc18c\ub9ac\uac00 \ub4e4\ub824\uc57c \ud55c\ub2e4\ub294 \ubbff\uc74c\uc5d0 \ubfcc\ub9ac\ub97c \ub450\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubca0\ud14c\ub791 \ud06c\ub9ac\uc5d0\uc774\ud130\uc774\ub4e0 \uc774\uc81c \ub9c9 \uc2dc\uc791\ud558\ub294 \ubd84\uc774\ub4e0, XSubscribe\ub294 \uc88b\uc544\ud558\ub294 \uc77c\ub85c \uc9c0\uc18d \uac00\ub2a5\ud55c \uacbd\ub825\uc744 \uc313\uc744 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\ub4dc\ub9bd\ub2c8\ub2e4.","termsTitle":"\uc774\uc6a9\uc57d\uad00","lastUpdatedTerms":"\ucd5c\uc885 \uc5c5\ub370\uc774\ud2b8: 2024\ub144 1\uc6d4 7\uc77c \uc77c\uc694\uc77c","termsSection1Title":"1. XSubscribe\uc5d0 \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4:","termsSection1Content":"\uc774 \uc774\uc6a9\uc57d\uad00(\\"\uc57d\uad00\\")\uc740 \uc6f9\uc0ac\uc774\ud2b8, API, \ubaa8\ubc14\uc77c \uc571 \ubc0f \ubaa8\ub4e0 \uad00\ub828 \uc11c\ube44\uc2a4\ub97c \ud3ec\ud568\ud55c XSubscribe \uc11c\ube44\uc2a4\uc758 \uc774\uc6a9\uc744 \uaddc\uc815\ud569\ub2c8\ub2e4. \ud50c\ub7ab\ud3fc\uc744 \uc774\uc6a9\ud568\uc73c\ub85c\uc368 \uc774 \uc57d\uad00\uc744 \ub530\ub974\ub294 \ub370 \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.","termsSection2Title":"2. \uc57d\uad00 \ubcc0\uacbd:","termsSection2Content":"XSubscribe\ub294 \uc218\uc2dc\ub85c \uc774 \uc57d\uad00\uc744 \uc5c5\ub370\uc774\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc8fc\uc694 \ubcc0\uacbd \uc0ac\ud56d\uc774 \uc788\uc744 \uacbd\uc6b0 \uc54c\ub824\ub4dc\ub9ac\uba70, \ubcc0\uacbd \ud6c4\uc5d0\ub3c4 \uacc4\uc18d \ud50c\ub7ab\ud3fc\uc744 \uc774\uc6a9\ud558\uc2dc\uba74 \uc0c8\ub85c\uc6b4 \uc57d\uad00\uc5d0 \ub3d9\uc758\ud558\ub294 \uac83\uc73c\ub85c \uac04\uc8fc\ub429\ub2c8\ub2e4.","termsSection3Title":"3. \uadc0\ud558\uc758 \uacc4\uc815:","termsSection3Content":"XSubscribe\ub97c \uc774\uc6a9\ud558\ub824\uba74 18\uc138 \uc774\uc0c1\uc774\uac70\ub098 \ubd80\ubaa8/\ubcf4\ud638\uc790\uc758 \ud5c8\uac00\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uacc4\uc815 \uc815\ubcf4\ub97c \ucd5c\uc2e0 \uc0c1\ud0dc\ub85c \uc720\uc9c0\ud558\uace0 \ube44\ubc00\ubc88\ud638\ub97c \uc548\uc804\ud558\uac8c \uad00\ub9ac\ud558\uc138\uc694. \uacc4\uc815\uc5d0\uc11c \ubc1c\uc0dd\ud558\ub294 \ubaa8\ub4e0 \uc77c\uc5d0 \ub300\ud55c \ucc45\uc784\uc740 \ubcf8\uc778\uc5d0\uac8c \uc788\uc2b5\ub2c8\ub2e4.","termsSection4Title":"4. \uc0ac\uc6a9\uc790\uba85:","termsSection4Content":"\uc0ac\uc6a9\uc790\uba85\uc740 \ud0c0\uc778\uc758 \uad8c\ub9ac\ub97c \uc874\uc911\ud574\uc57c \ud569\ub2c8\ub2e4. XSubscribe\ub294 \ud544\uc694 \uc2dc \uc0ac\uc6a9\uc790\uba85\uc744 \ud68c\uc218\ud558\uac70\ub098 \ubcc0\uacbd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","termsSection5Title":"5. \uc694\uae08\uc81c \uad00\ub9ac:","termsSection5Content":"XSubscribe\ub294 \ubb34\ub8cc \ubc0f \uc720\ub8cc \uc694\uae08\uc81c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc720\ub8cc \uc694\uae08\uc81c\ub294 \uc720\ud6a8\ud55c \uacb0\uc81c \uc218\ub2e8\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \uc694\uae08\uc81c \uac04 \uc804\ud658\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.","termsSection6Title":"6. \uadc0\ud558\uc758 \ucf58\ud150\uce20:","termsSection6Content":"\uadc0\ud558\uc758 \ucf58\ud150\uce20\uc5d0 \ub300\ud55c \ucc45\uc784\uc740 \ubcf8\uc778\uc5d0\uac8c \uc788\uc2b5\ub2c8\ub2e4. \uac00\uc774\ub4dc\ub77c\uc778\uacfc \ubc95\ub960\uc744 \uc900\uc218\ud574\uc57c \ud569\ub2c8\ub2e4. XSubscribe\ub294 \uc774 \uae30\uc900\uc744 \uc704\ubc18\ud558\ub294 \ucf58\ud150\uce20\ub97c \uc0ad\uc81c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","termsSection7Title":"7. \uadc0\ud558\uc758 \ucf58\ud150\uce20\uc5d0 \ub300\ud55c \ub2f9\uc0ac\uc758 \uad8c\ud55c:","termsSection7Content":"XSubscribe\ub294 \ud50c\ub7ab\ud3fc \uc6b4\uc601\uc758 \uc77c\ud658\uc73c\ub85c \uadc0\ud558\uc758 \ucf58\ud150\uce20\ub97c \uc0ac\uc6a9, \ubc30\ud3ec \ubc0f \ud45c\uc2dc\ud560 \uc218 \uc788\ub294 \ub77c\uc774\uc120\uc2a4\ub97c \uac16\uc2b5\ub2c8\ub2e4. \uac1c\uc778\uc815\ubcf4 \uc124\uc815\uc744 \ud1b5\ud574 \ucf58\ud150\uce20\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","termsSection8Title":"8. \uacc4\uc815 \uc815\uc9c0 \ub610\ub294 \ud574\uc9c0:","termsSection8Content":"XSubscribe\ub294 \uaddc\uce59 \uc704\ubc18 \uc2dc \uacc4\uc815\uc744 \uc815\uc9c0\ud558\uac70\ub098 \ud574\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8\uc778\ub3c4 \uacc4\uc815\uc744 \ud574\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","termsSection9Title":"9. \ubc29\ubb38\uc790 \ubc0f \uace0\uac1d\uc5d0 \ub300\ud55c \ucc45\uc784:","termsSection9Content":"\uadc0\ud558\uc758 \ud504\ub85c\ud544\uc744 \ubc29\ubb38\ud558\uac70\ub098 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \uc0ac\ub78c\ub4e4\uc758 \uacbd\ud5d8\uc5d0 \ub300\ud55c \ucc45\uc784\uc740 \ubcf8\uc778\uc5d0\uac8c \uc788\uc2b5\ub2c8\ub2e4.","termsSection10Title":"10. \ud53c\ub4dc\ubc31:","termsSection10Content":"\ud53c\ub4dc\ubc31\uc744 \uc81c\uacf5\ud558\uc2dc\uba74 XSubscribe\ub294 \uc774\ub97c \uc790\uc720\ub86d\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud53c\ub4dc\ubc31 \uc81c\uacf5\uc740 \uc758\ubb34\uac00 \uc544\ub2d9\ub2c8\ub2e4.","termsSection11Title":"11. \ub2f9\uc0ac\uc758 \ud50c\ub7ab\ud3fc:","termsSection11Content":"\ucf58\ud150\uce20 \ube44\uc988\ub2c8\uc2a4\ub97c \uc704\ud574 \ud50c\ub7ab\ud3fc\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uc81c\ud55c\uc801 \uad8c\ub9ac\ub97c \ubd80\uc5ec\ubc1b\uc2b5\ub2c8\ub2e4. \uc624\uc6a9\ud558\uac70\ub098 \ud50c\ub7ab\ud3fc\uc5d0 \ud574\ub97c \ub07c\uce58\uc9c0 \ub9c8\uc138\uc694.","termsSection12Title":"12. \uc218\uc218\ub8cc \ubc0f \uacb0\uc81c:","termsSection12Content":"\uad6c\ub3c5 \uc218\uc218\ub8cc, \uac70\ub798 \uc218\uc218\ub8cc \ubc0f \uacb0\uc81c \uc870\uac74\uc740 \uc218\uc218\ub8cc \uc548\ub0b4\uc5d0 \uc790\uc138\ud788 \uc124\uba85\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.","termsSection13Title":"13. \uac1c\uc778\uc815\ubcf4:","termsSection13Content":"XSubscribe\uc758 \uac1c\uc778\uc815\ubcf4 \ucc98\ub9ac\ubc29\uce68\uc5d0\uc11c \uc815\ubcf4 \ucc98\ub9ac \ubc29\ubc95\uc744 \uc548\ub0b4\ud569\ub2c8\ub2e4.","termsSection14Title":"14. \uae30\ubc00 \uc720\uc9c0:","termsSection14Content":"XSubscribe\uac00 \uacf5\uc720\ud558\ub294 \ube44\uacf5\uac1c \uc815\ubcf4\ub294 \uae30\ubc00\ub85c \uc720\uc9c0\ud558\uc138\uc694.","termsSection15Title":"15. \ucc45\uc784:","termsSection15Content":"\ud50c\ub7ab\ud3fc \uc0ac\uc6a9\uc5d0 \ub300\ud55c \ucc45\uc784\uc740 \ubcf8\uc778\uc5d0\uac8c \uc788\uc2b5\ub2c8\ub2e4. XSubscribe\uc758 \ucc45\uc784\uc740 \uc81c\ud55c\ub429\ub2c8\ub2e4.","termsSection16Title":"16. \uba74\ucc45 \uc870\ud56d:","termsSection16Content":"\ud50c\ub7ab\ud3fc\uc740 \ubcf4\uc99d \uc5c6\uc774 \\"\uc788\ub294 \uadf8\ub300\ub85c\\" \uc81c\uacf5\ub429\ub2c8\ub2e4.","termsSection17Title":"17. \uc81c3\uc790 \uc11c\ube44\uc2a4:","termsSection17Content":"XSubscribe\ub294 \uc81c3\uc790 \uc11c\ube44\uc2a4\uc640 \uc5f0\ub3d9\ub429\ub2c8\ub2e4. \ud574\ub2f9 \uc11c\ube44\uc2a4\uc758 \uc57d\uad00\uacfc \uc815\ucc45\uc774 \uc801\uc6a9\ub429\ub2c8\ub2e4.","termsSection18Title":"18. \uc571 \uc57d\uad00:","termsSection18Content":"XSubscribe \ubaa8\ubc14\uc77c \uc571 \uc774\uc6a9 \uc2dc \ud2b9\ubcc4 \uc57d\uad00\uc774 \uc801\uc6a9\ub429\ub2c8\ub2e4.","termsSection19Title":"19. \uc624\ud508 \uc18c\uc2a4:","termsSection19Content":"\uc571\uc5d0\ub294 \uc790\uccb4 \ub77c\uc774\uc120\uc2a4\uac00 \uc788\ub294 \uc624\ud508 \uc18c\uc2a4 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uac00 \ud3ec\ud568\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.","termsSection20Title":"20. \uae30\ud0c0 \uc0ac\ud56d:","termsSection20Content":"\uadc0\ud558\uc758 \uc704\uce58\uc5d0 \ub530\ub77c \ud2b9\uc815 \ubc95\ub960\uc774 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uc57d\uad00\uc740 \uadc0\ud558\uc640 XSubscribe \uac04\uc758 \uc804\uccb4 \ud569\uc758\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4.","furtherInformation":"\ucd94\uac00 \uc815\ubcf4\ub294 \uc5b4\ub514\uc11c \uc5bb\uc744 \uc218 \uc788\ub098\uc694?","termsContactInstructions":"\uc774\uc6a9\uc57d\uad00\uc5d0 \ub300\ud55c \uc9c8\ubb38\uc774 \uc788\uc73c\uc2dc\uba74 \uc5f0\ub77d\ud574 \uc8fc\uc138\uc694:","cookieNoticeTitle":"\ucfe0\ud0a4 \uace0\uc9c0","lastUpdatedCookies":"\ucd5c\uc885 \uc5c5\ub370\uc774\ud2b8: 2023\ub144 1\uc6d4 7\uc77c \uc77c\uc694\uc77c","cookieIntroduction":"\uc774 \ucfe0\ud0a4 \uace0\uc9c0\ub294 XSubscribe LLC\uac00 \ucfe0\ud0a4 \ubc0f \uc720\uc0ac \uae30\uc220\uc744 \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","whatAreCookies":"\ucfe0\ud0a4\ub780 \ubb34\uc5c7\uc778\uac00\uc694?","cookieDefinition":"\ucfe0\ud0a4\ub294 \uc6f9\uc0ac\uc774\ud2b8\ub97c \ubc29\ubb38\ud560 \ub54c \uae30\uae30\uc5d0 \uc800\uc7a5\ub418\ub294 \uc791\uc740 \ub370\uc774\ud130 \ud30c\uc77c\uc785\ub2c8\ub2e4.","thirdPartyCookies":"XSubscribe\uac00 \uc544\ub2cc \ub2e4\ub978 \ub2f9\uc0ac\uc790\uac00 \uc124\uc815\ud55c \ucfe0\ud0a4\ub97c \uc81c3\uc790 \ucfe0\ud0a4\ub77c\uace0 \ud569\ub2c8\ub2e4.","whyUseCo
2okies":"\uc65c \ucfe0\ud0a4\ub97c \uc0ac\uc6a9\ud558\ub098\uc694?","cookieUsage":"\uc800\ud76c\ub294 \uc5ec\ub7ec \ubaa9\uc801\uc73c\ub85c \uc790\uc0ac \ubc0f \uc81c3\uc790 \ucfe0\ud0a4\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.","cookieContactInstructions":"\ucfe0\ud0a4 \uc0ac\uc6a9\uc5d0 \ub300\ud55c \uc9c8\ubb38\uc774 \uc788\uc73c\uc2dc\uba74 \uc5f0\ub77d\ud574 \uc8fc\uc138\uc694:","contactSpiritTitle":"Spirit\uc5d0\uac8c \uc5f0\ub77d\ud558\uae30","contactInstructions":"\uc544\ub798\uc5d0 \ub098\uc5f4\ub41c \uc5ec\ub7ec \ubc29\ubc95\uc73c\ub85c \uc5f0\ub77d\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4:","searchTitle":"\uac80\uc0c9","searchPlaceholder":"\uc2a4\ud2b8\ub9ac\uba38 \uac80\uc0c9...","searchResults":"\uac80\uc0c9 \uacb0\uacfc","suggestedStreamers":"\ucd94\ucc9c \uc2a4\ud2b8\ub9ac\uba38","profileTitle":"\ud504\ub85c\ud544","onlyJpgPngAllowed":"JPG/PNG\ub9cc \ud5c8\uc6a9\ub429\ub2c8\ub2e4","maxFileSize2MB":"\ucd5c\ub300 \ud30c\uc77c \ud06c\uae30\ub294 2MB\uc785\ub2c8\ub2e4","selectAvatar":"\uc544\ubc14\ud0c0 \uc120\ud0dd","updating":"\uc5c5\ub370\uc774\ud2b8 \uc911...","demoSubscriptionAlert":"\ub370\ubaa8\uc785\ub2c8\ub2e4. \uc774 \ud06c\ub9ac\uc5d0\uc774\ud130\ub97c \uad6c\ub3c5\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.","subscribe":"\uad6c\ub3c5\ud558\uae30","perMonth":"/\uc6d4","subscribed":"\u2713 \uad6c\ub3c5 \uc911","successfullySubscribedTo":"\uc131\uacf5\uc801\uc73c\ub85c \uad6c\ub3c5\ud588\uc2b5\ub2c8\ub2e4:","weLockedIn":"\uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.","createYourXSubscribe":"XSubscribe \ub9cc\ub4e4\uae30","pageNotFoundHeading":"\ucc3e\uc73c\uc2dc\ub294 \ud398\uc774\uc9c0\uac00 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","pageNotFoundMessage":"\uc774 \uc0ac\uc6a9\uc790\uba85\uc744 \uc0ac\uc6a9\ud558\uace0 \uc2f6\uc73c\uc2e0\uac00\uc694?","createXSubscribeNow":"\uc9c0\uae08 XSubscribe\ub97c \ub9cc\ub4dc\uc138\uc694.","planStarter":"\uc2a4\ud0c0\ud130","planPro":"\ud504\ub85c","planPremium":"\ud504\ub9ac\ubbf8\uc5c4","superchatsHeader":"SuperChat -","loadingSuperChats":"SuperChat \ubd88\ub7ec\uc624\ub294 \uc911...","recentSuperchats":"\ucd5c\uadfc SuperChat \uba54\uc2dc\uc9c0 \ubc0f \ud301","noSuperchatsPart1":"\uc544\uc9c1 SuperChat\uc774 \uc5c6\uc2b5\ub2c8\ub2e4:","noSuperchatsPart2":"\uccab \ubc88\uc9f8 SuperChat\uc744 \ubcf4\ub0b4\ubcf4\uc138\uc694!","loadingSuperChatsError":"SuperChat\uc744 \ubd88\ub7ec\uc624\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4","addComment":"\ub313\uae00 \ucd94\uac00...","signInToComment":"\ub313\uae00\uc744 \uc791\uc131\ud558\ub824\uba74 \ub85c\uadf8\uc778\ud558\uc138\uc694","send":"\ubcf4\ub0b4\uae30","signIn":"\ub85c\uadf8\uc778","beTheFirstToComment":"\uccab \ubc88\uc9f8 \ub313\uae00\uc744 \ub0a8\uaca8\ubcf4\uc138\uc694.","writeReply":"\ub2f5\uae00\uc744 \uc791\uc131\ud558\uc138\uc694...","reply":"\ub2f5\uae00","unlike":"\uc88b\uc544\uc694 \ucde8\uc18c","like":"\uc88b\uc544\uc694","comments":"\ub313\uae00","shareThisStream":"\uc774 \uc2a4\ud2b8\ub9bc \uacf5\uc720\ud558\uae30","goTo":"\uc774\ub3d9","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"\uba54\uc2dc\uc9c0","emailShare":"\uc774\uba54\uc77c","copyLink":"\ub9c1\ud06c \ubcf5\uc0ac","more":"\ub354 \ubcf4\uae30","deleting":"\uc0ad\uc81c \uc911\u2026","anon":"\uc775\uba85","noCommentsYet":"\uc544\uc9c1 \ub313\uae00\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","sendSuperChat":"SuperChat \ubcf4\ub0b4\uae30","amountDollar":"\uae08\uc561 ($)","messageMaxChars":"\uba54\uc2dc\uc9c0 (\ucd5c\ub300 200\uc790)","typeSuperChatMessage":"SuperChat \uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694...","processingPayment":"\ucc98\ub9ac \uc911...","sendAmount":"${{amount}} SuperChat \ubcf4\ub0b4\uae30","pleaseLogInToSuperChat":"SuperChat\uc744 \ubcf4\ub0b4\ub824\uba74 \ub85c\uadf8\uc778\ud558\uc138\uc694","pleaseEnterMessage":"\uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694","amountMustBeAtLeast1":"\uae08\uc561\uc740 \ucd5c\uc18c $1 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4","failedToCreateCheckout":"\uacb0\uc81c \uc138\uc158\uc744 \uc0dd\uc131\ud558\uc9c0 \ubabb\ud588\uc2b5\ub2c8\ub2e4","highlightedFor":"\ud558\uc774\ub77c\uc774\ud2b8 \ub300\uc0c1:"}'),notifications:JSON.parse('{"notifications":"\uc54c\ub9bc","viaEmail":"\uc774\uba54\uc77c\ub85c","receiveNotificationThroughEmail":"\uc774\uba54\uc77c\ub85c \uc54c\ub9bc \ubc1b\uae30","all":"\uc804\uccb4","unread":"\uc77d\uc9c0 \uc54a\uc74c","noUnreadNotifications":"\uc77d\uc9c0 \uc54a\uc740 \uc54c\ub9bc\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","noNotificationsYet":"\uc544\uc9c1 \uc54c\ub9bc\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.","couldntLoadNotifications":"\uc11c\ubc84\uc5d0\uc11c \uc54c\ub9bc\uc744 \ubd88\ub7ec\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4","someone":"\ub204\uad70\uac00","isLiveNow":"\uc9c0\uae08 \ub77c\uc774\ube0c \uc911\uc785\ub2c8\ub2e4","postedReplay":"\ub2e4\uc2dc\ubcf4\uae30\ub97c \uc62c\ub838\uc2b5\ub2c8\ub2e4","repliedToComment":"\ub0b4 \ub313\uae00\uc5d0 \ub2f5\uae00\uc744 \ub0a8\uacbc\uc2b5\ub2c8\ub2e4","likedYourComment":"\ub0b4 \ub313\uae00\uc744 \uc88b\uc544\ud569\ub2c8\ub2e4","activity":"\ud65c\ub3d9","secondsAgo":"{{count}}\ucd08","minutesAgo":"{{count}}\ubd84","hoursAgo":"{{count}}\uc2dc\uac04","daysAgo":"{{count}}\uc77c"}')},de:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Anmelden","logout":"Abmelden","signUp":"Registrieren","signUpFree":"Kostenlos registrieren","profile":"Profil","creatorDashboard":"Creator-Dashboard","notifications":"Benachrichtigungen","pricing":"Preise","admin":"Admin","
2save":"Speichern","saving":"Wird gespeichert...","cancel":"Abbrechen","delete":"L\xf6schen","continue":"Weiter","skip":"\xdcberspringen","skipForNow":"Vorerst \xfcberspringen","done":"Fertig","loading":"Wird geladen...","edit":"Bearbeiten","connect":"Verbinden","disconnect":"Trennen","comingSoon":"Demn\xe4chst verf\xfcgbar","connected":"Verbunden","back":"Zur\xfcck","upgrade":"Upgrade","options":"Optionen","confirm":"Best\xe4tigen","areYouSure":"Sind Sie sicher?","appearance":"Erscheinungsbild","subs":"Abos","myPage":"Meine Seite","clipsTab":"CLIPS","calendarTab":"KALENDER","profileTab":"PROFIL","company":"Unternehmen","about":"\xdcber uns","press":"Presse","contact":"Kontakt","followUs":"Folge uns","termsAndConditions":"Allgemeine Gesch\xe4ftsbedingungen","cookiePolicy":"Cookie-Richtlinie","connectedTo":"Verbunden mit {{platform}}!","planActivated":"Plan aktiviert! Sie haben jetzt vollen Zugriff.","saved":"Gespeichert!","failedToSave":"Speichern fehlgeschlagen","deleting":"Wird gel\xf6scht...","logOut":"Abmelden","download":"Herunterladen","freePlan":"Kostenloser Plan","planLabel":"{{plan}}-Plan","outOfCredits":"\u26a1 Keine Credits mehr","creditsRemaining_one":"\u26a1 {{count}} Credit verbleibend","creditsRemaining_other":"\u26a1 {{count}} Credits verbleibend","topUpCredits":"Credits aufladen","buy":"Kaufen","manageAccount":"Konto verwalten","signOut":"Abmelden"}'),auth:JSON.parse('{"welcomeBack":"Willkommen zur\xfcck","signInToContinue":"Melde dich an, um mit Clipbait fortzufahren","continueWithGoogle":"Weiter mit Google","orContinueWithEmail":"oder weiter mit E-Mail","enterYourEmail":"Gib deine E-Mail-Adresse ein","checkYourEmail":"\xdcberpr\xfcfe deine E-Mail","weSentCodeTo":"Wir haben einen Code gesendet an","pleaseEnter6DigitCode":"Bitte gib den 6-stelligen Code ein","verifyAndContinue":"Best\xe4tigen & Weiter","resendCodeIn":"Code erneut senden in {{countdown}}s","resendCode":"Code erneut senden","byContinuingYouAgree":"Durch Fortfahren stimmst du den folgenden Bedingungen von Clipbait zu:","termsOfService":"Nutzungsbedingungen","privacyPolicy":"Datenschutzrichtlinie","invalidCode":"Ung\xfcltiger Code. Versuche es erneut.","invalidEmail":"Bitte gib eine g\xfcltige E-Mail-Adresse ein","failedToSendCode":"Code konnte nicht gesendet werden. Versuche es erneut.","signingYouIn":"Anmeldung l\xe4uft...","emailOrUsername":"E-Mail oder Benutzername","password":"Passwort","forgotPassword":"Passwort vergessen?","logIn":"Anmelden","incorrectCredentials":"Benutzername/E-Mail oder Passwort falsch","emailNotVerified":"E-Mail nicht verifiziert. \xdcberpr\xfcfe deine E-Mail.","email":"E-Mail","username":"Benutzername","birthdayLabel":"Geburtstag (Monat / Tag / Jahr)","monthPlaceholder":"MM","dayPlaceholder":"TT","yearPlaceholder":"JJJJ","usernameTooShort":"Benutzername muss mindestens {{min}} Zeichen lang sein.","usernameTooLong":"Benutzername darf h\xf6chstens {{max}} Zeichen lang sein.","usernameInvalidFormat":"Nur Buchstaben, Zahlen und Unterstriche sind erlaubt. Keine Leerzeichen.","birthdayRequired":"Bitte gib dein vollst\xe4ndiges Geburtsdatum ein.","invalidEmailFormat":"Bitte gib eine g\xfcltige E-Mail-Adresse ein.","passwordRequired":"Passwort ist erforderlich.","passwordTooShort":"Passwort muss mindestens 3 Zeichen lang sein.","emailAvailable":"E-Mail sieht gut aus.","usernameAvailable":"Benutzername ist verf\xfcgbar.","usernameTaken":"Dieser Benutzername ist bereits vergeben.","emailTaken":"Ein Konto mit dieser E-Mail existiert bereits.","passwordHint":"Mindestens 3 Zeichen.","fixErrorsToContinue":"Behebe die Fehler, um fortzufahren","bySigningUpYouAgree":"Mit der Registrierung stimmst du unseren Bedingungen zu:","termsOfUse":"Nutzungsbedingungen","accountCreated":"Konto erstellt!","registrationFailed":"Registrierung fehlgeschlagen. Bitte versuche es erneut.","alreadyHaveAccount":"Bereits ein Konto?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"Registriere dich und verbinde dich!","termsAgreementFull":"Mit der Registrierung stimmst du unseren Nutzungsbedingungen, Datenschutzrichtlinie und Cookie-Richtlinie zu.","resetYourPassword":"Passwort zur\xfccksetzen","enterEmailToReset":"Gib die E-Mail des Kontos ein, das du zur\xfccksetzen m\xf6chtest","pleaseEnterEmail":"Bitte gib eine E-Mail-Adresse ein","resetPassword":"Passwort zur\xfccksetzen","pleaseEnterYourEmail":"Bitte gib deine E-Mail-Adresse ein","couldNotStartRecovery":"Wiederherstellung konnte nicht gestartet werden.","backToLogin":"Zur\xfcck zur Anmeldung","emailVerification":"E-Mail-Verifizierung","weSent4DigitCode":"Wir haben einen 4-stelligen Code gesendet an","yourEmail":"deine E-Mail","pleaseEnter4DigitCode":"Bitte gib den 4-stelligen Code ein.","verifyAccount":"Konto verifizieren","incorrectOrExpiredCode":"Der eingegebene Code ist falsch oder abgelaufen. Versuche es erneut oder fordere einen neuen an.","didntReceiveCode":"Keinen Code erhalten?","resendIn":"Erneut senden in {{timer}}
2s","sending":"Wird gesendet\u2026","verifying":"Wird verifiziert\u2026","newCodeSent":"Ein neuer Code wurde an deine E-Mail gesendet.","missingEmail":"E-Mail fehlt.","failedToResendCode":"Code konnte nicht erneut gesendet werden. Versuche es in einem Moment erneut.","changePassword":"Passwort \xe4ndern","newPassword":"Neues Passwort","confirmPassword":"Passwort best\xe4tigen","passwordsDontMatch":"Passw\xf6rter stimmen nicht \xfcberein","failedToResetPassword":"Passwort konnte nicht zur\xfcckgesetzt werden","couldNotResetPassword":"Passwort konnte nicht zur\xfcckgesetzt werden.","invalidOrExpiredCode":"Ung\xfcltiger oder abgelaufener Code.","passwordSuccessfullySet":"Passwort erfolgreich festgelegt","successTitle":"Erfolg!","emailSentInstructions":"Die Best\xe4tigungs-E-Mail wurde an deine E-Mail-Adresse gesendet. Bitte \xf6ffne diese E-Mail, um dein Konto zu verifizieren. Wenn du diese E-Mail innerhalb von 15 Minuten nicht in deinem Posteingang findest, schau im Spam-Ordner nach. Falls du sie dort findest, markiere die E-Mail bitte als \\"Kein Spam\\".","emailVerifiedSuccessfully":"E-Mail erfolgreich verifiziert","emailSuccessfullyVerifiedAlert":"E-Mail erfolgreich verifiziert","notFound404":"404 Nicht gefunden"}'),onboarding:JSON.parse('{"title":"Hey, ich bin Clipbait","subtitle":"Ich bin dein KI-Clipper f\xfcr deine Streams","factHeader":"Hier sind ein paar Dinge, die du \xfcber mich wissen solltest:","fact1":"Ich wurde von einem Elite-Editor erstellt, meine F\xe4higkeiten verbessern sich st\xe4ndig","fact2":"Ich wurde entwickelt, um Streamern und Clippern das Leben zu erleichtern","letsGetStarted":"Los geht\'s","questionUserType":"Bist du ein Clipper oder ein Streamer?","imAClipper":"Ich bin ein Clipper","imAStreamer":"Ich bin ein Streamer","questionStreamerNameClipper":"Wie hei\xdft der Streamer?","questionStreamerNameStreamer":"Wie ist dein Streamer-Name?","placeholderStreamerNameClipper":"z.B. Kai Cenat","placeholderStreamerNameStreamer":"z.B. Dein Anzeigename","streamerNameHint":"Das hilft der KI, bessere Hooks f\xfcr Clips zu schreiben.","questionChannelUsernameClipper":"Wie lautet der Kanal-Benutzername des Streamers, f\xfcr den du clippst?","questionChannelUsernameStreamer":"Bevor wir anfangen, wie lautet dein Kanal-Benutzername? (Klartext - Keine @-Symbole)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"Auf welcher Plattform streamen sie?","questionPlatformStreamer":"Was ist deine prim\xe4re Streaming-Plattform?","twitchStreamer":"Ich streame auf Twitch","rumbleStreamer":"Ich streame auf Rumble","youtubeStreamer":"Ich streame auf YouTube","kickStreamer":"Ich streame auf Kick","xStreamer":"Ich streame auf X","ganjingStreamer":"Ich streame auf Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"Profilbild hochladen","profilePictureHint":"Das hilft unserer KI, dich im Video zu erkennen und bessere Clips zu erstellen.","choosePhoto":"Foto w\xe4hlen","uploading":"Wird hochgeladen...","questionOpportunitiesClipper":"M\xf6chtest du Einladungen erhalten, um mit Clipping Geld zu verdienen?","questionOpportunitiesStreamer":"M\xf6chtest du Clipbait-Clipper f\xfcr deine Streams engagieren?","yesInterested":"Ja, ich bin interessiert","notRightNow":"Jetzt nicht","questionConnectPages":"Verbinde deine Seiten, um Clips zu posten","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"Welche Art von Inhalten erstellst du?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay mit Kommentar, Clutch-Momente, Reaktionen","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, Interviews, Reaktionen, Kommentare","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Real-Life-Streaming, Events, Outdoor-Inhalte","streamTypeMusic":"Musik","streamTypeMusicDesc":"Live-Auftritte, DJ-Sets, Musikproduktion","finishSetup":"Einrichtung abschlie\xdfen","ownStreamer":"Ich streame auf OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"KI-gest\xfctzter Clip-Generator","turnStreamsInto":"Verwandle Streams in","viralClips":"virale Clips","pasteUrl":"URL einf\xfcgen","uploadVideo":"Video hochladen","pasteYouTubeLivestream":"F\xfcge deinen YouTube-Livestream ein","pasteRumbleLivestream":"F\xfcge deinen Rumble-Livestream ein","pasteGanjingWorldLink":"Ganjing World-Link einf\xfcgen","pasteKickLink":"Kick-Link einf\xfcgen","pasteTwitchLink":"Twitch-Link einf\xfcgen","pasteXLink":"X-Link einf\xfcgen","generateClips":"Clips generieren","starting":"Wird gestartet...","uploadingProgress":"Hochladen {{progress}}%...","processing":"Verarbeitung","yourClips":"Deine Clips","loadingClips":"Clips werden geladen...","noClipsYet":"Noch keine Clips","pasteStreamUrl":"F\xfcge eine Stream-URL ein, um loszulegen","clipsReady":"{{count}} Clips bereit!","clipCount":"{{count}} Clips","dropFileHere":"Datei hier ablegen","dragAndDrop":"Ziehen & Ablegen oder klicken zum Ausw\xe4hlen","mp4OrMovMax2GB":"MP4 oder MOV, max. 2GB","freeTrialBanner":"Du bist in der kostenlosen Testphase. Einige Funktionen sind eingeschr\xe4nkt. Upgrade, um alle Funktionen freizuschalten.","pasteVideoLink
2First":"F\xfcge zuerst einen Videolink ein","selectPlatformInSettings":"W\xe4hle deine Plattform in den Einstellungen","setChannelUsername":"Lege deinen Kanal-Benutzernamen in den Einstellungen fest","onlyMp4MovSupported":"Nur MP4- und MOV-Dateien werden unterst\xfctzt","fileMustBeUnder2GB":"Datei muss unter 2GB sein","selectVideoFileFirst":"W\xe4hle zuerst eine Videodatei aus","clippingStarted":"Clipping gestartet!","uploadCompleteClippingStarted":"Upload abgeschlossen \u2014 Clipping gestartet!","uploadFailed":"Upload fehlgeschlagen","failedToStartClipping":"Clipping konnte nicht gestartet werden","havingTroubleWithLink":"Es gibt Probleme mit diesem Link \u2014 versuche das Video herunterzuladen und hochzuladen, oder verwende einen YouTube-Link","reachedUploadLimit":"Du hast dein Upload-Limit diesen Monat erreicht.","jobCancelled":"Auftrag abgebrochen","projectDeleted":"Projekt gel\xf6scht","failedToDeleteProject":"Projekt konnte nicht gel\xf6scht werden","deleteProject":"Projekt l\xf6schen?","cannotBeUndone":"Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden.","jobStillProcessing":"Dieser Auftrag wird noch verarbeitet","jobCancelledClipsDeleted":"Der Auftrag wird abgebrochen und alle Clips werden dauerhaft gel\xf6scht.","allClipsDeleted":"Alle Clips werden dauerhaft gel\xf6scht.","creatingYourClips":"Deine Clips werden erstellt","wellEmailYouWhenReady":"Wir senden dir eine E-Mail, wenn es fertig ist","estimatingTime":"Wird gesch\xe4tzt...","underTwoMinutes":"unter 2 Minuten","minutesRemaining":"~{{count}} Min. verbleibend","hoursMinutesRemaining":"~{{hours}}Std. {{minutes}}Min. verbleibend","almostDone":"fast fertig...","phaseDownloading":"Video wird heruntergeladen...","phaseDownloaded":"Download abgeschlossen","phaseExtractingAudio":"Audio wird extrahiert...","phaseTranscribing":"Audio wird transkribiert...","phaseTranscribingLong":"(das ist der langsamste Schritt bei langen Streams)","phaseAnalyzing":"KI w\xe4hlt die besten Momente...","phaseRendering":"Clips werden gerendert...","phaseDone":"Fertig!","tryUploadingInstead":"Versuche stattdessen hochzuladen","processingStatus":"Verarbeitung...","clipsReadyCount":"{{count}} Clips bereit","schedule":"Planen","post":"Posten","goodClip":"Guter Clip","badClip":"Schlechter Clip","downloadClip":"Clip herunterladen","moreOptions":"Weitere Optionen","clipDefaultTitle":"Clip {{number}}","funMessages":{"goGrabCoffee":"Hol dir einen Kaffee","timeForStretch":"Zeit zum Dehnen","takeQuickWalk":"Mach einen kurzen Spaziergang","hydrateYourself":"Trink etwas Wasser","doPushups":"Mach ein paar Liegest\xfctze","callYourMom":"Ruf deine Mama an","petYourDog":"Streichle deinen Hund","goForSwim":"Geh schwimmen","touchSomeGrass":"Geh mal raus an die frische Luft","checkYourPosture":"\xdcberpr\xfcfe deine Haltung"},"funMessagesModal":{"goForSwim":"Geh schwimmen, w\xe4hrend wir zaubern","perfectTimeForCoffee":"Perfekte Zeit f\xfcr einen Kaffee","quickStretch":"Vielleicht eine kurze Dehn\xfcbung?","hydrationCheck":"Trink-Check! Trink etwas Wasser","takeWalk":"Mach einen Spaziergang, wir k\xfcmmern uns darum","callSomeone":"Ruf jemanden an, den du liebst","petYourPet":"Streichle dein Haustier, falls du eins hast","touchGrass":"Geh raus und ber\xfchre Gras, buchst\xe4blich","jumpingJacks":"Mach 10 Hampelm\xe4nner","victoryDance":"\xdcbe deinen Siegestanz","deepBreaths":"Tief durchatmen... du machst das gro\xdfartig","timeToSnack":"Das
2ist dein Zeichen f\xfcr einen Snack"},"editClip":"Clip bearbeiten","clipEditor":"Clip-Editor","trimIn":"Anfang","trimOut":"Ende","previewTrim":"Zuschnitt-Vorschau","saveCaption":"Speichern","saveAndDownload":"Speichern & herunterladen","export":"Exportieren","exportComplete":"Export abgeschlossen!","exportNotSupported":"Export wird in diesem Browser nicht unterst\xfctzt","backToClips":"Zur\xfcck","uploadLimitReached":"Upload-Limit erreicht","limitResets":"Dein Limit wird am {{date}} zur\xfcckgesetzt","gotIt":"Verstanden","failed":"Fehlgeschlagen","creditsRefunded":"Credits zur\xfcckerstattet","tryAgainDifferentLink":"Versuche es erneut oder verwende einen anderen Link.","noSpeechInVideo":"Der eingef\xfcgte Link enthielt keine gesprochenen Worte. Versuche es mit einem Video, in dem gesprochen wird.","retry":"Erneut versuchen","cancelJobBtn":"Abbrechen","hookScore":"Hook-Score","best":"Beste","clipsSelected":"{{count}} ausgew\xe4hlt","switchToFileUpload":"Zu Datei-Upload wechseln","switchToURL":"Zu URL wechseln","selectContentTypeFirst":"Bitte w\xe4hle zuerst einen Inhaltstyp aus.","livestreamsNotSupported":"Livestreams werden noch nicht unterst\xfctzt \u2014 bitte verwende ein VOD oder aufgezeichnetes Video.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"Musik","documentary":"Dokumentation"},"cancelThisJob":"Diesen Auftrag abbrechen?","deleteTheseAssets":"Diese Assets l\xf6schen?","willStopProcessingRemoveJob":"Dies stoppt die Verarbeitung und entfernt den Auftrag.","keepGoing":"Weitermachen","noKeepThem":"Nein, behalten","yesCancelJob":"Ja, Auftrag abbrechen","yesDeleteForever":"Ja, dauerhaft l\xf6schen","titleCaption":"Titeluntertitel","information":"Informationen","duration":"Dauer","platform":"Plattform","creator":"Ersteller","rateThisClip":"Diesen Clip bewerten","type":"Typ","format":"Format","clipsLabel":"Clips","slowConnection":"Langsame Verbindung","couldntLoad":"Laden fehlgeschlagen","tapToRetry":"Zum Wiederholen tippen","clipsDeleted_one":"{{count}} Clip gel\xf6scht","clipsDeleted_other":"{{count}} Clips gel\xf6scht"}'),schedule:JSON.parse('{"shareClip":"Clip teilen","loadingPlatforms":"Plattformen werden geladen...","noConnectedPlatforms":"Keine verbundenen Plattformen.","connectSocialsToSchedule":"Verbinde deine Social-Media-Konten, um Beitr\xe4ge zu planen.","connectYourAccounts":"Verbinde deine Konten","postTo":"Posten auf:","deselectAll":"Alle abw\xe4hlen","selectAll":"Alle ausw\xe4hlen","caption":"Bildunterschrift","writeCaptionPlaceholder":"Schreibe eine Bildunterschrift f\xfcr deinen Beitrag...","scheduleAction":"Planen","saveAndSchedule":"Speichern und Beitrag planen","postAction":"Posten","publishImmediately":"Sofort ver\xf6ffentlichen","scheduling":"Wird geplant...","publishing":"Wird ver\xf6ffentlicht...","viewPost":"Beitrag ansehen","postedSuccessfully":"Erfolgreich gepostet!","partiallyPosted":"Teilweise gepostet","failedToPost":"Posten fehlgeschlagen","selectAtLeastOnePlatform":"W\xe4hle mindestens eine Plattform aus","selectATime":"W\xe4hle eine Uhrzeit","selectFutureTime":"Bitte w\xe4hle eine zuk\xfcnftige Uhrzeit","postScheduled":"Beitrag geplant!","failedToSchedule":"Planung fehlgeschlagen","failedToPublish":"Ver\xf6ffentlichung fehlgeschlagen","postedSuccess":"Erfolgreich gepostet!","postedToSomePlatforms":"Auf einigen Plattformen gepostet","failedToPostError":"Posten fehlgeschlagen","scheduledPost":"Geplanter Beitrag","postingTo":"Posten auf","writeCaptionShort":"Bildunterschrift schreiben...","saveChanges":"\xc4nderungen speichern","cancelScheduledPost":"Diesen geplanten Beitrag abbrechen?","clipWontBePosted":"Dieser Clip wird nicht auf deinen ausgew\xe4hlten Plattformen gepostet.","keepIt":"Behalten","cancelling":"Wird abgebrochen...","yesCancelPost":"Ja, Beitrag abbrechen","changesSaved":"\xc4nderungen gespeichert","failedToSaveChanges":"\xc4nderungen konnten nicht gespeichert werden","postCancelled":"Beitrag abgebrochen","failedToCancelPost":"Beitrag konnte nicht abgebrochen werden","todayAt":"Heute um","tomorrowAt":"Morgen um","upcomingClips":"Bevorstehende Clips","noScheduledClipsThisMonth":"Keine geplanten Clips diesen Monat.","scheduleClipsHint":"Plane Clips, nachdem sie fertig gerendert sind.","cancelScheduledPostConfirm":"Geplanten Beitrag abbrechen?","cancelPostMessage":"Der Beitrag wird aus deinem Zeitplan entfernt. Du kannst ihn jederzeit neu planen.","cancelPost":"Beitrag abbrechen","sun":"So","mon":"Mo","tue":"Di","wed":"Mi","thu":"Do","fri":"Fr","sat":"Sa","untitledCl
2ip":"Unbenannter Clip","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Verbundene Konten","linkSocialsToPost":"Verkn\xfcpfe deine sozialen Medien, um Clips direkt zu posten.","yourChannel":"Dein Kanal","watermarkDescription":"Dein Profilbild hilft der KI, dich im Video zu erkennen und bessere Clips zu erstellen.","streamerName":"Streamer-Name","placeholderStreamerName":"z.B. Kai Cenat","streamerNameHint":"Der Name des Streamers, f\xfcr den du clippst. Dies hilft der KI, bessere Hooks zu schreiben.","channelUsername":"Kanal-Benutzername","placeholderChannelUsername":"Dein Streaming-Benutzername","platform":"Plattform","selectPlatform":"Plattform ausw\xe4hlen","tapToChangePhoto":"Tippen, um Foto zu \xe4ndern","pleaseSelectImageFile":"Bitte w\xe4hle eine Bilddatei aus","imageMustBeLess5MB":"Bild muss kleiner als 5MB sein","profilePictureUpdated":"Profilbild aktualisiert!","failedToUploadPicture":"Bild konnte nicht hochgeladen werden","disconnectedFrom":"Verbindung zu {{platform}} getrennt","failedToDisconnect":"Trennung fehlgeschlagen","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"Abo-Einstellungen","stripeConnectionStatus":"Stripe-Verbindungsstatus","stripeConnectedMessage":"Dein Stripe-Konto ist verbunden und bereit, Zahlungen zu empfangen","manageStripeAccount":"Stripe-Konto verwalten","stripeConnectInstructions":"Verbinde dein Stripe-Konto, um Abo-Zahlungen zu empfangen...","stripeSetupWarning":"WICHTIG: Du musst den gesamten Stripe-Einrichtungsprozess abschlie\xdfen...","stripeSupportMessage":"Probleme? Kontaktiere den Support unter [email protected]...","connectingToStripe":"Verbindung mit Stripe wird hergestellt...","connectStripeAccount":"Stripe-Konto verbinden","enableSubscriptions":"Abonnements aktivieren","monthlySubscriptionPrice":"Monatlicher Abo-Preis (USD)","subscriptionDescription":"Abo-Beschreibung","describeSubscriptionBenefits":"Beschreibe, worauf Abonnenten Zugriff erhalten...","saveSettings":"Einstellungen speichern","settingsSaved":"Einstellungen erfolgreich gespeichert!","savingFailed":"Einstellungen konnten nicht gespeichert werden. Bitte versuche es erneut.","stripeConnectionError":"Stripe-Verbindung fehlgeschlagen. Bitte versuche es erneut.","stripeDashboardError":"Stripe-Dashboard konnte nicht ge\xf6ffnet werden. Bitte versuche es erneut.","stripeSetupError":"Stripe-Einrichtung konnte nicht abgeschlossen werden. Bitte versuche es erneut.","xsubscribeAdmin":"XSubscribe Admin","preview":"Vorschau","fetchLinksError":"Benutzer-Links konnten nicht geladen werden","deleteLinkError":"Link konnte nicht gel\xf6scht werden","orderUpdateSuccess":"Reihenfolge auf dem Server aktualisiert","orderUpdateError":"Reihenfolge konnte nicht auf dem Server aktualisiert werden","addLinkError":"Link konnte nicht hinzugef\xfcgt werden","profileSection":"Profil","pickAnImage":"Bild ausw\xe4hlen","remove":"Entfernen","usernameInputPlaceholder":"Dein X-Handle (@Benutzername)","bioInputPlaceholder":"Warum sollten Leute abonnieren?","getUnlimitedCustomization":"Unbegrenzte Anpassung erhalten","verifiedCheckmark":"Verifiziertes H\xe4kchen","customBackgroundImages":"Benutzerdefinierte Hintergrundbilder","removeXSubscribeLogo":"XSubscribe-Logo entfernen","dollarPerMonth":"9 $/Monat danach","flatColour":"Einfarbig","image":"Bild","pickAColor":"Farbe w\xe4hlen","hideXSubscribeLogo":"XSubscribe-Logo ausblenden","errorUpdatingProfileTitle":"Fehler beim Aktualisieren des Profiltitels","errorUpdatingBio":"Fehler beim Aktualisieren der Profilbeschreibung","errorSavingBackgroun
2dColor":"Fehler beim Speichern der Hintergrundfarbe","errorUpdatingEffects":"Fehler beim Aktualisieren der Hintergrundeffekte","errorUpdatingLogo":"Fehler beim Aktualisieren des Benutzerlogos","invalidUser":"Aktueller Benutzer ist nicht g\xfcltig.","errorFetchingLogoStatus":"Fehler beim Abrufen des anf\xe4nglichen Logo-Status","errorFetchingUserData":"Fehler beim Abrufen der Benutzerdaten","errorFetchingProfilePic":"Fehler beim Abrufen des Profilbilds","uploadFailed":"Upload fehlgeschlagen","accountSettings":"Kontoeinstellungen","manageSubscription":"Abonnement verwalten","manageSubscriptionDesc":"Zahlungsmethode aktualisieren, Rechnungen einsehen oder k\xfcndigen","deleteAccount":"Konto l\xf6schen","deleteAccountWarning":"Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden. Alle Ihre Daten werden dauerhaft gel\xf6scht.","typeDeleteToConfirm":"Geben Sie DELETE zur Best\xe4tigung ein","accountDeleted":"Konto erfolgreich gel\xf6scht","failedToDeleteAccount":"Konto konnte nicht gel\xf6scht werden","failedToOpenBilling":"Abrechnungsportal konnte nicht ge\xf6ffnet werden","yourBrands":"Ihre Marken","addBrand":"Marke hinzuf\xfcgen","brandName":"Markenname","brandNamePlaceholder":"Markennamen eingeben","createBrand":"Marke erstellen","switchBrand":"Marke wechseln","deleteBrand":"Marke l\xf6schen","cannotDeleteLastBrand":"Ihre einzige Marke kann nicht gel\xf6scht werden","brandCreated":"Marke erstellt!","brandSwitched":"Marke gewechselt!","brandDeleted":"Marke gel\xf6scht","failedToCreateBrand":"Marke konnte nicht erstellt werden","failedToSwitchBrand":"Marke konnte nicht gewechselt werden","failedToDeleteBrand":"Marke konnte nicht gel\xf6scht werden","captionPresets":"Untertitel-Stil","captionPresetsDesc":"Lege das Standard-Aussehen der Untertitel f\xfcr deine Clips fest. Neue Clips verwenden dein aktives Preset.","presetName":"Preset-Name","presetNamePlaceholder":"z.B. Fett Rot","addPreset":"Preset hinzuf\xfcgen","editPreset":"Bearbeiten","deletePreset":"L\xf6schen","createPreset":"Preset erstellen","presetCreated":"Preset erstellt!","presetActivated":"Untertitel-Stil gewechselt!","presetDeleted":"Preset gel\xf6scht","cannotDeleteLastPreset":"Dein einziges Preset kann nicht gel\xf6scht werden","failedToSwitchPreset":"Preset konnte nicht gewechselt werden","failedToDeletePreset":"Preset konnte nicht gel\xf6scht werden","captionPreview":"Dies ist deine Untertitel-Vorschau","captionColor":"Farbe","captionFont":"Schriftart","captionPosition":"Position","captionWidth":"Breite","streamType":"Inhaltstyp","streamTypeHint":"Welche Art von Inhalten erstellst du? Dies hilft der KI, Clips auf deinen Stil abzustimmen.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay mit Kommentar, Clutch-Momente, Reaktionen","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, Interviews, Reaktionen, Kommentare","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Real-Life-Streaming, Events, Outdoor-Inhalte","streamTypeMusic":"Musik","streamTypeMusicDesc":"Live-Auftritte, DJ-Sets, Musikproduktion","streamTypeDocumentary":"Dokumentarfilm","streamTypeDocumentaryDesc":"Dokumentarfilme, Kurzdokus und Filme","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Clipbait freischalten","getFullAccess":"Voller Zugriff auf KI-gest\xfctzte Clip-Generierung","monthly":"Monatlich","annual":"J\xe4hrlich","save15Percent":"15% sparen","perMonth":"/Monat","perMonthShort":"/Mo.","billedAsPerYear":"Abgerechnet als ${{amount}}/Jahr","upload30Videos":"30 Videos monatlich hochladen","upTo2Hours":"Videos bis zu 2 Stunden L\xe4nge","generate300Clips":"300 Clips monatlich generieren","downloadAndSchedule":"Clips herunterladen & planen","upTo5Accounts":"Bis zu 5 Markenkonten","getStarted":"Jetzt starten","redirecting":"Weiterleitung...","exclusiveOffer":"EXKLUSIVES ANGEBOT","russellBrandsPick":"Russell Brands Empfehlung","get10PercentOff":"10% Rabatt auf Clipbait Pro \u2014 exklusiv f\xfcr Russells Publikum","discountApplied":"10% Rabatt wird automatisch angewendet","claim10Off":"10% Rabatt sichern","noThanksFullPrice":"Nein danke, ich zahle den vollen Preis","generateWithoutLimits":"Ohne Einschr\xe4nkungen generieren","upgradePlan":"Plan upgraden","buyCredits":"Credits kaufen","creditsNeverExpireNote":"Credits verfallen nie und werden nach Aufbrauchen des monatlichen Kontingents genutzt.","mostPopular":"Beliebteste","bestValue":"Bestes Preis-Leistungs-Verh\xe4ltnis","generationsPerMonth":"{{count}} Generierungen/Monat","twentyPercentOff":"20% Rabatt","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"16% sparen","save26Percent":"26% sparen","perMonthBilledAnnually":"pro Monat, j\xe4hrlich abgerechnet"}'),pages:JSON.parse('{"foundersStoryTitle":"Die Geschichte unserer Gr\xfcnder","foundersStoryContent":"Im Jahr 2021 erlebte Spirit den erstickenden Griff der Zensur auf Mainstream-Plattformen. Entschlossen, einen Raum zu finden, in dem freie Meinungs\xe4u\xdferung gedeiht, entdeckte er eine Plattform, die mit seinen \xdcberzeugungen von offenem Dialog und kreativer Freiheit \xfcbereinstimmte. Dieser entscheidende Moment l\xf6ste die Idee f\xfcr das aus, was XSubscribe werden sollte \u2014 eine Plattform, auf der Ersteller und ihre Communitys authentisch und ohne Angst vor Zensur in Kontakt treten k\xf6nnen. Spirit legte mit seiner einzigartigen Vision und Leidenschaft f\xfcr die St\xe4rkung von Erstellern den Grundstein f\xfcr eine neue \xc4ra der Content-Monetarisierung. W\xe4hrend sich XSubscribe weiterentwickelt, bleibt es in dem Glauben verwurzelt, dass jede Stimme geh\xf6rt werden verdient. Ob du ein erfahrener Ersteller bist oder gerade erst anf\xe4ngst, XSubscribe ist hier, um dir zu helfen, eine nachhaltige Karriere mit dem aufzubauen, was du liebst.","termsTitle":"Allgemeine Gesch\xe4ftsbedingungen","lastUpdatedTerms":"Zuletzt aktualisiert: Sonntag, 7. Januar 2024","termsSection1Title":"1. Willkommen bei XSubscribe:","termsSection1Content":"Diese Nutzungsbedingungen (\\"Bedingungen\\") regeln die Nutzung der XSubscribe-Dienste, einschlie\xdflich der Website, APIs, mobilen Apps und aller verwandten Dienste. Durch die Nutzung unserer Plattform stimmst du diesen Bedingungen zu.","termsSection2Title":"2. \xc4nderungen der Bedingungen:","termsSection2Content":"XSubscribe
2kann diese Bedingungen von Zeit zu Zeit aktualisieren. Du wirst \xfcber gr\xf6\xdfere \xc4nderungen informiert, und die fortgesetzte Nutzung der Plattform nach \xc4nderungen bedeutet, dass du die neuen Bedingungen akzeptierst.","termsSection3Title":"3. Dein Konto:","termsSection3Content":"Du musst 18 Jahre oder \xe4lter sein, um XSubscribe zu nutzen, oder die Erlaubnis eines Elternteils/Erziehungsberechtigten haben. Halte deine Kontoinformationen aktuell und sichere dein Passwort. Du bist verantwortlich f\xfcr das, was auf deinem Konto passiert.","termsSection4Title":"4. Dein Benutzername:","termsSection4Content":"Benutzernamen m\xfcssen die Rechte anderer respektieren. XSubscribe kann Benutzernamen bei Bedarf zur\xfcckfordern oder \xe4ndern.","termsSection5Title":"5. Verwaltung deines Plans:","termsSection5Content":"XSubscribe bietet kostenlose und kostenpflichtige Pl\xe4ne an. Kostenpflichtige Pl\xe4ne erfordern eine g\xfcltige Zahlungsmethode. Du kannst zwischen Pl\xe4nen wechseln.","termsSection6Title":"6. Deine Inhalte:","termsSection6Content":"Du bist f\xfcr deine Inhalte verantwortlich. Sie m\xfcssen unseren Richtlinien und dem Gesetz entsprechen. XSubscribe
2kann Inhalte entfernen, die gegen diese Standards versto\xdfen.","termsSection7Title":"7. Was wir mit deinen Inhalten tun k\xf6nnen:","termsSection7Content":"XSubscribe hat eine Lizenz, deine Inhalte im Rahmen des Plattformbetriebs zu nutzen, zu verbreiten und anzuzeigen. Du kannst deine Inhalte \xfcber die Datenschutzeinstellungen steuern.","termsSection8Title":"8. Sperrung oder K\xfcndigung deines Kontos:","termsSection8Content":"XSubscribe kann Konten bei Regelverst\xf6\xdfen sperren oder k\xfcndigen. Du kannst dein eigenes Konto ebenfalls k\xfcndigen.","termsSection9Title":"9. Deine Verantwortung f\xfcr deine Besucher und Kunden:","termsSection9Content":"Du bist verantwortlich f\xfcr die Erfahrung der Personen, die dein Profil besuchen oder mit ihm interagieren.","termsSection10Title":"10. Feedback:","termsSection10Content":"Wenn du Feedback gibst, kann XSubscribe es frei verwenden. Du bist nicht verpflichtet, Feedback zu geben.","termsSection11Title":"11. Unsere Plattform:","termsSection11Content":"Du erh\xe4ltst ein eingeschr\xe4nktes Recht, die Plattform f\xfcr dein Content-Gesch\xe4ft zu nutzen. Missbrauche sie nicht und versuche nicht, ihr zu schaden.","termsSection12Title":"12. Geb\xfchren und Zahlung:","termsSection12Content":"Abo-Geb\xfchren, Transaktionsgeb\xfchren und Zahlungsbedingungen sind im Geb\xfchrenplan aufgef\xfchrt.","termsSection13Title":"13. Datenschutz:","termsSection13Content":"Die Datenschutzhinweise von XSubscribe erl\xe4utern, wie wir mit deinen Informationen umgehen.","termsSection14Title":"14. Vertraulichkeit:","termsSection14Content":"Halte alle nicht-\xf6ffentlichen Informationen, die von XSubscribe geteilt werden, vertraulich.","termsSection15Title":"15. Haftung:","termsSection15Content":"Du bist f\xfcr deine Nutzung der Plattform verantwortlich. Die Haftung von XSubscribe ist begrenzt.","termsSection16Title":"16. Haftungsausschl\xfcsse:","termsSection16Content":"Die Plattform wird ohne Garantien \\"WIE BESEHEN\\" bereitgestellt.","termsSection17Title":"17. Dienste Dritter:","termsSection17Content":"XSubscribe arbeitet mit Drittanbieter-Diensten zusammen. Deren eigene Bedingungen und Richtlinien gelten.","termsSection18Title":"18. App-Bedingungen:","termsSection18Content":"Bei Nutzung der XSubscribe-App gelten besondere Bedingungen.","termsSection19Title":"19. Open Source:","termsSection19Content":"Die App kann Open-Source-Software mit eigenen Lizenzen enthalten.","termsSection20Title":"20. Noch ein paar Dinge:","termsSection20Content":"Je nach deinem Standort k\xf6nnen bestimmte Gesetze gelten. Diese Bedingungen stellen die vollst\xe4ndige Vereinbarung zwischen dir und XSubscribe dar.","furtherInformation":"Wo bekommst du weitere Informationen?","termsContactInstructions":"Wenn du Fragen zu unseren Allgemeinen Gesch\xe4ftsbedingungen hast, kontaktiere uns bitte:","cookieNoticeTitle":"Cookie-Hinweis","lastUpdatedCookies":"Zuletzt aktualisiert: Sonntag, 7. Januar 2023","cookieIntroduction":"Dieser Cookie-Hinweis erkl\xe4rt, wie XSubscribe LLC Cookies und \xe4hnliche Technologien verwendet.","whatAreCookies":"Was sind Cookies?","cookieDefinition":"Cookies sind kleine Datendateien, die auf deinem Ger\xe4t gespeichert werden, wenn du eine Website besuchst.","thirdPartyCookies":"Cookies, die von anderen Parteien als XSubscribe gesetzt werden, nennt man Drittanbieter-Cookies.","whyUseCookies":"Warum verwenden wir Cookies?","cookieUsage":"Wir verwenden Erst- und Drittanbieter-Cookies f\xfcr verschiedene Zwecke.","cookieContactInstructions":"Wenn du Fragen zur Verwendung von Cookies hast, kontaktiere uns bitte:","contactSpiritTitle":"Spirit kontaktieren","contactInstructions":"Hey, du kannst mich auf verschiedene Wege erreichen, die unten aufgef\xfchrt sind:","searchTitle":"SUCHE","searchPlaceholder":"STREAMER SUCHEN...","searchResults":"ERGEBNISSE","suggestedStreamers":"VORGESCHLAGENE STREAMER","profileTitle":"Profil","onlyJpgPngAllowed":"Nur JPG/PNG erlaubt","maxFileSize2MB":"Maximale Dateigr\xf6\xdfe ist 2MB","selectAvatar":"AVATAR AUSW\xc4HLEN","updating":"WIRD AKTUALISIERT...","demoSubscriptionAlert":"Dies ist eine Demo. Du kannst diesen Creator nicht abonnieren.","subscribe":"Abonnieren","perMonth":"/Monat","subscribed":"\u2713 Abonniert","successfullySubscribedTo":"Erfolgreich abonniert:","weLockedIn":"Wir sind dabei.","createYourXSubscribe":"Erstelle dein XSubscribe","pageNotFoundHeading":"Die gesuchte Seite existiert nicht.","pageNotFoundMessage":"M\xf6chtest du diesen Benutzernamen?","createXSubscribeNow":"Erstelle jetzt dein XSubscribe.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"SuperChats werden geladen...","recentSuperchats":"Aktuelle SuperChat-Nachrichten und Trinkgelder","noSuperchatsPart1":"Noch keine SuperChats f\xfcr","noSuperchatsPart2":"Sei der Erste, der einen SuperChat sendet!","loadingSuperChatsError":"SuperChats konnten nicht geladen werden","addComment":"KOMMENTAR HINZUF\xdcGEN...","signInToComment":"ANMELDEN UM ZU KOMMENTIEREN","send":"Senden","signIn":"Anmelden","beTheFirstToComment":"SEI DER ERSTE, DER KOMMENTIERT.","writeReply":"Antwort schreiben...","reply":"Antworten","unlike":"Gef\xe4llt mir nicht mehr","like":"Gef\xe4llt mir","comments":"Kommentare","shareThisStream":"DIESEN STREAM TEILEN","goTo":"Gehe zu","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Nachrichten","emailShare":"E-Mail","copyLink":"Link kopieren","more":"Mehr","deleting":"Wird gel\xf6scht\u2026","anon":"Anonym","noCommentsYet":"Noch keine Kommentare.","sendSuperChat":"SuperChat senden","amountDollar":"Betrag ($)","messageMaxChars":"Nachricht (max. 200 Zeichen)","typeSuperChatMessage":"Gib deine SuperChat-Nachricht ein...","processingPayment":"Verarbeitung...","sendAmount":"${{amount}} SuperChat senden","pleaseLogInToSuperChat":"Bitte melde dich an, um einen SuperChat zu senden","pleaseEnterMessage":"Bitte gib eine Nachricht ein","amountMustBeAtLeast1":"Betrag muss mindestens 1$ sein","failedToCreateCheckout":"Checkout-Sitzung konnte nicht erstellt werden","highlightedFor":"Hervorgehoben f\xfcr"}'),notifications:JSON.parse('{"notifications":"Benachrichtigungen","viaEmail":"PER E-MAIL","receiveNotificationThroughEmail":"BENACHRICHTIGUNGEN PER E-MAIL ERHALTEN","all":"Alle","unread":"Ungelesen","noUnreadNotifications":"Keine ungelesenen Benachrichtigungen.","noNotificationsYet":"Noch keine Benachrichtigungen.","couldntLoadNotifications":"Benachrichtigungen konnten nicht vom Server geladen werden","someone":"Jemand","isLiveNow":"ist jetzt live","postedReplay":"hat eine Wiederholung gepostet","repliedToComment":"hat auf deinen Kommentar geantwortet","likedYourComment":"hat deinen Kommentar geliked","activity":"Aktivit\xe4t","secondsAgo":"{{count}}s","minutesAgo":"{{count}}m","hoursAgo":"{{count}}h","daysAgo":"{{count}}t"}')},es:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Iniciar sesi\xf3n","logout":"Cerrar sesi\xf3n","signUp":"Registrarse","signUpFree":"Reg\xedstrate gratis","profile":"Perfil","creatorDashboard":"Panel del creador","notifications":"Notificaciones","pricing":"Precios","admin":"Administrador","save":"Guardar","saving":"Guardando...","cancel":"Cancelar","delete":"Eliminar","continue":"Continuar","skip":"Omitir","skipForNow":"Omitir por ahora","done":"Hecho","loading":"Cargando...","edit":"Editar","connect":"Conectar","disconnect":"Desconectar","comingSoon":"Pr\xf3ximamente","connected":"Conectado","back":"Atr\xe1s","upgrade":"Mejorar plan","options":"Opciones","confirm":"Confirmar","areYouSure":"\xbfEst\xe1s seguro?","appearance":"Apariencia","subs":"Suscripciones","myPage":"Mi p\xe1gina","clipsTab":"CLIPS","calendarTab":"CALENDARIO","profileTab":"PERFIL","company":"Empresa","about":"Acerca de","press":"Prensa","contact":"Contacto","followUs":"S\xedguenos","termsAndConditions":"T\xe9rminos y condiciones","cookiePolicy":"Pol\xedtica de cookies","connectedTo":"\xa1Conectado a {{platform}}!","planActivated":"\xa1Plan activado! Ahora tienes acceso completo.","saved":"\xa1Guardado!","failedToSave":"Error al guardar","deleting":"Eliminando...","logOut":"Cerrar sesi\xf3n","download":"Descargar","freePlan":"Plan Gratuito","planLabel":"Plan {{plan}}","outOfCredits":"\u26a1 Sin cr\xe9ditos","creditsRemaining_one":"\u26a1 {{count}} cr\xe9dito restante","creditsRemaining_other":"\u26a1 {{count}} cr\xe9ditos restantes","topUpCredits":"Recargar cr\xe9ditos","buy":"Comprar","manageAccount":"Gestionar cuenta","signOut":"Cerrar sesi\xf3n"}'),auth:JSON.parse('{"welcomeBack":"Bienvenido de nuevo","signInToContinue":"Inicia sesi\xf3n para continuar en Clipbait","continueWithGoogle":"Continuar con Google","orC
2ontinueWithEmail":"o continuar con correo electr\xf3nico","enterYourEmail":"Introduce tu correo electr\xf3nico","checkYourEmail":"Revisa tu correo electr\xf3nico","weSentCodeTo":"Enviamos un c\xf3digo a","pleaseEnter6DigitCode":"Por favor, introduce el c\xf3digo de 6 d\xedgitos","verifyAndContinue":"Verificar y continuar","resendCodeIn":"Reenviar c\xf3digo en {{countdown}}s","resendCode":"Reenviar c\xf3digo","byContinuingYouAgree":"Al continuar, aceptas los","termsOfService":"T\xe9rminos de servicio","privacyPolicy":"Pol\xedtica de privacidad","invalidCode":"C\xf3digo inv\xe1lido. Int\xe9ntalo de nuevo.","invalidEmail":"Por favor, introduce una direcci\xf3n de correo v\xe1lida","failedToSendCode":"Error al enviar el c\xf3digo. Int\xe9ntalo de nuevo.","signingYouIn":"Iniciando sesi\xf3n...","emailOrUsername":"Correo electr\xf3nico o nombre de usuario","password":"Contrase\xf1a","forgotPassword":"\xbfOlvidaste tu contrase\xf1a?","logIn":"Iniciar sesi\xf3n","incorrectCredentials":"Nombre de usuario/correo o contrase\xf1a incorrectos","emailNotVerified":"Correo no verificado. Revisa tu correo electr\xf3nico.","email":"Correo electr\xf3nico","username":"Nombre de usuario","birthdayLabel":"Fecha de nacimiento (Mes / D\xeda / A\xf1o)","monthPlaceholder":"MM","dayPlaceholder":"DD","yearPlaceholder":"AAAA","usernameTooShort":"El nombre de usuario debe tener al menos {{min}} caracteres.","usernameTooLong":"El nombre de usuario debe tener como m\xe1ximo {{max}} caracteres.","usernameInvalidFormat":"Solo se permiten letras, n\xfameros y guiones bajos. Sin espacios.","birthdayRequired":"Por favor, selecciona tu fecha de nacimiento completa.","invalidEmailFormat":"Por favor, introduce una direcci\xf3n de correo v\xe1lida.","passwordRequired":"La contrase\xf1a es obligatoria.","passwordTooShort":"La contrase\xf1a debe tener al menos 3 caracteres.","emailAvailable":"El correo electr\xf3nico es v\xe1lido.","usernameAvailable":"El nombre de usuario est\xe1 disponible.","usernameTaken":"Este nombre de usuario ya est\xe1 en uso.","emailTaken":"Ya existe una cuenta con este correo electr\xf3nico.","passwordHint":"Al menos 3 caracteres.","fixErrorsToContinue":"Corrige los errores para continuar","bySigningUpYouAgree":"Al registrarte, aceptas nuestros","termsOfUse":"T\xe9rminos de uso","accountCreated":"\xa1Cuenta creada!","registrationFailed":"Error en el registro. Por favor, int\xe9ntalo de nuevo.","alreadyHaveAccount":"\xbfYa tienes una cuenta?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"\xa1Reg\xedstrate y empieza a conectar!","termsAgreementFull":"Al registrarte, aceptas nuestros T\xe9rminos, Pol\xedtica de privacidad y Pol\xedtica de cookies.","resetYourPassword":"Restablece tu contrase\xf1a","enterEmailToReset":"Introduce el correo de la cuenta que deseas restablecer","pleaseEnterEmail":"Por favor, introduce un correo electr\xf3nico","resetPassword":"Restablecer contrase\xf1a","pleaseEnterYourEmail":"Por favor, introduce tu correo electr\xf3nico","couldNotStartRecovery":"No se pudo iniciar la recuperaci\xf3n.","backToLogin":"Volver al inicio de sesi\xf3n","emailVerification":"Verificaci\xf3n de correo electr\xf3nico","weSent4DigitCode":"Enviamos un c\xf3digo de 4 d\xedgitos a","yourEmail":"tu correo electr\xf3nico","pleaseEnter4DigitCode":"Por favor, introduce el c\xf3digo de 4 d\xedgitos.","verifyAccount":"Verificar cuenta","incorrectOrExpiredCode":"El c\xf3digo que ingresaste no es correcto o ha expirado. Int\xe9ntalo de nuevo o reenv\xedalo.","didntReceiveCode":"\xbfNo recibiste el c\xf3digo?","resendIn":"Reenviar en {{timer}}s","sending":"Enviando\u2026","verifying":"Verificando\u2026","newCodeSent":"Se ha enviado un nuevo c\xf3digo a tu correo electr\xf3nico.","missingEmail":"Falta el correo electr\xf3nico.","failedToResendCode":"Error al reenviar el c\xf3digo. Int\xe9ntalo de nuevo en un momento.","changePassword":"Cambiar contrase\xf1a","newPassword":"Nueva contrase\xf1a","confirmPassword":"Confirmar contrase\xf1a","passwordsDontMatch":"Las contrase\xf1as no coinciden","failedToResetPassword":"Error al restablecer la contrase\xf1a","couldNotResetPassword":"No se pudo restablecer la contrase\xf1a.","invali
2dOrExpiredCode":"C\xf3digo inv\xe1lido o expirado.","passwordSuccessfullySet":"Contrase\xf1a establecida correctamente","successTitle":"\xa1\xc9xito!","emailSentInstructions":"Se ha enviado el correo de verificaci\xf3n de tu cuenta a tu correo electr\xf3nico. Por favor, abre este correo para verificar tu cuenta. Si no ves este correo en tu bandeja de entrada en 15 minutos, b\xfascalo en tu carpeta de correo no deseado. Si lo encuentras all\xed, por favor m\xe1rcalo como \\"No es correo no deseado\\".","emailVerifiedSuccessfully":"Correo electr\xf3nico verificado correctamente","emailSuccessfullyVerifiedAlert":"Correo electr\xf3nico verificado correctamente","notFound404":"404 No encontrado"}'),onboarding:JSON.parse('{"title":"Hola, soy Clipbait","subtitle":"Soy tu recortador de clips con IA para tus transmisiones","factHeader":"Aqu\xed hay algunas cosas que debes saber sobre m\xed:","fact1":"Fui creado por un editor de \xe9lite, mis habilidades mejoran constantemente","fact2":"Fui creado para AYUDAR a facilitar la vida de streamers y clippers","letsGetStarted":"Empecemos","questionUserType":"\xbfEres un Clipper o un Streamer?","imAClipper":"Soy un Clipper","imAStreamer":"Soy un Streamer","questionStreamerNameClipper":"\xbfCu\xe1l es el nombre del streamer?","questionStreamerNameStreamer":"\xbfCu\xe1l es tu nombre de streamer?","placeholderStreamerNameClipper":"ej. Kai Cenat","placeholderStreamerNameStreamer":"ej. Tu nombre de pantalla","streamerNameHint":"Esto ayuda a la IA a escribir mejores ganchos para los clips.","questionChannelUsernameClipper":"\xbfCu\xe1l es el nombre de usuario del canal del streamer para el que haces clips?","questionChannelUsernameStreamer":"Antes de empezar, \xbfcu\xe1l es tu nombre de usuario del canal? (texto simple, sin s\xedmbolos @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\xbfEn qu\xe9 plataforma transmiten?","questionPlatformStreamer":"\xbfCu\xe1l es tu plataforma principal de streaming?","twitchStreamer":"Transmito en Twitch","rumbleStreamer":"Transmito en Rumble","youtubeStreamer":"Transmito en YouTube","kickStreamer":"Transmito en Kick","xStreamer":"Transmito en X","ganjingStreamer":"Transmito en Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"Sube una foto de perfil","profilePictureHint":"Esto ayuda a nuestra IA a identificarte en el video para crear mejores clips.","choosePhoto":"Elegir foto","uploading":"Subiendo...","questionOpportunitiesClipper":"\xbfQuieres invitaciones para ganar dinero haciendo clips?","questionOpportunitiesStreamer":"\xbfQuieres contratar Clippers de Clipbait para tus transmisiones?","yesInterested":"S\xed, me interesa","notRightNow":"Ahora no","questionConnectPages":"Conecta tus p\xe1ginas para publicar clips","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\xbfQu\xe9 tipo de contenido creas?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay con comentarios, jugadas clave, reacciones","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, entrevistas, reacciones, comentarios","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming en la vida real, eventos, contenido al aire libre","streamTypeMusic":"M\xfasica","streamTypeMusicDesc":"Presentaciones en vivo, sesiones de DJ, producci\xf3n musical","finishSetup":"Finalizar configuraci\xf3n","ownStreamer":"Transmito en OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"Generador de clips con IA","turnStreamsInto":"Convierte transmisiones en","viralClips":"clips virales","pasteUrl":"Pegar URL","uploadVideo":"Subir video","pasteYouTubeLivestream":"Pega tu transmisi\xf3n en vivo de YouTube","pasteRumbleLivestream":"Pega tu transmisi\xf3n en vivo de Rumble","pasteGanjingWorldLink":"Pega tu enlace de Ganjing World","pasteKickLink":"Pega tu enlace de Kick","pasteTwitchLink":"Pega tu enlace de Twitch","pasteXLink":"Pega tu enlace de X","generateClips":"Generar clips","starting":"Iniciando...","uploadingProgress":"Subiendo {{progress}}%...","processing":"Procesando","yourClips":"Tus clips","loadingClips":"Cargando clips...","noClipsYet":"A\xfan no hay clips","pasteStreamUrl":"Pega una URL de transmisi\xf3n para comenzar","clipsReady":"\xa1{{count}} clips listos!","clipCount":"{{count}} clips","dropFileHere":"Suelta tu archivo aqu\xed","dragAndDrop":"Arrastra y suelta o haz clic para elegir","mp4OrMovMax2GB":"MP4 o MOV, m\xe1ximo 2GB","freeTrialBanner":"Est\xe1s en prueba gratuita. Algunas funciones est\xe1n limitadas. Mejora tu plan para desbloquear todas las funciones.","pasteVideoLink
2First":"Pega un enlace de video primero","selectPlatformInSettings":"Selecciona tu plataforma en Configuraci\xf3n","setChannelUsername":"Configura tu nombre de usuario del canal en Configuraci\xf3n","onlyMp4MovSupported":"Solo se admiten archivos MP4 y MOV","fileMustBeUnder2GB":"El archivo debe ser menor de 2GB","selectVideoFileFirst":"Selecciona un archivo de video primero","clippingStarted":"\xa1Recorte iniciado!","uploadCompleteClippingStarted":"\xa1Subida completa \u2014 recorte iniciado!","uploadFailed":"Error en la subida","failedToStartClipping":"Error al iniciar el recorte","havingTroubleWithLink":"Tenemos problemas con ese enlace \u2014 intenta descargar el video y subirlo, o prueba con un enlace de YouTube","reachedUploadLimit":"Has alcanzado tu l\xedmite de subidas este mes.","jobCancelled":"Trabajo cancelado","projectDeleted":"Proyecto eliminado","failedToDeleteProject":"Error al eliminar el proyecto","deleteProject":"\xbfEliminar proyecto?","cannotBeUndone":"Esta acci\xf3n no se puede deshacer.","jobStillProcessing":"Este trabajo a\xfan se est\xe1 procesando","jobCancelledClipsDeleted":"El trabajo se cancelar\xe1 y todos los clips se eliminar\xe1n permanentemente.","allClipsDeleted":"Todos los clips se eliminar\xe1n permanentemente.","creatingYourClips":"Creando tus clips","wellEmailYouWhenReady":"Te enviaremos un correo cuando est\xe9n listos","estimatingTime":"Estimando...","underTwoMinutes":"menos de 2 minutos","minutesRemaining":"~{{count}} min restantes","hoursMinutesRemaining":"~{{hours}}h {{minutes}}min restantes","almostDone":"casi listo...","phaseDownloading":"Descargando video...","phaseDownloaded":"Descarga completa","phaseExtractingAudio":"Extrayendo audio...","phaseTranscribing":"Transcribiendo audio...","phaseTranscribingLong":"(este es el paso m\xe1s lento para streams largos)","phaseAnalyzing":"IA seleccionando los mejores momentos...","phaseRendering":"Renderizando clips...","phaseDone":"\xa1Listo!","tryUploadingInstead":"Intenta subir el video en su lugar","processingStatus":"Procesando...","clipsReadyCount":"{{count}} clips listos","schedule":"Programar","post":"Publicar","goodClip":"Buen clip","badClip":"Mal clip","downloadClip":"Descargar clip","moreOptions":"M\xe1s opciones","clipDefaultTitle":"Clip {{number}}","funMessages":{"goGrabCoffee":"Ve por un caf\xe9","timeForStretch":"Hora de estirarse","takeQuickWalk":"Da un paseo r\xe1pido","hydrateYourself":"Hidr\xe1tate","doPushups":"Haz unas flexiones","callYourMom":"Llama a tu mam\xe1","petYourDog":"Acaricia a tu perro","goForSwim":"Ve a nadar","touchSomeGrass":"Toca algo de pasto","checkYourPosture":"Revisa tu postura"},"funMessagesModal":{"goForSwim":"Ve a nadar mientras hacemos nuestra magia","perfectTimeForCoffee":"Momento perfecto para un caf\xe9","quickStretch":"\xbfQu\xe9 tal unos estiramientos r\xe1pidos?","hydrationCheck":"\xa1Control de hidrataci\xf3n! Toma algo de agua","takeWalk":"Da un paseo, nosotros nos encargamos","callSomeone":"Llama a alguien que quieras","petYourPet":"Acaricia a tu mascota si tienes una","touchGrass":"Toca algo de pasto, literalmente","jumpingJacks":"Haz 10 saltos de tijera","victoryDance":"Practica tu baile de la victoria","deepBreaths":"Respira profundo... lo est\xe1s haciendo genial","timeToSnack":"Esta es tu se\xf1al para comer un bocadillo"},"editClip":"Editar clip","clipEditor":"Editor de clips","trimIn":"Inicio","trimOut":"Fin","previewTrim":"Vista previa del recorte","saveCaption":"Guardar","saveAndDownload":"Guardar y descargar","export":"Exportar","exportComplete":"Exportaci\xf3n completa!","exportNotSupported":"La exportaci\xf3n no es compatible con este navegador","backToClips":"Volver","uploadLimitReached":"L\xedmite de subidas alcanzado","limitResets":"Tu l\xedmite se restablece el {{date}}","gotIt":"Entendido","failed":"Fallido","creditsRefunded":"Cr\xe9ditos reembolsados","tryAgainDifferentLink":"Int\xe9ntalo de nuevo o usa un enlace diferente.","noSpeechInVideo":"El enlace que pegaste no ten\xeda palabras habladas. Prueba con uno donde el creador est\xe9 hablando.","retry":"Reintentar","cancelJobBtn":"Cancelar","hookScore":"Puntuaci\xf3n de gancho","best":"Mejor","clipsSelected":"{{count}} seleccionados","switchToFileUpload":"Cambiar a subida de archivo","switchToURL":"Cambiar a URL","
2selectContentTypeFirst":"Por favor, selecciona primero un tipo de contenido.","livestreamsNotSupported":"Los streams en vivo a\xfan no son compatibles \u2014 por favor usa un VOD o video grabado.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"M\xfasica","documentary":"Documental"},"cancelThisJob":"\xbfCancelar este trabajo?","deleteTheseAssets":"\xbfEliminar estos archivos?","willStopProcessingRemoveJob":"Esto detendr\xe1 el procesamiento y eliminar\xe1 el trabajo.","keepGoing":"Continuar","noKeepThem":"No, mantenerlos","yesCancelJob":"S\xed, cancelar trabajo","yesDeleteForever":"S\xed, eliminar para siempre","titleCaption":"Subt\xedtulo de t\xedtulo","information":"Informaci\xf3n","duration":"Duraci\xf3n","platform":"Plataforma","creator":"Creador","rateThisClip":"Calificar este clip","type":"Tipo","format":"Formato","clipsLabel":"Clips","slowConnection":"Conexi\xf3n lenta","couldntLoad":"No se pudo cargar","tapToRetry":"Toca para reintentar","clipsDeleted_one":"{{count}} clip eliminado","clipsDeleted_other":"{{count}} clips eliminados"}'),schedule:JSON.parse('{"shareClip":"Compartir clip","loadingPlatforms":"Cargando plataformas...","noConnectedPlatforms":"No hay plataformas conectadas.","connectSocialsToSchedule":"Conecta tus cuentas de redes sociales para programar publicaciones.","connectYourAccounts":"Conecta tus cuentas","postTo":"Publicar en:","deselectAll":"Deseleccionar todo","selectAll":"Seleccionar todo","caption":"Descripci\xf3n","writeCaptionPlaceholder":"Escribe una descripci\xf3n para tu publicaci\xf3n...","scheduleAction":"Programar","saveAndSchedule":"Guardar y programar publicaci\xf3n","postAction":"Publicar","publishImmediately":"Publicar inmediatamente","scheduling":"Programando...","publishing":"Publicando...","viewPost":"Ver publicaci\xf3n","postedSuccessfully":"\xa1Publicado correctamente!","partiallyPosted":"Publicado parcialmente","failedToPost":"Error al publicar","selectAtLeastOnePlatform":"Selecciona al menos una plataforma","selectATime":"Selecciona una hora","selectFutureTime":"Por favor, selecciona una hora futura","postScheduled":"\xa1Publicaci\xf3n programada!","failedToSchedule":"Error al programar","failedToPublish":"Error al publicar","postedSuccess":"\xa1Publicado correctamente!","postedToSomePlatforms":"Publicado en algunas plataformas","failedToPostError":"Error al publicar","scheduledPost":"Publicaci\xf3n programada","postingTo":"Publicando en","writeCaptionShort":"Escribe una descripci\xf3n...","saveChanges":"Guardar cambios","cancelScheduledPost":"\xbfCancelar esta publicaci\xf3n programada?","clipWontBePosted":"Este clip no se publicar\xe1 en tus plataformas seleccionadas.","keepIt":"Mantener","cancelling":"Cancelando...","yesCancelPost":"S\xed, cancelar publicaci\xf3n","changesSaved":"Cambios guardados","failedToSaveChanges":"Error al guardar los cambios","postCancelled":"Publicaci\xf3n cancelada","failedToCancelPost":"Error al cancelar la publicaci\xf3n","todayAt":"Hoy a las","tomorrowAt":"Ma\xf1ana a las","upcomingClips":"Pr\xf3ximos clips","noScheduledClipsThisMonth":"No hay clips programados este mes.","scheduleClipsHint":"Programa clips despu\xe9s de que terminen de renderizarse.","cancelScheduledPostConfirm":"\xbfCancelar publicaci\xf3n programada?","cancelPostMessage":"Esto eliminar\xe1 la publicaci\xf3n de tu calendario. Siempre puedes reprogramarla despu\xe9s.","cancelPost":"Cancelar publicaci\xf3n","sun":"Dom","mon":"Lun","tue":"Mar","wed":"Mi\xe9","thu":"Jue","fri":"Vie","sat":"S\xe1b","untitledClip":"Clip sin t\xedtulo","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Cuentas conectadas","linkSocialsToPost":"Vincula tus redes sociales para publicar clips directamente.","yourChannel":"Tu canal","watermarkDescription":"Tu foto de perfil ayuda a la IA a identificarte en el video para crear mejores clips.","streamerName":"Nombre del streamer","placeholderStreamerName":"ej. Kai Cenat","streamerNameHint":"El nombre del streamer para el que haces clips. Esto ayuda a la IA a escribir mejores ganchos.","channelUsername":"Nombre de usuario del canal","placeholderChannelUsername":"Tu nombre de usuario de streaming","platform":"Plataforma","selectPlatform":"Seleccionar plataforma","ta
2pToChangePhoto":"Toca para cambiar la foto","pleaseSelectImageFile":"Por favor, selecciona un archivo de imagen","imageMustBeLess5MB":"La imagen debe ser menor de 5MB","profilePictureUpdated":"\xa1Foto de perfil actualizada!","failedToUploadPicture":"Error al subir la imagen","disconnectedFrom":"Desconectado de {{platform}}","failedToDisconnect":"Error al desconectar","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"Configuraci\xf3n de suscripci\xf3n","stripeConnectionStatus":"Estado de conexi\xf3n de Stripe","stripeConnectedMessage":"Tu cuenta de Stripe est\xe1 conectada y lista para recibir pagos","manageStripeAccount":"Administrar cuenta de Stripe","stripeConnectInstructions":"Conecta tu cuenta de Stripe para empezar a recibir pagos de suscripci\xf3n...","stripeSetupWarning":"IMPORTANTE: Debes completar todo el proceso de configuraci\xf3n de Stripe...","stripeSupportMessage":"\xbfTienes problemas? Contacta a soporte en [email protected]...","connectingToStripe":"Conectando a Stripe...","connectStripeAccount":"Conectar cuenta de Stripe","enableSubscriptions":"Habilitar suscripciones","monthlySubscriptionPrice":"Precio de suscripci\xf3n mensual (USD)","subscriptionDescription":"Descripci\xf3n de la suscripci\xf3n","describeSubscriptionBenefits":"Describe a qu\xe9 tendr\xe1n acceso los suscriptores...","saveSettings":"Guardar configuraci\xf3n","settingsSaved":"\xa1Configuraci\xf3n guardada correctamente!","savingFailed":"Error al guardar la configuraci\xf3n. Por favor, int\xe9ntalo de nuevo.","stripeConnectionError":"Error al conectar con Stripe. Por favor, int\xe9ntalo de nuevo.","stripeDashboardError":"Error al abrir el panel de Stripe. Por favor, int\xe9ntalo de nuevo.","stripeSetupError":"Error al completar la configuraci\xf3n de Stripe. Por favor, int\xe9ntalo de nuevo.","xsubscribeAdmin":"Administrador de XSubscribe","preview":"Vista previa","fetchLinksError":"Error al obtener los enlaces del usuario","deleteLinkError":"Error al eliminar el enlace","orderUpdateSuccess":"Valores de orden actualizados en el servidor","orderUpdateError":"Error al actualizar los valores de orden en el servidor","addLinkError":"Error al agregar el enlace","profileSection":"Perfil","pickAnImage":"Elegir una imagen","remove":"Eliminar","usernameInputPlaceholder":"Tu usuario de X (@usuario)","bioInputPlaceholder":"\xbfPor qu\xe9 la gente deber\xeda suscribirse?","getUnlimitedCustomization":"Obt\xe9n personalizaci\xf3n ilimitada","verifiedCheckmark":"Marca de verificaci\xf3n","customBackgroundImages":"Im\xe1genes de fondo personalizadas","removeXSubscribeLogo":"Eliminar el logo de XSubscribe","dollarPerMonth":"$9 /mes despu\xe9s","flatColour":"Color s\xf3lido","image":"Imagen","pickAColor":"Elige un color","hideXSubscribeLogo":"Ocultar el logo de XSubscribe","errorUpdatingProfileTitle":"Error al actualizar el t\xedtulo del perfil","errorUpdatingBio":"Error al actualizar la biograf\xeda del perfil","errorSavingBackgroun
2dColor":"Error al guardar el color de fondo","errorUpdatingEffects":"Error al actualizar los efectos de fondo","errorUpdatingLogo":"Error al actualizar el logo del usuario","invalidUser":"currentUser no es v\xe1lido.","errorFetchingLogoStatus":"Error al obtener el estado inicial del logo","errorFetchingUserData":"Error al obtener los datos del usuario","errorFetchingProfilePic":"Error al obtener la foto de perfil","uploadFailed":"Error en la subida","accountSettings":"Configuraci\xf3n de la cuenta","manageSubscription":"Gestionar suscripci\xf3n","manageSubscriptionDesc":"Actualizar m\xe9todo de pago, ver facturas o cancelar","deleteAccount":"Eliminar cuenta","deleteAccountWarning":"Esta acci\xf3n no se puede deshacer. Todos tus datos se eliminar\xe1n permanentemente.","typeDeleteToConfirm":"Escribe DELETE para confirmar","accountDeleted":"Cuenta eliminada correctamente","failedToDeleteAccount":"Error al eliminar la cuenta","failedToOpenBilling":"Error al abrir el portal de facturaci\xf3n","yourBrands":"Tus marcas","addBrand":"A\xf1adir marca","brandName":"Nombre de la marca","brandNamePlaceholder":"Introduce el nombre de la marca","createBrand":"Crear marca","switchBrand":"Cambiar de marca","deleteBrand":"Eliminar marca","cannotDeleteLastBrand":"No puedes eliminar tu \xfanica marca","brandCreated":"\xa1Marca creada!","brandSwitched":"\xa1Marca cambiada!","brandDeleted":"Marca eliminada","failedToCreateBrand":"Error al crear la marca","failedToSwitchBrand":"Error al cambiar de marca","failedToDeleteBrand":"Error al eliminar la marca","captionPresets":"Estilo de subt\xedtulos","captionPresetsDesc":"Configura la apariencia predeterminada de los subt\xedtulos en tus clips. Los nuevos clips usar\xe1n tu preset activo.","presetName":"Nombre del preset","presetNamePlaceholder":"ej. Negrita Roja","addPreset":"A\xf1adir preset","editPreset":"Editar","deletePreset":"Eliminar","createPreset":"Crear preset","presetCreated":"\xa1Preset creado!","presetActivated":"\xa1Estilo de subt\xedtulos cambiado!","presetDeleted":"Preset eliminado","cannotDeleteLastPreset":"No puedes eliminar tu \xfanico preset","failedToSwitchPreset":"Error al cambiar de preset","failedToDeletePreset":"Error al eliminar el preset","captionPreview":"Esta es la vista previa de tus subt\xedtulos","captionColor":"Color","captionFont":"Fuente","captionPosition":"Posici\xf3n","captionWidth":"Ancho","streamType":"Tipo de contenido","streamTypeHint":"\xbfQu\xe9 tipo de contenido creas? Esto ayuda a la IA a adaptar los clips a tu estilo.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay con comentarios, momentos clutch, reacciones","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcasts, entrevistas, reacciones, comentarios","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming en la vida real, eventos, contenido al aire libre","streamTypeMusic":"M\xfasica","streamTypeMusicDesc":"Presentaciones en vivo, sets de DJ, producci\xf3n musical","streamTypeDocumentary":"Documental","streamTypeDocumentaryDesc":"Documentales, mini documentales y pel\xedculas","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Desbloquea Clipbait","getFullAccess":"Obt\xe9n acceso completo a la generaci\xf3n de clips con IA","monthly":"Mensual","annual":"Anual","save15Percent":"Ahorra 15%","perMonth":"/mes","perMonthShort":"/mes","billedAsPerYear":"Facturado como ${{amount}}/a\xf1o","upload30Videos":"Sube 30 videos al mes","upTo2Hours":"Videos de hasta 2 horas de duraci\xf3n","generate300Clips":"Genera 300 clips al mes","downloadAndSchedule":"Descarga y programa clips","upTo5Accounts":"Hasta 5 cuentas de marca","getStarted":"Comenzar","redirecting":"Redirigiendo...","exclusiveOffer":"OFERTA EXCLUSIVA","russellBrandsPick":"La elecci\xf3n de Russell Brand","get10PercentOff":"Obt\xe9n un 10% de descuento en Clipbait Pro \u2014 exclusivo para la audiencia de Russell","discountApplied":"10% de descuento aplicado autom\xe1ticamente","claim10Off":"Reclamar 10% de descuento","noThanksFullPrice":"No gracias, pagar\xe9 el precio completo","generateWithoutLimits":"Generar sin l\xedmites","upgradePlan":"Mejorar Plan","buyCredits":"Comprar Cr\xe9ditos","creditsNeverExpireNote":"Los cr\xe9ditos nunca vencen y se usan despu\xe9s de agotar tu cuota mensual del plan.","mostPopular":"M\xe1s Popular","bestValue":"Mejor Valor","generationsPerMonth":"{{count}} generaciones/mes","twentyPercentOff":"20% de descuento","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"Ahorra 16%","save26Percent":"Ahorra 26%","perMonthBilledAnnually":"por mes, facturado anualmente"}'),pages:JSON.parse('{"foundersStoryTitle":"La historia de nuestros fundadores","foundersStoryContent":"En 2021, Spirit se encontr\xf3 con el asfixiante control de la censura en las plataformas convencionales. Decidido a encontrar un espacio donde la libre expresi\xf3n prosperara, descubri\xf3 una plataforma que resonaba con sus creencias en el di\xe1logo abierto y la libertad creativa. Este momento crucial gener\xf3 la idea de lo que se convertir\xeda en XSubscribe \u2014 una plataforma donde los creadores y sus comunidades pudieran conectar de manera aut\xe9ntica, sin miedo a la censura. Spirit, con su visi\xf3n \xfanica y su pasi\xf3n por empoderar a los creadores, sent\xf3 las bases de una nueva era en la monetizaci\xf3n de contenido. A medida que XSubscribe contin\xfaa evolucionando, permanece arraigado en la creencia de que cada voz merece ser escuchada. Ya seas un creador experimentado o est\xe9s comenzando, XSubscribe est\xe1 aqu\xed para ayudarte a construir una carrera sostenible haciendo lo que amas.","termsTitle":"T\xe9rminos y condiciones","lastUpdatedTerms":"\xdaltima actualizaci\xf3n: domingo 7 de enero de 2024","termsSection1Title":"1. Bienvenido a XSubscribe:","termsSection1Content":"Estos T\xe9rminos de uso (\\"T\xe9rminos\\") rigen el uso de los servicios de XSubscribe, incluyendo el sitio web, las APIs, las aplicaciones m\xf3viles y todos los servicios relacionados. Al usar nuestra plataforma, aceptas seguir estos T\xe9rminos.","termsSection2Title":"2. Cambios en los T\xe9rminos:","termsSection2Content":"XSubscribe puede actualizar estos T\xe9rminos de vez en cuando. Ser\xe1s notificado de cualquier cambio importante, y el uso continuado de la plataforma despu\xe9s de los cambios significa que aceptas los nuevos t\xe9rminos.","termsSection3Title":"3. Tu cuenta:","termsSection3Content":"Debes tener 18 a\xf1os o m\xe1s para usar XSubscribe, o tener permiso de un padre/tutor. Mant\xe9n la informaci\xf3n de tu cuenta actualizada y protege tu contrase\xf1a. Eres responsable de lo que suceda en tu cuenta.","termsSection4Title":"4. Tu nombre de usuario:","termsSection4Content":"Los nombres de usuario deben respetar los derechos de los dem\xe1s. XSubscribe puede reclamar o cambiar nombres de usuario si es necesario.","termsSection5Title":"5. Gesti\xf3n de tu plan:","termsSection5Content":"XSubscribe ofrece planes gratuitos y de pago. Los planes de pago requieren un m\xe9todo de pago v\xe1lido. Puedes cambiar entre planes.","termsSection6Title":"6. Tu contenido:","termsSection6Content":"Eres responsable de tu contenido. Debe seguir nuestras directrices y la ley. XSubscribe puede eliminar contenido que viole estos est\xe1ndares.","termsSection7Title":"7. Qu\xe9 podemos hacer con tu contenido:","termsSection7Content":"XSubscribe tiene una licencia para usar, distribuir y mostrar tu c
2ontenido como parte del funcionamiento de la plataforma. Puedes controlar tu contenido a trav\xe9s de la configuraci\xf3n de privacidad.","termsSection8Title":"8. Suspensi\xf3n o cancelaci\xf3n de tu cuenta:","termsSection8Content":"XSubscribe puede suspender o cancelar cuentas por violaciones de las reglas. Tambi\xe9n puedes cancelar tu propia cuenta.","termsSection9Title":"9. Tu responsabilidad con tus visitantes y clientes:","termsSection9Content":"Eres responsable de la experiencia de las personas que visitan o interact\xfaan con tu perfil.","termsSection10Title":"10. Comentarios:","termsSection10Content":"Si proporcionas comentarios, XSubscribe puede usarlos libremente. No est\xe1s obligado a dar comentarios.","termsSection11Title":"11. Nuestra plataforma:","termsSection11Content":"Obtienes un derecho limitado para usar la plataforma para tu negocio de contenido. No la uses de manera indebida ni intentes da\xf1arla.","termsSection12Title":"12. Tarifas y pagos:","termsSection12Content":"Las tarifas de suscripci\xf3n, tarifas de transacci\xf3n y t\xe9rminos de pago se detallan en el Calendario de tarifas.","termsSection13Title":"13. Privacidad:","termsSection13Content":"El Aviso de privacidad de XSubscribe describe c\xf3mo manejamos tu informaci\xf3n.","termsSection14Title":"14. Confidencialidad:","termsSection14Content":"Mant\xe9n confidencial cualquier informaci\xf3n no p\xfablica compartida por XSubscribe.","termsSection15Title":"15. Responsabilidad:","termsSection15Content":"Eres responsable de tu uso de la plataforma. La responsabilidad de XSubscribe es limitada.","termsSection16Title":"16. Descargos de responsabilidad:","termsSection16Content":"La plataforma se proporciona \\"TAL CUAL\\" sin garant\xedas.","termsSection17Title":"17. Servicios de terceros:","termsSection17Content":"XSubscribe trabaja con servicios de terceros. Sus propios t\xe9rminos y pol\xedticas aplican.","termsSection18Title":"18. T\xe9rminos de la aplicaci\xf3n:","termsSection18Content":"Se aplican t\xe9rminos espec\xedficos al usar la aplicaci\xf3n m\xf3vil de XSubscribe.","termsSection19Title":"19. C\xf3digo abierto:","termsSection19Content":"La aplicaci\xf3n puede incluir software de c\xf3digo abierto con sus propias licencias.","termsSection20Title":"20. Algunas \xfaltimas cosas:","termsSection20Content":"Ciertas leyes pueden aplicar dependiendo de tu ubicaci\xf3n. Estos T\xe9rminos representan el acuerdo completo entre t\xfa y XSubscribe.","furtherInformation":"\xbfD\xf3nde puedes obtener m\xe1s informaci\xf3n?","termsContactInstructions":"Si tienes alguna pregunta sobre nuestros T\xe9rminos y condiciones, por favor cont\xe1ctanos:","cookieNoticeTitle":"Aviso de cookies","lastUpdatedCookies":"\xdaltima actualizaci\xf3n: domingo 7 de enero de 2023","cookieIntroduction":"Este Aviso de cookies explica c\xf3mo XSubscribe LLC utiliza cookies y tecnolog\xedas similares.","whatAreCookies":"\xbfQu\xe9 son las cookies?","cookieDefinition":"Las cookies son peque\xf1os archivos de datos almacenados en tu dispositivo cuando visitas un sitio web.","thirdPartyCookies":"Las cookies establecidas por partes distintas a XSubscribe se denominan cookies de terceros.","whyUseCookies":"\xbfPor qu\xe9 usamos cookies?","cookieUsage":"Usamos cookies propias y de terceros para varios prop\xf3sitos.","cookieContactInstructions":"Si tienes alguna pregunta sobre nuestro uso de cookies, por favor cont\xe1ctanos:","contactSpiritTitle":"Contactar a Spirit","contactInstructions":"Hola, puedes contactarme de varias maneras que se enumeran a continuaci\xf3n:","searchTitle":"BUSCAR","searchPlaceholder":"BUSCAR STREAMERS\u2026","searchResults":"RESULTADOS","suggestedStreamers":"STREAMERS SUGERIDOS","profileTitle":"Perfil","onlyJpgPngAllowed":"Solo se permiten JPG/PNG","maxFileSize2MB":"El tama\xf1o m\xe1ximo del archivo es 2MB","selectAvatar":"SELECCIONAR AVATAR","updating":"ACTUALIZANDO...","demoSubscriptionAlert":"Esto es una demostraci\xf3n. No puedes suscribirte a este creador.","subscribe":"Suscribirse","perMonth":"/mes","subscribed":"\u2713 Suscrito","successfullySubscribedTo":"Suscrito exitosamente a","weLockedIn":"\xa1Estamos comprometidos!","createYourXSubscribe":"Crea tu XSubscribe","pageNotFoundHeading":"La p\xe1gina que buscas no existe.","pageNotFoundMessage":"\xbfQuieres que este sea tu nombre de usuario?","createXSubscribeNow":"Crea tu XSubscribe ahora.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"C
2argando SuperChats...","recentSuperchats":"Mensajes y propinas recientes de SuperChat","noSuperchatsPart1":"A\xfan no hay SuperChats para","noSuperchatsPart2":"\xa1S\xe9 el primero en enviar un SuperChat!","loadingSuperChatsError":"Error al cargar SuperChats","addComment":"AGREGAR UN COMENTARIO\u2026","signInToComment":"INICIA SESI\xd3N PARA COMENTAR","send":"Enviar","signIn":"Iniciar sesi\xf3n","beTheFirstToComment":"S\xc9 EL PRIMERO EN COMENTAR.","writeReply":"Escribe una respuesta\u2026","reply":"Responder","unlike":"Ya no me gusta","like":"Me gusta","comments":"comentarios","shareThisStream":"COMPARTIR ESTA TRANSMISI\xd3N","goTo":"Ir a","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Mensajes","emailShare":"Correo electr\xf3nico","copyLink":"Copiar enlace","more":"M\xe1s","deleting":"Eliminando\u2026","anon":"An\xf3nimo","noCommentsYet":"A\xfan no hay comentarios.","sendSuperChat":"Enviar SuperChat","amountDollar":"Cantidad ($)","messageMaxChars":"Mensaje (m\xe1ximo 200 caracteres)","typeSuperChatMessage":"Escribe tu mensaje de SuperChat...","processingPayment":"Procesando...","sendAmount":"Enviar SuperChat de ${{amount}}","pleaseLogInToSuperChat":"Por favor, inicia sesi\xf3n para enviar SuperChat","pleaseEnterMessage":"Por favor, escribe un mensaje","amountMustBeAtLeast1":"La cantidad debe ser al menos $1","failedToCreateCheckout":"Error al crear la sesi\xf3n de pago","highlightedFor":"Destacado por"}'),notifications:JSON.parse('{"notifications":"Notificaciones","viaEmail":"POR CORREO ELECTR\xd3NICO","receiveNotificationThroughEmail":"RECIBIR NOTIFICACIONES POR CORREO ELECTR\xd3NICO","all":"Todas","unread":"Sin leer","noUnreadNotifications":"No hay notificaciones sin leer.","noNotificationsYet":"A\xfan no hay notificaciones.","couldntLoadNotifications":"No se pudieron cargar las notificaciones del servidor","someone":"Alguien","isLiveNow":"est\xe1 en vivo ahora","postedReplay":"public\xf3 una repetici\xf3n","repliedToComment":"respondi\xf3 a tu comentario","likedYourComment":"le gust\xf3 tu comentario","activity":"actividad","secondsAgo":"{{count}}s","minutesAgo":"{{count}}m","hoursAgo":"{{count}}h","daysAgo":"{{count}}d"}')},fr:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Connexion","logout":"D\xe9connexion","signUp":"S\'inscrire","signUpFree":"Inscription gratuite","profile":"Profil","creatorDashboard":"Tableau de bord cr\xe9ateur","notifications":"Notifications","pricing":"Tarifs","admin":"Administrateur","save":"Enregistrer","saving":"Enregistrement...","cancel":"Annuler","delete":"Supprimer","continue":"Continuer","skip":"Passer","skipForNow":"Passer pour l\'instant","done":"Termin\xe9","loading":"Chargement...","edit":"Modifier","connect":"Connecter","disconnect":"D\xe9connecter","comingSoon":"Bient\xf4t disponible","connected":"Connect\xe9","back":"Retour","upgrade":"Passer au niveau sup\xe9rieur","options":"Options","confirm":"Confirmer","areYouSure":"\xcates-vous s\xfbr ?","appearance":"Apparence","subs":"Abonnements","myPage":"Ma page","clipsTab":"CLIPS","calendarTab":"CALENDRIER","profileTab":"PROFIL","company":"Entreprise","about":"\xc0 propos","press":"Presse","contact":"Contact","followUs":"Suivez-nous","termsAndConditions":"Conditions g\xe9n\xe9rales","cookiePolicy":"Politique de cookies","connectedTo":"Connect\xe9 \xe0 {{platform}} !","planActivated":"Plan activ\xe9 ! Vous avez maintenant un acc\xe8s complet.","saved":"Enregistr\xe9 !","failedToSave":"\xc9chec de l\'enregistrement","deleting":"Suppression...","logOut":"Se d\xe9connecter","download":"T\xe9l\xe9charger","freePlan":"Plan Gratuit","planLabel":"Plan {{plan}}","outOfCredits":"\u26a1 Plus de cr\xe9dits","creditsRemaining_one":"\u26a1 {{count}} cr\xe9dit restant","creditsRemaining_other":"\u26a1 {{count}} cr\xe9dits restants","topUpCredits":"Recharger des cr\xe9dits","buy":"Acheter","manageAccount":"G\xe9rer le compte","signOut":"Se d\xe9connecter"}'),auth:JSON.parse('{"welcomeBack":"Bon retour","signInToContinue":"Connectez-vous pour continuer sur Clipbait","continueWithGoogle":"Continuer avec Google","orC
2ontinueWithEmail":"ou continuer avec un e-mail","enterYourEmail":"Entrez votre e-mail","checkYourEmail":"V\xe9rifiez votre e-mail","weSentCodeTo":"Nous avons envoy\xe9 un code \xe0","pleaseEnter6DigitCode":"Veuillez entrer le code \xe0 6 chiffres","verifyAndContinue":"V\xe9rifier et continuer","resendCodeIn":"Renvoyer le code dans {{countdown}}s","resendCode":"Renvoyer le code","byContinuingYouAgree":"En continuant, vous acceptez les","termsOfService":"Conditions d\'utilisation","privacyPolicy":"Politique de confidentialit\xe9","invalidCode":"Code invalide. R\xe9essayez.","invalidEmail":"Veuillez entrer une adresse e-mail valide","failedToSendCode":"\xc9chec de l\'envoi du code. R\xe9essayez.","signingYouIn":"Connexion en cours...","emailOrUsername":"E-mail ou nom d\'utilisateur","password":"Mot de passe","forgotPassword":"Mot de passe oubli\xe9 ?","logIn":"Se connecter","incorrectCredentials":"Nom d\'utilisateur/e-mail ou mot de passe incorrect","emailNotVerified":"E-mail non v\xe9rifi\xe9. V\xe9rifiez votre e-mail.","email":"E-mail","username":"Nom d\'utilisateur","birthdayLabel":"Date de naissance (Mois / Jour / Ann\xe9e)","monthPlaceholder":"MM","dayPlaceholder":"JJ","yearPlaceholder":"AAAA","usernameTooShort":"Le nom d\'utilisateur doit comporter au moins {{min}} caract\xe8res.","usernameTooLong":"Le nom d\'utilisateur doit comporter au maximum {{max}} caract\xe8res.","usernameInvalidFormat":"Seuls les lettres, chiffres et tirets bas sont autoris\xe9s. Pas d\'espaces.","birthdayRequired":"Veuillez s\xe9lectionner votre date de naissance compl\xe8te.","invalidEmailFormat":"Veuillez entrer une adresse e-mail valide.","passwordRequired":"Le mot de passe est obligatoire.","passwordTooShort":"Le mot de passe doit comporter au moins 3 caract\xe8res.","emailAvailable":"L\'e-mail est valide.","usernameAvailable":"Le nom d\'utilisateur est disponible.","usernameTaken":"Ce nom d\'utilisateur est d\xe9j\xe0 pris.","emailTaken":"Un compte avec cet e-mail existe d\xe9j\xe0.","passwordHint":"Au moins 3 caract\xe8res.","fixErrorsToContinue":"Corrigez les erreurs pour continuer","bySigningUpYouAgree":"En vous inscrivant, vous acceptez nos","termsOfUse":"Conditions d\'utilisation","accountCreated":"Compte cr\xe9\xe9 !","registrationFailed":"\xc9chec de l\'inscription. Veuillez r\xe9essayer.","alreadyHaveAccount":"Vous avez d\xe9j\xe0 un compte ?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"Inscrivez-vous et commencez \xe0 vous connecter !","termsAgreementFull":"En vous inscrivant, vous acceptez nos Conditions, notre Politique de confidentialit\xe9 et notre Politique de cookies.","resetYourPassword":"R\xe9initialisez votre mot de passe","enterEmailToReset":"Entrez l\'e-mail du compte que vous souhaitez r\xe9initialiser","pleaseEnterEmail":"Veuillez entrer un e-mail","resetPassword":"R\xe9initialiser le mot de passe","pleaseEnterYourEmail":"Veuillez entrer votre e-mail","couldNotStartRecovery":"Impossible de d\xe9marrer la r\xe9cup\xe9ration.","backToLogin":"Retour \xe0 la connexion","emailVerification":"V\xe9rification de l\'e-mail","weSent4DigitCode":"Nous avons envoy\xe9 un code \xe0 4 chiffres \xe0","yourEmail":"votre e-mail","pleaseEnter4DigitCode":"Veuillez entrer le code \xe0 4 chiffres.","verifyAccount":"V\xe9rifier le compte","incorrectOrExpiredCode":"Le code que vous avez entr\xe9 est incorrect ou a expir\xe9. R\xe9essayez ou renvoyez-le.","didntReceiveCode":"Vous n\'avez pas re\xe7u le code ?","resendIn":"Renvoyer dans {{timer}}s","sending":"Envoi en cours\u2026","verifying":"V\xe9rification en cours\u2026","newCodeSent":"Un nouveau code a \xe9t\xe9 envoy\xe9 \xe0 votre e-mail.","missingEmail":"E-mail manquant.","failedToResendCode":"\xc9chec du renvoi du code. R\xe9essayez dans un instant.","changePassword":"Changer le mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmer le mot de passe","passwordsDontMatch":"Les mots de passe ne correspondent pas","failedToResetPassword":"\xc9chec de la r\xe9initialisation du mot de passe","couldNotResetPassword":"Impossible de r\xe9initialiser le mot de passe.","invali
2dOrExpiredCode":"Code invalide ou expir\xe9.","passwordSuccessfullySet":"Mot de passe d\xe9fini avec succ\xe8s","successTitle":"Succ\xe8s !","emailSentInstructions":"L\'e-mail de v\xe9rification de votre compte a \xe9t\xe9 envoy\xe9 \xe0 votre adresse e-mail. Veuillez ouvrir cet e-mail pour v\xe9rifier votre compte. Si vous ne voyez pas cet e-mail dans votre bo\xeete de r\xe9ception dans les 15 minutes, recherchez-le dans votre dossier de courrier ind\xe9sirable. Si vous le trouvez l\xe0, veuillez marquer l\'e-mail comme \xab Non ind\xe9sirable \xbb.","emailVerifiedSuccessfully":"E-mail v\xe9rifi\xe9 avec succ\xe8s","emailSuccessfullyVerifiedAlert":"E-mail v\xe9rifi\xe9 avec succ\xe8s","notFound404":"404 Page non trouv\xe9e"}'),onboarding:JSON.parse('{"title":"Salut, je suis Clipbait","subtitle":"Je suis votre d\xe9coupeur de clips IA pour vos streams","factHeader":"Voici quelques choses que vous devez savoir sur moi :","fact1":"J\'ai \xe9t\xe9 cr\xe9\xe9 par un monteur d\'\xe9lite, mes comp\xe9tences s\'am\xe9liorent constamment","fact2":"J\'ai \xe9t\xe9 cr\xe9\xe9 pour AIDER \xe0 faciliter la vie des streamers et des clippers","letsGetStarted":"C\'est parti","questionUserType":"\xcates-vous un Clipper ou un Streamer ?","imAClipper":"Je suis un Clipper","imAStreamer":"Je suis un Streamer","questionStreamerNameClipper":"Quel est le nom du streamer ?","questionStreamerNameStreamer":"Quel est votre nom de streamer ?","placeholderStreamerNameClipper":"ex. Kai Cenat","placeholderStreamerNameStreamer":"ex. Votre nom d\'affichage","streamerNameHint":"Cela aide l\'IA \xe0 \xe9crire de meilleures accroches pour les clips.","questionChannelUsernameClipper":"Quel est le nom d\'utilisateur de la cha\xeene du streamer pour lequel vous faites des clips ?","questionChannelUsernameStreamer":"Avant de commencer, quel est votre nom d\'utilisateur de cha\xeene ? (texte simple, sans symbole @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"Sur quelle plateforme diffusent-ils ?","questionPlatformStreamer":"Quelle est votre plateforme de streaming principale ?","twitchStreamer":"Je streame sur Twitch","rumbleStreamer":"Je streame sur Rumble","youtubeStreamer":"Je streame sur YouTube","kickStreamer":"Je streame sur Kick","xStreamer":"Je streame sur X","ganjingStreamer":"Je streame sur Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"T\xe9l\xe9chargez une photo de profil","profilePictureHint":"Cela aide notre IA \xe0 vous identifier dans la vid\xe9o pour cr\xe9er de meilleurs clips.","choosePhoto":"Choisir une photo","uploading":"T\xe9l\xe9chargement...","questionOpportunitiesClipper":"Voulez-vous des invitations pour gagner de l\'argent en faisant des clips ?","questionOpportunitiesStreamer":"Voulez-vous embaucher des Clippers Clipbait pour vos streams ?","yesInterested":"Oui, \xe7a m\'int\xe9resse","notRightNow":"Pas maintenant","questionConnectPages":"Connectez vos pages pour publier des clips","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"Quel type de contenu cr\xe9ez-vous ?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay avec commentaires, moments clutch, r\xe9actions","streamTypeTalkingHead":"Face cam\xe9ra","streamTypeTalkingHeadDesc":"Podcasts, interviews, r\xe9actions, commentaires","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming en direct, \xe9v\xe9nements, contenu en ext\xe9rieur","streamTypeMusic":"Musique","streamTypeMusicDesc":"Performances live, sets DJ, production musicale","finishSetup":"Terminer la configuration","ownStreamer":"Je streame sur OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"G\xe9n\xe9rateur de clips propuls\xe9 par l\'IA","turnStreamsInto":"Transformez vos streams en","viralClips":"clips viraux","pasteUrl":"Coller l\'URL","uploadVideo":"T\xe9l\xe9charger une vid\xe9o","pasteYouTubeLivestream":"Collez votre livestream YouTube","pasteRumbleLivestream":"Collez votre livestream Rumble","pasteGanjingWorldLink":"Collez votre lien Ganjing World","pasteKickLink":"Collez votre lien Kick","pasteTwitchLink":"Collez votre lien Twitch","pasteXLink":"Collez votre lien X","generateClips":"G\xe9n\xe9rer des clips","starting":"D\xe9marrage...","uploadingProgress":"T\xe9l\xe9chargement {{progress}}%...","processing":"Traitement","yourClips":"Vos clips","loadingClips":"Chargement des clips...","noClipsYet":"Pas encore de clips","pasteStreamUrl":"Collez une URL de stream pour commencer","clipsReady":"{{count}} clips pr\xeats !","clipCount":"{{count}} clips","dropFileHere":"D\xe9posez votre fichier ici","dragAndDrop":"Glissez-d\xe9posez ou cliquez pour choisir","mp4OrMovMax2GB":"MP4 ou MOV, max 2 Go","freeTrialBanner":"Vous \xeates en essai gratuit. Certaines fonctionnalit\xe9s sont limit\xe9es. Passez au niveau sup\xe9rieur pour tout d\xe9bloquer.","pasteVideoLink
2First":"Collez d\'abord un lien vid\xe9o","selectPlatformInSettings":"S\xe9lectionnez votre plateforme dans les Param\xe8tres","setChannelUsername":"D\xe9finissez votre nom d\'utilisateur de cha\xeene dans les Param\xe8tres","onlyMp4MovSupported":"Seuls les fichiers MP4 et MOV sont pris en charge","fileMustBeUnder2GB":"Le fichier doit faire moins de 2 Go","selectVideoFileFirst":"S\xe9lectionnez d\'abord un fichier vid\xe9o","clippingStarted":"D\xe9coupage lanc\xe9 !","uploadCompleteClippingStarted":"T\xe9l\xe9chargement termin\xe9 \u2014 d\xe9coupage lanc\xe9 !","uploadFailed":"\xc9chec du t\xe9l\xe9chargement","failedToStartClipping":"\xc9chec du lancement du d\xe9coupage","havingTroubleWithLink":"Ce lien pose probl\xe8me \u2014 essayez de t\xe9l\xe9charger la vid\xe9o et de l\'envoyer, ou essayez un lien YouTube","reachedUploadLimit":"Vous avez atteint votre limite de t\xe9l\xe9chargements ce mois-ci.","jobCancelled":"T\xe2che annul\xe9e","projectDeleted":"Projet supprim\xe9","failedToDeleteProject":"\xc9chec de la suppression du projet","deleteProject":"Supprimer le projet ?","cannotBeUndone":"Cette action est irr\xe9versible.","jobStillProcessing":"Cette t\xe2che est encore en cours de traitement","jobCancelledClipsDeleted":"La t\xe2che sera annul\xe9e et tous les clips seront d\xe9finitivement supprim\xe9s.","allClipsDeleted":"Tous les clips seront d\xe9finitivement supprim\xe9s.","creatingYourClips":"Cr\xe9ation de vos clips","wellEmailYouWhenReady":"Nous vous enverrons un e-mail quand ce sera pr\xeat","estimatingTime":"Estimation en cours...","underTwoMinutes":"moins de 2 minutes","minutesRemaining":"~{{count}} min restantes","hoursMinutesRemaining":"~{{hours}}h {{minutes}}min restantes","almostDone":"presque termin\xe9...","phaseDownloading":"T\xe9l\xe9chargement de la vid\xe9o...","phaseDownloaded":"T\xe9l\xe9chargement termin\xe9","phaseExtractingAudio":"Extraction de l\'audio...","phaseTranscribing":"Transcription de l\'audio...","phaseTranscribingLong":"(c\'est l\'\xe9tape la plus lente pour les longs streams)","phaseAnalyzing":"L\'IA s\xe9lectionne les meilleurs moments...","phaseRendering":"Rendu des clips...","phaseDone":"Termin\xe9 !","tryUploadingInstead":"Essayez de t\xe9l\xe9charger \xe0 la place","processingStatus":"Traitement en cours...","clipsReadyCount":"{{count}} clips pr\xeats","schedule":"Programmer","post":"Publier","goodClip":"Bon clip","badClip":"Mauvais clip","downloadClip":"T\xe9l\xe9charger le clip","moreOptions":"Plus d\'options","clipDefaultTitle":"Clip {{number}}","funMessages":{"goGrabCoffee":"Allez prendre un caf\xe9","timeForStretch":"C\'est l\'heure de s\'\xe9tirer","takeQuickWalk":"Faites une petite promenade","hydrateYourself":"Hydratez-vous","doPushups":"Faites quelques pompes","callYourMom":"Appelez votre maman","petYourDog":"Caressez votre chien","goForSwim":"Allez nager","touchSomeGrass":"Allez prendre l\'air","checkYourPosture":"V\xe9rifiez votre posture"},"funMessagesModal":{"goForSwim":"Allez nager pendant qu\'on fait notre magie","perfectTimeForCoffee":"Le moment id\xe9al pour prendre un caf\xe9","quickStretch":"Et si vous faisiez quelques \xe9tirements ?","hydrationCheck":"Contr\xf4le hydratation ! Buvez de l\'eau","takeWalk":"Allez vous promener, on s\'en occupe","callSomeone":"Appelez quelqu\'un que vous aimez","petYourPet":"Caressez votre animal si vous en avez un","touchGrass":"Allez prendre l\'air, litt\xe9ralement","jumpingJacks":"Faites 10 sauts en \xe9toile","victoryDance":"Entra\xeenez votre danse de la victoire","deepBreaths":"Respirez profond\xe9ment... vous faites du super boulot","timeToSnack":"C\'est le moment de grignoter"},"editClip":"Modifier le clip","clipEditor":"\xc9diteur de clips","trimIn":"D\xe9but","trimOut":"Fin","previewTrim":"Aper\xe7u du rognage","saveCaption":"Enregistrer","saveAndDownload":"Enregistrer et t\xe9l\xe9charger","export":"Exporter","exportComplete":"Exportation termin\xe9e !","exportNotSupported":"L\'exportation n\'est pas prise en charge dans ce navigateur","backToClips":"Retour","uploadLimitReached":"Limite de t\xe9l\xe9chargement atteinte","limitResets":"Votre limite se r\xe9initialise le {{date}}","gotIt":"Compris","failed":"\xc9chec","creditsRefunded":"Cr\xe9dits rembours\xe9s","tryAgainDifferentLink":"R\xe9essayez ou utilisez un lien diff\xe9rent.","noSpeechInVideo":"Le lien que vous avez coll\xe9 ne contenait aucune parole. Essayez-en un o\xf9 le cr\xe9ateur parle.","retry":"R\xe9essayer","cancelJobBtn":"Annuler","hookScore":"Score d\'accroche","best":"Meilleur","clipsSelected":"{{count}} s\xe9lectionn\xe9(s)","switchToFileUpload":"Passer au t\xe9l\xe9chargement de fic
2hier","switchToURL":"Passer \xe0 l\'URL","selectContentTypeFirst":"Veuillez d\'abord s\xe9lectionner un type de contenu.","livestreamsNotSupported":"Les livestreams ne sont pas encore pris en charge \u2014 veuillez utiliser un VOD ou une vid\xe9o enregistr\xe9e.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"Musique","documentary":"Documentaire"},"cancelThisJob":"Annuler cette t\xe2che ?","deleteTheseAssets":"Supprimer ces ressources ?","willStopProcessingRemoveJob":"Cela arr\xeatera le traitement et supprimera la t\xe2che.","keepGoing":"Continuer","noKeepThem":"Non, les garder","yesCancelJob":"Oui, annuler la t\xe2che","yesDeleteForever":"Oui, supprimer d\xe9finitivement","titleCaption":"Titre de sous-titre","information":"Informations","duration":"Dur\xe9e","platform":"Plateforme","creator":"Cr\xe9ateur","rateThisClip":"\xc9valuer ce clip","type":"Type","format":"Format","clipsLabel":"Clips","slowConnection":"Connexion lente","couldntLoad":"Impossible de charger","tapToRetry":"Appuyez pour r\xe9essayer","clipsDeleted_one":"{{count}} clip supprim\xe9","clipsDeleted_other":"{{count}} clips supprim\xe9s"}'),schedule:JSON.parse('{"shareClip":"Partager le clip","loadingPlatforms":"Chargement des plateformes...","noConnectedPlatforms":"Aucune plateforme connect\xe9e.","connectSocialsToSchedule":"Connectez vos comptes de r\xe9seaux sociaux pour programmer des publications.","connectYourAccounts":"Connectez vos comptes","postTo":"Publier sur :","deselectAll":"Tout d\xe9s\xe9lectionner","selectAll":"Tout s\xe9lectionner","caption":"L\xe9gende","writeCaptionPlaceholder":"\xc9crivez une l\xe9gende pour votre publication...","scheduleAction":"Programmer","saveAndSchedule":"Enregistrer et programmer la publication","postAction":"Publier","publishImmediately":"Publier imm\xe9diatement","scheduling":"Programmation...","publishing":"Publication...","viewPost":"Voir la publication","postedSuccessfully":"Publi\xe9 avec succ\xe8s !","partiallyPosted":"Partiellement publi\xe9","failedToPost":"\xc9chec de la publication","selectAtLeastOnePlatform":"S\xe9lectionnez au moins une plateforme","selectATime":"S\xe9lectionnez une heure","selectFutureTime":"Veuillez s\xe9lectionner une heure future","postScheduled":"Publication programm\xe9e !","failedToSchedule":"\xc9chec de la programmation","failedToPublish":"\xc9chec de la publication","postedSuccess":"Publi\xe9 avec succ\xe8s !","postedToSomePlatforms":"Publi\xe9 sur certaines plateformes","failedToPostError":"\xc9chec de la publication","scheduledPost":"Publication programm\xe9e","postingTo":"Publication sur","writeCaptionShort":"\xc9crivez une l\xe9gende...","saveChanges":"Enregistrer les modifications","cancelScheduledPost":"Annuler cette publication programm\xe9e ?","clipWontBePosted":"Ce clip ne sera pas publi\xe9 sur vos plateformes s\xe9lectionn\xe9es.","keepIt":"Conserver","cancelling":"Annulation...","yesCancelPost":"Oui, annuler la publication","changesSaved":"Modifications enregistr\xe9es","failedToSaveChanges":"\xc9chec de l\'enregistrement des modifications","postCancelled":"Publication annul\xe9e","failedToCancelPost":"\xc9chec de l\'annulation de la publication","todayAt":"Aujourd\'hui \xe0","tomorrowAt":"Demain \xe0","upcomingClips":"Clips \xe0 venir","noScheduledClipsThisMonth":"Aucun clip programm\xe9 ce mois-ci.","scheduleClipsHint":"Programmez des clips apr\xe8s la fin du rendu.","cancelScheduledPostConfirm":"Annuler la publication programm\xe9e ?","cancelPostMessage":"Cela supprimera la publication de votre calendrier. Vous pourrez toujours la reprogrammer plus tard.","cancelPost":"Annuler la publication","sun":"Dim","mon":"Lun","tue":"Mar","wed":"Mer","thu":"Jeu","fri":"Ven","sat":"Sam","untitledClip":"Clip sans titre","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Comptes connect\xe9s","linkSocialsToPost":"Liez vos r\xe9seaux sociaux pour publier des clips directement.","yourChannel":"Votre cha\xeene","watermarkDescription":"Votre photo de profil aide l\'IA \xe0 vous identifier dans la vid\xe9o pour cr\xe9er de meilleurs clips.","streamerName":"Nom du streamer","placeholderStreamerName":"ex. Kai Cenat","streamerNameHint":"Le nom du streamer pour lequel vous faites des clips. Cela aide l\'IA \xe0 \xe9crire de meilleures accroches.","channelUsername":"Nom d\'utilisateur de la cha\xeene","placeholderChannelUsername":"Votre nom d\'utilisateur de streaming","platform":"Plateforme","selectPlatform":"S\xe9lectionner la plateforme","tapToChangePhoto":"Appuyez pour changer la photo","pleaseSelectImageFile":"Veuillez s\xe9lectionner un fichier image","imageMustBeLess5MB":"L\'image doit faire moins de 5 Mo","profilePictureUpdated":"Photo de profil mise \xe0 jour !","failedToUploadPicture":"\xc9chec du t\xe9l\xe9chargement de l\'image","disconnectedFrom":"D\xe9connect\xe9 de {{platform}}","failedToDisconnect":"\xc9chec de la d\xe9connexion","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","
2socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"Param\xe8tres d\'abonnement","stripeConnectionStatus":"\xc9tat de la connexion Stripe","stripeConnectedMessage":"Votre compte Stripe est connect\xe9 et pr\xeat \xe0 recevoir des paiements","manageStripeAccount":"G\xe9rer le compte Stripe","stripeConnectInstructions":"Connectez votre compte Stripe pour commencer \xe0 recevoir des paiements d\'abonnement...","stripeSetupWarning":"IMPORTANT : Vous devez compl\xe9ter l\'int\xe9gralit\xe9 du processus de configuration de Stripe...","stripeSupportMessage":"Des probl\xe8mes ? Contactez le support \xe0 [email protected]...","connectingToStripe":"Connexion \xe0 Stripe...","connectStripeAccount":"Connecter le compte Stripe","enableSubscriptions":"Activer les abonnements","monthlySubscriptionPrice":"Prix de l\'abonnement mensuel (USD)","subscriptionDescription":"Description de l\'abonnement","describeSubscriptionBenefits":"D\xe9crivez ce \xe0 quoi les abonn\xe9s auront acc\xe8s...","saveSettings":"Enregistrer les param\xe8tres","settingsSaved":"Param\xe8tres enregistr\xe9s avec succ\xe8s !","savingFailed":"\xc9chec de l\'enregistrement des param\xe8tres. Veuillez r\xe9essayer.","stripeConnectionError":"\xc9chec de la connexion \xe0 Stripe. Veuillez r\xe9essayer.","stripeDashboardError":"\xc9chec de l\'ouverture du tableau de bord Stripe. Veuillez r\xe9essayer.","stripeSetupError":"\xc9chec de la configuration de Stripe. Veuillez r\xe9essayer.","xsubscribeAdmin":"Administration XSubscribe","preview":"Aper\xe7u","fetchLinksError":"\xc9chec de la r\xe9cup\xe9ration des liens utilisateur","deleteLinkError":"\xc9chec de la suppression du lien","orderUpdateSuccess":"Valeurs d\'ordre mises \xe0 jour sur le serveur","orderUpdateError":"\xc9chec de la mise \xe0 jour des valeurs d\'ordre sur le serveur","addLinkError":"\xc9chec de l\'ajout du lien","profileSection":"Profil","pickAnImage":"Choisir une image","remove":"Supprimer","usernameInputPlaceholder":"Votre identifiant X (@utilisateur)","bioInputPlaceholder":"Pourquoi les gens devraient-ils s\'abonner ?","getUnlimitedCustomization":"Obtenez une personnalisation illimit\xe9e","verifiedCheckmark":"Badge de v\xe9rification","customBackgroundImages":"Images d\'arri\xe8re-plan personnalis\xe9es","removeXSubscribeLogo":"Supprimer le logo XSubscribe","dollarPerMonth":"9 $/mois apr\xe8s","flatColour":"Couleur unie","image":"Image","pickAColor":"Choisir une couleur","hideXSubscribeLogo":"Masquer le logo XSubscribe","errorUpdatingProfileTitle":"Erreur lors de la mise \xe0 jour du titre du profil","errorUpdatingBio":"Erreur lors de la mise \xe0 jour de la biographie du profil","errorSavingBackgroun
2dColor":"Erreur lors de l\'enregistrement de la couleur d\'arri\xe8re-plan","errorUpdatingEffects":"Erreur lors de la mise \xe0 jour des effets d\'arri\xe8re-plan","errorUpdatingLogo":"Erreur lors de la mise \xe0 jour du logo utilisateur","invalidUser":"currentUser n\'est pas valide.","errorFetchingLogoStatus":"Erreur lors de la r\xe9cup\xe9ration du statut initial du logo","errorFetchingUserData":"Erreur lors de la r\xe9cup\xe9ration des donn\xe9es utilisateur","errorFetchingProfilePic":"Erreur lors de la r\xe9cup\xe9ration de la photo de profil","uploadFailed":"\xc9chec du t\xe9l\xe9chargement","accountSettings":"Param\xe8tres du compte","manageSubscription":"G\xe9rer l\'abonnement","manageSubscriptionDesc":"Mettre \xe0 jour le mode de paiement, consulter les factures ou annuler","deleteAccount":"Supprimer le compte","deleteAccountWarning":"Cette action est irr\xe9versible. Toutes vos donn\xe9es seront d\xe9finitivement supprim\xe9es.","typeDeleteToConfirm":"Tapez DELETE pour confirmer","accountDeleted":"Compte supprim\xe9 avec succ\xe8s","failedToDeleteAccount":"\xc9chec de la suppression du compte","failedToOpenBilling":"\xc9chec de l\'ouverture du portail de facturation","yourBrands":"Vos marques","addBrand":"Ajouter une marque","brandName":"Nom de la marque","brandNamePlaceholder":"Entrez le nom de la marque","createBrand":"Cr\xe9er une marque","switchBrand":"Changer de marque","deleteBrand":"Supprimer la marque","cannotDeleteLastBrand":"Impossible de supprimer votre seule marque","brandCreated":"Marque cr\xe9\xe9e !","brandSwitched":"Marque chang\xe9e !","brandDeleted":"Marque supprim\xe9e","failedToCreateBrand":"\xc9chec de la cr\xe9ation de la marque","failedToSwitchBrand":"\xc9chec du changement de marque","failedToDeleteBrand":"\xc9chec de la suppression de la marque","captionPresets":"Style des sous-titres","captionPresetsDesc":"D\xe9finissez l\'apparence par d\xe9faut des sous-titres sur vos clips. Les nouveaux clips utiliseront votre style actif.","presetName":"Nom du style","presetNamePlaceholder":"ex. Rouge Gras","addPreset":"Ajouter un style","editPreset":"Modifier","deletePreset":"Supprimer","createPreset":"Cr\xe9er un style","presetCreated":"Style cr\xe9\xe9 !","presetActivated":"Style de sous-titres chang\xe9 !","presetDeleted":"Style supprim\xe9","cannotDeleteLastPreset":"Impossible de supprimer votre seul style","failedToSwitchPreset":"\xc9chec du changement de style","failedToDeletePreset":"\xc9chec de la suppression du style","captionPreview":"Ceci est un aper\xe7u de vos sous-titres","captionColor":"Couleur","captionFont":"Police","captionPosition":"Position","captionWidth":"Largeur","streamType":"Type de contenu","streamTypeHint":"Quel type de contenu cr\xe9ez-vous ? Cela aide l\'IA \xe0 adapter les clips \xe0 votre style.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay avec commentaire, moments clutch, r\xe9actions","streamTypeTalkingHead":"Face cam\xe9ra","streamTypeTalkingHeadDesc":"Podcasts, interviews, r\xe9actions, commentaires","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming en direct, \xe9v\xe9nements, contenu ext\xe9rieur","streamTypeMusic":"Musique","streamTypeMusicDesc":"Performances live, sets DJ, production musicale","streamTypeDocumentary":"Documentaire","streamTypeDocumentaryDesc":"Documentaires, mini-docs et films","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"D\xe9bloquez Clipbait","getFullAccess":"Obtenez un acc\xe8s complet \xe0 la g\xe9n\xe9ration de clips par IA","monthly":"Mensuel","annual":"Annuel","save15Percent":"\xc9conomisez 15%","perMonth":"/mois","perMonthShort":"/mois","billedAsPerYear":"Factur\xe9 {{amount}} $/an","upload30Videos":"T\xe9l\xe9chargez 30 vid\xe9os par mois","upTo2Hours":"Vid\xe9os jusqu\'\xe0 2 heures","generate300Clips":"G\xe9n\xe9rez 300 clips par mois","downloadAndSchedule":"T\xe9l\xe9chargez et programmez des clips","upTo5Accounts":"Jusqu\'\xe0 5 comptes de marque","getStarted":"Commencer","redirecting":"Redirection...","exclusiveOffer":"OFFRE EXCLUSIVE","russellBrandsPick":"Le choix de Russell Brand","get10PercentOff":"Obtenez 10% de r\xe9duction sur Clipbait Pro \u2014 exclusif pour le public de Russell","discountApplied":"10% de r\xe9duction appliqu\xe9 automatiquement","claim10Off":"R\xe9clamer 10% de r\xe9duction","noThanksFullPrice":"Non merci, je paierai le plein tarif","generateWithoutLimits":"G\xe9n\xe9rer sans limites","upgradePlan":"Changer de plan","buyCredits":"Acheter des cr\xe9dits","creditsNeverExpireNote":"Les cr\xe9dits n\'expirent jamais et sont utilis\xe9s apr\xe8s \xe9puisement de votre quota mensuel.","mostPopular":"Le plus populaire","bestValue":"Meilleur rapport qualit\xe9-prix","generationsPerMonth":"{{count}} g\xe9n\xe9rations/mois","twentyPercentOff":"20% de r\xe9duction","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"\xc9conomisez 16%","save26Percent":"\xc9conomisez 26%","perMonthBilledAnnually":"par mois, factur\xe9 annuellement"}'),pages:JSON.parse('{"foundersStoryTitle":"L\'histoire de nos fondateurs","foundersStoryContent":"En 2021, Spirit a \xe9t\xe9 confront\xe9 \xe0 l\'emprise \xe9touffante de la censure sur les plateformes grand public. D\xe9termin\xe9 \xe0 trouver un espace o\xf9 la libre expression prosp\xe9rait, il a d\xe9couvert une plateforme qui r\xe9sonnait avec ses convictions en faveur du dialogue ouvert et de la libert\xe9 cr\xe9ative. Ce moment d\xe9cisif a fait germer l\'id\xe9e de ce qui allait devenir XSubscribe \u2014 une plateforme o\xf9 les cr\xe9ateurs et leurs communaut\xe9s pouvaient se connecter de mani\xe8re authentique, sans crainte de censure. Spirit, avec sa vision unique et sa passion pour l\'autonomisation des cr\xe9ateurs, a pos\xe9 les fondations d\'une nouvelle \xe8re de mon\xe9tisation du contenu. Alors que XSubscribe continue d\'\xe9voluer, il reste ancr\xe9 dans la conviction que chaque voix m\xe9rite d\'\xeatre entendue. Que vous soyez un cr\xe9ateur exp\xe9riment\xe9 ou que vous d\xe9butiez, XSubscribe est l\xe0 pour vous aider \xe0 construire une carri\xe8re durable en faisant ce que vous aimez.","termsTitle":"Conditions g\xe9n\xe9rales","lastUpdatedTerms":"Derni\xe8re mise \xe0 jour : dimanche 7 janvier 2024","termsSection1Title":"1. Bienvenue sur XSubscribe :","termsSection1Content":"Ces Conditions d\'utilisation (\xab Conditions \xbb) r\xe9gissent l\'utilisation des services XSubscribe, y compris le site web, les API, les applications mobiles et tous les services associ\xe9s. En utilisant notre plateforme, vous acceptez de suivre ces Conditions.","termsSection2Title":"2. Modifications des Conditions :","termsSection2Content":"XSubscribe peut mettre \xe0 jour ces Conditions de temps en temps. Vous serez inform\xe9 de tout changement majeur, et l\'utilisation continue de la plateforme apr\xe8s les modifications signifie que vous acceptez les nouvelles conditions.","termsSection3Title":"3. Votre compte :","termsSection3Content":"Vous devez avoir 18 ans ou plus pour utiliser XSubscribe, ou avoir l\'autorisation d\'un parent/tuteur. Maintenez les informations de votre compte \xe0 jour et s\xe9curisez votre mot de passe. Vous \xeates responsable de ce qui se passe sur votre compte.","termsSection4Title":"4. Votre nom d\'utilisateur :","termsSection4Content":"Les noms d\'utilisateur doivent respecter les droits des autres. XSubscribe peut r\xe9cup\xe9rer ou modifier les noms d\'utilisateur si n\xe9cessaire.","termsSection5Title":"5. Gestion de votre plan :","termsSection5Content":"XSubscribe propose des plans gratuits et payants. Les plans payants n\xe9cessitent un moyen de paiement valide. Vous pouvez changer de plan.","termsSection6Title":"6. Votre contenu :","termsSection6Content":"Vous \xeates responsable de votre contenu. Il doit respecter nos directives et la loi. XSubscribe peut supprimer le contenu qui enfreint ces normes.","termsSection7Title":"7. Ce que nous pouvons faire avec votre contenu :","termsSection7Content":"XSubscribe dispose d\'une licence pour utiliser, distribuer et afficher votre contenu dans le cadre du fonctionnement de la plateforme. Vous pouvez contr\xf4ler votre contenu via les param\xe8tres de confidentialit\xe9.","termsSection8Title":"8. Suspension ou annulation de votre compte :","termsSection8Content":"XSubscribe peut suspendre ou annuler des comptes pour violation des r\xe8gles. Vous pouvez \xe9galement annuler votre propre compte.","termsSection9Title":"9. Votre responsabilit\xe9 envers vos visiteurs et clients :","termsSection9Content":"Vous \xeates responsable de l\'exp\xe9rience des personnes qui visitent ou interagissent avec votre profil.","termsSection10Title":"10. Commentaires :","termsSection10Content":"Si vous fournissez des commentaires, XSubscribe peut les utiliser librement. Vous n\'\xeates pas oblig\xe9 de donner des commentaires.","termsSection11Title":"11. Notre plateforme :","termsSection11Content":"Vous obtenez un droit limit\xe9 d\'utiliser la plateforme pour votre activit\xe9 de contenu. N\'en abusez pas et n\'essayez pas de lui nuire.","termsSection12Title":"12. Frais et paiement :","termsSection12Content":"Les frais d\'abonnement, les frais de transaction et les conditions de paiement sont d\xe9taill\xe9s dans le Bar\xe8me des frais.","termsSection13Title":"13. Confidentialit\xe9 :","termsSection13Content":"L\'Avis de confidentialit\xe9 de XSubscribe d\xe9crit comment nous traitons vos informations.","termsSection14Title":"14. Confidentialit\xe9 des informations :","termsSection14Content":"Gardez confidentielle toute information non publique partag\xe9e par XSubscribe.","termsSection15Title":"15. Responsabilit\xe9 :","termsSection15Content":"Vous \xeates responsable de votre utilisation de la plateforme. La responsabilit\xe9 de XSubscribe est limit\xe9e.","termsSection16Title":"16. Avertissements :","termsSection16Content":"La plateforme est fournie \xab EN L\'\xc9TAT \xbb sans garanties.","termsSection17Title":"17. Services tiers :","termsSection17Content":"XSubscribe travaille avec des services tiers. Leurs propres conditions et politiques s\'appliquent.","termsSection18Title":"18. Conditions de l\'application :","termsSection18Content":"Des conditions sp\xe9cifiques s\'appliquent lors de l\'utilisation de l\'application mobile XSubscribe.","termsSection19Title":"19. Code source ouvert :","termsSection19Content":"L\'application peut inclure des logiciels open source avec leurs propres licences.","termsSection20Title":"20. Quelques derni\xe8res choses :","termsSection20Content":"Certaines lois peuvent s\'appliquer en fonction de votre localisation. Ces Conditions repr\xe9sentent l\'accord complet entre vou
2s et XSubscribe.","furtherInformation":"O\xf9 obtenir plus d\'informations ?","termsContactInstructions":"Si vous avez des questions sur nos Conditions g\xe9n\xe9rales, veuillez nous contacter :","cookieNoticeTitle":"Avis sur les cookies","lastUpdatedCookies":"Derni\xe8re mise \xe0 jour : dimanche 7 janvier 2023","cookieIntroduction":"Cet Avis sur les cookies explique comment XSubscribe LLC utilise les cookies et technologies similaires.","whatAreCookies":"Qu\'est-ce que les cookies ?","cookieDefinition":"Les cookies sont de petits fichiers de donn\xe9es stock\xe9s sur votre appareil lorsque vous visitez un site web.","thirdPartyCookies":"Les cookies plac\xe9s par des parties autres que XSubscribe sont appel\xe9s cookies tiers.","whyUseCookies":"Pourquoi utilisons-nous des cookies ?","cookieUsage":"Nous utilisons des cookies propri\xe9taires et tiers \xe0 plusieurs fins.","cookieContactInstructions":"Si vous avez des questions sur notre utilisation des cookies, veuillez nous contacter :","contactSpiritTitle":"Contacter Spirit","contactInstructions":"Salut, vous pouvez me contacter de plusieurs fa\xe7ons list\xe9es ci-dessous :","searchTitle":"RECHERCHER","searchPlaceholder":"RECHERCHER DES STREAMERS\u2026","searchResults":"R\xc9SULTATS","suggestedStreamers":"STREAMERS SUGG\xc9R\xc9S","profileTitle":"Profil","onlyJpgPngAllowed":"Seuls les formats JPG/PNG sont accept\xe9s","maxFileSize2MB":"La taille maximale du fichier est de 2 Mo","selectAvatar":"S\xc9LECTIONNER UN AVATAR","updating":"MISE \xc0 JOUR...","demoSubscriptionAlert":"Ceci est une d\xe9mo. Vous ne pouvez pas vous abonner \xe0 ce cr\xe9ateur.","subscribe":"S\'abonner","perMonth":"/mois","subscribed":"\u2713 Abonn\xe9","successfullySubscribedTo":"Abonn\xe9 avec succ\xe8s \xe0","weLockedIn":"C\'est dans la poche.","createYourXSubscribe":"Cr\xe9ez votre XSubscribe","pageNotFoundHeading":"La page que vous recherchez n\'existe pas.","pageNotFoundMessage":"Vous voulez que ce soit votre nom d\'utilisateur ?","createXSubscribeNow":"Cr\xe9ez votre XSubscribe maintenant.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"Chargement des SuperChats...","recentSuperchats":"Messages et pourboires SuperChat r\xe9cents","noSuperchatsPart1":"Pas encore de SuperChats pour","noSuperchatsPart2":"Soyez le premier \xe0 envoyer un SuperChat !","loadingSuperChatsError":"\xc9chec du chargement des SuperChats","addComment":"AJOUTER UN COMMENTAIRE\u2026","signInToComment":"CONNECTEZ-VOUS POUR COMMENTER","send":"Envoyer","signIn":"Se connecter","beTheFirstToComment":"SOYEZ LE PREMIER \xc0 COMMENTER.","writeReply":"\xc9crire une r\xe9ponse\u2026","reply":"R\xe9pondre","unlike":"Je n\'aime plus","like"
2:"J\'aime","comments":"commentaires","shareThisStream":"PARTAGER CE STREAM","goTo":"Aller \xe0","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Messages","emailShare":"E-mail","copyLink":"Copier le lien","more":"Plus","deleting":"Suppression\u2026","anon":"Anonyme","noCommentsYet":"Pas encore de commentaires.","sendSuperChat":"Envoyer un SuperChat","amountDollar":"Montant ($)","messageMaxChars":"Message (max 200 caract\xe8res)","typeSuperChatMessage":"Tapez votre message SuperChat...","processingPayment":"Traitement...","sendAmount":"Envoyer un SuperChat de {{amount}} $","pleaseLogInToSuperChat":"Veuillez vous connecter pour envoyer un SuperChat","pleaseEnterMessage":"Veuillez entrer un message","amountMustBeAtLeast1":"Le montant doit \xeatre d\'au moins 1 $","failedToCreateCheckout":"\xc9chec de la cr\xe9ation de la session de paiement","highlightedFor":"Mis en avant pour"}'),notifications:JSON.parse('{"notifications":"Notifications","viaEmail":"PAR E-MAIL","receiveNotificationThroughEmail":"RECEVOIR LES NOTIFICATIONS PAR E-MAIL","all":"Toutes","unread":"Non lues","noUnreadNotifications":"Aucune notification non lue.","noNotificationsYet":"Pas encore de notifications.","couldntLoadNotifications":"Impossible de charger les notifications depuis le serveur","someone":"Quelqu\'un","isLiveNow":"est en direct maintenant","postedReplay":"a publi\xe9 un replay","repliedToComment":"a r\xe9pondu \xe0 votre commentaire","likedYourComment":"a aim\xe9 votre commentaire","activity":"activit\xe9","secondsAgo":"{{count}}s","minutesAgo":"{{count}}m","hoursAgo":"{{count}}h","daysAgo":"{{count}}j"}')},id:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Masuk","logout":"Keluar","signUp":"Daftar","signUpFree":"Daftar Gratis","profile":"Profil","creatorDashboard":"Dasbor Kreator","notifications":"Notifikasi","pricing":"Harga","admin":"Admin","
2save":"Simpan","saving":"Menyimpan...","cancel":"Batal","delete":"Hapus","continue":"Lanjutkan","skip":"Lewati","skipForNow":"Lewati untuk sekarang","done":"Selesai","loading":"Memuat...","edit":"Edit","connect":"Hubungkan","disconnect":"Putuskan","comingSoon":"Segera Hadir","connected":"Terhubung","back":"Kembali","upgrade":"Tingkatkan","options":"Opsi","confirm":"Konfirmasi","areYouSure":"Apakah Anda yakin?","appearance":"Tampilan","subs":"Langganan","myPage":"Halaman Saya","clipsTab":"KLIP","calendarTab":"KALENDER","profileTab":"PROFIL","company":"Perusahaan","about":"Tentang","press":"Pers","contact":"Kontak","followUs":"Ikuti Kami","termsAndConditions":"Syarat & Ketentuan","cookiePolicy":"Kebijakan Cookie","connectedTo":"Terhubung ke {{platform}}!","planActivated":"Paket diaktifkan! Anda sekarang memiliki akses penuh.","saved":"Tersimpan!","failedToSave":"Gagal menyimpan","deleting":"Menghapus...","logOut":"Keluar","download":"Unduh","freePlan":"Paket Gratis","planLabel":"Paket {{plan}}","outOfCredits":"\u26a1 Kredit habis","creditsRemaining_one":"\u26a1 {{count}} kredit tersisa","creditsRemaining_other":"\u26a1 {{count}} kredit tersisa","topUpCredits":"Isi ulang kredit","buy":"Beli","manageAccount":"Kelola akun","signOut":"Keluar"}'),auth:JSON.parse('{"welcomeBack":"Selamat datang kembali","signInToContinue":"Masuk untuk melanjutkan ke Clipbait","continueWithGoogle":"Lanjutkan dengan Google","orContinueWithEmail":"atau lanjutkan dengan email","enterYourEmail":"Masukkan email Anda","checkYourEmail":"Periksa email Anda","weSentCodeTo":"Kami mengirim kode ke","pleaseEnter6DigitCode":"Silakan masukkan kode 6 digit","verifyAndContinue":"Verifikasi & Lanjutkan","resendCodeIn":"Kirim ulang kode dalam {{countdown}} detik","resendCode":"Kirim ulang kode","byContinuingYouAgree":"Dengan melanjutkan, Anda menyetujui","termsOfService":"Ketentuan Layanan","privacyPolicy":"Kebijakan Privasi","invalidCode":"Kode tidak valid. Coba lagi.","invalidEmail":"Silakan masukkan alamat email yang valid","failedToSendCode":"Gagal mengirim kode. Coba lagi.","signingYouIn":"Sedang memasukkan Anda...","emailOrUsername":"Email atau Nama Pengguna","password":"Kata Sandi","forgotPassword":"Lupa kata sandi?","logIn":"Masuk","incorrectCredentials":"Nama pengguna/email atau kata sandi salah","emailNotVerified":"Email belum diverifikasi. Periksa email Anda.","email":"Email","username":"Nama Pengguna","birthdayLabel":"Tanggal Lahir (Bulan / Hari / Tahun)","monthPlaceholder":"BB","dayPlaceholder":"HH","yearPlaceholder":"TTTT","usernameTooShort":"Nama pengguna harus minimal {{min}} karakter.","usernameTooLong":"Nama pengguna maksimal {{max}} karakter.","usernameInvalidFormat":"Hanya huruf, angka, dan garis bawah yang diperbolehkan. Tanpa spasi.","birthdayRequired":"Silakan pilih tanggal lahir lengkap Anda.","invalidEmailFormat":"Silakan masukkan alamat email yang valid.","passwordRequired":"Kata sandi diperlukan.","passwordTooShort":"Kata sandi harus minimal 3 karakter.","emailAvailable":"Email tersedia.","usernameAvailable":"Nama pengguna tersedia.","usernameTaken":"Nama pengguna ini sudah digunakan.","emailTaken":"Akun dengan email ini sudah ada.","passwordHint":"Minimal 3 karakter.","fixErrorsToContinue":"Perbaiki kesalahan untuk melanjutkan","bySigningUpYouAgree":"Dengan mendaftar, Anda menyetujui","termsOfUse":"Ketentuan Penggunaan","accountCreated":"Akun berhasil dibuat!","registrationFailed":"Pendaftaran gagal. Silakan coba lagi.","alreadyHaveAccount":"Sudah punya akun?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"Daftar dan mulai terhubung!","termsAgreementFull":"Dengan mendaftar, Anda menyetujui Ketentuan, Kebijakan Privasi, dan Kebijakan Cookie kami.","resetYourPassword":"Atur ulang kata sandi Anda","enterEmailToReset":"Masukkan email akun yang ingin Anda atur ulang","pleaseEnterEmail":"Silakan masukkan email","resetPassword":"Atur ulang kata sandi","pleaseEnterYourEmail":"Silakan masukkan email Anda","couldNotStartRecovery":"Tidak dapat memulai pemulihan.","backToLogin":"Kembali ke halaman masuk","emailVerification":"Verifikasi Email","weSent4DigitCode":"Kami mengirim kode 4 digit ke","yourEmail":"email Anda","pleaseEnter4DigitCode":"Silakan masukkan kode 4 digit.","verifyAccount":"Verifikasi Akun","incorrectOrExpiredCode":"Kode yang Anda masukkan salah atau sudah kedaluwarsa. Coba lagi atau kirim ulang.","didntReceiveCode":"Tidak menerima kode?","resendIn":"Kirim ulang dalam {{timer}} detik","sending":"Mengirim\u2026","verifying":"Memverifikasi\u2026","newCodeSent":"Kode baru telah dikirim ke email Anda.","missingEmail":"Email tidak ditemukan.","failedToResendCode":"Gagal mengirim ulang kode. Coba lagi sebentar.","changePassword":"Ubah Kata Sandi","newPassword":"Kata Sandi Baru","confirmPassword":"Konfirmasi kata sandi","passwordsDontMatch":"Kata sandi tidak cocok","failedToResetPassword":"Gagal mengatur ulang kata sandi","couldNotResetPassword":"Tidak dapat mengatur ulang kata sandi.","invali
2dOrExpiredCode":"Kode tidak valid atau sudah kedaluwarsa.","passwordSuccessfullySet":"Kata sandi berhasil diatur","successTitle":"Berhasil!","emailSentInstructions":"Email verifikasi akun Anda telah dikirim ke email Anda. Silakan buka email ini untuk memverifikasi akun Anda. Jika Anda tidak melihat email ini di kotak masuk dalam 15 menit, periksa folder spam Anda. Jika Anda menemukannya di sana, tandai email tersebut sebagai \\"Bukan Spam\\".","emailVerifiedSuccessfully":"Email berhasil diverifikasi","emailSuccessfullyVerifiedAlert":"Email berhasil diverifikasi","notFound404":"404 Tidak Ditemukan"}'),onboarding:JSON.parse('{"title":"Hai, saya Clipbait","subtitle":"Saya adalah AI-Clipper untuk streaming Anda","factHeader":"Berikut beberapa hal yang perlu Anda ketahui tentang saya:","fact1":"Saya dibuat oleh editor profesional, kemampuan saya terus meningkat","fact2":"Saya dibuat untuk MEMBANTU memudahkan kehidupan streamer dan clipper","letsGetStarted":"Ayo Mulai","questionUserType":"Apakah Anda seorang Clipper atau Streamer?","imAClipper":"Saya seorang Clipper","imAStreamer":"Saya seorang Streamer","questionStreamerNameClipper":"Siapa nama streamer-nya?","questionStreamerNameStreamer":"Apa nama streamer Anda?","placeholderStreamerNameClipper":"contoh: Kai Cenat","placeholderStreamerNameStreamer":"contoh: Nama tampilan Anda","streamerNameHint":"Ini membantu AI menulis hook yang lebih baik untuk klip.","questionChannelUsernameClipper":"Apa nama pengguna kanal dari streamer yang Anda klip?","questionChannelUsernameStreamer":"Sebelum kita mulai, apa nama pengguna kanal Anda? (teks biasa- Tanpa simbol @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"Di platform mana mereka streaming?","questionPlatformStreamer":"Platform streaming utama Anda yang mana?","twitchStreamer":"Saya streaming di Twitch","rumbleStreamer":"Saya streaming di Rumble","youtubeStreamer":"Saya streaming di YouTube","kickStreamer":"Saya streaming di Kick","xStreamer":"Saya streaming di X","ganjingStreamer":"Saya streaming di Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"Unggah foto profil","profilePictureHint":"Ini membantu AI kami mengenali Anda dalam video untuk membuat klip yang lebih baik.","choosePhoto":"Pilih Foto","uploading":"Mengunggah...","questionOpportunitiesClipper":"Ingin undangan untuk mendapatkan penghasilan dari klipping?","questionOpportunitiesStreamer":"Ingin mempekerjakan Clipper Clipbait untuk streaming Anda?","yesInterested":"Ya, saya tertarik","notRightNow":"Tidak untuk saat ini","questionConnectPages":"Hubungkan halaman Anda untuk memposting klip","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"Jenis konten apa yang Anda buat?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay dengan komentar, momen clutch, reaksi","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, wawancara, reaksi, komentar","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming kehidupan nyata, acara, konten luar ruangan","streamTypeMusic":"Musik","streamTypeMusicDesc":"Pertunjukan langsung, DJ set, produksi musik","finishSetup":"Selesaikan Pengaturan","ownStreamer":"Saya streaming di OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"Generator Klip Bertenaga AI","turnStreamsInto":"Ubah streaming menjadi","viralClips":"klip viral","pasteUrl":"Tempel URL","uploadVideo":"Unggah Video","pasteYouTubeLivestream":"Tempel livestream YouTube Anda","pasteRumbleLivestream":"Tempel livestream Rumble Anda","pasteGanjingWorldLink":"Tempel tautan Ganjing World Anda","pasteKickLink":"Tempel tautan Kick Anda","pasteTwitchLink":"Tempel tautan Twitch Anda","pasteXLink":"Tempel tautan X Anda","generateClips":"Buat Klip","starting":"Memulai...","uploadingProgress":"Mengunggah {{progress}}%...","processing":"Memproses","yourClips":"Klip Anda","loadingClips":"Memuat klip...","noClipsYet":"Belum ada klip","pasteStreamUrl":"Tempel URL streaming untuk memulai","clipsReady":"{{count}} klip siap!","clipCount":"{{count}} klip","dropFileHere":"Letakkan file Anda di sini","dragAndDrop":"Seret & lepas atau klik untuk memilih","mp4OrMovMax2GB":"MP4 atau MOV, maks 2GB","freeTrialBanner":"Anda dalam uji coba gratis. Beberapa fitur terbatas. Tingkatkan untuk membuka semua fitur.","pasteVideoLink
2First":"Tempel tautan video terlebih dahulu","selectPlatformInSettings":"Pilih platform Anda di Pengaturan","setChannelUsername":"Atur nama pengguna kanal Anda di Pengaturan","onlyMp4MovSupported":"Hanya file MP4 dan MOV yang didukung","fileMustBeUnder2GB":"File harus kurang dari 2GB","selectVideoFileFirst":"Pilih file video terlebih dahulu","clippingStarted":"Klipping Dimulai!","uploadCompleteClippingStarted":"Unggahan selesai \u2014 klipping dimulai!","uploadFailed":"Unggahan gagal","failedToStartClipping":"Gagal memulai klipping","havingTroubleWithLink":"Ada masalah dengan tautan tersebut \u2014 coba unduh video dan unggah sebagai gantinya, atau coba tautan YouTube","reachedUploadLimit":"Anda telah mencapai batas unggahan bulan ini.","jobCancelled":"Pekerjaan dibatalkan","projectDeleted":"Proyek dihapus","failedToDeleteProject":"Gagal menghapus proyek","deleteProject":"Hapus Proyek?","cannotBeUndone":"Tindakan ini tidak dapat dibatalkan.","jobStillProcessing":"Pekerjaan ini masih diproses","jobCancelledClipsDeleted":"Pekerjaan akan dibatalkan dan semua klip akan dihapus secara permanen.","allClipsDeleted":"Semua klip akan dihapus secara permanen.","creatingYourClips":"Membuat klip Anda","wellEmailYouWhenReady":"Kami akan mengirim email saat sudah siap","estimatingTime":"Memperkirakan...","underTwoMinutes":"kurang dari 2 menit","minutesRemaining":"~{{count}} mnt tersisa","hoursMinutesRemaining":"~{{hours}}jam {{minutes}}mnt tersisa","almostDone":"hampir selesai...","phaseDownloading":"Mengunduh video...","phaseDownloaded":"Unduhan selesai","phaseExtractingAudio":"Mengekstrak audio...","phaseTranscribing":"Mentranskrip audio...","phaseTranscribingLong":"(ini adalah langkah paling lambat untuk stream panjang)","phaseAnalyzing":"AI memilih momen terbaik...","phaseRendering":"Merender klip...","phaseDone":"Selesai!","tryUploadingInstead":"Coba unggah sebagai gantinya","processingStatus":"Memproses...","clipsReadyCount":"{{count}} klip siap","schedule":"Jadwalkan","post":"Posting","goodClip":"Klip bagus","badClip":"Klip buruk","downloadClip":"Unduh klip","moreOptions":"Opsi lainnya","clipDefaultTitle":"Klip {{number}}","funMessages":{"goGrabCoffee":"Ambil kopi dulu","timeForStretch":"Waktunya peregangan","takeQuickWalk":"Jalan-jalan sebentar","hydrateYourself":"Minum air dulu","doPushups":"Lakukan push-up","callYourMom":"Telepon ibu Anda","petYourDog":"Elus anjing Anda","goForSwim":"Pergi berenang","touchSomeGrass":"Keluar rumah sebentar","checkYourPosture":"Perbaiki postur Anda"},"funMessagesModal":{"goForSwim":"Pergi berenang sementara kami bekerja","perfectTimeForCoffee":"Waktu yang tepat untuk minum kopi","quickStretch":"Mungkin lakukan peregangan sebentar?","hydrationCheck":"Cek hidrasi! Minum air putih","takeWalk":"Jalan-jalan dulu, kami yang urus","callSomeone":"Telepon seseorang yang Anda sayangi","petYourPet":"Elus hewan peliharaan Anda jika punya","touchGrass":"Keluar rumah sebentar, sungguhan","jumpingJacks":"Lakukan 10 jumping jack","victoryDance":"Latihan tarian kemenangan Anda","deepBreaths":"Tarik napas dalam... Anda hebat","timeToSnack":"Ini saatnya ngemil"},"editClip":"Edit klip","clipEditor":"Editor Klip","trimIn":"Mulai","trimOut":"Akhir","previewTrim":"Pratinjau Potongan","saveCaption":"Simpan","saveAndDownload":"Simpan & Unduh","export":"Ekspor","exportComplete":"Ekspor selesai!","exportNotSupported":"Ekspor tidak didukung di browser ini","backToClips":"Kembali","uploadLimitReached":"Batas Unggahan Tercapai","limitResets":"Batas Anda akan direset pada {{date}}","gotIt":"Mengerti","failed":"Gagal","creditsRefunded":"Kredit dikembalikan","tryAgainDifferentLink":"Coba lagi atau gunakan tautan yang berbeda.","noSpeechInVideo":"Tautan yang Anda tempel tidak memiliki ucapan. Coba yang ada kreatornya berbicara.","retry":"Coba Lagi","cancelJobBtn":"Batal","hookScore":"Skor Hook","best":"Terbaik","clipsSelected":"{{count}} dipilih","switchToFileUpload":"Beralih ke unggah file","switchToURL":"Beralih ke URL","selectContentTypeFirst":"Silakan pilih jenis konten terlebih dahulu.","livestreamsNotSupported":"Livestream belum didukung \u2014 gunakan VOD atau video yang direkam.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"Musik","documentary":"Dokumenter"},"cancelThisJob":"Batalkan pekerjaan ini?","deleteTheseAssets":"Hapus aset-aset ini?","willStopProcessingRemoveJob":"Ini akan menghentikan pemrosesan dan menghapus pekerjaan.","keepGoing":"Lanjutkan","noKeepThem":"Tidak, simpan saja","yesCancelJob":"Ya, batalkan pekerjaan","yesDeleteForever":"Ya, hapus selamanya","titleCaption":"Teks Judul","information":"Informasi","duration":"Durasi","platform":"Platform","creator":"Kreator","rateThisClip":"Beri penilaian klip ini","type":"Jenis","format":"Format","clipsLabel":"Klip","slowConnection":"Koneksi lambat","couldntLoad":"Gagal dimuat","tapToRetry":"Ketuk untuk mencoba lagi","clipsDeleted_one":"{{count}} klip dihapus","clipsDeleted_other":"{{count}} klip dihapus"}'),schedule:JSON.parse('{"shareClip":"Bagikan Klip","loadingPlatforms":"Memuat platform...","noConnectedPlatforms":"Tidak ada platform terhubung.","connectSocialsToSchedule":"Hubungkan akun media s
2osial Anda untuk menjadwalkan postingan.","connectYourAccounts":"Hubungkan akun Anda","postTo":"Posting ke:","deselectAll":"Batalkan Semua","selectAll":"Pilih Semua","caption":"Keterangan","writeCaptionPlaceholder":"Tulis keterangan untuk postingan Anda...","scheduleAction":"Jadwalkan","saveAndSchedule":"Simpan dan jadwalkan postingan","postAction":"Posting","publishImmediately":"Terbitkan segera","scheduling":"Menjadwalkan...","publishing":"Menerbitkan...","viewPost":"Lihat Postingan","postedSuccessfully":"Berhasil Diposting!","partiallyPosted":"Sebagian Diposting","failedToPost":"Gagal Memposting","selectAtLeastOnePlatform":"Pilih setidaknya satu platform","selectATime":"Pilih waktu","selectFutureTime":"Silakan pilih waktu di masa depan","postScheduled":"Postingan dijadwalkan!","failedToSchedule":"Gagal menjadwalkan","failedToPublish":"Gagal menerbitkan","postedSuccess":"Berhasil diposting!","postedToSomePlatforms":"Diposting ke beberapa platform","failedToPostError":"Gagal memposting","scheduledPost":"Postingan Terjadwal","postingTo":"Memposting ke","writeCaptionShort":"Tulis keterangan...","saveChanges":"Simpan Perubahan","cancelScheduledPost":"Batalkan postingan terjadwal ini?","clipWontBePosted":"Klip ini tidak akan diposting ke platform yang Anda pilih.","keepIt":"Pertahankan","cancelling":"Membatalkan...","yesCancelPost":"Ya, Batalkan Postingan","changesSaved":"Perubahan disimpan","failedToSaveChanges":"Gagal menyimpan perubahan","postCancelled":"Postingan dibatalkan","failedToCancelPost":"Gagal membatalkan postingan","todayAt":"Hari ini pukul","tomorrowAt":"Besok pukul","upcomingClips":"Klip Mendatang","noScheduledClipsThisMonth":"Tidak ada klip terjadwal bulan ini.","scheduleClipsHint":"Jadwalkan klip setelah selesai dirender.","cancelScheduledPostConfirm":"Batalkan Postingan Terjadwal?","cancelPostMessage":"Ini akan menghapus postingan dari jadwal Anda. Anda selalu bisa menjadwalkannya lagi nanti.","cancelPost":"Batalkan Postingan","sun":"Min","mon":"Sen","tue":"Sel","wed":"Rab","thu":"Kam","fri":"Jum","sat":"Sab","untitledClip":"Klip Tanpa Judul","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Akun Terhubung","linkSocialsToPost":"Hubungkan media s
2osial Anda untuk memposting klip langsung.","yourChannel":"Kanal Anda","watermarkDescription":"Foto profil Anda membantu AI mengenali Anda dalam video untuk membuat klip yang lebih baik.","streamerName":"Nama Streamer","placeholderStreamerName":"contoh: Kai Cenat","streamerNameHint":"Nama streamer yang Anda klip. Ini membantu AI menulis hook yang lebih baik.","channelUsername":"Nama Pengguna Kanal","placeholderChannelUsername":"Nama pengguna streaming Anda","platform":"Platform","selectPlatform":"Pilih Platform","tapToChangePhoto":"Ketuk untuk mengubah foto","pleaseSelectImageFile":"Silakan pilih file gambar","imageMustBeLess5MB":"Gambar harus kurang dari 5MB","profilePictureUpdated":"Foto profil diperbarui!","failedToUploadPicture":"Gagal mengunggah gambar","disconnectedFrom":"Terputus dari {{platform}}","failedToDisconnect":"Gagal memutuskan koneksi","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"Pengaturan Langganan","stripeConnectionStatus":"Status Koneksi Stripe","stripeConnectedMessage":"Akun Stripe Anda terhubung dan siap menerima pembayaran","manageStripeAccount":"Kelola Akun Stripe","stripeConnectInstructions":"Hubungkan akun Stripe Anda untuk mulai menerima pembayaran langganan...","stripeSetupWarning":"PENTING: Anda harus menyelesaikan seluruh proses pengaturan Stripe...","stripeSupportMessage":"Ada masalah? Hubungi dukungan di [email protected]...","connectingToStripe":"Menghubungkan ke Stripe...","connectStripeAccount":"Hubungkan Akun Stripe","enableSubscriptions":"Aktifkan Langganan","monthlySubscriptionPrice":"Harga Langganan Bulanan (USD)","subscriptionDescription":"Deskripsi Langganan","describeSubscriptionBenefits":"Jelaskan apa yang akan didapat pelanggan...","saveSettings":"Simpan Pengaturan","settingsSaved":"Pengaturan berhasil disimpan!","savingFailed":"Gagal menyimpan pengaturan. Silakan coba lagi.","stripeConnectionError":"Gagal menghubungkan Stripe. Silakan coba lagi.","stripeDashboardError":"Gagal membuka dasbor Stripe. Silakan coba lagi.","stripeSetupError":"Gagal menyelesaikan pengaturan Stripe. Silakan coba lagi.","xsubscribeAdmin":"Admin XSubscribe","preview":"Pratinjau","fetchLinksError":"Gagal mengambil tautan pengguna","deleteLinkError":"Gagal menghapus tautan","orderUpdateSuccess":"Nilai urutan diperbarui di server","orderUpdateError":"Gagal memperbarui nilai urutan di server","addLinkError":"Gagal menambahkan tautan","profileSection":"Profil","pickAnImage":"Pilih Gambar","remove":"Hapus","usernameInputPlaceholder":"Handle X Anda (@namapengguna)","bioInputPlaceholder":"Mengapa Orang Harus Berlangganan?","getUnlimitedCustomization":"Dapatkan kustomisasi tak terbatas","verifiedCheckmark":"Tanda Centang Terverifikasi","customBackgroundImages":"Gambar latar belakang kustom","removeXSubscribeLogo":"Hapus logo XSubscribe","dollarPerMonth":"$9 /bulan setelahnya","flatColour":"Warna Solid","image":"Gambar","pickAColor":"Pilih Warna","hideXSubscribeLogo":"Sembunyikan logo XSubscribe","errorUpdatingProfileTitle":"Kesalahan saat memperbarui judul profil","errorUpdatingBio":"Kesalahan saat memperbarui bio profil","errorSavingBackgroun
2dColor":"Kesalahan saat menyimpan warna latar belakang","errorUpdatingEffects":"Kesalahan saat memperbarui efek latar belakang","errorUpdatingLogo":"Kesalahan saat memperbarui logo pengguna","invalidUser":"currentUser tidak valid.","errorFetchingLogoStatus":"Kesalahan saat mengambil status logo awal","errorFetchingUserData":"Kesalahan saat mengambil data pengguna","errorFetchingProfilePic":"Kesalahan saat mengambil foto profil","uploadFailed":"Unggahan gagal","accountSettings":"Pengaturan Akun","manageSubscription":"Kelola Langganan","manageSubscriptionDesc":"Perbarui metode pembayaran, lihat faktur, atau batalkan","deleteAccount":"Hapus Akun","deleteAccountWarning":"Tindakan ini tidak dapat dibatalkan. Semua data Anda akan dihapus secara permanen.","typeDeleteToConfirm":"Ketik DELETE untuk mengonfirmasi","accountDeleted":"Akun berhasil dihapus","failedToDeleteAccount":"Gagal menghapus akun","failedToOpenBilling":"Gagal membuka portal tagihan","yourBrands":"Brand Anda","addBrand":"Tambah Brand","brandName":"Nama Brand","brandNamePlaceholder":"Masukkan nama brand","createBrand":"Buat Brand","switchBrand":"Ganti Brand","deleteBrand":"Hapus Brand","cannotDeleteLastBrand":"Tidak dapat menghapus satu-satunya brand Anda","brandCreated":"Brand dibuat!","brandSwitched":"Brand diganti!","brandDeleted":"Brand dihapus","failedToCreateBrand":"Gagal membuat brand","failedToSwitchBrand":"Gagal mengganti brand","failedToDeleteBrand":"Gagal menghapus brand","captionPresets":"Gaya Teks","captionPresetsDesc":"Atur tampilan default teks pada klip Anda. Klip baru akan menggunakan gaya aktif Anda.","presetName":"Nama Gaya","presetNamePlaceholder":"contoh: Merah Tebal","addPreset":"Tambah Gaya","editPreset":"Edit","deletePreset":"Hapus","createPreset":"Buat Gaya","presetCreated":"Gaya dibuat!","presetActivated":"Gaya teks diganti!","presetDeleted":"Gaya dihapus","cannotDeleteLastPreset":"Tidak dapat menghapus satu-satunya gaya Anda","failedToSwitchPreset":"Gagal mengganti gaya","failedToDeletePreset":"Gagal menghapus gaya","captionPreview":"Ini adalah pratinjau teks Anda","captionColor":"Warna","captionFont":"Font","captionPosition":"Posisi","captionWidth":"Lebar","streamType":"Jenis Konten","streamTypeHint":"Jenis konten apa yang Anda buat? Ini membantu AI menyesuaikan klip untuk gaya Anda.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay dengan komentar, momen clutch, reaksi","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, wawancara, reaksi, komentar","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming kehidupan nyata, acara, konten luar ruangan","streamTypeMusic":"Musik","streamTypeMusicDesc":"Pertunjukan langsung, set DJ, produksi musik","streamTypeDocumentary":"Dokumenter","streamTypeDocumentaryDesc":"Dokumenter, mini-dok, dan film","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Buka Clipbait","getFullAccess":"Dapatkan akses penuh ke pembuatan klip bertenaga AI","monthly":"Bulanan","annual":"Tahunan","save15Percent":"Hemat 15%","perMonth":"/bulan","perMonthShort":"/bln","billedAsPerYear":"Ditagih sebesar ${{amount}}/tahun","upload30Videos":"Unggah 30 video per bulan","upTo2Hours":"Video hingga 2 jam","generate300Clips":"Buat 300 klip per bulan","downloadAndSchedule":"Unduh & jadwalkan klip","upTo5Accounts":"Hingga 5 akun merek","getStarted":"Mulai Sekarang","redirecting":"Mengalihkan...","exclusiveOffer":"PENAWARAN EKSKLUSIF","russellBrandsPick":"Pilihan Russell Brand","get10PercentOff":"Dapatkan diskon 10% untuk Clipbait Pro \u2014 eksklusif untuk audiens Russell","discountApplied":"Diskon 10% diterapkan secara otomatis","claim10Off":"Klaim Diskon 10%","noThanksFullPrice":"Tidak, terima kasih, saya bayar harga penuh","generateWithoutLimits":"Buat tanpa batas","upgradePlan":"Upgrade Paket","buyCredits":"Beli Kredit","creditsNeverExpireNote":"Kredit tidak pernah kedaluwarsa dan digunakan setelah kuota bulanan paket Anda habis.","mostPopular":"Paling Populer","bestValue":"Terbaik","generationsPerMonth":"{{count}} generasi/bulan","twentyPercentOff":"Diskon 20%","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"Hemat 16%","save26Percent":"Hemat 26%","perMonthBilledAnnually":"per bulan, ditagih tahunan"}'),pages:JSON.parse('{"foundersStoryTitle":"Kisah Pendiri Kami","foundersStoryContent":"Pada tahun 2021, Spirit menghadapi cengkeraman sensor yang menyesakkan di platform-platform arus utama. Bertekad untuk menemukan ruang di mana kebebasan berekspresi berkembang, ia menemukan sebuah platform yang sejalan dengan keyakinannya akan dialog terbuka dan kebebasan berkreasi. Momen penting ini memicu ide untuk apa yang kemudian menjadi XSubscribe \u2014 sebuah platform di mana kreator dan komunitas mereka dapat terhubung secara autentik, tanpa takut akan sensor. Spirit, dengan visi uniknya dan semangat untuk memberdayakan kreator, meletakkan dasar bagi era baru dalam monetisasi konten. Seiring XSubscribe terus berkembang, ia tetap berakar pada keyakinan bahwa setiap suara layak didengar. Baik Anda seorang kreator berpengalaman atau baru memulai, XSubscribe hadir untuk membantu Anda membangun karier yang berkelanjutan dengan melakukan apa yang Anda cintai.","termsTitle":"Syarat dan Ketentuan","lastUpdatedTerms":"Terakhir diperbarui: Minggu, 7 Jan 2024","termsSection1Title":"1. Selamat Datang di XSubscribe:","termsSection1Content":"Ketentuan Penggunaan (\\"Ketentuan\\") ini mengatur penggunaan layanan XSubscribe, termasuk situs web, API, aplikasi seluler, dan semua layanan terkait. Dengan menggunakan platform kami, Anda setuju untuk mengikuti Ketentuan ini.","termsSection2Title":"2. Perubahan Ketentuan:","termsSection2Content":"XSubscribe dapat memperbarui Ketentuan ini dari waktu ke waktu. Anda akan diberitahu tentang perubahan besar, dan penggunaan platform yang berkelanjutan setelah perubahan berarti Anda menerima ketentuan baru.","termsSection3Title":"3. Akun Anda:","termsSection3Content":"Anda harus berusia 18 tahun atau lebih untuk menggunakan XSubscribe, atau memiliki izin dari orang tua/wali. Jaga informasi akun Anda tetap terkini dan amankan kata sandi Anda. Anda bertanggung jawab atas apa yang terjadi di akun Anda.","termsSection4Title":"4. Nama Pengguna Anda:","termsSection4Content":"Nama pengguna harus menghormati hak orang lain. XSubscribe dapat mengambil kembali atau mengubah nama pengguna jika diperlukan.","termsSection5Title":"5. Mengelola Paket Anda:","termsSection5Content":"XSubscribe menawarkan paket gratis dan berbayar. Paket berbayar memerlukan metode pembayaran y
2ang valid. Anda dapat beralih antar paket.","termsSection6Title":"6. Konten Anda:","termsSection6Content":"Anda bertanggung jawab atas konten Anda. Konten harus mengikuti pedoman kami dan hukum yang berlaku. XSubscribe dapat menghapus konten yang melanggar standar ini.","termsSection7Title":"7. Apa yang Dapat Kami Lakukan dengan Konten Anda:","termsSection7Content":"XSubscribe memiliki lisensi untuk menggunakan, mendistribusikan, dan menampilkan konten Anda sebagai bagian dari pengoperasian platform. Anda dapat mengontrol konten Anda melalui pengaturan privasi.","termsSection8Title":"8. Penangguhan atau Pembatalan Akun Anda:","termsSection8Content":"XSubscribe dapat menangguhkan atau membatalkan akun karena pelanggaran aturan. Anda juga dapat membatalkan akun Anda sendiri.","termsSection9Title":"9. Tanggung Jawab Anda terhadap Pengunjung dan Pelanggan:","termsSection9Content":"Anda bertanggung jawab atas pengalaman orang-orang yang mengunjungi atau berinteraksi dengan profil Anda.","termsSection10Title":"10. Umpan Balik:","termsSection10Content":"Jika Anda memberikan umpan balik, XSubscribe dapat menggunakannya secara bebas. Anda tidak diwajibkan untuk memberikan umpan balik.","termsSection11Title":"11. Platform Kami:","termsSection11Content":"Anda mendapatkan hak terbatas untuk menggunakan platform untuk bisnis konten Anda. Jangan menyalahgunakannya atau mencoba merusaknya.","termsSection12Title":"12. Biaya dan Pembayaran:","termsSection12Content":"Biaya langganan, biaya transaksi, dan ketentuan pembayaran dirincikan dalam Jadwal Biaya.","termsSection13Title":"13. Privasi:","termsSection13Content":"Pemberitahuan Privasi XSubscribe menjelaskan bagaimana kami menangani informasi Anda.","termsSection14Title":"14. Kerahasiaan:","termsSection14Content":"Jaga kerahasiaan informasi non-publik yang dibagikan oleh XSubscribe.","termsSection15Title":"15. Tanggung Jawab Hukum:","termsSection15Content":"Anda bertanggung jawab atas penggunaan platform. Tanggung jawab hukum XSubscribe terbatas.","termsSection16Title":"16. Penyangkalan:","termsSection16Content":"Platform disediakan \\"APA ADANYA\\" tanpa jaminan.","termsSection17Title":"17. Layanan Pihak Ketiga:","termsSection17Content":"XSubscribe bekerja sama dengan layanan pihak ketiga. Ketentuan dan kebijakan mereka sendiri yang berlaku.","termsSection18Title":"18. Ketentuan Aplikasi:","termsSection18Content":"Ketentuan khusus berlaku saat menggunakan aplikasi seluler XSubscribe.","termsSection19Title":"19. Sumber Terbuka:","termsSection19Content":"Aplikasi mungkin menyertakan perangkat lunak sumber terbuka dengan lisensinya sendiri.","termsSection20Title":"20. Beberapa Hal Terakhir:","termsSection20Content":"Hukum tertentu mungkin berlaku tergantung lokasi Anda. Ketentuan ini mewakili perjanjian lengkap antara Anda dan XSubscribe.","furtherInformation":"Di mana Anda bisa mendapatkan informasi lebih lanjut?","termsContactInstructions":"Jika Anda memiliki pertanyaan tentang Syarat dan Ketentuan kami, silakan hubungi kami:","cookieNoticeTitle":"Pemberitahuan Cookie","lastUpdatedCookies":"Terakhir diperbarui: Minggu, 7 Jan 2023","cookieIntroduction":"Pemberitahuan Cookie ini menjelaskan bagaimana XSubscribe LLC menggunakan cookie dan teknologi serupa.","whatAreCookies":"Apa itu cookie?","cookieDefinition":"Cookie adalah file data kecil yang disimpan di perangkat Anda saat Anda mengunjungi sebuah situs web.","thirdPartyCookies":"Cookie yang diatur oleh pihak selain XSubscribe disebut cookie pihak ketiga.","whyUseCookies":"Mengapa kami menggunakan cookie?","cookieUsage":"Kami menggunakan cookie pihak pertama dan pihak ketiga untuk berbagai tujuan.","cookieContactInstructions":"Jika Anda memiliki pertanyaan tentang penggunaan cookie kami, silakan hubungi kami:","contactSpiritTitle":"Hubungi Spirit","contactInstructions":"Hai, Anda bisa menghubungi saya dengan beberapa cara yang tercantum di bawah ini:","searchTitle":"PENCARIAN","searchPlaceholder":"CARI STREAMER\u2026","searchResults":"HASIL","suggestedStreamers":"STREAMER YANG DISARANKAN","profileTitle":"Profil","onlyJpgPngAllowed":"Hanya JPG/PNG yang diperbolehkan","maxFileSize2MB":"Ukuran file maksimal 2MB","selectAvatar":"PILIH AVATAR","updating":"MEMPERBARUI...","demoSubscriptionAlert":"Ini adalah Demo. Anda tidak dapat berlangganan kreator ini.","subscribe":"Berlangganan","perMonth":"/bulan","subscribed":"\u2713 Berlangganan","successfullySubscribedTo":"Berhasil berlangganan","weLockedIn":"Kita sudah terhubung.","createYourXSubscribe":"Buat XSubscribe Anda","pageNotFoundHeading":"Halaman yang Anda cari tidak ada.","pageNotFoundMessage":"Ingin ini menjadi nama pengguna And
2a?","createXSubscribeNow":"Buat XSubscribe Anda sekarang.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"Memuat SuperChats...","recentSuperchats":"Pesan dan tip SuperChat terbaru","noSuperchatsPart1":"Belum ada SuperChats untuk","noSuperchatsPart2":"Jadilah yang pertama mengirim SuperChat!","loadingSuperChatsError":"Gagal memuat SuperChats","addComment":"TAMBAH KOMENTAR\u2026","signInToComment":"MASUK UNTUK BERKOMENTAR","send":"Kirim","signIn":"Masuk","beTheFirstToComment":"JADILAH YANG PERTAMA BERKOMENTAR.","writeReply":"Tulis balasan\u2026","reply":"Balas","unlike":"Batal Suka","like":"Suka","comments":"komentar","shareThisStream":"BAGIKAN STREAMING INI","goTo":"Kunjungi","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Pesan","emailShare":"Email","copyLink":"Salin tautan","more":"Lainnya","deleting":"Menghapus\u2026","anon":"Anonim","noCommentsYet":"Belum ada komentar.","sendSuperChat":"Kirim SuperChat","amountDollar":"Jumlah ($)","messageMaxChars":"Pesan (maks 200 karakter)","typeSuperChatMessage":"Ketik pesan SuperChat Anda...","processingPayment":"Memproses...","sendAmount":"Kirim SuperChat ${{amount}}","pleaseLogInToSuperChat":"Silakan masuk untuk mengirim SuperChat","pleaseEnterMessage":"Silakan masukkan pesan","amountMustBeAtLeast1":"Jumlah minimal harus $1","failedToCreateCheckout":"Gagal membuat sesi pembayaran","highlightedFor":"Disorot untuk"}'),notifications:JSON.parse('{"notifications":"Notifikasi","viaEmail":"MELALUI EMAIL","receiveNotificationThroughEmail":"TERIMA NOTIFIKASI MELALUI EMAIL","all":"Semua","unread":"Belum Dibaca","noUnreadNotifications":"Tidak ada notifikasi yang belum dibaca.","noNotificationsYet":"Belum ada notifikasi.","couldntLoadNotifications":"Tidak dapat memuat notifikasi dari server","someone":"Seseorang","isLiveNow":"sedang live sekarang","postedReplay":"memposting tayangan ulang","repliedToComment":"membalas komentar Anda","likedYourComment":"menyukai komentar Anda","activity":"aktivitas","secondsAgo":"{{count}} dtk","minutesAgo":"{{count}} mnt","hoursAgo":"{{count}} jam","daysAgo":"{{count}} hari"}')},it:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"Accedi","logout":"Esci","signUp":"Registrati","signUpFree":"Registrati Gratis","profile":"Profilo","creatorDashboard":"Dashboard Creatore","notifications":"Notifiche","pricing":"Prezzi","admin":"Amministrazione","save":"Salva","saving":"Salvataggio...","cancel":"Annulla","delete":"Elimina","continue":"Continua","skip":"Salta","skipForNow":"Salta per ora","done":"Fatto","loading":"Caricamento...","edit":"Modifica","connect":"Connetti","disconnect":"Disconnetti","comingSoon":"Prossimamente","connected":"Connesso","back":"Indietro","upgrade":"Aggiorna","options":"Opzioni","confirm":"Conferma","areYouSure":"Sei sicuro?","appearance":"Aspetto","subs":"Abbonamenti","myPage":"La Mia Pagina","clipsTab":"CLIP","calendarTab":"CALENDARIO","profileTab":"PROFILO","company":"Azienda","about":"Chi Siamo","press":"Stampa","contact":"Contatti","followUs":"Seguici","termsAndConditions":"Termini e Condizioni","cookiePolicy":"Politica sui Cookie","connectedTo":"Connesso a {{platform}}!","planActivated":"Piano attivato! Ora hai accesso completo.","saved":"Salvato!","failedToSave":"Salvataggio fallito","deleting":"Eliminazione...","logOut":"Esci","download":"Scarica","freePlan":"Piano Gratuito","planLabel":"Piano {{plan}}","outOfCredits":"\u26a1 Crediti esauriti","creditsRemaining_one":"\u26a1 {{count}} credito rimanente","creditsRemaining_other":"\u26a1 {{count}} crediti rimanenti","topUpCredits":"Ricarica crediti","buy":"Acquista","manageAccount":"Gestisci account","signOut":"Esci"}'),auth:JSON.parse('{"welcomeBack":"Bentornato","signInToContinue":"Accedi per continuare su Clipbait","continueWithGoogle":"Continua con Google","orContinueWithEmail":"o continua con email","enterYourEmail":"Inserisci la tua email","checkYourEmail":"Controlla la tua email","weSentCodeTo":"Abbiamo inviato un codice a","pleaseEnter6DigitCode":"Inserisci il codice a 6 cifre","verifyAndContinue":"Verifica e Continua","resendCodeIn":"Reinvia codice tra {{countdown}}s","resendCode":"Reinvia codice","byContinuingYouAgree":"Continuando, accett
2i i","termsOfService":"Termini di Servizio","privacyPolicy":"Informativa sulla Privacy","invalidCode":"Codice non valido. Riprova.","invalidEmail":"Inserisci un indirizzo email valido","failedToSendCode":"Invio codice fallito. Riprova.","signingYouIn":"Accesso in corso...","emailOrUsername":"Email o Nome Utente","password":"Password","forgotPassword":"Password dimenticata?","logIn":"Accedi","incorrectCredentials":"Nome utente/email o password errati","emailNotVerified":"Email non verificata. Controlla la tua email.","email":"Email","username":"Nome Utente","birthdayLabel":"Data di Nascita (Mese / Giorno / Anno)","monthPlaceholder":"MM","dayPlaceholder":"GG","yearPlaceholder":"AAAA","usernameTooShort":"Il nome utente deve avere almeno {{min}} caratteri.","usernameTooLong":"Il nome utente deve avere al massimo {{max}} caratteri.","usernameInvalidFormat":"Sono ammessi solo lettere, numeri e trattini bassi. Niente spazi.","birthdayRequired":"Seleziona la tua data di nascita completa.","invalidEmailFormat":"Inserisci un indirizzo email valido.","passwordRequired":"La password \xe8 obbligatoria.","passwordTooShort":"La password deve avere almeno 3 caratteri.","emailAvailable":"L\'email sembra corretta.","usernameAvailable":"Il nome utente \xe8 disponibile.","usernameTaken":"Questo nome utente \xe8 gi\xe0 in uso.","emailTaken":"Un account con questa email esiste gi\xe0.","passwordHint":"Almeno 3 caratteri.","fixErrorsToContinue":"Correggi gli errori per continuare","bySigningUpYouAgree":"Registrandoti, accetti i nostri","termsOfUse":"Termini d\'Uso","accountCreated":"Account creato!","registrationFailed":"Registrazione fallita. Riprova.","alreadyHaveAccount":"Hai gi\xe0 un account?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"Registrati e inizia a connetterti!","termsAgreementFull":"Registrandoti, accetti i nostri Termini, l\'Informativa sulla Privacy e la Politica sui Cookie.","resetYourPassword":"Reimposta la tua password","enterEmailToReset":"Inserisci l\'email dell\'account che vuoi reimpostare","pleaseEnterEmail":"Inserisci un\'email","resetPassword":"Reimposta password","pleaseEnterYourEmail":"Inserisci la tua email","couldNotStartRecovery":"Impossibile avviare il recupero.","backToLogin":"Torna al login","emailVerification":"Verifica Email","weSent4DigitCode":"Abbiamo inviato un codice a 4 cifre a","yourEmail":"la tua email","pleaseEnter4DigitCode":"Inserisci il codice a 4 cifre.","verifyAccount":"Verifica Account","incorrectOrExpiredCode":"Il codice inserito non \xe8 corretto o \xe8 scaduto. Riprova o reinvia.","didntReceiveCode":"Non hai ricevuto il codice?","resendIn":"Reinvia tra {{timer}}s","sending":"Invio in corso\u2026","verifying":"Verifica in corso\u2026","newCodeSent":"Un nuovo codice \xe8 stato inviato alla tua email.","missingEmail":"Email mancante.","failedToResendCode":"Reinvio codice fallito. Riprova tra un momento.","changePassword":"Cambia Password","newPassword":"Nuova Password","confirmPassword":"Conferma password","passwordsDontMatch":"Le password non corrispondono","failedToResetPassword":"Reimpostazione password fallita","couldNotResetPassword":"Impossibile reimpostare la password.","invalidOrExpiredCode":"Codice non valido o scaduto.","passwordSuccessfullySet":"Password impostata con successo","successTitle":"Successo!","emailSentInstructions":"L\'email di verifica del tuo account \xe8 stata inviata alla tua email. Apri questa email per verificare il tuo account. Se non vedi questa email nella tua casella di posta entro 15 minuti, controlla la cartella spam. Se la trovi l\xec, contrassegna l\'email come \\"Non Spam\\".","emailVerifiedSuccessfully":"Email verificata con successo","emailSuccessfullyVerifiedAlert":"Email verificata con successo","notFound404":"404 Non Trovato"}'),onboarding:JSON.parse('{"title":"Ciao, sono Clipbait","subtitle":"Sono il tuo AI-Clipper per le tue dirette","factHeader":"Ecco alcune cose che dovresti sapere su di me:","fact1":"Sono stato creato da un editor d\'eccellenza, le mie abilit\xe0 migliorano costantemente","fact2":"Sono stato creato per AIUTARE a semplificare la vita di streamer e clipper","letsGetStarted":"Iniziamo","questionUserType":"Sei un Clipper o uno Streamer?","imAClipper":"Sono un Clipper","imAStreamer":"Sono uno Streamer","questionStreamerNameClipper":"Come si chiama lo streamer?","questionStreamerNameStreamer":"Qual \xe8 il tuo nome da streamer?","placeholderStreamerNameClipper":"es. Kai Cenat","placeholderStreamerNameStreamer":"es. Il tuo nome visualizzato","streamerNameHint":"Questo aiuta l\'AI a scrivere hook migliori per le clip.","questionChannelUsernameClipper":"Qual \xe8 il nome utente del canale dello streamer per cui fai clip?","questionChannelUsernameStreamer":"Prima di iniziare, qual \xe8 il nome utente del tuo canale? (testo semplice - Senza simboli @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"Su quale piattaforma fanno streaming?","questionPlatformStreamer":"Qual \xe8 la tua piattaforma di streaming principale?","twitchStreamer":"Faccio streaming su Twitch","rumbleStreamer":"Faccio streaming su Rumble","youtubeStreamer":"Faccio streaming su YouTube","kickStreamer":"Faccio streaming su Kick","xStreamer":"Faccio streaming su X","ganjingStreamer":"Faccio streaming su Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"Carica una foto profilo","profilePictureHint":"Questo aiuta la nostra IA a identificarti nel video per creare clip migliori.","choosePhoto":"Scegli Foto","uploading":"Caricamento...","questionOpportunitiesClipper":"Vuoi ricevere inviti per guadagnare facendo clip?","questionOpportunitiesStreamer":"Vuoi assumere Clipper di Clipbait per le tue dirette?","yesInterested":"S\xec, mi interessa","notRightNow":"Non adesso","questionConnectPages":"Connetti le tue pagine per pubblicare clip","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"Che tipo di contenuti crei?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay con commento, momenti clutch, reazioni","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, interviste, reazioni, commenti","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming dal vivo, eventi, contenuti all\'aperto","streamTypeMusic":"Musica","streamTypeMusicDesc":"Esibizioni dal vivo, DJ set, produzione musicale","finishSetup":"Completa Configurazione","ownStreamer":"Faccio streaming su OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"Generatore di Clip con AI","turnStreamsInto":"Trasforma le dirette in","viralClips":"clip virali","pasteUrl":"Incolla URL","uploadVideo":"Carica Video","pasteYouTubeLivestream":"Incolla la tua diretta YouTube","pasteRumbleLivestream":"Incolla la tua diretta Rumble","pasteGanjingWorldLink":"Incolla il tuo link Ganjing World","pasteKickLink":"Incolla il tuo link Kick","pasteTwitchLink":"Incolla il tuo link Twitch","pasteXLink":"Incolla il tuo link X","generateClips":"Genera Clip","starting":"Avvio...","uploadingProgress":"Caricamento {{progress}}%...","processing":"Elaborazione","yourClips":"Le Tue Clip","loadingClips":"Caricamento clip...","noClipsYet":"Nessuna clip ancora","pasteStreamUrl":"Incolla un URL di streaming per iniziare","clipsReady":"{{count}} clip pronte!","clipCount":"{{count}} clip","dropFileHere":"Trascina il tuo file qui","dragAndDrop":"Trascina e rilascia o clicca per scegliere","mp4OrMovMax2GB":"MP4 o MOV, max 2GB","freeTrialBanner":"Sei in prova gratuita. Alcune funzionalit\xe0 sono limitate. Aggiorna per sbloccare tutte le funzionalit\xe0.","pasteVideoLink
2First":"Incolla prima un link video","selectPlatformInSettings":"Seleziona la tua piattaforma nelle Impostazioni","setChannelUsername":"Imposta il nome utente del tuo canale nelle Impostazioni","onlyMp4MovSupported":"Sono supportati solo file MP4 e MOV","fileMustBeUnder2GB":"Il file deve essere inferiore a 2GB","selectVideoFileFirst":"Seleziona prima un file video","clippingStarted":"Clipping Avviato!","uploadCompleteClippingStarted":"Caricamento completato \u2014 clipping avviato!","uploadFailed":"Caricamento fallito","failedToStartClipping":"Avvio clipping fallito","havingTroubleWithLink":"Problemi con quel link \u2014 prova a scaricare il video e caricarlo, oppure prova un link YouTube","reachedUploadLimit":"Hai raggiunto il limite di caricamento di questo mese.","jobCancelled":"Lavoro annullato","projectDeleted":"Progetto eliminato","failedToDeleteProject":"Eliminazione progetto fallita","deleteProject":"Eliminare il Progetto?","cannotBeUndone":"Questa azione non pu\xf2 essere annullata.","jobStillProcessing":"Questo lavoro \xe8 ancora in elaborazione","jobCancelledClipsDeleted":"Il lavoro verr\xe0 annullato e tutte le clip saranno eliminate permanentemente.","allClipsDeleted":"Tutte le clip saranno eliminate permanentemente.","creatingYourClips":"Creazione delle tue clip","wellEmailYouWhenReady":"Ti invieremo un\'email quando sar\xe0 pronto","estimatingTime":"Stima in corso...","underTwoMinutes":"meno di 2 minuti","minutesRemaining":"~{{count}} min rimanenti","hoursMinutesRemaining":"~{{hours}}h {{minutes}}min rimanenti","almostDone":"quasi fatto...","phaseDownloading":"Download del video...","phaseDownloaded":"Download completato","phaseExtractingAudio":"Estrazione audio...","phaseTranscribing":"Trascrizione audio...","phaseTranscribingLong":"(questo \xe8 il passaggio pi\xf9 lento per gli stream lunghi)","phaseAnalyzing":"L\'IA sta selezionando i momenti migliori...","phaseRendering":"Rendering dei clip...","phaseDone":"Fatto!","tryUploadingInstead":"Prova a caricare invece","processingStatus":"Elaborazione...","clipsReadyCount":"{{count}} clip pronte","schedule":"Programma","post":"Pubblica","goodClip":"Buona clip","badClip":"Clip scadente","downloadClip":"Scarica clip","moreOptions":"Altre opzioni","clipDefaultTitle":"Clip {{number}}","funMessages":{"goGrabCoffee":"Vai a prendere un caff\xe8","timeForStretch":"Tempo di fare stretching","takeQuickWalk":"Fai una passeggiata veloce","hydrateYourself":"Idratati","doPushups":"Fai qualche flessione","callYourMom":"Chiama tua mamma","petYourDog":"Accarezza il tuo cane","goForSwim":"Vai a fare una nuotata","touchSomeGrass":"Esci a prendere aria","checkYourPosture":"Controlla la tua postura"},"funMessagesModal":{"goForSwim":"Vai a fare una nuotata mentre lavoriamo","perfectTimeForCoffee":"Momento perfetto per un caff\xe8","quickStretch":"Che ne dici di un po\' di stretching?","hydrationCheck":"Controllo idratazione! Bevi un po\' d\'acqua","takeWalk":"Fai una passeggiata, ci pensiamo noi","callSomeone":"Chiama qualcuno che ami","petYourPet":"Accarezza il tuo animale se ne hai uno","touchGrass":"Esci a prendere aria, sul serio","jumpingJacks":"Fai 10 jumping jack","victoryDance":"Esercita la tua danza della vittoria","deepBreaths":"Respiri profondi... stai andando alla grande","timeToSnack":"Questo \xe8 il momento di fare uno spuntino"},"editClip":"Modifica clip","clipEditor":"Editor clip","trimIn":"Inizio","trimOut":"Fine","previewTrim":"Anteprima taglio","saveCaption":"Salva","saveAndDownload":"Salva e scarica","export":"Esporta","exportComplete":"Esportazione completata!","exportNotSupported":"L\'esportazione non \xe8 supportata in questo browser","backToClips":"Indietro","uploadLimitReached":"Limite di Caricamento Raggiunto","limitResets":"Il tuo limite si resetta il {{date}}","gotIt":"Capito","failed":"Fallito","creditsRefunded":"Crediti rimborsati","tryAgainDifferentLink":"Riprova o usa un link diverso.","noSpeechInVideo":"Il link che hai incollato non conteneva parlato. Provane uno in cui il creator parla.","retry":"Riprova","cancelJobBtn":"Annulla","hookScore":"Punteggio Hook","best":"Migliore","clipsSelected":"{{count}} selezionati","switchToFileUpload":"Passa al caricamento file","switchToURL":"Passa all\'URL","
2selectContentTypeFirst":"Seleziona prima un tipo di contenuto.","livestreamsNotSupported":"I livestream non sono ancora supportati \u2014 usa un VOD o un video registrato.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"Musica","documentary":"Documentario"},"cancelThisJob":"Annullare questo lavoro?","deleteTheseAssets":"Eliminare questi elementi?","willStopProcessingRemoveJob":"Questo fermer\xe0 l\'elaborazione e rimuover\xe0 il lavoro.","keepGoing":"Continua","noKeepThem":"No, tienili","yesCancelJob":"S\xec, annulla lavoro","yesDeleteForever":"S\xec, elimina per sempre","titleCaption":"Titolo didascalia","information":"Informazioni","duration":"Durata","platform":"Piattaforma","creator":"Creatore","rateThisClip":"Valuta questa clip","type":"Tipo","format":"Formato","clipsLabel":"Clip","slowConnection":"Connessione lenta","couldntLoad":"Impossibile caricare","tapToRetry":"Tocca per riprovare","clipsDeleted_one":"{{count}} clip eliminato","clipsDeleted_other":"{{count}} clip eliminati"}'),schedule:JSON.parse('{"shareClip":"Condividi Clip","loadingPlatforms":"Caricamento piattaforme...","noConnectedPlatforms":"Nessuna piattaforma connessa.","connectSocialsToSchedule":"Connetti i tuoi account social per programmare i post.","connectYourAccounts":"Connetti i tuoi account","postTo":"Pubblica su:","deselectAll":"Deseleziona Tutto","selectAll":"Seleziona Tutto","caption":"Didascalia","writeCaptionPlaceholder":"Scrivi una didascalia per il tuo post...","scheduleAction":"Programma","saveAndSchedule":"Salva e programma il post","postAction":"Pubblica","publishImmediately":"Pubblica immediatamente","scheduling":"Programmazione...","publishing":"Pubblicazione...","viewPost":"Visualizza Post","postedSuccessfully":"Pubblicato con Successo!","partiallyPosted":"Parzialmente Pubblicato","failedToPost":"Pubblicazione Fallita","selectAtLeastOnePlatform":"Seleziona almeno una piattaforma","selectATime":"Seleziona un orario","selectFutureTime":"Seleziona un orario futuro","postScheduled":"Post programmato!","failedToSchedule":"Programmazione fallita","failedToPublish":"Pubblicazione fallita","postedSuccess":"Pubblicato con successo!","postedToSomePlatforms":"Pubblicato su alcune piattaforme","failedToPostError":"Pubblicazione fallita","scheduledPost":"Post Programmato","postingTo":"Pubblicazione su","writeCaptionShort":"Scrivi una didascalia...","saveChanges":"Salva Modifiche","cancelScheduledPost":"Annullare questo post programmato?","clipWontBePosted":"Questa clip non verr\xe0 pubblicata sulle piattaforme selezionate.","keepIt":"Mantieni","cancelling":"Annullamento...","yesCancelPost":"S\xec, Annulla Post","changesSaved":"Modifiche salvate","failedToSaveChanges":"Salvataggio modifiche fallito","postCancelled":"Post annullato","failedToCancelPost":"Annullamento post fallito","todayAt":"Oggi alle","tomorrowAt":"Domani alle","upcomingClips":"Clip in Arrivo","noScheduledClipsThisMonth":"Nessuna clip programmata questo mese.","scheduleClipsHint":"Programma le clip dopo il rendering.","cancelScheduledPostConfirm":"Annullare il Post Programmato?","cancelPostMessage":"Questo rimuover\xe0 il post dalla tua programmazione. Potrai sempre riprogrammarlo in seguito.","cancelPost":"Annulla Post","sun":"Dom","mon":"Lun","tue":"Mar","wed":"Mer","thu":"Gio","fri":"Ven","sat":"Sab","untitledClip":"Clip Senza Titolo","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"Account Connessi","linkSocialsToPost":"Collega i tuoi social per pubblicare clip direttamente.","yourChannel":"Il Tuo Canale","watermarkDescription":"La tua foto profilo aiuta l\'IA a identificarti nel video per creare clip migliori.","streamerName":"Nome Streamer","placeholderStreamerName":"es. Kai Cenat","streamerNameHint":"Il nome dello streamer per cui fai clip. Questo aiuta l\'AI a scrivere hook migliori.","channelUsername":"Nome Utente del Canale","placeholderChannelUsername":"Il tuo nome utente di streaming","platform":"Piattaforma","selectPlatform":"Seleziona Piattaforma","ta
2pToChangePhoto":"Tocca per cambiare foto","pleaseSelectImageFile":"Seleziona un file immagine","imageMustBeLess5MB":"L\'immagine deve essere inferiore a 5MB","profilePictureUpdated":"Foto profilo aggiornata!","failedToUploadPicture":"Caricamento immagine fallito","disconnectedFrom":"Disconnesso da {{platform}}","failedToDisconnect":"Disconnessione fallita","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"Impostazioni Abbonamento","stripeConnectionStatus":"Stato Connessione Stripe","stripeConnectedMessage":"Il tuo account Stripe \xe8 connesso e pronto a ricevere pagamenti","manageStripeAccount":"Gestisci Account Stripe","stripeConnectInstructions":"Connetti il tuo account Stripe per iniziare a ricevere pagamenti degli abbonamenti...","stripeSetupWarning":"IMPORTANTE: Devi completare l\'intero processo di configurazione di Stripe...","stripeSupportMessage":"Problemi? Contatta il supporto a [email protected]...","connectingToStripe":"Connessione a Stripe...","connectStripeAccount":"Connetti Account Stripe","enableSubscriptions":"Abilita Abbonamenti","monthlySubscriptionPrice":"Prezzo Abbonamento Mensile (USD)","subscriptionDescription":"Descrizione Abbonamento","describeSubscriptionBenefits":"Descrivi a cosa avranno accesso gli abbonati...","saveSettings":"Salva Impostazioni","settingsSaved":"Impostazioni salvate con successo!","savingFailed":"Salvataggio impostazioni fallito. Riprova.","stripeConnectionError":"Connessione a Stripe fallita. Riprova.","stripeDashboardError":"Apertura dashboard Stripe fallita. Riprova.","stripeSetupError":"Completamento configurazione Stripe fallito. Riprova.","xsubscribeAdmin":"Amministrazione XSubscribe","preview":"Anteprima","fetchLinksError":"Recupero link utente fallito","deleteLinkError":"Eliminazione link fallita","orderUpdateSuccess":"Valori dell\'ordine aggiornati sul server","orderUpdateError":"Aggiornamento valori dell\'ordine sul server fallito","addLinkError":"Aggiunta link fallita","profileSection":"Profilo","pickAnImage":"Scegli un\'Immagine","remove":"Rimuovi","usernameInputPlaceholder":"Il tuo handle X (@nomeutente)","bioInputPlaceholder":"Perch\xe9 le Persone Dovrebbero Abbonarsi?","getUnlimitedCustomization":"Ottieni personalizzazione illimitata","verifiedCheckmark":"Segno di Verifica","customBackgroundImages":"Immagini di sfondo personalizzate","removeXSubscribeLogo":"Rimuovi il logo XSubscribe","dollarPerMonth":"$9 /mese dopo","flatColour":"Colore Piatto","image":"Immagine","pickAColor":"Scegli un Colore","hideXSubscribeLogo":"Nascondi il logo XSubscribe","errorUpdatingProfileTitle":"Errore nell\'aggiornamento del titolo profilo","errorUpdatingBio":"Errore nell\'aggiornamento della bio del profilo","errorSavingBackgroun
2dColor":"Errore nel salvataggio del colore di sfondo","errorUpdatingEffects":"Errore nell\'aggiornamento degli effetti di sfondo","errorUpdatingLogo":"Errore nell\'aggiornamento del logo utente","invalidUser":"currentUser non \xe8 valido.","errorFetchingLogoStatus":"Errore nel recupero dello stato iniziale del logo","errorFetchingUserData":"Errore nel recupero dei dati utente","errorFetchingProfilePic":"Errore nel recupero della foto profilo","uploadFailed":"Caricamento fallito","accountSettings":"Impostazioni Account","manageSubscription":"Gestisci Abbonamento","manageSubscriptionDesc":"Aggiorna il metodo di pagamento, visualizza le fatture o annulla","deleteAccount":"Elimina Account","deleteAccountWarning":"Questa azione non pu\xf2 essere annullata. Tutti i tuoi dati verranno eliminati definitivamente.","typeDeleteToConfirm":"Digita DELETE per confermare","accountDeleted":"Account eliminato con successo","failedToDeleteAccount":"Eliminazione account fallita","failedToOpenBilling":"Apertura portale di fatturazione fallita","yourBrands":"I Tuoi Brand","addBrand":"Aggiungi Brand","brandName":"Nome Brand","brandNamePlaceholder":"Inserisci il nome del brand","createBrand":"Crea Brand","switchBrand":"Cambia Brand","deleteBrand":"Elimina Brand","cannotDeleteLastBrand":"Non puoi eliminare il tuo unico brand","brandCreated":"Brand creato!","brandSwitched":"Brand cambiato!","brandDeleted":"Brand eliminato","failedToCreateBrand":"Creazione brand fallita","failedToSwitchBrand":"Cambio brand fallito","failedToDeleteBrand":"Eliminazione brand fallita","captionPresets":"Stile Sottotitoli","captionPresetsDesc":"Imposta l\'aspetto predefinito dei sottotitoli sulle tue clip. Le nuove clip useranno il tuo stile attivo.","presetName":"Nome Stile","presetNamePlaceholder":"es. Rosso Grassetto","addPreset":"Aggiungi Stile","editPreset":"Modifica","deletePreset":"Elimina","createPreset":"Crea Stile","presetCreated":"Stile creato!","presetActivated":"Stile sottotitoli cambiato!","presetDeleted":"Stile eliminato","cannotDeleteLastPreset":"Non puoi eliminare il tuo unico stile","failedToSwitchPreset":"Cambio stile fallito","failedToDeletePreset":"Eliminazione stile fallita","captionPreview":"Questa \xe8 un\'anteprima dei tuoi sottotitoli","captionColor":"Colore","captionFont":"Font","captionPosition":"Posizione","captionWidth":"Larghezza","streamType":"Tipo di Contenuto","streamTypeHint":"Che tipo di contenuto crei? Questo aiuta l\'IA ad adattare le clip al tuo stile.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay con commento, momenti clutch, reazioni","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, interviste, reazioni, commenti","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Streaming nella vita reale, eventi, contenuti all\'aperto","streamTypeMusic":"Musica","streamTypeMusicDesc":"Esibizioni dal vivo, set DJ, produzione musicale","streamTypeDocumentary":"Documentario","streamTypeDocumentaryDesc":"Documentari, mini-doc e film","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"Sblocca Clipbait","getFullAccess":"Ottieni accesso completo alla generazione di clip con AI","monthly":"Mensile","annual":"Annuale","save15Percent":"Risparmia il 15%","perMonth":"/mese","perMonthShort":"/mese","billedAsPerYear":"Fatturato a ${{amount}}/anno","upload30Videos":"Carica 30 video al mese","upTo2Hours":"Video fino a 2 ore","generate300Clips":"Genera 300 clip al mese","downloadAndSchedule":"Scarica e programma clip","upTo5Accounts":"Fino a 5 account brand","getStarted":"Inizia Ora","redirecting":"Reindirizzamento...","exclusiveOffer":"OFFERTA ESCLUSIVA","russellBrandsPick":"La Scelta di Russell Brand","get10PercentOff":"Ottieni il 10% di sconto su Clipbait Pro \u2014 esclusivo per il pubblico di Russell","discountApplied":"Sconto del 10% applicato automaticamente","claim10Off":"Ottieni il 10% di Sconto","noThanksFullPrice":"No grazie, pago il prezzo intero","generateWithoutLimits":"Genera senza limiti","upgradePlan":"Aggiorna Piano","buyCredits":"Acquista Crediti","creditsNeverExpireNote":"I crediti non scadono mai e vengono usati dopo aver esaurito il limite mensile del piano.","mostPopular":"Pi\xf9 Popolare","bestValue":"Miglior Rapporto Qualit\xe0-Prezzo","generationsPerMonth":"{{count}} generazioni/mese","twentyPercentOff":"20% di sconto","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save
216Percent":"Risparmia 16%","save26Percent":"Risparmia 26%","perMonthBilledAnnually":"al mese, fatturato annualmente"}'),pages:JSON.parse('{"foundersStoryTitle":"La Storia dei Nostri Fondatori","foundersStoryContent":"Nel 2021, Spirit ha incontrato la morsa soffocante della censura sulle piattaforme mainstream. Determinato a trovare uno spazio dove la libert\xe0 di espressione prosperasse, ha scoperto una piattaforma che risuonava con le sue convinzioni nel dialogo aperto e nella libert\xe0 creativa. Questo momento cruciale ha scatenato l\'idea per quello che sarebbe diventato XSubscribe \u2014 una piattaforma dove i creatori e le loro comunit\xe0 potessero connettersi autenticamente, senza paura della censura. Spirit, con la sua visione unica e la passione per l\'empowerment dei creatori, ha gettato le basi per una nuova era nella monetizzazione dei contenuti. Mentre XSubscribe continua a evolversi, rimane radicato nella convinzione che ogni voce meriti di essere ascoltata. Che tu sia un creatore esperto o alle prime armi, XSubscribe \xe8 qui per aiutarti a costruire una carriera sostenibile facendo ci\xf2 che ami.","termsTitle":"Termini e Condizioni","lastUpdatedTerms":"Ultimo aggiornamento: Domenica 7 Gen 2024","termsSection1Title":"1. Benvenuto su XSubscribe:","termsSection1Content":"Questi Termini d\'Uso (\\"Termini\\") regolano l\'utilizzo dei servizi XSubscribe, inclusi il sito web, le API, le app mobili e tutti i servizi correlati. Utilizzando la nostra piattaforma, accetti di seguire questi Termini.","termsSection2Title":"2. Modifiche ai Termini:","termsSection2Content":"XSubscribe potrebbe aggiornare questi Termini di tanto in tanto. Sarai notificato di eventuali modifiche importanti, e l\'uso continuato della piattaforma dopo le modifiche significa che accetti i nuovi termini.","termsSection3Title":"3. Il Tuo Account:","termsSection3Content":"Devi avere almeno 18 anni per usare XSubscribe, o avere il permesso di un genitore/tutore. Mantieni aggiornate le informazioni del tuo account e proteggi la tua password. Sei responsabile di ci\xf2 che accade sul tuo account.","termsSection4Title":"4. Il Tuo Nome Utente:","termsSection4Content":"I nomi utente devono rispettare i diritti altrui. XSubscribe pu\xf2 reclamare o modificare i nomi utente se necessario.","termsSection5Title":"5. Gestione del Tuo Piano:","termsSection5Content":"XSubscribe offre piani gratuiti e a pagamento. I piani a pagamento richiedono un metodo di pagamento valido. Puoi passare da un piano all\'altro.","termsSection6Title":"6. I Tuoi Contenuti:","termsSection6Content":"Sei responsabile dei tuoi contenuti. Devono seguire le nostre linee guida e la legge. XSubscribe pu\xf2 rimuovere contenuti che violano questi standard.","termsSection7Title":"7. Cosa Possiamo Fare con i Tuoi Contenuti:","termsSection7Content":"XSubscribe ha una licenza per usare, distribuire e visualizzare i tuoi contenuti come parte della gestione della piattaforma. Puoi controllare i tuoi contenuti attraverso le impostazioni sulla privacy.","termsSection8Title":"8. Sospensione o Cancellazione del Tuo Account:","termsSection8Content":"XSubscribe pu\xf2 sospendere o cancellare account per violazione delle regole. Puoi anche cancellare il tuo account.","termsSection9Title":"9. La Tua Responsabilit\xe0 verso Visitatori e Clienti:","termsSection9Content":"Sei responsabile dell\'esperienza delle persone che visitano o interagiscono con il tuo profilo.","termsSection10Title":"10. Feedback:","termsSection10Content":"Se fornisci feedback, XSubscribe pu\xf2 utilizzarlo liberamente. Non sei obbligato a fornire feedback.","termsSection11Title":"11. La Nostra Piattaforma:","termsSection11Content":"Hai un diritto limitato di usare la piattaforma per la tua attivit\xe0 di contenuti. Non abusarne o tentare di danneggiarla.","termsSection12Title":"12. Commissioni e Pagamento:","termsSection12Content":"Le commissioni di abbonamento, le commissioni di transazione e i termini di pagamento sono dettagliati nel Tariffario.","termsSection13Title":"13. Privacy:","termsSection13Content":"L\'Informativa sulla Privacy di XSub
2scribe descrive come gestiamo le tue informazioni.","termsSection14Title":"14. Riservatezza:","termsSection14Content":"Mantieni riservate le informazioni non pubbliche condivise da XSubscribe.","termsSection15Title":"15. Responsabilit\xe0:","termsSection15Content":"Sei responsabile del tuo utilizzo della piattaforma. La responsabilit\xe0 di XSubscribe \xe8 limitata.","termsSection16Title":"16. Esclusioni di Responsabilit\xe0:","termsSection16Content":"La piattaforma \xe8 fornita \\"COS\xcc COM\'\xc8\\" senza garanzie.","termsSection17Title":"17. Servizi di Terze Parti:","termsSection17Content":"XSubscribe collabora con servizi di terze parti. Si applicano i loro termini e le loro politiche.","termsSection18Title":"18. Termini dell\'App:","termsSection18Content":"Termini specifici si applicano quando utilizzi l\'app mobile XSubscribe.","termsSection19Title":"19. Open Source:","termsSection19Content":"L\'app potrebbe includere software open source con le proprie licenze.","termsSection20Title":"20. Ultime Considerazioni:","termsSection20Content":"Determinate leggi potrebbero applicarsi a seconda della tua posizione. Questi Termini rappresentano l\'accordo completo tra te e XSubscribe.","furtherInformation":"Dove puoi ottenere ulteriori informazioni?","termsContactInstructions":"Se hai domande sui nostri Termini e Condizioni, contattaci:","cookieNoticeTitle":"Avviso sui Cookie","lastUpdatedCookies":"Ultimo aggiornamento: Domenica 7 Gen 2023","cookieIntroduction":"Questo Avviso sui Cookie spiega come XSubscribe LLC utilizza cookie e tecnologie simili.","whatAreCookies":"Cosa sono i cookie?","cookieDefinition":"I cookie sono piccoli file di dati memorizzati sul tuo dispositivo quando visiti un sito web.","thirdPartyCookies":"I cookie impostati da parti diverse da XSubscribe sono chiamati cookie di terze parti.","whyUseCookies":"Perch\xe9 usiamo i cookie?","cookieUsage":"Utilizziamo cookie di prima parte e di terze parti per diversi scopi.","cookieContactInstructions":"Se hai domande sul nostro utilizzo dei cookie, contattaci:","contactSpiritTitle":"Contatta Spirit","contactInstructions":"Ciao, puoi contattarmi in diversi modi elencati qui sotto:","searchTitle":"RICERCA","searchPlaceholder":"CERCA STREAMER\u2026","searchResults":"RISULTATI","suggestedStreamers":"STREAMER SUGGERITI","profileTitle":"Profilo","onlyJpgPngAllowed":"Solo JPG/PNG consentiti","maxFileSize2MB":"Dimensione massima file 2MB","selectAvatar":"SELEZIONA AVATAR","updating":"AGGIORNAMENTO...","demoSubscriptionAlert":"Questa \xe8 una Demo. Non puoi abbonarti a questo creatore.","subscribe":"Abbonati","perMonth":"/mese","subscribed":"\u2713 Abbonato","successfullySubscribedTo":"Abbonato con successo a","weLockedIn":"Ci siamo.","createYourXSubscribe":"Crea il Tuo XSubscribe","pageNotFoundHeading":"La pagina che stai cercando non esiste.","pageNotFoundMessage":"Vuoi che questo sia il tuo nome utente?","createXSubscribeNow":"Crea il tuo XSubscribe ora.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"Caricamento SuperChats...","recentSuperchats":"Messaggi e mance SuperChat recenti","noSuperchatsPart1":"Nessun SuperChat ancora per","noSuperchatsPart2":"Sii il primo a inviare un SuperChat!","loadingSuperChatsError":"Caricamento SuperChats fallito","addComment":"AGGIUNGI UN COMMENTO\u2026","signInToComment":"ACCEDI PER COMMENTARE","send":"Invia","signIn":"Accedi","beTheFirstToComment":"SII IL PRIMO A COMMENTARE.","writeReply":"Scrivi una risposta\u2026","reply":"Rispondi","unlike":"Rimuovi Mi Piace","like":"Mi Piace","comments":"commenti","shareThisStream":"CONDIVIDI QUESTA DIRETTA","goTo":"Vai a","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Messaggi","emailShare":"Email","copyLink":"Copia link","more":"Altro","deleting":"Eliminazione\u2026","anon":"Anonimo","noCommentsYet":"Nessun commento ancora.","sendSuperChat":"Invia SuperChat","amountDollar":"Importo ($)","messageMaxChars":"Messaggio (max 200 caratteri)","typeSuperChatMessage":"Scrivi il tuo messaggio SuperChat...","processingPayment":"Elaborazione...","sendAmount":"Invia SuperChat da ${{amount}}","pleaseLogInToSuperChat":"Accedi per inviare un SuperChat","pleaseEnterMessage":"Inserisci un messaggio","amountMustBeAtLeast1":"L\'importo deve essere almeno $1","failedToCreateCheckout":"Creazione sessione di checkout fallita","highlightedFor":"In evidenza per"}'),notifications:JSON.parse('{"notifications":"Notifiche","viaEmail":"VIA EMAIL","receiveNotificationThroughEmail":"RICEVI NOTIFICHE VIA EMAIL","all":"Tutte","unread":"Non lette","noUnreadNotifications":"Nessuna notifica non letta.","noNotificationsYet":"Nessuna notifica ancora.","couldntLoadNotifications":"Impossibile caricare le notifiche dal server","someone":"Qualcuno","isLiveNow":"\xe8 in diretta ora","postedReplay":"ha pubblicato una replica","repliedToComment":"ha risposto al tuo commento","likedYourComment":"ha messo mi piace al tuo commento","activity":"attivit\xe0","secondsAgo":"{{count}}s","minutesAgo":"{{count}}m","hoursAgo":"{{count}}h","daysAgo":"{{count}}g"}')},ru:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\u0412\u043e\u0439\u0442\u0438","logout":"\u0412\u044b\u0439\u0442\u0438","signUp":"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f","signUpFree":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e","profile":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c","creatorDashboard":"\u041f\u0430\u043d\u0435\u043b\u044c \u0430\u0432\u0442\u043e\u0440\u0430","notifications":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f","pricing":"\u0426\u0435\u043d\u044b","admin":"\u0410\u0434\u043c\u0438\u043d","save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","saving":"\u
20421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435...","cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","continue":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c","skip":"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c","skipForNow":"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u043a\u0430","done":"\u0413\u043e\u0442\u043e\u0432\u043e","loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...","edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","connect":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c","disconnect":"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c","comingSoon":"\u0421\u043a\u043e\u0440\u043e","connected":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e","back":"\u041d\u0430\u0437\u0430\u0434","upgrade":"\u0423\u043b\u0443\u0447\u0448\u0438\u0442\u044c","options":"\u041e\u043f\u0446\u0438\u0438","confirm":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c","areYouSure":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b?","appearance":"\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435","subs":"\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0438","myPage":"\u041c\u043e\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","clipsTab":"\u041a\u041b\u0418\u041f\u042b","calendarTab":"\u041a\u0410\u041b\u0415\u041d\u0414\u0410\u0420\u042c","profileTab":"\u041f\u0420\u041e\u0424\u0418\u041b\u042c","company":"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f","about":"\u041e \u043d\u0430\u0441","press":"\u041f\u0440\u0435\u0441\u0441\u0430","contact":"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b","followUs":"\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c","termsAndConditions":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f","cookiePolicy":"\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 cookies","connectedTo":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043a {{platform}}!","planActivated":"\u041f\u043b\u0430\u043d \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f.","saved":"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!","failedToSave":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","deleting":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435...","logOut":"\u0412\u044b\u0439\u0442\u0438","download":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","freePlan":"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u043b\u0430\u043d","planLabel":"\u041f\u043b\u0430\u043d {{plan}}","outOfCredits":"\u26a1 \u041a\u0440\u0435\u0434\u0438\u0442\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c","creditsRemaining_one":"\u26a1 {{count}} \u043a\u0440\u0435\u0434\u0438\u0442 \u043e\u0441\u0442\u0430\u043b\u0441\u044f","creditsRemaining_other":"\u26a1 {{count}} \u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c","topUpCredits":"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u0440\u0435\u0434\u0438\u0442\u044b","buy":"\u041a\u0443\u043f\u0438\u0442\u044c","manageAccount":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c","signOut":"\u0412\u044b\u0439\u0442\u0438"}'),auth:JSON.parse('{"welcomeBack":"\u0421 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435\u043c","signInToContinue":"\u0412\u043e\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 Clipbait","continueWithGoogle":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 Google","orContinueWithEmail":"\u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 email","enterYourEmail":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448 email","checkYourEmail":"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u043e\u0447\u0442\u0443","weSentCodeTo":"\u041c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u043a\u043e\u0434 \u043d\u0430","pleaseEnter6DigitCode":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 6-\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u043a\u043e\u0434","verifyAndContinue":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c","resendCodeIn":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{countdown}}\u0441","resendCode":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e","byContinuingYouAgree":"\u
2041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441","termsOfService":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f","privacyPolicy":"\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438","invalidCode":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043e\u0434. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","invalidEmail":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 email","failedToSendCode":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","signingYouIn":"\u0412\u0445\u043e\u0434\u0438\u043c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443...","emailOrUsername":"Email \u0438\u043b\u0438 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","password":"\u041f\u0430\u0440\u043e\u043b\u044c","forgotPassword":"\u0417\u0430\u0431\u044b\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c?","logIn":"\u0412\u043e\u0439\u0442\u0438","incorrectCredentials":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 email/\u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c","emailNotVerified":"Email \u043d\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u043e\u0447\u0442\u0443.","email":"Email","username":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","birthdayLabel":"\u0414\u0430\u0442\u0430 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f (\u041c\u0435\u0441\u044f\u0446 / \u0414\u0435\u043d\u044c / \u0413\u043e\u0434)","monthPlaceholder":"\u041c\u041c","dayPlaceholder":"\u0414\u0414","yearPlaceholder":"\u0413\u0413\u0413\u0413","usernameTooShort":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c {{min}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.","usernameTooLong":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c {{max}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.","usernameInvalidFormat":"\u0414\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u043a\u0432\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f. \u0411\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432.","birthdayRequired":"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u0443\u044e \u0434\u0430\u0442\u0443 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f.","invali
2dEmailFormat":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 email.","passwordRequired":"\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c.","passwordTooShort":"\u041f\u0430\u0440\u043e\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0443\u043c 3 \u0441\u0438\u043c\u0432\u043e\u043b\u0430.","emailAvailable":"Email \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.","usernameAvailable":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e.","usernameTaken":"\u042d\u0442\u043e \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442\u043e.","emailTaken":"\u0410\u043a\u043a\u0430\u0443\u043d\u0442 \u0441 \u0442\u0430\u043a\u0438\u043c email \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.","passwordHint":"\u
2041c\u0438\u043d\u0438\u043c\u0443\u043c 3 \u0441\u0438\u043c\u0432\u043e\u043b\u0430.","fixErrorsToContinue":"\u0418\u0441\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c","bySigningUpYouAgree":"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044f\u0441\u044c, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u0448\u0438\u043c\u0438","termsOfUse":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f","accountCreated":"\u0410\u043a\u043a\u0430\u0443\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d!","registrationFailed":"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0435 \u0443\u0434\u0430\u043b\u0430\u0441\u044c. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","alreadyHaveAccount":"\u0423\u0436\u0435 \u0435\u0441\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u0438 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435!","termsAgreementFull":"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044f\u0441\u044c, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438, \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 cookies.","resetYourPassword":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c","enterEmailToReset":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 email \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430","pleaseEnterEmail":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 email","resetPassword":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c","pleaseEnterYourEmail":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448 email","couldNotStartRecovery":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435.","backToLogin":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0432\u0445\u043e\u0434\u0443","emailVerification":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 email","weSent4DigitCode":"\u041c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438 4-\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430","yourEmail":"\u0432\u0430\u0448\u0443 \u043f\u043e\u0447\u0442\u0443","pleaseEnter4DigitCode":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 4-\u0437\u043d\u0430\u0447\u043d\u044b\u0439 \u043a\u043e\u0434.","verifyAccount":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442","incorrectOrExpiredCode":"\u0412\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435\u0432\u0435\u0440\u0435\u043d \u0438\u043b\u0438 \u0438\u0441\u0442\u0451\u043a. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u0438\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u043d\u043e\u0432\u044b\u0439.","didntReceiveCode":"\u041d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u043e\u0434?","resendIn":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{timer}}\u0441","sending":"\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430\u2026","verifying":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u2026","newCodeSent":"\u041d\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0432\u0430\u0448\u0443 \u043f\u043e\u0447\u0442\u0443.","missingEmail":"Email \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d.","failedToResendCode":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0436\u0435.","changePassword":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c","newPassword":"\u041d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c","confirmPassword":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c","passwordsDontMatch":"\u041f\u0430\u0440\u043e\u043b\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442","failedToResetPassword":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c","couldNotResetPassword":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c.","invali
2dOrExpiredCode":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.","passwordSuccessfullySet":"\u041f\u0430\u0440\u043e\u043b\u044c \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d","successTitle":"\u0423\u0441\u043f\u0435\u0448\u043d\u043e!","emailSentInstructions":"\u041f\u0438\u0441\u044c\u043c\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0432\u0430\u0448\u0443 \u043f\u043e\u0447\u0442\u0443. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0435\u0433\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 15 \u043c\u0438\u043d\u0443\u0442 \u0432\u044b \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u043f\u0438\u0441\u044c\u043c\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 \u0441\u043f\u0430\u043c. \u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0451\u0442\u0435 \u0435\u0433\u043e \u0442\u0430\u043c, \u043e\u0442\u043c\u0435\u0442\u044c\u0442\u0435 \u043a\u0430\u043a \xab\u041d\u0435 \u0441\u043f\u0430\u043c\xbb.","emailVerifiedSuccessfully":"Email \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d","emailSuccessfullyVerifiedAlert":"Email \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d","notFound404":"404 \u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e"}'),onboarding:JSON.parse('{"title":"\u041f\u0440\u0438\u0432\u0435\u0442, \u044f Clipbait","subtitle":"\u042f \u0432\u0430\u0448 AI-\u043a\u043b\u0438\u043f\u043f\u0435\u0440 \u0434\u043b\u044f \u0441\u0442\u0440\u0438\u043c\u043e\u0432","factHeader":"\u0412\u043e\u0442 \u0447\u0442\u043e \u0432\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u0437\u043d\u0430\u0442\u044c \u043e\u0431\u043e \u043c\u043d\u0435:","fact1":"\u041c\u0435\u043d\u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u043d\u0442\u0430\u0436\u0451\u0440, \u043c\u043e\u0438 \u043d\u0430\u0432\u044b\u043a\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0430\u044e\u0442\u0441\u044f","fact2":"\u042f \u0441\u043e\u0437\u0434\u0430\u043d, \u0447\u0442\u043e\u0431\u044b \u041f\u041e\u041c\u041e\u0413\u0410\u0422\u042c \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430\u043c \u0438 \u043a\u043b\u0438\u043f\u043f\u0435\u0440\u0430\u043c \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443","letsGetStarted":"\u041d\u0430\u0447\u043d\u0451\u043c","questionUserType":"\u0412\u044b \u043a\u043b\u0438\u043f\u043f\u0435\u0440 \u0438\u043b\u0438 \u0441\u0442\u0440\u0438\u043c\u0435\u0440?","imAClipper":"\u042f \u043a\u043b\u0438\u043f\u043f\u0435\u0440","imAStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u0435\u0440","questionStreamerNameClipper":"\u041a\u0430\u043a \u0437\u043e\u0432\u0443\u0442 \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430?","questionStreamerNameStreamer":"\u041a\u0430\u043a \u0432\u0430\u0448\u0435 \u0438\u043c\u044f \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430?","placeholderStreamerNameClipper":"\u043d\u0430\u043f\u0440. Kai Cenat","placeholderStreamerNameStreamer":"\u043d\u0430\u043f\u0440. \u0412\u0430\u0448\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u0438\u043c\u044f","streamerNameHint":"\u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 AI \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0438\u0435 \u0445\u0443\u043a\u0438 \u0434\u043b\u044f \u043a\u043b\u0438\u043f\u043e\u0432.","questionChannelUsernameClipper":"\u041a\u0430\u043a\u043e\u0435 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043a\u043b\u0438\u043f\u0438\u0442\u0435?","questionChannelUsernameStreamer":"\u041a\u0430\u043a\u043e\u0435 \u0443 \u0432\u0430\u0441 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430? (\u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u043a\u0441\u0442 \u2014 \u0431\u0435\u0437 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"\u041d\u0430 \u043a\u0430\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u043e\u043d\u0438 \u0441\u0442\u0440\u0438\u043c\u044f\u0442?","questionPlatformStreamer":"\u041a\u0430\u043a\u0430\u044f \u0432\u0430\u0448\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430?","twitchStreamer":"\u042f \u
20441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 Twitch","rumbleStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 Rumble","youtubeStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 YouTube","kickStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 Kick","xStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 X","ganjingStreamer":"\u042f \u0441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0444\u043e\u0442\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f","profilePictureHint":"\u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043d\u0430\u0448\u0435\u043c\u0443 \u0418\u0418 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0432\u0430\u0441 \u0432 \u0432\u0438\u0434\u0435\u043e \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043b\u0438\u043f\u044b.","choosePhoto":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0442\u043e","uploading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...","questionOpportunitiesClipper":"\u0425\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043a\u043b\u0438\u043f\u043f\u0438\u043d\u0433?","questionOpportunitiesStreamer":"\u0425\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u043d\u044f\u0442\u044c \u043a\u043b\u0438\u043f\u043f\u0435\u0440\u043e\u0432 Clipbait \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0441\u0442\u0440\u0438\u043c\u043e\u0432?","yesInterested":"\u0414\u0430, \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e","notRightNow":"\u041d\u0435 \u0441\u0435\u0439\u0447\u0430\u0441","questionConnectPages":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u0432\u043e\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u043f\u043e\u0432","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"\u041a\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435?","streamTypeGaming":"\u0418\u0433\u0440\u044b","streamTypeGamingDesc":"\u0413\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u043a\u043b\u0430\u0442\u0447-\u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0440\u0435\u0430\u043a\u0446\u0438\u0438","streamTypeTalkingHead":"\u0413\u043e\u0432\u043e\u0440\u044f\u0449\u0430\u044f \u0433\u043e\u043b\u043e\u0432\u0430","streamTypeTalkingHeadDesc":"\u041f\u043e\u0434\u043a\u0430\u0441\u0442\u044b, \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e, \u0440\u0435\u0430\u043a\u0446\u0438\u0438, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438","streamTypeIRL":"IRL / \u0412\u043b\u043e\u0433","streamTypeIRLDesc":"\u0421\u0442\u0440\u0438\u043c\u0438\u043d\u0433 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438, \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f, \u0443\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442","streamTypeMusic":"\u041c\u0443\u0437\u044b\u043a\u0430","streamTypeMusicDesc":"\u0416\u0438\u0432\u044b\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f, DJ-\u0441\u0435\u0442\u044b, \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e","finishSetup":"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443","ownStreamer":"\u042f \u
20441\u0442\u0440\u0438\u043c\u043b\u044e \u043d\u0430 OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"AI-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043b\u0438\u043f\u043e\u0432","turnStreamsInto":"\u041f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u0438\u043c\u044b \u0432","viralClips":"\u0432\u0438\u0440\u0443\u0441\u043d\u044b\u0435 \u043a\u043b\u0438\u043f\u044b","pasteUrl":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c URL","uploadVideo":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e","pasteYouTubeLivestream":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 YouTube-\u0441\u0442\u0440\u0438\u043c","pasteRumbleLivestream":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 Rumble-\u0441\u0442\u0440\u0438\u043c","pasteGanjingWorldLink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 Ganjing World","pasteKickLink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 Kick","pasteTwitchLink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 Twitch","pasteXLink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 X","generateClips":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0438\u043f\u044b","starting":"\u0417\u0430\u043f\u0443\u0441\u043a...","uploadingProgress":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 {{progress}}%...","processing":"\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430","yourClips":"\u0412\u0430\u0448\u0438 \u043a\u043b\u0438\u043f\u044b","loadingClips":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043b\u0438\u043f\u043e\u0432...","noClipsYet":"\u041a\u043b\u0438\u043f\u043e\u0432 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442","pasteStreamUrl":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 URL \u0441\u0442\u0440\u0438\u043c\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c","clipsReady":"{{count}} \u043a\u043b\u0438\u043f\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u043e!","clipCount":"{{count}} \u043a\u043b\u0438\u043f\u043e\u0432","dropFileHere":"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u0441\u044e\u0434\u0430","dragAndDrop":"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u043b\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430","mp4OrMovMax2GB":"MP4 \u0438\u043b\u0438 MOV, \u043c\u0430\u043a\u0441. 2\u0413\u0411","freeTrialBanner":"\u0412\u044b \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u043c \u043f\u0440\u043e\u0431\u043d\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435\u0441\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430.","pasteVideoLinkFirst":"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e","selectPlatformInSettings":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445","setChannelUsername":"\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445","onlyMp4MovSupported":"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u044b MP4 \u
20438 MOV","fileMustBeUnder2GB":"\u0424\u0430\u0439\u043b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 2\u0413\u0411","selectVideoFileFirst":"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0438\u0434\u0435\u043e\u0444\u0430\u0439\u043b","clippingStarted":"\u041a\u043b\u0438\u043f\u043f\u0438\u043d\u0433 \u043d\u0430\u0447\u0430\u0442!","uploadCompleteClippingStarted":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u2014 \u043a\u043b\u0438\u043f\u043f\u0438\u043d\u0433 \u043d\u0430\u0447\u0430\u0442!","uploadFailed":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","failedToStartClipping":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u043a\u043b\u0438\u043f\u043f\u0438\u043d\u0433","havingTroubleWithLink":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u2014 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 YouTube","reachedUploadLimit":"\u0412\u044b \u0434\u043e\u0441\u0442\u0438\u0433\u043b\u0438 \u043b\u0438\u043c\u0438\u0442\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435.","jobCancelled":"\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u043e","projectDeleted":"\u041f\u0440\u043e\u0435\u043a\u0442 \u0443\u0434\u0430\u043b\u0451\u043d","failedToDeleteProject":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442","deleteProject":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442?","cannotBeUndone":"\u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c.","jobStillProcessing":"\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0432\u0441\u0451 \u0435\u0449\u0451 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f","jobCancelledClipsDeleted":"\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u043e, \u0438 \u0432\u0441\u0435 \u043a\u043b\u0438\u043f\u044b \u0431\u0443\u0434\u0443\u0442 \u0431\u0435\u0437\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u044b.","allClipsDeleted":"\u0412\u0441\u0435 \u043a\u043b\u0438\u043f\u044b \u0431\u0443\u0434\u0443\u0442 \u0431\u0435\u0437\u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u044b.","creatingYourClips":"\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432\u0430\u0448\u0438 \u043a\u043b\u0438\u043f\u044b","wellEmailYouWhenReady":"\u041c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c email, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e","estimatingTime":"\u041e\u0446\u0435\u043d\u043a\u0430...","underTwoMinutes":"\u043c\u0435\u043d\u0435\u0435 2 \u043c\u0438\u043d\u0443\u0442","minutesRemaining":"~{{count}} \u043c\u0438\u043d. \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c","hoursMinutesRemaining":"~{{hours}}\u0447 {{minutes}}\u043c\u0438\u043d. \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c","almostDone":"\u043f\u043e\u0447\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u043e...","phaseDownloading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0432\u0438\u0434\u0435\u043e...","phaseDownloaded":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430","phaseExtractingAudio":"\u0418\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u043e...","phaseTranscribing":"\u
20422\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0443\u0434\u0438\u043e...","phaseTranscribingLong":"(\u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u044d\u0442\u0430\u043f \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0439)","phaseAnalyzing":"\u0418\u0418 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b...","phaseRendering":"\u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u043a\u043b\u0438\u043f\u043e\u0432...","phaseDone":"\u0413\u043e\u0442\u043e\u0432\u043e!","tryUploadingInstead":"\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e","processingStatus":"\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430...","clipsReadyCount":"{{count}} \u043a\u043b\u0438\u043f\u043e\u0432 \u0433\u043e\u0442\u043e\u0432\u043e","schedule":"\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c","post":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c","goodClip":"\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043a\u043b\u0438\u043f","badClip":"\u041f\u043b\u043e\u0445\u043e\u0439 \u043a\u043b\u0438\u043f","downloadClip":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043b\u0438\u043f","moreOptions":"\u0415\u0449\u0451","clipDefaultTitle":"\u041a\u043b\u0438\u043f {{number}}","funMessages":{"goGrabCoffee":"\u0412\u044b\u043f\u0435\u0439\u0442\u0435 \u043a\u043e\u0444\u0435","timeForStretch":"\u0412\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u043c\u044f\u0442\u044c\u0441\u044f","takeQuickWalk":"\u041f\u0440\u043e\u0433\u0443\u043b\u044f\u0439\u0442\u0435\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e","hydrateYourself":"\u041f\u043e\u043f\u0435\u0439\u0442\u0435 \u0432\u043e\u0434\u044b","doPushups":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043e\u0442\u0436\u0438\u043c\u0430\u043d\u0438\u044f","callYourMom":"\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u0435 \u043c\u0430\u043c\u0435","petYourDog":"\u041f\u043e\u0433\u043b\u0430\u0434\u044c\u0442\u0435 \u0441\u043e\u0431\u0430\u043a\u0443","goForSwim":"\u041f\u043e\u043f\u043b\u0430\u0432\u0430\u0439\u0442\u0435","touchSomeGrass":"\u041f\u043e\u0434\u044b\u0448\u0438\u0442\u0435 \u0441\u0432\u0435\u0436\u0438\u043c \u0432\u043e\u0437\u0434\u0443\u0445\u043e\u043c","checkYourPosture":"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043e\u0441\u0430\u043d\u043a\u0443"},"funMessagesModal":{"goForSwim":"\u041f\u043e\u043f\u043b\u0430\u0432\u0430\u0439\u0442\u0435, \u043f\u043e\u043a\u0430 \u043c\u044b \u043a\u043e\u043b\u0434\u0443\u0435\u043c","perfectTimeForCoffee":"\u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u0438\u0442\u044c \u043a\u043e\u0444\u0435","quickStretch":"\u041c\u043e\u0436\u0435\u0442, \u0440\u0430\u0437\u043e\u043c\u043d\u0451\u0442\u0435\u0441\u044c?","hydrationCheck":"\u0412\u0440\u0435\u043c\u044f \u043f\u0438\u0442\u044c \u0432\u043e\u0434\u0443!","takeWalk":"\u041f\u0440\u043e\u0433\u0443\u043b\u044f\u0439\u0442\u0435\u0441\u044c, \u043c\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u043c\u0441\u044f","callSomeone":"\u041f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u0435 \u0431\u043b\u0438\u0437\u043a\u043e\u043c\u0443 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443","petYourPet":"\u041f\u043e\u0433\u043b\u0430\u0434\u044c\u0442\u0435 \u043f\u0438\u0442\u043e\u043c\u0446\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0441\u0442\u044c","touchGrass":"\u041f\u043e\u0434\u044b\u0448\u0438\u0442\u0435 \u0441\u0432\u0435\u0436\u0438\u043c \u0432\u043e\u0437\u0434\u0443\u0445\u043e\u043c, \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e","jumpingJacks":"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 10 \u043f\u0440\u044b\u0436\u043a\u043e\u0432","victoryDance":"\u041f\u043e\u0440\u0435\u043f\u0435\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043e\u0431\u0435\u0434\u043d\u044b\u0439 \u0442\u0430\u043d\u0435\u0446","deepBreaths":"\u0413\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0432\u0434\u043e\u0445... \u0432\u044b \u043c\u043e\u043b\u043e\u0434\u0435\u0446","timeToSnack":"\u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u043a\u0443\u0441\u0438\u0442\u044c"},"editClip":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u043f","clipEditor":"\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043a\u043b\u0438\u043f\u043e\u0432","trimIn":"\u041d\u0430\u0447\u0430\u043b\u043e","trimOut":"\u041a\u043e\u043d\u0435\u0446","previewTrim":"\u041f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043e\u0431\u0440\u0435\u0437\u043a\u0438","saveCaption":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","saveAndDownload":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0441\u043a\u0430\u0447\u0430\u0442\u044c","export":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442","exportComplete":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043d!","exportNotSupported":"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435","backToClips":"\u041d\u0430\u0437\u0430\u0434","uploadLimitReached":"\u041b\u
20438\u043c\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442","limitResets":"\u041b\u0438\u043c\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0441\u044f {{date}}","gotIt":"\u041f\u043e\u043d\u044f\u0442\u043d\u043e","failed":"\u041e\u0448\u0438\u0431\u043a\u0430","creditsRefunded":"\u041a\u0440\u0435\u0434\u0438\u0442\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u044b","tryAgainDifferentLink":"\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443.","noSpeechInVideo":"\u0412 \u0432\u0438\u0434\u0435\u043e \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0451\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0432. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043e\u0435, \u0433\u0434\u0435 \u0430\u0432\u0442\u043e\u0440 \u0433\u043e\u0432\u043e\u0440\u0438\u0442.","retry":"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c","cancelJobBtn":"\u041e\u0442\u043c\u0435\u043d\u0430","hookScore":"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u043a\u0440\u044e\u0447\u043a\u0430","best":"\u041b\u0443\u0447\u0448\u0435\u0435","clipsSelected":"\u0412\u044b\u0431\u0440\u0430\u043d\u043e: {{count}}","switchToFileUpload":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0444\u0430\u0439\u043b\u0430","switchToURL":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a URL","selectContentTypeFirst":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0438\u043f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430.","livestreamsNotSupported":"\u041f\u0440\u044f\u043c\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 VOD \u0438\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e.","contentTypes":{"gaming":"\u0418\u0433\u0440\u044b","podcastTalkingHead":"\u041f\u043e\u0434\u043a\u0430\u0441\u0442 / \u0420\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e","irlVlog":"IRL / \u0412\u043b\u043e\u0433","music":"\u041c\u0443\u0437\u044b\u043a\u0430","documentary":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439"},"cancelThisJob":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435?","deleteTheseAssets":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b?","willStopProcessingRemoveJob":"\u042d\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0443\u0434\u0430\u043b\u0438\u0442 \u0437\u0430\u0434\u0430\u043d\u0438\u0435.","keepGoing":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c","noKeepThem":"\u041d\u0435\u0442, \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c","yesCancelJob":"\u0414\u0430, \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435","yesDeleteForever":"\u0414\u0430, \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430","titleCaption":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u0430","information":"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f","duration":"\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c","platform":"\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430","creator":"\u0410\u0432\u0442\u043e\u0440","rateThisClip":"\u041e\u0446\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043b\u0438\u043f","type":"\u0422\u0438\u043f","format":"\u0424\u043e\u0440\u043c\u0430\u0442","clipsLabel":"\u041a\u043b\u0438\u043f\u044b","slowConnection":"\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435","couldntLoad":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c","tapToRetry":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0430","clipsDeleted_one":"{{count}} \u043a\u043b\u0438\u043f \u0443\u0434\u0430\u043b\u0451\u043d","clipsDeleted_other":"{{count}} \u043a\u043b\u0438\u043f\u043e\u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043e"}'),schedule:JSON.parse('{"shareClip":"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u043b\u0438\u043f\u043e\u043c","loadingPlatforms":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c...","noConnectedPlatforms":"\u041d\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c.","connectSocialsToSchedule":"\u
2041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0441\u043e\u0446\u0441\u0435\u0442\u0435\u0439 \u0434\u043b\u044f \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u043e\u0432.","connectYourAccounts":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b","postTo":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432:","deselectAll":"\u0421\u043d\u044f\u0442\u044c \u0432\u0441\u0451","selectAll":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0451","caption":"\u041f\u043e\u0434\u043f\u0438\u0441\u044c","writeCaptionPlaceholder":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043a \u043f\u043e\u0441\u0442\u0443...","scheduleAction":"\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c","saveAndSchedule":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442","postAction":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c","publishImmediately":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e","scheduling":"\u
2041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435...","publishing":"\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f...","viewPost":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0441\u0442","postedSuccessfully":"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e!","partiallyPosted":"\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e","failedToPost":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438","selectAtLeastOnePlatform":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0443 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443","selectATime":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043c\u044f","selectFutureTime":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c","postScheduled":"\u041f\u043e\u0441\u0442 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d!","failedToSchedule":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c","failedToPublish":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c","postedSuccess":"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e!","postedToSomePlatforms":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445","failedToPostError":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438","scheduledPost":"\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442","postingTo":"\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0432","writeCaptionShort":"\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044c...","saveChanges":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f","cancelScheduledPost":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442?","clipWontBePosted":"\u042d\u0442\u043e\u0442 \u043a\u043b\u0438\u043f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u043d\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445.","keepIt":"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c","cancelling":"\u041e\u0442\u043c\u0435\u043d\u0430...","yesCancelPost":"\u0414\u0430, \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u0442","changesSaved":"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b","failedToSaveChanges":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f","postCancelled":"\u041f\u043e\u0441\u0442 \u043e\u0442\u043c\u0435\u043d\u0451\u043d","failedToCancelPost":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u0442","todayAt":"\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0432","tomorrowAt":"\u0417\u0430\u0432\u0442\u0440\u0430 \u0432","upcomingClips":"\u041f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u043a\u043b\u0438\u043f\u044b","noScheduledClipsThisMonth":"\u041d\u0435\u0442 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0438\u043f\u043e\u0432 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435.","scheduleClipsHint":"\u
2041f\u043b\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u043b\u0438\u043f\u044b \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430.","cancelScheduledPostConfirm":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0441\u0442?","cancelPostMessage":"\u041f\u043e\u0441\u0442 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d \u0438\u0437 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f. \u0412\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u043d\u043e\u0432\u0430.","cancelPost":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u0442","sun":"\u0412\u0441","mon":"\u041f\u043d","tue":"\u0412\u0442","wed":"\u0421\u0440","thu":"\u0427\u0442","fri":"\u041f\u0442","sat":"\u0421\u0431","untitledClip":"\u041a\u043b\u0438\u043f \u0431\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b","linkSocialsToPost":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0441\u043e\u0446\u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u043f\u043e\u0432.","yourChannel":"\u0412\u0430\u0448 \u043a\u0430\u043d\u0430\u043b","watermarkDescription":"\u0412\u0430\u0448\u0435 \u0444\u043e\u0442\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0418\u0418 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0432\u0430\u0441 \u0432 \u0432\u0438\u0434\u0435\u043e \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043b\u0438\u043f\u044b.","streamerName":"\u0418\u043c\u044f \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430","placeholderStreamerName":"\u043d\u0430\u043f\u0440. Kai Cenat","streamerNameHint":"\u0418\u043c\u044f \u0441\u0442\u0440\u0438\u043c\u0435\u0440\u0430, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b \u043a\u043b\u0438\u043f\u0438\u0442\u0435. \u041f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 AI \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0438\u0435 \u0445\u0443\u043a\u0438.","channelUsername":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430","placeholderChannelUsername":"\u0412\u0430\u0448\u0435 \u0438\u043c\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435","platform":"\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430","selectPlatform":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443","tapToChangePhoto":"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0434\u043b\u044f \u0441\u043c\u0435\u043d\u044b \u0444\u043e\u0442\u043e","pleaseSelectImageFile":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f","imageMustBeLess5MB":"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 5\u041c\u0411","profilePictureUpdated":"\u0424\u043e\u0442\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043e!","failedToUploadPicture":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u043e\u0442\u043e","disconnectedFrom":"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043e\u0442 {{platform}}","failedToDisconnect":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","
2socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438","stripeConnectionStatus":"\u0421\u0442\u0430\u0442\u0443\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f Stripe","stripeConnectedMessage":"\u0412\u0430\u0448 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 Stripe \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u0438 \u0433\u043e\u0442\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438","manageStripeAccount":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c Stripe","stripeConnectInstructions":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 Stripe, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0437\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438...","stripeSetupWarning":"\u0412\u0410\u0416\u041d\u041e: \u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Stripe...","stripeSupportMessage":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b? \u0421\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439: [email protected]...","connectingToStripe":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Stripe...","connectStripeAccount":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442 Stripe","enableSubscriptions":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438","monthlySubscriptionPrice":"\u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u0430\u044f \u0446\u0435\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 (USD)","subscriptionDescription":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438","describeSubscriptionBenefits":"\u041e\u043f\u0438\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438...","saveSettings":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","settingsSaved":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b!","savingFailed":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","stripeConnectionError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Stripe. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","stripeDashboardError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c Stripe. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","stripeSetupError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Stripe. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430.","xsubscribeAdmin":"\u0410\u0434\u043c\u0438\u043d XSubscribe","preview":"\u041f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440","fetchLinksError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","deleteLinkError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","orderUpdateSuccess":"\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435","orderUpdateError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435","addLinkError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","profileSection":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c","pickA
2nImage":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","remove":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","usernameInputPlaceholder":"\u0412\u0430\u0448 X-\u0430\u043a\u043a\u0430\u0443\u043d\u0442 (@username)","bioInputPlaceholder":"\u041f\u043e\u0447\u0435\u043c\u0443 \u043b\u044e\u0434\u044f\u043c \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f?","getUnlimitedCustomization":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0431\u0435\u0437\u043b\u0438\u043c\u0438\u0442\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443","verifiedCheckmark":"\u0412\u0435\u0440\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0430\u043b\u043e\u0447\u043a\u0430","customBackgroundImages":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0444\u043e\u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f","removeXSubscribeLogo":"\u0423\u0431\u0440\u0430\u0442\u044c \u043b\u043e\u0433\u043e\u0442\u0438\u043f XSubscribe","dollarPerMonth":"$9 /\u043c\u0435\u0441\u044f\u0446 \u043f\u043e\u0441\u043b\u0435","flatColour":"\u0421\u043f\u043b\u043e\u0448\u043d\u043e\u0439 \u0446\u0432\u0435\u0442","image":"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","pickAColor":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0446\u0432\u0435\u0442","hideXSubscribeLogo":"\u0421\u043a\u0440\u044b\u0442\u044c \u043b\u043e\u0433\u043e\u0442\u0438\u043f XSubscribe","errorUpdatingProfileTitle":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0444\u0438\u043b\u044f","errorUpdatingBio":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f","errorSavingBackgroun
2dColor":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430","errorUpdatingEffects":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432","errorUpdatingLogo":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430","invalidUser":"currentUser \u043d\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d.","errorFetchingLogoStatus":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430","errorFetchingUserData":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","errorFetchingProfilePic":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0444\u043e\u0442\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f","uploadFailed":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","accountSettings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430","manageSubscription":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u043e\u0439","manageSubscriptionDesc":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b, \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0447\u0435\u0442\u0430 \u0438\u043b\u0438 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","deleteAccount":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442","deleteAccountWarning":"\u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c. \u0412\u0441\u0435 \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430.","typeDeleteToConfirm":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 DELETE \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f","accountDeleted":"\u0410\u043a\u043a\u0430\u0443\u043d\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0451\u043d","failedToDeleteAccount":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442","failedToOpenBilling":"\u
2041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0440\u0442\u0430\u043b \u043e\u043f\u043b\u0430\u0442\u044b","yourBrands":"\u0412\u0430\u0448\u0438 \u0431\u0440\u0435\u043d\u0434\u044b","addBrand":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u0440\u0435\u043d\u0434","brandName":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0440\u0435\u043d\u0434\u0430","brandNamePlaceholder":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0440\u0435\u043d\u0434\u0430","createBrand":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0440\u0435\u043d\u0434","switchBrand":"\u0421\u043c\u0435\u043d\u0438\u0442\u044c \u0431\u0440\u0435\u043d\u0434","deleteBrand":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0431\u0440\u0435\u043d\u0434","cannotDeleteLastBrand":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0431\u0440\u0435\u043d\u0434","brandCreated":"\u0411\u0440\u0435\u043d\u0434 \u0441\u043e\u0437\u0434\u0430\u043d!","brandSwitched":"\u0411\u0440\u0435\u043d\u0434 \u0438\u0437\u043c\u0435\u043d\u0451\u043d!","brandDeleted":"\u0411\u0440\u0435\u043d\u0434 \u0443\u0434\u0430\u043b\u0451\u043d","failedToCreateBrand":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0440\u0435\u043d\u0434","failedToSwitchBrand":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0431\u0440\u0435\u043d\u0434","failedToDeleteBrand":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0431\u0440\u0435\u043d\u0434","captionPresets":"\u0421\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432","captionPresetsDesc":"\u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u0438\u043f\u043e\u0432. \u041d\u043e\u0432\u044b\u0435 \u043a\u043b\u0438\u043f\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c.","presetName":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u044f","presetNamePlaceholder":"\u043d\u0430\u043f\u0440. \u0416\u0438\u0440\u043d\u044b\u0439 \u043a\u0440\u0430\u0441\u043d\u044b\u0439","addPreset":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u044c","editPreset":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","deletePreset":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","createPreset":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u044c","presetCreated":"\u0421\u0442\u0438\u043b\u044c \u0441\u043e\u0437\u0434\u0430\u043d!","presetActivated":"\u0421\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432 \u0438\u0437\u043c\u0435\u043d\u0451\u043d!","presetDeleted":"\u0421\u0442\u0438\u043b\u044c \u0443\u0434\u0430\u043b\u0451\u043d","cannotDeleteLastPreset":"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c","failedToSwitchPreset":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u044c","failedToDeletePreset":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u044c","captionPreview":"\u042d\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0430\u0448\u0438\u0445 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432","captionColor":"\u0426\u0432\u0435\u0442","captionFont":"\u0428\u0440\u0438\u0444\u0442","captionPosition":"\u041f\u043e\u0437\u0438\u0446\u0438\u044f","captionWidth":"\u0428\u0438\u0440\u0438\u043d\u0430","streamType":"\u0422\u0438\u043f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430","streamTypeHint":"\u
2041a\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435? \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0418\u0418 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u043f\u044b \u043f\u043e\u0434 \u0432\u0430\u0448 \u0441\u0442\u0438\u043b\u044c.","streamTypeGaming":"\u0413\u0435\u0439\u043c\u0438\u043d\u0433","streamTypeGamingDesc":"\u0413\u0435\u0439\u043c\u043f\u043b\u0435\u0439 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u043a\u043b\u0430\u0442\u0447-\u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0440\u0435\u0430\u043a\u0446\u0438\u0438","streamTypeTalkingHead":"\u0420\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442","streamTypeTalkingHeadDesc":"\u041f\u043e\u0434\u043a\u0430\u0441\u0442\u044b, \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e, \u0440\u0435\u0430\u043a\u0446\u0438\u0438, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438","streamTypeIRL":"IRL / \u0412\u043b\u043e\u0433","streamTypeIRLDesc":"\u0421\u0442\u0440\u0438\u043c\u044b \u0438\u0437 \u0436\u0438\u0437\u043d\u0438, \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f, \u0443\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442","streamTypeMusic":"\u041c\u0443\u0437\u044b\u043a\u0430","streamTypeMusicDesc":"\u0416\u0438\u0432\u044b\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f, DJ-\u0441\u0435\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u0443\u0437\u044b\u043a\u0438","streamTypeDocumentary":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435","streamTypeDocumentaryDesc":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u043c\u044b, \u043c\u0438\u043d\u0438-\u0434\u043e\u043a\u0438 \u0438 \u0444\u0438\u043b\u044c\u043c\u044b","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"\u0420\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c Clipbait","getFullAccess":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a AI-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u043f\u043e\u0432","monthly":"\u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e","annual":"\u0415\u0436\u0435\u0433\u043e\u0434\u043d\u043e","save15Percent":"\u0421\u043a\u0438\u0434\u043a\u0430 15%","perMonth":"/\u043c\u0435\u0441\u044f\u0446","perMonthShort":"/\u043c\u0435\u0441","billedAsPerYear":"\u041e\u043f\u043b\u0430\u0442\u0430 ${{amount}}/\u0433\u043e\u0434","upload30Videos":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 30 \u0432\u0438\u0434\u0435\u043e \u0432 \u043c\u0435\u0441\u044f\u0446","upTo2Hours":"\u0412\u0438\u0434\u0435\u043e \u0434\u043e 2 \u0447\u0430\u0441\u043e\u0432","generate300Clips":"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f 300 \u043a\u043b\u0438\u043f\u043e\u0432 \u0432 \u043c\u0435\u0441\u044f\u0446","downloadAndSchedule":"\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u043f\u043e\u0432","upTo5Accounts":"\u0414\u043e 5 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u0431\u0440\u0435\u043d\u0434\u043e\u0432","getStarted":"\u041d\u0430\u0447\u0430\u0442\u044c","redirecting":"\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435...","exclusiveOffer":"\u042d\u041a\u0421\u041a\u041b\u042e\u0417\u0418\u0412\u041d\u041e\u0415 \u041f\u0420\u0415\u0414\u041b\u041e\u0416\u0415\u041d\u0418\u0415","russellBrandsPick":"\u0412\u044b\u0431\u043e\u0440 Russell Brand","get10PercentOff":"\u0421\u043a\u0438\u0434\u043a\u0430 10% \u043d\u0430 Clipbait Pro \u2014 \u044d\u043a\u0441\u043a\u043b\u044e\u0437\u0438\u0432\u043d\u043e \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438 Russell","discountApplied":"\u0421\u043a\u0438\u0434\u043a\u0430 10% \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438","claim10Off":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043a\u0438\u0434\u043a\u0443 10%","noThanksFullPrice":"\u041d\u0435\u0442, \u0441\u043f\u0430\u0441\u0438\u0431\u043e, \u044f \u0437\u0430\u043f\u043b\u0430\u0447\u0443 \u043f\u043e\u043b\u043d\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c","generateWithoutLimits":"\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439","upgradePlan":"\u0423\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043f\u043b\u0430\u043d","buyCredits":"\u041a\u0443\u043f\u0438\u0442\u044c \u043a\u0440\u0435\u0434\u0438\u0442\u044b","creditsNeverExpireNote":"\u
2041a\u0440\u0435\u0434\u0438\u0442\u044b \u043d\u0435 \u0438\u0441\u0442\u0435\u043a\u0430\u044e\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u044f \u0435\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0430 \u043f\u043b\u0430\u043d\u0430.","mostPopular":"\u0421\u0430\u043c\u044b\u0439 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439","bestValue":"\u041b\u0443\u0447\u0448\u0435\u0435 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430","generationsPerMonth":"{{count}} \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0439/\u043c\u0435\u0441","twentyPercentOff":"\u0421\u043a\u0438\u0434\u043a\u0430 20%","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"\u042d\u043a\u043e\u043d\u043e\u043c\u0438\u044f 16%","save26Percent":"\u042d\u043a\u043e\u043d\u043e\u043c\u0438\u044f 26%","perMonthBilledAnnually":"\u0432 \u043c\u0435\u0441\u044f\u0446, \u043e\u043f\u043b\u0430\u0442\u0430 \u0435\u0436\u0435\u0433\u043e\u0434\u043d\u043e"}'),pages:JSON.parse('{"foundersStoryTitle":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0448\u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439","foundersStoryContent":"\u0412 2021 \u0433\u043e\u0434\u0443 Spirit \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0443\u0434\u0443\u0448\u0430\u044e\u0449\u0435\u0439 \u0445\u0432\u0430\u0442\u043a\u043e\u0439 \u0446\u0435\u043d\u0437\u0443\u0440\u044b \u043d\u0430 mainstream-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445. \u0420\u0435\u0448\u0438\u0432 \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e, \u0433\u0434\u0435 \u043f\u0440\u043e\u0446\u0432\u0435\u0442\u0430\u0435\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u0430 \u0441\u043b\u043e\u0432\u0430, \u043e\u043d \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0437\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0441 \u0435\u0433\u043e \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u0438 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u0435. \u042d\u0442\u043e\u0442 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0440\u043e\u0434\u0438\u043b \u0438\u0434\u0435\u044e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e XSubscribe \u2014 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439, \u0433\u0434\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u0438 \u0438\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043a\u0440\u0435\u043d\u043d\u0435 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0431\u0435\u0437 \u0441\u0442\u0440\u0430\u0445\u0430 \u0446\u0435\u043d\u0437\u0443\u0440\u044b. Spirit, \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0438\u0434\u0435\u043d\u0438\u0435\u043c \u0438 \u0441\u0442\u0440\u0430\u0441\u0442\u044c\u044e \u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439, \u0437\u0430\u043b\u043e\u0436\u0438\u043b \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u044d\u0440\u044b \u043c\u043e\u043d\u0435\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u041f\u043e \u043c\u0435\u0440\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f XSubscribe \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u0435\u0440\u043d\u044b\u043c \u0443\u0431\u0435\u0436\u0434\u0435\u043d\u0438\u044e, \u0447\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0433\u043e\u043b\u043e\u0441 \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u043b\u044b\u0448\u0430\u043d\u043d\u044b\u043c. \u041d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435, XSubscribe \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0443\u044e \u043a\u0430\u0440\u044c\u0435\u0440\u0443, \u0437\u0430\u043d\u0438\u043c\u0430\u044f\u0441\u044c \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u0434\u0435\u043b\u043e\u043c.","termsTitle":"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f","lastUpdatedTerms":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435: \u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 7 \u042f\u043d\u0432 2024","termsSection1Title":"1. \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 XSubscribe:","termsSection1Content":"\u042d\u0442\u0438 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\\"\u0423\u0441\u043b\u043e\u0432\u0438\u044f\\") \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 XSubscribe, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0430\u0439\u0442, API, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0430\u0448\u0443 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438\u043c \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c.","termsSection2Title":"2. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439:","termsSection2Content":"XSubscribe \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u0438 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u
20412\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u044b \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445, \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.","termsSection3Title":"3. \u0412\u0430\u0448 \u0430\u043a\u043a\u0430\u0443\u043d\u0442:","termsSection3Content":"\u0412\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 18 \u043b\u0435\u0442 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f XSubscribe \u0438\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f/\u043e\u043f\u0435\u043a\u0443\u043d\u0430. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0438 \u0437\u0430\u0449\u0438\u0449\u0430\u0439\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c. \u0412\u044b \u043d\u0435\u0441\u0451\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0432\u0430\u0448\u0435\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435.","termsSection4Title":"4. \u0412\u0430\u0448\u0435 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:","termsSection4Content":"\u0418\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0430\u0436\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445. XSubscribe \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.","termsSection5Title":"5. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u043d\u043e\u043c:","termsSection5Content":"XSubscribe \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u0438 \u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u043b\u0430\u043d\u044b. \u041f\u043b\u0430\u0442\u043d\u044b\u0435 \u043f\u043b\u0430\u043d\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043e\u043f\u043b\u0430\u0442\u044b. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u043b\u0430\u043d\u0430\u043c\u0438.","termsSection6Title":"6. \u0412\u0430\u0448 \u043a\u043e\u043d\u0442\u0435\u043d\u0442:","termsSection6Content":"\u0412\u044b \u043d\u0435\u0441\u0451\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0441\u0432\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442. \u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443. XSubscribe \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u043d\u0430\u0440\u0443\u0448\u0430\u044e\u0449\u0438\u0439 \u044d\u0442\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b.","termsSection7Title":"7. \u0427\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c:","termsSection7Content":"XSubscribe \u0438\u043c\u0435\u0435\u0442 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435, \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.","termsSection8Title":"8. \u041f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430:","termsSection8Content":"XSubscribe \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b \u0437\u0430 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.","termsSection9Title":"9. \u0412\u0430\u0448\u0430 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438:","termsSection9Content":"\u0412\u044b \u043d\u0435\u0441\u0451\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0435\u0449\u0430\u044e\u0442 \u0432\u0430\u0448 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438\u043b\u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0441 \u043d\u0438\u043c.","termsSection10Title":"10. \u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c:","termsSection10Content":"\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c, XSubscribe \u043c\u043e\u0436\u0435\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0412\u044b \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c.","termsSection11Title":"11. \u041d\u0430\u0448\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430:","termsSection11Content":"\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442-\u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u
2041d\u0435 \u0437\u043b\u043e\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0439\u0442\u0435 \u0438 \u043d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044c \u0435\u0439.","termsSection12Title":"12. \u0422\u0430\u0440\u0438\u0444\u044b \u0438 \u043e\u043f\u043b\u0430\u0442\u0430:","termsSection12Content":"\u0422\u0430\u0440\u0438\u0444\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438 \u0437\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u043f\u043b\u0430\u0442\u044b \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0422\u0430\u0440\u0438\u0444\u043d\u043e\u043c \u043f\u043b\u0430\u043d\u0435.","termsSection13Title":"13. \u041a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c:","termsSection13Content":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 XSubscribe \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u0430\u0448\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.","termsSection14Title":"14. \u041a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:","termsSection14Content":"\u0425\u0440\u0430\u043d\u0438\u0442\u0435 \u0432 \u0442\u0430\u0439\u043d\u0435 \u043d\u0435\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e XSubscribe.","termsSection15Title":"15. \u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c:","termsSection15Content":"\u0412\u044b \u043d\u0435\u0441\u0451\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c XSubscribe \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430.","termsSection16Title":"16. \u041e\u0442\u043a\u0430\u0437 \u043e\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439:","termsSection16Content":"\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \xab\u041a\u0410\u041a \u0415\u0421\u0422\u042c\xbb \u0431\u0435\u0437 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439.","termsSection17Title":"17. \u0421\u0435\u0440\u0432\u0438\u0441\u044b \u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u0441\u0442\u043e\u0440\u043e\u043d:","termsSection17Content":"XSubscribe \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438.","termsSection18Title":"18. \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:","termsSection18Content":"\u041e\u0441\u043e\u0431\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f XSubscribe.","termsSection19Title":"19. \u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434:","termsSection19Content":"\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f\u043c\u0438.","termsSection20Title":"20. \u0417\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f:","termsSection20Content":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0437\u0430\u043a\u043e\u043d\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u042d\u0442\u0438 \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u0430\u043c\u0438 \u0438 XSubscribe.","furtherInformation":"\u0413\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e?","termsContactInstructions":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u043d\u0430\u0448\u0438\u0445 \u0423\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438:","cookieNoticeTitle":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e cookies","lastUpdatedCookies":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435: \u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 7 \u042f\u043d\u0432 2023","cookieIntroduction":"\u042d\u0442\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e cookies \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442, \u043a\u0430\u043a XSubscribe LLC \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 cookies \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438.","whatAreCookies":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 cookies?","cookieDefinition":"Cookies \u2014 \u044d\u0442\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c\u044b\u0435 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u0440\u0438 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0438 \u0441\u0430\u0439\u0442\u0430.","thirdPartyCookies":"Cookies, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0435\u0442\u044c\u0438\u043c\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c\u0438, \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 cookies.","whyUseCo
2okies":"\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c cookies?","cookieUsage":"\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 cookies \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439.","cookieContactInstructions":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 cookies, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438:","contactSpiritTitle":"\u0421\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0441 Spirit","contactInstructions":"\u041f\u0440\u0438\u0432\u0435\u0442, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0439 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043d\u0438\u0436\u0435:","searchTitle":"\u041f\u041e\u0418\u0421\u041a","searchPlaceholder":"\u0418\u0421\u041a\u0410\u0422\u042c \u0421\u0422\u0420\u0418\u041c\u0415\u0420\u041e\u0412\u2026","searchResults":"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b","suggestedStreamers":"\u0420\u0415\u041a\u041e\u041c\u0415\u041d\u0414\u0423\u0415\u041c\u042b\u0415 \u0421\u0422\u0420\u0418\u041c\u0415\u0420\u042b","profileTitle":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c","onlyJpgPngAllowed":"\u0422\u043e\u043b\u044c\u043a\u043e JPG/PNG","maxFileSize2MB":"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 2\u041c\u0411","selectAvatar":"\u0412\u042b\u0411\u0420\u0410\u0422\u042c \u0410\u0412\u0410\u0422\u0410\u0420","updating":"\u041e\u0411\u041d\u041e\u0412\u041b\u0415\u041d\u0418\u0415...","demoSubscriptionAlert":"\u042d\u0442\u043e \u0434\u0435\u043c\u043e. \u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044f.","subscribe":"\u
2041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f","perMonth":"/\u043c\u0435\u0441\u044f\u0446","subscribed":"\u2713 \u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d","successfullySubscribedTo":"\u0412\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u043d\u0430","weLockedIn":"\u0413\u043e\u0442\u043e\u0432\u043e.","createYourXSubscribe":"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0439 XSubscribe","pageNotFoundHeading":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0438\u0449\u0435\u0442\u0435, \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.","pageNotFoundMessage":"\u0425\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0430\u0448\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f?","createXSubscribeNow":"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0439 XSubscribe \u0441\u0435\u0439\u0447\u0430\u0441.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 SuperChats...","recentSuperchats":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0447\u0430\u0435\u0432\u044b\u0435 SuperChat","noSuperchatsPart1":"\u041f\u043e\u043a\u0430 \u043d\u0435\u0442 SuperChats \u0434\u043b\u044f","noSuperchatsPart2":"\u0411\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0432\u044b\u043c, \u043a\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 SuperChat!","loadingSuperChatsError":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c SuperChats","addComment":"\u0414\u041e\u0411\u0410\u0412\u0418\u0422\u042c \u041a\u041e\u041c\u041c\u0415\u041d\u0422\u0410\u0420\u0418\u0419\u2026","signInToComment":"\u0412\u041e\u0419\u0414\u0418\u0422\u0415, \u0427\u0422\u041e\u0411\u042b \u041a\u041e\u041c\u041c\u0415\u041d\u0422\u0418\u0420\u041e\u0412\u0410\u0422\u042c","send":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c","signIn":"\u0412\u043e\u0439\u0442\u0438","beTheFirstToComment":"\u0411\u0423\u0414\u042c\u0422\u0415 \u041f\u0415\u0420\u0412\u042b\u041c \u041a\u041e\u041c\u041c\u0415\u041d\u0422\u0410\u0422\u041e\u0420\u041e\u041c.","writeReply":"\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u2026","reply":"\u041e\u0442\u0432\u0435\u0442\u0438\u0442\u044c","unlike":"\u0423\u0431\u0440\u0430\u0442\u044c \u043b\u0430\u0439\u043a","like":"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f","comments":"\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438","shareThisStream":"\u041f\u041e\u0414\u0415\u041b\u0418\u0422\u042c\u0421\u042f \u0421\u0422\u0420\u0418\u041c\u041e\u041c","goTo":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f","emailShare":"Email","copyLink":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","more":"\u0415\u0449\u0451","deleting":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u2026","anon":"\u0410\u043d\u043e\u043d\u0438\u043c","noCommentsYet":"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442.","sendSuperChat":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c SuperChat","amountDollar":"\u0421\u0443\u043c\u043c\u0430 ($)","messageMaxChars":"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 (\u043c\u0430\u043a\u0441. 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)","typeSuperChatMessage":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 SuperChat...","processingPayment":"\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430...","sendAmount":"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c SuperChat \u043d\u0430 ${{amount}}","pleaseLogInToSuperChat":"\u0412\u043e\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c SuperChat","pleaseEnterMessage":"\u
20412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435","amountMustBeAtLeast1":"\u0421\u0443\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 $1","failedToCreateCheckout":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0435\u0441\u0441\u0438\u044e \u043e\u043f\u043b\u0430\u0442\u044b","highlightedFor":"\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u0434\u043b\u044f"}'),notifications:JSON.parse('{"notifications":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f","viaEmail":"\u041f\u041e EMAIL","receiveNotificationThroughEmail":"\u041f\u041e\u041b\u0423\u0427\u0410\u0422\u042c \u0423\u0412\u0415\u0414\u041e\u041c\u041b\u0415\u041d\u0418\u042f \u041f\u041e EMAIL","all":"\u0412\u0441\u0435","unread":"\u041d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435","noUnreadNotifications":"\u041d\u0435\u0442 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.","noNotificationsYet":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442.","couldntLoadNotifications":"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430","someone":"\u041a\u0442\u043e-\u0442\u043e","isLiveNow":"\u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u044d\u0444\u0438\u0440\u0435","postedReplay":"\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0437\u0430\u043f\u0438\u0441\u044c","repliedToComment":"\u043e\u0442\u0432\u0435\u0442\u0438\u043b \u043d\u0430 \u0432\u0430\u0448 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439","likedYourComment":"\u043e\u0446\u0435\u043d\u0438\u043b \u0432\u0430\u0448 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439","activity":"\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c","secondsAgo":"{{count}}\u0441","minutesAgo":"{{count}}\u043c","hoursAgo":"{{count}}\u0447","daysAgo":"{{count}}\u0434"}')},vi:{common:JSON.parse('{"clipbait":"CLIPBAIT","login":"\u0110\u0103ng nh\u1eadp","logout":"\u0110\u0103ng xu\u1ea5t","signUp":"\u0110\u0103ng k\xfd","signUpFree":"\u0110\u0103ng k\xfd mi\u1ec5n ph\xed","profile":"H\u1ed3 s\u01a1","creatorDashboard":"B\u1ea3ng \u0111i\u1ec1u khi\u1ec3n nh\xe0 s\xe1ng t\u1ea1o","notifications":"Th\xf4ng b\xe1o","pricing":"B\u1ea3ng gi\xe1","admin":"Qu\u1ea3n tr\u1ecb","save":"L\u01b0u","saving":"\u0110ang l\u01b0u...","cancel":"H\u1ee7y","delete":"X\xf3a","continue":"Ti\u1ebfp t\u1ee5c","skip":"B\u1ecf qua","skipForNow":"B\u1ecf qua t\u1ea1m th\u1eddi","done":"Xong","loading":"\u0110ang t\u1ea3i...","edit":"Ch\u1ec9nh s\u1eeda","connect":"K\u1ebft n\u1ed1i","disconnect":"Ng\u1eaft k\u1ebft n\u1ed1i","comingSoon":"S\u1eafp ra m\u1eaft","connected":"\u0110\xe3 k\u1ebft n\u1ed1i","back":"Quay l\u1ea1i","upgrade":"N\xe2ng c\u1ea5p","options":"T\xf9y ch\u1ecdn","confirm":"X\xe1c nh\u1eadn","areYouSure":"B\u1ea1n c\xf3 ch\u1eafc kh\xf4ng?","appearance":"Giao di\u1ec7n","subs":"\u0110\u0103ng k\xfd","myPage":"Trang c\u1ee7a t\xf4i","clipsTab":"CLIPS","calendarTab":"L\u1ecaCH","profileTab":"H\u1ed2 S\u01a0","company":"C\xf4ng ty","about":"Gi\u1edbi thi\u1ec7u","press":"B\xe1o ch\xed","contact":"Li\xean h\u1ec7","followUs":"Theo d\xf5i ch\xfang t\xf4i","termsAndConditions":"\u0110i\u1ec1u kho\u1ea3n & \u0110i\u1ec1u ki\u1ec7n","cookiePolicy":"Ch\xednh s\xe1ch Cookie","connectedTo":"\u0110\xe3 k\u1ebft n\u1ed1i v\u1edbi {{platform}}!","planActivated":"G\xf3i \u0111\xe3 k\xedch ho\u1ea1t! B\u1ea1n c\xf3 quy\u1ec1n truy c\u1eadp \u0111\u1ea7y \u0111\u1ee7.","saved":"\u0110\xe3 l\u01b0u!","failedToSave":"L\u01b0u th\u1ea5t b\u1ea1i","deleting":"\u0110ang x\xf3a...","logOut":"\u0110\u0103ng xu\u1ea5t","download":"T\u1ea3i xu\u1ed1ng","freePlan":"G\xf3i Mi\u1ec5n Ph\xed","planLabel":"G\xf3i {{plan}}","outOfCredits":"\u26a1 H\u1ebft credit","creditsRemaining_one":"\u26a1 C\xf2n {{count}} credit","creditsRemaining_other":"\u26a1 C\xf2n {{count}} credit","topUpCredits":"N\u1ea1p th\xeam credit","buy":"Mua","manageAccount":"Qu\u1ea3n l\xfd t\xe0i kho\u1ea3n","signOut":"\u0110\u0103ng xu\u1ea5t"}'),auth:JSON.parse('{"welcomeBack":"Ch\xe0o m\u1eebng tr\u1edf l\u1ea1i","signInToContinue":"\u0110\u0103ng nh\u1eadp \u0111\u1ec3 ti\u1ebfp t\u1ee5c s\u1eed d\u1ee5ng Clipbait","continueWithGoogle":"Ti\u1ebfp t\u1ee5c v\u1edbi Google","orC
2ontinueWithEmail":"ho\u1eb7c ti\u1ebfp t\u1ee5c v\u1edbi email","enterYourEmail":"Nh\u1eadp email c\u1ee7a b\u1ea1n","checkYourEmail":"Ki\u1ec3m tra email","weSentCodeTo":"Ch\xfang t\xf4i \u0111\xe3 g\u1eedi m\xe3 \u0111\u1ebfn","pleaseEnter6DigitCode":"Vui l\xf2ng nh\u1eadp m\xe3 6 ch\u1eef s\u1ed1","verifyAndContinue":"X\xe1c minh & Ti\u1ebfp t\u1ee5c","resendCodeIn":"G\u1eedi l\u1ea1i m\xe3 sau {{countdown}}s","resendCode":"G\u1eedi l\u1ea1i m\xe3","byContinuingYouAgree":"B\u1eb1ng vi\u1ec7c ti\u1ebfp t\u1ee5c, b\u1ea1n \u0111\u1ed3ng \xfd v\u1edbi","termsOfService":"\u0110i\u1ec1u kho\u1ea3n D\u1ecbch v\u1ee5","privacyPolicy":"Ch\xednh s\xe1ch B\u1ea3o m\u1eadt","invalidCode":"M\xe3 kh\xf4ng h\u1ee3p l\u1ec7. Th\u1eed l\u1ea1i.","invalidEmail":"Vui l\xf2ng nh\u1eadp email h\u1ee3p l\u1ec7","failedToSendCode":"G\u1eedi m\xe3 th\u1ea5t b\u1ea1i. Th\u1eed l\u1ea1i.","signingYouIn":"\u0110ang \u0111\u0103ng nh\u1eadp...","emailOrUsername":"Email ho\u1eb7c T\xean ng\u01b0\u1eddi d\xf9ng","password":"M\u1eadt kh\u1ea9u","forgotPassword":"Qu\xean m\u1eadt kh\u1ea9u?","logIn":"\u0110\u0103ng nh\u1eadp","incorrectCredentials":"Sai email/t\xean ng\u01b0\u1eddi d\xf9ng ho\u1eb7c m\u1eadt kh\u1ea9u","emailNotVerified":"Email ch\u01b0a x\xe1c minh. Ki\u1ec3m tra email.","email":"Email","username":"T\xean ng\u01b0\u1eddi d\xf9ng","birthdayLabel":"Ng\xe0y sinh (Th\xe1ng / Ng\xe0y / N\u0103m)","monthPlaceholder":"MM","dayPlaceholder":"DD","yearPlaceholder":"YYYY","usernameTooShort":"T\xean ng\u01b0\u1eddi d\xf9ng ph\u1ea3i c\xf3 \xedt nh\u1ea5t {{min}} k\xfd t\u1ef1.","usernameTooLong":"T\xean ng\u01b0\u1eddi d\xf9ng t\u1ed1i \u0111a {{max}} k\xfd t\u1ef1.","usernameInvalidFormat":"Ch\u1ec9 cho ph\xe9p ch\u1eef c\xe1i, s\u1ed1 v\xe0 d\u1ea5u g\u1ea1ch d\u01b0\u1edbi. Kh\xf4ng c\xf3 kho\u1ea3ng tr\u1eafng.","birthdayRequired":"Vui l\xf2ng nh\u1eadp \u0111\u1ea7y \u0111\u1ee7 ng\xe0y sinh.","invalidEmailFormat":"Vui l\xf2ng nh\u1eadp email h\u1ee3p l\u1ec7.","passwordRequired":"Y\xeau c\u1ea7u m\u1eadt kh\u1ea9u.","passwordTooShort":"M\u1eadt kh\u1ea9u ph\u1ea3i c\xf3 \xedt nh\u1ea5t 3 k\xfd t\u1ef1.","emailAvailable":"Email h\u1ee3p l\u1ec7.","usernameAvailable":"T\xean ng\u01b0\u1eddi d\xf9ng kh\u1ea3 d\u1ee5ng.","usernameTaken":"T\xean ng\u01b0\u1eddi d\xf9ng n\xe0y \u0111\xe3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng.","emailTaken":"T\xe0i kho\u1ea3n v\u1edbi email n\xe0y \u0111\xe3 t\u1ed3n t\u1ea1i.","passwordHint":"\xcdt nh\u1ea5t 3 k\xfd t\u1ef1.","fixErrorsToContinue":"S\u1eeda l\u1ed7i \u0111\u1ec3 ti\u1ebfp t\u1ee5c","bySigningUpYouAgree":"B\u1eb1ng vi\u1ec7c \u0111\u0103ng k\xfd, b\u1ea1n \u0111\u1ed3ng \xfd v\u1edbi","termsOfUse":"\u0110i\u1ec1u kho\u1ea3n S\u1eed d\u1ee5ng","accountCreated":"T\xe0i kho\u1ea3n \u0111\xe3 t\u1ea1o!","registrationFailed":"\u0110\u0103ng k\xfd th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i.","alreadyHaveAccount":"\u0110\xe3 c\xf3 t\xe0i kho\u1ea3n?","starterPlanTitle":"XSubscribe.bio Starter","proPlanTitle":"XSubscribe.bio Pro","premiumPlanTitle":"XSubscribe.bio Premium","signUpAndStart":"\u0110\u0103ng k\xfd v\xe0 b\u1eaft \u0111\u1ea7u k\u1ebft n\u1ed1i!","termsAgreementFull":"B\u1eb1ng vi\u1ec7c \u0111\u0103ng k\xfd, b\u1ea1n \u0111\u1ed3ng \xfd v\u1edbi \u0110i\u1ec1u kho\u1ea3n, Ch\xednh s\xe1ch B\u1ea3o m\u1eadt v\xe0 Ch\xednh s\xe1ch Cookie.","resetYourPassword":"\u0110\u1eb7t l\u1ea1i m\u1eadt kh\u1ea9u","enterEmailToReset":"Nh\u1eadp email t\xe0i kho\u1ea3n c\u1ea7n \u0111\u1eb7t l\u1ea1i","pleaseEnterEmail":"Vui l\xf2ng nh\u1eadp email","resetPassword":"\u0110\u1eb7t l\u1ea1i m\u1eadt kh\u1ea9u","pleaseEnterYourEmail":"Vui l\xf2ng nh\u1eadp email c\u1ee7a b\u1ea1n","couldNotStartRecovery":"Kh\xf4ng th\u1ec3 b\u1eaft \u0111\u1ea7u kh\xf4i ph\u1ee5c.","backToLogin":"Quay l\u1ea1i \u0111\u0103ng nh\u1eadp","emailVerification":"X\xe1c minh Email","weSent4DigitCode":"Ch\xfang t\xf4i \u0111\xe3 g\u1eedi m\xe3 4 ch\u1eef s\u1ed1 \u0111\u1ebfn","yourEmail":"email c\u1ee7a b\u1ea1n","pleaseEnter4DigitCode":"Vui l\xf2ng nh\u1eadp m\xe3 4 ch\u1eef s\u1ed1.","verifyAccount":"X\xe1c minh T\xe0i kho\u1ea3n","incorrectOrExpiredCode":"M\xe3 kh\xf4ng \u0111\xfang ho\u1eb7c \u0111\xe3 h\u1ebft h\u1ea1n. Th\u1eed l\u1ea1i ho\u1eb7c y\xeau c\u1ea7u m\xe3 m\u1edbi.","didntReceiveCode":"Ch\u01b0a nh\u1eadn \u0111\u01b0\u1ee3c m\xe3?","resendIn":"G\u1eedi l\u1ea1i sau {{timer}}
2s","sending":"\u0110ang g\u1eedi\u2026","verifying":"\u0110ang x\xe1c minh\u2026","newCodeSent":"M\xe3 m\u1edbi \u0111\xe3 \u0111\u01b0\u1ee3c g\u1eedi \u0111\u1ebfn email c\u1ee7a b\u1ea1n.","missingEmail":"Thi\u1ebfu email.","failedToResendCode":"G\u1eedi l\u1ea1i m\xe3 th\u1ea5t b\u1ea1i. Th\u1eed l\u1ea1i sau.","changePassword":"\u0110\u1ed5i m\u1eadt kh\u1ea9u","newPassword":"M\u1eadt kh\u1ea9u m\u1edbi","confirmPassword":"X\xe1c nh\u1eadn m\u1eadt kh\u1ea9u","passwordsDontMatch":"M\u1eadt kh\u1ea9u kh\xf4ng kh\u1edbp","failedToResetPassword":"\u0110\u1eb7t l\u1ea1i m\u1eadt kh\u1ea9u th\u1ea5t b\u1ea1i","couldNotResetPassword":"Kh\xf4ng th\u1ec3 \u0111\u1eb7t l\u1ea1i m\u1eadt kh\u1ea9u.","invalidOrExpiredCode":"M\xe3 kh\xf4ng h\u1ee3p l\u1ec7 ho\u1eb7c \u0111\xe3 h\u1ebft h\u1ea1n.","passwordSuccessfullySet":"M\u1eadt kh\u1ea9u \u0111\xe3 \u0111\u01b0\u1ee3c \u0111\u1eb7t th\xe0nh c\xf4ng","successTitle":"Th\xe0nh c\xf4ng!","emailSentInstructions":"Email x\xe1c minh t\xe0i kho\u1ea3n \u0111\xe3 \u0111\u01b0\u1ee3c g\u1eedi. Vui l\xf2ng m\u1edf email \u0111\u1ec3 x\xe1c minh. N\u1ebfu kh\xf4ng th\u1ea5y trong 15 ph\xfat, h\xe3y ki\u1ec3m tra th\u01b0 m\u1ee5c spam. N\u1ebfu t\xecm th\u1ea5y \u1edf \u0111\xf3, h\xe3y \u0111\xe1nh d\u1ea5u l\xe0 \\"Kh\xf4ng ph\u1ea3i spam\\".","emailVerifiedSuccessfully":"Email \u0111\xe3 x\xe1c minh th\xe0nh c\xf4ng","emailSuccessfullyVerifiedAlert":"Email \u0111\xe3 x\xe1c minh th\xe0nh c\xf4ng","notFound404":"404 Kh\xf4ng t\xecm th\u1ea5y"}'),onboarding:JSON.parse('{"title":"Xin ch\xe0o, t\xf4i l\xe0 Clipbait","subtitle":"T\xf4i l\xe0 AI-Clipper cho c\xe1c bu\u1ed5i stream c\u1ee7a b\u1ea1n","factHeader":"\u0110\xe2y l\xe0 v\xe0i \u0111i\u1ec1u b\u1ea1n n\xean bi\u1ebft v\u1ec1 t\xf4i:","fact1":"T\xf4i \u0111\u01b0\u1ee3c t\u1ea1o b\u1edfi m\u1ed9t bi\xean t\u1eadp vi\xean chuy\xean nghi\u1ec7p, k\u1ef9 n\u0103ng c\u1ee7a t\xf4i li\xean t\u1ee5c \u0111\u01b0\u1ee3c c\u1ea3i thi\u1ec7n","fact2":"T\xf4i \u0111\u01b0\u1ee3c t\u1ea1o ra \u0111\u1ec3 GI\xdaP cu\u1ed9c s\u1ed1ng c\u1ee7a streamer v\xe0 clipper d\u1ec5 d\xe0ng h\u01a1n","letsGetStarted":"B\u1eaft \u0111\u1ea7u n\xe0o","questionUserType":"B\u1ea1n l\xe0 Clipper hay Streamer?","imAClipper":"T\xf4i l\xe0 Clipper","imAStreamer":"T\xf4i l\xe0 Streamer","questionStreamerNameClipper":"T\xean streamer l\xe0 g\xec?","questionStreamerNameStreamer":"T\xean streamer c\u1ee7a b\u1ea1n l\xe0 g\xec?","placeholderStreamerNameClipper":"vd: Kai Cenat","placeholderStreamerNameStreamer":"vd: T\xean hi\u1ec3n th\u1ecb c\u1ee7a b\u1ea1n","streamerNameHint":"\u0110i\u1ec1u n\xe0y gi\xfap AI vi\u1ebft hook t\u1ed1t h\u01a1n cho clip.","questionChannelUsernameClipper":"T\xean ng\u01b0\u1eddi d\xf9ng k\xeanh c\u1ee7a streamer b\u1ea1n clip cho l\xe0 g\xec?","questionChannelUsernameStreamer":"T\xean ng\u01b0\u1eddi d\xf9ng k\xeanh c\u1ee7a b\u1ea1n l\xe0 g\xec? (v\u0103n b\u1ea3n thu\u1ea7n \u2014 Kh\xf4ng c\xf3 k\xfd hi\u1ec7u @)","placeholderChannelUsernameClipper":"russellbrand","placeholderChannelUsernameStreamer":"ishowspeed","questionPlatformClipper":"H\u1ecd stream tr\xean n\u1ec1n t\u1ea3ng n\xe0o?","questionPlatformStreamer":"N\u1ec1n t\u1ea3ng stream ch\xednh c\u1ee7a b\u1ea1n l\xe0 g\xec?","twitchStreamer":"T\xf4i stream tr\xean Twitch","rumbleStreamer":"T\xf4i stream tr\xean Rumble","youtubeStreamer":"T\xf4i stream tr\xean YouTube","kickStreamer":"T\xf4i stream tr\xean Kick","xStreamer":"T\xf4i stream tr\xean X","ganjingStreamer":"T\xf4i stream tr\xean Ganjing World","platformTwitch":"Twitch","platformRumble":"Rumble","platformYouTube":"YouTube","platformKick":"Kick","platformX":"X","platformGanjing":"Ganjing World","questionUploadPicture":"T\u1ea3i l\xean \u1ea3nh h\u1ed3 s\u01a1","profilePictureHint":"\u0110i\u1ec1u n\xe0y gi\xfap AI nh\u1eadn di\u1ec7n b\u1ea1n trong video \u0111\u1ec3 t\u1ea1o clip t\u1ed1t h\u01a1n.","choosePhoto":"Ch\u1ecdn \u1ea3nh","uploading":"\u0110ang t\u1ea3i l\xean...","questionOpportunitiesClipper":"B\u1ea1n mu\u1ed1n nh\u1eadn l\u1eddi m\u1eddi ki\u1ebfm thu nh\u1eadp t\u1eeb clip?","questionOpportunitiesStreamer":"B\u1ea1n mu\u1ed1n thu\xea Clipper c\u1ee7a Clipbait cho stream?","yesInterested":"V\xe2ng, t\xf4i quan t\xe2m","notRightNow":"Kh\xf4ng ph\u1ea3i l\xfac n\xe0y","questionConnectPages":"K\u1ebft n\u1ed1i trang c\u1ee7a b\u1ea1n \u0111\u1ec3 \u0111\u0103ng clip","xTwitter":"X (Twitter)","youtubeShorts":"YouTube Shorts","tiktok":"TikTok","facebookReels":"Facebook Reels","rumbleShorts":"Rumble Shorts","questionStreamType":"B\u1ea1n t\u1ea1o lo\u1ea1i n\u1ed9i dung n\xe0o?","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay v\u1edbi b\xecnh lu\u1eadn, kho\u1ea3nh kh\u1eafc clutch, ph\u1ea3n \u1ee9ng","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, ph\u1ecfng v\u1ea5n, ph\u1ea3n \u1ee9ng, b\xecnh lu\u1eadn","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Stream \u0111\u1eddi th\u1ef1c, s\u1ef1 ki\u1ec7n, n\u1ed9i dung ngo\xe0i tr\u1eddi","streamTypeMusic":"\xc2m nh\u1ea1c","
2streamTypeMusicDesc":"Bi\u1ec3u di\u1ec5n tr\u1ef1c ti\u1ebfp, DJ set, s\u1ea3n xu\u1ea5t \xe2m nh\u1ea1c","finishSetup":"Ho\xe0n t\u1ea5t c\xe0i \u0111\u1eb7t","ownStreamer":"T\xf4i stream tr\xean OWN","platformOwn":"OWN"}'),clips:JSON.parse('{"aiPoweredClipGenerator":"Tr\xecnh t\u1ea1o Clip b\u1eb1ng AI","turnStreamsInto":"Bi\u1ebfn stream th\xe0nh","viralClips":"clip viral","pasteUrl":"D\xe1n URL","uploadVideo":"T\u1ea3i l\xean Video","pasteYouTubeLivestream":"D\xe1n link livestream YouTube","pasteRumbleLivestream":"D\xe1n link livestream Rumble","pasteGanjingWorldLink":"D\xe1n li\xean k\u1ebft Ganjing World c\u1ee7a b\u1ea1n","pasteKickLink":"D\xe1n li\xean k\u1ebft Kick c\u1ee7a b\u1ea1n","pasteTwitchLink":"D\xe1n li\xean k\u1ebft Twitch c\u1ee7a b\u1ea1n","pasteXLink":"D\xe1n li\xean k\u1ebft X c\u1ee7a b\u1ea1n","generateClips":"T\u1ea1o Clip","starting":"\u0110ang b\u1eaft \u0111\u1ea7u...","uploadingProgress":"\u0110ang t\u1ea3i l\xean {{progress}}%...","processing":"\u0110ang x\u1eed l\xfd","yourClips":"Clip c\u1ee7a b\u1ea1n","loadingClips":"\u0110ang t\u1ea3i clip...","noClipsYet":"Ch\u01b0a c\xf3 clip n\xe0o","pasteStreamUrl":"D\xe1n URL stream \u0111\u1ec3 b\u1eaft \u0111\u1ea7u","clipsReady":"{{count}} clip \u0111\xe3 s\u1eb5n s\xe0ng!","clipCount":"{{count}} clip","dropFileHere":"Th\u1ea3 file v\xe0o \u0111\xe2y","dragAndDrop":"K\xe9o th\u1ea3 ho\u1eb7c nh\u1ea5n \u0111\u1ec3 ch\u1ecdn","mp4OrMovMax2GB":"MP4 ho\u1eb7c MOV, t\u1ed1i \u0111a 2GB","freeTrialBanner":"B\u1ea1n \u0111ang d\xf9ng b\u1ea3n d\xf9ng th\u1eed. M\u1ed9t s\u1ed1 t\xednh n\u0103ng b\u1ecb gi\u1edbi h\u1ea1n. N\xe2ng c\u1ea5p \u0111\u1ec3 m\u1edf kh\xf3a t\u1ea5t c\u1ea3.","pasteVideoLinkFirst":"D\xe1n link video tr\u01b0\u1edbc","selectPlatformInSettings":"Ch\u1ecdn n\u1ec1n t\u1ea3ng trong C\xe0i \u0111\u1eb7t","setChannelUsername":"\u0110\u1eb7t t\xean k\xeanh trong C\xe0i \u0111\u1eb7t","onlyMp4MovSupported":"Ch\u1ec9 h\u1ed7 tr\u1ee3 file MP4 v\xe0 MOV","fileMustBeUnder2GB":"File ph\u1ea3i d\u01b0\u1edbi 2GB","selectVideoFileFirst":"Ch\u1ecdn file video tr\u01b0\u1edbc","clippingStarted":"\u0110\xe3 b\u1eaft \u0111\u1ea7u t\u1ea1o clip!","uploadCompleteClippingStarted":"T\u1ea3i l\xean ho\xe0n t\u1ea5t \u2014 \u0111ang t\u1ea1o clip!","uploadFailed":"T\u1ea3i l\xean th\u1ea5t b\u1ea1i","failedToStartClipping":"Kh\xf4ng th\u1ec3 b\u1eaft \u0111\u1ea7u t\u1ea1o clip","havingTroubleWithLink":"G\u1eb7p s\u1ef1 c\u1ed1 v\u1edbi link n\xe0y \u2014 h\xe3y th\u1eed t\u1ea3i video xu\u1ed1ng r\u1ed3i t\u1ea3i l\xean, ho\u1eb7c d\xf9ng link YouTube","reachedUploadLimit":"B\u1ea1n \u0111\xe3 \u0111\u1ea1t gi\u1edbi h\u1ea1n t\u1ea3i l\xean th\xe1ng n\xe0y.","jobCancelled":"\u0110\xe3 h\u1ee7y t\xe1c v\u1ee5","projectDeleted":"\u0110\xe3 x\xf3a d\u1ef1 \xe1n","failedToDeleteProject":"X\xf3a d\u1ef1 \xe1n th\u1ea5t b\u1ea1i","deleteProject":"X\xf3a d\u1ef1 \xe1n?","cannotBeUndone":"H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c.","jobStillProcessing":"T\xe1c v\u1ee5 v\u1eabn \u0111ang x\u1eed l\xfd","jobCancelledClipsDeleted":"T\xe1c v\u1ee5 s\u1ebd b\u1ecb h\u1ee7y v\xe0 t\u1ea5t c\u1ea3 clip s\u1ebd b\u1ecb x\xf3a v\u0129nh vi\u1ec5n.","allClipsDeleted":"T\u1ea5t c\u1ea3 clip s\u1ebd b\u1ecb x\xf3a v\u0129nh vi\u1ec5n.","creatingYourClips":"\u0110ang t\u1ea1o clip cho b\u1ea1n","wellEmailYouWhenReady":"Ch\xfang t\xf4i s\u1ebd g\u1eedi email khi ho\xe0n t\u1ea5t","estimatingTime":"\u0110ang \u01b0\u1edbc t\xednh...","underTwoMinutes":"d\u01b0\u1edbi 2 ph\xfat","minutesRemaining":"~{{count}} ph\xfat c\xf2n l\u1ea1i","hoursMinutesRemaining":"~{{hours}}gi\u1edd {{minutes}}ph\xfat c\xf2n l\u1ea1i","almostDone":"s\u1eafp xong...","phaseDownloading":"\u0110ang t\u1ea3i video...","phaseDownloaded":"T\u1ea3i xong","phaseExtractingAudio":"\u0110ang tr\xedch xu\u1ea5t \xe2m thanh...","phaseTranscribing":"\u0110ang phi\xean \xe2m...","phaseTranscribingLong":"(\u0111\xe2y l\xe0 b\u01b0\u1edbc ch\u1eadm nh\u1ea5t cho c\xe1c stream d\xe0i)","phaseAnalyzing":"AI \u0111ang ch\u1ecdn kho\u1ea3nh kh\u1eafc hay nh\u1ea5t...","phaseRendering":"\u0110ang render clip...","phaseDone":"Xong!","tryUploadingInstead":"Th\u1eed t\u1ea3i l\xean thay th\u1ebf","processingStatus":"\u0110ang x\u1eed l\xfd...","clipsReadyCount":"{{count}} clip \u0111\xe3 s\u1eb5n s\xe0ng","schedule":"L\xean l\u1ecbch","post":"\u0110\u0103ng","goodClip":"Clip hay","badClip":"Clip d\u1edf","downloadClip":"T\u1ea3i clip","moreOptions":"Th\xeam","clipDefaultTitle":"Clip {{number}}
2","funMessages":{"goGrabCoffee":"\u0110i pha c\xe0 ph\xea n\xe0o","timeForStretch":"\u0110\u1ebfn l\xfac v\u01b0\u01a1n vai","takeQuickWalk":"\u0110i d\u1ea1o m\u1ed9t ch\xfat","hydrateYourself":"U\u1ed1ng n\u01b0\u1edbc \u0111i","doPushups":"H\xedt \u0111\u1ea5t v\xe0i c\xe1i","callYourMom":"G\u1ecdi \u0111i\u1ec7n cho m\u1eb9","petYourDog":"Vu\u1ed1t ve ch\xfa c\xfan","goForSwim":"\u0110i b\u01a1i n\xe0o","touchSomeGrass":"Ra ngo\xe0i h\xedt th\u1edf","checkYourPosture":"Ki\u1ec3m tra t\u01b0 th\u1ebf ng\u1ed3i"},"funMessagesModal":{"goForSwim":"\u0110i b\u01a1i trong l\xfac ch\xfang t\xf4i l\xe0m ph\xe9p m\xe0u","perfectTimeForCoffee":"Th\u1eddi \u0111i\u1ec3m tuy\u1ec7t v\u1eddi \u0111\u1ec3 u\u1ed1ng c\xe0 ph\xea","quickStretch":"C\xf3 l\u1ebd n\xean v\u01b0\u01a1n vai m\u1ed9t ch\xfat?","hydrationCheck":"Ki\u1ec3m tra n\u01b0\u1edbc! U\u1ed1ng n\u01b0\u1edbc \u0111i","takeWalk":"\u0110i d\u1ea1o \u0111i, ch\xfang t\xf4i lo","callSomeone":"G\u1ecdi cho ng\u01b0\u1eddi b\u1ea1n y\xeau th\u01b0\u01a1ng","petYourPet":"Vu\u1ed1t ve th\xfa c\u01b0ng n\u1ebfu c\xf3","touchGrass":"Ra ngo\xe0i h\xedt th\u1edf, th\u1eadt s\u1ef1 \u0111\xf3","jumpingJacks":"Nh\u1ea3y 10 c\xe1i jumping jacks","victoryDance":"T\u1eadp \u0111i\u1ec7u nh\u1ea3y chi\u1ebfn th\u1eafng","deepBreaths":"H\xedt th\u1edf s\xe2u... b\u1ea1n \u0111ang l\xe0m t\u1ed1t l\u1eafm","timeToSnack":"\u0110\xe2y l\xe0 d\u1ea5u hi\u1ec7u \u0111\u1ec3 \u0103n v\u1eb7t"},"editClip":"Ch\u1ec9nh s\u1eeda clip","clipEditor":"Tr\xecnh ch\u1ec9nh s\u1eeda clip","trimIn":"B\u1eaft \u0111\u1ea7u","trimOut":"K\u1ebft th\xfac","previewTrim":"Xem tr\u01b0\u1edbc c\u1eaft","saveCaption":"L\u01b0u","saveAndDownload":"L\u01b0u & T\u1ea3i xu\u1ed1ng","export":"Xu\u1ea5t","exportComplete":"Xu\u1ea5t ho\xe0n t\u1ea5t!","exportNotSupported":"Tr\xecnh duy\u1ec7t n\xe0y kh\xf4ng h\u1ed7 tr\u1ee3 xu\u1ea5t","backToClips":"Quay l\u1ea1i","uploadLimitReached":"\u0110\xe3 \u0111\u1ea1t gi\u1edbi h\u1ea1n t\u1ea3i l\xean","limitResets":"Gi\u1edbi h\u1ea1n \u0111\u1eb7t l\u1ea1i v\xe0o {{date}}","gotIt":"\u0110\xe3 hi\u1ec3u","failed":"Th\u1ea5t b\u1ea1i","creditsRefunded":"\u0110\xe3 ho\xe0n l\u1ea1i credit","tryAgainDifferentLink":"Th\u1eed l\u1ea1i ho\u1eb7c d\xf9ng link kh\xe1c.","noSpeechInVideo":"Li\xean k\u1ebft b\u1ea1n d\xe1n kh\xf4ng c\xf3 l\u1eddi n\xf3i. H\xe3y th\u1eed video c\xf3 ng\u01b0\u1eddi \u0111ang n\xf3i.","retry":"Th\u1eed l\u1ea1i","cancelJobBtn":"H\u1ee7y","hookScore":"\u0110i\u1ec3m Hook","best":"T\u1ed1t nh\u1ea5t","clipsSelected":"\u0110\xe3 ch\u1ecdn {{count}}","switchToFileUpload":"Chuy\u1ec3n sang t\u1ea3i file l\xean","switchToURL":"Chuy\u1ec3n sang URL","selectContentTypeFirst":"Vui l\xf2ng ch\u1ecdn lo\u1ea1i n\u1ed9i dung tr\u01b0\u1edbc.","livestreamsNotSupported":"Livestream ch\u01b0a \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 \u2014 vui l\xf2ng d\xf9ng VOD ho\u1eb7c video \u0111\xe3 ghi.","contentTypes":{"gaming":"Gaming","podcastTalkingHead":"Podcast / Talking Head","irlVlog":"IRL / Vlog","music":"\xc2m nh\u1ea1c","documentary":"Phim t\xe0i li\u1ec7u"},"cancelThisJob":"H\u1ee7y t\xe1c v\u1ee5 n\xe0y?","deleteTheseAssets":"X\xf3a c\xe1c t\xe0i nguy\xean n\xe0y?","willStopProcessingRemoveJob":"Thao t\xe1c n\xe0y s\u1ebd d\u1eebng x\u1eed l\xfd v\xe0 x\xf3a t\xe1c v\u1ee5.","keepGoing":"Ti\u1ebfp t\u1ee5c","noKeepThem":"Kh\xf4ng, gi\u1eef l\u1ea1i","yesCancelJob":"C\xf3, h\u1ee7y t\xe1c v\u1ee5","yesDeleteForever":"C\xf3, x\xf3a v\u0129nh vi\u1ec5n","titleCaption":"Ph\u1ee5 \u0111\u1ec1 ti\xeau \u0111\u1ec1","information":"Th\xf4ng tin","duration":"Th\u1eddi l\u01b0\u1ee3ng","platform":"N\u1ec1n t\u1ea3ng","creator":"Ng\u01b0\u1eddi t\u1ea1o","rateThisClip":"\u0110\xe1nh gi\xe1 clip n\xe0y","type":"Lo\u1ea1i","format":"\u0110\u1ecbnh d\u1ea1ng","clipsLabel":"Clip","slowConnection":"K\u1ebft n\u1ed1i ch\u1eadm","couldntLoad":"Kh\xf4ng th\u1ec3 t\u1ea3i","tapToRetry":"Nh\u1ea5n \u0111\u1ec3 th\u1eed l\u1ea1i","clipsDeleted_one":"\u0110\xe3 x\xf3a {{count}} clip","clipsDeleted_other":"\u0110\xe3 x\xf3a {{count}} clip"}'),schedule:JSON.parse('{"shareClip":"Chia s\u1ebb Clip","loadingPlatforms":"\u0110ang t\u1ea3i n\u1ec1n t\u1ea3ng...","noConnectedPlatforms":"Ch\u01b0a k\u1ebft n\u1ed1i n\u1ec1n t\u1ea3ng n\xe0o.","connectSocialsToSchedule":"K\u1ebft n\u1ed1i m\u1ea1ng x\xe3 h\u1ed9i \u0111\u1ec3 l\xean l\u1ecbch \u0111\u0103ng b\xe0i.","connectYourAccounts":"K\u1ebft n\u1ed1i t\xe0i kho\u1ea3n","postTo":"\u0110\u0103ng l\xean:","deselectAll":"B\u1ecf ch\u1ecdn t\u1ea5t c\u1ea3","selectAll":"Ch\u1ecdn t\u1ea5t c\u1ea3","caption":"Ch\xfa th\xedch","writeCaptionPlaceholder":"Vi\u1ebft ch\xfa th\xedch cho b\xe0i \u0111\u0103ng...","scheduleAction":"L\xean l\u1ecbch","saveAndSchedule":"L\u01b0u v\xe0 l\xean l\u1ecbch b\xe0i \u0111\u0103ng","postAction":"\u0110\u0103ng","publishImmediately":"\u0110\u0103ng ngay","scheduling":"\u
20110ang l\xean l\u1ecbch...","publishing":"\u0110ang \u0111\u0103ng...","viewPost":"Xem b\xe0i \u0111\u0103ng","postedSuccessfully":"\u0110\u0103ng th\xe0nh c\xf4ng!","partiallyPosted":"\u0110\u0103ng m\u1ed9t ph\u1ea7n","failedToPost":"\u0110\u0103ng th\u1ea5t b\u1ea1i","selectAtLeastOnePlatform":"Ch\u1ecdn \xedt nh\u1ea5t m\u1ed9t n\u1ec1n t\u1ea3ng","selectATime":"Ch\u1ecdn th\u1eddi gian","selectFutureTime":"Vui l\xf2ng ch\u1ecdn th\u1eddi gian trong t\u01b0\u01a1ng lai","postScheduled":"\u0110\xe3 l\xean l\u1ecbch b\xe0i \u0111\u0103ng!","failedToSchedule":"L\xean l\u1ecbch th\u1ea5t b\u1ea1i","failedToPublish":"\u0110\u0103ng b\xe0i th\u1ea5t b\u1ea1i","postedSuccess":"\u0110\u0103ng th\xe0nh c\xf4ng!","postedToSomePlatforms":"\u0110\xe3 \u0111\u0103ng tr\xean m\u1ed9t s\u1ed1 n\u1ec1n t\u1ea3ng","failedToPostError":"\u0110\u0103ng b\xe0i th\u1ea5t b\u1ea1i","scheduledPost":"B\xe0i \u0111\u0103ng \u0111\xe3 l\xean l\u1ecbch","postingTo":"\u0110\u0103ng l\xean","writeCaptionShort":"Vi\u1ebft ch\xfa th\xedch...","saveChanges":"L\u01b0u thay \u0111\u1ed5i","cancelScheduledPost":"H\u1ee7y b\xe0i \u0111\u0103ng \u0111\xe3 l\xean l\u1ecbch?","clipWontBePosted":"Clip s\u1ebd kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u0103ng l\xean c\xe1c n\u1ec1n t\u1ea3ng \u0111\xe3 ch\u1ecdn.","keepIt":"Gi\u1eef l\u1ea1i","cancelling":"\u0110ang h\u1ee7y...","yesCancelPost":"C\xf3, h\u1ee7y b\xe0i \u0111\u0103ng","changesSaved":"\u0110\xe3 l\u01b0u thay \u0111\u1ed5i","failedToSaveChanges":"L\u01b0u thay \u0111\u1ed5i th\u1ea5t b\u1ea1i","postCancelled":"\u0110\xe3 h\u1ee7y b\xe0i \u0111\u0103ng","failedToCancelPost":"H\u1ee7y b\xe0i \u0111\u0103ng th\u1ea5t b\u1ea1i","todayAt":"H\xf4m nay l\xfac","tomorrowAt":"Ng\xe0y mai l\xfac","upcomingClips":"Clip s\u1eafp t\u1edbi","noScheduledClipsThisMonth":"Kh\xf4ng c\xf3 clip n\xe0o \u0111\u01b0\u1ee3c l\xean l\u1ecbch th\xe1ng n\xe0y.","scheduleClipsHint":"L\xean l\u1ecbch clip sau khi render xong.","cancelScheduledPostConfirm":"H\u1ee7y b\xe0i \u0111\u0103ng \u0111\xe3 l\xean l\u1ecbch?","cancelPostMessage":"B\xe0i \u0111\u0103ng s\u1ebd b\u1ecb x\xf3a kh\u1ecfi l\u1ecbch. B\u1ea1n lu\xf4n c\xf3 th\u1ec3 l\xean l\u1ecbch l\u1ea1i sau.","cancelPost":"H\u1ee7y b\xe0i \u0111\u0103ng","sun":"CN","mon":"T2","tue":"T3","wed":"T4","thu":"T5","fri":"T6","sat":"T7","untitledClip":"Clip ch\u01b0a \u0111\u1eb7t t\xean","platformX":"X","platformTikTok":"TikTok","platformYouTube":"YouTube","platformFacebook":"Facebook"}'),settings:JSON.parse('{"connectedAccounts":"T\xe0i kho\u1ea3n \u0111\xe3 k\u1ebft n\u1ed1i","linkSocialsToPost":"Li\xean k\u1ebft m\u1ea1ng x\xe3 h\u1ed9i \u0111\u1ec3 \u0111\u0103ng clip.","yourChannel":"K\xeanh c\u1ee7a b\u1ea1n","watermarkDescription":"\u1ea2nh \u0111\u1ea1i di\u1ec7n gi\xfap AI nh\u1eadn di\u1ec7n b\u1ea1n trong video \u0111\u1ec3 t\u1ea1o clip t\u1ed1t h\u01a1n.","streamerName":"T\xean Streamer","placeholderStreamerName":"vd: Kai Cenat","streamerNameHint":"T\xean streamer b\u1ea1n clip cho. Gi\xfap AI vi\u1ebft hook t\u1ed1t h\u01a1n.","channelUsername":"T\xean ng\u01b0\u1eddi d\xf9ng k\xeanh","placeholderChannelUsername":"T\xean streaming c\u1ee7a b\u1ea1n","platform":"N\u1ec1n t\u1ea3ng","selectPlatform":"Ch\u1ecdn n\u1ec1n t\u1ea3ng","tapToChangePhoto":"Nh\u1ea5n \u0111\u1ec3 \u0111\u1ed5i \u1ea3nh","pleaseSelectImageFile":"Vui l\xf2ng ch\u1ecdn file \u1ea3nh","imageMustBeLess5MB":"\u1ea2nh ph\u1ea3i d\u01b0\u1edbi 5MB","profilePictureUpdated":"\u0110\xe3 c\u1eadp nh\u1eadt \u1ea3nh h\u1ed3 s\u01a1!","failedToUploadPicture":"T\u1ea3i \u1ea3nh l\xean th\u1ea5t b\u1ea1i","disconnectedFrom":"\u0110\xe3 ng\u1eaft k\u1ebft n\u1ed1i {{platform}}","failedToDisconnect":"Ng\u1eaft k\u1ebft n\u1ed1i th\u1ea5t b\u1ea1i","platformTwitch":"Twitch","platformYouTube":"YouTube","platformKick":"Kick","platformRumble":"Rumble","platformXTwitter":"X (Twitter)","platformGanjing":"Ganjing World","socialXTwitter":"X (Twitter)","socialYouTubeShorts":"YouTube Shorts","socialTikTok":"TikTok","socialFacebookReels":"Facebook Reels","socialRumbleShorts":"Rumble Shorts","subscriptionSettings":"C\xe0i \u0111\u1eb7t \u0111\u0103ng k\xfd","stripeConnectionStatus":"Tr\u1ea1ng th\xe1i k\u1ebft n\u1ed1i Stripe","stripeConnectedMessage":"T\xe0i kho\u1ea3n Stripe \u0111\xe3 k\u1ebft n\u1ed1i v\xe0 s\u1eb5n s\xe0ng nh\u1eadn thanh to\xe1n","manageStripeAccount":"Qu\u1ea3n l\xfd t\xe0i kho\u1ea3n Stripe","stripeConnectInstructions":"K\u1ebft n\u1ed1i t\xe0i kho\u1ea3n Stripe \u0111\u1ec3 b\u1eaft \u0111\u1ea7u nh\u1eadn thanh to\xe1n \u0111\u0103ng k\xfd...","stripeSetupWarning":"QUAN TR\u1eccNG: B\u1ea1n ph\u1ea3i ho\xe0n t\u1ea5t to\xe0n b\u1ed9 quy tr\xecnh c\xe0i \u0111\u1eb7t Stripe...","stripeSupp
2ortMessage":"G\u1eb7p v\u1ea5n \u0111\u1ec1? Li\xean h\u1ec7 h\u1ed7 tr\u1ee3 t\u1ea1i [email protected]...","connectingToStripe":"\u0110ang k\u1ebft n\u1ed1i Stripe...","connectStripeAccount":"K\u1ebft n\u1ed1i t\xe0i kho\u1ea3n Stripe","enableSubscriptions":"B\u1eadt \u0111\u0103ng k\xfd","monthlySubscriptionPrice":"Gi\xe1 \u0111\u0103ng k\xfd h\xe0ng th\xe1ng (USD)","subscriptionDescription":"M\xf4 t\u1ea3 \u0111\u0103ng k\xfd","describeSubscriptionBenefits":"M\xf4 t\u1ea3 nh\u1eefng g\xec ng\u01b0\u1eddi \u0111\u0103ng k\xfd s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c...","saveSettings":"L\u01b0u c\xe0i \u0111\u1eb7t","settingsSaved":"\u0110\xe3 l\u01b0u c\xe0i \u0111\u1eb7t!","savingFailed":"L\u01b0u th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i.","stripeConnectionError":"K\u1ebft n\u1ed1i Stripe th\u1ea5t b\u1ea1i. Th\u1eed l\u1ea1i.","stripeDashboardError":"M\u1edf b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n Stripe th\u1ea5t b\u1ea1i. Th\u1eed l\u1ea1i.","stripeSetupError":"Ho\xe0n t\u1ea5t c\xe0i \u0111\u1eb7t Stripe th\u1ea5t b\u1ea1i. Th\u1eed l\u1ea1i.","xsubscribeAdmin":"Qu\u1ea3n tr\u1ecb XSubscribe","preview":"Xem tr\u01b0\u1edbc","fetchLinksError":"T\u1ea3i li\xean k\u1ebft th\u1ea5t b\u1ea1i","deleteLinkError":"X\xf3a li\xean k\u1ebft th\u1ea5t b\u1ea1i","orderUpdateSuccess":"\u0110\xe3 c\u1eadp nh\u1eadt th\u1ee9 t\u1ef1 tr\xean server","orderUpdateError":"C\u1eadp nh\u1eadt th\u1ee9 t\u1ef1 th\u1ea5t b\u1ea1i","addLinkError":"Th\xeam li\xean k\u1ebft th\u1ea5t b\u1ea1i","profileSection":"H\u1ed3 s\u01a1","pickAnImage":"Ch\u1ecdn \u1ea3nh","remove":"X\xf3a","usernameInputPlaceholder":"T\xe0i kho\u1ea3n X (@username)","bioInputPlaceholder":"T\u1ea1i sao m\u1ecdi ng\u01b0\u1eddi n\xean \u0111\u0103ng k\xfd?","getUnlimitedCustomization":"T\xf9y ch\u1ec9nh kh\xf4ng gi\u1edbi h\u1ea1n","verifiedCheckmark":"D\u1ea5u t\xedch x\xe1c minh","customBackgroundImages":"H\xecnh n\u1ec1n t\xf9y ch\u1ec9nh","removeXSubscribeLogo":"X\xf3a logo XSubscribe","dollarPerMonth":"$9 /th\xe1ng sau \u0111\xf3","flatColour":"M\xe0u \u0111\u01a1n","image":"H\xecnh \u1ea3nh","pickAColor":"Ch\u1ecdn m\xe0u","hideXSubscribeLogo":"\u1ea8n logo XSubscribe","errorUpdatingProfileTitle":"L\u1ed7i c\u1eadp nh\u1eadt ti\xeau \u0111\u1ec1 h\u1ed3 s\u01a1","errorUpdatingBio":"L\u1ed7i c\u1eadp nh\u1eadt ti\u1ec3u s\u1eed h\u1ed3 s\u01a1","errorSavingBackgroun
2dColor":"L\u1ed7i l\u01b0u m\xe0u n\u1ec1n","errorUpdatingEffects":"L\u1ed7i c\u1eadp nh\u1eadt hi\u1ec7u \u1ee9ng n\u1ec1n","errorUpdatingLogo":"L\u1ed7i c\u1eadp nh\u1eadt logo","invalidUser":"currentUser kh\xf4ng h\u1ee3p l\u1ec7.","errorFetchingLogoStatus":"L\u1ed7i t\u1ea3i tr\u1ea1ng th\xe1i logo","errorFetchingUserData":"L\u1ed7i t\u1ea3i d\u1eef li\u1ec7u ng\u01b0\u1eddi d\xf9ng","errorFetchingProfilePic":"L\u1ed7i t\u1ea3i \u1ea3nh h\u1ed3 s\u01a1","uploadFailed":"T\u1ea3i l\xean th\u1ea5t b\u1ea1i","accountSettings":"C\xe0i \u0111\u1eb7t t\xe0i kho\u1ea3n","manageSubscription":"Qu\u1ea3n l\xfd g\xf3i \u0111\u0103ng k\xfd","manageSubscriptionDesc":"C\u1eadp nh\u1eadt ph\u01b0\u01a1ng th\u1ee9c thanh to\xe1n, xem h\xf3a \u0111\u01a1n ho\u1eb7c h\u1ee7y","deleteAccount":"X\xf3a t\xe0i kho\u1ea3n","deleteAccountWarning":"H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c. T\u1ea5t c\u1ea3 d\u1eef li\u1ec7u c\u1ee7a b\u1ea1n s\u1ebd b\u1ecb x\xf3a v\u0129nh vi\u1ec5n.","typeDeleteToConfirm":"Nh\u1eadp DELETE \u0111\u1ec3 x\xe1c nh\u1eadn","accountDeleted":"\u0110\xe3 x\xf3a t\xe0i kho\u1ea3n th\xe0nh c\xf4ng","failedToDeleteAccount":"X\xf3a t\xe0i kho\u1ea3n th\u1ea5t b\u1ea1i","failedToOpenBilling":"M\u1edf c\u1ed5ng thanh to\xe1n th\u1ea5t b\u1ea1i","yourBrands":"Th\u01b0\u01a1ng hi\u1ec7u c\u1ee7a b\u1ea1n","addBrand":"Th\xeam th\u01b0\u01a1ng hi\u1ec7u","brandName":"T\xean th\u01b0\u01a1ng hi\u1ec7u","brandNamePlaceholder":"Nh\u1eadp t\xean th\u01b0\u01a1ng hi\u1ec7u","createBrand":"T\u1ea1o th\u01b0\u01a1ng hi\u1ec7u","switchBrand":"Chuy\u1ec3n th\u01b0\u01a1ng hi\u1ec7u","deleteBrand":"X\xf3a th\u01b0\u01a1ng hi\u1ec7u","cannotDeleteLastBrand":"Kh\xf4ng th\u1ec3 x\xf3a th\u01b0\u01a1ng hi\u1ec7u duy nh\u1ea5t c\u1ee7a b\u1ea1n","brandCreated":"\u0110\xe3 t\u1ea1o th\u01b0\u01a1ng hi\u1ec7u!","brandSwitched":"\u0110\xe3 chuy\u1ec3n th\u01b0\u01a1ng hi\u1ec7u!","brandDeleted":"\u0110\xe3 x\xf3a th\u01b0\u01a1ng hi\u1ec7u","failedToCreateBrand":"T\u1ea1o th\u01b0\u01a1ng hi\u1ec7u th\u1ea5t b\u1ea1i","failedToSwitchBrand":"Chuy\u1ec3n th\u01b0\u01a1ng hi\u1ec7u th\u1ea5t b\u1ea1i","failedToDeleteBrand":"X\xf3a th\u01b0\u01a1ng hi\u1ec7u th\u1ea5t b\u1ea1i","captionPresets":"Ki\u1ec3u ph\u1ee5 \u0111\u1ec1","captionPresetsDesc":"\u0110\u1eb7t giao di\u1ec7n m\u1eb7c \u0111\u1ecbnh cho ph\u1ee5 \u0111\u1ec1 tr\xean clip c\u1ee7a b\u1ea1n. Clip m\u1edbi s\u1ebd s\u1eed d\u1ee5ng ki\u1ec3u \u0111ang ho\u1ea1t \u0111\u1ed9ng.","presetName":"T\xean ki\u1ec3u","presetNamePlaceholder":"vd: \u0110\u1ecf \u0111\u1eadm","addPreset":"Th\xeam ki\u1ec3u","editPreset":"Ch\u1ec9nh s\u1eeda","deletePreset":"X\xf3a","createPreset":"T\u1ea1o ki\u1ec3u","presetCreated":"\u0110\xe3 t\u1ea1o ki\u1ec3u!","presetActivated":"\u0110\xe3 \u0111\u1ed5i ki\u1ec3u ph\u1ee5 \u0111\u1ec1!","presetDeleted":"\u0110\xe3 x\xf3a ki\u1ec3u","cannotDeleteLastPreset":"Kh\xf4ng th\u1ec3 x\xf3a ki\u1ec3u duy nh\u1ea5t c\u1ee7a b\u1ea1n","failedToSwitchPreset":"Chuy\u1ec3n ki\u1ec3u th\u1ea5t b\u1ea1i","failedToDeletePreset":"X\xf3a ki\u1ec3u th\u1ea5t b\u1ea1i","captionPreview":"\u0110\xe2y l\xe0 b\u1ea3n xem tr\u01b0\u1edbc ph\u1ee5 \u0111\u1ec1 c\u1ee7a b\u1ea1n","captionColor":"M\xe0u","captionFont":"Ph\xf4ng ch\u1eef","captionPosition":"V\u1ecb tr\xed","captionWidth":"Chi\u1ec1u r\u1ed9ng","streamType":"Lo\u1ea1i n\u1ed9i dung","streamTypeHint":"B\u1ea1n t\u1ea1o lo\u1ea1i n\u1ed9i dung g\xec? \u0110i\u1ec1u n\xe0y gi\xfap AI \u0111i\u1ec1u ch\u1ec9nh clip ph\xf9 h\u1ee3p v\u1edbi phong c\xe1ch c\u1ee7a b\u1ea1n.","streamTypeGaming":"Gaming","streamTypeGamingDesc":"Gameplay c\xf3 b\xecnh lu\u1eadn, kho\u1ea3nh kh\u1eafc clutch, ph\u1ea3n \u1ee9ng","streamTypeTalkingHead":"Podcast/Talking Head","streamTypeTalkingHeadDesc":"Podcast, ph\u1ecfng v\u1ea5n, ph\u1ea3n \u1ee9ng, b\xecnh lu\u1eadn","streamTypeIRL":"IRL / Vlog","streamTypeIRLDesc":"Stream \u0111\u1eddi th\u1ef1c, s\u1ef1 ki\u1ec7n, n\u1ed9i dung ngo\xe0i tr\u1eddi","streamTypeMusic":"\xc2m nh\u1ea1c","streamTypeMusicDesc":"Bi\u1ec3u di\u1ec5n tr\u1ef1c ti\u1ebfp, set DJ, s\u1ea3n xu\u1ea5t nh\u1ea1c","
2streamTypeDocumentary":"T\xe0i li\u1ec7u","streamTypeDocumentaryDesc":"Phim t\xe0i li\u1ec7u, mini-doc v\xe0 phim \u0111i\u1ec7n \u1ea3nh","platformOwn":"OWN"}'),upgrade:JSON.parse('{"pro":"PRO","unlockClipbait":"M\u1edf kh\xf3a Clipbait","getFullAccess":"Truy c\u1eadp \u0111\u1ea7y \u0111\u1ee7 tr\xecnh t\u1ea1o clip b\u1eb1ng AI","monthly":"H\xe0ng th\xe1ng","annual":"H\xe0ng n\u0103m","save15Percent":"Ti\u1ebft ki\u1ec7m 15%","perMonth":"/th\xe1ng","perMonthShort":"/th","billedAsPerYear":"Thanh to\xe1n ${{amount}}/n\u0103m","upload30Videos":"T\u1ea3i l\xean 30 video m\u1ed7i th\xe1ng","upTo2Hours":"Video d\xe0i \u0111\u1ebfn 2 gi\u1edd","generate300Clips":"T\u1ea1o 300 clip m\u1ed7i th\xe1ng","downloadAndSchedule":"T\u1ea3i xu\u1ed1ng & l\xean l\u1ecbch clip","upTo5Accounts":"T\u1ed1i \u0111a 5 t\xe0i kho\u1ea3n th\u01b0\u01a1ng hi\u1ec7u","getStarted":"B\u1eaft \u0111\u1ea7u","redirecting":"\u0110ang chuy\u1ec3n h\u01b0\u1edbng...","exclusiveOffer":"\u01afU \u0110\xc3I \u0110\u1ed8C QUY\u1ec0N","russellBrandsPick":"L\u1ef1a ch\u1ecdn c\u1ee7a Russell Brand","get10PercentOff":"Gi\u1ea3m 10% Clipbait Pro \u2014 \u0111\u1ed9c quy\u1ec1n cho kh\xe1n gi\u1ea3 c\u1ee7a Russell","discountApplied":"Gi\u1ea3m gi\xe1 10% \u0111\xe3 \u0111\u01b0\u1ee3c \xe1p d\u1ee5ng t\u1ef1 \u0111\u1ed9ng","claim10Off":"Nh\u1eadn gi\u1ea3m 10%","noThanksFullPrice":"Kh\xf4ng, c\u1ea3m \u01a1n, t\xf4i tr\u1ea3 gi\xe1 g\u1ed1c","generateWithoutLimits":"T\u1ea1o kh\xf4ng gi\u1edbi h\u1ea1n","upgradePlan":"N\xe2ng c\u1ea5p G\xf3i","buyCredits":"Mua Credit","creditsNeverExpireNote":"Credit kh\xf4ng bao gi\u1edd h\u1ebft h\u1ea1n v\xe0 \u0111\u01b0\u1ee3c d\xf9ng sau khi h\u1ebft h\u1ea1n m\u1ee9c h\xe0ng th\xe1ng c\u1ee7a g\xf3i.","mostPopular":"Ph\u1ed5 bi\u1ebfn nh\u1ea5t","bestValue":"Gi\xe1 tr\u1ecb nh\u1ea5t","generationsPerMonth":"{{count}} l\u1ea7n t\u1ea1o/th\xe1ng","twentyPercentOff":"Gi\u1ea3m 20%","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","save16Percent":"Ti\u1ebft ki\u1ec7m 16%","save26Percent":"Ti\u1ebft ki\u1ec7m 26%","perMonthBilledAnnually":"m\u1ed7i th\xe1ng, thanh to\xe1n h\xe0ng n\u0103m"}'),pages:JSON.parse('{"foundersStoryTitle":"C\xe2u chuy\u1ec7n Nh\xe0 s\xe1ng l\u1eadp","foundersStoryContent":"N\u0103m 2021, Spirit \u0111\u1ed1i m\u1eb7t v\u1edbi s\u1ef1 ki\u1ec3m duy\u1ec7t ng\u1ed9t ng\u1ea1t tr\xean c\xe1c n\u1ec1n t\u1ea3ng ch\xednh th\u1ed1ng. Quy\u1ebft t\xe2m t\xecm kh\xf4ng gian n\u01a1i t\u1ef1 do ng\xf4n lu\u1eadn ph\xe1t tri\u1ec3n, anh \u1ea5y kh\xe1m ph\xe1 ra m\u1ed9t n\u1ec1n t\u1ea3ng ph\xf9 h\u1ee3p v\u1edbi ni\u1ec1m tin v\u1ec1 \u0111\u1ed1i tho\u1ea1i c\u1edfi m\u1edf v\xe0 t\u1ef1 do s\xe1ng t\u1ea1o. Kho\u1ea3nh kh\u1eafc quan tr\u1ecdng n\xe0y \u0111\xe3 n\u1ea3y sinh \xfd t\u01b0\u1edfng cho XSubscribe \u2014 m\u1ed9t n\u1ec1n t\u1ea3ng n\u01a1i nh\xe0 s\xe1ng t\u1ea1o v\xe0 c\u1ed9ng \u0111\u1ed3ng c\xf3 th\u1ec3 k\u1ebft n\u1ed1i ch\xe2n th\u1eadt, kh\xf4ng s\u1ee3 ki\u1ec3m duy\u1ec7t. Spirit, v\u1edbi t\u1ea7m nh\xecn \u0111\u1ed9c \u0111\xe1o v\xe0 \u0111am m\xea h\u1ed7 tr\u1ee3 nh\xe0 s\xe1ng t\u1ea1o, \u0111\xe3 \u0111\u1eb7t n\u1ec1n m\xf3ng cho k\u1ef7 nguy\xean m\u1edbi trong vi\u1ec7c ki\u1ebfm ti\u1ec1n t\u1eeb n\u1ed9i dung. Khi XSubscribe ti\u1ebfp t\u1ee5c ph\xe1t tri\u1ec3n, n\xf3 v\u1eabn g\u1eafn b\xf3 v\u
21edbi ni\u1ec1m tin r\u1eb1ng m\u1ecdi ti\u1ebfng n\xf3i \u0111\u1ec1u \u0111\xe1ng \u0111\u01b0\u1ee3c l\u1eafng nghe. D\xf9 b\u1ea1n l\xe0 nh\xe0 s\xe1ng t\u1ea1o k\u1ef3 c\u1ef1u hay m\u1edbi b\u1eaft \u0111\u1ea7u, XSubscribe s\u1ebd gi\xfap b\u1ea1n x\xe2y d\u1ef1ng s\u1ef1 nghi\u1ec7p b\u1ec1n v\u1eefng v\u1edbi \u0111am m\xea.","termsTitle":"\u0110i\u1ec1u kho\u1ea3n v\xe0 \u0110i\u1ec1u ki\u1ec7n","lastUpdatedTerms":"C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i: Ch\u1ee7 nh\u1eadt 7 Th\xe1ng 1, 2024","termsSection1Title":"1. Ch\xe0o m\u1eebng \u0111\u1ebfn XSubscribe:","termsSection1Content":"C\xe1c \u0110i\u1ec1u kho\u1ea3n S\u1eed d\u1ee5ng (\\"\u0110i\u1ec1u kho\u1ea3n\\") n\xe0y \u0111i\u1ec1u ch\u1ec9nh vi\u1ec7c s\u1eed d\u1ee5ng d\u1ecbch v\u1ee5 XSubscribe, bao g\u1ed3m website, API, \u1ee9ng d\u1ee5ng di \u0111\u1ed9ng v\xe0 t\u1ea5t c\u1ea3 d\u1ecbch v\u1ee5 li\xean quan. B\u1eb1ng vi\u1ec7c s\u1eed d\u1ee5ng n\u1ec1n t\u1ea3ng, b\u1ea1n \u0111\u1ed3ng \xfd tu\xe2n theo c\xe1c \u0110i\u1ec1u kho\u1ea3n n\xe0y.","termsSection2Title":"2. Thay \u0111\u1ed5i \u0110i\u1ec1u kho\u1ea3n:","termsSection2Content":"XSubscribe c\xf3 th\u1ec3 c\u1eadp nh\u1eadt c\xe1c \u0110i\u1ec1u kho\u1ea3n n\xe0y. B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c th\xf4ng b\xe1o v\u1ec1 c\xe1c thay \u0111\u1ed5i quan tr\u1ecdng, v\xe0 vi\u1ec7c ti\u1ebfp t\u1ee5c s\u1eed d\u1ee5ng \u0111\u1ed3ng ngh\u0129a v\u1edbi ch\u1ea5p nh\u1eadn \u0111i\u1ec1u kho\u1ea3n m\u1edbi.","termsSection3Title":"3. T\xe0i kho\u1ea3n c\u1ee7a b\u1ea1n:","termsSection3Content":"B\u1ea1n ph\u1ea3i t\u1eeb 18 tu\u1ed5i tr\u1edf l\xean \u0111\u1ec3 s\u1eed d\u1ee5ng XSubscribe, ho\u1eb7c c\xf3 s\u1ef1 cho ph\xe9p c\u1ee7a ph\u1ee5 huynh. Gi\u1eef th\xf4ng tin t\xe0i kho\u1ea3n c\u1eadp nh\u1eadt v\xe0 b\u1ea3o m\u1eadt m\u1eadt kh\u1ea9u. B\u1ea1n ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 nh\u1eefng g\xec x\u1ea3y ra tr\xean t\xe0i kho\u1ea3n.","termsSection4Title":"4. T\xean ng\u01b0\u1eddi d\xf9ng:","termsSection4Content":"T\xean ng\u01b0\u1eddi d\xf9ng ph\u1ea3i t\xf4n tr\u1ecdng quy\u1ec1n c\u1ee7a ng\u01b0\u1eddi kh\xe1c. XSubscribe c\xf3 th\u1ec3 thu h\u1ed3i ho\u1eb7c thay \u0111\u1ed5i t\xean ng\u01b0\u1eddi d\xf9ng n\u1ebfu c\u1ea7n.","termsSection5Title":"5. Qu\u1ea3n l\xfd g\xf3i:","termsSection5Content":"XSubscribe cung c\u1ea5p g\xf3i mi\u1ec5n ph\xed v\xe0 tr\u1ea3 ph\xed. G\xf3i tr\u1ea3 ph\xed y\xeau c\u1ea7u ph\u01b0\u01a1ng th\u1ee9c thanh to\xe1n h\u1ee3p l\u1ec7. B\u1ea1n c\xf3 th\u1ec3 chuy\u1ec3n \u0111\u1ed5i gi\u1eefa c\xe1c g\xf3i.","termsSection6Title":"6. N\u1ed9i dung c\u1ee7a b\u1ea1n:","termsSection6Content":"B\u1ea1n ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 n\u1ed9i dung. N\u1ed9i dung ph\u1ea3i tu\xe2n theo h\u01b0\u1edbng d\u1eabn v\xe0 ph\xe1p lu\u1eadt. XSubscribe c\xf3 th\u1ec3 x\xf3a n\u1ed9i dung vi ph\u1ea1m.","termsSection7Title":"7. Ch\xfang t\xf4i c\xf3 th\u1ec3 l\xe0m g\xec v\u1edbi n\u1ed9i dung c\u1ee7a b\u1ea1n:","termsSection7Content":"XSubscribe c\xf3 gi\u1ea5y ph\xe9p s\u1eed d\u1ee5ng, ph\xe2n ph\u1ed1i v\xe0 hi\u1ec3n th\u1ecb n\u1ed9i dung c\u1ee7a b\u1ea1n trong vi\u1ec7c v\u1eadn h\xe0nh n\u1ec1n t\u1ea3ng. B\u1ea1n c\xf3 th\u1ec3 ki\u1ec3m so\xe1t n\u1ed9i dung qua c\xe0i \u0111\u1eb7t ri\xeang t\u01b0.","termsSection8Title":"8. \u0110\xecnh ch\u1ec9 ho\u1eb7c H\u1ee7y t\xe0i kho\u1ea3n:","termsSection8Content":"XSubscribe c\xf3 th\u1ec3 \u0111\xecnh ch\u1ec9 ho\u1eb7c h\u1ee7y t\xe0i kho\u1ea3n vi ph\u1ea1m quy t\u1eafc. B\u1ea1n c\u0169ng c\xf3 th\u1ec3 t\u1ef1 h\u1ee7y t\xe0i kho\u1ea3n.","termsSection9Title":"9. Tr\xe1ch nhi\u1ec7m v\u1edbi kh\xe1ch truy c\u1eadp v\xe0 kh\xe1ch h\xe0ng:","termsSection9Content":"B\u1ea1n ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 tr\u1ea3i nghi\u1ec7m c\u1ee7a ng\u01b0\u1eddi truy c\u1eadp ho\u1eb7c t\u01b0\u01a1ng t\xe1c v\u1edbi h\u1ed3 s\u01a1 c\u1ee7a b\u1ea1n.","termsSection10Title":"10. Ph\u1ea3n h\u1ed3i:","termsSection10Content":"N\u1ebfu b\u1ea1n cung c\u1ea5p ph\u1ea3n h\u1ed3i, XSubscribe c\xf3 th\u1ec3 t\u1ef1 do s\u1eed d\u1ee5ng. B\u1ea1n kh\xf4ng b\u1eaft bu\u1ed9c ph\u1ea3i ph\u1ea3n h\u1ed3i.","termsSection11Title":"11. N\u1ec1n t\u1ea3ng c\u1ee7a ch\xfang t\xf4i:","termsSection11Content":"B\u1ea1n c\xf3 quy\u1ec1n h\u1ea1n ch\u1ebf s\u1eed d\u1ee5ng n\u1ec1n t\u1ea3ng cho ho\u1ea1t \u0111\u1ed9ng n\u1ed9i dung. Kh\xf4ng l\u1ea1m d\u1ee5ng ho\u1eb7c c\u1ed1 g\xe2y h\u1ea1i.","termsSection12Title":"12. Ph\xed v\xe0 Thanh to\xe1n:","termsSection12Content":"Ph\xed \u0111\u0103ng k\xfd, ph\xed giao d\u1ecbch v\xe0 \u0111i\u1ec1u kho\u1ea3n thanh to\xe1n \u0111\u01b0\u1ee3c chi ti\u1ebft trong Bi\u1ec3u ph\xed.","termsSection13Title":"13. Quy\u1ec1n ri\xeang t\u01b0:","termsSection13Content":"Th\xf4ng b\xe1o Quy\u1ec1n ri\xeang t\u01b0 c\u1ee7a XSubscribe m\xf4 t\u1ea3 c\xe1ch ch\xfang t\xf4i x\u1eed l\xfd th\xf4ng tin c\u1ee7a b\u1ea1n.","termsSection14Title":"14. B\u1ea3o m\u1eadt:","termsSection14Content":"Gi\u1eef b\xed m\u1eadt th\xf4ng tin kh\xf4ng c\xf4ng khai do XSubscribe chia s\u1ebb.","termsSection15Title":"15. Tr\xe1ch nhi\u1ec7m ph\xe1p l\xfd:","termsSection15Content":"B\u1ea1n ch\u1ecbu tr\xe1ch nhi\u1ec7m v\u1ec1 vi\u1ec7c s\u1eed d\u1ee5ng n\u1ec1n t\u1ea3ng. Tr\xe1ch nhi\u1ec7m c\u1ee7a XSubscribe c\xf3 gi\u1edbi h\u1ea1n.","termsSection16Title":"16. Mi\u1ec5n tr\u1eeb tr\xe1ch nhi\u1ec7m:","termsSection16Content":"N\u1ec1n t\u1ea3ng \u0111\u01b0\u1ee3c cung c\u1ea5p \\"NGUY\xcaN TR\u1ea0NG\\" kh\xf4ng c\xf3 b\u1ea3o \u0111\u1ea3m.","termsSection17Title":"17. D\u1ecbch v\u1ee5 B\xean th\u1ee9 ba:","termsSection17Content":"XSubscribe h\u1ee3p t\xe1c v\u1edbi d\u1ecbch v\u1ee5 b\xean th\u1ee9 ba. \u0110i\u1ec1u kho\u1ea3n v\xe0 ch\xednh s\xe1ch c\u1ee7a h\u1ecd \u0111\u01b0\u1ee3c \xe1p d\u1ee5ng.","termsSection18Title":"18. \u0110i\u1ec1u kho\u1ea3n \u1ee8ng d\u1ee5ng:","termsSection18Content":"\u0110i\u1ec1u kho\u1ea3n c\u1ee5 th\u1ec3 \xe1p d\u1ee5ng khi s\u1eed d\u1ee5ng \u1ee9ng d\u1ee5ng di \u0111\u1ed9ng XSubscribe.","termsSection19Title":"19. M\xe3 ngu\u
21ed3n m\u1edf:","termsSection19Content":"\u1ee8ng d\u1ee5ng c\xf3 th\u1ec3 bao g\u1ed3m ph\u1ea7n m\u1ec1m m\xe3 ngu\u1ed3n m\u1edf v\u1edbi gi\u1ea5y ph\xe9p ri\xeang.","termsSection20Title":"20. M\u1ed9t v\xe0i \u0111i\u1ec1u cu\u1ed1i c\xf9ng:","termsSection20Content":"Lu\u1eadt ph\xe1p nh\u1ea5t \u0111\u1ecbnh c\xf3 th\u1ec3 \xe1p d\u1ee5ng t\xf9y v\u1ecb tr\xed c\u1ee7a b\u1ea1n. C\xe1c \u0110i\u1ec1u kho\u1ea3n n\xe0y l\xe0 th\u1ecfa thu\u1eadn \u0111\u1ea7y \u0111\u1ee7 gi\u1eefa b\u1ea1n v\xe0 XSubscribe.","furtherInformation":"B\u1ea1n c\xf3 th\u1ec3 t\xecm th\xeam th\xf4ng tin \u1edf \u0111\xe2u?","termsContactInstructions":"N\u1ebfu c\xf3 c\xe2u h\u1ecfi v\u1ec1 \u0110i\u1ec1u kho\u1ea3n v\xe0 \u0110i\u1ec1u ki\u1ec7n, h\xe3y li\xean h\u1ec7:","cookieNoticeTitle":"Th\xf4ng b\xe1o Cookie","lastUpdatedCookies":"C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i: Ch\u1ee7 nh\u1eadt 7 Th\xe1ng 1, 2023","cookieIntroduction":"Th\xf4ng b\xe1o Cookie n\xe0y gi\u1ea3i th\xedch c\xe1ch XSubscribe LLC s\u1eed d\u1ee5ng cookie v\xe0 c\xf4ng ngh\u1ec7 t\u01b0\u01a1ng t\u1ef1.","whatAreCookies":"Cookie l\xe0 g\xec?","cookieDefinition":"Cookie l\xe0 c\xe1c file d\u1eef li\u1ec7u nh\u1ecf \u0111\u01b0\u1ee3c l\u01b0u tr\xean thi\u1ebft b\u1ecb khi b\u1ea1n truy c\u1eadp website.","thirdPartyCookies":"Cookie do b\xean kh\xe1c ngo\xe0i XSubscribe \u0111\u1eb7t \u0111\u01b0\u1ee3c g\u1ecdi l\xe0 cookie b\xean th\u1ee9 ba.","whyUseCookies":"T\u1ea1i sao ch\xfang t\xf4i d\xf9ng cookie?","cookieUsage":"Ch\xfang t\xf4i s\u1eed d\u1ee5ng cookie c\u1ee7a b\xean th\u1ee9 nh\u1ea5t v\xe0 b\xean th\u1ee9 ba cho nhi\u1ec1u m\u1ee5c \u0111\xedch.","cookieContactInstructions":"N\u1ebfu c\xf3 c\xe2u h\u1ecfi v\u1ec1 vi\u1ec7c s\u1eed d\u1ee5ng cookie, h\xe3y li\xean h\u1ec7:","contactSpiritTitle":"Li\xean h\u1ec7 Spirit","contactInstructions":"Xin ch\xe0o, b\u1ea1n c\xf3 th\u1ec3 li\xean h\u1ec7 t\xf4i qua c\xe1c c\xe1ch d\u01b0\u1edbi \u0111\xe2y:","searchTitle":"T\xccM KI\u1ebeM","searchPlaceholder":"T\xccM STREAMER\u2026","searchResults":"K\u1ebeT QU\u1ea2","suggestedStreamers":"STREAMER G\u1ee2I \xdd","profileTitle":"H\u1ed3 s\u01a1","onlyJpgPngAllowed":"Ch\u1ec9 ch\u1ea5p nh\u1eadn JPG/PNG","maxFileSize2MB":"K\xedch th\u01b0\u1edbc t\u1ed1i \u0111a 2MB","selectAvatar":"CH\u1eccN AVATAR","updating":"\u0110ANG C\u1eacP NH\u1eacT...","demoSubscriptionAlert":"\u0110\xe2y l\xe0 b\u1ea3n Demo. B\u1ea1n kh\xf4ng th\u1ec3 \u0111\u0103ng k\xfd nh\xe0 s\xe1ng t\u1ea1o n\xe0y.","subscribe":"\u
20110\u0103ng k\xfd","perMonth":"/th\xe1ng","subscribed":"\u2713 \u0110\xe3 \u0111\u0103ng k\xfd","successfullySubscribedTo":"\u0110\xe3 \u0111\u0103ng k\xfd th\xe0nh c\xf4ng","weLockedIn":"\u0110\xe3 xong.","createYourXSubscribe":"T\u1ea1o XSubscribe c\u1ee7a b\u1ea1n","pageNotFoundHeading":"Trang b\u1ea1n t\xecm kh\xf4ng t\u1ed3n t\u1ea1i.","pageNotFoundMessage":"Mu\u1ed1n \u0111\xe2y l\xe0 t\xean ng\u01b0\u1eddi d\xf9ng c\u1ee7a b\u1ea1n?","createXSubscribeNow":"T\u1ea1o XSubscribe ngay.","planStarter":"Starter","planPro":"Pro","planPremium":"Premium","superchatsHeader":"SuperChats -","loadingSuperChats":"\u0110ang t\u1ea3i SuperChats...","recentSuperchats":"Tin nh\u1eafn v\xe0 tip SuperChat g\u1ea7n \u0111\xe2y","noSuperchatsPart1":"Ch\u01b0a c\xf3 SuperChat cho","noSuperchatsPart2":"H\xe3y l\xe0 ng\u01b0\u1eddi \u0111\u1ea7u ti\xean g\u1eedi SuperChat!","loadingSuperChatsError":"T\u1ea3i SuperChats th\u1ea5t b\u1ea1i","addComment":"TH\xcaM B\xccNH LU\u1eacN\u2026","signInToComment":"\u0110\u0102NG NH\u1eacP \u0110\u1ec2 B\xccNH LU\u1eacN","send":"G\u1eedi","signIn":"\u0110\u0103ng nh\u1eadp","beTheFirstToComment":"H\xc3Y L\xc0 NG\u01af\u1edcI \u0110\u1ea6U TI\xcaN B\xccNH LU\u1eacN.","writeReply":"Vi\u1ebft tr\u1ea3 l\u1eddi\u2026","reply":"Tr\u1ea3 l\u1eddi","unlike":"B\u1ecf th\xedch","like":"Th\xedch","comments":"b\xecnh lu\u1eadn","shareThisStream":"CHIA S\u1eba STREAM N\xc0Y","goTo":"\u0110i \u0111\u1ebfn","twitterX":"Twitter / X","whatsApp":"WhatsApp","telegram":"Telegram","facebook":"Facebook","reddit":"Reddit","messages":"Tin nh\u1eafn","emailShare":"Email","copyLink":"Sao ch\xe9p li\xean k\u1ebft","more":"Th\xeam","deleting":"\u0110ang x\xf3a\u2026","anon":"\u1ea8n danh","noCommentsYet":"Ch\u01b0a c\xf3 b\xecnh lu\u1eadn.","sendSuperChat":"G\u1eedi SuperChat","amountDollar":"S\u1ed1 ti\u1ec1n ($)","messageMaxChars":"Tin nh\u1eafn (t\u1ed1i \u0111a 200 k\xfd t\u1ef1)","typeSuperChatMessage":"Nh\u1eadp tin nh\u1eafn SuperChat...","processingPayment":"\u0110ang x\u1eed l\xfd...","sendAmount":"G\u1eedi SuperChat ${{amount}}","pleaseLogInToSuperChat":"\u0110\u0103ng nh\u1eadp \u0111\u1ec3 g\u1eedi SuperChat","pleaseEnterMessage":"Vui l\xf2ng nh\u1eadp tin nh\u1eafn","amountMustBeAtLeast1":"S\u1ed1 ti\u1ec1n \xedt nh\u1ea5t $1","failedToCreateCheckout":"T\u1ea1o phi\xean thanh to\xe1n th\u1ea5t b\u1ea1i","highlightedFor":"N\u1ed5i b\u1eadt cho"}'),notifications:JSON.parse('{"notifications":"Th\xf4ng b\xe1o","viaEmail":"QUA EMAIL","receiveNotificationThroughEmail":"NH\u1eacN TH\xd4NG B\xc1O QUA EMAIL","all":"T\u1ea5t c\u1ea3","unread":"Ch\u01b0a \u0111\u1ecdc","noUnreadNotifications":"Kh\xf4ng c\xf3 th\xf4ng b\xe1o ch\u01b0a \u0111\u1ecdc.","noNotificationsYet":"Ch\u01b0a c\xf3 th\xf4ng b\xe1o.","couldntLoadNotifications":"Kh\xf4ng th\u1ec3 t\u1ea3i th\xf4ng b\xe1o t\u1eeb server","someone":"Ai \u0111\xf3","isLiveNow":"\u0111ang ph\xe1t tr\u1ef1c ti\u1ebfp","postedReplay":"\u0111\xe3 \u0111\u0103ng b\u1ea3n ph\xe1t l\u1ea1i","repliedToComment":"\u0111\xe3 tr\u1ea3 l\u1eddi b\xecnh lu\u1eadn c\u1ee7a b\u1ea1n","likedYourComment":"\u0111\xe3 th\xedch b\xecnh lu\u1eadn c\u1ee7a b\u1ea1n","activity":"ho\u1ea1t \u0111\u1ed9ng","secondsAgo":"{{count}}s","minutesAgo":"{{count}}ph","hoursAgo":"{{count}}g","daysAgo":"{{count}}ng"}')}},Je=[{code:"en",label:"English"},{code:"zh-TW",label:"\u4e2d\u6587\u6b63\u9ad4"},{code:"zh-CN",label:"\u4e2d\u6587\u7b80\u4f53"},{code:"ja",label:"\u65e5\u672c\u8a9e"},{code:"ko",label:"\ud55c\uad6d\uc5b4"},{code:"de",label:"Deutsch"},{code:"es",label:"Espa\xf1ol"},{code:"fr",label:"Fran\xe7ais"},{code:"id",label:"Indonesia"},{code:"it",label:"Italiano"},{code:"ru",label:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{code:"vi",label:"Ti\u1ebfng Vi\u1ec7t"}];Z.use(Ye).use(me).init({resources:Xe,fallbackLng:"en",defaultNS:"common",ns:["common","auth","onboarding","clips","schedule","settings","upgrade","pages","notifications"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],lookupLocalStorage:"clipbait_lang",caches:["localStorage"]}}),Z.on("languageChanged",(e=>{document.documentElement.setAttribute("lang",e)}));var Qe,Ze=n(7950),$e=n.t(Ze,2);function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Qe||(Qe={}));const tt="popstate";function nt(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function rt(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(Ps){}}}function it(e,t){return{usr:e.state,key:e.key,idx:t}}function at(e,t,n,r){return void 0===n&&(n=null),et({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?ot(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function st(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function ot(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lt(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Qe.Pop,l=null,c=d();function d(){return(s.state||{idx:null}).idx}function u(){o=Qe.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:o,location:p.location,delta:t})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:st(e);return nt(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(et({},s.state,{idx:c}),""));let p={get action(){return o},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(tt,u),l=e,()=>{i.removeEventListener(tt,u),l=null}},createHref:e=>
2t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){o=Qe.Push;let r=at(p.location,e,t);n&&n(r,e),c=d()+1;let u=it(r,c),h=p.createHref(r);try{s.pushState(u,"",h)}catch(m){if(m instanceof DOMException&&"DataCloneError"===m.name)throw m;i.location.assign(h)}a&&l&&l({action:o,location:p.location,delta:1})},replace:function(e,t){o=Qe.Replace;let r=at(p.location,e,t);n&&n(r,e),c=d();let i=it(r,c),u=p.createHref(r);s.replaceState(i,"",u),a&&l&&l({action:o,location:p.location,delta:0})},go:e=>s.go(e)};return p}var ct;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ct||(ct={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function dt(e,t,n){void 0===n&&(n="/");let r=Tt(("string"===typeof t?ot(t):t).pathname||"/",n);if(null==r)return null;let i=ut(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s)a=St(i[s],wt(r));return a}function ut(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(nt(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let o=At([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(nt(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),ut(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:xt(o,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ht(e.path))i(e,t,r);else i(e,t)})),t}function ht(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let s=ht(r.join("/")),o=[];return o.push(...s.map((e=>""===e?a:[a,e].join("/")))),i&&o.push(...s),o.map((t=>e.startsWith("/")&&""===t?"/":t))}const pt=/^:\w+$/,mt=3,ft=2,gt=1,vt=10,bt=-2,yt=e=>"*"===e;function xt(e,t){let n=e.split("/"),r=n.length;return n.some(yt)&&(r+=bt),t&&(r+=ft),n.filter((e=>!yt(e))).reduce(((e,t)=>e+(pt.test(t)?mt:""===t?gt:vt)),r)}function St(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s<n.length;++s){let e=n[s],o=s===n.length-1,l="/"===i?t:t.slice(i.length)||"/",c=kt({path:e.relativePath,caseSensitive:e.caseSensitive,end:o},l);if(!c)return null;
2Object.assign(r,c.params);let d=e.route;a.push({params:r,pathname:At([i,c.pathname]),pathnameBase:Nt(At([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=At([i,c.pathnameBase]))}return a}function kt(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);rt("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=o[n]||"";s=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[n];return e[r]=i&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return rt(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{});return{params:l,pathname:a,pathnameBase:s,pattern:e}}function wt(e){try{return decodeURI(e)}catch(t){return rt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Tt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Ct(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Et(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function jt(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=ot(e):(i=et({},e),nt(!i.pathname||!i.pathname.includes("?"),Ct("?","pathname","search",i)),nt(!i.pathname||!i.pathname.includes("#"),Ct("#","pathname","hash",i)),nt(!i.search||!i.search.includes("#"),Ct("#","search","hash",i)));let a,s=""===e||""===i.pathname,o=s?"/":i.pathname;if(null==o)a=n;else if(r){let e=t[t.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e.pop();i.pathname=t.join("/")}a="/"+e.join("/")}else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?ot(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:Pt(r),hash:Rt(i)}}(i,a),c=o&&"/"!==o&&o.endsWith("/"),d=(s||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const At=e=>e.join("/").replace(/\/\/+/g,"/"),Nt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Rt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Lt(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const It=["post","put","patch","delete"],Dt=(new Set(It),["get",...It]);new Set(Dt),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}const Mt=$.createContext(null);const _t=$.createContext(null);const Ft=$.createContext(null);const Bt=$.createContext(null);const Ut=$.createContext({outlet:null,matches:[],isDataRoute:!1});
2const zt=$.createContext(null);function Gt(){return null!=$.useContext(Bt)}function Wt(){return Gt()||nt(!1),$.useContext(Bt).location}function Ht(e){$.useContext(Ft).static||$.useLayoutEffect(e)}function Vt(){let{isDataRoute:e}=$.useContext(Ut);return e?function(){let{router:e}=rn(tn.UseNavigateStable),t=sn(nn.UseNavigateStable),n=$.useRef(!1);Ht((()=>{n.current=!0}));let r=$.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,Ot({fromRouteId:t},i)))}),[e,t]);return r}():function(){Gt()||nt(!1);let e=$.useContext(Mt),{basename:t,navigator:n}=$.useContext(Ft),{matches:r}=$.useContext(Ut),{pathname:i}=Wt(),a=JSON.stringify(Et(r).map((e=>e.pathnameBase))),s=$.useRef(!1);Ht((()=>{s.current=!0}));let o=$.useCallback((function(r,o){if(void 0===o&&(o={}),!s.current)return;if("number"===typeof r)return void n.go(r);let l=jt(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:At([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[t,n,a,i,e]);return o}()}const Kt=$.createContext(null);function qt(){let{matches:e}=$.useContext(Ut),t=e[e.length-1];return t?t.params:{}}function Yt(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=$.useContext(Ut),{pathname:i}=Wt(),a=JSON.stringify(Et(r).map((e=>e.pathnameBase)));return $.useMemo((()=>jt(e,JSON.parse(a),i,"path"===n)),[e,a,i,n])}function Xt(e,t,n){Gt()||nt(!1);let{navigator:r}=$.useContext(Ft),{matches:i}=$.useContext(Ut),a=i[i.length-1],s=a?a.params:{},o=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let l,c=Wt();if(t){var d;let e="string"===typeof t?ot(t):t;"/"===o||(null==(d=e.pathname)?void 0:d.startsWith(o))||nt(!1),l=e}else l=c;let u=l.pathname||"/",h=dt(e,{pathname:"/"===o?u:u.slice(o.length)||"/"});let p=en(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:At([o,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?o:At([o,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n);return t&&p?$.createElement(Bt.Provider,{value:{location:Ot({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Qe.Pop}},p):p}function Jt(){let e=function(){var e;let t=$.useContext(zt),n=an(nn.UseRouteError),r=sn(nn.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Lt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return $.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),n?$.createElement("pre",{style:i},n):null,null)}const Qt=$.createElement(Jt,null);class Zt extends $.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?$.createElement(Ut.Provider,{value:this.props.routeContext},$.createElement(zt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $t(e){let{routeContext:t,match:n,children:r}=e,i=$.useContext(Mt);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),$.createElement(Ut.Provider,{value:t},r)}function en(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let a=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||nt(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,r,i)=>{let o=r.route.id?null==s?void 0:s[r.route.id]:null,l=null;n&&(l=r.route.errorElement||Qt);let c=t.concat(a.slice(0,i+1)),d=()=>{let t;return t=o?l:r.route.Component?$.createElement(r.route.Component,null):r.route.element?r.route.element:e,$.createElement($t,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?$.createElement(Zt,{location:n.location,revalidation:n.revalidation,component:l,error:o,children:d(),routeC
2ontext:{outlet:null,matches:c,isDataRoute:!0}}):d()}),null)}var tn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tn||{}),nn=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(nn||{});function rn(e){let t=$.useContext(Mt);return t||nt(!1),t}function an(e){let t=$.useContext(_t);return t||nt(!1),t}function sn(e){let t=function(){let e=$.useContext(Ut);return e||nt(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}ee.startTransition;function on(e){let{to:t,replace:n,state:r,relative:i}=e;Gt()||nt(!1);let{matches:a}=$.useContext(Ut),{pathname:s}=Wt(),o=Vt(),l=jt(t,Et(a).map((e=>e.pathnameBase)),s,"path"===i),c=JSON.stringify(l);return $.useEffect((()=>o(JSON.parse(c),{replace:n,state:r,relative:i})),[o,c,i,n,r]),null}function ln(e){return function(e){let t=$.useContext(Ut).outlet;return t?$.createElement(Kt.Provider,{value:e},t):t}(e.context)}function cn(e){nt(!1)}function dn(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Qe.Pop,navigator:a,static:s=!1}=e;Gt()&&nt(!1);let o=t.replace(/^\/*/,"/"),l=$.useMemo((()=>({basename:o,navigator:a,static:s})),[o,a,s]);"string"===typeof r&&(r=ot(r));let{pathname:c="/",search:d="",hash:u="",state:h=null,key:p="default"}=r,m=$.useMemo((()=>{let e=Tt(c,o);return null==e?null:{location:{pathname:e,search:d,hash:u,state:h,key:p},navigationType:i}}),[o,c,d,u,h,p,i]);return null==m?null:$.createElement(Ft.Provider,{value:l},$.createElement(Bt.Provider,{children:n,value:m}))}function un(e){let{children:t,location:n}=e;return Xt(hn(t),n)}new Promise((()=>{}));$.Component;function hn(e,t){void 0===t&&(t=[]);let n=[];return $.Children.forEach(e,((e,r)=>{if(!$.isValidElement(e))return;let i=[...t,r];if(e.type===$.Fragment)return void n.push.apply(n,hn(e.props.children,i));e.type!==cn&&nt(!1),e.props.index&&e.props.children&&nt(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=hn(e.props.children,i)),n.push(a)})),n}function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function mn(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function fn(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const gn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],vn=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];const bn=$.createContext({isTransitioning:!1});new Map;const yn=ee.startTransition;$e.flushSync;function xn(e){let{basename:t,children:n,future:r,window:i}=e,a=$.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),lt((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return at("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:st(t)}),null,e)}({window:i,v5Compat:!0}));let s=a.current,[o,l]=$.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=$.useCallback((e=>{c&&yn?yn((()=>l(e))):l(e)}),[l,c]);return $.useLayoutEffect((()=>
2s.listen(d)),[s,d]),$.createElement(dn,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s})}const Sn="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,kn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wn=$.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:s,state:o,target:l,to:c,preventScrollReset:d,unstable_viewTransition:u}=e,h=mn(e,gn),{basename:p}=$.useContext(Ft),m=!1;if("string"===typeof c&&kn.test(c)&&(n=c,Sn))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Tt(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:m=!0}catch(Ps){}let f=function(e,t){let{relative:n}=void 0===t?{}:t;Gt()||nt(!1);let{basename:r,navigator:i}=$.useContext(Ft),{hash:a,pathname:s,search:o}=Yt(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:At([r,s])),i.createHref({pathname:l,search:o,hash:a})}(c,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o}=void 0===t?{}:t,l=Vt(),c=Wt(),d=Yt(e,{relative:s});return $.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:st(c)===st(d);l(e,{replace:n,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:o})}}),[c,l,d,r,i,n,e,a,s,o])}(c,{replace:s,state:o,target:l,preventScrollReset:d,relative:i,unstable_viewTransition:u});return $.createElement("a",pn({},h,{href:n||f,onClick:m||a?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))}));const Tn=$.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:a=!1,style:s,to:o,unstable_viewTransition:l,children:c}=e,d=mn(e,vn),u=Yt(o,{relative:d.relative}),h=Wt(),p=$.useContext(_t),{navigator:m}=$.useContext(Ft),f=null!=p&&function(e,t){void 0===t&&(t={});let n=$.useContext(bn);null==n&&nt(!1);let{basename:r}=jn(Cn.useViewTransitionState),i=Yt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Tt(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Tt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=kt(i.pathname,s)||null!=kt(i.pathname,a)}(u)&&!0===l,g=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=h.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase());const y="/"!==g&&g.endsWith("/")?g.length-1:g.length;let x,S=v===g||!a&&v.startsWith(g)&&"/"===v.charAt(y),k=null!=b&&(b===g||!a&&b.startsWith(g)&&"/"===b.charAt(g.length)),w={isActive:S,isPending:k,isTransitioning:f},T=S?n:void 0;x="function"===typeof i?i(w):[i,S?"active":null,k?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let C="function"===typeof s?s(w):s;return $.createElement(wn,pn({},d,{"aria-current":T,className:x,ref:t,style:C,to:o,unstable_viewTransition:l}),"function"===typeof c?c(w):c)}));var Cn,En;function jn(e){let t=$.useContext(Mt);return t||nt(!1),t}function An(e){let t=$.useRef(fn(e)),n=$.useRef(!1),r=Wt(),i=$.useMemo((()=>function(e,t){let n=fn(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))}
2)),n}(r.search,n.current?null:t.current)),[r.search]),a=Vt(),s=$.useCallback(((e,t)=>{const r=fn("function"===typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cn||(Cn={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(En||(En={}));function Nn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pn}=Object.prototype,{getPrototypeOf:Rn}=Object,{iterator:Ln,toStringTag:In}=Symbol,Dn=(e=>t=>{const n=Pn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),On=e=>(e=e.toLowerCase(),t=>Dn(t)===e),Mn=e=>t=>typeof t===e,{isArray:_n}=Array,Fn=Mn("undefined");const Bn=On("ArrayBuffer");const Un=Mn("string"),zn=Mn("function"),Gn=Mn("number"),Wn=e=>null!==e&&"object"===typeof e,Hn=e=>{if("object"!==Dn(e))return!1;const t=Rn(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(In in e)&&!(Ln in e)},Vn=On("Date"),Kn=On("File"),qn=On("Blob"),Yn=On("FileList"),Xn=On("URLSearchParams"),[Jn,Qn,Zn,$n]=["ReadableStream","Request","Response","Headers"].map(On);function er(e,t){let n,r,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),_n(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=i?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let s;for(n=0;n<a;n++)s=r[n],t.call(null,e[s],s,e)}}function tr(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const nr="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,rr=e=>!Fn(e)&&e!==nr;const ir=(ar="undefined"!==typeof Uint8Array&&Rn(Uint8Array),e=>ar&&e instanceof ar);var ar;const sr=On("HTMLFormElement"),or=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),lr=On("RegExp"),cr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};er(n,((n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)})),Object.defineProperties(e,r)};const dr=On("AsyncFunction"),ur=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],nr.addEventListener("message",(e=>{let{source:t,data:i}=e;t===nr&&i===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),nr.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,zn(nr.postMessage)),hr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(nr):"undefined"!==typeof process&&process.nextTick||ur,pr={isArray:_n,isArrayBuffer:Bn,isBuffer:function(e){return null!==e&&!Fn(e)&&null!==e.constructor&&!Fn(e.constructor)&&zn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||zn(e.append)&&("formdata"===(t=Dn(e))||"object"===t&&zn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bn(e.buffer),t},isString:Un,isNumber:Gn,isBoolean:e=>!0===e||!1===e,isObject:Wn,isPlainObject:Hn,isReadableStream:Jn,isRequest:Qn,isResponse:Zn,isHeaders:$n,isUndefined:Fn,isDate:Vn,isFile:Kn,isBlob:qn,isRegExp:lr,isFunction:zn,isStream:e=>Wn(e)&&zn(e.pipe),isURLSearchParams:Xn,isTypedArray:ir,isFileList:Yn,forEach:er,merge:function e(){const{caseless:t}=rr(this)&&this||{},n={},r=(r,i)=>{const a=t&&tr(n,i)||i;Hn(n[a])&&Hn(r)?n[a]=e(n[a],r):Hn(r)?n[a]=e({},r):_n(r)?n[a]=r.slice():n[a]=r};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&er(arguments[i],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return er(t,((t,r)=>{n&&zn(t)?e[r]=Nn(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],r&&!r(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&Rn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Dn,kindOfTest:On,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_n(e))return e;let t=e.length;if(!Gn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n}
vendor: 4,287 bytes, line 2
2,forEachEntry:(e,t)=>{const n=(e&&e[Ln]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:sr,hasOwnProperty:or,hasOwnProp:or,reduceDescriptors:cr,freezeMethods:e=>{cr(e,((t,n)=>{if(zn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];zn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return _n(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tr,global:nr,isContextDefined:rr,isSpecCompliantForm:function(e){return!!(e&&zn(e.append)&&"FormData"===e[In]&&e[Ln])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Wn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=_n(e)?[]:{};return er(e,((e,t)=>{const a=n(e,r+1);!Fn(a)&&(i[t]=a)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:dr,isThenable:e=>e&&(Wn(e)||zn(e))&&zn(e.then)&&zn(e.catch),setImmediate:ur,asap:hr,isIterable:e=>null!=e&&zn(e[Ln])};function mr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}pr.inherits(mr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pr.toJSONObject(this.config),code:this.code,status:this.status}}});const fr=mr.prototype,gr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{gr[e]={value:e}})),Object.defineProperties(mr,gr),Object.defineProperty(fr,"isAxiosError",{value:!0}),mr.from=(e,t,n,r,i,a)=>{const s=Object.create(fr);return pr.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),mr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const vr=mr;function br(e){return pr.isPlainObject(e)||pr.isArray(e)}function yr(e){return pr.endsWith(e,"[]")?e.slice(0,-2):e}function xr(e,t,n){return e?e.concat(t).map((function(e,t){return e=yr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Sr=pr.toFlatObject(pr,{},null,(function(e){return/^is[A-Z]/.test(e)}));const kr=function(e,t,n){if(!pr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=pr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!pr.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,o=(n.Blob||"undefined"!==typeof Blob&&Blob)&&pr.isSpecCompliantForm(t);if(!pr.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(pr.isDate(e))return e.toISOString();if(!o&&pr.isBlob(e))throw new vr("Blob is not supported. Use a Buffer instead.");return pr.isArrayBuffer(e)||pr.isTypedArray(e)?o&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let o=e;if(e&&!i&&"object"===typeof e)if(pr.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pr.isArray(e)&&function(e){return pr.isArray(e)&&!e.some(br)}(e)||(pr.isFileList(e)||pr.endsWith(n,"[]"))&&(o=pr.toArray(e)))return n=yr(n),o.forEach((function(e,r){!pr.isUndefined(e)&&null!==e&&t.append(!0===s?xr([n],r,a):null===s?n:n+"[]",l(e))})),!1;return!!br(e)||(t.append(xr(i,n,a),l(e)),!1)}const d=[],u=Object.assign(Sr,{defaultVisitor:c,convertValue:l,isVisitable:br});if(!pr.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!pr.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),pr.forEach(n,(function(n,a){!0===(!(pr.isUndefined(n)||null===n)&&i.call(t,n,pr.isString(a)?a.trim():a,r,u))&&e(n,r?r.concat(a):[a]
vendor: 11,377 bytes, line 2
2)})),d.pop()}}(e),t};function wr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Tr(e,t){this._pairs=[],e&&kr(e,this,t)}const Cr=Tr.prototype;Cr.append=function(e,t){this._pairs.push([e,t])},Cr.toString=function(e){const t=e?function(t){return e.call(this,t,wr)}:wr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Er=Tr;function jr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ar(e,t,n){if(!t)return e;const r=n&&n.encode||jr;pr.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(a=i?i(t,n):pr.isURLSearchParams(t)?t.toString():new Er(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Nr=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pr.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Pr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rr={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Er,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Lr="undefined"!==typeof window&&"undefined"!==typeof document,Ir="object"===typeof navigator&&navigator||void 0,Dr=Lr&&(!Ir||["ReactNative","NativeScript","NS"].indexOf(Ir.product)<0),Or="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Mr=Lr&&window.location.href||"http://localhost",_r=o(o({},e),Rr);const Fr=function(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),o=i>=e.length;if(a=!a&&pr.isArray(r)?r.length:a,o)return pr.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s;r[a]&&pr.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&pr.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!s}if(pr.isFormData(e)&&pr.isFunction(e.entries)){const n={};return pr.forEachEntry(e,((e,r)=>{t(function(e){return pr.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Br={transitional:Pr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=pr.isObject(e);i&&pr.isHTMLForm(e)&&(e=new FormData(e));if(pr.isFormData(e))return r?JSON.stringify(Fr(e)):e;if(pr.isArrayBuffer(e)||pr.isBuffer(e)||pr.isStream(e)||pr.isFile(e)||pr.isBlob(e)||pr.isReadableStream(e))return e;if(pr.isArrayBufferView(e))return e.buffer;if(pr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return kr(e,new _r.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return _r.isNode&&pr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=pr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return kr(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(pr.isString(e))try{return(t||JSON.parse)(e),pr.trim(e)}catch(Ps){if("SyntaxError"!==Ps.name)throw Ps}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Br.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(pr.isResponse(e)||pr.isReadableStream(e))return e;if(e&&pr.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ps){if(n){if("SyntaxError"===Ps.name)throw vr.from(Ps,vr.ERR_BAD_RESPONSE,this,null,this.response);throw Ps}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_r.classes.FormData,Blob:_r.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pr.forEach(["delete","get","head","post","put","patch"],(e=>{Br.headers[e]={}}));const Ur=Br,zr=pr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gr=Symbol("internals");function Wr(e){return e&&String(e).trim().toLowerCase()}function Hr(e){return!1===e||null==e?e:pr.isArray(e)?e.map(Hr):String(e)}function Vr(e,t,n,r,i){return pr.isFunction(r)?r.call(this,t,n):(i&&(t=n),pr.isString(t)?pr.isString(r)?-1!==t.indexOf(r):pr.isRegExp(r)?r.test(t):void 0:void 0)}class Kr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Wr(t);if(!i)throw new Error("header name must be a non-empty string");const a=pr.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Hr(e))}const a=(e,t)=>pr.forEach(e,((e,n)=>i(e,n,t)));if(pr.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(pr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&zr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(pr.isObject(e)&&pr.isIterable(e)){let n,r,i={};for(const t of e){if(!pr.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?pr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Wr(e)){const n=pr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(pr.isFunction(t))return t.call(this,e,n);if(pr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Wr(e)){const n=pr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Vr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Wr(e)){const i=pr.findKey(n,e);!i||t&&!Vr(0,n[i],i,t)||(delete n[i],r=!0)}}return pr.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Vr(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return pr.forEach(this,((r,i)=>{const a=pr.findKey(n,i);if(a)return t[a]=Hr(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Hr(r),n[s]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return pr.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&pr.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Gr]=this[Gr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Wr(e);t[r]||(!function(e,t){const n=pr.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return pr.isArray(e)?e.forEach(r):r(e),this}}Kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pr.reduceDescriptors(Kr.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),pr.freezeMethods(Kr);const qr=Kr;function Yr(e,t){const n=this||Ur,r=t||n,i=qr.from(r.headers);let a=r.data;return pr.forEach(e,(function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function Xr(e){return!(!e||!e.__CANCEL__)}function Jr(e,t,n){vr.call(this,null==e?"canceled":e,vr.ERR_CANCELED,t,n),this.name="CanceledError"}pr.inherits(Jr,vr,{__CANCEL__:!0});const Qr=Jr;function Zr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new vr("Request failed with status code "+n.status,[vr.ERR_BAD_REQUEST,vr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const $r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=r[s];i||(i=l),n[a]=o,r[a]=l;let d=s,u=0;for(;d!==a;)u+=n[d++],d%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-i<t)return;const h=c&&l-c;return h?Math.round(1e3*u/h):void 0}};const ei=function(e,t){let n,r,i=0,a=1e3/t;const s=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();i=a,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-i;for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];t>=a?s(l,e):(n=l,r||(r=setTimeout((()=>{r=null,s(n)}),a-t)))},()=>n&&s(n)]},ti=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const i=$r(50,250);return ei((n=>{const a=n.loaded,s=n.lengthComputable?n.total:void 0,o=a-r,l=i(o);r=a;e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},ni=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ri=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pr.asap((()=>e(...n)))},ii=_r.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_r.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_r.origin),_r.navigator&&/(msie|trident)/i.test(_r.navigator.userAgent)):()=>!0,ai=_r.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];pr.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),pr.isString(r)&&s.push("path="+r),pr.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function si(e,t,n){let r=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const oi=e=>e instanceof qr?o({},e):e;
vendor: 4,841 bytes, line 2
2function li(e,t){t=t||{};const n={};function r(e,t,n,r){return pr.isPlainObject(e)&&pr.isPlainObject(t)?pr.merge.call({caseless:r},e,t):pr.isPlainObject(t)?pr.merge({},t):pr.isArray(t)?t.slice():t}function i(e,t,n,i){return pr.isUndefined(t)?pr.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!pr.isUndefined(t))return r(void 0,t)}function s(e,t){return pr.isUndefined(t)?pr.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function o(n,i,a){return a in t?r(n,i):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>i(oi(e),oi(t),0,!0)};return pr.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=l[r]||i,s=a(e[r],t[r],r);pr.isUndefined(s)&&a!==o||(n[r]=s)})),n}const ci=e=>{const t=li({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:s,headers:o,auth:l}=t;if(t.headers=o=qr.from(o),t.url=Ar(si(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),pr.isFormData(r))if(_r.hasStandardBrowserEnv||_r.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(n=o.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}if(_r.hasStandardBrowserEnv&&(i&&pr.isFunction(i)&&(i=i(t)),i||!1!==i&&ii(t.url))){const e=a&&s&&ai.read(s);e&&o.set(a,e)}return t},di="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=ci(e);let i=r.data;const a=qr.from(r.headers).normalize();let s,o,l,c,d,{responseType:u,onUploadProgress:h,onDownloadProgress:p}=r;function m(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function g(){if(!f)return;const r=qr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Zr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f}),f=null}f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new vr("Request aborted",vr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new vr("Network Error",vr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Pr;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new vr(t,i.clarifyTimeoutError?vr.ETIMEDOUT:vr.ECONNABORTED,e,f)),f=null},void 0===i&&a.setContentType(null),"setRequestHeader"in f&&pr.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),pr.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),u&&"json"!==u&&(f.responseType=r.responseType),p&&([l,d]=ti(p,!0),f.addEventListener("progress",l)),h&&f.upload&&([o,c]=ti(h),f.upload.addEventListener("progress",o),f.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=t=>{f&&(n(!t||t.type?new Qr(null,e,f):t),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===_r.protocols.indexOf(v)?n(new vr("Unsupported protocol "+v+":",vr.ERR_BAD_REQUEST,e)):f.send(i||null)}))},ui=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof vr?t:new Qr(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new vr("timeout ".concat(t," of ms exceeded"),vr.ETIMEDOUT))}),t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:o}=r;return o.unsubscribe=()=>pr.asap(s),o}};function hi(e,t){this.v=e,this.k=t}function pi(e){return function(){return new mi(e.apply(this,arguments))}}function mi(e){var t,n;function r(t,n){try{var a=e[t](n),s=a.value,o=s instanceof hi;Promise.resolve(o?s.v:s).then((function(n){if(o){var l="return"===t?"return":"next";if(!s.k||n.done)return r(l,n);n=e[l](n).value}
vendor: 4,163 bytes, line 2
2i(a.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(a,s){var o={key:e,arg:i,resolve:a,reject:s,next:null};n?n=n.next=o:(t=n=o,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function fi(e){return new hi(e,0)}function gi(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise((function(n){n(e[t](r))})),{done:!1,value:new hi(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function vi(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new bi(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function bi(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return bi=function(e){this.s=e,this.n=e.next},bi.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new bi(e)}mi.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},mi.prototype.next=function(e){return this._invoke("next",e)},mi.prototype.throw=function(e){return this._invoke("throw",e)},mi.prototype.return=function(e){return this._invoke("return",e)};const yi=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},xi=function(){var e=pi((function*(e,t){var n,r=!1,i=!1;try{for(var a,s=vi(Si(e));r=!(a=yield fi(s.next())).done;r=!1){const e=a.value;yield*gi(vi(yi(e,t)))}}catch(o){i=!0,n=o}finally{try{r&&null!=s.return&&(yield fi(s.return()))}finally{if(i)throw n}}}));return function(t,n){return e.apply(this,arguments)}}(),Si=function(){var e=pi((function*(e){if(e[Symbol.asyncIterator])return void(yield*gi(vi(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield fi(t.read());if(e)break;yield n}}finally{yield fi(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),ki=(e,t,n,r)=>{const i=xi(e,t);let a,s=0,o=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return o(),void e.close();let a=r.byteLength;if(n){let e=s+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw o(t),t}},cancel:e=>(o(e),i.return())},{highWaterMark:2})},wi="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ti=wi&&"function"===typeof ReadableStream,Ci=wi&&("function"===typeof TextEncoder?(Ei=new TextEncoder,e=>Ei.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ei;const ji=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(Ps){return!1}},Ai=Ti&&ji((()=>{let e=!1;const t=new Request(_r.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ni=Ti&&ji((()=>pr.isReadableStream(new Response("").body))),Pi={stream:Ni&&(e=>e.body)};var Ri;wi&&(Ri=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Pi[e]&&(Pi[e]=pr.isFunction(Ri[e])?t=>t[e]():(t,n)=>{throw new vr("Response type '".concat(e,"' is not supported"),vr.ERR_NOT_SUPPORT,n)})})));const Li=async(e,t)=>{const n=pr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(pr.isBlob(e))return e.size;
vendor: 4,287 bytes, line 2
2if(pr.isSpecCompliantForm(e)){const t=new Request(_r.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return pr.isArrayBufferView(e)||pr.isArrayBuffer(e)?e.byteLength:(pr.isURLSearchParams(e)&&(e+=""),pr.isString(e)?(await Ci(e)).byteLength:void 0)})(t):n},Ii=wi&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:d,headers:u,withCredentials:h="same-origin",fetchOptions:p}=ci(e);d=d?(d+"").toLowerCase():"text";let m,f=ui([i,a&&a.toAbortSignal()],s);const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let v;try{if(c&&Ai&&"get"!==n&&"head"!==n&&0!==(v=await Li(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(pr.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ni(v,ti(ri(c)));r=ki(n.body,65536,e,t)}}pr.isString(h)||(h=h?"include":"omit");const i="credentials"in Request.prototype;m=new Request(t,o(o({},p),{},{signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?h:void 0}));let a=await fetch(m);const s=Ni&&("stream"===d||"response"===d);if(Ni&&(l||s&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=pr.toFiniteNumber(a.headers.get("content-length")),[n,r]=l&&ni(t,ti(ri(l),!0))||[];a=new Response(ki(a.body,65536,n,(()=>{r&&r(),g&&g()})),e)}d=d||"text";let b=await Pi[pr.findKey(Pi,d)||"text"](a,e);return!s&&g&&g(),await new Promise(((t,n)=>{Zr(t,n,{data:b,headers:qr.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:m})}))}catch(b){if(g&&g(),b&&"TypeError"===b.name&&/Load failed|fetch/i.test(b.message))throw Object.assign(new vr("Network Error",vr.ERR_NETWORK,e,m),{cause:b.cause||b});throw vr.from(b,b&&b.code,e,m)}}),Di={http:null,xhr:di,fetch:Ii};pr.forEach(Di,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ps){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oi=e=>"- ".concat(e),Mi=e=>pr.isFunction(e)||null===e||!1===e,_i=e=>{e=pr.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!Mi(n)&&(r=Di[(t=String(n)).toLowerCase()],void 0===r))throw new vr("Unknown adapter '".concat(t,"'"));if(r)break;i[t||"#"+a]=r}if(!r){const e=Object.entries(i).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Oi).join("\n"):" "+Oi(e[0]):"as no adapter specified";throw new vr("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Fi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qr(null,e)}function Bi(e){Fi(e),e.headers=qr.from(e.headers),e.data=Yr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _i(e.adapter||Ur.adapter)(e).then((function(t){return Fi(e),t.data=Yr.call(e,e.transformResponse,t),t.headers=qr.from(t.headers),t}),(function(t){return Xr(t)||(Fi(e),t&&t.response&&(t.response.data=Yr.call(e,e.transformResponse,t.response),t.response.headers=qr.from(t.response.headers))),Promise.reject(t)}))}const Ui="1.9.0",zi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Gi={};zi.transitional=function(e,t,n){function r(e,t){return"[Axios v1.9.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new vr(r(i," has been removed"+(t?" in "+t:"")),vr.ERR_DEPRECATED);return t&&!Gi[i]&&(Gi[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},zi.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const Wi={assertOptions:function(e,t,n){if("object"!==typeof e)throw new vr("options must be an object",vr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new vr("option "+a+" must be "+n,vr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vr("Unknown option "+a,vr.ERR_BAD_OPTION)}},validators:zi}
vendor: 3,678 bytes, line 2
2,Hi=Wi.validators;class Vi{constructor(e){this.defaults=e||{},this.interceptors={request:new Nr,response:new Nr}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Ps){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=li(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Wi.assertOptions(n,{silentJSONParsing:Hi.transitional(Hi.boolean),forcedJSONParsing:Hi.transitional(Hi.boolean),clarifyTimeoutError:Hi.transitional(Hi.boolean)},!1),null!=r&&(pr.isFunction(r)?t.paramsSerializer={serialize:r}:Wi.assertOptions(r,{encode:Hi.function,serialize:Hi.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wi.assertOptions(t,{baseUrl:Hi.spelling("baseURL"),withXsrfToken:Hi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&pr.merge(i.common,i[t.method]);i&&pr.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=qr.concat(a,i);const s=[];let o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!o){const e=[Bi.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=s.length;let h=t;for(u=0;u<d;){const e=s[u++],t=s[u++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=Bi.call(this,h)}catch(p){return Promise.reject(p)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return Ar(si((e=li(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}pr.forEach(["delete","get","head","options"],(function(e){Vi.prototype[e]=function(t,n){return this.request(li(n||{},{method:e,url:t,data:(n||{}).data}))}})),pr.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(li(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Vi.prototype[e]=t(),Vi.prototype[e+"Form"]=t(!0)}));const Ki=Vi;class qi{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Qr(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new qi((function(t){e=t}));return{token:t,cancel:e}}}const Yi=qi;const Xi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 10,934 bytes, line 2
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xi).forEach((e=>{let[t,n]=e;Xi[n]=t}));const Ji=Xi;const Qi=function e(t){const n=new Ki(t),r=Nn(Ki.prototype.request,n);return pr.extend(r,Ki.prototype,n,{allOwnKeys:!0}),pr.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(li(t,n))},r}(Ur);Qi.Axios=Ki,Qi.CanceledError=Qr,Qi.CancelToken=Yi,Qi.isCancel=Xr,Qi.VERSION=Ui,Qi.toFormData=kr,Qi.AxiosError=vr,Qi.Cancel=Qi.CanceledError,Qi.all=function(e){return Promise.all(e)},Qi.spread=function(e){return function(t){return e.apply(null,t)}},Qi.isAxiosError=function(e){return pr.isObject(e)&&!0===e.isAxiosError},Qi.mergeConfig=li,Qi.AxiosHeaders=qr,Qi.formToJSON=e=>Fr(pr.isHTMLForm(e)?new FormData(e):e),Qi.getAdapter=_i,Qi.HttpStatusCode=Ji,Qi.default=Qi;const Zi=Qi,$i=Object.create(null);$i.open="0",$i.close="1",$i.ping="2",$i.pong="3",$i.message="4",$i.upgrade="5",$i.noop="6";const ea=Object.create(null);Object.keys($i).forEach((e=>{ea[$i[e]]=e}));const ta={type:"error",data:"parser error"},na="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ra="function"===typeof ArrayBuffer,ia=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,aa=(e,t,n)=>{let{type:r,data:i}=e;return na&&i instanceof Blob?t?n(i):sa(i,n):ra&&(i instanceof ArrayBuffer||ia(i))?t?n(i):sa(new Blob([i]),n):n($i[r]+(i||""))},sa=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function oa(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let la;const ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",da="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let n=0;n<64;n++)da[ca.charCodeAt(n)]=n;const ua="function"===typeof ArrayBuffer,ha=(e,t)=>{if("string"!==typeof e)return{type:"message",data:ma(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:pa(e.substring(1),t)};return ea[n]?e.length>1?{type:ea[n],data:e.substring(1)}:{type:ea[n]}:ta},pa=(e,t)=>{if(ua){const n=(e=>{let t,n,r,i,a,s=.75*e.length,o=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),d=new Uint8Array(c);for(t=0;t<o;t+=4)n=da[e.charCodeAt(t)],r=da[e.charCodeAt(t+1)],i=da[e.charCodeAt(t+2)],a=da[e.charCodeAt(t+3)],d[l++]=n<<2|r>>4,d[l++]=(15&r)<<4|i>>2,d[l++]=(3&i)<<6|63&a;return c})(e);return ma(n,t)}return{base64:!0,data:e}},ma=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,fa=String.fromCharCode(30);function ga(){return new TransformStream({transform(e,t){!function(e,t){na&&e.data instanceof Blob?e.data.arrayBuffer().then(oa).then(t):ra&&(e.data instanceof ArrayBuffer||ia(e.data))?t(oa(e.data)):aa(e,!1,(e=>{la||(la=new TextEncoder),t(la.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}})}let va;function ba(e){return e.reduce(((e,t)=>e+t.length),0)}function ya(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function xa(e){if(e)return function(e){for(var t in xa.prototype)e[t]=xa.prototype[t];return e}(e)}xa.prototype.on=xa.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},xa.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},xa.prototype.off=xa.prototype.removeListener=xa.prototype.removeAllListeners=xa.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},xa.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},xa.prototype.emitReserved=xa.prototype.emit,xa.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},xa.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Sa="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),ka="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function wa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const Ta=ka.setTimeout,Ca=ka.clearTimeout;function Ea(e,t){t.useNativeTimers?(e.setTimeoutFn=Ta.bind(ka),e.clearTimeoutFn=Ca.bind(ka)):(e.setTimeoutFn=ka.setTimeout.bind(ka),e.clearTimeoutFn=ka.clearTimeout.bind(ka))}function ja(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class Aa extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class Na extends xa{constructor(e){super(),this.writable=!1,Ea(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new Aa(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=ha(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class Pa extends Na{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(fa),r=[];for(let i=0;i<n.length;i++){const e=ha(n[i],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,a)=>{aa(e,!1,(e=>{r[a]=e,++i===n&&t(r.join(fa))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ja()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Ra=!1;try{Ra="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(K6){}const La=Ra;function Ia(){}class Da extends Pa{constructor(e){if(super(e),"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class Oa extends xa{constructor(e,t,n){super(),this.createRequest=e,Ea(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=wa(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(Ps){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Ps){}try{n.setRequestHeader("Accept","*/*")}catch(Ps){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&
vendor: 4,314 bytes, line 2
2(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"===typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(Ps){return void this.setTimeoutFn((()=>{this._onError(Ps)}),0)}"undefined"!==typeof document&&(this._index=Oa.requestsCount++,Oa.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if("undefined"!==typeof this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Ia,e)try{this._xhr.abort()}catch(Ps){}"undefined"!==typeof document&&delete Oa.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Oa.requestsCount=0,Oa.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",Ma);else if("function"===typeof addEventListener){addEventListener("onpagehide"in ka?"pagehide":"unload",Ma,!1)}function Ma(){for(let e in Oa.requests)Oa.requests.hasOwnProperty(e)&&Oa.requests[e].abort()}const _a=function(){const e=Fa({xdomain:!1});return e&&null!==e.responseType}();function Fa(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||La))return new XMLHttpRequest}catch(Ps){}if(!t)try{return new(ka[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(Ps){}}const Ba="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Ua extends Na{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ba?{}:wa(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(K6){return this.emitReserved("error",K6)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;aa(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(Ps){}r&&Sa((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ja()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const za=ka.WebSocket||ka.MozWebSocket;const Ga={websocket:class extends Ua{createSocket(e,t,n){return Ba?new za(e,t,n):t?new za(e,t):new za(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends Na{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(K6){return this.emitReserved("error",K6)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){va||(va=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(s,o){for(n.push(s);;){if(0===r){if(ba(n)<1)break;const e=ya(n,1);a=128===(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(ba(n)<2)break;const e=ya(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ba(n)<8)break;const e=ya(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>Math.pow(2,21)-1){o.enqueue(ta);break}i=a*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ba(n)<i)break;const e=ya(n,i);o.enqueue(ha(a?e:va.decode(e),t)),r=0}if(0===i||i>e){o.enqueue(ta);break}}}})}
2(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=ga();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),i())})).catch((e=>{}))};i();const a={type:"open"};this.query.sid&&(a.data='{"sid":"'.concat(this.query.sid,'"}')),this._writer.write(a).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&Sa((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends Da{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=_a&&!t}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd},this.opts),new Oa(Fa,this.uri(),e)}}},Wa=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ha=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Va(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Wa.exec(e||""),a={},s=14;for(;s--;)a[Ha[s]]=i[s]||"";return-1!=n&&-1!=r&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,a.query),a}const Ka="function"===typeof addEventListener&&"function"===typeof removeEventListener,qa=[];Ka&&addEventListener("offline",(()=>{qa.forEach((e=>e()))}),!1);class Ya extends xa{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"===typeof e&&(t=e,e=null),e){const n=Va(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Va(t.host).host);Ea(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let e=n[r].split("=");
vendor: 11,287 bytes, line 2
2t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),Ka&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},qa.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Ya.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Ya.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Sa((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Ya.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ka&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=qa.indexOf(this._offlineEventListener);-1!==e&&qa.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Ya.protocol=4;class Xa extends Ya{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Ya.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ya.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,c(),t.close(),t=null)}const a=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function s(){a("transport closed")}function o(){a("socket closed")}function l(e){t&&e.name!==t.name&&i()}const c=()=>{t.removeListener("open",r),t.removeListener("error",a),t.removeListener("close",s),this.off("close",o),this.off("upgrading",l)};t.once("open",r),t.once("error",a),t.once("close",s),this.once("close",o),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class Ja extends Xa{constructor(e){const t="object"===typeof e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.transports||t.transports&&"string"===typeof t.transports[0])&&(t.transports=(t.transports||["polling","websocket","webtransport"]).map((e=>Ga[e])).filter((e=>!!e))),super(e,t)}}const Qa="function"===typeof ArrayBuffer,Za=Object.prototype.toString,$a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Za.call(Blob),es="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===Za.call(File);function ts(e){return Qa&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||$a&&e instanceof Blob||es&&e instanceof File}function ns(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(ns(e[t]))return!0;return!1}if(ts(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return ns(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ns(e[n]))return!0;return!1}function rs(e){const t=[],n=e.data,r=e;return r.data=is(n,t),r.attachments=t.length,{packet:r,buffers:t}}function is(e,t){if(!e)return e;if(ts(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=is(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=is(e[r],t));return n}return e}function as(e,t){return e.data=ss(e.data,t),delete e.attachments,e}function ss(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=ss(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=ss(e[n],t));return e}const os=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ls=5;var cs;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(cs||(cs={}));class ds{constructor(e){this.replacer=e}encode(e){return e.type!==cs.EVENT&&e.type!==cs.ACK||!ns(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===cs.EVENT?cs.BINARY_EVENT:cs.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==cs.BINARY_EVENT&&e.type!==cs.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=rs(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function us(e){return"[object Object]"===Object.prototype.toString.call(e)}class hs extends xa{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===cs.BINARY_EVENT;n||t.type===cs.BINARY_ACK?(t.type=n?cs.EVENT:cs.ACK,this.reconstructor=new ps(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ts(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===cs[n.type])throw new Error("unknown packet type "+n.type);if(n.type===cs.BINARY_EVENT||n.type===cs.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));
vendor: 4,156 bytes, line 2
2if(!hs.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(Ps){return!1}}static isPayloadValid(e,t){switch(e){case cs.CONNECT:return us(t);case cs.DISCONNECT:return void 0===t;case cs.CONNECT_ERROR:return"string"===typeof t||us(t);case cs.EVENT:case cs.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===os.indexOf(t[0]));case cs.ACK:case cs.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ps{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=as(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ms(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const fs=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class gs extends xa{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ms(e,"open",this.onopen.bind(this)),ms(e,"packet",this.onpacket.bind(this)),ms(e,"error",this.onerror.bind(this)),ms(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){var t,n,r;if(fs.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(a.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(a),this;const o={type:cs.EVENT,data:a,options:{}};if(o.options.compress=!1!==this.flags.compress,"function"===typeof a[a.length-1]){const e=this.ids++,t=a.pop();this._registerAckCallback(e,t),o.id=e}const l=null===(n=null===(t=this.io.engine)||void 0===t?void 0:t.transport)||void 0===n?void 0:n.writable,c=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var n,r=this;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[e]=t);const a=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),i),s=function(){r.io.clearTimeoutFn(a);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(r,n)};s.withError=!0,this.acks[e]=s}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(((t,r)=>{const i=(e,n)=>e?r(e):t(n);i.withError=!0,n.push(i),this.emit(e,...n)}))}_addToQueue(e){var t=this;let n;"function"===typeof e[e.length-1]&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r!==t._queue[0])return;if(null!==e)r.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(e));else if(t._queue.shift(),n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];n(null,...a)}return r.pending=!1,t._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.connected||0===this._queue.length)return;const t=this._queue[0];
vendor: 7,681 bytes, line 2
2t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:cs.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case cs.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case cs.EVENT:case cs.BINARY_EVENT:this.onevent(e);break;case cs.ACK:case cs.BINARY_ACK:this.onack(e);break;case cs.DISCONNECT:this.ondisconnect();break;case cs.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t.packet({type:cs.ACK,id:e,data:i})}}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:cs.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function vs(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}vs.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},vs.prototype.reset=function(){this.attempts=0},vs.prototype.setMin=function(e){this.ms=e},vs.prototype.setMax=function(e){this.max=e},vs.prototype.setJitter=function(e){this.jitter=e};class bs extends xa{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(n=e,e=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,Ea(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=n.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new vs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||t;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ja(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=ms(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=ms(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ms(e,"ping",this.onping.bind(this)),ms(e,"data",this.ondata.bind(this)),ms(e,"error",this.onerror.bind(this)),ms(e,"close",this.onclose.bind(this)),ms(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(Ps){this.onclose("parse error",Ps)}}ondecoded(e){Sa((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new gs(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;
2n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ys={};function xs(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=Va(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,a=n.path,s=ys[i]&&a in ys[i].nsps;let o;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?o=new bs(r,t):(ys[i]||(ys[i]=new bs(r,t)),o=ys[i]),n.query&&!t.query&&(t.query=n.queryKey),o.socket(n.path,t)}Object.assign(xs,{Manager:bs,Socket:gs,io:xs,connect:xs});const Ss=(()=>{const e=window.location.hostname,t="8800";return"localhost"===e||"127.0.0.1"===e?"http://localhost:".concat(t):e.match(/^192\.168\.\d+\.\d+$/)||e.match(/^10\.\d+\.\d+\.\d+$/)||e.match(/^172\.\d+\.\d+\.\d+$/)?"http://".concat(e,":").concat(t):"app.clipbait.ai"===e||"www.app.clipbait.ai"===e?"https://app.clipbait.ai":"https://clipbait-app.onrender.com"})();console.log("\ud83d\udd17 Backend URL detected:",Ss);const ks=Zi.create({baseURL:"".concat(Ss,"/api"),withCredentials:!0});ks.interceptors.request.use((e=>{try{const t=localStorage.getItem("token");t&&(e.headers=e.headers||{},e.headers.Authorization="Bearer ".concat(t))}catch(K6){console.warn("Failed to attach auth token:",K6)}return e}),(e=>Promise.reject(e)));let ws=!1,Ts=[],Cs=!1;const Es=e=>{Cs=e},js=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ts.forEach((n=>{let{resolve:r,reject:i}=n;return e?i(e):r(t)})),Ts=[]};ks.interceptors.response.use((e=>e),(async e=>{var t,n;const r=e.config;if(401!==(null===(t=e.response)||void 0===t?void 0:t.status)||r._retry||null!==(n=r.url)&&void 0!==n&&n.includes("/auth/refresh")||Cs)return Promise.reject(e);if(ws)return new Promise(((e,t)=>{Ts.push({resolve:e,reject:t})})).then((e=>(r.headers.Authorization="Bearer ".concat(e),ks(r))));r._retry=!0,ws=!0;try{const{data:e}=await ks.post("/auth/refresh");return localStorage.setItem("token",e.token),ks.defaults.headers.common.Authorization="Bearer ".concat(e.token),r.headers.Authorization="Bearer ".concat(e.token),js(null,e.token),ks(r)}catch(i){return js(i,null),localStorage.removeItem("token"),localStorage.removeItem("user"),window.dispatchEvent(new Event("auth:sessionExpired")),Promise.reject(i)}finally{ws=!1}}));const As=xs(Ss,{path:"/socket.io/",transports:["websocket","polling"],withCredentials:!0,reconnection:!0,reconnectionAttempts:5,reconnectionDelay:1e3});function Ns(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}let Ps={data:""},Rs=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ps,Ls=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Is=/\/\*[^]*?\*\/| +/g,Ds=/\n+/g,Os=(e,t)=>{let n="",r="",i="";for(let a in e){let s=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+s+";":r+="f"==a[1]?Os(s,a):a+"{"+Os(s,"k"==a[1]?"":t)+"}":"object"==typeof s?r+=Os(s,t?t.replace(/([^,])+/g,(e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=s&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Os.p?Os.p(a,s):a+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ms={},_s=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+_s(e[n]);return t}return e},Fs=(e,t,n,r,i)=>{let a=_s(e),s=Ms[a]||(Ms[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(a));if(!Ms[s]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=Ls.exec(e.replace(Is,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Ds," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Ds," ").trim();return r[0]})(e);Ms[s]=Os(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let o=n&&Ms.g?Ms.g:null;return n&&(Ms.g=Ms[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Ms[s],t,r,o),s};function Bs(e){let t=this||{},n=e.call?e(t.p):e;
2return Fs(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":Os(e,""):!1===e?"":e}return e+r+(null==a?"":a)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Rs(t.target),t.g,t.o,t.k)}Bs.bind({g:1});let Us,zs,Gs,Ws=Bs.bind({k:1});function Hs(e,t){let n=this||{};return function(){let r=arguments;function i(a,s){let o=Object.assign({},a),l=o.className||i.className;n.p=Object.assign({theme:zs&&zs()},o),n.o=/ *go\d+/.test(l),o.className=Bs.apply(n,r)+(l?" "+l:""),t&&(o.ref=s);let c=e;return e[0]&&(c=o.as||e,delete o.as),Gs&&c[0]&&Gs(o),Us(c,o)}return t?t(i):i}}var Vs,Ks,qs,Ys,Xs,Js,Qs,Zs,$s,eo,to,no,ro,io,ao,so,oo=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,lo=(()=>{let e=0;return()=>(++e).toString()})(),co=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),uo="default",ho=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return o(o({},e),{},{toasts:[t.toast,...e.toasts].slice(0,n)});case 1:return o(o({},e),{},{toasts:e.toasts.map((e=>e.id===t.toast.id?o(o({},e),t.toast):e))});case 2:let{toast:r}=t;return ho(e,{type:e.toasts.find((e=>e.id===r.id))?1:0,toast:r});case 3:let{toastId:i}=t;return o(o({},e),{},{toasts:e.toasts.map((e=>e.id===i||void 0===i?o(o({},e),{},{dismissed:!0,visible:!1}):e))});case 4:return void 0===t.toastId?o(o({},e),{},{toasts:[]}):o(o({},e),{},{toasts:e.toasts.filter((e=>e.id!==t.toastId))});case 5:return o(o({},e),{},{pausedAt:t.time});case 6:let a=t.time-(e.pausedAt||0);return o(o({},e),{},{pausedAt:void 0,toasts:e.toasts.map((e=>o(o({},e),{},{pauseDuration:e.pauseDuration+a})))})}},po=[],mo={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},fo={},go=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uo;fo[t]=ho(fo[t]||mo,e),po.forEach((e=>{let[n,r]=e;n===t&&r(fo[t])}))},vo=e=>Object.keys(fo).forEach((t=>go(e,t))),bo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo;return t=>{go(t,e)}},yo={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},xo=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return o(o({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||lo()})}(t,e,n);return bo(r.toasterId||(e=>Object.keys(fo).find((t=>fo[t].toasts.some((t=>t.id===e)))))(r.id))({type:2,toast:r}),r.id},So=(e,t)=>xo("blank")(e,t);So.error=xo("error"),So.success=xo("success"),So.loading=xo("loading"),So.custom=xo("custom"),So.dismiss=(e,t)=>{let n={type:3,toastId:e};t?bo(t)(n):vo(n)},So.dismissAll=e=>So.dismiss(void 0,e),So.remove=(e,t)=>{let n={type:4,toastId:e};t?bo(t)(n):vo(n)},So.removeAll=e=>So.remove(void 0,e),So.promise=(e,t,n)=>{let r=So.loading(t.loading,o(o({},n),null==n?void 0:n.loading));return"function"==typeof e&&(e=e()),e.then((e=>{let i=t.success?oo(t.success,e):void 0;return i?So.success(i,o(o({id:r},n),null==n?void 0:n.success)):So.dismiss(r),e})).catch((e=>{let i=t.error?oo(t.error,e):void 0;i?So.error(i,o(o({id:r},n),null==n?void 0:n.error)):So.dismiss(r)})),e};var ko=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{toasts:n,pausedAt:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uo,[n,r]=(0,$.useState)(fo[t]||mo),i=(0,$.useRef)(fo[t]);(0,$.useEffect)((()=>(i.current!==fo[t]&&r(fo[t]),po.push([t,r]),()=>{let e=po.findIndex((e=>{let[n]=e;return n===t}));e>-1&&po.splice(e,1)})),[t]);let a=n.toasts.map((t=>{var n,r,i;return o(o(o(o({},e),e[t.type]),t),{},{removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||yo[t.type],style:o(o(o({},e.style),null==(i=e[t.type])?void 0:i.style),t.style)}
2)}));return o(o({},n),{},{toasts:a})}(e,t),i=(0,$.useRef)(new Map).current,a=(0,$.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(i.has(e))return;let n=setTimeout((()=>{i.delete(e),s({type:4,toastId:e})}),t);i.set(e,n)}),[]);(0,$.useEffect)((()=>{if(r)return;let e=Date.now(),i=n.map((n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout((()=>So.dismiss(n.id,t)),r);n.visible&&So.dismiss(n.id)}));return()=>{i.forEach((e=>e&&clearTimeout(e)))}}),[n,r,t]);let s=(0,$.useCallback)(bo(t),[t]),l=(0,$.useCallback)((()=>{s({type:5,time:Date.now()})}),[s]),c=(0,$.useCallback)(((e,t)=>{s({type:1,toast:{id:e,height:t}})}),[s]),d=(0,$.useCallback)((()=>{r&&s({type:6,time:Date.now()})}),[r,s]),u=(0,$.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:a}=t||{},s=n.filter((t=>(t.position||a)===(e.position||a)&&t.height)),o=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>t<o&&e.visible)).length;return s.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[n]);return(0,$.useEffect)((()=>{n.forEach((e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}}))}),[n,a]),{toasts:n,handlers:{updateHeight:c,startPause:l,endPause:d,calculateOffset:u}}},wo=Ws(Vs||(Vs=Ns(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),To=Ws(Ks||(Ks=Ns(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),Co=Ws(qs||(qs=Ns(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),Eo=Hs("div")(Ys||(Ys=Ns(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(e=>e.primary||"#ff4b4b"),wo,To,(e=>e.secondary||"#fff"),Co),jo=Ws(Xs||(Xs=Ns(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),Ao=Hs("div")(Js||(Js=Ns(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(e=>e.secondary||"#e0e0e0"),(e=>e.primary||"#616161"),jo),No=Ws(Qs||(Qs=Ns(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),Po=Ws(Zs||(Zs=Ns(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),Ro=Hs("div")($s||($s=Ns(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(e=>e.primary||"#61d345"),No,Po,(e=>e.secondary||"#fff")),Lo=Hs("div")(eo||(eo=Ns(["\n position: absolute;\n"]))),Io=Hs("div")(to||(to=Ns(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;
2\n min-width: 20px;\n min-height: 20px;\n"]))),Do=Ws(no||(no=Ns(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),Oo=Hs("div")(ro||(ro=Ns(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),Do),Mo=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?$.createElement(Oo,null,n):n:"blank"===r?null:$.createElement(Io,null,$.createElement(Ao,o({},i)),"loading"!==r&&$.createElement(Lo,null,"error"===r?$.createElement(Eo,o({},i)):$.createElement(Ro,o({},i))))},_o=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),Fo=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),Bo=Hs("div")(io||(io=Ns(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),Uo=Hs("div")(ao||(ao=Ns(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),zo=$.memo((e=>{let{toast:t,position:n,style:r,children:i}=e,a=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=co()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[_o(n),Fo(n)];return{animation:t?"".concat(Ws(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(Ws(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}})(t.position||n||"top-center",t.visible):{opacity:0},s=$.createElement(Mo,{toast:t}),l=$.createElement(Uo,o({},t.ariaProps),oo(t.message,t));return $.createElement(Bo,{className:t.className,style:o(o(o({},a),r),t.style)},"function"==typeof i?i({icon:s,message:l}):$.createElement($.Fragment,null,s,l))}));!function(e,t,n,r){Os.p=t,Us=e,zs=n,Gs=r}($.createElement);var Go=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:a}=e,s=$.useCallback((e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;i(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,i]);return $.createElement("div",{ref:s,className:n,style:r},a)},Wo=Bs(so||(so=Ns(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),Ho=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:a,toasterId:s,containerStyle:l,containerClassName:c}=e,{toasts:d,handlers:u}=ko(r,s);return $.createElement("div",{"data-rht-toaster":s||"",style:o({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:c,onMouseEnter:u.startPause,onMouseLeave:u.endPause},d.map((e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return o(o({left:0,right:0,display:"flex",position:"absolute",transition:co()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)})(r,u.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return $.createElement(Go,{id:e.id,key:e.id,onHeightUpdate:u.updateHeight,className:e.visible?Wo:"",style:s},"custom"===e.type?oo(e.message,e):a?a(e):$.createElement(zo,{toast:e,position:r}))})))},Vo=So;const Ko=async(e,t)=>{t({type:"LOGIN_START"}),Es(!1);try{const n=await ks.post("/auth/login",e);n.data.token&&localStorage.setItem("token",n.data.token),t({type:"LOGIN_SUCCESS",payload:n.data})}catch(K6){throw console.error("Login error:",K6),K6.response?400===K6.response.status?t({type:"EMAIL_NOT_VERIFIED",payload:K6.response.data.message}):t({type:"LOGIN_FAILURE",payload:K6.response.data.message||"Login failed"}):K6.request?t({type:"LOGIN_FAILURE",payload:"No response from server"}):t({type:"LOGIN_FAILURE",payload:"Network error"}),K6}},qo=async e=>{Es(!0);try{await ks.post("/auth/logout")}catch(K6){console.warn("Logout endpoint failed (continuing anyway):",null===K6||void 0===K6?void 0:K6.message)}!function(){if("undefined"===typeof document)return;const e=window.location.hostname;["","; domain=".concat(e),"; domain=.clipbait.ai"].forEach((e=>{document.cookie="cb_session=; path=/; expires=".concat("Thu, 01 Jan 1970 00:00:00 GMT").concat(e,"; SameSite=Lax")}))}(),localStorage.removeItem("token"),localStorage.removeItem("user"),e({type:"LOGOUT"})},Yo=(e,t)=>{switch(t.type){case"LOGIN_START":return{user:null,isFetching:!0,error:!1};case"LOGIN_SUCCESS":return o(o({},e),{},{user:t.payload,userId:t.payload.id,isFetching:!1,error:!1});case"LOGIN_FAILURE":return{user:null,isFetching:!1,error:t.payload};case"FOLLOW":return o(o({},e),{},{user:o(o({},e.user),{},{followings:[...e.user.followings,t.payload]})});case"UNFOLLOW":return o(o({},e),{},{user:o(o({},e.user),{},{followings:e.user.followings.filter((e=>e!==t.payload))})});case"LOGOUT":return o(o({},e),{},{user:null,userId:null});case"EMAIL_NOT_VERIFIED":return o(o({},e),{},{error:t.payload,isFetching:!1});case"UPDATE_EMAIL_NOTIFICATIONS":return o(o({},e),{},{user:o(o({},e.user),{},{emailNotifications:t.payload})});default:return e}};var Xo=n(579);const Jo={user:JSON.parse(localStorage.getItem("user"))||null,isFetching:!1,error:!1},Qo=(0,$.createContext)(Jo),Zo=e=>{let{children:t}=e;const[n,r]=(0,$.useReducer)(Yo,Jo);return(0,$.useEffect)((()=>{localStorage.setItem("user",JSON.stringify(n.user))}),[n.user]),(0,Xo.jsx)(Qo.Provider,{value:{user:n.user,isFetching:n.isFetching,error:n.error,dispatch:r},children:t})};var $o=Object.defineProperty,el={};((e,t)=>
vendor: 7,474 bytes, line 2
2{for(var n in t)$o(e,n,{get:t[n],enumerable:!0})})(el,{assign:()=>Pl,colors:()=>jl,createStringInterpolator:()=>Tl,skipAnimation:()=>Al,to:()=>Cl,willAdvance:()=>Nl});var tl=vl(),nl=e=>pl(e,tl),rl=vl();nl.write=e=>pl(e,rl);var il=vl();nl.onStart=e=>pl(e,il);var al=vl();nl.onFrame=e=>pl(e,al);var sl=vl();nl.onFinish=e=>pl(e,sl);var ol=[];nl.setTimeout=(e,t)=>{const n=nl.now()+t,r=()=>{const e=ol.findIndex((e=>e.cancel==r));~e&&ol.splice(e,1),ul-=~e?1:0},i={time:n,handler:e,cancel:r};return ol.splice(ll(n),0,i),ul+=1,ml(),i};var ll=e=>~(~ol.findIndex((t=>t.time>e))||~ol.length);nl.cancel=e=>{il.delete(e),al.delete(e),sl.delete(e),tl.delete(e),rl.delete(e)},nl.sync=e=>{hl=!0,nl.batchedUpdates(e),hl=!1},nl.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t=r,nl.onStart(n)}return r.handler=e,r.cancel=()=>{il.delete(n),t=null},r};var cl="undefined"!=typeof window?window.requestAnimationFrame:()=>{};nl.use=e=>cl=e,nl.now="undefined"!=typeof performance?()=>performance.now():Date.now,nl.batchedUpdates=e=>e(),nl.catch=console.error,nl.frameLoop="always",nl.advance=()=>{"demand"!==nl.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gl()};var dl=-1,ul=0,hl=!1;function pl(e,t){hl?(t.delete(e),e(0)):(t.add(e),ml())}function ml(){dl<0&&(dl=0,"demand"!==nl.frameLoop&&cl(fl))}function fl(){~dl&&(cl(fl),nl.batchedUpdates(gl))}function gl(){const e=dl;dl=nl.now();const t=ll(dl);t&&(bl(ol.splice(0,t),(e=>e.handler())),ul-=t),ul?(il.flush(),tl.flush(e?Math.min(64,dl-e):16.667),al.flush(),rl.flush(),sl.flush()):dl=-1}function vl(){let e=new Set,t=e;return{add(n){ul+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(ul-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,ul-=t.size,bl(t,(t=>t(n)&&e.add(t))),ul+=e.size,t=e)}}}function bl(e,t){e.forEach((e=>{try{t(e)}catch(Ps){nl.catch(Ps)}}))}var yl={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e};function xl(e,t){if(yl.arr(e)){if(!yl.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Sl=(e,t)=>e.forEach(t);function kl(e,t,n){if(yl.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],"".concat(r));else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var wl=e=>yl.und(e)?[]:yl.arr(e)?e:[e];var Tl,Cl,El=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jl=null,Al=!1,Nl=function(){},Pl=e=>{e.to&&(Cl=e.to),e.now&&(nl.now=e.now),void 0!==e.colors&&(jl=e.colors),null!=e.skipAnimation&&(Al=e.skipAnimation),e.createStringInterpolator&&(Tl=e.createStringInterpolator),e.requestAnimationFrame&&nl.use(e.requestAnimationFrame),e.batchedUpdates&&(nl.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Nl=e.willAdvance),e.frameLoop&&(nl.frameLoop=e.frameLoop)},Rl=new Set,Ll=[],Il=[],Dl=0,Ol={get idle(){return!Rl.size&&!Ll.length},start(e){Dl>e.priority?(Rl.add(e),nl.onStart(Ml)):(_l(e),nl(Bl))},advance:Bl,sort(e){if(Dl)nl.onFrame((()=>Ol.sort(e)));else{const t=Ll.indexOf(e);~t&&(Ll.splice(t,1),Fl(e))}},clear(){Ll=[],Rl.clear()}};function Ml(){Rl.forEach(_l),Rl.clear(),nl(Bl)}function _l(e){Ll.includes(e)||Fl(e)}function Fl(e){Ll.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ll,(t=>t.priority>e.priority)),0,e)}function Bl(e){const t=Il;for(let n=0;n<Ll.length;n++){const r=Ll[n];Dl=r.priority,r.idle||(Nl(r),r.advance(e),r.idle||t.push(r))}return Dl=0,(Il=Ll).length=0,(Ll=t).length>0}var Ul="[-+]?\\d*\\.?\\d+",zl=Ul+"%";function Gl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Wl=new RegExp("rgb"+Gl(Ul,Ul,Ul)),Hl=new RegExp("rgba"+Gl(Ul,Ul,Ul,Ul)),Vl=new RegExp("hsl"+Gl(Ul,zl,zl)),Kl=new RegExp("hsla"+Gl(Ul,zl,zl,Ul)),ql=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Yl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Xl=/^#([0-9a-fA-F]{6})$/,Jl=/^#([0-9a-fA-F]{8})$/;function Ql(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zl(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Ql(i,r,e+1/3),s=Ql(i,r,e),o=Ql(i,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function $l(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function tc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function nc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function rc(e){let t=function(e){let t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Xl.exec(e))?parseInt(t[1]+"ff",16)>>>0:jl&&void 0!==jl[e]?jl[e]:(t=Wl.exec(e))?($l(t[1])<<24|$l(t[2])<<16|$l(t[3])<<8|255)>>>0:(t=Hl.exec(e))?($l(t[1])<<24|$l(t[2])<<16|$l(t[3])<<8|tc(t[4]))>>>0:(t=ql.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Jl.exec(e))?parseInt(t[1],16)>>>0:(t=Yl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Vl.exec(e))?(255|Zl(ec(t[1]),nc(t[2]),nc(t[3])))>>>0:(t=Kl.exec(e))?(Zl(ec(t[1]),nc(t[2]),nc(t[3]))|tc(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;const n=(16711680&t)>>>16,r=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(i,")")}var ic=(e,t,n)=>{if(yl.fun(e))return e;if(yl.arr(e))return ic({range:e,output:t,extrapolate:n});if(yl.str(e.output[0]))return Tl(e);const r=e,i=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",o=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,a,s,o,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===o)return c;"clamp"===o&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=a(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,a[t],a[t+1],i[t],i[t+1],l,s,o,r.map)}};var ac=1.70158,sc=1.525*ac,oc=ac+1,lc=2*Math.PI/3,cc=2*Math.PI/4.5,dc=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},uc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>oc*e*e*e-ac*e*e,easeOutBack:e=>1+oc*Math.pow(e-1,3)+ac*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-sc)/2:(Math.pow(2*e-2,2)*((sc+1)
2*(2*e-2)+sc)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*lc),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*lc)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*cc)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*cc)/2+1,easeInBounce:e=>1-dc(1-e),easeOutBounce:dc,easeInOutBounce:e=>e<.5?(1-dc(1-2*e))/2:(1+dc(2*e-1))/2,steps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}}},hc=Symbol.for("FluidValue.get"),pc=Symbol.for("FluidValue.observers"),mc=e=>Boolean(e&&e[hc]),fc=e=>e&&e[hc]?e[hc]():e;function gc(e,t){const n=e[pc];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var vc=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");bc(this,e)}},bc=(e,t)=>kc(e,hc,t);function yc(e,t){if(e[hc]){let n=e[pc];n||kc(e,pc,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xc(e,t){const n=e[pc];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[pc]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Sc,kc=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),wc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Tc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cc=new RegExp("(".concat(wc.source,")(%|[a-z]+)"),"i"),Ec=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,jc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ac=e=>{const[t,n]=Nc(e);if(!t||El())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&jc.test(n)?Ac(n):n||e},Nc=e=>{const t=jc.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Pc=(e,t,n,r,i)=>"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(i,")"),Rc=e=>{Sc||(Sc=jl?new RegExp("(".concat(Object.keys(jl).join("|"),")(?!\\w)"),"g"):/^\b$/);const t=e.output.map((e=>fc(e).replace(jc,Ac).replace(Tc,rc).replace(Sc,rc))),n=t.map((e=>e.match(wc).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),i=r.map((t=>ic(o(o({},e),{},{output:t}))));return e=>{var n;const r=!Cc.test(t[0])&&(null===(n=t.find((e=>Cc.test(e))))||void 0===n?void 0:n.replace(wc,""));let a=0;return t[0].replace(wc,(()=>"".concat(i[a++](e)).concat(r||""))).replace(Ec,Pc)}},Lc="react-spring: ",Ic=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError("".concat(Lc,"once requires a function parameter"));return function(){n||(t(...arguments),n=!0)}},Dc=Ic(console.warn);Ic(console.warn);function Oc(e){return yl.str(e)&&("#"==e[0]||/\d/.test(e)||!El()&&jc.test(e)||e in(jl||{}))}var Mc=El()?$.useEffect:$.useLayoutEffect;function _c(){const e=(0,$.useState)()[1],t=(()=>{const e=(0,$.useRef)(!1);return Mc((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Fc=[];var Bc=Symbol.for("Animated:node"),Uc=e=>e&&e[Bc],zc=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Bc,t),Gc=e=>e&&e[Bc]&&e[Bc].getPayload(),Wc=class{constructor(){zc(this,this)}getPayload(){return this.payload||[]}},Hc=class extends Wc{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yl.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Hc(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yl.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,yl.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Vc=class extends Hc{constructor(e){super(0),this._string=null,this._toString=ic({output:[e,e]})}static create(e){return new Vc(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(yl.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=ic({output:[this.getValue(),e]})),this._value=0,super.reset()}},Kc={dependencies:null},qc=class extends Wc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kl(this.source,((n,r)=>{(e=>!!e&&e[Bc]===e)(n)?t[r]=n.getValue(e):mc(n)?t[r]=fc(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Sl(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return kl(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Kc.dependencies&&mc(e)&&Kc.dependencies.add(e);const t=Gc(e);t&&Sl(t,(e=>this.add(e)))}},Yc=class extends qc{constructor(e){super(e)}static create(e){return new Yc(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>
2t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Xc)),!0)}};function Xc(e){return(Oc(e)?Vc:Hc).create(e)}function Jc(e){const t=Uc(e);return t?t.constructor:yl.arr(e)?Yc:Oc(e)?Vc:Hc}var Qc=(e,t)=>{const n=!yl.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,$.forwardRef)(((r,i)=>{const a=(0,$.useRef)(null),s=n&&(0,$.useCallback)((e=>{a.current=function(e,t){e&&(yl.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,c]=function(e,t){const n=new Set;Kc.dependencies=n,e.style&&(e=o(o({},e),{},{style:t.createAnimatedStyle(e.style)}));return e=new qc(e),Kc.dependencies=null,[e,n]}(r,t),d=_c(),u=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&d()},h=new Zc(u,c),p=(0,$.useRef)();Mc((()=>(p.current=h,Sl(c,(e=>yc(e,h))),()=>{p.current&&(Sl(p.current.deps,(e=>xc(e,p.current))),nl.cancel(p.current.update))}))),(0,$.useEffect)(u,[]),(e=>{(0,$.useEffect)(e,Fc)})((()=>()=>{const e=p.current;Sl(e.deps,(t=>xc(t,e)))}));const m=t.getComponentProps(l.getValue());return $.createElement(e,o(o({},m),{},{ref:s}))}))},Zc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&nl.write(this.update)}};var $c=Symbol.for("AnimatedComponent"),ed=e=>yl.str(e)?e:e&&yl.str(e.displayName)?e.displayName:yl.fun(e)&&e.name||null;const td=["children"];o(o({},{tension:170,friction:26}),{},{mass:1,damping:1,easing:uc.linear,clamp:!1});Error,Error;var nd=e=>e instanceof id,rd=1,id=class extends vc{constructor(){super(...arguments),this.id=rd++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Uc(this);return e&&e.getValue()}to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return el.to(this,t)}interpolate(){Dc("".concat(Lc,'The "interpolate" function is deprecated in v9 (use "to" instead)'));for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return el.to(this,t)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e){gc(this,{type:"change",parent:this,value:e,idle:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})}_onPriorityChange(e){this.idle||Ol.sort(this),gc(this,{type:"priority",parent:this,priority:e})}};Symbol.for("SpringPhase");var ad=e=>{let{children:t}=e,n=Se(e,td);const r=(0,$.useContext)(sd),i=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=function(e,t){const[n]=(0,$.useState)((()=>({inputs:t,result:e()}))),r=(0,$.useRef)(),i=r.current;let a=i;if(a){const n=Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs));n||(a={inputs:t,result:e()})}else a=n;return(0,$.useEffect)((()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:i,immediate:a})),[i,a]);const{Provider:s}=sd;return $.createElement(s,{value:n},t)},sd=function(e,t){return Object.assign(e,$.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(ad,{});ad.Provider=sd.Provider,ad.Consumer=sd.Consumer;var od=class extends id{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ic(...t);const n=this._get(),r=Jc(n);zc(this,r.create(n))}advance(e){const t=this._get();xl(t,this.get())||(Uc(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&cd(this._active)&&dd(this)}_get(){const e=yl.arr(this.source)?this.source.map(fc):wl(fc(this.source));return this.calc(...e)}_start(){this.idle&&!cd(this._active)&&(this.idle=!1,Sl(Gc(this),(e=>{e.done=!1})),el.skipAnimation?(nl.batchedUpdates((()=>this.advance())),dd(this)):Ol.start(this))}_attach(){let e=1;Sl(wl(this.source),(t=>{mc(t)&&yc(t,this),nd(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Sl(wl(this.source),(e=>
2{mc(e)&&xc(e,this)})),this._active.clear(),dd(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=wl(this.source).reduce(((e,t)=>Math.max(e,(nd(t)?t.priority:0)+1)),0))}};function ld(e){return!1!==e.idle}function cd(e){return!e.size||Array.from(e).every(ld)}function dd(e){e.idle||(e.idle=!0,Sl(Gc(e),(e=>{e.done=!0})),gc(e,{type:"idle",parent:e}))}el.assign({createStringInterpolator:Rc,to:(e,t)=>new od(e,t)});Ol.advance;const ud=["style","children","scrollTop","scrollLeft","viewBox"],hd=["x","y","z"],pd=["scrollTop","scrollLeft"];var md=/^--/;function fd(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||md.test(e)||vd.hasOwnProperty(e)&&vd[e]?(""+t).trim():t+"px"}var gd={};var vd={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bd=["Webkit","Ms","Moz","O"];vd=Object.keys(vd).reduce(((e,t)=>(bd.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),vd);var yd=/^(matrix|translate|scale|rotate|skew)/,xd=/^(translate)/,Sd=/^(rotate|skew)/,kd=(e,t)=>yl.num(e)&&0!==e?e+t:e,wd=(e,t)=>yl.arr(e)?e.every((e=>wd(e,t))):yl.num(e)?e===t:parseFloat(e)===t,Td=class extends qc{constructor(e){let{x:t,y:n,z:r}=e,i=Se(e,hd);const a=[],s=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),s.push((e=>["translate3d(".concat(e.map((e=>kd(e,"px"))).join(","),")"),wd(e,0)]))),kl(i,((e,t)=>{if("transform"===t)a.push([e||""]),s.push((e=>[e,""===e]));else if(yd.test(t)){if(delete i[t],yl.und(e))return;const n=xd.test(t)?"px":Sd.test(t)?"deg":"";a.push(wl(e)),s.push("rotate3d"===t?e=>{let[t,r,i,a]=e;return["rotate3d(".concat(t,",").concat(r,",").concat(i,",").concat(kd(a,n),")"),wd(a,0)]}:e=>["".concat(t,"(").concat(e.map((e=>kd(e,n))).join(","),")"),wd(e,t.startsWith("scale")?1:0)])}})),a.length&&(i.transform=new Cd(a,s)),super(i)}},Cd=class extends vc{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Sl(this.inputs,((n,r)=>{const i=fc(n[0]),[a,s]=this.transforms[r](yl.arr(i)?i:n.map(fc));e+=" "+a,t=t&&s})),t?"none":e}observerAdded(e){1==e&&Sl(this.inputs,(e=>Sl(e,(e=>mc(e)&&yc(e,this)))))}observerRemoved(e){0==e&&Sl(this.inputs,(e=>Sl(e,(e=>mc(e)&&xc(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),gc(this,e)}};el.assign({batchedUpdates:Ze.unstable_batchedUpdates,createStringInterpolator:Rc,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Ed=function(e){let{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new qc(e),getComponentProps:r=e=>e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=ed(e)||"Anonymous";return(e=yl.str(e)?a[e]||(a[e]=Qc(e,i)):e[$c]||(e[$c]=Qc(e,i))).displayName="Animated(".concat(t,")"),e};return kl(e,((t,n)=>{yl.arr(e)&&(n=ed(t)),a[n]=a(t)})),{animated:a}}(["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","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"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:s,viewBox:o}=t,l=Se(t,ud),c=Object.values(l),d=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:gd[t]||(gd[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(const u in r)if(r.hasOwnProperty(u)){const t=fd(u,r[u]);md.test(u)?e.style.setProperty(u,t):e.style[u]=t}
2d.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==o&&e.setAttribute("viewBox",o)},createAnimatedStyle:e=>new Td(e),getComponentProps:e=>{let{scrollTop:t,scrollLeft:n}=e;return Se(e,pd)}});Ed.animated;n.p,n.p,n.p,n.p,n.p,n.p,n.p,n.p;var jd=n(3650);const Ad=()=>{const{t:e}=Ae("common");return(0,Xo.jsx)("div",{className:"footer",children:(0,Xo.jsxs)("div",{className:"sb__footer section__padding",children:[(0,Xo.jsxs)("div",{className:"sb__footer-links",children:[(0,Xo.jsxs)("div",{className:"sb__footer-links-div",children:[(0,Xo.jsx)("h4",{children:e("company")}),(0,Xo.jsx)("a",{className:"belowa",href:"/about",children:(0,Xo.jsx)("p",{children:e("about")})}),(0,Xo.jsx)("a",{className:"belowa",href:"/press",children:(0,Xo.jsx)("p",{children:e("press")})}),(0,Xo.jsx)("a",{className:"belowa",href:"mailto:[email protected]",children:(0,Xo.jsx)("p",{children:e("contact")})})]}),(0,Xo.jsxs)("div",{className:"sb__footer-links-div",children:[(0,Xo.jsx)("h4",{children:e("followUs")}),(0,Xo.jsx)("div",{className:"socialmedia",children:(0,Xo.jsx)("a",{href:"https://x.com/Xsubscribebio",style:{margin:"0 3px",color:"white"},children:(0,Xo.jsx)(jd.A,{})})})]})]}),(0,Xo.jsx)("hr",{}),(0,Xo.jsxs)("div",{className:"sb__footer-below",children:[(0,Xo.jsx)("div",{className:"sb__footer-copyright",children:(0,Xo.jsx)("p",{})}),(0,Xo.jsxs)("div",{className:"sb__footer-below-links",children:[(0,Xo.jsxs)("a",{className:"belowa",href:"/terms",children:[" ",(0,Xo.jsx)("div",{children:(0,Xo.jsx)("p",{children:e("termsAndConditions")})})]}),(0,Xo.jsxs)("a",{className:"belowa",href:"/about/cookie-notice/",children:[" ",(0,Xo.jsx)("div",{children:(0,Xo.jsx)("p",{children:e("cookiePolicy")})})]})]})]})]})})};n.p,n.p;var Nd=n(5173),Pd=n.n(Nd),Rd=n(8161),Ld=n.n(Rd),Id=n(6366),Dd=n.n(Id),Od=n(2123),Md=n.n(Od),_d="bodyAttributes",Fd="htmlAttributes",Bd="titleAttributes",Ud={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},zd=(Object.keys(Ud).map((function(e){return Ud[e]})),"charset"),Gd="cssText",Wd="href",Hd="http-equiv",Vd="innerHTML",Kd="itemprop",qd="name",Yd="property",Xd="rel",Jd="src",Qd="target",Zd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$d="defaultTitle",eu="defer",tu="encodeSpecialCharacters",nu="onChangeClientState",ru="titleTemplate",iu=Object.keys(Zd).reduce((function(e,t){return e[Zd[t]]=t,e}),{}),au=[Ud.NOSCRIPT,Ud.SCRIPT,Ud.STYLE],su="data-react-helmet",ou="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},lu=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),cu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},uu=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},hu=function(e){var t=vu(e,Ud.TITLE),n=vu(e,ru);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=vu(e,$d);return t||r||void 0},pu=function(e){return vu(e,nu)||function(){}},mu=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return cu({},e,t)}),{})},fu=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[Ud.BASE]}
2)).map((function(e){return e[Ud.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var a=r[i].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},gu=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&ku("Helmet: "+e+' should be of type "Array". Instead found type "'+ou(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),s=0;s<a.length;s++){var o=a[s],l=o.toLowerCase();-1===t.indexOf(l)||n===Xd&&"canonical"===e[n].toLowerCase()||l===Xd&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(o)||o!==Vd&&o!==Gd&&o!==Kd||(n=o)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(i),s=0;s<a.length;s++){var o=a[s],l=Md()({},r[o],i[o]);r[o]=l}return e}),[]).reverse()},vu=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},bu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){bu(t)}),0)}}(),yu=function(e){return clearTimeout(e)},xu="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||bu:n.g.requestAnimationFrame||bu,Su="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||yu:n.g.cancelAnimationFrame||yu,ku=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},wu=null,Tu=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,o=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,d=e.styleTags,u=e.title,h=e.titleAttributes;ju(Ud.BODY,r),ju(Ud.HTML,i),Eu(u,h);var p={baseTag:Au(Ud.BASE,n),linkTags:Au(Ud.LINK,a),metaTags:Au(Ud.META,s),noscriptTags:Au(Ud.NOSCRIPT,o),scriptTags:Au(Ud.SCRIPT,c),styleTags:Au(Ud.STYLE,d)},m={},f={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(m[e]=n),r.length&&(f[e]=p[e].oldTags)})),t&&t(),l(e,m,f)},Cu=function(e){return Array.isArray(e)?e.join(""):e},Eu=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=Cu(e)),ju(Ud.TITLE,t)},ju=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(su),i=r?r.split(","):[],a=[].concat(i),s=Object.keys(t),o=0;o<s.length;o++){var l=s[o],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var d=a.indexOf(l);-1!==d&&a.splice(d,1)}for(var u=a.length-1;u>=0;u--)n.removeAttribute(a[u]);i.length===a.length?n.removeAttribute(su):n.getAttribute(su)!==s.join(",")&&n.setAttribute(su,s.join(","))}},Au=function(e,t){var n=document.head||document.querySelector(Ud.HEAD),r=n.querySelectorAll(e+"["+su+"]"),i=Array.prototype.slice.call(r),a=[],s=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Vd)n.innerHTML=t.innerHTML;else if(r===Gd)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var o="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,o)}n.setAttribute(su,"true"),i.some((function(e,t){return s=t,n.isEqualNode(e)}))?i.splice(s,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},Nu=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Pu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Zd[n]||n]=e[n],t}),t)},Ru=function(e,t,n){switch(e){case Ud.TITLE:return{toComponent:function(){return function(e,t,n){var r,i=((r={key:t})[su]=!0,r),a=Pu(n,i);return[$.createElement(Ud.TITLE,a,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=Nu(n),a=Cu(t);return i?"<"+e+" "+su+'="true" '+i+">"+uu(a,r)+"</"+e+">":"<"+e+" "+su+'="true">'+uu(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case _d:case Fd:return{toComponent:function(){return Pu(t)},toString:function(){return Nu(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[su]=!0,r);return Object.keys(t).forEach((function(e){var n=Zd[e]||e;if(n===Vd||n===Gd){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),$.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===Vd||e===Gd)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+uu(r[t],n)+'"';return e?e+" "+i:i}),""),a=r.innerHTML||r.cssText||"",s=-1===au.indexOf(e);return t+"<"+e+" "+su+'="true" '+i+(s?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},Lu=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,o=e.noscriptTags,l=e.scriptTags,c=e.styleTags,d=e.title,u=void 0===d?"":d,h=e.titleAttributes;return{base:Ru(Ud.BASE,t,r),bodyAttributes:Ru(_d,n,r),htmlAttributes:Ru(Fd,i,r),link:Ru(Ud.LINK,a,r),meta:Ru(Ud.META,s,r),noscript:Ru(Ud.NOSCRIPT,o,r),script:Ru(Ud.SCRIPT,l,r),style:Ru(Ud.STYLE,c,r),title:Ru(Ud.TITLE,{title:u,titleAttributes:h},r)}},Iu=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!Dd()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Ud.SCRIPT:case Ud.NOSCRIPT:return{innerHTML:t};case Ud.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,a=e.nestedChildren;return cu({},r,((t={})[n.type]=[].concat(r[n.type]||[],[cu({},i,this.mapNestedChildrenToProps(n,a))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,a=e.newChildProps,s=e.nestedChildren;switch(r.type){case Ud.TITLE:return cu({},i,((t={})[r.type]=s,t.titleAttributes=cu({},a),t));case Ud.BODY:return cu({},i,{bodyAttributes:cu({},a)});case Ud.HTML:return cu({},i,{htmlAttributes:cu({},a)})}return cu({},i,((n={})[r.type]=cu({},a),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=cu({},t);return Object.keys(e).forEach((function(t){var r;n=cu({},n,((r={})[t]=e[t],r))})),n}
2,n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return $.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,a=i.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[iu[n]||n]=e[n],t}),t)}(du(i,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case Ud.LINK:case Ud.META:case Ud.NOSCRIPT:case Ud.SCRIPT:case Ud.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=du(t,["children"]),i=cu({},r);return n&&(i=this.mapChildrenToProps(n,i)),$.createElement(e,i)},lu(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}($.Component),t.propTypes={base:Pd().object,bodyAttributes:Pd().object,children:Pd().oneOfType([Pd().arrayOf(Pd().node),Pd().node]),defaultTitle:Pd().string,defer:Pd().bool,encodeSpecialCharacters:Pd().bool,htmlAttributes:Pd().object,link:Pd().arrayOf(Pd().object),meta:Pd().arrayOf(Pd().object),noscript:Pd().arrayOf(Pd().object),onChangeClientState:Pd().func,script:Pd().arrayOf(Pd().object),style:Pd().arrayOf(Pd().object),title:Pd().string,titleAttributes:Pd().object,titleTemplate:Pd().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Lu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(Ld()((function(e){return{baseTag:fu([Wd,Qd],e),bodyAttributes:mu(_d,e),defer:vu(e,eu),encode:vu(e,tu),htmlAttributes:mu(Fd,e),linkTags:gu(Ud.LINK,[Xd,Wd],e),metaTags:gu(Ud.META,[qd,zd,Hd,Yd,Kd],e),noscriptTags:gu(Ud.NOSCRIPT,[Vd],e),onChangeClientState:pu(e),scriptTags:gu(Ud.SCRIPT,[Jd,Vd],e),styleTags:gu(Ud.STYLE,[Gd],e),title:hu(e),titleAttributes:mu(Bd,e)}}),(function(e){wu&&Su(wu),e.defer?wu=xu((function(){Tu(e,(function(){wu=null}))})):(Tu(e),wu=null)}),Lu)((function(){return null})));Iu.renderStatic=Iu.rewind;const Du=Iu,Ou=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";var Mu=n(8168),_u=n(9292),Fu=n(8610),Bu=n(5025),Uu=n(1722),zu=n(9436),Gu=n(2830),Wu=(n(5513),n(219)),Hu=n.n(Wu),Vu=(0,Bu.w)((function(e,t){var n=e.styles,r=(0,Gu.J)([n],void 0,$.useContext(Bu.T));if(!Bu.i){for(var i,a=r.name,s=r.styles,o=r.next;void 0!==o;)a+=" "+o.name,s+=o.styles,o=o.next;var l=!0===t.compat,c=t.insert("",{name:a,styles:s},t.sheet,l);return l?null:$.createElement("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var d=$.useRef();return(0,zu.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),d.current=[n,i],function(){n.flush()}}),[t]),(0,zu.i)((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,Uu.sk)(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Gu.J)(t)}var qu=function(){var e=Ku.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var Yu=n(6803),Xu=n(2876),Ju=n(4535),Qu=n(2532),Zu=n(2372);function $u(e){return(0,Zu.A)("MuiCircularProgress",e)}(0,Qu.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var eh,th,nh,rh;const ih=["className","color","disableShrink","size","style","thickness","value","variant"];let ah,sh,oh,lh;const ch=44,dh=qu(ah||(ah=eh||(eh=Ns(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),uh=qu(sh||(sh=th||(th=Ns(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),hh=(0,Ju.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,Yu.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Mu.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&Ku(oh||(oh=nh||(nh=Ns(["\n animation: "," 1.4s linear infinite;\n "]))),dh)})),ph=(0,Ju.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),mh=(0,Ju.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,Yu.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,Mu.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&Ku(lh||(lh=rh||(rh=Ns(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),uh)})),fh=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:a=!1,size:s=40,style:o,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,xe.A)(n,ih),h=(0,Mu.A)({},n,{color:i,disableShrink:a,size:s,thickness:l,value:c,variant:d}),p=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,"color".concat((0,Yu.A)(r))],svg:["svg"],circle:["cir
2cle","circle".concat((0,Yu.A)(n)),i&&"circleDisableShrink"]};return(0,Fu.A)(a,$u,t)})(h),m={},f={},g={};if("determinate"===d){const e=2*Math.PI*((ch-l)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),f.transform="rotate(-90deg)"}return(0,Xo.jsx)(hh,(0,Mu.A)({className:(0,_u.A)(p.root,r),style:(0,Mu.A)({width:s,height:s},f,o),ownerState:h,ref:t,role:"progressbar"},g,u,{children:(0,Xo.jsx)(ph,{className:p.svg,ownerState:h,viewBox:"".concat(22," ").concat(22," ").concat(ch," ").concat(ch),children:(0,Xo.jsx)(mh,{className:p.circle,style:m,ownerState:h,cx:ch,cy:ch,r:(ch-l)/2,fill:"none",strokeWidth:l})})}))})),gh=fh;var vh=n(3462);function bh(e){return"string"===typeof e}function yh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=yh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const xh=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=yh(e))&&(r&&(r+=" "),r+=t);return r};function Sh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function kh(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const wh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Th(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=(0,xe.A)(e,wh),o=a?{}:function(e,t,n){return"function"===typeof e?e(t,n):e}(r,i),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const e=xh(null==n?void 0:n.className,a,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,Mu.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,Mu.A)({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=Sh((0,Mu.A)({},i,r)),o=kh(r),l=kh(i),c=t(s),d=xh(null==c?void 0:c.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==r?void 0:r.className),u=(0,Mu.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),h=(0,Mu.A)({},c,n,l,o);return d.length>0&&(h.className=d),Object.keys(u).length>0&&(h.style=u),{props:h,internalRef:c.ref}}((0,Mu.A)({},s,{externalSlotProps:o})),d=(0,vh.A)(c,null==o?void 0:o.ref,null==(t=e.additionalProps)?void 0:t.ref),u=function(e,t,n){return void 0===e||bh(e)?t:(0,Mu.A)({},t,{ownerState:(0,Mu.A)({},t.ownerState,n)})}(n,(0,Mu.A)({},l,{ref:d}),i);return u}var Ch=n(1782),Eh=n(1668);function jh(e){return e.substring(2).toLowerCase()}function Ah(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,s=$.useRef(!1),o=$.useRef(null),l=$.useRef(!1),c=$.useRef(!1);$.useEffect((()=>(setTimeout((()=>{l.current=!0}),0),()=>{l.current=!1})),[]);const d=(0,vh.A)(t.ref,o),u=(0,Ch.A)((e=>{const t=c.current;c.current=!1;const r=(0,Eh.A)(o.current);if(!l.current||!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let a;a=e.composedPath?e.composedPath().indexOf(o.current)>-1:!r.documentElement.contains(e.target)||o.current.contains(e.target),a||!n&&t||i(e)})),h=e=>n=>{c.current=!0;const r=t.props[e];r&&r(n)},p={ref:d};return!1!==a&&(p[a]=h(a)),$.useEffect((()=>{if(!1!==a){const e=jh(a),t=(0,Eh.A)(o.current),n=()=>{s.current=!0};return t.addEventListener(e,u),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,u),t.removeEventListener("touchmove",n)}}}),[u,a]),!1!==r&&(p[r]=h(r)),$.useEffect((()=>{if(!1!==r){const e=jh(r),t=(0,Eh.A)(o.current);return t.addEventListener(e,u),()=>{t.removeEventListener(e,u)}}}),[u,r]),(0,Xo.jsx)($.Fragment,{children:$.cloneElement(t,p)})}var Nh=n(8653),Ph=n(5170),Rh=n(3375);function Lh(){const e=(0,Nh.A)(Ph.A);return e[Rh.A]||e}
vendor: 7,177 bytes, line 2
2function Ih(e,t){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ih(e,t)}function Dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ih(e,t)}const Oh=!1,Mh=$.createContext(null);var _h="unmounted",Fh="exited",Bh="entering",Uh="entered",zh="exiting",Gh=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=Fh,r.appearStatus=Bh):i=Uh:i=t.unmountOnExit||t.mountOnEnter?_h:Fh,r.state={status:i},r.nextCallback=null,r}Dh(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_h?{status:Fh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Bh&&n!==Uh&&(t=Bh):n!==Bh&&n!==Uh||(t=zh)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bh){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ze.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fh&&this.setState({status:_h})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Ze.findDOMNode(this),r],a=i[0],s=i[1],o=this.getTimeouts(),l=r?o.appear:o.enter;!e&&!n||Oh?this.safeSetState({status:Uh},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:Bh},(function(){t.props.onEntering(a,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Uh},(function(){t.props.onEntered(a,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ze.findDOMNode(this);t&&!Oh?(this.props.onExit(r),this.safeSetState({status:zh},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fh},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fh},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ze.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===_h)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,xe.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return $.createElement(Mh.Provider,{value:null},"function"===typeof n?n(e,r):$.cloneElement($.Children.only(n),r))},t}($.Component);function Wh(){}Gh.contextType=Mh,Gh.propTypes={},Gh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wh,onEntering:Wh,onEntered:Wh,onExit:Wh,onExiting:Wh,onExited:Wh},Gh.UNMOUNTED=_h,Gh.EXITED=Fh,Gh.ENTERING=Bh,Gh.ENTERED=Uh,Gh.EXITING=zh;const Hh=Gh,Vh=e=>e.scrollTop;function Kh(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof a?a[t.mode]:a,delay:s.transitionDelay}}var qh=n(5849);const Yh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xh(e){return"scale(".concat(e,", ").concat(e**2,")")}const Jh={entering:{opacity:1,transform:Xh(1)},entered:{opacity:1,transform:"none"}},Qh="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zh=$.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:a,in:s,onEnter:o,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:h,style:p,timeout:m="auto",TransitionComponent:f=Hh}=e,g=(0,xe.A)(e,Yh),v=$.useRef(),b=$.useRef(),y=Lh(),x=$.useRef(null),S=(0,qh.A)(x,i.ref,t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=k(c),T=k(((e,t)=>{Vh(e);const{duration:n,delay:r,easing:i}=Kh({style:p,timeout:m,easing:a},{mode:"enter"});let s;"auto"===m?(s=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=s):s=n,e.style.transition=[y.transitions.create("opacity",{duration:s,delay:r}),y.transitions.create("transform",{duration:Qh?s:.666*s,delay:r,easing:i})].join(","),o&&o(e,t)})),C=k(l),E=k(h),j=k((e=>{const{duration:t,delay:n,easing:r}=Kh({style:p,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:n}),y.transitions.create("transform",{duration:Qh?i:.666*i,delay:Qh?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xh(.75),d&&d(e)})),A=k(u);return $.useEffect((()=>()=>{clearTimeout(v.current)}),[]),(0,Xo.jsx)(f,(0,Mu.A)({appear:r,in:s,nodeRef:x,onEnter:T,onEntered:C,onEntering:w,onExit:j,onExited:A,onExiting:E,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>$.cloneElement(i,(0,Mu.A)({style:(0,Mu.A)({opacity:0,transform:Xh(.75),visibility:"exited"!==e||s?void 0:"hidden"},Jh[e],p,i.props.style),ref:S},t))}))}));Zh.muiSupportAuto=!0;const $h=Zh;var ep=n(310);const tp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function np(e){return(0,Zu.A)("MuiPaper",e)}(0,Qu.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const rp=["className","component","elevation","square","variant"],ip=(0,Ju.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;
2return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,Mu.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,Mu.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,ep.X4)("#fff",tp(n.elevation)),", ").concat((0,ep.X4)("#fff",tp(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),ap=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:a=1,square:s=!1,variant:o="elevation"}=n,l=(0,xe.A)(n,rp),c=(0,Mu.A)({},n,{component:i,elevation:a,square:s,variant:o}),d=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,Fu.A)(a,np,i)})(c);return(0,Xo.jsx)(ip,(0,Mu.A)({as:i,ownerState:c,className:(0,_u.A)(d.root,r),ref:t},l))}));function sp(e){return(0,Zu.A)("MuiSnackbarContent",e)}(0,Qu.A)("MuiSnackbarContent",["root","message","action"]);const op=["action","className","message","role"],lp=(0,Ju.Ay)(ap,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,ep.tL)(t.palette.background.default,n);return(0,Mu.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),cp=(0,Ju.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),dp=(0,Ju.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),up=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:a,role:s="alert"}=n,o=(0,xe.A)(n,op),l=n,c=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"],action:["action"],message:["message"]},sp,t)})(l);return(0,Xo.jsxs)(lp,(0,Mu.A)({role:s,square:!0,elevation:6,className:(0,_u.A)(c.root,i),ownerState:l,ref:t},o,{children:[(0,Xo.jsx)(cp,{className:c.message,ownerState:l,children:a}),r?(0,Xo.jsx)(dp,{className:c.action,ownerState:l,children:r}):null]}))}));function hp(e){return(0,Zu.A)("MuiSnackbar",e)}(0,Qu.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pp=["onEnter","onExited"],mp=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],fp=(0,Ju.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,Yu.A)(n.anchorOrigin.vertical)).concat((0,Yu.A)(n.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,Mu.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),gp=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiSnackbar"}),r=Lh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:o}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:d,ClickAwayListenerProps:u,ContentProps:h,disableWindowBlurListener:p=!1,message:m,open:f,TransitionComponent:g=$h,transitionDuration:v=i,TransitionProps:{onEnter:b,onExited:y}={}}
2=n,x=(0,xe.A)(n.TransitionProps,pp),S=(0,xe.A)(n,mp),k=(0,Mu.A)({},n,{anchorOrigin:{vertical:s,horizontal:o},autoHideDuration:l,disableWindowBlurListener:p,TransitionComponent:g,transitionDuration:v}),w=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,Yu.A)(n.vertical)).concat((0,Yu.A)(n.horizontal))]};return(0,Fu.A)(r,hp,t)})(k),{getRootProps:T,onClickAway:C}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,s=$.useRef();$.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[i,r]);const o=(0,Ch.A)(((e,t)=>{null==r||r(e,t)})),l=(0,Ch.A)((e=>{r&&null!=e&&(clearTimeout(s.current),s.current=setTimeout((()=>{o(null,"timeout")}),e))}));$.useEffect((()=>(i&&l(t),()=>{clearTimeout(s.current)})),[i,t,l]);const c=()=>{clearTimeout(s.current)},d=$.useCallback((()=>{null!=t&&l(null!=a?a:.5*t)}),[t,a,l]),u=e=>t=>{const n=e.onFocus;null==n||n(t),c()},h=e=>t=>{const n=e.onMouseEnter;null==n||n(t),c()},p=e=>t=>{const n=e.onMouseLeave;null==n||n(t),d()};return $.useEffect((()=>{if(!n&&i)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}}),[n,d,i]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,Mu.A)({},Sh(e),Sh(t));return(0,Mu.A)({role:"presentation"},t,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),d()}),onFocus:u(n),onMouseEnter:h(n),onMouseLeave:p(n)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,Mu.A)({},k)),[E,j]=$.useState(!0),A=Th({elementType:fp,getSlotProps:T,externalForwardedProps:S,ownerState:k,additionalProps:{ref:t},className:[w.root,d]});return!f&&E?null:(0,Xo.jsx)(Ah,(0,Mu.A)({onClickAway:C},u,{children:(0,Xo.jsx)(fp,(0,Mu.A)({},A,{children:(0,Xo.jsx)(g,(0,Mu.A)({appear:!0,in:f,timeout:v,direction:"top"===s?"down":"up",onEnter:(e,t)=>{j(!1),b&&b(e,t)},onExited:e=>{j(!0),y&&y(e)}},x,{children:c||(0,Xo.jsx)(up,(0,Mu.A)({message:m,action:a},h))}))}))}))})),vp=gp;function bp(e){return(0,Zu.A)("MuiAlert",e)}const yp=(0,Qu.A)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var xp=n(3319),Sp=n(2926);function kp(e,t){var n=Object.create(null);return e&&$.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,$.isValidElement)(e)?t(e):e}(e)})),n}function wp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Tp(e,t,n){var r=kp(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var s in e)s in t?a.length&&(i[s]=a,a=[]):a.push(s);var o={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];o[i[l][r]]=n(c)}o[l]=n(l)}for(r=0;r<a.length;r++)o[a[r]]=n(a[r]);return o}(t,r);
vendor: 1,087 bytes, line 2
2return Object.keys(i).forEach((function(a){var s=i[a];if((0,$.isValidElement)(s)){var o=a in t,l=a in r,c=t[a],d=(0,$.isValidElement)(c)&&!c.props.in;!l||o&&!d?l||!o||d?l&&o&&(0,$.isValidElement)(c)&&(i[a]=(0,$.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:wp(s,"exit",e),enter:wp(s,"enter",e)})):i[a]=(0,$.cloneElement)(s,{in:!1}):i[a]=(0,$.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:wp(s,"exit",e),enter:wp(s,"enter",e)})}})),i}var Cp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ep=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Dh(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;
2return{children:t.firstRender?(n=e,r=a,kp(n.children,(function(e){return(0,$.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:wp(e,"appear",n),enter:wp(e,"enter",n),exit:wp(e,"exit",n)})}))):Tp(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=kp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,Mu.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,xe.A)(e,["component","childFactory"]),i=this.state.contextValue,a=Cp(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?$.createElement(Mh.Provider,{value:i},a):$.createElement(Mh.Provider,{value:i},$.createElement(t,r,a))},t}($.Component);Ep.propTypes={},Ep.defaultProps={component:"div",childFactory:function(e){return e}};const jp=Ep;const Ap=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:c}=e,[d,u]=$.useState(!1),h=(0,_u.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-s/2+a,left:-s/2+i},m=(0,_u.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return o||d||u(!0),$.useEffect((()=>{if(!o&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,o,c]),(0,Xo.jsx)("span",{className:h,style:p,children:(0,Xo.jsx)("span",{className:m})})};const Np=(0,Qu.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var Pp,Rp,Lp,Ip;const Dp=["center","classes","className"];let Op,Mp,_p,Fp;const Bp=qu(Op||(Op=Pp||(Pp=Ns(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),Up=qu(Mp||(Mp=Rp||(Rp=Ns(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),zp=qu(_p||(_p=Lp||(Lp=Ns(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),Gp=(0,Ju.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Wp=(0,Ju.Ay)(Ap,{name:"MuiTouchRipple",slot:"Ripple"})(Fp||(Fp=Ip||(Ip=Ns(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),Np.rippleVisible,Bp,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Np.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Np.child,Np.childLeaving,Up,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Np.childPulsate,zp,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Hp=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,s=(0,xe.A)(n,Dp),[o,l]=$.useState([]),c=$.useRef(0),d=$.useRef(null);$.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[o]);const u=$.useRef(!1),h=$.useRef(0),p=$.useRef(null),m=$.useRef(null);$.useEffect((()=>()=>{h.current&&clearTimeout(h.current)}),[]);const f=$.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:s}=e;l((e=>[...e,(0,Xo.jsx)(Wp,{classes:{ripple:(0,_u.A)(i.ripple,Np.ripple),rippleVisible:(0,_u.A)(i.rippleVisible,Np.rippleVisible),ripplePulsate:(0,_u.A)(i.ripplePulsate,Np.ripplePulsate),child:(0,_u.A)(i.child,Np.child),childLeaving:(0,_u.A)(i.childLeaving,Np.childLeaving),childPulsate:(0,_u.A)(i.childPulsate,Np.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,d.current=s}),[i]),g=$.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:i=!1,center:a=r||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const o=s?null:m.current,l=o?o.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(a)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2===0&&(g+=1);
vendor: 6,407 bytes, line 2
2else{const e=2*Math.max(Math.abs((o?o.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((o?o.clientHeight:0)-d),d)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{f({pulsate:i,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((()=>{p.current&&(p.current(),p.current=null)}),80)):f({pulsate:i,rippleX:c,rippleY:d,rippleSize:g,cb:n})}),[r,f]),v=$.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=$.useCallback(((e,t)=>{if(clearTimeout(h.current),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void(h.current=setTimeout((()=>{b(e,t)})));p.current=null,l((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return $.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),(0,Xo.jsx)(Gp,(0,Mu.A)({className:(0,_u.A)(Np.root,i.root,a),ref:m},s,{children:(0,Xo.jsx)(jp,{component:null,exit:!0,children:o})}))})),Vp=Hp;function Kp(e){return(0,Zu.A)("MuiButtonBase",e)}const qp=(0,Qu.A)("MuiButtonBase",["root","disabled","focusVisible"]),Yp=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Xp=(0,Ju.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(qp.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jp=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:o="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:h="a",onBlur:p,onClick:m,onContextMenu:f,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:k,onMouseUp:w,onTouchEnd:T,onTouchMove:C,onTouchStart:E,tabIndex:j=0,TouchRippleProps:A,touchRippleRef:N,type:P}=n,R=(0,xe.A)(n,Yp),L=$.useRef(null),I=$.useRef(null),D=(0,qh.A)(I,N),{isFocusVisibleRef:O,onFocus:M,onBlur:_,ref:F}=(0,Sp.A)(),[B,U]=$.useState(!1);l&&B&&U(!1),$.useImperativeHandle(r,(()=>({focusVisible:()=>{U(!0),L.current.focus()}})),[]);const[z,G]=$.useState(!1);$.useEffect((()=>{G(!0)}),[]);const W=z&&!c&&!l;function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,xp.A)((r=>{t&&t(r);return!n&&I.current&&I.current[e](r),!0}))}$.useEffect((()=>{B&&u&&!c&&z&&I.current.pulsate()}),[c,u,B,z]);const V=H("start",S),K=H("stop",f),q=H("stop",g),Y=H("stop",w),X=H("stop",(e=>{B&&e.preventDefault(),k&&k(e)})),J=H("start",E),Q=H("stop",T),Z=H("stop",C),ee=H("stop",(e=>{_(e),!1===O.current&&U(!1),p&&p(e)}),!1),te=(0,xp.A)((e=>{L.current||(L.current=e.currentTarget),M(e),!0===O.current&&(U(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=L.current;return o&&"button"!==o&&!("A"===e.tagName&&e.href)},re=$.useRef(!1),ie=(0,xp.A)((e=>{u&&!re.current&&B&&I.current&&" "===e.key&&(re.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ae=(0,xp.A)((e=>{u&&" "===e.key&&I.current&&B&&!e.defaultPrevented&&(re.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=o;"button"===se&&(R.href||R.to)&&(se=h);const oe={};"button"===se?(oe.type=void 0===P?"button":P,oe.disabled=l):(R.href||R.to||(oe.role="button"),l&&(oe["aria-disabled"]=l));const le=(0,qh.A)(t,F,L);const ce=(0,Mu.A)({},n,{centerRipple:i,component:o,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:j,focusVisible:B}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a={root:["root",t&&"disabled",n&&"focusVisible"]},s=(0,Fu.A)(a,Kp,i);return n&&r&&(s.root+=" ".concat(r)),s})(ce);return(0,Xo.jsxs)(Xp,(0,Mu.A)({as:se,className:(0,_u.A)(de.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:ie,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Y,onDragLeave:q,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:le,tabIndex:l?-1:j,type:P},oe,R,{children:[a,W?(0,Xo.jsx)(Vp,(0,Mu.A)({ref:D,center:i},A)):null]}))})),Qp=Jp;function Zp(e){return(0,Zu.A)("MuiIconButton",e)}const $p=(0,Qu.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),em=["edge","children","className","color","disabled","disableFocusRipple","size"],tm=(0,Ju.Ay)(Qp,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,Yu.A)(n.color))],n.edge&&t["edge".concat((0,Yu.A)(n.edge))],t["size".concat((0,Yu.A)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,Mu.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,Mu.A)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,Mu.A)({}
2,i&&{backgroundColor:t.vars?"rgba(".concat(i.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat($p.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),nm=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:s="default",disabled:o=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=(0,xe.A)(n,em),u=(0,Mu.A)({},n,{edge:r,color:s,disabled:o,disableFocusRipple:l,size:c}),h=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled","default"!==r&&"color".concat((0,Yu.A)(r)),i&&"edge".concat((0,Yu.A)(i)),"size".concat((0,Yu.A)(a))]};return(0,Fu.A)(s,Zp,t)})(u);return(0,Xo.jsx)(tm,(0,Mu.A)({className:(0,_u.A)(h.root,a),centerRipple:!0,focusRipple:!l,disabled:o,ref:t,ownerState:u},d,{children:i}))})),rm=nm;var im=n(9662);const am=(0,im.A)((0,Xo.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),sm=(0,im.A)((0,Xo.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),om=(0,im.A)((0,Xo.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),lm=(0,im.A)((0,Xo.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),cm=(0,im.A)((0,Xo.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dm=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],um=(0,Ju.Ay)(ap,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Yu.A)(n.color||n.severity))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?ep.e$:ep.a,i="light"===t.palette.mode?ep.a:ep.e$,a=n.color||n.severity;return(0,Mu.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(a,"StandardBg")]:i(t.palette[a].light,.9),["& .".concat(yp.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"outlined"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),border:"1px solid ".concat((t.vars||t).palette[a].light),["& .".concat(yp.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"filled"===n.variant&&(0,Mu.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(a,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(a,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main,color:t.palette.getContrastText(t.palette[a].main)}))})),hm=(0,Ju.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pm=(0,Ju.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mm=(0,Ju.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),fm={success:(0,Xo.jsx)(am,{fontSize:"inherit"}),warning:(0,Xo.jsx)(sm,{fontSize:"inherit"}),error:(0,Xo.jsx)(om,{fontSize:"inherit"}),info:(0,Xo.jsx)(lm,{fontSize:"inherit"})},gm=$.forwardRef((function(e,t){var n,r,i,a,s,o;const l=(0,Xu.A)({props:e,name:"MuiAlert"}),{action:c,children:d,className:u,closeText:h="Close",color:p,components:m={},componentsProps:f={},icon:g,iconMapping:v=fm,onClose:b,role:y="alert",severity:x="success",slotProps:S={},slots:k={},variant:w="standard"}=l,T=(0,xe.A)(l,dm),C=(0,Mu.A)({},l,{color:p,severity:x,variant:w}),E=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,a={root:["root","".concat(t).concat((0,Yu.A)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,Fu.A)(a,bp,i)})(C),j=null!=(n=null!=(r=k.closeButton)?r:m.CloseButton)?n:rm,A=null!=(i=null!=(a=k.closeIcon)?a:m.CloseIcon)?i:cm,N=null!=(s=S.closeButton)?s:f.closeButton,P=null!=(o=S.closeIcon)?o:f.closeIcon;return(0,Xo.jsxs)(um,(0,Mu.A)({role:y,elevation:0,ownerState:C,className:(0,_u.A)(E.root,u),ref:t},T,{children:[!1!==g?(0,Xo.jsx)(hm,{ownerState:C,className:E.icon,children:g||v[x]||fm[x]}):null,(0,Xo.jsx)(pm,{ownerState:C,className:E.message,children:d}),null!=c?(0,Xo.jsx)(mm,{ownerState:C,className:E.action,children:c}):null,null==c&&b?(0,Xo.jsx)(mm,{ownerState:C,className:E.action,children:(0,Xo.jsx)(j,(0,Mu.A)({size:"small","aria-label":h,title:h,color:"inherit",onClick:b},N,{children:(0,Xo.jsx)(A,(0,Mu.A)({fontSize:"small"},P))}))}):null]}))})),vm=gm;function bm(e){let{username:t}=e;const{user:n}=(0,$.useContext)(Qo),[r,i]=(0,$.useState)(""),[a,s]=(0,$.useState)(""),[l,c]=(0,$.useState)(""),[d,u]=(0,$.useState)(""),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)([]),[g,v]=(0,$.useState)("#000000"),[b,y]=(0,$.useState)(""),[x,S]=(0,$.useState)(null),{username:k}=qt(),w=Wt(),T=t||n&&n.username,C=T?T.toLowerCase():"",[E,j]=(0,$.useState)(""),[A,N]=(0,$.useState)(),[P,R]=(0,$.useState)(!0),[L,I]=(0,$.useState)(!0),[D,O]=(0,$.useState)(!1),[M,_]=(0,$.useState)(null),[F,B]=(0,$.useState)(""),[U,z]=(0,$.useState)(!1),[G,W]=(0,$.useState)(!1),[H,V]=(0,$.useState)(!1),K=Vt(),q={backgroundImage:"url(".concat(h,")"),backgroundColor:g,backgroundSize:"cover"},Y=async()=>{try{W(!0);const e=await ks.post("/v1/stripe/create-subscription",o({creatorId:x._id},n&&{userId:n._id}));window.location.href=e.data.url}catch(e){console.error("Error creating subscription:",e),alert("This is a Demo. You cannot subscribe to this creator."),W(!1)}};function X(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M15 18l-6-6 6-6"})})}(0,$.useEffect)((()=>{(async()=>{try{if(R(!0),!t&&n)n.profilePicture?u(n.profilePicture):u(null);else{const e=await ks.get("/users/getusernameprofilepicture/".concat(C),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));u(t)}}}catch(e){console.error("Error fetching profile picture:",e)}finally{R(!1)}})()}),[T,C,t,n]),(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/getuserbackgroundpicture/".concat(C),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));p(t)}}catch(e){console.error("Error fetching background picture:",e)}finally{I(!1)}})()}),[T,C]),(0,$.useEffect)((()=>{(async()=>{try{if(I(!0),!t&&n){S(n);const e=await ks.get("/users/profileTitleFetch?username=".concat(n.username));i(e.data.profileTitle),s(n.bluecheck),j(n.goldcheck);const t=await ks.get("/users/profileBioFetch?username=".concat(n.username));c(t.data.profileBio),v(e.data.backgroundColor);const r=await ks.get("/userlinksFetch?username=".concat(n.username));f(r.data.links),N(e.data.logo),y(e.data.backgroundType);const a=await ks.get("/users/creator-settings/".concat(n._id));O(a.data.subscriptionEnabled),_(a.data.subscriptionPrice),B(a.data.subscriptionDescription)}else{const t=await ks.get("/users?username=".concat(C));if(0===t.data.length)S(null);else{const r=t.data;S(r);const a=await ks.get("/users/profileTitleFetch?username=".concat(C));i(a.data.profileTitle),s(t.data.bluecheck),j(t.data.goldcheck);const o=await ks.get("/users/profileBioFetch?username=".concat(C));c(o.data.profileBio),v(a.data.backgroundColor);const l=await ks.get("/userlinksFetch?username=".concat(C));f(l.data.links),N(a.data.logo),y(a.data.backgroundType);const d=await ks.get("/users/creator-settings/".concat(r._id));if(O(d.data.subscriptionEnabled),_(d.data.subscriptionPrice),B(d.data.subscriptionDescription),n)try{const e=await ks.get("/users/check-subscription/".concat(r._id));z(e.data.isSubscribed)}catch(e){console.error("Error checking subscription status:",e)}}}}catch(e){console.error("Error fetching user data:",e)}finally{I(!1)}})()}),[T,C,t,n]),(0,$.useEffect)((()=>{(async()=>{const e=new URLSearchParams(window.location.search).get("session_id");e&&(n?V(!0):window.location.href="/signup?session_id=".concat(e,"&creator=").concat(T))})()}),[n,T]);const J=()=>{var e;const t=null===(e=w.state)||void 0===e?void 0:e.backTo;return t?K(t,{replace:!0}):window.history.length>1?K(-1):void K("/",{replace:!0})};return L?(0,Xo.jsx)("div",{className:"loading-container",children:(0,Xo.jsx)(gh,{size:50,style:{color:"white"}})}):t?(0,Xo.jsxs)("div",{className:"streaming-page",children:[(0,Xo.jsxs)("header",{className:"page-topbar",children:[(0,Xo.jsx)("button",{type:"button",className:"topbar-back","aria-label":"Back",onClick:J,children:(0,Xo.jsx)(X,{})}),(0,Xo.jsx)("div",{className:"page-topbar-title",children:"Profile"})]}),(0,Xo.jsxs)("div",{className:"profile-container1",children:[(0,Xo.jsx)(Du,{}),(0,Xo.jsx)(vp,{open:H,autoHideDuration:6e3,onClose:()=>V(!1),anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,Xo.jsxs)(vm,{onClose:()=>V(!1),severity:"success",sx:{width:"100%"},children:["Successfully subscribed to ",r,"!"]})}),"FlatColour"===b&&(0,Xo.jsxs)("div",{className:"profile-container1",style:{backgroundColor:g},children:[(0,Xo.jsxs)("section",{className:"animated-background",children:[(0,Xo.jsx)("div",{id:"stars1"}),(0,Xo.jsx)("div",{id:"stars2"}),(0,Xo.jsx)("div",{id:"stars3"})]}),(0,Xo.jsx)("a",{id:"profilePicture",children:P?(0,Xo.jsx)(gh,{size:30,style:{color:"white"}}):d?(0,Xo.jsx)("img",{src:d,alt:"Profile"}):(0,Xo.jsx)("p",{className:"profilenulltext",children:"@"})}),(0,Xo.jsx)("div",{className:"overlay",id:"popup",children:(0,Xo.jsxs)("div",{className:"popup",children:[(0,Xo.jsx)("div",{className:"popup-photo",children:(0,Xo.jsx)("a",{href:"https://avatars0.githubusercontent.com/u/43749971",target:"_blank",rel:"noopener noreferrer",children:(0,Xo.jsx)("img",{src:"https://pbs.twimg.com/profile_images/1700343203616940032/Y0KMbn_z_400x400.jpg",alt:"ProfilePicture"})})}),(0,Xo.jsx)("div",{className:"popup-quote",children:"We locked in."}),(0,Xo.jsx)("button",{className:"popup-close",onClick:()=>window.history.back(),children:"\xd7"})]})}),(0,Xo.jsxs)("div",{id:"userName",className:"userName",children:[(0,Xo.jsx)("span",{style:{fontSize:"20px",fontWeight:"bold"},children:r}),a&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/bluecheck.svg",alt:"Blue Check Mark",className:"blue-check-mark"}),E&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/goldcheck.png",alt:"Gold Check Mark",className:"gold-check-mark"})]}),(0,Xo.jsx)("div",{id:"userName",className:"bioName",children:l}),D&&M&&(0,Xo.jsx)("div",{className:"subscribe-container",children:U?(0,Xo.jsx)("div",{className:"subscribed-badge",children:"\u2713 Subscribed"}):(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsx)("button",{className:"subscribe-button",onClick:Y,disabled:G,children:G?(0,Xo.jsx)(gh,{size:20,style:{color:"white"}}):"Subscribe $".concat(M,"/month")})})}),(0,Xo.jsx)("div",{id:"links",children:m.map(((e,t)=>(0,Xo.jsxs)("a",{className:"link",href:e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:"http://".concat(e.url),target:"_blank",rel:"noopener noreferrer",children:[(0,Xo.jsx)("i",{className:"fab ".concat(e.icon),children:"\xa0"}),e.title]},t)))}),(0,Xo.jsx)(wn,{to:"/home",style:{textDecoration:"none",display:"flex",justifyContent:"center",alignItems:"center"},children:!A&&(0,Xo.jsxs)("button",{style:{width:"235px",cursor:"pointer",background:"white",border:"none",borderRadius:"30px",color:"black",fontSize:"15px",display:"flex",alignItems:"center",fontWeight:"bold",padding:"16px 20px",boxShadow:"0px 4px 1px rgba(0, 0, 0, 0.1)"},children:[(0,Xo.jsx)("img",{className:"navlogomobile2",src:Ou,alt:""}),"Create Your XSubscribe"]})})]}),"Image"===b&&h&&(0,Xo.jsxs)("div",{className:"profile-container1",style:q,children:[(0,Xo.jsxs)("section",{className:"animated-background",children:[(0,Xo.jsx)("div",{id:"stars1"}),(0,Xo.jsx)("div",{id:"stars2"}),(0,Xo.jsx)("div",{id:"stars3"})]}),(0,Xo.jsx)("a",{id:"profilePicture",children:P?(0,Xo.jsx)(gh,{size:30,style:{color:"white"}}):d?(0,Xo.jsx)("img",{src:d,alt:"Profile"}):(0,Xo.jsx)("p",{className:"profilenulltext",children:"@"})}),(0,Xo.jsxs)("div",{id:"userName",className:"userName",children:[r,a&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/bluecheck.svg",alt:"Blue Check Mark",className:"blue-check-mark"}),E&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/goldcheck.png",alt:"Gold Check Mark",className:"gold-check-mark"})]}),(0,Xo.jsx)("div",{id:"userName",className:"bioName",children:l}),D&&M&&(0,Xo.jsx)("div",{className:"subscribe-container",children:U?(0,Xo.jsx)("div",{className:"subscribed-badge",children:"\u2713 Subscribed"}):(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsx)("button",{className:"subscribe-button",onClick:Y,disabled:G,children:G?(0,Xo.jsx)(gh,{size:20,style:{color:"white"}}):"Subscribe $".concat(M,"/month")})})}),(0,Xo.jsx)("div",{id:"links",children:m.map(((e,t)=>(0,Xo.jsxs)("a",{className:"link",href:e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:"http://".concat(e.url),target:"_blank",rel:"noopener noreferrer",children:[(0,Xo.jsx)("i",{className:"fab ".concat(e.icon),children:"\xa0"}),e.title]},t)))}),(0,Xo.jsx)(wn,{to:"/home",style:{textDecoration:"none",display:"flex",justifyContent:"center",alignItems:"center"},children:!A&&(0,Xo.jsxs)("button",{style:{width:"235px",cursor:"pointer",background:"white",border:"none",borderRadius:"30px",color:"black",fontSize:"15px",display:"flex",alignItems:"center",fontWeight:"bold",padding:"16px 20px",boxShadow:"0px 4px 1px rgba(0, 0, 0, 0.1)"},children:[(0,Xo.jsx)("img",{className:"navlogomobile2",src:Ou,alt:""}),"Create Your XSubcribe"]})})]})]})]}):(0,Xo.jsxs)("div",{className:"streaming-page",children:[(0,Xo.jsxs)("header",{className:"page-topbar",children:[(0,Xo.jsx)("button",{type:"button",className:"topbar-back","aria-label":"Back",onClick:J,children:(0,Xo.jsx)(X,{})}),(0,Xo.jsx)("div",{className:"page-topbar-title",children:"Profile"})]}),(0,Xo.jsxs)("div",{className:"profile-page",children:[(0,Xo.jsxs)("div",{className:"profile-container",children:[(0,Xo.jsx)("div",{className:"profile-avatar-section",children:(0,Xo.jsx)("div",{className:"avatar-display",children:P?(0,Xo.jsx)(gh,{size:60,style:{color:"#000000"}}):d?(0,Xo.jsx)("img",{src:d,alt:"Profile",className:"current-avatar"}):(0,Xo.jsx)("div",{className:"default-avatar",children:n?n.username.charAt(0).toUpperCase():"@"})})}),(0,Xo.jsxs)("div",{className:"profile-info",children:[(0,Xo.jsx)("div",{className:"profile-name",children:r}),(0,Xo.jsx)("div",{className:"profile-bio",children:l})]})]}),(0,Xo.jsx)("div",{className:"profile-footer",children:(0,Xo.jsx)("div",{className:"footer-text"})}),(0,Xo.jsx)(vp,{open:H,autoHideDuration:4e3,onClose:()=>V(!1),anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,Xo.jsx)(vm,{onClose:()=>V(!1),severity:"success",sx:{width:"100%"},children:"Profile picture updated!"})})]})]})}function ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ym(Object(n),!0).forEach((function(t){wm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sm(e){return Sm="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},Sm(e)}function km(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(K6){o=!0,i=K6}finally{try{s||null==n.return||n.return()}finally{if(o)throw i}}return a}(e,t)||Em(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cm(e){return function(e){if(Array.isArray(e))return jm(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Em(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Em(e,t){if(e){if("string"===typeof e)return jm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jm(e,t):void 0}}function jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Am=function(){},Nm={},Pm={},Rm=null,Lm={mark:Am,measure:Am};try{"undefined"!==typeof window&&(Nm=window),"undefined"!==typeof document&&(Pm=document),"undefined"!==typeof MutationObserver&&(Rm=MutationObserver),"undefined"!==typeof performance&&(Lm=performance)}catch(Ps){}var Im,Dm,Om,Mm,_m,Fm=(Nm.navigator||{}).userAgent,Bm=void 0===Fm?"":Fm,Um=Nm,zm=Pm,Gm=Rm,Wm=Lm,Hm=(Um.document,!!zm.documentElement&&!!zm.head&&"function"===typeof zm.addEventListener&&"function"===typeof zm.createElement),Vm=~Bm.indexOf("MSIE")||~Bm.indexOf("Trident/"),Km="___FONT_AWESOME___",qm="svg-inline--fa",Ym="data-fa-i2svg",Xm="data-fa-pseudo-element",Jm="data-prefix",Qm="data-icon",Zm="fontawesome-i2svg",$m=["HTML","HEAD","STYLE","SCRIPT"],ef=function(){try{return!0}catch(Ps){return!1}}(),tf="classic",nf="sharp",rf=[tf,nf];function af(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[tf]}})}var sf=af((wm(Im={},tf,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),wm(Im,nf,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Im)),of=af((wm(Dm={},tf,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),wm(Dm,nf,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),Dm)),lf=af((wm(Om={},tf,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),wm(Om,nf,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Om)),cf=af((wm(Mm={},tf,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),wm(Mm,nf,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Mm)),df=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,uf="fa-layers-text",hf=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,pf=af((wm(_m={}
2,tf,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),wm(_m,nf,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),_m)),mf=[1,2,3,4,5,6,7,8,9,10],ff=mf.concat([11,12,13,14,15,16,17,18,19,20]),gf=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],vf="duotone-group",bf="swap-opacity",yf="primary",xf="secondary",Sf=new Set;Object.keys(of[tf]).map(Sf.add.bind(Sf)),Object.keys(of[nf]).map(Sf.add.bind(Sf));var kf=[].concat(rf,Cm(Sf),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",vf,bf,yf,xf]).concat(mf.map((function(e){return"".concat(e,"x")}))).concat(ff.map((function(e){return"w-".concat(e)}))),wf=Um.FontAwesomeConfig||{};if(zm&&"function"===typeof zm.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Tm(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=zm.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==i&&null!==i&&(wf[r]=i)}))}var Tf={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:qm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wf.familyPrefix&&(wf.cssPrefix=wf.familyPrefix);var Cf=xm(xm({},Tf),wf);Cf.autoReplaceSvg||(Cf.observeMutations=!1);var Ef={};Object.keys(Tf).forEach((function(e){Object.defineProperty(Ef,e,{enumerable:!0,set:function(t){Cf[e]=t,jf.forEach((function(e){return e(Ef)}))},get:function(){return Cf[e]}})})),Object.defineProperty(Ef,"familyPrefix",{enumerable:!0,set:function(e){Cf.cssPrefix=e,jf.forEach((function(e){return e(Ef)}))},get:function(){return Cf.cssPrefix}}),Um.FontAwesomeConfig=Ef;var jf=[];var Af=16,Nf={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Pf(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Rf(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Lf(e){return e.classList?Rf(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function If(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Df(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function Of(e){return e.size!==Nf.size||e.x!==Nf.x||e.y!==Nf.y||e.rotate!==Nf.rotate||e.flipX||e.flipY}function Mf(){var e="fa",t=qm,n=Ef.cssPrefix,r=Ef.replacementClass,i
vendor: 22,290 bytes, line 2
2=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||
2r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(o,".".concat(r))}return i}var _f=!1;function Ff(){Ef.autoAddCss&&!_f&&(!function(e){if(e&&Hm){var t=zm.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=zm.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=a)}zm.head.insertBefore(t,r)}}(Mf()),_f=!0)}var Bf={mixout:function(){return{dom:{css:Mf,insertCss:Ff}}},hooks:function(){return{beforeDOMElementCreation:function(){Ff()},beforeI2svg:function(){Ff()}}}},Uf=Um||{};Uf[Km]||(Uf[Km]={}),Uf[Km].styles||(Uf[Km].styles={}),Uf[Km].hooks||(Uf[Km].hooks={}),Uf[Km].shims||(Uf[Km].shims=[]);var zf=Uf[Km],Gf=[],Wf=!1;function Hf(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"===typeof e?If(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(If(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(Hf).join(""),"</").concat(t,">")}function Vf(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Hm&&((Wf=(zm.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(zm.readyState))||zm.addEventListener("DOMContentLoaded",(function e(){zm.removeEventListener("DOMContentLoaded",e),Wf=1,Gf.map((function(e){return e()}))})));var Kf=function(e,t,n,r){var i,a,s,o=Object.keys(e),l=o.length,c=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,s=e[o[0]]):(i=0,s=n);i<l;i++)s=c(s,e[a=o[i]],a,e);return s};function qf(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Yf(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Xf(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,i=Yf(t);"function"!==typeof zf.hooks.addPack||r?zf.styles[e]=xm(xm({},zf.styles[e]||{}),i):zf.hooks.addPack(e,Yf(t)),"fas"===e&&Xf("fa",t)}var Jf,Qf,Zf,$f=zf.styles,eg=zf.shims,tg=(wm(Jf={},tf,Object.values(lf[tf])),wm(Jf,nf,Object.values(lf[nf])),Jf),ng=null,rg={},ig={},ag={},sg={},og={},lg=(wm(Qf={},tf,Object.keys(sf[tf])),wm(Qf,nf,Object.keys(sf[nf])),Qf);function cg(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~kf.indexOf(n))?null:a}var dg,ug=function(){var e=function(e){return Kf($f,(function(t,n,r){return t[r]=Kf(n,e,{}),t}),{})};rg=e((function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter((function(e){return"number"===typeof e}));r.forEach((function(t){e[t.toString(16)]=n}))}return e})),ig=e((function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter((function(e){return"string"===typeof e}));r.forEach((function(t){e[t]=n}))}return e})),og=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in $f||Ef.autoFetchSvg,n=Kf(eg,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"===typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});ag=n.names,sg=n.unicodes,ng=gg(Ef.styleDefault,{family:Ef.familyDefault})};function hg(e,t){return(rg[e]||{})[t]}function pg(e,t){return(og[e]||{})[t]}function mg(e){return ag[e]||{prefix:null,iconName:null}}function fg(){return ng}dg=function(e){ng=gg(e.styleDefault,{family:Ef.familyDefault})},jf.push(dg),ug();function gg(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?tf:t,r=sf[n][e],i=of[n][e]||of[n][r],a=e in zf.styles?e:null;return i||a||null}var vg=(wm(Zf={},tf,Object.keys(lf[tf])),wm(Zf,nf,Object.keys(lf[nf])),Zf);function bg(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(wm(t={},tf,"".concat(Ef.cssPrefix,"-").concat(tf)),wm(t,nf,"".concat(Ef.cssPrefix,"-").concat(nf)),t),a=null,s=tf;(e.includes(i[tf])||e.some((function(e){return vg[tf].includes(e)})))&&(s=tf),(e.includes(i[nf])||e.some((function(e){return vg[nf].includes(e)})))&&(s=nf);var o=e.reduce((function(e,t){var n=cg(Ef.cssPrefix,t);if($f[t]?(t=tg[s].includes(t)?cf[s][t]:t,a=t,e.prefix=t):lg[s].indexOf(t)>-1?(a=t,e.prefix=gg(t,{family:s})):n?e.iconName=n:t!==Ef.replacementClass&&t!==i[tf]&&t!==i[nf]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var o="fa"===a?mg(e.iconName):{},l=pg(e.prefix,e.iconName);o.prefix&&(a=null),e.iconName=o.iconName||l||e.iconName,e.prefix=o.prefix||e.prefix,"far"!==e.prefix||$f.far||!$f.fas||Ef.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]}
vendor: 9,160 bytes, line 2
2);return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),o.prefix||s!==nf||!$f.fass&&!Ef.autoFetchSvg||(o.prefix="fass",o.iconName=pg(o.prefix,o.iconName)||o.iconName),"fa"!==o.prefix&&"fa"!==a||(o.prefix=fg()||"fas"),o}var yg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=xm(xm({},e.definitions[t]||{}),i[t]),Xf(t,i[t]);var n=lf[tf][t];n&&Xf(n,i[t]),ug()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,s=r.icon,o=s[2];e[i]||(e[i]={}),o.length>0&&o.forEach((function(t){"string"===typeof t&&(e[i][t]=s)})),e[i][a]=s})),e}}],n&&km(t.prototype,n),r&&km(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xg=[],Sg={},kg={},wg=Object.keys(kg);function Tg(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Sg[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function Cg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Sg[e]||[]).forEach((function(e){e.apply(null,n)}))}function Eg(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return kg[e]?kg[e].apply(null,t):void 0}function jg(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||fg();if(t)return t=pg(n,t)||t,Vf(Ag.definitions,n,t)||Vf(zf.styles,n,t)}var Ag=new yg,Ng={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Hm?(Cg("beforeI2svg",e),Eg("pseudoElements2svg",e),Eg("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===Ef.autoReplaceSvg&&(Ef.autoReplaceSvg=!0),Ef.observeMutations=!0,e=function(){Rg({autoReplaceSvgRoot:n}),Cg("watch",t)},Hm&&(Wf?setTimeout(e,0):Gf.push(e))}},Pg={noAuto:function(){Ef.autoReplaceSvg=!1,Ef.observeMutations=!1,Cg("noAuto")},config:Ef,dom:Ng,parse:{icon:function(e){if(null===e)return null;if("object"===Sm(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:pg(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=gg(e[0]);return{prefix:n,iconName:pg(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Ef.cssPrefix,"-"))>-1||e.match(df))){var r=bg(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||fg(),iconName:pg(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var i=fg();return{prefix:i,iconName:pg(i,e)||e}}}},library:Ag,findIconDefinition:jg,toHtml:Hf},Rg=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?zm:e;(Object.keys(zf.styles).length>0||Ef.autoFetchSvg)&&Hm&&Ef.autoReplaceSvg&&Pg.dom.i2svg({node:t})};function Lg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Hf(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Hm){var t=zm.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Ig(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,s=e.transform,o=e.symbol,l=e.title,c=e.maskId,d=e.titleId,u=e.extra,h=e.watchable,p=void 0!==h&&h,m=r.found?r:n,f=m.width,g=m.height,v="fak"===i,b=[Ef.replacementClass,a?"".concat(Ef.cssPrefix,"-").concat(a):""].filter((function(e){return-1===u.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(u.classes).join(" "),y={children:[],attributes:xm(xm({},u.attributes),{},{"data-prefix":i,"data-icon":a,class:b,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(g)})},x=v&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/g*16*.0625,"em")}:{};p&&(y.attributes[Ym]=""),l&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(d||Pf())},children:[l]}),delete y.attributes.title);var S=xm(xm({},y),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:s,symbol:o,styles:xm(xm({},x),u.styles)}),k=r.found&&n.found?Eg("generateAbstractMask",S)||{children:[],attributes:{}}:Eg("generateAbstractIcon",S)||{children:[],attributes:{}},w=k.children,T=k.attributes;return S.children=w,S.attributes=T,o?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,s=!0===a?"".concat(t,"-").concat(Ef.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:xm(xm({},i),{},{id:s}),children:r}]}]}(S):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,s=e.transform;if(Of(s)&&n.found&&!r.found){var o={x:n.width/n.height/2,y:.5};i.style=Df(xm(xm({},a),{},{"transform-origin":"".concat(o.x+s.x/16,"em ").concat(o.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(S)}function Dg(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,s=e.extra,o=e.watchable,l=void 0!==o&&o,c=xm(xm(xm({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});l&&(c[Ym]="");var d=xm({},s.styles);Of(i)&&(d.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,s=e.startCentered,o=void 0!==s&&s,l="";return l+=o&&Vm?"translate(".concat(t.x/Af-r/2,"em, ").concat(t.y/Af-a/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/Af,"em), calc(-50% + ").concat(t.y/Af,"em)) "):"translate(".concat(t.x/Af,"em, ").concat(t.y/Af,"em) "),l+="scale(".concat(t.size/Af*(t.flipX?-1:1),", ").concat(t.size/Af*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var u=Df(d);u.length>0&&(c.style=u);var h=[];return h.push({tag:"span",attributes:c,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}var Og=zf.styles;function Mg(e){var t=e[0],n=e[1],r=Tm(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ef.cssPrefix,"-").concat(vf)},children:[{tag:"path",attributes:{class:"".concat(Ef.cssPrefix,"-").concat(xf),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ef.cssPrefix,"-").concat(yf),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var _g={found:!1,width:512,height:512};function Fg(e,t){var n=t;return"fa"===t&&null!==Ef.styleDefault&&(t=fg()),new Promise((function(r,i){Eg("missingIconAbstract");if("fa"===n){var a=mg(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Og[t]&&Og[t][e])return r(Mg(Og[t][e]));!function(e,t){ef||Ef.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(xm(xm({},_g),{},{icon:Ef.showMissingIcons&&e&&Eg("missingIconAbstract")||{}}))}))}var Bg=function(){},Ug=Ef.measurePerformance&&Wm&&Wm.mark&&Wm.measure?Wm:{mark:Bg,measure:Bg},zg='FA "6.5.1"',Gg=function(e){Ug.mark("".concat(zg," ").concat(e," ends")),Ug.measure("".concat(zg," ").concat(e),"".concat(zg," ").concat(e," begins"),"".concat(zg," ").concat(e," ends"))},Wg=function(e){return Ug.mark("".concat(zg," ").concat(e," begins")),function(){return Gg(e)}},Hg=function(){};function Vg(e){return"string"===typeof(e.getAttribute?e.getAttribute(Ym):null)}function Kg(e){return zm.createElementNS("http://www.w3.org/2000/svg",e)}function qg(e){return zm.createElement(e)}function Yg(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Kg:qg:t;if("string"===typeof e)return zm.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Yg(e,{ceFn:n}))})),r}var Xg={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Yg(e),t)})),null===t.getAttribute(Ym)&&Ef.keepOriginalSource){var n=zm.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Lf(t).indexOf(Ef.replacementClass))return Xg.replace(e);var r=new RegExp("".concat(Ef.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Ef.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return Hf(e)})).join("\n");t.setAttribute(Ym,""),t.innerHTML=a}};function Jg(e){e()}function Qg(e,t){var n="function"===typeof t?t:Hg;if(0===e.length)n();else{var r=Jg;
2"async"===Ef.mutateApproach&&(r=Um.requestAnimationFrame||Jg),r((function(){var t=!0===Ef.autoReplaceSvg?Xg.replace:Xg[Ef.autoReplaceSvg]||Xg.replace,r=Wg("mutate");e.map(t),r(),n()}))}}var Zg=!1;function $g(){Zg=!0}function ev(){Zg=!1}var tv=null;function nv(e){if(Gm&&Ef.observeMutations){var t=e.treeCallback,n=void 0===t?Hg:t,r=e.nodeCallback,i=void 0===r?Hg:r,a=e.pseudoElementsCallback,s=void 0===a?Hg:a,o=e.observeMutationsRoot,l=void 0===o?zm:o;tv=new Gm((function(e){if(!Zg){var t=fg();Rf(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Vg(e.addedNodes[0])&&(Ef.searchPseudoElements&&s(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ef.searchPseudoElements&&s(e.target.parentNode),"attributes"===e.type&&Vg(e.target)&&~gf.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Jm):null,n=e.getAttribute?e.getAttribute(Qm):null;return t&&n}(e.target)){var r=bg(Lf(e.target)),a=r.prefix,o=r.iconName;e.target.setAttribute(Jm,a||t),o&&e.target.setAttribute(Qm,o)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(Ef.replacementClass)&&i(e.target);var l}))}})),Hm&&tv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function rv(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=bg(Lf(e));return i.prefix||(i.prefix=fg()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=function(e,t){return(ig[e]||{})[t]}(i.prefix,e.innerText)||hg(i.prefix,qf(e.innerText))),!i.iconName&&Ef.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function iv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=rv(e),r=n.iconName,i=n.prefix,a=n.rest,s=function(e){var t=Rf(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ef.autoA11y&&(n?t["aria-labelledby"]="".concat(Ef.replacementClass,"-title-").concat(r||Pf()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=Tg("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return xm({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Nf,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:s}},o)}var av=zf.styles;function sv(e){var t="nest"===Ef.autoReplaceSvg?iv(e,{styleParser:!1}):iv(e);return~t.extra.classes.indexOf(uf)?Eg("generateLayersText",e,t):Eg("generateSvgReplacementMutation",e,t)}var ov=new Set;function lv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Hm)return Promise.resolve();var n=zm.documentElement.classList,r=function(e){return n.add("".concat(Zm,"-").concat(e))},i=function(e){return n.remove("".concat(Zm,"-").concat(e))},a=Ef.autoFetchSvg?ov:rf.map((function(e){return"fa-".concat(e)})).concat(Object.keys(av));a.includes("fa")||a.push("fa");var s=[".".concat(uf,":not([").concat(Ym,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(Ym,"])")}))).join(", ");if(0===s.length)return Promise.resolve();var o=[];try{o=Rf(e.querySelectorAll(s))}catch(Ps){}if(!(o.length>0))return Promise.resolve();r("pending"),i("complete");var l=Wg("onTree"),c=o.reduce((function(e,t){try{var n=sv(t);n&&e.push(n)}catch(Ps){ef||"MissingIcon"===Ps.name&&console.error(Ps)}return e}),[]);return new Promise((function(e,n){Promise.all(c).then((function(n){Qg(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function cv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sv(e).then((function(e){e&&Qg([e],t)}))}rf.map((function(e){ov.add("fa-".concat(e))})),Object.keys(sf[tf]).map(ov.add.bind(ov)),Object.keys(sf[nf]).map(ov.add.bind(ov)),ov=Cm(ov);var dv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Nf:n,i=t.symbol,a=void 0!==i&&i,s=t.mask,o=void 0===s?null:s,l=t.maskId,c=void 0===l?null:l,d=t.title,u=void 0===d?null:d,h=t.titleId,p=void 0===h?null:h,m=t.classes,f=void 0===m?[]:m,g=t.attributes,v=void 0===g?{}
2:g,b=t.styles,y=void 0===b?{}:b;if(e){var x=e.prefix,S=e.iconName,k=e.icon;return Lg(xm({type:"icon"},e),(function(){return Cg("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ef.autoA11y&&(u?v["aria-labelledby"]="".concat(Ef.replacementClass,"-title-").concat(p||Pf()):(v["aria-hidden"]="true",v.focusable="false")),Ig({icons:{main:Mg(k),mask:o?Mg(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:S,transform:xm(xm({},Nf),r),symbol:a,title:u,maskId:c,titleId:p,extra:{attributes:v,styles:y,classes:f}})}))}},uv={mixout:function(){return{icon:(e=dv,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:jg(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:jg(i||{})),e(r,xm(xm({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=lv,e.nodeCallback=cv,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?zm:t,r=e.callback;return lv(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,s=t.transform,o=t.symbol,l=t.mask,c=t.maskId,d=t.extra;return new Promise((function(t,u){Promise.all([Fg(n,a),l.iconName?Fg(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var u=Tm(l,2),h=u[0],p=u[1];t([e,Ig({icons:{main:h,mask:p},prefix:a,iconName:n,transform:s,symbol:o,maskId:c,title:r,titleId:i,extra:d,watchable:!0})])})).catch(u)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,s=Df(e.styles);return s.length>0&&(r.style=s),Of(a)&&(t=Eg("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},hv={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return Lg({type:"layer"},(function(){Cg("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ef.cssPrefix,"-layers")].concat(Cm(r)).join(" ")},children:n}]}))}}}},pv={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,s=t.attributes,o=void 0===s?{}:s,l=t.styles,c=void 0===l?{}:l;return Lg({type:"counter",content:e},(function(){return Cg("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,i=xm(xm(xm({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=Df(r.styles);a.length>0&&(i.style=a);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:r,extra:{attributes:o,styles:c,classes:["".concat(Ef.cssPrefix,"-layers-counter")].concat(Cm(a))}})}))}}}},mv={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Nf:n,i=t.title,a=void 0===i?null:i,s=t.classes,o=void 0===s?[]:s,l=t.attributes,c=void 0===l?{}:l,d=t.styles,u=void 0===d?{}:d;return Lg({type:"text",content:e},(function(){return Cg("beforeDOMElementCreation",{content:e,params:t}),Dg({content:e,transform:xm(xm({},Nf),r),title:a,extra:{attributes:c,styles:u,classes:["".concat(Ef.cssPrefix,"-layers-text")].concat(Cm(o))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,s=null;if(Vm){var o=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();a=l.width/o,s=l.height/o}return Ef.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Dg({content:e.innerHTML,width:a,height:s,transform:r,title:n,extra:i,watchable:!0})])}}},fv=new RegExp('"',"ug"),gv=[1105920,1112319];function vv(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=Rf(e.children).filter((function(e){return e.getAttribute(Xm)===t}))[0],s=Um.getComputedStyle(e,t),o=s.getPropertyValue("font-family").match(hf),l=s.getPropertyValue("font-weight"),c=s.getPropertyValue("content");
vendor: 9,528 bytes, line 2
2if(a&&!o)return e.removeChild(a),r();if(o&&"none"!==c&&""!==c){var d=s.getPropertyValue("content"),u=~["Sharp"].indexOf(o[2])?nf:tf,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?of[u][o[2].toLowerCase()]:pf[u][l],p=function(e){var t=e.replace(fv,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t,0),r=n>=gv[0]&&n<=gv[1],i=2===t.length&&t[0]===t[1];return{value:qf(i?t[0]:t),isSecondary:r||i}}(d),m=p.value,f=p.isSecondary,g=o[0].startsWith("FontAwesome"),v=hg(h,m),b=v;if(g){var y=function(e){var t=sg[e],n=hg("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(m);y.iconName&&y.prefix&&(v=y.iconName,h=y.prefix)}if(!v||f||a&&a.getAttribute(Jm)===h&&a.getAttribute(Qm)===b)r();else{e.setAttribute(n,b),a&&e.removeChild(a);var x={iconName:null,title:null,titleId:null,prefix:null,transform:Nf,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},S=x.extra;S.attributes[Xm]=t,Fg(v,h).then((function(i){var a=Ig(xm(xm({},x),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:b,extra:S,watchable:!0})),s=zm.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map((function(e){return Hf(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function bv(e){return Promise.all([vv(e,"::before"),vv(e,"::after")])}function yv(e){return e.parentNode!==document.head&&!~$m.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Xm)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function xv(e){if(Hm)return new Promise((function(t,n){var r=Rf(e.querySelectorAll("*")).filter(yv).map(bv),i=Wg("searchPseudoElements");$g(),Promise.all(r).then((function(){i(),ev(),t()})).catch((function(){i(),ev(),n()}))}))}var Sv=!1,kv=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},wv={mixout:function(){return{parse:{transform:function(e){return kv(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=kv(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:a,inner:{transform:"".concat(s," ").concat(o," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:xm({},c.outer),children:[{tag:"g",attributes:xm({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:xm(xm({},t.icon.attributes),c.path)}]}]}}}},Tv={x:0,y:0,width:"100%",height:"100%"};function Cv(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Ev={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?bg(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=fg()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,s=e.maskId,o=e.transform,l=i.width,c=i.icon,d=a.width,u=a.icon,h=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:o,containerWidth:d,iconWidth:l}),p={tag:"rect",attributes:xm(xm({},Tv),{},{fill:"white"})},m=c.children?{children:c.children.map(Cv)}:{},f={tag:"g",attributes:xm({},h.inner),children:[Cv(xm({tag:c.tag,attributes:xm(xm({},c.attributes),h.path)},m))]},g={tag:"g",attributes:xm({},h.outer),children:[f]},v="mask-".concat(s||Pf()),b="clip-".concat(s||Pf()),y={tag:"mask",attributes:xm(xm({},Tv),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=u,"g"===t.tag?t.children:[t])},y]};return n.push(x,{tag:"rect",attributes:xm({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},Tv)}),{children:n,attributes:r}}}},jv={provides:function(e){var t=!1;Um.matchMedia&&(t=Um.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:xm(xm({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=xm(xm({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:xm(xm({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:xm(xm({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:xm(xm({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:xm(xm({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:xm(xm({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:xm(xm({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:xm(xm({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;xg=e,Sg={},Object.keys(kg).forEach((function(e){-1===wg.indexOf(e)&&delete kg[e]})),xg.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===Sm(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){Sg[e]||(Sg[e]=[]),Sg[e].push(r[e])}))}e.provides&&e.provides(kg)}))}([Bf,uv,hv,pv,mv,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=xv,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?zm:t;Ef.searchPseudoElements&&xv(n)}}},{mixout:function(){return{dom:{unwatch:function(){$g(),Sv=!0}}}},hooks:function(){return{bootstrap:function(){nv(Tg("mutationObserverCallbacks",{}))},noAuto:function(){tv&&tv.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Sv?ev():nv(Tg("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},wv,Ev,jv,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:Pg});var Av=Pg.library,Nv=Pg.parse,Pv=Pg.icon;function Rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Rv(Object(n),!0).forEach((function(t){Dv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iv(e){return Iv="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},Iv(e)}function Dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ov(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mv(e){return function(e){if(Array.isArray(e))return _v(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return _v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fv(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Bv=["style"];var Uv=!1;try{Uv=!0}catch(Ps){}function zv(e){return e&&"object"===Iv(e)&&e.prefix&&e.iconName&&e.icon?e:Nv.icon?Nv.icon(e):null===e?null:e&&"object"===Iv(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function Gv(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Dv({},e,t):{}}var Wv=$.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,a=e.className,s=e.title,o=e.titleId,l=e.maskId,c=zv(n),d=Gv("classes",[].concat(Mv(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,s=e.shake,o=e.flash,l=e.spin,c=e.spinPulse,d=e.spinReverse,u=e.pulse,h=e.fixedWidth,p=e.inverse,m=e.border,f=e.listItem,g=e.flip,v=e.size,b=e.rotation,y=e.pull,x=(Dv(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":s,"fa-flash":o,"fa-spin":l,"fa-spin-reverse":d,"fa-spin-pulse":c,"fa-pulse":u,"fa-fw":h,"fa-inverse":p,"fa-border":m,"fa-li":f,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(v),"undefined"!==typeof v&&null!==v),Dv(t,"fa-rotate-".concat(b),"undefined"!==typeof b&&null!==b&&0!==b),Dv(t,"fa-pull-".concat(y),"undefined"!==typeof y&&null!==y),Dv(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(e)),Mv(a.split(" ")))),u=Gv("transform","string"===typeof e.transform?Nv.transform(e.transform):e.transform),h=Gv("mask",zv(r)),p=Pv(c,Lv(Lv(Lv(Lv({},d),u),h),{},{symbol:i,title:s,titleId:o,maskId:l}));if(!p)return function(){var e;!Uv&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var m=p.abstract,f={ref:t};return Object.keys(e).forEach((function(t){Wv.defaultProps.hasOwnProperty(t)||(f[t]=e[t])})),Hv(m[0],f)}));Wv.displayName="FontAwesomeIcon",Wv.propTypes={beat:Pd().bool,border:Pd().bool,beatFade:Pd().bool,bounce:Pd().bool,className:Pd().string,fade:Pd().bool,flash:Pd().bool,mask:Pd().oneOfType([Pd().object,Pd().array,Pd().string]),maskId:Pd().string,fixedWidth:Pd().bool,inverse:Pd().bool,flip:Pd().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Pd().oneOfType([Pd().object,Pd().array,Pd().string]),listItem:Pd().bool,pull:Pd().oneOf(["right","left"]),pulse:Pd().bool,rotation:Pd().oneOf([0,90,180,270]),shake:Pd().bool,size:Pd().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Pd().bool,spinPulse:Pd().bool,spinReverse:Pd().bool,symbol
2:Pd().oneOfType([Pd().bool,Pd().string]),title:Pd().string,titleId:Pd().string,transform:Pd().oneOfType([Pd().string,Pd().object]),swapOpacity:Pd().bool},Wv.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Hv=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=function(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Fv(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Fv(t)]=r}return e}),{attrs:{}}),s=r.style,o=void 0===s?{}:s,l=Ov(r,Bv);return a.attrs.style=Lv(Lv({},a.attrs.style),o),t.apply(void 0,[n.tag,Lv(Lv({},a.attrs),l)].concat(Mv(i)))}.bind(null,$.createElement),Vv={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},Kv=Vv,qv={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Yv={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xv={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},Jv={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},Qv={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},Zv=Qv,$v={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},eb={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},tb={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},nb={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},rb=nb,ib={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M160 0c17.7 0 32 14.3 32 32V67.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V445.1c-.4-.1-.9-.1-1.3-.2l-.2 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11V32c0-17.7 14.3-32 32-32z"]};function ab(e){let{onClick:t}=e;return(0,Xo.jsxs)("button",{className:"add-link-button",onClick:t,children:[(0,Xo.jsx)(Wv,{icon:tb})," Add Your Links"]})}const sb=e=>{let{onClose:t,onLinkAdded:n}=e;const[r,i]=(0,$.useState)(""),[a,s]=(0,$.useState)(""),[o,l]=(0,$.useState)(0),[c,d]=(0,$.useState)(""),{user:u}=(0,$.useContext)(Qo);(0,$.useEffect)((()=>{const e=setInterval((async()=>{try{const e=await ks.get("/users/profileBio?userId=".concat(u._id));d(e.data.profileBio)}catch(e){console.error("Error fetching profileTitle:",e)}}),1e3);return()=>clearInterval(e)}),[u._id,c]);return(0,Xo.jsx)("div",{className:"add-link-popup",children:(0,Xo.jsxs)("div",{className:"popup-box",children:[(0,Xo.jsx)("button",{className:"close-button",onClick:t,children:(0,Xo.jsx)(Wv,{icon:rb})}),(0,Xo.jsxs)("div",{className:"input-container",children:[(0,Xo.jsxs)("div",{className:"input-row",children:[(0,Xo.jsx)("label",{htmlFor:"urlInput",children:"Enter URL"}),(0,Xo.jsx)("input",{type:"text",id:"urlInput",placeholder:"https://example.com",value:r,onChange:e=>i(e.target.value),className:"text-input"})]}),(0,Xo.jsxs)("div",{className:"input-row",children:[(0,Xo.jsx)("label",{htmlFor:"titleInput",children:"Title"}),(0,Xo.jsx)("input",{type:"text",id:"titleInput",placeholder:"Link Title",value:a,onChange:e=>s(e.target.value),className:"text-input"})]}),(0,Xo.jsx)("button",{className:"add-link-button",onClick:()=>
2{if(r&&a){(async e=>{try{201===(await ks.post("/addlink",e,{headers:{"Content-Type":"application/json"}})).status?(i(""),s(""),l(0),n(),t()):console.error("Failed to add link")}catch(r){console.error("Error adding link:",r)}})({url:r,title:a,order:o,userId:u._id}),console.log(u._id)}},children:"Add"})]})]})})};function ob(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lb="function"===typeof Symbol&&Symbol.observable||"@@observable",cb=function(){return Math.random().toString(36).substring(7).split("").join(".")},db={INIT:"@@redux/INIT"+cb(),REPLACE:"@@redux/REPLACE"+cb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cb()}};function ub(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hb(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(ob(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(ob(1));return n(hb)(e,t)}if("function"!==typeof e)throw new Error(ob(2));var i=e,a=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function d(){if(l)throw new Error(ob(3));return a}function u(e){if("function"!==typeof e)throw new Error(ob(4));if(l)throw new Error(ob(5));var t=!0;return c(),o.push(e),function(){if(t){if(l)throw new Error(ob(6));t=!1,c();var n=o.indexOf(e);o.splice(n,1),s=null}}}function h(e){if(!ub(e))throw new Error(ob(7));if("undefined"===typeof e.type)throw new Error(ob(8));if(l)throw new Error(ob(9));try{l=!0,a=i(a,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:db.INIT}),(r={dispatch:h,subscribe:u,getState:d,replaceReducer:function(e){if("function"!==typeof e)throw new Error(ob(10));i=e,h({type:db.REPLACE})}})[lb]=function(){var e,t=u;return e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(ob(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}},e[lb]=function(){return this},e},r}function pb(e,t){return function(){return t(e.apply(this,arguments))}}function mb(e,t){if("function"===typeof e)return pb(e,t);if("object"!==typeof e||null===e)throw new Error(ob(16));var n={};for(var r in e){var i=e[r];"function"===typeof i&&(n[r]=pb(i,t))}return n}function fb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var gb=$.createContext(null);var vb=function(e){e()},bb=function(){return vb};var yb={notify:function(){},get:function(){return[]}};function xb(e,t){var n,r=yb;function i(){s.onStateChange&&s.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=bb(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var s={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=yb)},getListeners:function(){return r}};return s}var Sb="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?$.useLayoutEffect:$.useEffect;const kb=function(e){var t=e.store,n=e.context,r=e.children,i=(0,$.useMemo)((function(){var e=xb(t);return{store:t,subscription:e}}),[t]),a=(0,$.useMemo)((function(){return t.getState()}),[t]);Sb((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var s=n||gb;return $.createElement(s.Provider,{value:i},r)};var wb=n(2086),Tb=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Cb=["reactReduxForwardedRef"],Eb=[],jb=[null,null];function Ab(e,t){var n=e[1];return[t.payload,n+1]}function Nb(e,t,n){Sb((function(){return e.apply(void 0,t)}),n)}function Pb(e,t,n,r,i,a,s){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,s())}function Rb(e,t,n,r,i,a,s,o,l,c){if(e){var d=!1,u=null,h=function(){if(!d){var e,n,h=t.getState();try{e=r(h,i.current)}catch(Ps){n=Ps,u=Ps}n||(u=null),e===a.current?s.current||l():(a.current=e,o.current=e,s.current=!0,
vendor: 4,060 bytes, line 2
2c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u}}}var Lb=function(){return[null,0]};function Ib(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,s=void 0===a?"connectAdvanced":a,o=n.renderCountProp,l=void 0===o?void 0:o,c=n.shouldHandleStateChanges,d=void 0===c||c,u=n.storeKey,h=void 0===u?"store":u,p=(n.withRef,n.forwardRef),m=void 0!==p&&p,f=n.context,g=void 0===f?gb:f,v=(0,xe.A)(n,Tb),b=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=(0,Mu.A)({},v,{getDisplayName:i,methodName:s,renderCountProp:l,shouldHandleStateChanges:d,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t}),o=v.pure;var c=o?$.useMemo:function(e){return e()};function u(n){var r=(0,$.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,xe.A)(n,Cb);return[n.context,e,t]}),[n]),i=r[0],s=r[1],o=r[2],l=(0,$.useMemo)((function(){return i&&i.Consumer&&(0,wb.isContextConsumer)($.createElement(i.Consumer,null))?i:b}),[i,b]),u=(0,$.useContext)(l),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(u)&&Boolean(u.store);var p=h?n.store:u.store,m=(0,$.useMemo)((function(){return function(t){return e(t.dispatch,a)}(p)}),[p]),f=(0,$.useMemo)((function(){if(!d)return jb;var e=xb(p,h?null:u.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,h,u]),g=f[0],v=f[1],y=(0,$.useMemo)((function(){return h?u:(0,Mu.A)({},u,{subscription:g})}),[h,u,g]),x=(0,$.useReducer)(Ab,Eb,Lb),S=x[0][0],k=x[1];if(S&&S.error)throw S.error;var w=(0,$.useRef)(),T=(0,$.useRef)(o),C=(0,$.useRef)(),E=(0,$.useRef)(!1),j=c((function(){return C.current&&o===T.current?C.current:m(p.getState(),o)}),[p,S,o]);Nb(Pb,[T,w,E,o,j,C,v]),Nb(Rb,[d,p,g,m,T,w,E,C,v,k],[p,g,m]);var A=(0,$.useMemo)((function(){return $.createElement(t,(0,Mu.A)({},j,{ref:s}))}),[s,t,j]);return(0,$.useMemo)((function(){return d?$.createElement(l.Provider,{value:y},A):A}),[l,A,y])}var p=o?$.memo(u):u;if(p.WrappedComponent=t,p.displayName=u.displayName=r,m){var f=$.forwardRef((function(e,t){return $.createElement(p,(0,Mu.A)({},e,{reactReduxForwardedRef:t}))}));return f.displayName=r,f.WrappedComponent=t,Hu()(f,t)}return Hu()(p,t)}}function Db(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function Ob(e,t){if(Db(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Db(e[n[i]],t[n[i]]))return!1;return!0}function Mb(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function _b(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Fb(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_b(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=_b(i),i=r(t,n)),i},r}}const Bb=[function(e){return"function"===typeof e?Fb(e):void 0},function(e){return e?void 0:Mb((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?Mb((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];const Ub=[function(e){return"function"===typeof e?Fb(e):void 0},function(e){return e?void 0:Mb((function(){return{}}))}];function zb(e,t,n){return(0,Mu.A)({},n,e,t)}const Gb=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,s=!1;return function(t,n,o){var l=e(t,n,o);return s?i&&a(l,r)||(r=l):(s=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return zb}}];
2var Wb=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Hb(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function Vb(e,t,n,r,i){var a,s,o,l,c,d=i.areStatesEqual,u=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;function m(i,p){var m=!u(p,s),f=!d(i,a,p,s);return a=i,s=p,m&&f?(o=e(a,s),t.dependsOnOwnProps&&(l=t(r,s)),c=n(o,l,s)):m?(e.dependsOnOwnProps&&(o=e(a,s)),t.dependsOnOwnProps&&(l=t(r,s)),c=n(o,l,s)):f?function(){var t=e(a,s),r=!h(t,o);return o=t,r&&(c=n(o,l,s)),c}():c}return function(i,d){return p?m(i,d):(o=e(a=i,s=d),l=t(r,s),c=n(o,l,s),p=!0,c)}}function Kb(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=(0,xe.A)(t,Wb),s=n(e,a),o=r(e,a),l=i(e,a);return(a.pure?Vb:Hb)(s,o,l,e,a)}var qb=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Yb(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Xb(e,t){return e===t}function Jb(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Ib:n,i=t.mapStateToPropsFactories,a=void 0===i?Ub:i,s=t.mapDispatchToPropsFactories,o=void 0===s?Bb:s,l=t.mergePropsFactories,c=void 0===l?Gb:l,d=t.selectorFactory,u=void 0===d?Kb:d;return function(e,t,n,i){void 0===i&&(i={});var s=i,l=s.pure,d=void 0===l||l,h=s.areStatesEqual,p=void 0===h?Xb:h,m=s.areOwnPropsEqual,f=void 0===m?Ob:m,g=s.areStatePropsEqual,v=void 0===g?Ob:g,b=s.areMergedPropsEqual,y=void 0===b?Ob:b,x=(0,xe.A)(s,qb),S=Yb(e,a,"mapStateToProps"),k=Yb(t,o,"mapDispatchToProps"),w=Yb(n,c,"mergeProps");return r(u,(0,Mu.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:k,initMergeProps:w,pure:d,areStatesEqual:p,areOwnPropsEqual:f,areStatePropsEqual:v,areMergedPropsEqual:y},x))}}const Qb=Jb();var Zb;function $b(e,t){var n=(0,$.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,$.useRef)(!0),i=(0,$.useRef)(n),a=r.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs)),s=a?i.current:{inputs:t,result:e()};return(0,$.useEffect)((function(){r.current=!1,i.current=s}),[s]),s.result}Zb=Ze.unstable_batchedUpdates,vb=Zb;var ey=$b,ty=function(e,t){return $b((function(){return e}),t)},ny="Invariant failed";var ry=function(e){var t=e.top,n=e.right,r=e.bottom,i=e.left;return{top:t,right:n,bottom:r,left:i,width:n-i,height:r-t,x:i,y:t,center:{x:(n+i)/2,y:(r+t)/2}}},iy=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ay=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},sy={top:0,right:0,bottom:0,left:0},oy=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?sy:n,i=e.border,a=void 0===i?sy:i,s=e.padding,o=void 0===s?sy:s,l=ry(iy(t,r)),c=ry(ay(t,a)),d=ry(ay(c,o));return{marginBox:l,borderBox:ry(t),paddingBox:c,contentBox:d,margin:r,border:a,padding:o}},ly=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e){if(!e)throw new Error(ny)}(!1),n},cy=function(e,t){var n,r,i=e.borderBox,a=e.border,s=e.margin,o=e.padding,l=(r=t,{top:(n=i).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return oy({borderBox:l,border:a,margin:s,padding:o})},dy=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),cy(e,t)},uy=function(e,t){var n={top:ly(t.marginTop),right:ly(t.marginRight),bottom:ly(t.marginBottom),left:ly(t.marginLeft)},r={top:ly(t.paddingTop),right:ly(t.paddingRight),bottom:ly(t.paddingBottom),left:ly(t.paddingLeft)},i={top:ly(t.borderTopWidth),right:ly(t.borderRightWidth),bottom:ly(t.borderBottomWidth),left:ly(t.borderLeftWidth)};return oy({borderBox:e,margin:n,padding:r,border:i})},hy=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);
2return uy(t,n)},py=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function my(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||py(r)&&py(i)))return!1;var r,i;return!0}const fy=function(e,t){var n;void 0===t&&(t=my);var r,i=[],a=!1;return function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return a&&n===this&&t(s,i)||(r=e.apply(this,s),a=!0,n=this,i=s),r}};const gy=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t=i,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function vy(e,t){}vy.bind(null,"warn"),vy.bind(null,"error");function by(){}function yy(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,Mu.A)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var xy="Invariant failed";function Sy(e){this.message=e}function ky(e,t){if(!e)throw new Sy(xy)}Sy.prototype.toString=function(){return this.message};var wy=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=by,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Sy&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Dh(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=yy(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Sy))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}($.Component),Ty=function(e){return e+1},Cy=function(e,t){var n=e.droppableId===t.droppableId,r=Ty(e.index),i=Ty(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+i+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+i+"\n "},Ey=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},jy=function(e){return"\n The item has returned to its starting position\n of "+Ty(e.index)+"\n"},Ay="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Ny=function(e){return"\n You have lifted an item in position "+Ty(e.source.index)+"\n"},Py=function(e){var t=e.destination;if(t)return Cy(e.source,t);var n=e.combine;return n?Ey(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Ry=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+jy(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Cy(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Ey(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+jy(e.source)+"\n "},Ly={x:0,y:0},Iy=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Dy=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Oy=function(e,t){return e.x===t.x&&e.y===t.y},My=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},_y=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Fy=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},By=function(e,t){return Math.min.apply(Math,t.map((function(t){return Fy(e,t)})))},Uy=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},zy=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Gy=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Wy=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=ry({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):ry(e)},Hy=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,a=function(e,t){return t?zy(e,t.scroll.diff.displacement):e}(t.marginBox,i),s=function(e,t,n){var r;return n&&n.increasedBy?(0,Mu.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Wy(s,i)}},Vy=function(e,t){e.frame||ky(!1);var n=e.frame,r=Dy(t,n.scroll.initial),i=My(r),a=(0,Mu.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Hy({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,Mu.A)({},e,{frame:a,subject:s})};function Ky(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function qy(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Yy(e,t){if(e.find)return e.find(t);var n=qy(e,t);return-1!==n?e[n]:void 0}function Xy(e){return Array.prototype.slice.call(e)}var Jy=fy((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Qy=fy((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Zy=fy((function(e){return Ky(e)})),$y=fy((function(e){return Ky(e)})),ex=fy((function(e,t){var n=$y(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function tx(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function nx(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var rx=fy((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),ix=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ax={point:Ly,value:0},sx={invisible:{},visible:{},all:[]},ox={displaced:sx,displacedBy:ax,at:null},lx=function(e,t){return function(n){return e<=n&&n<=t}},cx=function(e){var t=lx(e.top,e.bottom),n=lx(e.left,e.right);
vendor: 16,589 bytes, line 2
2return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var i=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(i&&a)return!0;var s=r.top<e.top&&r.bottom>e.bottom,o=r.left<e.left&&r.right>e.right;return!(!s||!o)||(s&&a||o&&i)}},dx=function(e){var t=lx(e.top,e.bottom),n=lx(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ux={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},hx={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},px=function(e){var t=e.target,n=e.destination,r=e.viewport,i=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,s=i?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ly;return zy(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(s,n,a)&&function(e,t,n){return n(t)(e)}(s,r,a)},mx=function(e){return px((0,Mu.A)({},e,{isVisibleThroughFrameFn:cx}))},fx=function(e){return px((0,Mu.A)({},e,{isVisibleThroughFrameFn:dx}))};function gx(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,a=e.forceShouldAnimate,s=e.last;return t.reduce((function(e,t){var o=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return ry(iy(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!mx({target:o,destination:n,viewport:i,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,i=t.visible;if(r[e])return!1;var a=i[e];return!a||a.shouldAnimate}(l,s,a),d={draggableId:l,shouldAnimate:c};return e.visible[l]=d,e}),{all:[],visible:{},invisible:{}})}function vx(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:sx,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:a}}}}function bx(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,a=e.displacedBy,s=e.last,o=e.index,l=e.forceShouldAnimate,c=ix(t,r);if(null==o)return vx({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var d=Yy(n,(function(e){return e.descriptor.index===o}));if(!d)return vx({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var u=rx(t,n),h=n.indexOf(d);return{displaced:gx({afterDragging:u.slice(h),destination:r,displacedBy:a,last:s,viewport:i.frame,forceShouldAnimate:l}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function yx(e,t){return Boolean(t.effected[e])}var xx=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,a=e.destination,s=e.insideDestination,o=e.previousImpact,l=e.viewport,c=e.afterCritical,d=o.at;if(d||ky(!1),"REORDER"===d.type){var u=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var a=i.index,s=t?a+1:a-1,o=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return s<o||s>(n?l:l+1)?null:s}({isMovingForward:t,isInHomeList:n,location:d.destination,insideDestination:s});return null==u?null:bx({draggable:r,insideDestination:s,destination:a,viewport:l,last:o.displaced,displacedBy:o.displacedBy,index:u})}var h=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,a=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,o=r[s].descriptor.index;return yx(s,a)?t?o:o-1:t?o+1:o}({isMovingForward:t,destination:a,displaced:o.displaced,draggables:i,combine:d.combine,afterCritical:c});return null==h?null:bx({draggable:r,insideDestination:s,destination:a,viewport:l,last:o.displaced,displacedBy:o.displacedBy,index:h})},Sx=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=nx(n);i||ky(!1);var a=i.draggableId,s=r[a].page.borderBox.center,o=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return yx(r,n)?a?Ly:My(i.point):a?i.point:Ly}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return Iy(s,o)},kx=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},wx=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Tx=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _y(t.line,n.marginBox[t.end]+kx(t,r),wx(t,n.marginBox,r))},Cx=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _y(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),wx(t,n.marginBox,r))},Ex=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,a=e.afterCritical,s=ex(i.descriptor.id,r),o=n.page,l=i.axis;if(!s.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return _y(t.line,n.contentBox[t.start]+kx(t,r),wx(t,n.contentBox,r))}({axis:l,moveInto:i.page,isMoving:o});var c=t.displaced,d=t.displacedBy,u=c.all[0];if(u){var h=r[u];if(yx(u,a))return Cx({axis:l,moveRelativeTo:h.page,isMoving:o});var p=cy(h.page,d.point);return Cx({axis:l,moveRelativeTo:p,isMoving:o})}var m=s[s.length-1];if(m.descriptor.id===n.descriptor.id)return o.borderBox.center;if(yx(m.descriptor.id,a)){var f=cy(m.page,My(a.displacedBy.point));return Tx({axis:l,moveRelativeTo:f,isMoving:o})}return Tx({axis:l,moveRelativeTo:m.page,isMoving:o})},jx=function(e,t){var n=e.frame;return n?Iy(t,n.scroll.diff.displacement):t},Ax=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,a=e.afterCritical,s=n.page.borderBox.center,o=t.at;return r&&o?"REORDER"===o.type?Ex({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:a}):Sx({impact:t,draggables:i,afterCritical:a}):s}(e),n=e.droppable;return n?jx(n,t):t},Nx=function(e,t){var n=Dy(t,e.scroll.initial),r=My(n);return{frame:ry({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Px(e,t){return e.map((function(e){return t[e]}))}var Rx=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Iy(e.scroll.diff.displacement,t)}(e.viewport,t),i=Dy(r,n.page.borderBox.center);return Iy(n.client.borderBox.center,i)},Lx=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,i=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,o=void 0!==s&&s,l=Dy(r,t.page.borderBox.center),c={target:zy(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:i};return o?function(e){return px((0,Mu.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=lx(e.top,e.bottom),r=lx(e.left,e.right);return function(e){return t===ux?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):fx(c)},Ix=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.draggables,a=e.previousImpact,s=e.viewport,o=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var d=ex(r.descriptor.id,i),u=ix(n,r),h=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!tx(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,Mu.A)({},a,{at:t})}var o=a.displaced.all,l=o.length?o[0]:null;if(t)return l?s(l):null;var c=rx(n,i);if(!l)return c.length?s(c[c.length-1].descriptor.id):null;var d=qy(c,(function(e){return e.descriptor.id===l}));-1===d&&ky(!1);var u=d-1;return u<0?null:s(c[u].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||xx({isMovingForward:t,isInHomeList:u,draggable:n,draggables:i,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:c});if(!h)return null;var p=Ax({impact:h,draggable:n,droppable:r,draggables:i,afterCritical:c});if(Lx({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Rx({pageBorderBoxCenter:p,draggable:n,viewport:s}),impact:h,scrollJumpRequest:null};var m=Dy(p,o),f=function(e){var t=e.impact,n=e.viewport,r=e.destination,i=e.draggables,a=e.maxScrollChange,s=Nx(n,Iy(n.scroll.current,a)),o=r.frame?Vy(r,Iy(r.frame.scroll.current,a)):r,l=t.displaced,c=gx({afterDragging:Px(l.all,i),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:l,forceShouldAnimate:!1}),d=gx({afterDragging:Px(l.all,i),destination:o,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),u={},h={},p=[l,c,d];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?h[e]=t:u[e]=!0})),(0,Mu.A)({},t,{displaced:{all:l.all,invisible:u,visible:h}})}({impact:h,viewport:s,destination:r,draggables:i,maxScrollChange:m});return{clientSelection:l,impact:f,scrollJumpRequest:m}},Dx=function(e){var t=e.subject.active;return t||ky(!1),t},Ox=function(e,t){var n=e.page.borderBox.center;return yx(e.descriptor.id,t)?Dy(n,t.displacedBy.point):n},Mx=function(e,t){var n=e.page.borderBox;return yx(e.descriptor.id,t)?zy(n,My(t.displacedBy.point)):n},_x=fy((function(e,t){var n=t[e.line];return{value:n,point:_y(e.line,n)}})),Fx=function(e,t){return(0,Mu.A)({},e,{scroll:(0,Mu.A)({},e.scroll,{max:t})})},Bx=function(e,t,n){var r=e.frame;ix(t,e)&&ky(!1),e.subject.withPlaceholder&&ky(!1);var i=_x(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return _y(r.line,t[r.line]);var i=e.subject.page.contentBox[r.size],a=ex(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-i;return a<=0?null:_y(r.line,a)}(e,i,n),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var o=Hy({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,Mu.A)({},e,{subject:o})}var l=a?Iy(r.scroll.max,a):r.scroll.max,c=Fx(r,l),d=Hy({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:c});return(0,Mu.A)({},e,{subject:d,frame:c})},Ux=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,i=e.isOver,a=e.draggables,s=e.droppables,o=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,i=e.droppables,a=e.viewport,s=r.subject.active;if(!s)return null;var o=r.axis,l=lx(s[o.start],s[o.end]),c=Zy(i).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return cx(a.frame)(Dx(e))})).filter((function(e){var n=Dx(e);return t?s[o.crossAxisEnd]<n[o.crossAxisEnd]:n[o.crossAxisStart]<s[o.crossAxisStart]})).filter((function(e){var t=Dx(e),n=lx(t[o.start],t[o.end]);return l(t[o.start])||l(t[o.end])||n(s[o.start])||n(s[o.end])})).sort((function(e,n){var r=Dx(e)[o.crossAxisStart],i=Dx(n)[o.crossAxisStart];return t?r-i:i-r})).filter((function(e,t,n){return Dx(e)[o.crossAxisStart]===Dx(n[0])[o.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var d=c.filter((function(e){return lx(Dx(e)[o.start],Dx(e)[o.end])(n[o.line])}));return 1===d.length?d[0]:d.length>1?d.sort((function(e,t){return Dx(e)[o.start]-Dx(t)[o.start]}))[0]:c.sort((function(e,t){var r=By(n,Gy(Dx(e))),i=By(n,Gy(Dx(t)));return r!==i?r-i:Dx(e)[o.start]-Dx(t)[o.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:i,droppables:s,viewport:o});if(!c)return null;var d=ex(c.descriptor.id,a),u=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,a=e.afterCritical,s=i.filter((function(e){return fx({target:Mx(e,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Fy(t,jx(r,Ox(e,a))),s=Fy(t,jx(r,Ox(n,a)));return i<s?-1:s<i?1:e.descriptor.index-n.descriptor.index}));return s[0]||null}({pageBorderBoxCenter:n,viewport:o,destination:c,insideDestination:d,afterCritical:l}),h=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,i=e.draggable,a=e.draggables,s=e.destination,o=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:sx,displacedBy:ax,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},d=Ax({impact:c,draggable:i,droppable:s,draggables:a,afterCritical:l}),u=ix(i,s)?s:Bx(s,i,a);return Lx({draggable:i,destination:u,newPageBorderBoxCenter:d,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var h=Boolean(t[s.axis.line]<=n.page.borderBox.center[s.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===i.descriptor.id||h?e:e+1}(),m=_x(s.axis,i.displaceBy);return bx({draggable:i,insideDestination:r,destination:s,viewport:o,displacedBy:m,last:sx,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:a,moveRelativeTo:u,insideDestination:d,viewport:o,afterCritical:l});if(!h)return null;var p=Ax({impact:h,draggable:r,droppable:c,draggables:a,afterCritical:l});return{clientSelection:Rx({pageBorderBoxCenter:p,draggable:r,viewport:o}),impact:h,scrollJumpRequest:null}},zx=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Gx=function(e){var t=e.state,n=e.type,r=function(e,t){var n=zx(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),i=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],s=r||a,o=s.axis.direction,l="vertical"===o&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===o&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!i)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,d=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,h=t.dimensions,p=h.draggables,m=h.droppables;return l?Ix({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:d,destination:s,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ux({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:d,isOver:s,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function Wx(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Hx(e){var t=lx(e.top,e.bottom),n=lx(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Vx(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=Zy(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,i=e.subject.active;if(!i)return!1;if(r=i,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Hx(i)(t.center))return!0;var a=e.axis,s=i.center[a.crossAxisLine],o=t[a.crossAxisStart],l=t[a.crossAxisEnd],c=lx(i[a.crossAxisStart],i[a.crossAxisEnd]),d=c(o),u=c(l);return!d&&!u||(d?o<s:l>s)}));return i.length?1===i.length?i[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,a=r.map((function(e){var n=e.axis,r=_y(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Fy(i,r)}})).sort((function(e,t){return t.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:n,candidates:i}):null}var Kx=function(e,t){return ry(zy(e,t))};function qx(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Yx=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,a=e.previousImpact,s=e.viewport,o=e.afterCritical,l=Kx(n.page.borderBox,t),c=Vx({pageBorderBox:l,draggable:n,droppables:i});if(!c)return ox;var d=i[c],u=ex(d.descriptor.id,r),h=function(e,t){var n=e.frame;return n?Kx(t,n.scroll.diff.value):t}(d,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,i=e.destination,a=e.insideDestination,s=e.afterCritical;if(!i.isCombineEnabled)return null;var o=i.axis,l=_x(i.axis,t.displaceBy),c=l.value,d=n[o.start],u=n[o.end],h=Yy(rx(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,i=n[o.size]/4,a=yx(t,s),l=qx({displaced:r.displaced,id:t});return a?l?u>n[o.start]+i&&u<n[o.end]-i:d>n[o.start]-c+i&&d<n[o.end]-c-i:l?u>n[o.start]+c+i&&u<n[o.end]+c-i:d>n[o.start]+i&&d<n[o.end]-i}));return h?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:h.descriptor.id,droppableId:i.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:h,draggable:n,previousImpact:a,destination:d,insideDestination:u,afterCritical:
2o})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,a=e.last,s=e.viewport,o=e.afterCritical,l=r.axis,c=_x(r.axis,n.displaceBy),d=c.value,u=t[l.start],h=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Yy(rx(n,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=yx(t,o),i=qx({displaced:a,id:t});return r?i?h<=n:u<n-d:i?h<=n+d:u<n})),inHomeList:ix(n,r)});return bx({draggable:n,insideDestination:i,destination:r,viewport:s,last:a,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:h,draggable:n,destination:d,insideDestination:u,last:a.displaced,viewport:s,afterCritical:o})},Xx=function(e,t){var n;return(0,Mu.A)({},e,((n={})[t.descriptor.id]=t,n))},Jx=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,i=zx(t),a=zx(n);if(!i)return r;if(i===a)return r;var s=r[i];if(!s.subject.withPlaceholder)return r;var o=function(e){var t=e.subject.withPlaceholder;t||ky(!1);var n=e.frame;if(!n){var r=Hy({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,Mu.A)({},e,{subject:r})}var i=t.oldFrameMaxScroll;i||ky(!1);var a=Fx(n,i),s=Hy({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,Mu.A)({},e,{subject:s,frame:a})}(s);return Xx(r,o)},Qx=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,a=e.impact,s=e.scrollJumpRequest,o=i||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,d=Dy(c,t.initial.client.selection),u={offset:d,selection:c,borderBoxCenter:Iy(t.initial.client.borderBoxCenter,d)},h={selection:Iy(u.selection,o.scroll.current),borderBoxCenter:Iy(u.borderBoxCenter,o.scroll.current),offset:Iy(u.offset,o.scroll.diff.value)},p={client:u,page:h};if("COLLECTING"===t.phase)return(0,Mu.A)({phase:"COLLECTING"},t,{dimensions:l,viewport:o,current:p});var m=l.draggables[t.critical.draggable.id],f=a||Yx({pageOffset:h.offset,draggable:m,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:o,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,a=e.impact,s=Jx({previousImpact:i,impact:a,droppables:r}),o=zx(a);if(!o)return s;var l=r[o];if(ix(t,l))return s;if(l.subject.withPlaceholder)return s;var c=Bx(l,t,n);return Xx(s,c)}({draggable:m,impact:f,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return(0,Mu.A)({},t,{current:p,dimensions:{draggables:l.draggables,droppables:g},impact:f,viewport:o,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var Zx=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,a=e.forceShouldAnimate,s=t.displaced,o=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),l=gx({afterDragging:o,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,Mu.A)({},t,{displaced:l})},$x=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,a=e.viewport,s=e.afterCritical,o=Ax({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:s});return Rx({pageBorderBoxCenter:o,draggable:n,viewport:a})},eS=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ky(!1);var i=t.impact,a=r||t.viewport,s=n||t.dimensions,o=s.draggables,l=s.droppables,c=o[t.critical.draggable.id],d=zx(i);d||ky(!1);var u=l[d],h=Zx({impact:i,viewport:a,destination:u,draggables:o}),p=$x({impact:h,draggable:c,droppable:u,draggables:o,viewport:a,afterCritical:t.afterCritical});return Qx({impact:h,clientSelection:p,state:t,dimensions:s,viewport:a})},tS=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,a=_x(n.axis,t.displaceBy),s=ex(n.descriptor.id,r),o=s.indexOf(t);-1===o&&ky(!1);var l,c=s.slice(o+1),d=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),u={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:d};return{impact:{displaced:gx({afterDragging:c,destination:n,displacedBy:a,last:null,viewport:i.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:u}},nS=function(e){0},rS=function(e){0},iS=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ky(!1),t}(n[t]),s=a.scroll.diff.value,o=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=cy(t.client,n),a=dy(i,r);return(0,Mu.A)({},t,{placeholder:(0,Mu.A)({},t.placeholder,{client:i}),client:i,page:a})}({draggable:e,offset:Iy(i,s),initialWindowScroll:r.scroll.initial});return o}
2))},aS=function(e){return"SNAP"===e.movementMode},sS=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Xx(e.droppables,t)}}(e.dimensions,t);return!aS(e)||n?Qx({state:e,dimensions:r}):eS({state:e,dimensions:r})};function oS(e){return e.isDragging&&"SNAP"===e.movementMode?(0,Mu.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var lS={phase:"IDLE",completed:null,shouldFlush:!1},cS=function(e,t){if(void 0===e&&(e=lS),"FLUSH"===t.type)return(0,Mu.A)({},lS,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ky(!1);var n=t.payload,r=n.critical,i=n.clientSelection,a=n.viewport,s=n.dimensions,o=n.movementMode,l=s.draggables[r.draggable.id],c=s.droppables[r.droppable.id],d={selection:i,borderBoxCenter:l.client.borderBox.center,offset:Ly},u={client:d,page:{selection:Iy(d.selection,a.scroll.initial),borderBoxCenter:Iy(d.selection,a.scroll.initial),offset:Iy(d.selection,a.scroll.diff.value)}},h=Zy(s.droppables).every((function(e){return!e.isFixedOnPage})),p=tS({draggable:l,home:c,draggables:s.draggables,viewport:a}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:o,dimensions:s,initial:u,current:u,isWindowScrollAllowed:h,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ky(!1),(0,Mu.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ky(!1),function(e){var t=e.state,n=e.published;nS();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Vy(n,e.scroll)})),i=(0,Mu.A)({},t.dimensions.droppables,{},Jy(r)),a=Qy(iS({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=(0,Mu.A)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var o={droppables:i,draggables:s},l=zx(t.impact),c=l?o.droppables[l]:null,d=o.draggables[t.critical.draggable.id],u=o.droppables[t.critical.droppable.id],h=tS({draggable:d,home:u,draggables:s,viewport:t.viewport}
vendor: 15,643 bytes, line 2
2),p=h.impact,m=h.afterCritical,f=c&&c.isCombineEnabled?t.impact:p,g=Yx({pageOffset:t.current.page.offset,draggable:o.draggables[t.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:f,viewport:t.viewport,afterCritical:m});rS();var v=(0,Mu.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:o,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,Mu.A)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Wx(e)||ky(!1);var f=t.payload.client;return Oy(f,e.current.client.selection)?e:Qx({state:e,clientSelection:f,impact:aS(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return oS(e);if("COLLECTING"===e.phase)return oS(e);Wx(e)||ky(!1);var g=t.payload,v=g.id,b=g.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var x=Vy(y,b);return sS(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Wx(e)||ky(!1);var S=t.payload,k=S.id,w=S.isEnabled,T=e.dimensions.droppables[k];T||ky(!1),T.isEnabled===w&&ky(!1);var C=(0,Mu.A)({},T,{isEnabled:w});return sS(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Wx(e)||ky(!1);var E=t.payload,j=E.id,A=E.isCombineEnabled,N=e.dimensions.droppables[j];N||ky(!1),N.isCombineEnabled===A&&ky(!1);var P=(0,Mu.A)({},N,{isCombineEnabled:A});return sS(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Wx(e)||ky(!1),e.isWindowScrollAllowed||ky(!1);var R=t.payload.newScroll;if(Oy(e.viewport.scroll.current,R))return oS(e);var L=Nx(e.viewport,R);return aS(e)?eS({state:e,viewport:L}):Qx({state:e,viewport:L})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Wx(e))return e;var I=t.payload.maxScroll;if(Oy(I,e.viewport.scroll.max))return e;var D=(0,Mu.A)({},e.viewport,{scroll:(0,Mu.A)({},e.viewport.scroll,{max:I})});return(0,Mu.A)({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ky(!1);var O=Gx({state:e,type:t.type});return O?Qx({state:e,impact:O.impact,clientSelection:O.clientSelection,scrollJumpRequest:O.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&ky(!1),(0,Mu.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var _=t.payload,F=_.completed,B=_.dropDuration,U=_.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ky(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},dS=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},uS=function(){return{type:"COLLECTION_STARTING",payload:null}},hS=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},pS=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},mS=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},fS=function(e){return{type:"MOVE",payload:e}},gS=function(){return{type:"MOVE_UP",payload:null}},vS=function(){return{type:"MOVE_DOWN",payload:null}},bS=function(){return{type:"MOVE_RIGHT",payload:null}},yS=function(){return{type:"MOVE_LEFT",payload:null}},xS=function(e){return{type:"DROP_COMPLETE",payload:e}},SS=function(e){return{type:"DROP",payload:e}},kS=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var wS="cubic-bezier(.2,1,.1,1)",TS={drop:0,combining:.7},CS={drop:.75},ES=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",jS={fluid:"opacity "+ES,snap:"transform "+ES+", opacity "+ES,drop:function(e){var t=e+"s "+wS;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+ES,placeholder:"height "+ES+", width "+ES+", margin "+ES},AS=function(e){return Oy(e,Ly)?null:"translate("+e.x+"px, "+e.y+"px)"},NS=AS,PS=function(e,t){var n=AS(e);return n?t?n+" scale("+CS.drop+")":n:null},RS=.33,LS=.55,IS=LS-RS,DS=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var i=t(),a=r.payload.reason;if("COLLECTING"!==i.phase){if("IDLE"!==i.phase){"DROP_PENDING"===i.phase&&i.isWaiting&&ky(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&ky(!1);var s=i.critical,o=i.dimensions,l=o.draggables[i.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,Mu.A)({},r,{displaced:sx}),didDropInsideDroppable:!0}:{impact:Zx({draggables:t,impact:s,destination:i,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=c.impact,u=c.didDropInsideDroppable,h=u?tx(d):null,p=u?nx(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},f={draggableId:l.descriptor.id,type:l.descriptor.type,source:m,reason:a,mode:i.movementMode,destination:h,combine:p},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,a=e.afterCritical,s=r.draggables,o=r.droppables,l=zx(t),c=l?o[l]:null,d=o[n.descriptor.droppableId],u=$x({impact:t,draggable:n,draggables:s,afterCritical:a,droppable:c||d,viewport:i});return Dy(u,n.client.borderBox.center)}({impact:d,draggable:l,dimensions:o,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:f,impact:d};if(!Oy(i.current.client.offset,g)||Boolean(f.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,i=Fy(t,n);if(i<=0)return RS;if(i>=1500)return LS;var a=RS+IS*(i/1500);return Number(("CANCEL"===r?.6*a:a).toFixed(2))}({current:i.current.client.offset,destination:g,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:b,completed:v}))}else n(xS({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},OS=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function MS(e){var t=e.onWindowScroll;var n=gy((function(){t(OS())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),i=by;function a(){return i!==by}return{start:function(){a()&&ky(!1),i=yy(window,[r])},stop:function(){a()||ky(!1),n.cancel(),i(),i=by},isActive:a}}var _S=function(e){var t=MS({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},FS=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=qy(e,(function(e){return e.timerId===t}));-1===n&&ky(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},BS=function(e,t){nS(),t(),rS()},US=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},zS=function(e,t,n,r){if(e){var i=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),i=function(i){t||n||(t=!0,e(i),clearTimeout(r))};return i.wasCalled=function(){return t},i}(n);e(t,{announce:i}),i.wasCalled()||n(r(t))}else n(r(t))},GS=function(e,t){var n=function(e,t){var n=FS(),r=null,i=function(n){r||ky(!1),r=null,BS(0,(function(){return zS(e().onDragEnd,n,t,Ry)}))};return{beforeCapture:function(t,n){r&&ky(!1),BS(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ky(!1),BS(0,(function(){var r=e().onBeforeDragStart;r&&r(US(t,n))}))},start:function(i,a){r&&ky(!1);var s=US(i,a);r={mode:a,lastCritical:i,lastLocation:s.source,lastCombine:null},n.add((function(){BS(0,(function(){return zS(e().onDragStart,s,t,Ny)}))}))},update:function(i,a){var s=tx(a),o=nx(a);r||ky(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(i,r.lastCritical);l&&(r.lastCritical=i);var c,d,u=(d=s,!(null==(c=r.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));u&&(r.lastLocation=s);var h=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,o);if(h&&(r.lastCombine=o),l||u||h){var p=(0,Mu.A)({},US(i,r.mode),{combine:o,destination:s});n.add((function(){BS(0,(function(){return zS(e().onDragUpdate,p,t,Py)}))}))}},flush:function(){r||ky(!1),n.flush()},drop:i,abort:function(){if(r){var e=(0,Mu.A)({},US(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var i=r.payload.critical;return n.beforeStart(i,r.payload.movementMode),t(r),void n.start(i,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var s=e.getState();"DRAGGING"===s.phase&&n.update(s.critical,s.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},WS=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ky(!1),e.dispatch(xS({completed:r.completed}))}else t(n)}}},HS=function(e){var t=null,n=null;return function(r){return function(i){if("FLUSH"!==i.type&&"DROP_COMPLETE"!==i.type&&"DROP_ANIMATION_FINISHED"!==i.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(i),"DROP_ANIMATE"===i.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=yy(window,[a])}))}}}},VS=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(SS({reason:r.reason})))}}}},KS=fb,qS=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,s=e.announce,l=e.autoScroller;return hb(cS,KS(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(ob(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=fb.apply(void 0,a)(n.dispatch),o(o({},n),{},{dispatch:r})}}}((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(i){if("LIFT"===i.type){var a=i.payload,s=a.id,o=a.clientSelection,l=a.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(xS({completed:c.completed})),"IDLE"!==n().phase&&ky(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:s,movementMode:l}});var d={draggableId:s,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},u=e.startPublishing(d),h=u.critical,p=u.dimensions,m=u.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:h,dimensions:p,clientSelection:o,movementMode:l,viewport:m}})}else t(i)}}}}(n),DS,WS,HS,VS,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var i=t.getState();return"DRAGGING"!==i.phase&&ky(!1),void e.start(i)}n(r),e.scroll(t.getState())}}}}(l),_S,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),GS(a,s))))};var YS=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,a=Dy({x:n,y:t},{x:i,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},XS=function(){var e=document.documentElement;return e||ky(!1),e},JS=function(){var e=XS();return YS({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},QS=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;nS();var i=function(){var e=OS(),t=JS(),n=e.y,r=e.x,i=XS(),a=i.clientWidth,s=i.clientHeight;return{frame:ry({top:n,left:r,right:r+a,bottom:n+s}),scroll:{initial:e,current:e,max:t,diff:{value:Ly,displacement:Ly}}}}(),a=i.scroll.current,s=t.droppable,o=r.droppable.getAllByType(s.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(a,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(a)})),c={draggables:Qy(l),droppables:Jy(o)};return rS(),{dimensions:c,critical:t,viewport:i}};function ZS(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var $S=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},i=null,a=function(){i||(n.collectionStarting(),i=requestAnimationFrame((function(){i=null,nS();var e=r,a=e.additions,s=e.removals,o=e.modified,l=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(Ly)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(o).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),d={additions:l,removals:Object.keys(s),modified:c};r={additions:{},removals:{},modified:{}},rS(),n.publish(d)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:function(){i&&(cancelAnimationFrame(i),i=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(t){n||ky(!1);var i=n.critical.draggable;"ADDITION"===t.type&&ZS(e,i,t.value)&&r.add(t.value),"REMOVAL"===t.type&&ZS(e,i,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:function(r,i){e.droppable.exists(r)||ky(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:i})}
vendor: 4,296 bytes, line 2
2,updateDroppableIsCombineEnabled:function(r,i){n&&(e.droppable.exists(r)||ky(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:i}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,i){n&&(e.droppable.exists(r)||ky(!1),t.updateDroppableScroll({id:r,newScroll:i}))},startPublishing:function(t){n&&ky(!1);var r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),s={draggable:r.descriptor,droppable:a.descriptor},o=e.subscribe(i);return n={critical:s,unsubscribe:o},QS({critical:s,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return a},ek=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},tk=function(e){window.scrollBy(e.x,e.y)},nk=fy((function(e){return Zy(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),rk=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var a=function(e,t){var n=Yy(nk(t),(function(t){return t.frame||ky(!1),Hx(t.frame.pageMarginBox)(e)}));return n}(t,r);return a},ik=.25,ak=.05,sk=28,ok=function(e){return Math.pow(e,2)},lk={stopDampeningAt:1200,accelerateAt:360},ck=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;return 0===i?0:(r-t)/i},dk=lk.accelerateAt,uk=lk.stopDampeningAt,hk=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,i=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return sk;if(e===t.startScrollingFrom)return 1;var n=ck({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=sk*ok(1-n);return Math.ceil(r)}(t,n);return 0===a?0:i?Math.max(function(e,t){var n=t,r=uk,i=Date.now()-n;if(i>=uk)return e;if(i<dk)return 1;var a=ck({startOfRange:dk,endOfRange:r,current:i}),s=e*ok(a);return Math.ceil(s)}(a,r),1):a},pk=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,i=e.axis,a=e.shouldUseTimeDampening,s=function(e,t){return{startScrollingFrom:e[t.size]*ik,maxScrollValueAt:e[t.size]*ak}}(t,i);return n[i.end]<n[i.start]?hk({distanceToEdge:n[i.end],thresholds:s,dragStartTime:r,shouldUseTimeDampening:a}):-1*hk({distanceToEdge:n[i.start],thresholds:s,dragStartTime:r,shouldUseTimeDampening:a})},mk=Uy((function(e){return 0===e?0:e})),fk=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,a=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},o=pk({container:n,distanceToEdges:s,dragStartTime:t,axis:ux,shouldUseTimeDampening:a}),l=pk({container:n,distanceToEdges:s,dragStartTime:t,axis:hx,shouldUseTimeDampening:a}),c=mk({x:l,y:o});if(Oy(c,Ly))return null;var d=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,i=n.height>t.height,a=n.width>t.width;return a||i?a&&i?null:{x:a?0:r.x,y:i?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return d?Oy(d,Ly)?null:d:null},gk=Uy((function(e){return 0===e?0:e>0?1:-1})),vk=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,i=t.change,a=Iy(n,i),s={x:e(a.x,r.x),y:e(a.y,r.y)};return Oy(s,Ly)?null:s}}(),bk=function(e){var t=e.max,n=e.current,r=e.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=gk(r),s=vk({max:i,current:n,change:a});return!s||(0!==a.x&&0===s.x||0!==a.y&&0===s.y)},yk=function(e,t){return bk({current:e.scroll.current,max:e.scroll.max,change:t})},xk=function(e,t){var n=e.frame;return!!n&&bk({current:n.scroll.current,max:n.scroll.max,change:t})},Sk=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,a=e.scrollDroppable,s=t.current.page.borderBoxCenter,o=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,s=fk({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:a});return s&&yk(t,s)?s:null}({dragStartTime:n,viewport:t.viewport,subject:o,center:s,shouldUseTimeDampening:r});if(l)return void i(l)}
2var c=rk({center:s,destination:zx(t.impact),droppables:t.dimensions.droppables});if(c){var d=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,a=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var o=fk({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return o&&xk(t,o)?o:null}({dragStartTime:n,droppable:c,subject:o,center:s,shouldUseTimeDampening:r});d&&a(c.descriptor.id,d)}},kk=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(e,t){if(!xk(e,t))return t;var r=function(e,t){var n=e.frame;return n&&xk(e,t)?vk({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var i=Dy(t,r);return n(e.descriptor.id,i),Dy(t,i)},a=function(e,t,n){if(!e)return n;if(!yk(t,n))return n;var i=function(e,t){if(!yk(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return vk({current:r,max:n,change:t})}(t,n);if(!i)return r(n),null;var a=Dy(n,i);return r(a),Dy(n,a)};return function(e){var n=e.scrollJumpRequest;if(n){var r=zx(e.impact);r||ky(!1);var s=i(e.dimensions.droppables[r],n);if(s){var o=e.viewport,l=a(e.isWindowScrollAllowed,o,s);l&&function(e,n){var r=Iy(e.current.client.selection,n);t({client:r})}(e,l)}}}},wk=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=gy(t),i=gy(n),a=null,s=function(e){a||ky(!1);var t=a,n=t.shouldUseTimeDampening,s=t.dragStartTime;Sk({state:e,scrollWindow:r,scrollDroppable:i,dragStartTime:s,shouldUseTimeDampening:n})};return{start:function(e){nS(),a&&ky(!1);var t=Date.now(),n=!1,r=function(){n=!0};Sk({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),a={dragStartTime:t,shouldUseTimeDampening:n},rS(),n&&s(e)},stop:function(){a&&(r.cancel(),i.cancel(),a=null)},scroll:s}}({scrollWindow:n,scrollDroppable:t}),a=kk({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}},Tk="data-rbd",Ck=function(){var e=Tk+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Ek=function(){var e=Tk+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),jk=function(){var e=Tk+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ak={contextId:Tk+"-scroll-container-context-id"},Nk=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Pk="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?$.useLayoutEffect:$.useEffect,Rk=function(){var e=document.querySelector("head");return e||ky(!1),e},Lk=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ik(e,t){var n=ey((function(){return function(e){var t=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),n=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Ck.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),r=[function(){var e="\n transition: "+jS.outOfTheWay+";\n ";return{selector:t(Ek.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),n,{selector:t(jk.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Nk(r,"always"),resting:Nk(r,"resting"),dragging:Nk(r,"dragging"),dropAnimating:Nk(r,"dropAnimating"),userCancel:Nk(r,"userCancel")}}(e)}),[e]),r=(0,$.useRef)(null),i=(0,$.useRef)(null),a=ty(fy((function(e){var t=i.current;t||ky(!1),t.textContent=e})),[]),s=ty((function(e){var t=r.current;t||ky(!1),t.textContent=e}),[]);Pk((function(){(r.current||i.current)&&ky(!1);var o=Lk(t),l=Lk(t);return r.current=o,i.current=l,o.setAttribute(Tk+"-always",e),l.setAttribute(Tk+"-dynamic",e),Rk().appendChild(o),Rk().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ky(!1),Rk().removeChild(t),e.current=null};e(r),e(i)}}),[t,s,a,n.always,n.resting,e]);var o=ty((function(){return a(n.dragging)}),[a,n.dragging]),l=ty((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}
vendor: 13,238 bytes, line 2
2),[a,n.dropAnimating,n.userCancel]),c=ty((function(){i.current&&a(n.resting)}),[a,n.resting]);return ey((function(){return{dragging:o,dropping:l,resting:c}}),[o,l,c])}var Dk=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ok(e){return e instanceof Dk(e).HTMLElement}function Mk(e,t){var n="["+Ck.contextId+'="'+e+'"]',r=Xy(document.querySelectorAll(n));if(!r.length)return null;var i=Yy(r,(function(e){return e.getAttribute(Ck.draggableId)===t}));return i&&Ok(i)?i:null}function _k(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}var i={register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var i=t.descriptor.id,a=r(i);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[i],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ky(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ky(e.draggables).filter((function(e){return e.descriptor.type===t}))}};function a(t){return e.droppables[t]||null}return{draggable:i,droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=a(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=a(e);return t||ky(!1),t},findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return Ky(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Fk=$.createContext(null),Bk=function(){var e=document.body;return e||ky(!1),e},Uk={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var zk=0,Gk={separator:"::"};function Wk(e,t){return void 0===t&&(t=Gk),ey((function(){return""+e+t.separator+zk++}),[t.separator,e])}var Hk=$.createContext(null);function Vk(e){0}function Kk(e,t){Vk()}function qk(){Kk()}function Yk(e){var t=(0,$.useRef)(e);return(0,$.useEffect)((function(){t.current=e})),t}var Xk,Jk=((Xk={})[13]=!0,Xk[9]=!0,Xk),Qk=function(e){Jk[e.keyCode]&&e.preventDefault()},Zk=function(){var e="visibilitychange";return"undefined"===typeof document?e:Yy([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var $k,ew={type:"IDLE"};function tw(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var s={x:n,y:a},o=r();if("DRAGGING"===o.type)return e.preventDefault(),void o.actions.move(s);"PENDING"!==o.type&&ky(!1);var l=o.point;if(c=l,d=s,Math.abs(d.x-c.x)>=5||Math.abs(d.y-c.y)>=5){var c,d;e.preventDefault();var u=o.actions.fluidLift(s);i({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Qk(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ky(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Zk,fn:t}]}function nw(){}var rw=(($k={})[34]=!0,$k[33]=!0,$k[36]=!0,$k[35]=!0,$k);function iw(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(rw[r.keyCode]?r.preventDefault():Qk(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Zk,fn:n}]}var aw={type:"IDLE"};var sw={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ow(e,t){if(null==t)return!1;if(Boolean(sw[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ow(e,t.parentElement)}function lw(e,t){var n=t.target;return!!Ok(n)&&ow(e,n)}var cw=function(e){return ry(e.getBoundingClientRect()).center};var dw=function(){var e="matches";return"undefined"===typeof document?e:Yy([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function uw(e,t){return null==e?null:e[dw](t)?e:uw(e.parentElement,t)}function hw(e,t){return e.closest?e.closest(t):uw(e,t)}function pw(e,t){var n,r=t.target;if(!((n=r)instanceof Dk(n).Element))return null;var i=function(e){return"["+Ck.contextId+'="'+e+'"]'}(e),a=hw(r,i);return a&&Ok(a)?a:null}function mw(e){e.preventDefault()}function fw(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function gw(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(i);return!!a&&(!!a.options.isEnabled&&!!ek(n.getState(),i))}function vw(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,a=e.draggableId,s=e.forceSensorStop,o=e.sourceEvent;if(!gw({lockAPI:t,store:r,registry:i,draggableId:a}))return null;var l=i.draggable.getById(a),c=function(e,t){var n="["+Ek.contextId+'="'+e+'"]',r=Yy(Xy(document.querySelectorAll(n)),(function(e){return e.getAttribute(Ek.id)===t}));return r&&Ok(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(o&&!l.options.canDragInteractiveElements&&lw(c,o))return null;var d=t.claim(s||by),u="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function p(){return t.isActive(d)}var m=function(e,t){fw({expected:e,phase:u,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function f(e){function n(){t.release(),u="COMPLETED"}function i(t,i){if(void 0===i&&(i={shouldBlockNextClick:!1}),e.cleanup(),i.shouldBlockNextClick){var a=yy(window,[{eventName:"click",fn:mw,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(SS({reason:t}))}return"PRE_DRAG"!==u&&(n(),"PRE_DRAG"!==u&&ky(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),u="DRAGGING",(0,Mu.A)({isActive:function(){return fw({expected:"DRAGGING",phase:u,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(e){return i("DROP",e)},cancel:function(e){return i("CANCEL",e)}},e.actions)}var g={isActive:function(){return fw({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:function(e){var t=gy((function(e){m((function(){return fS({client:e})}))})),n=f({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,Mu.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(gS)},moveRight:function(){return m(bS)},moveDown:function(){return m(vS)},moveLeft:function(){return m(yS)}};return f({liftActionArgs:{id:a,clientSelection:cw(c),movementMode:"SNAP"},cleanup:by,actions:e})},abort:function(){fw({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}var bw=[function(e){var t=(0,$.useRef)(ew),n=(0,$.useRef)(by),r=ey((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,s,{sourceEvent:t});if(i){t.preventDefault();var a={x:t.clientX,y:t.clientY};n.current(),c(i,a)}}}}}}),[e]),i=ey((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=ty((function(){n.current=yy(window,[i,r],{passive:!1,capture:!0})}),[i,r]),s=ty((function(){"IDLE"!==t.current.type&&(t.current=ew,n.current(),a())}),[a]),o=ty((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),l=ty((function(){var e=tw({cancel:o,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=yy(window,e,{capture:!0,passive:!1})}),[o,s]),c=ty((function(e,n){"IDLE"!==t.current.type&&ky(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Pk((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,$.useRef)(nw),n=ey((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var i=e.findClosestDraggableId(n);if(i){var a=e.tryGetLock(i,l,{sourceEvent:n});if(a){n.preventDefault();var s=!0,o=a.snapLift();t.current(),t.current=yy(window,iw(o,l),{capture:!0,passive:!1})}}}function l(){s||ky(!1),s=!1,t.current(),r()}}}}),[e]),r=ty((function(){t.current=yy(window,[n],{passive:!1,capture:!0})}),[n]);Pk((function(){return r(),function(){t.current()}}),[r])},function(e){var t=(0,$.useRef)(aw),n=(0,$.useRef)(by),r=ty((function(){return t.current}),[]),i=ty((function(e){t.current=e}),[]),a=ey((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var i=e.tryGetLock(r,o,{sourceEvent:t});if(i){var a=t.touches[0],s={x:a.clientX,y:a.clientY};n.current(),u(i,s)}}}}}}),[e]),s=ty((function(){n.current=yy(window,[a],{capture:!0,passive:!1})}),[a]),o=ty((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(aw),n.current(),s())}),[s,i]),l=ty((function(){var e=t.current;o(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[o]),c=ty((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:o,getPhase:r},i=yy(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var i=e.touches[0],a={x:i.clientX,y:i.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var i=r();"DRAGGING"===i.type?(e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ky(!1);var i=e.touches[0];if(i&&i.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Zk,fn:t}]}(t),e),a=yy(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Zk,fn:t}]}(t),e);n.current=function(){i(),a()}}),[l,r,o]),d=ty((function(){var e=r();"PENDING"!==e.type&&ky(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,i]),u=ty((function(e,t){"IDLE"!==r().type&&ky(!1);var n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,i,d]);Pk((function(){return s(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(aw))}}),[r,s,i]),Pk((function(){return yy(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function yw(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?bw:[],i||[]),o=(0,$.useState)((function(){return function(){var e=null;function t(){e||ky(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ky(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=ty((function(e,t){e.isDragging&&!t.isDragging&&o.tryAbandon()}),[o]);Pk((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[o,n,l]),Pk((function(){return o.tryAbandon}),[o.tryAbandon]);var c=ty((function(e){return gw({lockAPI:o,registry:r,store:n,draggableId:e})}),[o,r,n]),d=ty((function(e,i,a){return vw({lockAPI:o,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:i,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,o,r,n]),u=ty((function(e){return function(e,t){var n=pw(e,t);return n?n.getAttribute(Ck.draggableId):null}(t,e)}),[t]),h=ty((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=ty((function(){o.isClaimed()&&(o.tryAbandon(),"IDLE"!==n.get
vendor: 5,079 bytes, line 2
2State().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[o,n]),m=ty(o.isClaimed,[o]),f=ey((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:u,findOptionsForDraggable:h,tryReleaseLock:p,isLockClaimed:m}}),[c,d,u,h,p,m]);Vk();for(var g=0;g<s.length;g++)s[g](f)}function xw(e){return e.current||ky(!1),e.current}function Sw(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,s=(0,$.useRef)(null);qk();var o=Yk(e),l=ty((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(o.current)}),[o]),c=function(e){var t=ey((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,$.useRef)(null);return(0,$.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,Mu.A)(e.style,Uk),Bk().appendChild(e),function(){setTimeout((function(){var t=Bk();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ty((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),d=function(e){var t=e.contextId,n=e.text,r=Wk("hidden-text",{separator:"-"}),i=ey((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})}),[r,t]);return(0,$.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Bk().appendChild(e),function(){var t=Bk();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),u=Ik(t,i),h=ty((function(e){xw(s).dispatch(e)}),[]),p=ey((function(){return mb({publishWhileDragging:dS,updateDroppableScroll:hS,updateDroppableIsEnabled:pS,updateDroppableIsCombineEnabled:mS,collectionStarting:uS},h)}),[h]),m=function(){var e=ey(_k,[]);return(0,$.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),f=ey((function(){return $S(m,p)}),[m,p]),g=ey((function(){return wk((0,Mu.A)({scrollWindow:tk,scrollDroppable:f.scrollDroppable},mb({move:fS},h)))}),[f.scrollDroppable,h]),v=function(e){var t=(0,$.useRef)({}),n=(0,$.useRef)(null),r=(0,$.useRef)(null),i=(0,$.useRef)(!1),a=ty((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=ty((function(t){var n=Mk(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),o=ty((function(e,t){n.current===e&&(n.current=t)}),[]),l=ty((function(){r.current||i.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&s(e)})))}),[s]),c=ty((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Ck.draggableId)===e&&(n.current=e)}),[]);return Pk((function(){return i.current=!0,function(){i.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),ey((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:o}}),[a,c,l,o])}(t),b=ey((function(){return qS({announce:c,autoScroller:g,dimensionMarshal:f,focusMarshal:v,getResponders:l,styleMarshal:u})}),[c,g,f,v,l,u]);s.current=b;var y=ty((function(){var e=xw(s);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),x=ty((function(){var e=xw(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(ey((function(){return{isDragging:x,tryAbort:y}}),[x,y]));var S=ty((function(e){return ek(xw(s).getState(),e)}),[]),k=ty((function(){return Wx(xw(s).getState())}),[]),w=ey((function(){return{marshal:f,focus:v,contextId:t,canLift:S,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:m}}),[t,f,d,v,S,k,m]);return yw({contextId:t,store:b,registry:m,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,$.useEffect)((function(){return y}),[y]),$.createElement(Hk.Provider,{value:w},$.createElement(kb,{context:Fk,store:b},e.children))}var kw=0;function ww(e){var t=ey((function(){return""+kw++}),[]),n=e.dragHandleUsageInstructions||Ay;return $.createElement(wy,null,(function(r){return $.createElement(Sw,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Tw=function(e){return function(t){return e===t}},Cw=Tw("scroll"),Ew=Tw("auto"),jw=(Tw("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Aw=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return jw(n,Cw)||jw(n,Ew)}(t)?t:e(t.parentElement)},Nw=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Pw=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Rw=function(e){return{closestScrollable:Aw(e),isFixedOnPage:Pw(e)}},Lw=function(e){var t=e.ref,n=e.descriptor,r=e.env,i=e.windowScroll,a=e.direction,s=e.isDropDisabled,o=e.isCombine
vendor: 14,382 bytes, line 2
2Enabled,l=e.shouldClipSubject,c=r.closestScrollable,d=function(e,t){var n=hy(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,i=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,s=i+t.scrollWidth,o=iy({top:r,right:s,bottom:a,left:i},n.border);return oy({borderBox:o,margin:n.margin,border:n.border,padding:n.padding})}(t,c),u=dy(d,i),h=function(){if(!c)return null;var e=hy(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:dy(e,i),scroll:Nw(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,s=e.client,o=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=YS({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ly,displacement:Ly}}}}(),d="vertical"===a?ux:hx;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:i,axis:d,isEnabled:n,client:s,page:o,frame:c,subject:Hy({page:o,withPlaceholder:null,axis:d,frame:c})}}({descriptor:n,isEnabled:!s,isCombineEnabled:o,isFixedOnPage:r.isFixedOnPage,direction:a,client:d,page:u,closest:h});return p},Iw={passive:!1},Dw={passive:!0},Ow=function(e){return e.shouldPublishImmediately?Iw:Dw};function Mw(e){var t=(0,$.useContext)(e);return t||ky(!1),t}var _w=function(e){return e&&e.env.closestScrollable||null};function Fw(){}var Bw={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Uw=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,i=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Bw:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?jS.placeholder:null}};var zw=$.memo((function(e){var t=(0,$.useRef)(null),n=ty((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,a=e.onClose,s=e.contextId,o=(0,$.useState)("open"===e.animate),l=o[0],c=o[1];(0,$.useEffect)((function(){return l?"open"!==r?(n(),c(!1),Fw):t.current?Fw:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):Fw}),[r,l,n]);var d=ty((function(e){"height"===e.propertyName&&(i(),"close"===r&&a())}),[r,a,i]),u=Uw({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return $.createElement(e.placeholder.tagName,{style:u,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),Gw=$.createContext(null);var Ww=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Dh(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}($.PureComponent),Hw=5e3,Vw=4500,Kw=function(e,t){return t?jS.drop(t.duration):e?jS.snap:jS.fluid},qw=function(e,t){return e?t?TS.drop:TS.combining:null};function Yw(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,i=e.dropping,a=Boolean(r),s=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),o=Boolean(i),l=o?PS(n,a):NS(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Kw(s,i),transform:l,opacity:qw(a,o),zIndex:o?Vw:Hw,pointerEvents:"none"}}(e):{transform:NS((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Xw(e){var t=Wk("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,o=e.isEnabled,l=ey((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:o}}),[a,o,s]),c=ty((function(e){var t=i();return t||ky(!1),function(e,t,n){void 0===n&&(n=Ly);var r=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=uy(i,r),s=dy(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:s}}(n,t,e)}),[n,i]),d=ey((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}}),[n,c,l,t]),u=(0,$.useRef)(d),h=(0,$.useRef)(!0);Pk((function(){return r.draggable.register(u.current),function(){return r.draggable.unregister(u.current)}}),[r.draggable]),Pk((function(){if(h.current)h.current=!1;else{var e=u.current;u.current=d,r.draggable.update(d,e)}}),[d,r.draggable])}function Jw(e,t,n){Kk()}function Qw(e){e.preventDefault()}var Zw=function(e,t){return e===t},$w=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function eT(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var tT={mapped:{type:"SECONDARY",offset:Ly,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:eT(null)}};var nT=Qb((function(){var e=function(){var e=fy((function(e,t){return{x:e,y:t}})),t=fy((function(e,t,n,r,i){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=fy((function(e,n,r,i,a,s,o){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:s,mode:n,offset:e,dimension:r,forceShouldAnimate:o,snapshot:t(n,i,a,s,null)}}}));return function(r,i){if(r.isDragging){if(r.critical.draggable.id!==i.draggableId)return null;var a=r.current.client.offset,s=r.dimensions.draggables[i.draggableId],o=zx(r.impact),l=(d=r.impact).at&&"COMBINE"===d.at.type?d.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(a.x,a.y),r.movementMode,s,i.isClone,o,l,c)}var d;if("DROP_ANIMATING"===r.phase){var u=r.completed;if(u.result.draggableId!==i.draggableId)return null;var h=i.isClone,p=r.dimensions.draggables[i.draggableId],m=u.result,f=m.mode,g=$w(m),v=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:wS,moveTo:r.newHomeClientOffset,opacity:v?TS.drop:null,scale:v?CS.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:g,combineWith:v,mode:f,forceShouldAnimate:null,snapshot:t(f,h,g,v,b)}}}return null}}(),t=function(){var e=fy((function(e,t){return{x:e,y:t}})),t=fy(eT),n=fy((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ly,e,!0):null},i=function(t,i,a,s){var o=a.displaced.visible[t],l=Boolean(s.inVirtualList&&s.effected[t]),c=nx(a),d=c&&c.draggableId===t?i:null;if(!o){if(!l)return r(d);if(a.displaced.invisible[t])return null;var u=My(s.displacedBy.point),h=e(u.x,u.y);return n(h,d,!0)}if(l)return r(d);var p=a.displacedBy.point,m=e(p.x,p.y);return n(m,d,o.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:i(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||tT}}),{dropAnimationFinished:kS},null,{context:Fk,pure:!0,areStatePropsEqual:Zw})((function(e){var t=(0,$.useRef)(null),n=ty((function(e){t.current=e}),[]),r=ty((function(){return t.current}),[]),i=Mw(Hk),a=i.contextId,s=i.dragHandleUsageInstructionsId,o=i.registry,l=Mw(Gw),c=l.type,d=l.droppableId,u=ey((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}}),[e.draggableId,e.index,c,d]),h=e.children,p=e.draggableId,m=e.isEnabled,f=e.shouldRespectForcePress,g=e.canDragInteractiveElements,v=e.isClone,b=e.mapped,y=e.dropAnimationFinished;Jw(),Vk(),v||Xw(ey((function(){return{descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:f,isEnabled:m}}),[u,o,r,g,f,m]));var x=ey((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Qw}:null}),[a,s,p,m]),S=ty((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&y()}),[y,b]),k=ey((function(){var e=Yw(b),t="DRAGGING"===b.type&&b.dropping?S:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:x}}),[a,x,p,b,S,n]),w=ey((function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}}),[u.droppableId,u.id,u.index,u.type]);return h(k,b.snapshot,w)}));function rT(e){return Mw(Gw).isUsingCloneFor!==e.draggableId||e.isClone?$.createElement(nT,e):null}function iT(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return $.createElement(rT,(0,Mu.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var aT=function(e,t){return e===t.droppable.type},sT=function(e,t){return t.draggables[e.draggable.id]};var oT={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ky(!1),document.body}},lT=Qb((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,Mu.A)({},e,{shouldAnimatePlaceholder:!1}),n=fy((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=fy((function(r,i,a,s,o,l){var c=o.descriptor.id;if(o.descriptor.droppableId===r){var d=l?{render:l,dragging:n(o.descriptor)}:null,u={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:o.placeholder,shouldAnimatePlaceholder:!1,snapshot:u,useClone:d}}if(!i)return t;if(!s)return e;var h={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:o.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}}));return function(n,i){var a=i.droppableId,s=i.type,o=!i.isDropDisabled,l=i.renderClone;if(n.isDragging){var c=n.critical;if(!aT(s,c))return t;var d=sT(c,n.dimensions),u=zx(n.impact)===a;return r(a,o,u,u,d,l)}if("DROP_ANIMATING"===n.phase){var h=n.completed;if(!aT(s,h.critical))return t;var p=sT(h.critical,n.dimensions);return r(a,o,$w(h.result)===a,zx(h.impact)===a,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!aT(s,m.critical))return t;var f=zx(m.impact)===a,g=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),v=m.critical.droppable.id===a;return f?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Fk,pure:!0,areStatePropsEqual:Zw})((function(e){var t=(0,$.useContext)(Hk);t||ky(!1);var n=t.contextId,r=t.isMovementAllowed,i=(0,$.useRef)(null),a=(0,$.useRef)(null),s=e.children,o=e.droppableId,l=e.type,c=e.mode,d=e.direction,u=e.ignoreContainerClipping,h=e.isDropDisabled,p=e.isCombineEnabled,m=e.snapshot,f=e.useClone,g=e.updateViewportMaxScroll,v=e.getContainerForClone,b=ty((function(){return i.current}),[]),y=ty((function(e){i.current=e}),[]),x=(ty((function(){return a.current}),[]),ty((function(e){a.current=e}),[]));Kk();var S=ty((function(){r()&&g({maxScroll:JS()})}),[r,g]);!function(e){var t=(0,$.useRef)(null),n=Mw(Hk),r=Wk("droppable"),i=n.registry,a=n.marshal,s=Yk(e),o=ey((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=(0,$.useRef)(o),c=ey((function(){return fy((function(e,n){t.current||ky(!1);var r={x:e,y:n};a.updateDroppableScroll(o.id,r)}))}),[o.id,a]),d=ty((function(){var e=t.current;return e&&e.env.closestScrollable?Nw(e.env.closestScrollable):Ly}),[]),u=ty((function(){var e=d();c(e.x,e.y)}),[d,c]),h=ey((function(){return gy(u)}),[u]),p=ty((function(){var e=t.current,n=_w(e);e&&n||ky(!1),e.scrollOptions.shouldPublishImmediately?u():h()}),[h,u]),m=ty((function(e,r){t.current&&ky(!1);var i=s.current,a=i.getDroppableRef();a||ky(!1);var l=Rw(a),c={ref:a,descriptor:o,env:l,scrollOptions:r};t.current=c;var d=Lw({ref:a,descriptor:o,env:l,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),u=l.closestScrollable;return u&&(u.setAttribute(Ak.contextId,n.contextId),u.addEventListener("scroll",p,Ow(c.scrollOptions))),d}),[n.contextId,o,p,s]),f=ty((function(){var e=t.current,n=_w(e);return e&&n||ky(!1),Nw(n)}),[]),g=ty((function(){var e=t.current;e||ky(!1);var n=_w(e);t.current=null,n&&(h.cancel(),n.removeAttribute(Ak.contextId),n.removeEventListener("scroll",p,Ow(e.scrollOptions)))}),[p,h]),v=ty((function(e){var n=t.current;n||ky(!1);var r=_w(n);r||ky(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=ey((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:f,dragStopped:g,scroll:v}}),[g,m,f,v]),y=ey((function(){return{uniqueId:r,descriptor:o,callbacks:b}}),[b,o,r]);Pk((function(){return l.current=y.descriptor,i.droppable.register(y),function(){t.current&&g(),i.droppable.unregister(y)}}),[b,o,g,y,a,i.droppable]),Pk((function(){t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Pk((function(){t.current&&a.updateDroppableIsCombine
2Enabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:o,type:l,mode:c,direction:d,isDropDisabled:h,isCombineEnabled:p,ignoreContainerClipping:u,getDroppableRef:b});var k=$.createElement(Ww,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return $.createElement(zw,{placeholder:r,onClose:t,innerRef:x,animate:i,contextId:n,onTransitionEnd:S})})),w=ey((function(){return{innerRef:y,placeholder:k,droppableProps:{"data-rbd-droppable-id":o,"data-rbd-droppable-context-id":n}}}),[n,o,k,y]),T=f?f.dragging.draggableId:null,C=ey((function(){return{droppableId:o,type:l,isUsingCloneFor:T}}),[o,T,l]);return $.createElement(Gw.Provider,{value:C},s(w,m),function(){if(!f)return null;var e=f.dragging,t=f.render,n=$.createElement(rT,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return Ze.createPortal(n,v())}())}));function cT(){const[e,t]=(0,$.useState)(""),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(null),[s,o]=(0,$.useState)(),[l,c]=(0,$.useState)([]),[d,u]=(0,$.useState)("#fff"),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)(""),[g,v]=(0,$.useState)(""),[b,y]=(0,$.useState)({}),[x,S]=(0,$.useState)(),[k,w]=(0,$.useState)(!1),[T,C]=(0,$.useState)(null),[E,j]=(0,$.useState)(""),[A,N]=(0,$.useState)(!1),{user:P}=(0,$.useContext)(Qo);(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/getuserprofilepicture/".concat(P._id),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));a(t)}}catch(e){console.error("Error fetching profile picture:",e)}})()}),[P._id,i]),(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/getuserbackgroundpicturebyid/".concat(P._id),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));o(t)}}catch(e){console.error("Error fetching background picture:",e)}})()}),[P._id]),(0,$.useEffect)((()=>{const e=setInterval((async()=>{try{const e=await ks.get("/users/profileTitle?userId=".concat(P._id));t(e.data.profileTitle),p(e.data.backgroundType),y(e.data.userplan);const n=await ks.get("/userlinks?userId=".concat(P._id));c(n.data),u(e.data.backgroundColor),f(e.data.bluecheck),v(e.data.goldcheck),S(e.data.logo)}catch(e){console.error("Error fetching profileTitle:",e)}}),1e3);return()=>clearInterval(e)}),[P._id,P.logo]),(0,$.useEffect)((()=>{const e=setInterval((async()=>{try{const e=await ks.get("/users/profileBio?userId=".concat(P._id));r(e.data.profileBio)}catch(e){console.error("Error fetching profileTitle:",e)}}),1e3);return()=>clearInterval(e)}),[P._id,n]),(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/creator-settings/".concat(P._id));if(w(e.data.subscriptionEnabled),C(e.data.subscriptionPrice),j(e.data.subscriptionDescription),P){const e=await ks.get("/users/check-subscription/".concat(P._id));N(e.data.isSubscribed)}}catch(e){console.error("Error fetching subscription settings:",e)}})()}),[P._id]);const R=async()=>{try{const e=await ks.post("/stripe/create-subscription",{creatorId:P._id,priceId:T});window.location.href=e.data.url}catch(e){console.error("Error creating subscription:",e),alert("Failed to process subscription. Please try again.")}},L={backgroundImage:"url(".concat(s,")"),backgroundColor:d,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"};return(0,$.useEffect)((()=>{console.log("Profile Picture URL:",i)}),[i]),(0,Xo.jsxs)("div",{className:"profile-container2",children:["FlatColour"===h&&(0,Xo.jsxs)("div",{className:"profile-content",style:{backgroundColor:d},children:[(0,Xo.jsxs)("section",{className:"animated-background",children:[(0,Xo.jsx)("div",{id:"stars1"}),(0,Xo.jsx)("div",{id:"stars2"}),(0,Xo.jsx)("div",{id:"stars3"})]}),(0,Xo.jsx)("a",{id:"profilePicture",children:i?(0,Xo.jsx)("img",{src:i,alt:"Profile"}):(0,Xo.jsx)("p",{className:"profilenulltext",children:"@"})}),(0,Xo.jsx)("div",{className:"overlay",id:"popup",children:(0,Xo.jsxs)("div",{className:"popup",children:[(0,Xo.jsx)("div",{className:"popup-photo",children:(0,Xo.jsx)("a",{href:"https://avatars0.githubusercontent.com/u/43749971",target:"_blank",rel:"noopener noreferrer",children:(0,Xo.jsx)("img",{src:"https://pbs.twimg.com/profile_images/1700343203616940032/Y0KMbn_z_400x400.jpg",alt:"ProfilePicture"})})}),(0,Xo.jsx)("div",{className:"popup-quote",children:"We locked in."}),(0,Xo.jsx)("button",{className:"popup-close",onClick:()=>window.history.back(),children:"\xd7"})]})}),(0,Xo.jsxs)("div",{id:"userName",className:"userName",children:[e,m&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/bluecheck.svg",alt:"Blue Check Mark",className:"blue-check-mark"}),g&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/goldcheck.png",alt:"Gold Check Mark",className:"gold-check-mark"})]}),(0,Xo.jsx)("div",{id:"userName",className:"bioName",children:n}),k&&T&&(0,Xo.jsx)("div",{className:"subscribe-container",children:A?(0,Xo.jsx)("div",{className:"subscribed-badge",children:"\u2713 Subscribed"}):(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsxs)("button",{className:"subscribe-button",onClick:R,children:["Subscribe - $",T,"/month"]})})}),(0,Xo.jsx)("div",{id:"links",children:l.map(((e,t)=>(0,Xo.jsxs)("a",{className:"link",href:e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:"http://".concat(e.url),target:"_blank",rel:"noopener noreferrer",children:[(0,Xo.jsx)("i",{className:"fab ".concat(e.icon),children:"\xa0"}),e.title]},t)))}),!x&&(0,Xo.jsx)("div",{id:"hashtag",children:"XSubscribe.bio"})]}),"Image"===h&&s&&(0,Xo.jsxs)("div",{className:"profile-content",style:L,children:[(0,Xo.jsxs)("section",{className:"animated-background",children:[(0,Xo.jsx)("div",{id:"stars1"}),(0,Xo.jsx)("div",{id:"stars2"}),(0,Xo.jsx)("div",{id:"stars3"})]}),(0,Xo.jsx)("a",{id:"profilePicture",children:i?(0,Xo.jsx)("img",{src:i,alt:"Profile"}):(0,Xo.jsx)("p",{className:"profilenulltext",children:"@"})}),(0,Xo.jsx)("div",{className:"overlay",id:"popup",children:(0,Xo.jsxs)("div",{className:"popup",children:[(0,Xo.jsx)("div",{className:"popup-photo",children:(0,Xo.jsx)("a",{href:"https://avatars0.githubusercontent.com/u/43749971",target:"_blank",rel:"noopener noreferrer",children:(0,Xo.jsx)("img",{src:"https://pbs.twimg.com/profile_images/1700343203616940032/Y0KMbn_z_400x400.jpg",alt:"ProfilePicture"})})}),(0,Xo.jsx)("div",{className:"popup-quote",children:"We locked in."}),(0,Xo.jsx)("button",{className:"popup-close",onClick:()=>window.history.back(),children:"\xd7"})]})}),(0,Xo.jsxs)("div",{id:"userName",className:"userName",children:[e,m&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/bluecheck.svg",alt:"Blue Check Mark",className:"blue-check-mark"}),g&&(0,Xo.jsx)("img",{src:"https://xsubscribe.bio/goldcheck.png",alt:"Gold Check Mark",className:"gold-check-mark"})]}),(0,Xo.jsx)("div",{id:"userName",className:"bioName",children:n}),k&&T&&(0,Xo.jsx)("div",{className:"subscribe-container",children:A?(0,Xo.jsx)("div",{className:"subscribed-badge",children:"\u2713 Subscribed"}):(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsxs)("button",{className:"subscribe-button",onClick:R,children:["Subscribe - $",T,"/month"]})})}),(0,Xo.jsx)("div",{id:"links",children:l.map(((e,t)=>(0,Xo.jsxs)("a",{className:"link",href:e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:"http://".concat(e.url),target:"_blank",rel:"noopener noreferrer",children:[(0,Xo.jsx)("i",{className:"fab ".concat(e.icon),children:"\xa0"}),e.title]},t)))}),!x&&(0,Xo.jsx)("div",{id:"hashtag",children:"XSubscribe.bio"})]})]})}lT.defaultProps=oT;const dT=e=>{let{variant:t="desktop"}=e;const{i18n:n}=Ae(),[r,i]=(0,$.useState)(!1),a=(0,$.useRef)(null);(0,$.useEffect)((()=>{const e=e=>{a.current&&!a.current.contains(e.target)&&i(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),(0,$.useEffect)((()=>{const e=e=>"Escape"===e.key&&i(!1);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const s="mobile"===t?20:22;return(0,Xo.jsxs)("div",{className:"lang-switcher lang-switcher--".concat(t),ref:a,children:[(0,Xo.jsx)("button",{className:"lang-switcher-btn",onClick:()=>i(!r),"aria-label":"Change language",title:"Change language",children:(0,Xo.jsxs)("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M5 8l6 0"}),(0,Xo.jsx)("path",{d:"M4 6l8 0"}),(0,Xo.jsx)("path",{d:"M8 6v-1a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v1"}),(0,Xo.jsx)("path",{d:"M4 12s2-3 4-3 4 3 4 3"}),(0,Xo.jsx)("path",{d:"M14.5 15l2.5-6 2.5 6"}),(0,Xo.jsx)("path",{d:"M15.5 13h3"}),(0,Xo.jsx)("path",{d:"M2 18l7-7"}),(0,Xo.jsx)("path",{d:"M9 18l-2-2"})]})}),r&&(0,Xo.jsx)("div",{className:"lang-switcher-dropdown",children:Je.map((e=>(0,Xo.jsx)("button",{className:"lang-switcher-option ".concat(n.language===e.code?"active":""),onClick:()=>{return t=e.code,n.changeLanguage(t),void i(!1);var t},children:e.label},e.code)))})]})},uT=512,hT=220,pT=e=>{let{isOpen:t,onClose:n,brandId:r=null,brandName:i=null,onUploaded:a}=e;const s=(0,$.useRef)(null),o=(0,$.useRef)(null),l=(0,$.useRef)(null),[c,d]=(0,$.useState)(null),[u,h]=(0,$.useState)(null),[p,m]=(0,$.useState)(null),[f,g]=(0,$.useState)(1),[v,b]=(0,$.useState)({x:0,y:0}),[y,x]=(0,$.useState)(!1),S=(0,$.useRef)({active:!1,lastX:0,lastY:0,startPanX:0,startPanY:0}),k=(0,$.useCallback)((()=>{d(null),h((e=>(e&&URL.revokeObjectURL(e),null))),m(null),g(1),b({x:0,y:0})}),[]);if((0,$.useEffect)((()=>{t||k()}),[t]),!t)return null;const w=!!r,T=w?"Photo for ".concat(i||"this brand"):"Add a profile picture",C=w?"Upload a clear, well-lit photo of the person who's getting clipped (yourself, the streamer, or the talent). Our AI uses this to detect their face in the video and keep them in frame.":"Upload a photo. You'll be able to zoom and drag to pick the perfect crop.",E=(p?Math.max(hT/p.w,hT/p.h):1)*f,j=p?p.w*E:hT,A=p?p.h*E:hT,N=e=>{const t=Math.max(0,(j-hT)/2),n=Math.max(0,(A-hT)/2);return{x:Math.max(-t,Math.min(t,e.x)),y:Math.max(-n,Math.min(n,e.y))}},P=(hT-j)/2+v.x,R=(hT-A)/2+v.y,L=e=>{S.current.active=!1;try{var t,n;null===(t=(n=e.target).releasePointerCapture)||void 0===t||t.call(n,e.pointerId)}catch(vo){}},I=()=>{k(),n()};return(0,Xo.jsx)("div",{className:"ppm-overlay",onClick:I,children:(0,Xo.jsxs)("div",{className:"ppm-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"ppm-header",children:[(0,Xo.jsx)("span",{className:"ppm-logo",children:"CLIPBAIT"}),(0,Xo.jsx)("button",{className:"ppm-close",onClick:I,"aria-label":"Close",children:"\u2715"})]}),(0,Xo.jsxs)("div",{className:"ppm-body",children:[(0,Xo.jsx)("h2",{className:"ppm-title",children:T}),(0,Xo.jsx)("p",{className:"ppm-subtitle",children:C}),w&&(0,Xo.jsxs)("div",{className:"ppm-tip",children:[(0,Xo.jsx)("span",{className:"ppm-tip-icon",children:"!"}),(0,Xo.jsxs)("span",{children:[(0,Xo.jsx)("b",{children:"Face on screen, not a logo."})," Upload a real photo of the person \u2014 a logo or icon will stop the AI from tracking them."]})]}),(0,Xo.jsxs)("div",{className:"ppm-crop-wrap",style:{width:hT,he
2ight:hT},children:[(0,Xo.jsx)("div",{ref:o,className:"ppm-crop-box",style:{width:hT,height:hT},onWheel:u?e=>{if(!p)return;e.preventDefault();const t=.0015*-e.deltaY,n=Math.max(1,Math.min(3,f+t));g(n),b((e=>N(e)))}:void 0,onPointerDown:u?e=>{var t,n;p&&(e.preventDefault(),null===(t=(n=e.target).setPointerCapture)||void 0===t||t.call(n,e.pointerId),S.current={active:!0,lastX:e.clientX,lastY:e.clientY,startPanX:v.x,startPanY:v.y})}:void 0,onPointerMove:u?e=>{if(!S.current.active)return;e.preventDefault();const t=e.clientX-S.current.lastX,n=e.clientY-S.current.lastY;b(N({x:S.current.startPanX+t,y:S.current.startPanY+n}))}:void 0,onPointerUp:u?L:void 0,onPointerCancel:u?L:void 0,onClick:u?void 0:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.click()},children:u?(0,Xo.jsx)("img",{ref:l,src:u,alt:"",draggable:!1,onLoad:()=>{const e=l.current;e&&m({w:e.naturalWidth,h:e.naturalHeight})},style:{position:"absolute",left:"".concat(P,"px"),top:"".concat(R,"px"),width:"".concat(j,"px"),height:"".concat(A,"px"),userSelect:"none",pointerEvents:"none"}}):(0,Xo.jsxs)("div",{className:"ppm-avatar-empty",children:[(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#ff6a00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),(0,Xo.jsx)("circle",{cx:"12",cy:"13",r:"4"})]}),(0,Xo.jsx)("span",{children:"Click to choose photo"})]})}),(0,Xo.jsx)("input",{ref:s,type:"file",accept:"image/*",style:{display:"none"},onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;if(!n.type.startsWith("image/"))return void Vo.error("Please select an image file");u&&URL.revokeObjectURL(u);const r=URL.createObjectURL(n);d(n),h(r),g(1),b({x:0,y:0})}})]}),u&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"ppm-crop-hint",children:"Drag to reposition \xb7 scroll or pinch to zoom"}),(0,Xo.jsxs)("div",{className:"ppm-zoom-row",children:[(0,Xo.jsx)("span",{className:"ppm-zoom-label",children:"Zoom"}),(0,Xo.jsx)("input",{type:"range",min:1,max:3,step:"0.01",value:f,onChange:e=>{g(parseFloat(e.target.value)),b((e=>N(e)))},className:"ppm-zoom-slider"}),(0,Xo.jsxs)("span",{className:"ppm-zoom-value",children:[f.toFixed(1),"x"]})]}),(0,Xo.jsx)("button",{type:"button",className:"ppm-change-link",onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.click()},children:"Choose a different photo"})]}),(0,Xo.jsx)("button",{type:"button",className:"ppm-upload-btn",onClick:async()=>{var e;if(c||l.current){if(l.current&&p){x(!0);try{const e=-P/E,t=-R/E,s=hT/E,o=hT/E,c=document.createElement("canvas");c.width=uT,c.height=uT;const d=c.getContext("2d");d.imageSmoothingQuality="high",d.drawImage(l.current,e,t,s,o,0,0,uT,uT);const u=await new Promise((e=>
2c.toBlob(e,"image/jpeg",.92)));if(!u)throw new Error("Could not crop image");const h=new FormData;let p;if(w){h.append("avatar",u,"avatar.jpg");p=(await ks.post("/users/me/brands/".concat(r,"/profile-picture"),h,{headers:{"Content-Type":"multipart/form-data"}})).data.avatar}else{h.append("profilePicture",u,"profile.jpg");p=(await ks.post("/users/me/profile-picture",h,{headers:{"Content-Type":"multipart/form-data"}})).data.profilePicture,window.dispatchEvent(new CustomEvent("profile_picture_updated",{detail:{profilePicture:p}}))}Vo.success(w?"".concat(i||"Brand"," photo updated"):"Profile picture updated"),null===a||void 0===a||a(p,r),k(),n()}catch(K6){console.error("Upload failed:",K6),Vo.error("Failed to upload. Please try again.")}finally{x(!1)}}}else null===(e=s.current)||void 0===e||e.click()},disabled:y,children:y?(0,Xo.jsx)("span",{className:"ppm-spinner"}):u?"Save photo":"Choose photo"})]})]})})};function mT(e){let{src:t,name:n,className:r="",size:i}=e;const[a,s]=(0,$.useState)(!1);(0,$.useEffect)((()=>{s(!1)}),[t]);const o=(n||"?").trim().charAt(0).toUpperCase()||"?",l=i?{width:i,height:i,fontSize:Math.round(.42*i)}:void 0;return(e=>!!e&&/^(https?:|data:|blob:)/.test(e))(t)&&!a?(0,Xo.jsx)("img",{src:t,alt:n||"avatar",className:"cb-avatar ".concat(r),style:l,onError:()=>s(!0)}):(0,Xo.jsx)("div",{className:"cb-avatar cb-avatar-initial ".concat(r),style:l,children:o})}const fT={twitter:"\ud835\udd4f",tiktok:"\u266a",youtube:"\u25b6",facebook:"f"},gT=e=>{let{creditRemaining:t,creditTotal:n,nextExpiringGrant:r,activeGrants:i,onUpgrade:a,userPlan:s}=e;const{t:l}=Ae(["common","settings"]),{user:c,dispatch:d}=(0,$.useContext)(Qo),[u,h]=(0,$.useState)({}),[p,m]=(0,$.useState)([]),[f,g]=(0,$.useState)(null),v=Vt(),b=a||(()=>v("/upgrade")),y=Wt(),[x,S]=(0,$.useState)(!1),[k,w]=(0,$.useState)(!1),[T,C]=(0,$.useState)(!1);(0,$.useEffect)((()=>{w(!1)}),[f,p]);const E=(0,$.useRef)(null),[j,A]=(0,$.useState)({open:!1,id:null,name:""}),[N,P]=(0,$.useState)(null),[R,L]=(0,$.useState)(null),[I,D]=(0,$.useState)(null),O=void 0===t,M=null!==t&&void 0!==t?t:N,_=null!==n&&void 0!==n?n:R,F=null!==s&&void 0!==s?s:I,B=(0,$.useCallback)((async()=>{try{if(null===c||void 0===c||!c._id)return;const e=await ks.get("/users?userId=".concat(c._id));h(e.data||{})}catch(K6){console.error("Failed to fetch user:",K6)}}),[c]),U=(0,$.useCallback)((async()=>{try{if(null===c||void 0===c||!c._id)return;const e=await ks.get("/users/me/brands"),t=e.data.brands||[],n=e.data.activeBrandId||null;m(t),g(n);const r=n?t.find((e=>e._id===n)):t[0],i=e=>e&&e.startsWith("http")&&!e.includes("amazonaws.com");r&&!i(r.avatar)&&A({open:!0,id:r._id,name:r.name})}catch(K6){console.error("Failed to fetch brands:",K6)}}),[c]);(0,$.useEffect)((()=>{c&&(B(),U())}),[c,B,U]),(0,$.useEffect)((()=>{O&&null!==c&&void 0!==c&&c._id&&ks.get("/billing/plan/status").then((e=>{var t,n,r;P(null!==(t=e.data.generationsRemaining)&&void 0!==t?t:null),L(null!==(n=e.data.creditsPeriodTotal)&&void 0!==n?n:null),D(null!==(r=e.data.plan)&&void 0!==r?r:null)})).catch((()=>{}))}),[O,c]),(0,$.useEffect)((()=>{const e=e=>{var t;null!==(t=e.detail)&&void 0!==t&&t.profilePicture&&(h((t=>o(o({},t),{},{profilePicture:e.detail.profilePicture}))),U())};return window.addEventListener("profile_picture_updated",e),()=>window.removeEventListener("profile_picture_updated",e)}
2),[U]),(0,$.useEffect)((()=>{const e=e=>{E.current&&!E.current.contains(e.target)&&S(!1)},t=e=>"Escape"===e.key&&S(!1);return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[]);const[z,G]=(0,$.useState)(null);if(["/profile","/creator-dashboard","/notifications"].includes(y.pathname))return null;const W=p.find((e=>e._id===f))||p[0],H="number"===typeof M,V=H&&_>0?Math.max(0,Math.min(100,Math.round(M/_*100))):H?100:null,K=null===V?"rgba(255,255,255,0.2)":V>30?"#ff6a00":V>10?"#f59e0b":"#ef4444",q=null!==V?{background:"conic-gradient(".concat(K," ").concat(V,"%, rgba(255,255,255,0.1) ").concat(V,"%)")}:{},Y=!F||"none"===F,X=!!F&&"none"!==F,J=e=>!!e&&/^(https?:|data:|blob:)/.test(e),Q=J(null===W||void 0===W?void 0:W.avatar)?W.avatar:J(null===c||void 0===c?void 0:c.profilePicture)?c.profilePicture:null,Z=k?null:Q,ee=!Z,te=((null===W||void 0===W?void 0:W.name)||(null===c||void 0===c?void 0:c.username)||(null===c||void 0===c?void 0:c.email)||"?").trim().charAt(0).toUpperCase();return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"topbar",children:[(0,Xo.jsx)("div",{className:"topbar-left",children:(0,Xo.jsx)(wn,{to:"/",className:"topbar-logo",children:"CLIPBAIT"})}),(0,Xo.jsxs)("div",{className:"topbar-right",children:[(0,Xo.jsx)(dT,{variant:"desktop"}),c&&(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsxs)("button",{className:"topbar-upgrade-btn".concat(Y?"":" topbar-upgrade-btn--subtle"),onClick:b,children:[(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),l("common:upgrade")]})}),c?(0,Xo.jsxs)("div",{className:"profile-container",ref:E,children:[(0,Xo.jsxs)("div",{className:"topbar-brand-trigger",onClick:()=>S((e=>!e)),children:[(0,Xo.jsxs)("div",{className:"topbar-credit-ring",style:q,children:[Z?(0,Xo.jsx)("img",{src:Z,alt:"profile",className:"topbar-profile-img",onError:()=>w(!0)}):(0,Xo.jsx)("div",{className:"topbar-profile-img topbar-profile-placeholder topbar-profile-initial",children:te}),"number"===typeof M&&0===M&&(0,Xo.jsx)("span",{className:"topbar-credit-badge",children:"0"})]}),W&&(0,Xo.jsx)("span",{className:"topbar-brand-name",children:W.name}),"own"===(u.referralSource||"").toLowerCase()&&(0,Xo.jsx)("span",{className:"topbar-own-badge",title:"OWN partner member",children:"OWN"}),(0,Xo.jsx)("span",{className:"topbar-chevron",children:x?"\u25b2":"\u25bc"})]}),x&&(0,Xo.jsxs)("div",{className:"dropdown-menu-custom brand-dropdown",children:[(0,Xo.jsxs)("div",{className:"dropdown-user-header",children:[(0,Xo.jsx)("div",{className:"dropdown-user-avatar",children:(0,Xo.jsx)(mT,{src:null===W||void 0===W?void 0:W.avatar,name:(null===W||void 0===W?void 0:W.name)||u.username||"C"})}),(0,Xo.jsxs)("div",{className:"dropdown-user-info",children:[(0,Xo.jsx)("span",{className:"dropdown-user-name",children:(null===W||void 0===W?void 0:W.name)||u.username||"User"}),(0,Xo.jsx)("span",{className:"dropdown-user-plan".concat(Y?" dropdown-user-plan--free":""),children:Y?l("common:freePlan"):l("common:planLabel",{plan:F?F.charAt(0).toUpperCase()+F.slice(1):"Pro"})})]})]}),ee&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("button",{type:"button",className:"dropdown-item-custom dropdown-update-pic-prompt",onClick:()=>{S(!1),v("/me")},children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:[(0,Xo.jsx)("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),(0,Xo.jsx)("circle",{cx:"12",cy:"13",r:"4"})]}),(0,Xo.jsx)("span",{children:"Update profile picture"}),(0,Xo.jsx)("span",{className:"dropdown-topup-buy-badge",style:{background:"#ff6a00"},children:"!"})]}),(0,Xo.jsx)("div",{className:"dropdown-divider"})]}),(0,Xo.jsxs)("button",{type:"button",className:"dropdown-item-custom dropdown-add-brand",onClick:()=>{S(!1),X?v("/me?newBrand=true"):b()},children:[(0,Xo.jsx)("span",{className:"brand-add-icon",children:"+"}),l("settings:addBrand")]}),(0,Xo.jsx)("div",{className:"dropdown-divider"}),"number"===typeof M&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"dropdown-credits-status".concat(0===M?" dropdown-credits-status--empty":""),onClick:()=>{0===M?(S(!1),b()):C((e=>!e))},role:"button",tabIndex:0,children:[(0,Xo.jsx)("span",{children:0===M?l("common:outOfCredits"):l("common:creditsRemaining",{count:M})}),(0,Xo.jsx)("span",{className:"dropdown-credits-chevron".concat(T?" open":""),children:"\u203a"})]}),(0,Xo.jsx)("div",{className:"dropdown-credits-track",children:(0,Xo.jsx)("div",{className:"dropdown-credits-fill",style:{width:"".concat(null!==V&&void 0!==V?V:0,"%"),background:K}})}),T&&Array.isArray(i)&&i.length>0&&(0,Xo.jsx)("div",{className:"dropdown-credits-expiry",children:i.map(((e,t)=>(0,Xo.jsxs)("div",{className:"dropdown-credits-expiry-row",children:[(0,Xo.jsx)("span",{className:"dropdown-credits-expiry-amount",children:e.amount}),(0,Xo.jsx)("span",{className:"dropdown-credits-expiry-meta",children:e.expiresAt?"Expires in ".concat(e.daysRemaining," day").concat(1===e.daysRemaining?"":"s"):"Never expires"})]},t)))}),(0,Xo.jsxs)("button",{type:"button",className:"dropdown-item-custom dropdown-topup-row",onClick:()=>{S(!1),v("/upgrade?tab=credits")},children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),(0,Xo.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),(0,Xo.jsx)("span",{style:{flex:1},children:l("common:topUpCredits")}),(0,Xo.jsx)("span",{className:"dropdown-topup-buy-badge",children:l("common:buy")})]}),(0,Xo.jsx)("div",{className:"dropdown-divider"})]}),(0,Xo.jsx)("div",{className:"brand-list-scroll",children:p.map((e=>{const t=f&&e._id===f;return(0,Xo.jsxs)("button",{type:"button",className:"dropdown-item-custom brand-item ".concat(t?"brand-active":""),onClick:()=>!t&&(async e=>{try{await ks.put("/users/me/brands/".concat(e,"/activate")),g(e),window.location.reload()}catch(K6){console.error("Failed to switch brand:",K6)}})(e._id),children:[(0,Xo.jsxs)("div",{className:"brand-item-left",children:[(0,Xo.jsx)("div",{className:"brand-avatar ".concat(t?"brand-avatar-active":""),children:J(e.avatar)?(0,Xo.jsx)(mT,{src:e.avatar,name:e.name}):(0,Xo.jsx)("span",{className:"brand-avatar-add-photo",title:"Add profile picture",onClick:t=>{t.stopPropagation(),S(!1),A({open:!0,id:e._id,name:e.name})},children:(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),(0,Xo.jsx)("circle",{cx:"12",cy:"13",r:"4"})]})})}),(0,Xo.jsxs)("div",{className:"brand-info",children:[(0,Xo.jsx)("span",{className:"brand-name",children:e.name}),e.connectedPlatforms&&e.connectedPlatforms.length>0&&(0,Xo.jsx)("span",{className:"brand-platforms",children:e.connectedPlatforms.map((e=>(0,Xo.jsx)("span",{className:"brand-platform-icon",children:fT[e]||e},e)))})]})]}),z===e._id?(0,Xo.jsxs)("div",{className:"brand-delete-confirm",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"brand-delete-yes",onClick:t=>{t.stopPropagation(),(async e=>{try{await ks.delete("/users/me/brands/".concat(e)),G(null),U(),e===f&&window.location.reload()}catch(K6){console.error("Failed to delete brand:",K6)}})(e._id)},children:l("common:delete")}),(0,Xo.jsx)("button",{className:"brand-delete-no",onClick:e=>{e.stopPropagation(),G(null)},children:l("common:cancel")})]}):p.length>1&&(0,Xo.jsx)("span",{className:"brand-delete-icon",onClick:t=>{t.stopPropagation(),G(e._id)},title:l("common:delete"),children:(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#666",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]},e._id)}))}),(0,Xo.jsx)("div",{className:"dropdown-divider"}),(0,Xo.jsxs)("button",{type:"button",className:"dropdown-item-custom dropdown-nav-item",onClick:()=>{S(!1),v("/me?tab=settings")},children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,Xo.jsx)("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),l("common:manageAccount")]}),(0,Xo.jsx)("div",{className:"dropdown-divider"}),(0,Xo.jsxs)("button",{type:"button",onClick:()=>{qo(d),localStorage.removeItem("clipbait_token"),v("/")},className:"dropdown-item-custom dropdown-logout",children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,Xo.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,Xo.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]}),l("common:signOut")]})]})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("a",{href:"https://app.clipbait.ai/login",className:"topbar-btn",children:l("login")}),(0,Xo.jsx)("a",{href:"https://app.clipbait.ai/signup",className:"topbar-btn",children:l("signUp")})]})]})]}),(0,Xo.jsx)(pT,{isOpen:j.open,brandId:j.id,brandName:j.name,onClose:()=>A({open:!1,id:null,name:""}),onUploaded:(e,t)=>{m((n=>n.map((n=>n._id===t?o(o({},n),{},{avatar:e}):n)))),A({open:!1,id:null,name:""})}})]})};var vT=n(4600),bT=n.n(vT),yT=Function.prototype.bind.call(Function.prototype.call,[].slice);function xT(e,t){return yT(e.querySelectorAll(t))}const ST=!("undefined"===typeof window||!window.document||!window.document.createElement);var kT=!1,wT=!1;
vendor: 4,074 bytes, line 2
2try{var TT={get passive(){return kT=!0},get once(){return wT=kT=!0}};ST&&(window.addEventListener("test",TT,TT),window.removeEventListener("test",TT,!0))}catch(Ps){}const CT=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!wT){var i=r.once,a=r.capture,s=n;!wT&&i&&(s=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=s),e.addEventListener(t,s,kT?r:a)}e.addEventListener(t,n,r)};function ET(e,t,n){const r=(0,$.useRef)(void 0!==e),[i,a]=(0,$.useState)(t),s=void 0!==e,o=r.current;return r.current=s,!s&&o&&i!==t&&a(t),[s?e:i,(0,$.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[i,...s]=t;let o=null==n?void 0:n(i,...s);return a(i),o}),[n])]}const jT=function(e){const t=(0,$.useRef)(e);return(0,$.useEffect)((()=>{t.current=e}),[e]),t};function AT(e){const t=jT(e);return(0,$.useCallback)((function(){return t.current&&t.current(...arguments)}),[t])}const NT=$.createContext(null);var PT=Object.prototype.hasOwnProperty;function RT(e,t,n){for(n of e.keys())if(LT(n,t))return n}function LT(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&<(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((i=r)&&"object"===typeof i&&!(i=RT(t,i)))return!1;if(!t.has(i))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((i=r[0])&&"object"===typeof i&&!(i=RT(t,i)))return!1;if(!LT(r[1],t.get(i)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(PT.call(e,n)&&++r&&!PT.call(t,n))return!1;if(!(n in t)||!LT(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}const IT=function(e){const t=function(){const e=(0,$.useRef)(!0),t=(0,$.useRef)((()=>e.current));return(0,$.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}();return[e[0],(0,$.useCallback)((n=>{if(t())return e[1](n)}),[t,e[1]])]};function DT(e){return e.split("-")[0]}function OT(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function MT(e){return e instanceof OT(e).Element||e instanceof Element}function _T(e){return e instanceof OT(e).HTMLElement||e instanceof HTMLElement}function FT(e){return"undefined"!==typeof ShadowRoot&&(e instanceof OT(e).ShadowRoot||e instanceof ShadowRoot)}var BT=Math.max,UT=Math.min,zT=Math.round;function GT(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function WT(){return!/^((?!chrome|android).)*safari/i.test(GT())}function HT(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&_T(e)&&(i=e.offsetWidth>0&&zT(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&zT(r.height)/e.offsetHeight||1);var s=(MT(e)?OT(e):window).visualViewport,o=!WT()&&n,l=(r.left+(o&&s?s.offsetLeft:0))/i,c=(r.top+(o&&s?s.offsetTop:0))/a,d=r.width/i,u=r.height/a;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function VT(e){var t=HT(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function KT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&FT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qT(e){return e?(e.nodeName||"").toLowerCase():null}function YT(e){return OT(e).getComputedStyle(e)}function XT(e){return["table","td","th"].indexOf(qT(e))>=0}function JT(e){return((MT(e)?e.ownerDocument:e.document)||window.document).documentElement}
vendor: 13,345 bytes, line 2
2function QT(e){return"html"===qT(e)?e:e.assignedSlot||e.parentNode||(FT(e)?e.host:null)||JT(e)}function ZT(e){return _T(e)&&"fixed"!==YT(e).position?e.offsetParent:null}function $T(e){for(var t=OT(e),n=ZT(e);n&&XT(n)&&"static"===YT(n).position;)n=ZT(n);return n&&("html"===qT(n)||"body"===qT(n)&&"static"===YT(n).position)?t:n||function(e){var t=/firefox/i.test(GT());if(/Trident/i.test(GT())&&_T(e)&&"fixed"===YT(e).position)return null;var n=QT(e);for(FT(n)&&(n=n.host);_T(n)&&["html","body"].indexOf(qT(n))<0;){var r=YT(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function eC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tC(e,t,n){return BT(e,UT(t,n))}function nC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function rC(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var iC="top",aC="bottom",sC="right",oC="left",lC="auto",cC=[iC,aC,sC,oC],dC="start",uC="end",hC="viewport",pC="popper",mC=cC.reduce((function(e,t){return e.concat([t+"-"+dC,t+"-"+uC])}),[]),fC=[].concat(cC,[lC]).reduce((function(e,t){return e.concat([t,t+"-"+dC,t+"-"+uC])}),[]),gC=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const vC={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=DT(n.placement),l=eC(o),c=[oC,sC].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(e,t){return nC("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:rC(e,cC))}(i.padding,n),u=VT(a),h="y"===l?iC:oC,p="y"===l?aC:sC,m=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],f=s[l]-n.rects.reference[l],g=$T(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-f/2,y=d[h],x=v-u[c]-d[p],S=v/2-u[c]/2+b,k=tC(y,S,x),w=l;n.modifiersData[r]=((t={})[w]=k,t.centerOffset=k-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&KT(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bC(e){return e.split("-")[1]}var yC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xC(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=s.x,p=void 0===h?0:h,m=s.y,f=void 0===m?0:m,g="function"===typeof d?d({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=oC,x=iC,S=window;if(c){var k=$T(n),w="clientHeight",T="clientWidth";if(k===OT(n)&&"static"!==YT(k=JT(n)).position&&"absolute"===o&&(w="scrollHeight",T="scrollWidth"),i===iC||(i===oC||i===sC)&&a===uC)x=aC,f-=(u&&k===S&&S.visualViewport?S.visualViewport.height:k[w])-r.height,f*=l?1:-1;if(i===oC||(i===iC||i===aC)&&a===uC)y=sC,p-=(u&&k===S&&S.visualViewport?S.visualViewport.width:k[T])-r.width,p*=l?1:-1}var C,E=Object.assign({position:o},c&&yC),j=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:zT(n*i)/i||0,y:zT(r*i)/i||0}}({x:p,y:f},OT(n)):{x:p,y:f};return p=j.x,f=j.y,l?Object.assign({},E,((C={})[x]=b?"0":"",C[y]=v?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",C)):Object.assign({},E,((t={})[x]=b?f+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const SC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,s=void 0===a||a,o=n.roundOffsets,l=void 0===o||o,c={placement:DT(t.placement),variation:bC(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xC(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xC(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var kC={passive:!0};const wC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,o=void 0===s||s,l=OT(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,kC)})),o&&l.addEventListener("resize",n.update,kC),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,kC)})),o&&l.removeEventListener("resize",n.update,kC)}},data:{}};var TC={left:"right",right:"left",bottom:"top",top:"bottom"};function CC(e){return e.replace(/left|right|bottom|top/g,(function(e){return TC[e]}))}var EC={start:"end",end:"start"};function jC(e){return e.replace(/start|end/g,(function(e){return EC[e]}))}function AC(e){var t=OT(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function NC(e){return HT(JT(e)).left+AC(e).scrollLeft}function PC(e){var t=YT(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function RC(e){return["html","body","#document"].indexOf(qT(e))>=0?e.ownerDocument.body:_T(e)&&PC(e)?e:RC(QT(e))}function LC(e,t){var n;void 0===t&&(t=[]);var r=RC(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=OT(r),s=i?[a].concat(a.visualViewport||[],PC(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(LC(QT(s)))}function IC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function DC(e,t,n){return t===hC?IC(function(e,t){var n=OT(e),r=JT(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var c=WT();(c||!c&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+NC(e),y:l}}(e,n)):MT(t)?function(e,t){var n=HT(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):IC(function(e){var t,n=JT(e),r=AC(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=BT(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=BT(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+NC(e),l=-r.scrollTop;return"rtl"===YT(i||n).direction&&(o+=BT(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}(JT(e)))}function OC(e,t,n,r){var i="clippingParents"===t?function(e){var t=LC(QT(e)),n=["absolute","fixed"].indexOf(YT(e).position)>=0&&_T(e)?$T(e):e;return MT(n)?t.filter((function(e){return MT(e)&&KT(e,n)&&"body"!==qT(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce((function(t,n){var i=DC(e,n,r);return t.top=BT(i.top,t.top),t.right=UT(i.right,t.right),t.bottom=UT(i.bottom,t.bottom),t.left=BT(i.left,t.left),t}),DC(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function MC(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?DT(i):null,s=i?bC(i):null,o=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case iC:t={x:o,y:n.y-r.height};break;case aC:t={x:o,y:n.y+n.height};break;case sC:t={x:n.x+n.width,y:l};break;case oC:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?eC(a):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case dC:t[c]=t[c]-(n[d]/2-r[d]/2);break;case uC:t[c]=t[c]+(n[d]/2-r[d]/2)}}return t}function _C(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,o=n.boundary,l=void 0===o?"clippingParents":o,c=n.rootBoundary,d=void 0===c?hC:c,u=n.elementContext,h=void 0===u?pC:u,p=n.altBoundary,m=void 0!==p&&p,f=n.padding,g=void 0===f?0:f,v=nC("number"!==typeof g?g:rC(g,cC)),b=h===pC?"reference":pC,y=e.rects.popper,x=e.elements[m?b:h],S=OC(MT(x)?x:x.contextElement||JT(e.elements.popper),l,d,s),k=HT(e.elements.reference),w=MC({reference:k,element:y,strategy:"absolute",placement:i}),T=IC(Object.assign({},y,w)),C=h===pC?T:k,E={top:S.top-C.top+v.top,bottom:C.bottom-S.bottom+v.bottom,left:S.left-C.left+v.left,right:C.right-S.right+v.right},j=e.modifiersData.offset;if(h===pC&&j){var A=j[i];Object.keys(E).forEach((function(e){var t=[sC,aC].indexOf(e)>=0?1:-1,n=[iC,aC].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t}))}return E}const FC={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,s=n.altAxis,o=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=void 0===p||p,f=n.allowedAutoPlacements,g=t.options.placement,v=DT(g),b=l||(v===g||!m?[CC(g)]:function(e){if(DT(e)===lC)return[];var t=CC(e);return[jC(e),t,jC(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(DT(n)===lC?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?fC:l,d=bC(r),u=d?o?mC:mC.filter((function(e){return bC(e)===d})):cC,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var p=h.reduce((function(t,n){return t[n]=_C(e,{placement:n,boundary:i,rootBoundary:a,padding:s})[DT(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)}),[]),x=t.rects.reference,S=t.rects.popper,k=new Map,w=!0,T=y[0],C=0;C<y.length;C++){var E=y[C],j=DT(E),A=bC(E)===dC,N=[iC,aC].indexOf(j)>=0,P=N?"width":"height",R=_C(t,{placement:E,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),L=N?A?sC:oC:A?aC:iC;x[P]>S[P]&&(L=CC(L));var I=CC(L),D=[];if(a&&D.push(R[j]<=0),o&&D.push(R[L]<=0,R[I]<=0),D.every((function(e){return e}))){T=E,w=!1;break}k.set(E,D)}if(w)for(var O=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},M=m?3:1;M>0;M--){if("break"===O(M))break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function BC(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function UC(e){return[iC,sC,aC,oC].some((function(t){return e[t]>=0}))}const zC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=_C(t,{elementContext:"reference"}),o=_C(t,{altBoundary:!0}),l=BC(s,r),c=BC(o,i,a),d=UC(l),u=UC(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};const GC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,s=fC.reduce((function(e,n){return e[n]=function(e,t,n){var r=DT(e),i=[oC,iC].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[oC,sC].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}(n,t.rects,a),e}),{}),o=s[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};const WC={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=MC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const HC={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,s=n.altAxis,o=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,p=void 0===h||h,m=n.tetherOffset,f=void 0===m?0:m,g=_C(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=DT(t.placement),b=bC(t.placement),y=!b,x=eC(v),S="x"===x?"y":"x",k=t.modifiersData.popperOffsets,w=t.rects.reference,T=t.rects.popper,C="function"===typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,E="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(k){if(a){var N,P="y"===x?iC:oC,R="y"===x?aC:sC,L="y"===x?"height":"width",I=k[x],D=I+g[P],O=I-g[R],M=p?-T[L]/2:0,_=b===dC?w[L]:T[L],F=b===dC?-T[L]:-w[L],B=t.elements.arrow,U=p&&B?VT(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=z[P],W=z[R],H=tC(0,w[L],U[L]),V=y?w[L]/2-M-H-G-E.mainAxis:_-H-G-E.mainAxis,K=y?-w[L]/2+M+H+W+E.mainAxis:F+H+W+E.mainAxis,q=t.elements.arrow&&$T(t.elements.arrow),Y=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,X=null!=(N=null==j?void 0:j[x])?N:0,J=I+K-X,Q=tC(p?UT(
vendor: 4,107 bytes, line 2
2D,I+V-X-Y):D,I,p?BT(O,J):O);k[x]=Q,A[x]=Q-I}if(o){var Z,$="x"===x?iC:oC,ee="x"===x?aC:sC,te=k[S],ne="y"===S?"height":"width",re=te+g[$],ie=te-g[ee],ae=-1!==[iC,oC].indexOf(v),se=null!=(Z=null==j?void 0:j[S])?Z:0,oe=ae?re:te-w[ne]-T[ne]-se+E.altAxis,le=ae?te+w[ne]+T[ne]-se-E.altAxis:ie,ce=p&&ae?function(e,t,n){var r=tC(e,t,n);return r>n?n:r}(oe,te,le):tC(p?oe:re,te,p?le:ie);k[S]=ce,A[S]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function VC(e,t,n){void 0===n&&(n=!1);var r=_T(t),i=_T(t)&&function(e){var t=e.getBoundingClientRect(),n=zT(t.width)/e.offsetWidth||1,r=zT(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=JT(t),s=HT(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==qT(t)||PC(a))&&(o=function(e){return e!==OT(e)&&_T(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:AC(e);var t}(t)),_T(t)?((l=HT(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=NC(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function KC(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function qC(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var YC={placement:"bottom",modifiers:[],strategy:"absolute"};function XC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function JC(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?YC:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},YC,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],o=!1,l={state:i,setOptions:function(n){var o="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:MT(e)?LC(e):e.contextElement?LC(e.contextElement):[],popper:LC(t)};var d=function(e){var t=KC(e);return gC.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=d.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var o=a({state:i,name:t,instance:l,options:r}),c=function(){};s.push(o||c)}})),l.update()},forceUpdate:function(){if(!o){var e=i.elements,t=e.reference,n=e.popper;if(XC(t,n)){i.rects={reference:VC(t,$T(n),"fixed"===i.options.strategy),popper:VT(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],s=a.fn,c=a.options,d=void 0===c?{}:c,u=a.name;"function"===typeof s&&(i=s({state:i,options:d,name:u,instance:l})||i)}else i.reset=!1,r=-1}}},update:qC((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),o=!0}};if(!XC(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!o&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}const QC=JC({defaultModifiers:[zC,WC,SC,wC,GC,FC,HC,vC]}),ZC=["enabled","placement","strategy","modifiers"];const $C={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},eE={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:e=>{let{state:t}=e;return()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const t=(e.getAttribute("aria-describedby")||"").split(",").filter((e=>
2e.trim()!==n.id));t.length?e.setAttribute("aria-describedby",t.join(",")):e.removeAttribute("aria-describedby")}}},fn:e=>{let{state:t}=e;var n;const{popper:r,reference:i}=t.elements,a=null==(n=r.getAttribute("role"))?void 0:n.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in i){const e=i.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",e?"".concat(e,",").concat(r.id):r.id)}}},tE=[];const nE=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:s=tE}=n,o=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,ZC);const l=(0,$.useRef)(s),c=(0,$.useRef)(),d=(0,$.useCallback)((()=>{var e;null==(e=c.current)||e.update()}),[]),u=(0,$.useCallback)((()=>{var e;null==(e=c.current)||e.forceUpdate()}),[]),[h,p]=IT((0,$.useState)({placement:i,update:d,forceUpdate:u,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,$.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:e=>{let{state:t}=e;const n={},r={};Object.keys(t.elements).forEach((e=>{n[e]=t.styles[e],r[e]=t.attributes[e]})),p({state:t,styles:n,attributes:r,update:d,forceUpdate:u,placement:t.placement})}})),[d,u,p]),f=(0,$.useMemo)((()=>(LT(l.current,s)||(l.current=s),l.current)),[s]);return(0,$.useEffect)((()=>{c.current&&r&&c.current.setOptions({placement:i,strategy:a,modifiers:[...f,m,$C]})}),[a,i,m,r,f]),(0,$.useEffect)((()=>{if(r&&null!=e&&null!=t)return c.current=QC(e,t,Object.assign({},o,{placement:i,strategy:a,modifiers:[...f,eE,m]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[r,e,t]),h};function rE(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}const iE=function(e,t,n,r){var i=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)};const aE=function(e,t,n,r){return CT(e,t,n,r),function(){iE(e,t,n,r)}};var sE=n(6440),oE=n.n(sE);const lE=()=>{};const cE=e=>e&&("current"in e?e.current:e),dE={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};const uE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lE,{disabled:n,clickTrigger:r="click"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,$.useRef)(!1),a=(0,$.useRef)(!1),s=(0,$.useCallback)((t=>{const n=cE(e);var r;oE()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!rE(n,t.target)||a.current,a.current=!1}),[e]),o=AT((t=>{const n=cE(e);n&&rE(n,t.target)&&(a.current=!0)})),l=AT((e=>{i.current||t(e)}));(0,$.useEffect)((()=>{var t,i;if(n||null==e)return;const a=(c=cE(e))&&c.ownerDocument||document;var c;const d=a.defaultView||window;let u=null!=(t=d.event)?t:null==(i=d.parent)?void 0:i.event,h=null;dE[r]&&(h=aE(a,dE[r],o,!0));const p=aE(a,r,s,!0),m=aE(a,r,(e=>{e!==u?l(e):u=void 0}));let f=[];return"ontouchstart"in a.documentElement&&(f=[].slice.call(a.body.children).map((e=>aE(e,"mousemove",lE)))),()=>{null==h||h(),p(),m(),f.forEach((e=>e()))}}),[e,n,r,s,o,l])};function hE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function pE(e){let{enabled:t,enableEvents:n,placement:r,flip:i,offset:a,fixed:s,containerPadding:o,arrowElement:l,popperConfig:c={}}=e;var d,u,h,p,m;const f=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(c.modifiers);return Object.assign({},c,{placement:r,enabled:t,strategy:s?"fixed":c.strategy,modifiers:hE(Object.assign({},f,{eventListeners:{enabled:n,options:null==(d=f.eventListeners)?void 0:d.options},preventOverflow:Object.assign({},f.preventOverflow,{options:o?Object.assign({padding:o},null==(u=f.preventOverflow)?void 0:u.options):null==(h=f.preventOverflow)?void 0:h.options}),offset:{options:Object.assign({offset:a},null==(p=f.offset)?void 0:p.options)},arrow:Object.assign({},f.arrow,{enabled:!!l,options:Object.assign({}
2,null==(m=f.arrow)?void 0:m.options,{element:l})}),flip:Object.assign({enabled:!!i},f.flip)}))})}const mE=["children"];const fE=()=>{};function gE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,$.useContext)(NT),[n,r]=(0,$.useState)(null),i=(0,$.useRef)(!1),{flip:a,offset:s,rootCloseEvent:o,fixed:l=!1,placement:c,popperConfig:d={},enableEventListeners:u=!0,usePopper:h=!!t}=e,p=null==(null==t?void 0:t.show)?!!e.show:t.show;p&&!i.current&&(i.current=!0);const{placement:m,setMenu:f,menuElement:g,toggleElement:v}=t||{},b=nE(v,g,pE({placement:c||m||"bottom-start",enabled:h,enableEvents:null==u?p:u,offset:s,flip:a,fixed:l,arrowElement:n,popperConfig:d})),y=Object.assign({ref:f||fE,"aria-labelledby":null==v?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),x={show:p,placement:m,hasShown:i.current,toggle:null==t?void 0:t.toggle,popper:h?b:null,arrowProps:h?Object.assign({ref:r},b.attributes.arrow,{style:b.styles.arrow}):{}};return uE(g,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:o,disabled:!p}),[y,x]}function vE(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,mE);const[r,i]=gE(n);return(0,Xo.jsx)(Xo.Fragment,{children:t(r,i)})}vE.displayName="DropdownMenu",vE.defaultProps={usePopper:!0};const bE=vE,yE={prefix:String(Math.round(1e10*Math.random())),current:0},xE=$.createContext(yE),SE=$.createContext(!1);let kE=Boolean("undefined"!==typeof window&&window.document&&window.document.createElement),wE=new WeakMap;function TE(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,$.useContext)(xE),n=(0,$.useRef)(null);if(null===n.current&&!e){var r,i;let e=null===(i=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=wE.get(e);null==n?wE.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,wE.delete(e))}n.current=++t.current}return n.current}const CE="function"===typeof $.useId?function(e){let t=$.useId(),[n]=(0,$.useState)("function"===typeof $.useSyncExternalStore?$.useSyncExternalStore(AE,EE,jE):(0,$.useContext)(SE)),r=n?"react-aria":"react-aria".concat(yE.prefix);return e||"".concat(r,"-").concat(t)}:function(e){let t=(0,$.useContext)(xE);t!==yE||kE||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=TE(!!e),r="react-aria".concat(t.prefix);return e||"".concat(r,"-").concat(n)};function EE(){return!1}function jE(){return!0}function AE(e){return()=>{}}const NE=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},PE=()=>{};function RE(){const e=CE(),{show:t=!1,toggle:n=PE,setToggle:r,menuElement:i}=(0,$.useContext)(NT)||{},a=(0,$.useCallback)((e=>{n(!t,e)}),[t,n]),s={id:e,ref:r||PE,onClick:a,"aria-expanded":!!t};return i&&NE(i)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function LE(e){let{children:t}=e;const[n,r]=RE();return(0,Xo.jsx)(Xo.Fragment,{children:t(n,r)})}LE.displayName="DropdownToggle";const IE=LE,DE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!=e?String(e):t||null},OE=$.createContext(null),ME=$.createContext(null);ME.displayName="NavContext";const _E=ME,FE=["as","disabled"];function BE(e){let{tagName:t,disabled:n,href:r,target:i,rel:a,role:s,onClick:o,tabIndex:l=0,type:c}=e;t||(t=null!=r||null!=i||null!=a?"a":"button");const d={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},d];const u=e=>{(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==o||o(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=s?s:"button",disabled:void 0,tabIndex:n?void 0:l,href:r,target:"a"===t?i:void 0,"aria-disabled":n||void 0,rel:"a"===t?a:void 0,onClick:u,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),u(e))}},d]}const UE=$.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,FE);const[a,{tagName:s}]=BE(Object.assign({tagName:n,disabled:r},i));return(0,Xo.jsx)(s,Object.assign({},i,a,{ref:t}))}));UE.displayName="Button";const zE=UE;function GE(e){return"".concat("data-rr-ui-").concat(e)}
2const WE=["eventKey","disabled","onClick","active","as"];function HE(e){let{key:t,href:n,active:r,disabled:i,onClick:a}=e;const s=(0,$.useContext)(OE),o=(0,$.useContext)(_E),{activeKey:l}=o||{},c=DE(t,n),d=null==r&&null!=t?DE(l)===c:r;return[{onClick:AT((e=>{i||(null==a||a(e),s&&!e.isPropagationStopped()&&s(c,e))})),"aria-disabled":i||void 0,"aria-selected":d,[GE("dropdown-item")]:""},{isActive:d}]}const VE=$.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:s=zE}=e,o=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,WE);const[l]=HE({key:n,href:o.href,disabled:r,onClick:i,active:a});return(0,Xo.jsx)(s,Object.assign({},o,{ref:t},l))}));VE.displayName="DropdownItem";const KE=VE,qE=(0,$.createContext)(ST?window:void 0);qE.Provider;function YE(){const e=function(){const[,e]=(0,$.useReducer)((e=>!e),!1);return e}(),t=(0,$.useRef)(null),n=(0,$.useCallback)((n=>{t.current=n,e()}),[e]);return[t,n]}function XE(e){let{defaultShow:t,show:n,onSelect:r,onToggle:i,itemSelector:a="* [".concat(GE("dropdown-item"),"]"),focusFirstItemOnShow:s,placement:o="bottom-start",children:l}=e;const c=(0,$.useContext)(qE),[d,u]=ET(n,t,i),[h,p]=YE(),m=h.current,[f,g]=YE(),v=f.current,b=function(e){const t=(0,$.useRef)(null);return(0,$.useEffect)((()=>{t.current=e})),t.current}(d),y=(0,$.useRef)(null),x=(0,$.useRef)(!1),S=(0,$.useContext)(OE),k=(0,$.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null==t?void 0:t.type;u(e,{originalEvent:t,source:n})}),[u]),w=AT(((e,t)=>{null==r||r(e,t),k(!1,t,"select"),t.isPropagationStopped()||null==S||S(e,t)})),T=(0,$.useMemo)((()=>({toggle:k,placement:o,show:d,menuElement:m,toggleElement:v,setMenu:p,setToggle:g})),[k,o,d,m,v,p,g]);m&&b&&!d&&(x.current=m.contains(m.ownerDocument.activeElement));const C=AT((()=>{v&&v.focus&&v.focus()})),E=AT((()=>{const e=y.current;let t=s;if(null==t&&(t=!(!h.current||!NE(h.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=xT(h.current,a)[0];n&&n.focus&&n.focus()}));(0,$.useEffect)((()=>{d?E():x.current&&(x.current=!1,C())}),[d,x,C,E]),(0,$.useEffect)((()=>{y.current=null}));const j=(e,t)=>{if(!h.current)return null;const n=xT(h.current,a);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=AT(n);(0,$.useEffect)((()=>{const n="function"===typeof e?e():e;return n.addEventListener(t,i,r),()=>n.removeEventListener(t,i,r)}),[e])}((0,$.useCallback)((()=>c.document),[c]),"keydown",(e=>{var t,n;const{key:r}=e,i=e.target,a=null==(t=h.current)?void 0:t.contains(i),s=null==(n=f.current)?void 0:n.contains(i);if(/input|textarea/i.test(i.tagName)&&(" "===r||"Escape"!==r&&a||"Escape"===r&&"search"===i.type))return;if(!a&&!s)return;if("Tab"===r&&(!h.current||!d))return;y.current=e.type;const o={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=j(i,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),d){const e=j(i,1);e&&e.focus&&e.focus()}else u(!0,o);return;case"Tab":CT(i.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=h.current)&&t.contains(e.target)||u(!1,o)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),u(!1,o)}})),(0,Xo.jsx)(OE.Provider,{value:w,children:(0,Xo.jsx)(NT.Provider,{value:T,children:l})})}XE.displayName="Dropdown",XE.Menu=bE,XE.Toggle=IE,XE.Item=KE;const JE=XE;n(2740);function QE(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function ZE(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function $E(e,t){return Object.keys(t).reduce((function(n,r){var i,a=n,s=a[QE(r)],o=a[r],l=(0,xe.A)(a,[QE(r),r].map(ZE)),c=t[r],d=function(e,t,n){var r=(0,$.useRef)(void 0!==e),i=(0,$.useState)(t),a=i[0],s=i[1],o=void 0!==e,l=r.current;return r.current=o,!o&&l&&a!==t&&s(t),[o?e:a,(0,$.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&n.apply(void 0,[e].concat(r)),s(e)}),[n])]}(o,s,e[c]),u=d[0],h=d[1];return(0,Mu.A)({},l,((i={}
2)[r]=u,i[c]=h,i))}),e)}function ej(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function tj(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function nj(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}ej.__suppressDeprecationWarning=!0,tj.__suppressDeprecationWarning=!0,nj.__suppressDeprecationWarning=!0;const rj=$.createContext({});rj.displayName="DropdownContext";const ij=rj,aj=["xxl","xl","lg","md","sm","xs"],sj="xs",oj=$.createContext({prefixes:{},breakpoints:aj,minBreakpoint:sj}),{Consumer:lj,Provider:cj}=oj;function dj(e,t){const{prefixes:n}=(0,$.useContext)(oj);return e||n[t]||t}const uj=["className","bsPrefix","as","role"],hj=$.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:i="hr",role:a="separator"}=e,s=Se(e,uj);return r=dj(r,"dropdown-divider"),(0,Xo.jsx)(i,o({ref:t,className:bT()(n,r),role:a},s))}));hj.displayName="DropdownDivider";const pj=hj,mj=["className","bsPrefix","as","role"],fj=$.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:i="div",role:a="heading"}=e,s=Se(e,mj);return r=dj(r,"dropdown-header"),(0,Xo.jsx)(i,o({ref:t,className:bT()(n,r),role:a},s))}));fj.displayName="DropdownHeader";const gj=fj;const vj="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,bj="undefined"!==typeof document||vj?$.useLayoutEffect:$.useEffect;new WeakMap;const yj=["onKeyDown"];const xj=$.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,yj);const[i]=BE(Object.assign({tagName:"a"},r)),a=AT((e=>{i.onKeyDown(e),null==n||n(e)}));return(s=r.href)&&"#"!==s.trim()&&"button"!==r.role?(0,Xo.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,Xo.jsx)("a",Object.assign({ref:t},r,i,{onKeyDown:a}));var s}));xj.displayName="Anchor";const Sj=xj,kj=["bsPrefix","className","eventKey","disabled","onClick","active","as"],wj=$.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,eventKey:i,disabled:a=!1,onClick:s,active:l,as:c=Sj}=e,d=Se(e,kj);const u=dj(n,"dropdown-item"),[h,p]=HE({key:i,href:d.href,disabled:a,onClick:s,active:l});return(0,Xo.jsx)(c,o(o(o({},d),h),{},{ref:t,className:bT()(r,u,p.isActive&&"active",a&&"disabled")}))}));wj.displayName="DropdownItem";const Tj=wj,Cj=["className","bsPrefix","as"],Ej=$.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:i="span"}=e,a=Se(e,Cj);return r=dj(r,"dropdown-item-text"),(0,Xo.jsx)(i,o({ref:t,className:bT()(n,r)},a))}));Ej.displayName="DropdownItemText";const jj=Ej,Aj=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;const Nj=function(e,t){return(0,$.useMemo)((()=>function(e,t){const n=Aj(e),r=Aj(t);return e=>{n&&n(e),r&&r(e)}}(e,t)),[e,t])},Pj=$.createContext(null);Pj.displayName="InputGroupContext";const Rj=Pj,Lj=$.createContext(null);Lj.displayName="NavbarContext";const Ij=Lj;function Dj(e,t){return e}const Oj=["bsPrefix","className","align","rootCloseEvent","flip","show","renderOnMount","as","popperConfig","variant"];function Mj(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const _j=$.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,align:i,rootCloseEvent:a,flip:s=!0,show:l,renderOnMount:c,as:d="div",popperConfig:u,variant:h}=e,p=Se(e,Oj),m=!1;const f=(0,$.useContext)(Ij),g=dj(n,"dropdown-menu"),{align:v,drop:b,isRTL:y}=(0,$.useContext)(ij);i=i||v;const x=(0,$.useContext)(Rj),S=[];if(i)if("object"===typeof i){const e=Object.keys(i);if(e.length){const t=e[0],n=i[t];m="start"===n,S.push("".concat(g,"-").concat(t,"-").concat(n))}}else"end"===i&&(m=!0);const k=Mj(m,b,y),[w,{hasShown:T,popper:C,show:E,toggle:j}]=gE({flip:s,rootCloseEvent:a,show:l,usePopper:!f&&0===S.length,offset:[0,2],popperConfig:u,placement:k});if(w.ref=Nj(Dj(t),w.ref),bj((()=>{E&&(null==C||C.update())}),[E]),!T&&!c&&!x)return null;"string"!==typeof d&&(w.show=E,w.close=()=>null==j?void 0:j(!1),w.align=i);let A=p.style;return null!=C&&C.placement&&(A=o(o({},p.style),w.style),p["x-placement"]=C.placement),(0,Xo.jsx)(d,o(o(o(o({},p),w),{},{style:A},(S.length||f)&&{"data-bs-popper":"static"}),{},{className:bT()(r,g,E&&"show",m&&"".concat(g,"-end"),h&&"".concat(g,"-").concat(h),...S)}
2))}));_j.displayName="DropdownMenu";const Fj=_j,Bj=["as","bsPrefix","variant","size","active","disabled","className"],Uj=$.forwardRef(((e,t)=>{let{as:n,bsPrefix:r,variant:i="primary",size:a,active:s=!1,disabled:l=!1,className:c}=e,d=Se(e,Bj);const u=dj(r,"btn"),[h,{tagName:p}]=BE(o({tagName:n,disabled:l},d)),m=p;return(0,Xo.jsx)(m,o(o(o({},h),d),{},{ref:t,disabled:l,className:bT()(c,u,s&&"active",i&&"".concat(u,"-").concat(i),a&&"".concat(u,"-").concat(a),d.href&&l&&"disabled")}))}));Uj.displayName="Button";const zj=Uj,Gj=["bsPrefix","split","className","childBsPrefix","as"],Wj=$.forwardRef(((e,t)=>{let{bsPrefix:n,split:r,className:i,childBsPrefix:a,as:s=zj}=e,l=Se(e,Gj);const c=dj(n,"dropdown-toggle"),d=(0,$.useContext)(NT);void 0!==a&&(l.bsPrefix=a);const[u]=RE();return u.ref=Nj(u.ref,Dj(t)),(0,Xo.jsx)(s,o(o({className:bT()(i,c,r&&"".concat(c,"-split"),(null==d?void 0:d.show)&&"show")},u),l))}));Wj.displayName="DropdownToggle";const Hj=Wj,Vj=["bsPrefix","drop","show","className","align","onSelect","onToggle","focusFirstItemOnShow","as","navbar","autoClose"],Kj=$.forwardRef(((e,t)=>{const n=$E(e,{show:"onToggle"}),{bsPrefix:r,drop:i="down",show:a,className:s,align:l="start",onSelect:c,onToggle:d,focusFirstItemOnShow:u,as:h="div",navbar:p,autoClose:m=!0}=n,f=Se(n,Vj),g=(0,$.useContext)(Rj),v=dj(r,"dropdown"),b=function(){const{dir:e}=(0,$.useContext)(oj);return"rtl"===e}(),y=AT(((e,t)=>{var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===m?"click"===n:"inside"===m?"rootClose"!==n:"outside"!==m||"select"!==n)&&(null==d||d(e,t))})),x=Mj("end"===l,i,b),S=(0,$.useMemo)((()=>({align:l,drop:i,isRTL:b})),[l,i,b]),k={down:v,"down-centered":"".concat(v,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,Xo.jsx)(ij.Provider,{value:S,children:(0,Xo.jsx)(JE,{placement:x,show:a,onSelect:c,onToggle:y,focusFirstItemOnShow:u,itemSelector:".".concat(v,"-item:not(.disabled):not(:disabled)"),children:g?f.children:(0,Xo.jsx)(h,o(o({},f),{},{ref:t,className:bT()(s,a&&"show",k[i])}))})})}));Kj.displayName="Dropdown";const qj=Object.assign(Kj,{Toggle:Hj,Menu:Fj,Item:Tj,ItemText:jj,Divider:pj,Header:gj}),Yj=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";Av.add(eb,Yv,qv,Zv,Kv,ib,$v);const Xj=()=>{const{t:e}=Ae("common"),{dispatch:t}=(0,$.useContext)(Qo),[n,r]=(0,$.useState)(null),{user:i}=(0,$.useContext)(Qo),[a,s]=(0,$.useState)(!1),[o,l]=(0,$.useState)({});(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/getuserprofilepicture/".concat(i._id),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));r(t)}}catch(e){console.error("Error fetching profile picture:",e)}})()}),[i._id,n]);return(0,$.useEffect)((()=>{(async()=>{try{const e=(await ks.get("/users/profileTitle?userId=".concat(i._id))).data;l(e.userplan),console.log(o)}catch(e){console.error("Error fetching profile picture:",e)}})()}),[o]),(0,Xo.jsxs)("div",{className:"top-bar-mobile",children:[(0,Xo.jsxs)("div",{className:"top-bar-labels-mobile",children:[(0,Xo.jsx)(wn,{to:"/home",style:{textDecoration:"none"},children:(0,Xo.jsx)("div",{className:"top-bar-label-mobile",children:(0,Xo.jsx)("img",{className:"navlogomobile",src:Yj,alt:""})})}),(0,Xo.jsx)(wn,{to:"/admin/appearance",style:{textDecoration:"none"},children:(0,Xo.jsxs)("div",{className:"top-bar-label-mobile",children:[(0,Xo.jsx)(Wv,{icon:"palette"})," ",e("appearance")]})}),(0,Xo.jsx)(wn,{to:"/subscriptions",style:{textDecoration:"none"},children:(0,Xo.jsxs)("div",{className:"top-bar-label-mobile",children:[(0,Xo.jsx)(Wv,{icon:ib})," ",e("subs")]})}),(0,Xo.jsx)(wn,{to:"/".concat(i.username),style:{textDecoration:"none"},children:(0,Xo.jsxs)("div",{className:"top-bar-label-mobile",children:[(0,Xo.jsx)(Wv,{icon:Xv})," ",e("myPage")]})})]}),!i&&(0,Xo.jsx)(wn,{to:"/signup",className:"topbar-btn",style:{marginRight:8,padding:"8px 12px",background:"black",color:"white",borderRadius:4,fontWeight:600,fontSize:15},children:e("signUp")}),(0,Xo.jsxs)("div",{className:"user-upgrade-container",children:[(0,Xo.jsx)(dT,{variant:"mobile"}),(0,Xo.jsxs)("div",{className:"user-profile-icon",children:["none"===o||"Starter"===o?(0,Xo.jsx)(wn,{to:"/pricing",style:{textDecoration:"none"}}):null,(0,Xo.jsxs)(qj,{show:a,onToggle:e=>s(e),style:{border:"none"},children:[(0,Xo.jsx)(qj.Toggle,{variant:"success",id:"dropdown-basic",className:"dropdown-basic",children:n?(0,Xo.jsx)("img",{src:n,alt:"Profile",style:{border:"none"}}):(0,Xo.jsx)("img",{className:"profilenulltext-mobile",src:"http://xsubscribe.bio/nullprofile.png",alt:""})}),(0,Xo.jsxs)(qj.Menu,{style:{backgroundColor:"black"},children:[(0,Xo.jsxs)(qj.Item,{as:wn,to:"/notifications",className:"white-logout-text",children:[(0,Xo.jsx)(Wv,{icon:"bell"})," ",e("notifications")]}),(0,Xo.jsxs)(qj.Item,{onClick:()=>{qo(t)},className:"white-logout-text",children:[(0,Xo.jsx)(Wv,{icon:"sign-out-alt"})," ",e("logout")]})]})]})]})]})]})};function Jj(){document.title="XSubscribe Admin";const[e,t]=(0,$.useState)([]),[n,r]=(0,$.useState)({title:"",url:""}),[i,a]=(0,$.useState)({}),{user:s}=(0,$.useContext)(Qo),[l,c]=(0,$.useState)(!0),[d,u]=(0,$.useState)(window.innerWidth),[h,p]=(0,$.useState)(!0),[m,f]=(0,$.useState)(!1),g=(0,Xo.jsxs)("button",{className:"preview-button",onClick:()=>{p(!h)},children:[(0,Xo.jsx)("span",{className:"preview-text",children:"Preview"}),h&&(0,Xo.jsx)("span",{className:"close-icon",onClick:()=>{p(!1)},children:(0,Xo.jsx)(Wv,{icon:rb})})]}),v=()=>{f(window.innerWidth<=768)};(0,$.useLayoutEffect)((()=>(m&&(document.documentElement.style.overflowX="hidden"),()=>{document.documentElement.style.overflowX="visible"})),[m]),(0,$.useEffect)((()=>(v(),window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)})),[]),(0,$.useEffect)((()=>{(async()=>{const e=await ks.get("/users?userId=".concat(s._id));a(e.data)})()}),[s._id]);const b=async()=>{try{const e=await ks.get("/userlinks?userId=".concat(s._id));if(200===e.status){const n=e.data.sort(((e,t)=>e.order-t.order));t(n)}else console.error("Failed to fetch user links")}catch(e){console.error("Error fetching user links:",e)}};(0,$.useEffect)((()=>{b(s._id)}),[s._id,i._id]);const y=async e=>{try{const n=await ks.delete("/deletelink/".concat(s._id,"/").concat(e));console.log(e,"deleted"),200===n.status?(t((t=>t.filter((t=>t._id!==e)))),(async()=>{try{const e=await ks.get("/userlinks?userId=".concat(s._id));if(200===e.status){const n=e.data.sort(((e,t)=>e.order-t.order));t(n)}else console.error("Failed to fetch user links")}catch(e){console.error("Error fetching user links:",e)}})()):console.error("Failed to delete link")}catch(n){console.error("Error deleting link:",n)}},x=async e=>{try{200===(await ks.post("/updateorder",e)).status?console.log("Order values updated on the server"):console.error("Failed to update order values on the server")}catch(t){console.error("Error updating order values on the server:",t)}};return(0,Xo.jsxs)("div",{children:[m?(0,Xo.jsx)(Xj,{}):(0,Xo.jsx)(gT,{}),(0,Xo.jsxs)("div",{className:"container",children:[(0,Xo.jsx)("div",{className:"left",children:(0,Xo.jsxs)("div",{className:"content",children:[(0,Xo.jsx)("div",{className:"add-link-container",children:l?(0,Xo.jsx)(ab,{onClick:()=>{c(!1)}}):(0,Xo.jsx)(sb,{onClose:()=>{c(!0)},onLinkAdded:b})}),(0,Xo.jsx)("div",{}),l&&(0,Xo.jsx)(ww,{onDragEnd:async n=>{if(!n.destination)return;const r=[...e],[a]=r.splice(n.source.index,1);r.splice(n.destination.index,0,a),t(r);const s=r.map(((e,t)=>({userId:i._id,linkId:e._id,order:t})));await x(s)},children:(0,Xo.jsx)(lT,{droppableId:"links",children:t=>(0,Xo.jsxs)("ul",o(o({},t.droppableProps),{},{ref:t.innerRef,style:{listStyleType:"none",padding:0},children:[e.map(((e,t)=>(0,Xo.jsx)(iT,{draggableId:e._id,index:t,children:t=>(0,Xo.jsx)("li",o(o(o({},t.draggableProps),t.dragHandleProps),{},{ref:t.innerRef,className:"link-item",children:(0,Xo.jsxs)("div",{className:"link-container",children:[(0,Xo.jsx)("a",{href:e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:"http://".concat(e.url),target:"_blank",rel:"noopener noreferrer",className:"link-button",children:e.title}),(0,Xo.jsx)("div",{className:"delete-link-button-container",children:(0,Xo.jsxs)("button",{className:"delete-link-button",onClick:()=>
2y(e._id),children:[(0,Xo.jsx)(Wv,{icon:Jv}),(0,Xo.jsx)("span",{className:"tooltip",children:"Delete"})]})})]})}))},e._id))),t.placeholder]}))})})]})}),d>768&&(0,Xo.jsx)("div",{className:"right",children:(0,Xo.jsx)("div",{className:"content",children:(0,Xo.jsx)("div",{className:"prevcontainer",children:(0,Xo.jsx)(cT,{})})})})]}),m&&(0,Xo.jsxs)("div",{className:"mobile-sticky-bar",children:[g,h&&(0,Xo.jsx)(cT,{})]})]})}const Qj=["dramatic","uplifting","comedic","tense","chill","epic","emotional","dark","hopeful","love","sexy","motivating","mystery","scary","storytelling","upbeat"],Zj=["low","medium","high"],$j={trackName:"",artist:"",moods:["uplifting"],energy:"medium",tags:"",tiktokSoundUrl:"",spotifyUrl:""};function eA(){const{user:e}=(0,$.useContext)(Qo),t=Vt(),[n,r]=(0,$.useState)([]),[i,a]=(0,$.useState)(!0),[s,l]=(0,$.useState)($j),[c,d]=(0,$.useState)(null),[u,h]=(0,$.useState)(""),[p,m]=(0,$.useState)(""),[f,g]=(0,$.useState)("");async function v(){a(!0);try{const e={};u&&(e.mood=u),p&&(e.energy=p),f.trim()&&(e.q=f.trim());const{data:t}=await ks.get("/admin/music",{params:e});r(t.tracks||[])}catch(K6){var e,n,i;if(403===(null===(e=K6.response)||void 0===e?void 0:e.status))return Vo.error("Admin only"),void t("/");Vo.error((null===(n=K6.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error)||"Failed to load tracks")}finally{a(!1)}}function b(e,t){l((n=>o(o({},n),{},{[e]:t})))}function y(){l($j),d(null)}return(0,$.useEffect)((()=>{document.title="Clipbait \u2014 Music Library"}),[]),(0,$.useEffect)((()=>{e&&v()}),[e,u,p,f]),(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"admin-music-page",children:(0,Xo.jsxs)("div",{className:"admin-music-container",children:[(0,Xo.jsx)("h1",{className:"admin-music-title",children:"Music Library"}),(0,Xo.jsx)("p",{className:"admin-music-sub",children:"Tracks you add here power the per-clip recommendations."}),(0,Xo.jsxs)("form",{className:"admin-music-form",onSubmit:async function(e){if(e.preventDefault(),!s.trackName.trim())return void Vo.error("Track name required");if(0===s.moods.length)return void Vo.error("Pick at least one mood");const t={trackName:s.trackName,artist:s.artist,moods:s.moods,energy:s.energy,tags:s.tags.split(",").map((e=>e.trim())).filter(Boolean),tiktokSoundUrl:s.tiktokSoundUrl,spotifyUrl:s.spotifyUrl};try{c?(await ks.patch("/admin/music/".concat(c),t),Vo.success("Track updated")):(await ks.post("/admin/music",t),Vo.success("Track added")),y(),v()}catch(K6){var n,r;Vo.error((null===(n=K6.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Failed to save")}},children:[(0,Xo.jsx)("h2",{children:c?"Edit track":"Add new track"}),(0,Xo.jsxs)("div",{className:"admin-music-row",children:[(0,Xo.jsxs)("label",{children:["Track name *",(0,Xo.jsx)("input",{type:"text",value:s.trackName,onChange:e=>b("trackName",e.target.value),placeholder:"e.g. Cinematic Rise",required:!0})]}),(0,Xo.jsxs)("label",{children:["Artist",(0,Xo.jsx)("input",{type:"text",value:s.artist,onChange:e=>b("artist",e.target.value),placeholder:"optional"})]})]}),(0,Xo.jsxs)("div",{className:"admin-music-full",children:[(0,Xo.jsxs)("span",{className:"admin-music-field-label",children:["Moods * ",(0,Xo.jsx)("span",{className:"admin-music-hint",children:"(pick all that fit \u2014 a track can live in multiple playlists)"})]}),(0,Xo.jsx)("div",{className:"admin-music-mood-chips",children:Qj.map((e=>{const t=s.moods.includes(e);return(0,Xo.jsx)("button",{type:"button",className:"admin-music-mood-chip".concat(t?" on":""),onClick:()=>{return t=e,void l((e=>{const n=e.moods.includes(t)?e.moods.filter((e=>e!==t)):[...e.moods,t];return o(o({},e),{},{moods:n.length>0?n:e.moods})}));var t},children:e},e)}))})]}),(0,Xo.jsx)("div",{className:"admin-music-row",children:(0,Xo.jsxs)("label",{children:["Energy *",(0,Xo.jsx)("select",{value:s.energy,onChange:e=>b("energy",e.target.value),children:Zj.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))})]})}),(0,Xo.jsxs)("label",{className:"admin-music-full",children:["Tags (comma-separated)",(0,Xo.jsx)("input",{type:"text",value:s.tags,onChange:e=>b("tags",e.target.value),placeholder:"e.g. lo-fi, trap, 8-bit"})]}),(0,Xo.jsxs)("div",{className:"admin-music-row",children:[(0,Xo.jsxs)("label",{children:["TikTok sound URL",(0,Xo.jsx)("input",{type:"url",value:s.tiktokSoundUrl,onChange:e=>b("tiktokSoundUrl",e.target.value),placeholder:"https://www.tiktok.com/music/..."})]}),(0,Xo.jsxs)("label",{children:["Spotify URL",(0,Xo.jsx)("input",{type:"url",value:s.spotifyUrl,onChange:e=>b("spotifyUrl",e.target.value),placeholder:"https://open.spotify.com/track/..."})]})]}),(0,Xo.jsxs)("div",{className:"admin-music-actions",children:[(0,Xo.jsx)("button",{type:"submit",className:"admin-music-btn-primary",children:c?"Save changes":"Add track"}),c&&(0,Xo.jsx)("button",{type:"button",className:"admin-music-btn-secondary",onClick:y,children:"Cancel"})]})]}),(0,Xo.jsxs)("div",{className:"admin-music-filters",children:[(0,Xo.jsx)("input",{type:"text",placeholder:"Search by track or artist...",value:f,onChange:e=>g(e.target.value)}),(0,Xo.jsxs)("select",{value:u,onChange:e=>h(e.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"All moods"}),Qj.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]}),(0,Xo.jsxs)("select",{value:p,onChange:e=>m(e.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"All energy"}),Zj.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]}),(0,Xo.jsxs)("span",{className:"admin-music-count",children:[n.length," tracks"]})]}),i?(0,Xo.jsx)("div",{className:"admin-music-empty",children:"Loading\u2026"}):0===n.length?(0,Xo.jsx)("div",{className:"admin-music-empty",children:"No tracks yet. Add your first above."}):(0,Xo.jsxs)("table",{className:"admin-music-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"Track"}),(0,Xo.jsx)("th",{children:"Artist"}),(0,Xo.jsx)("th",{children:"Moods"}),(0,Xo.jsx)("th",{children:"Energy"}),(0,Xo.jsx)("th",{children:"Tags"}),(0,Xo.jsx)("th",{children:"Links"}),(0,Xo.jsx)("th",{})]})}),(0,Xo.jsx)("tbody",{children:n.map((e=>(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("td",{children:e.trackName}),(0,Xo.jsx)("td",{children:e.artist||(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsx)("td",{children:(e.moods||[]).map((e=>(0,Xo.jsx)("span",{className:"mood-chip mood-".concat(e),children:e},e)))}),(0,Xo.jsx)("td",{children:(0,Xo.jsx)("span",{className:"energy-chip energy-".concat(e.energy),children:e.energy})}),(0,Xo.jsx)("td",{children:(e.tags||[]).length>0?e.tags.map((e=>(0,Xo.jsx)("span",{className:"tag-chip",children:e},e))):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsxs)("td",{children:[e.tiktokSoundUrl&&(0,Xo.jsx)("a",{href:e.tiktokSoundUrl,target:"_blank",rel:"noreferrer",children:"TT"}),e.spotifyUrl&&(0,Xo.jsx)("a",{href:e.spotifyUrl,target:"_blank",rel:"noreferrer",children:"SP"})]}),(0,Xo.jsxs)("td",{className:"admin-music-row-actions",children:[(0,Xo.jsx)("button",{onClick:()=>{return d((t=e)._id),l({trackName:t.trackName||"",artist:t.artist||"",moods:t.moods&&t.moods.length>0?t.moods:["uplifting"],energy:t.energy,tags:(t.tags||[]).join(", "),tiktokSoundUrl:t.tiktokSoundUrl||"",spotifyUrl:t.spotifyUrl||""}),void window.scrollTo({top:0,behavior:"smooth"});var t},children:"Edit"}),(0,Xo.jsx)("button",{onClick:()=>async function(e){if(window.confirm("Delete this track?"))try{await ks.delete("/admin/music/".concat(e)),Vo.success("Deleted"),v()}catch(K6){var t,n;Vo.error((null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||"Failed to delete")}}(e._id),className:"danger",children:"Delete"})]})]},e._id)))})]})]})})]})}const tA="rewardful_referral";function nA(){try{const t="undefined"!==typeof window&&window.Rewardful&&window.Rewardful.referral||null;if(t){try{localStorage.setItem(tA,t)}catch(e){}return t}return"undefined"!==typeof window&&localStorage.getItem(tA)||null}catch(t){return null}}function rA(e,t){const n=Number(String(e).replace(/[^0-9.]/g,""));if(!Number.isFinite(n)||!t)return e;const r=(n*(1-t/100)).toFixed(2).replace(/\.00$/,"").replace(/(\.\d)0$/,"$1");return"$".concat(r)}const iA=[{key:"Starter",label:"Starter",tagline:"For solo clippers and streamers getting started.",monthlyPrice:"$12",annualPrice:"$6",credits:150,videoNote:"150 min of video",highlight:!1,features:["9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports","5 brand accounts","Music recommendations for clips"]},{key:"Pro",label:"Pro",tagline:"For full-time clippers and serious streamers.",monthlyPrice:"$24",annualPrice:"$12",credits:300,videoNote:"300 min of video",highlight:!0,badge:"Most Popular",features:["9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports","5 brand accounts","Music recommendations for clips","Hook-detection tuned for livestreams","Priority render queue"]},{key:"Premium",label:"Premium",tagline:"For agencies, networks, and serious clipping operations.",monthlyPrice:"$81",annualPrice:"$40",credits:1500,videoNote:"25 hours of video",highlight:!1,badge:"Best Value",features:["9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports","5 brand accounts","Music recommendations for clips","Best per-credit value","Multi-creator workspace","Dedicated support"]}],aA=[{id:"pack_50",label:"50 credits",price:"$5",priceNote:null,desc:"+50 min of video processing"},{id:"pack_150",label:"150 credits",price:"$14",priceNote:"Save 7%",desc:"+150 min \xb7 Starter-equivalent"},{id:"pack_300",label:"300 credits",price:"$27",priceNote:"Save 10%",desc:"+300 min \xb7 Pro-equivalent"},{id:"pack_1500",label:"1,500 credits",price:"$90",priceNote:"Best Value",desc:"+25 hours \xb7 Premium-equivalent"}],sA=()=>(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff7a18",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),oA=e=>{var t;let{isOpen:n,onClose:r,initialTab:i="plans",message:a,currentPlan:s,currentInterval:l=null,ownOffer:c=!1}=e;const[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(l||"monthly");(0,$.useEffect)((()=>{n&&l&&p(l)}),[n,l]);const[m,f]=(0,$.useState)(i),[g,v]=(0,$.useState)((null===(t=iA.find((e=>e.highlight)))||void 0===t?void 0:t.key)||iA[0].key),[b,y]=(0,$.useState)(null);(0,$.useEffect)((()=>
2{if(!n)return;let e=!1;return ks.get("/billing/region-pricing").then((t=>{e||y(t.data||null)})).catch((()=>{})),()=>{e=!0}}),[n]);const[x,S]=(0,$.useState)(null),[k,w]=(0,$.useState)(!1),[T,C]=(0,$.useState)("");(0,$.useEffect)((()=>{if(!n)return;let e=!1;return ks.get("/founders-spots").then((t=>{e||S(t.data||null)})).catch((()=>{})),()=>{e=!0}}),[n]);if(!n)return null;const E=(null===b||void 0===b?void 0:b.discountPct)||0,j="annual"===h,A=c?iA.filter((e=>"Pro"===e.key)):iA,N=(c?iA.find((e=>"Pro"===e.key)):iA.find((e=>e.key===g)))||iA[0],P=e=>Number(String(e).replace(/[^0-9.]/g,""))||0,R=Math.round(100*(1-P(N.annualPrice)/P(N.monthlyPrice)));return(0,Xo.jsx)("div",{className:"upgrade-modal-overlay",onClick:r,children:(0,Xo.jsxs)("div",{className:"upgrade-modal-v3",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"upgrade-modal-close",onClick:r,children:(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),"plans"===m?(0,Xo.jsxs)("div",{className:"um3-body",children:[(0,Xo.jsxs)("div",{className:"um3-left",children:[(0,Xo.jsx)("div",{className:"um3-brand",children:"CLIPBAIT"}),(0,Xo.jsx)("h2",{className:"um3-headline",children:a||"Upgrade to keep generating."}),E>0&&(0,Xo.jsxs)("div",{className:"um3-region-banner",children:[(L=null===b||void 0===b?void 0:b.country,L&&2===L.length?String.fromCodePoint(...L.toUpperCase().split("").map((e=>127397+e.charCodeAt(0)))):"\ud83c\udf0d")," ",E,"% regional discount applied"]}),(0,Xo.jsxs)("div",{className:"um3-benefits-title",children:[N.label," ",j?"Annual":"Monthly"," Benefits"]}),(0,Xo.jsxs)("div",{className:"um3-credits",children:[N.credits.toLocaleString()," credits / month"]}),(0,Xo.jsxs)("div",{className:"um3-video-note",children:["\u2248 ",N.videoNote]}),c&&(0,Xo.jsx)("div",{className:"um3-own-bonus",children:"\ud83c\udf81 +150 bonus credits on signup. They never expire."}),(0,Xo.jsx)("ul",{className:"um3-benefits",children:N.features.map((e=>(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(sA,{}),e]},e)))})]}),(0,Xo.jsxs)("div",{className:"um3-right",children:[(0,Xo.jsxs)("div",{className:"um3-toggle",children:[(0,Xo.jsx)("button",{className:"um3-toggle-btn".concat(j?"":" active"),onClick:()=>p("monthly"),children:"Monthly"}),(0,Xo.jsxs)("button",{className:"um3-toggle-btn".concat(j?" active":""),onClick:()=>p("annual"),children:["Yearly",R>0&&(0,Xo.jsxs)("span",{className:"um3-toggle-save",children:["Save ",R,"%"]})]})]}),(0,Xo.jsx)("div",{className:"um3-plans",children:A.map((e=>{const t=e.key===g,n=s&&"none"!==s&&e.key===s&&(!l||h===l);return(0,Xo.jsxs)("button",{className:"um3-plan".concat(t?" selected":"").concat(e.highlight?" popular":"").concat(n?" current":""),onClick:()=>v(e.key),children:[n?(0,Xo.jsx)("span",{className:"um3-plan-badge um3-plan-badge-current",children:"Current plan"}):e.badge&&(0,Xo.jsx)("span",{className:"um3-plan-badge",children:e.badge}),(0,Xo.jsxs)("span",{className:"um3-plan-name",children:[t&&(0,Xo.jsx)("span",{className:"um3-plan-check",children:(0,Xo.jsx)(sA,{})}),e.label]}),(0,Xo.jsxs)("span",{className:"um3-plan-price",children:[E>0&&(0,Xo.jsx)("span",{className:"um3-plan-price-was",children:j?e.annualPrice:e.monthlyPrice}),rA(j?e.annualPrice:e.monthlyPrice,E),(0,Xo.jsx)("span",{className:"um3-plan-per",children:"/month"})]})]},e.key)}))}),(()=>{const e=s&&"none"!==s&&N.key===s&&(!l||h===l);return(0,Xo.jsx)("button",{className:"um3-cta",onClick:()=>(async e=>{u(e);try{var t;const n=nA(),r=await ks.post("/billing/plan/checkout",o({planName:e,interval:h},n?{referral:n}:{}));null!==(t=r.data)&&void 0!==t&&t.url&&(window.location.href=r.data.url)}catch(K6){console.error("Checkout error:",K6),u(null)}})(N.key),disabled:d===N.key||e,children:d===N.key?(0,Xo.jsx)("span",{className:"upgrade-modal-spinner"}):e?"Current plan":"Upgrade to ".concat(N.label)})})(),!c&&(0,Xo.jsx)("button",{className:"um3-credits-link",onClick:()=>f("credits"),children:"Or buy one-time credits instead"}),!c&&(x&&x.soldOut?(0,Xo.jsx)("div",{style:{marginTop:12,textAlign:"center",color:"rgba(255,255,255,0.45)",fontSize:13},children:"\ud83c\udfc6 Founder Lifetime \u2014 sold out"}):(0,Xo.jsxs)("button",{type:"button",onClick:async()=>{C(""),w(!0);try{var e;const t=await ks.post("/billing/founders/checkout",{});if(null!==(e=t.data)&&void 0!==e&&e.url)return void(window.location.href=t.data.url);C("Couldn't start checkout. Please try again.")}catch(K6){var t,n,r,i;const a=null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error;C("sold_out"===a?"Founder spots are sold out.":"already_founder"===a?"You already have the lifetime deal.":(null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||"Couldn't start checkout.")}finally{w(!1)}},disabled:k,style:{marginTop:12,width:"100%",textAlign:"left",cursor:k?"default":"pointer",background:"linear-gradient(135deg, rgba(255,106,0,0.14), rgba(255,138,51,0.05))",border:"1px solid rgba(255,106,0,0.55)",borderRadius:12,padding:"12px 14px",color:"#fff"},children:[(0,Xo.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Xo.jsx)("span",{style:{fontWeight:700,color:"#ff8a33"},children:"\ud83c\udfc6 Founder \xb7 Lifetime"}),(0,Xo.jsx)("span",{style:{fontWeight:700},children:k?"\u2026":"$200 once"})]}),(0,Xo.jsxs)("div",{style:{fontSize:12,color:"rgba(255,255,255,0.7)",marginTop:4},children:["Lifetime Pro + 300 credits every month, forever. Never pay again.",x&&Number.isFinite(x.remaining)?" \xb7 ".concat(x.remaining," of ").concat(x.total," left"):""]})]})),T&&(0,Xo.jsx)("div",{style:{marginTop:8,color:"#ff6b6b",fontSize:12,textAlign:"center"},children:T})]})]}):(0,Xo.jsxs)("div",{className:"upgrade-modal-v2-credits",children:[(0,Xo.jsx)("button",{className:"um3-back-link",onClick:()=>f("plans"),children:"\u2190 Back to plans"}),(0,Xo.jsx)("p",{className:"upgrade-modal-v2-credits-note",children:"Credits never expire and are used after your monthly plan allowance runs out."}),(0,Xo.jsx)("div",{className:"upgrade-modal-v2-credit-packs",children:aA.map((e=>(0,Xo.jsxs)("div",{className:"upgrade-modal-v2-credit-pack",children:[(0,Xo.jsxs)("div",{className:"upgrade-modal-v2-credit-pack-left",children:[(0,Xo.jsx)("div",{className:"upgrade-modal-v2-credit-label",children:e.label}),(0,Xo.jsx)("div",{className:"upgrade-modal-v2-credit-desc",children:e.desc})]}),(0,Xo.jsxs)("div",{className:"upgrade-modal-v2-credit-pack-right",children:[(0,Xo.jsxs)("div",{className:"upgrade-modal-v2-credit-price-row",children:[(0,Xo.jsx)("span",{className:"upgrade-modal-v2-credit-price",children:e.price}),e.priceNote&&(0,Xo.jsx)("span",{className:"upgrade-modal-v2-credit-save",children:e.priceNote})]}),(0,Xo.jsx)("button",{className:"upgrade-modal-v2-credit-btn",onClick:()=>(async e=>{u(e);try{var t;const n=await ks.post("/billing/credits/checkout",{packId:e});null!==(t=n.data)&&void 0!==t&&t.url&&(window.location.href=n.data.url)}catch(K6){console.error("Credits checkout error:",K6),u(null)}})(e.id),disabled:d===e.id,children:d===e.id?(0,Xo.jsx)("span",{className:"upgrade-modal-spinner"}):"Buy"})]})]},e.id)))})]})]})});var L};var lA={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},cA=$.createContext&&$.createContext(lA),dA=["attr","size","title"];function uA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hA(){return hA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hA.apply(this,arguments)}function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?pA(Object(n),!0).forEach((function(t){fA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gA(e){return e&&e.map(((e,t)=>$.createElement(e.tag,mA({key:t},e.attr),gA(e.child))))}function vA(e){return t=>$.createElement(bA,hA({attr:mA({},e.attr)},t),gA(e.child))}function bA(e){var t=t=>{var n,{attr:r,size:i,title:a}=e,s=uA(e,dA),o=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),$.createElement("svg",hA({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,s,{className:n,style:mA(mA({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&$.createElement("title",null,a),e.children)};return void 0!==cA?$.createElement(cA.Consumer,null,(e=>t(e))):t(lA)}function yA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function xA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(e)}function SA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"21 8 21 21 3 21 3 8"},child:[]},{tag:"rect",attr:{x:"1",y:"3",width:"22",height:"5"},child:[]},{tag:"line",attr:{x1:"10",y1:"12",x2:"14",y2:"12"},child:[]}]})(e)}function kA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"14"},child:[]}]})(e)}function wA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"},child:[]}]})(e)}function TA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"13",r:"4"},child:[]}]})(e)}function CA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(e)}function EA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(e)}function jA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"},child:[]}]})(e)}function AA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"18 15 12 9 6 15"},child:[]}]})(e)}function NA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(e)}function PA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(e)}function RA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"4",y:"4",width:"16",height:"16",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"9",y:"9",width:"6",height:"6"},child:[]},{tag:"line",attr:{x1:"9",y1:"1",x2:"9",y2:"4"},child:[]},{tag:"line",attr:{x1:"15",y1:"1",x2:"15",y2:"4"},child:[]},{tag:"line",attr:{x1:"9",y1:"20",x2:"9",y2:"23"},child:[]},{tag:"line",attr:{x1:"15",y1:"20",x2:"15",y2:"23"},child:[]},{tag:"line",attr:{x1:"20",y1:"9",x2:"23",y2:"9"},child:[]},{tag:"line",attr:{x1:"20",y1:"14",x2:"23",y2:"14"},child:[]},{tag:"line",attr:{x1:"1",y1:"9",x2:"4",y2:"9"},child:[]},{tag:"line",attr:{x1:"1",y1:"14",x2:"4",y2:"14"},child:[]}]})(e)}function LA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"1",y1:"10",x2:"23",y2:"10"},child:[]}]})(e)}function IA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"},child:[]}]})(e)}function DA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function OA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(e)}function MA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(e)}function _A(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"20",rx:"2.18",ry:"2.18"},child:[]},{tag:"line",attr:{x1:"7",y1:"2",x2:"7",y2:"22"},child:[]},{tag:"line",attr:{x1:"17",y1:"2",x2:"17",y2:"22"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"2",y1:"7",x2:"7",y2:"7"},child:[]},{tag:"line",attr:{x1:"2",y1:"17",x2:"7",y2:"17"},child:[]},{tag:"line",attr:{x1:"17",y1:"17",x2:"22",y2:"17"},child:[]},{tag:"line",attr:{x1:"17",y1:"7",x2:"22",y2:"7"},child:[]}]})(e)}function FA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"3",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"14",y:"14",width:"7",height:"7"},child:[]},{tag:"rect",attr:{x:"3",y:"14",width:"7",height:"7"},child:[]}]})(e)}function BA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"},child:[]}]})(e)}function UA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"},child:[]},{tag:"path",attr:{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"},child:[]},{tag:"line",attr:{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"},child:[]}]})(e)}function zA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 18V5l12-2v13"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"3"},child:[]},{tag:"circle",attr:{cx:"18",cy:"16",r:"3"},child:[]}]})(e)}function GA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"2"},child:[]},{tag:"path",attr:{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"},child:[]}]})(e)}function WA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"6",cy:"6",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"18",r:"3"},child:[]},{tag:"line",attr:{x1:"20",y1:"4",x2:"8.12",y2:"15.88"},child:[]},{tag:"line",attr:{x1:"14.47",y1:"14.48",x2:"20",y2:"20"},child:[]},{tag:"line",attr:{x1:"8.12",y1:"8.12",x2:"12",y2:"12"},child:[]}]})(e)}function HA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}function VA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"},child:[]},{tag:"line",attr:{x1:"7",y1:"7",x2:"7.01",y2:"7"},child:[]}]})(e)}function KA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"6"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"2"},child:[]}]})(e)}function qA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function YA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 6 13.5 15.5 8.5 10.5 1 18"},child:[]},{tag:"polyline",attr:{points:"17 6 23 6 23 12"},child:[]}]})(e)}function XA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"},child:[]},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"},child:[]}]})(e)}function JA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(e)}function QA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"23 7 16 12 23 17 23 7"},child:[]},{tag:"rect",attr:{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"},child:[]}]})(e)}function ZA(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(e)}function $A(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"line",attr:{x1:"23",y1:"9",x2:"17",y2:"15"},child:[]},{tag:"line",attr:{x1:"17",y1:"9",x2:"23",y2:"15"},child:[]}]})(e)}function eN(e){return vA({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"},child:[]}]})(e)}const tN="clipbait_founder_playbook_v1",nN=[{phase:"Phase 1 \u2014 Foundation (de-risk before you scale)",
2steps:[{id:"s1",title:"1. Proven idea + kill the AI platform risk",note:"AI clipping is already proven & profitable (Opus Clip, Klap, Vizard). Mike's only reason to avoid AI is depending on an API you don't control \u2014 so neutralize that, then the framework applies fully.",tasks:[["s1a","Confirm proven demand \u2014 competitors are profitable (\u2713 done)"],["s1b","Run 2+ transcription/model providers with automatic fallback (no single-vendor lock)"],["s1c","Own the render pipeline (Modal + FFmpeg) \u2014 every part is replaceable"],["s1d","Store source + rendered clips ourselves so we never re-depend on a 3rd party"],["s1e","Know our COGS cold (~$0.14/clip) so any discount/LTD stays profitable"]]},{id:"s2",title:"2. Define a 'good-enough' MVP from competitors",note:"List what competitors' customers love most, build only that, ship fast, get people using it and telling you why it's crap.",tasks:[["s2a","Must-haves shipped: 9:16 + 16:9, AI captions, hook detection, watermark-free"],["s2b","Fast generate \u2192 preview \u2192 export loop working"],["s2c","Collect blunt user feedback (DMs, calls, a feedback widget)"]]}]},{phase:"Phase 2 \u2014 Monetize early with a Lifetime Deal",steps:[{id:"s3",title:"3. Offer a Lifetime Deal (LTD)",note:"Single payment for lifetime access \u2014 early cash + early believers. In Clipbait an LTD = a large NEVER-EXPIRING credit grant (we already support those) or a 'Lifetime' plan that grants X credits/month forever.",tasks:[["s3a","Decide the offer (e.g. $99 one-time = 1,000 never-expiring credits, or 'Founder Lifetime' = 300 credits/mo forever)"],["s3b","Wire fulfillment: admin grants never-expiring credits (Gift credits already exists) or add a 'lifetime' plan flag"],["s3c","Cap the number of LTD seats to create scarcity"]]},{id:"s4",title:"4. Never give accounts away free \u2014 always charge",note:"If they pay, they use it and give real feedback. We already hard-gate generate behind a plan or credits.",tasks:[["s4a","Hard paywall on generate (plan OR credits) \u2014 \u2713 done"],["s4b","Free tier = credits only + 1 brand; multi-brand requires subscription \u2014 \u2713 done"]]},{id:"s5",title:"5. Sell a PRIVATE LTD (target \u2248 $30k)",note:"Go where clippers/streamers live. Mike raised ~$30k from Frill's private LTD before any marketplace.",tasks:[["s5a","List the communities: Reddit (r/NewTubers, r/Twitch, r/streaming, r/SocialMediaMarketing), clipper Discords, FB groups, X"],["s5b","Post/DM the private LTD offer with a clear seat cap + deadline"],["s5c","Track buyers + revenue toward the $30k goal"]]}]},{phase:"Phase 3 \u2014 Content & reach",steps:[{id:"s6",title:"6. Start writing content NOW (SEO + AI indexing)",note:"It's never too early. The longer it's up, the longer Google + ChatGPT index it and send you traffic. Use the LTD cash to fund it.",tasks:[["s6a","Landing pages + blog live"],["s6b","'Opus Clip alternative', 'Klap alternative', 'best AI clip generator' pages"],["s6c","Comparison / 'alternative-to' pages for every competitor"],["s6d","Great docs (AI needs good docs to recommend you)"]]},{id:"s7",title:"7. Launch on AppSumo (target: close LTD at \u2248 $100k)",note:"Huge reach + capital. Marketplace (lower fee) or work their Select sales team. They mail a massive list.",tasks:[["s7a","Apply to AppSumo (marketplace and/or Select)"],["s7b","Prep assets: demo video, copy, LTD tiers, support plan"],["s7c","Launch + ride their mailout; track toward $100k in the bank"]]},{id:"s8",title:"8. One last private LTD (scarcity close)",note:"People hate missing out. Raise the price a bit, 'last ever' offer to your mailing list, then close the LTD forever.",tasks:[["s8a","Bump price; announce 'final, never again' LTD to the list"],["s8b","Close it \u2014 and actually close it forever"]]}]},{phase:"Phase 4 \u2014 Reviews \u2192 MRR (live-or-die)",steps:[{id:"s9",title:"9. Turn LTD buyers into reviews & ambassadors",note:"They WANT you to succeed. Reviews boost domain ranking and trust. This is the live-or-die moment \u2014 cash is depleting, MRR must take over.",tasks:[["s9a","Ask LTD customers for honest reviews on Trustpilot, G2, Capterra"],["s9b","Feature testimonials on the site"]]},{id:"s10",title:"10. Convert to MRR + answer Reddit relentlessly",note:"Shift focus to monthly subscriptions; answer questions where competitors are mentioned. Survive until MRR covers burn.",tasks:[["s10a","Push monthly plans (Starter/Pro/Premium) as the default"],["s10b","Answer Reddit/forum threads asking for clipping tools (authentic, not spammy)"],["s10c","Track MRR weekly until it exceeds monthly burn"]]}]}],rN=nN.flatMap((e=>e.steps.flatMap((e=>e.tasks.map((e=>e[0]))))));function iN(){try{return JSON.parse(localStorage.getItem(tN)||"{}")||{}}catch(e){return{}}}const aN="admindash.founderPlaybook.open";function sN(){try{return"1"===localStorage.getItem(aN)}catch(e){return!1}}function oN(){const[e,t]=(0,$.useState)(iN),[n,r]=(0,$.useState)(sN);(0,$.useEffect)((()=>{try{localStorage.setItem(aN,n?"1":"0")}catch(e){}}),[n]),(0,$.useEffect)((()=>{try{localStorage.setItem(tN,JSON.stringify(e))}catch(t){}}),[e]);const i=(0,$.useMemo)((()=>rN.filter((t=>e[t])).length),[e]),a=Math.round(i/rN.length*100);return(0,Xo.jsxs)("div",{className:"fp-card admindash-fade-in",children:[(0,Xo.jsxs)("button",{className:"fp-head",onClick:()=>r((e=>!e)),children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h2",{className:"fp-title",children:"\ud83c\udfaf Founder Playbook \u2014 the build-it-can't-fail framework"}),(0,Xo.jsx)("div",{className:"fp-sub",children:"Mike's 10-step SaaS playbook (Starter Story), adapted to Clipbait + the Lifetime-Deal motion."})]}),(0,Xo.jsxs)("div",{className:"fp-progress-wrap",children:[(0,Xo.jsxs)("span",{className:"fp-progress-num",children:[a,"%"]}),(0,Xo.jsx)("span",{className:"fp-chevron",children:n?"\u25b2":"\u25bc"})]})]}),(0,Xo.jsx)("div",{className:"fp-progress-track",children:(0,Xo.jsx)("div",{className:"fp-progress-fill",style:{width:"".concat(a,"%")}})}),(0,Xo.jsxs)("div",{className:"fp-progress-label",children:[i," / ",rN.length," tasks done"]}),n&&(0,Xo.jsxs)("div",{className:"fp-body",children:[(0,Xo.jsxs)("div",{className:"fp-ltd",children:[(0,Xo.jsx)("div",{className:"fp-ltd-title",children:"\ud83d\udcb8 How the Lifetime Deal (LTD) works"}),(0,Xo.jsxs)("ul",{children:[(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:'What "lifetime" means here:'})," a one-time payment \u2192 a large"," ",(0,Xo.jsx)("b",{children:"never-expiring credit grant"}),' (Clipbait already supports never-expiring grants \u2014 see a user\'s "credits remaining" breakdown), or a ',(0,Xo.jsx)("b",{children:"Lifetime plan"})," ","that drips X credits/month forever."]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Sequence:"})," private LTD in warm communities (~$30k) \u2192 spend it on content \u2192"," ",(0,Xo.jsx)("b",{children:"AppSumo"}),' (~$100k) \u2192 a final "last ever" private LTD (scarcity) \u2192 reviews \u2192 MRR.']}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Fulfill in Clipbait today:"})," use admin ",(0,Xo.jsx)("i",{children:"Gift credits"}),' on a user (never-expiring) for each LTD buyer, or add a "lifetime" plan tier.']}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Pricing idea:"})," $99\u2013$149 one-time. With ~$0.14/clip COGS, even heavy LTD users stay profitable \u2014 front-loaded cash to fund content + survival."]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Targets to hit:"})," Private LTD ",(0,Xo.jsx)("b",{children:"$30k"})," \u2192 AppSumo close ",(0,Xo.jsx)("b",{children:"$100k"})," in the bank."]})]})]}),nN.map((n=>(0,Xo.jsxs)("div",{className:"fp-phase",children:[(0,Xo.jsx)("div",{className:"fp-phase-title",children:n.phase}),n.steps.map((n=>{const r=n.tasks.every((t=>e[t[0]]));return(0,Xo.jsxs)("div",{className:"fp-step".concat(r?" fp-step--done":""),children:[(0,Xo.jsx)("div",{className:"fp-step-title",children:n.title}),(0,Xo.jsx)("div",{className:"fp-step-note",children:n.note}),(0,Xo.jsx)("div",{className:"fp-tasks",children:n.tasks.map((n=>{let[r,i]=n;return(0,Xo.jsxs)("label",{className:"fp-task".concat(e[r]?" fp-task--done":""),children:[(0,Xo.jsx)("input",{type:"checkbox",checked:!!e[r],onChange:()=>{return e=r,t((t=>o(o({},t),{},{[e]:!t[e]})));var e}}),(0,Xo.jsx)("span",{children:i})]},r)}))})]},n.id)}))]},n.phase)))]})]})}function lN(e){if(!e)return"\u2014";const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return"".concat(t,"s ago");const n=Math.floor(t/60);if(n<60)return"".concat(n,"m ago");const r=Math.floor(n/60);return r<24?"".concat(r,"h ago"):"".concat(Math.floor(r/24),"d ago")}function cN(e){let{a:t}=e;const[n,r]=(0,$.useState)(!1),[i,a]=(0,$.useState)(null);return(0,Xo.jsxs)("div",{className:"aff-row-wrap",children:[(0,Xo.jsxs)("div",{className:"aff-row",onClick:async()=>{const e=!n;if(r(e),e&&!i)try{const e=await ks.get("/admin/affiliates/".concat(t.id));a(e.data.affiliate)}catch(s){Vo.error("Couldn't load board")}},children:[(0,Xo.jsxs)("div",{className:"aff-row-id",children:[(0,Xo.jsx)("div",{className:"aff-name",children:t.name||"(no name)"}),(0,Xo.jsx)("div",{className:"aff-email muted",children:t.email||"\u2014"})]}),(0,Xo.jsxs)("div",{className:"aff-nums",children:[(0,Xo.jsxs)("span",{title:"DMs sent",children:[(0,Xo.jsx)("b",{children:t.stats.sent})," sent"]}),(0,Xo.jsxs)("span",{title:"Replies",children:[(0,Xo.jsx)("b",{children:t.stats.replied})," replies"]}),(0,Xo.jsx)("span",{title:"Reply rate",children:(0,Xo.jsxs)("b",{children:[t.stats.replyRate,"%"]})}),(0,Xo.jsxs)("span",{title:"Signed up",className:"aff-signed",children:[(0,Xo.jsx)("b",{children:t.stats.signed})," signed"]})]}),(0,Xo.jsx)("span",{className:"muted aff-when",children:lN(t.lastActiveAt||t.createdAt)})]}),n&&i&&(0,Xo.jsx)("div",{className:"aff-detail",children:0===(i.
2contacts||[]).length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"No contacts logged yet."}):i.contacts.map((e=>(0,Xo.jsxs)("div",{className:"aff-contact",children:[(0,Xo.jsx)("span",{className:"aff-contact-name",children:e.name}),(0,Xo.jsxs)("span",{className:"muted",children:[e.platform," \xb7 ",e.dateSent]}),(0,Xo.jsxs)("span",{className:"aff-flags",children:[e.replied&&(0,Xo.jsx)("em",{children:"replied"}),e.demoViewed&&(0,Xo.jsx)("em",{children:"demo"}),e.followupSent&&(0,Xo.jsx)("em",{children:"follow-up"}),e.signedUp&&(0,Xo.jsx)("em",{className:"won",children:"signed up"})]})]},e.cid)))})]})}function dN(){const[e,t]=(0,$.useState)(null);if((0,$.useEffect)((()=>{ks.get("/admin/affiliates").then((e=>t(e.data))).catch((e=>{var n,r;Vo.error((null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Failed to load affiliates"),t({affiliates:[],totals:{}})}))}),[]),!e)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"});const{affiliates:n=[],totals:r={}}=e;return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",children:["Affiliates ",(0,Xo.jsxs)("span",{className:"muted",children:["(",r.affiliates||0,")"]})]}),(0,Xo.jsxs)("div",{className:"muted",style:{fontSize:13,marginBottom:16},children:[r.sent||0," DMs sent \xb7 ",r.replied||0," replies \xb7 ",(0,Xo.jsx)("b",{children:r.signed||0})," signed up across all affiliates"]}),0===n.length?(0,Xo.jsxs)("div",{className:"admindash-empty",children:["No affiliates yet. Share ",(0,Xo.jsx)("b",{children:"app.clipbait.ai/affiliates"})," + the access password to recruit."]}):(0,Xo.jsx)("div",{className:"aff-list",children:n.map((e=>(0,Xo.jsx)(cN,{a:e},e.id)))})]})}const uN={flagged:{label:"Needs review",color:"#60a5fa"},pending:{label:"Reviewing",color:"#fbbf24"},approved:{label:"Approved",color:"#34d399"},rejected:{label:"Rejected",color:"#f87171"}},hN=["flagged","pending","approved","rejected"],pN={instagram:"Instagram",tiktok:"TikTok",youtube:"YouTube"};function mN(e){return null==e?"\u2014":e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(0),"k"):String(e)}const fN=[["captionOk","Caption"],["bioOk","Bio"],["usernameOk","Username"],["pfpOk","Profile pic"]];function gN(){const[e,t]=(0,$.useState)(null),[n,r]=(0,$.useState)("flagged"),[i,a]=(0,$.useState)(null),s=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;try{const n=await ks.get("/admin/clip-submissions?status=".concat(e));t(n.data)}catch(Ps){var r,i;Vo.error((null===(r=Ps.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"Failed to load clip submissions")}};(0,$.useEffect)((()=>{s(n)}),[n]);const o=async(e,t)=>{a(e);try{await ks.post("/admin/clip-submissions/".concat(e,"/status"),{status:t}),Vo.success("approved"===t?"Approved":"Rejected"),s()}catch(Ps){var n,r;Vo.error((null===(n=Ps.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Couldn't update status")}finally{a(null)}};if(!e)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"});const{submissions:l=[],stats:c={}}=e;return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("div",{className:"ref-head",children:(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h2",{className:"admindash-section-title",style:{margin:0},children:"Clip review"}),(0,Xo.jsx)("div",{className:"muted",style:{fontSize:13},children:"Automated compliance + fraud-signal check on every submitted clip \xb7 flagged ones need a human call"})]})}),(0,Xo.jsx)("div",{className:"ref-filters",children:hN.map((e=>{var t;return(0,Xo.jsxs)("button",{className:"ref-pill ".concat(n===e?"active":""),style:n===e?{borderColor:uN[e].color,color:uN[e].color}:void 0,onClick:()=>r(e),children:[uN[e].label," ",(0,Xo.jsx)("span",{className:"ref-pill-n",children:null!==(t=c[e])&&void 0!==t?t:0})]},e)}))}),0===l.length?(0,Xo.jsxs)("div",{className:"admindash-empty",children:["No ",uN[n].label.toLowerCase()," submissions."]}):(0,Xo.jsx)("div",{className:"ref-list",children:l.map((e=>{var t,n,r,a,s,l,c,d,u,h,p,m,f;return(0,Xo.jsxs)("div",{className:"ref-card",children:[(0,Xo.jsxs)("div",{className:"ref-card-top",children:[(0,Xo.jsxs)("div",{className:"ref-card-id",children:[(0,Xo.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"ref-handle",children:pN[e.platform]||e.platform}),(0,Xo.jsxs)("span",{className:"muted",children:[" \xb7 @",(null===(t=e.user)||void 0===t?void 0:t.username)||"unknown"]}),(0,Xo.jsxs)("span",{className:"muted",children:[" \xb7 ",(null===(n=e.campaign)||void 0===n?void 0:n.title)||"campaign","
2(",null===(r=e.campaign)||void 0===r?void 0:r.brandName,")"]})]}),(0,Xo.jsx)("span",{className:"ref-status",style:{color:null===(a=uN[e.status])||void 0===a?void 0:a.color},children:(null===(s=uN[e.status])||void 0===s?void 0:s.label)||e.status})]}),(0,Xo.jsxs)("div",{className:"ref-meta",children:[(0,Xo.jsxs)("span",{children:[mN(null===(l=e.scrape)||void 0===l?void 0:l.viewCount)," views"]}),null!=(null===(c=e.scrape)||void 0===c?void 0:c.likeCount)&&(0,Xo.jsxs)("span",{children:["\xb7 ",mN(e.scrape.likeCount)," likes"]}),null!=(null===(d=e.scrape)||void 0===d?void 0:d.followerCount)&&(0,Xo.jsxs)("span",{children:["\xb7 ",mN(e.scrape.followerCount)," followers"]}),e.payoutAmount>0&&(0,Xo.jsxs)("span",{children:["\xb7 $",e.payoutAmount.toFixed(2)," payout"]})]}),(null===(u=e.scrape)||void 0===u?void 0:u.caption)&&(0,Xo.jsxs)("div",{className:"ref-why",children:['"',e.scrape.caption.slice(0,200),e.scrape.caption.length>200?"\u2026":"",'"']}),null!=(null===(h=e.compliance)||void 0===h?void 0:h.captionOk)&&(0,Xo.jsx)("div",{className:"ref-meta",children:fN.map((t=>{let[n,r]=t;return(0,Xo.jsxs)("span",{style:{color:e.compliance[n]?"#34d399":"#f87171"},children:[e.compliance[n]?"\u2713":"\u2717"," ",r]},n)}))}),(null===(p=e.compliance)||void 0===p?void 0:p.notes)&&(0,Xo.jsxs)("div",{className:"ref-why muted",children:["Compliance: ",e.compliance.notes]}),null!=(null===(m=e.fraudSignal)||void 0===m?void 0:m.score)&&e.fraudSignal.score>0&&(0,Xo.jsxs)("div",{className:"ref-why muted",children:["Fraud signal (",e.fraudSignal.score,"/100) \u2014 heuristic only, verify before rejecting:"," ",null===(f=e.fraudSignal.reasons)||void 0===f?void 0:f.join("; ")]}),e.reviewError&&(0,Xo.jsxs)("div",{className:"ref-why muted",children:["Review error: ",e.reviewError]}),e.reviewNotes&&(0,Xo.jsxs)("div",{className:"ref-why muted",children:["Reviewer note: ",e.reviewNotes]}),("flagged"===e.status||"pending"===e.status)&&(0,Xo.jsxs)("div",{className:"ref-actions",children:[(0,Xo.jsx)("button",{className:"ref-btn ref-btn--sm",disabled:i===e._id,onClick:()=>o(e._id,"approved"),children:"\u2192 Approve"}),(0,Xo.jsx)("button",{className:"ref-btn ref-btn--sm",disabled:i===e._id,onClick:()=>o(e._id,"rejected"),children:"\u2192 Reject"})]})]},e._id)}))})]})}function vN(e){if(!e)return"\u2014";const t=Math.floor((Date.now()-new Date(e).getTime())/1e3);if(t<60)return"".concat(t,"s ago");const n=Math.floor(t/60);if(n<60)return"".concat(n,"m ago");const r=Math.floor(n/60);return r<24?"".concat(r,"h ago"):"".concat(Math.floor(r/24),"d ago")}function bN(){const[e,t]=(0,$.useState)(null);if((0,$.useEffect)((()=>{ks.get("/clipper-apply").then((e=>t(e.data.items||[]))).catch((e=>{var n,r;Vo.error((null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Failed to load clippers"),t([])}))}),[]),!e)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"});const n=e.filter((e=>"Yes"===e.experience)).length;return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",children:["Clipper applications ",(0,Xo.jsxs)("span",{className:"muted",children:["(",e.length,")"]})]}),(0,Xo.jsxs)("div",{className:"muted",style:{fontSize:13,marginBottom:16},children:[n," with personal-brand shorts experience \xb7 all routed to the Whop"]}),0===e.length?(0,Xo.jsxs)("div",{className:"admindash-empty",children:["No applications yet. Share ",(0,Xo.jsx)("b",{children:"app.clipbait.ai/forms"})," to recruit editors."]}):(0,Xo.jsx)("div",{className:"clp-list",children:e.map((e=>(0,Xo.jsxs)("div",{className:"clp-row",children:[(0,Xo.jsxs)("div",{className:"clp-main",children:[(0,Xo.jsx)("div",{className:"clp-email",children:e.email||"\u2014"}),(0,Xo.jsxs)("div",{className:"clp-meta muted",children:["Other"===e.software?"Other: ".concat(e.softwareOther||"\u2014"):e.software||"\u2014",e.portfolio&&(0,Xo.jsxs)(Xo.Fragment,{children:[" \xb7 ",(0,Xo.jsx)("a",{href:e.portfolio.startsWith("http")?e.portfolio:"https://".concat(e.portfolio),target:"_blank",rel:"noreferrer",children:"portfolio \u2192"})]})]})]}),(0,Xo.jsx)("span",{className:"clp-exp ".concat("Yes"===e.experience?"yes":"no"),children:"Yes"===e.experience?"experienced":"new"}),(0,Xo.jsx)("span",{className:"muted clp-when",children:vN(e.createdAt)})]},e._id)))})]})}const yN=["Fetch video","Whisper","GPT","Gemini","Save"],xN={done:"\u2713",skipped:"\u2013",error:"\u2715"},SN=e=>((null===e||void 0===e?void 0:e.stepStates)||[]).filter((e=>"done"===e||"skipped"===e)).length;const kN=e=>new Date(e).toLocaleTimeString([],{hour12:!1});function wN(e){let{states:t=[]}=e;return(0,Xo.jsx)("div",{className:"igc-steps",children:yN.map(((e,n)=>{const r=t[n]||"pending";return(0,Xo.jsxs)("div",{className:"igc-step igc-step--".concat(r),children:[(0,Xo.jsx)("span",{className:"igc-step-dot",children:"active"===r?(0,Xo.jsx)("span",{className:"igc-spin igc-spin--sm"}):xN[r]||n+1}),(0,Xo.jsx)("span",{children:"skipped"===r?"".concat(e," (skipped)"):e})]},e)}))})}function TN(e){var t;let{job:n,onDismiss:r}=e;const i=(0,$.useRef)(null),a=function(e){const[t,n]=(0,$.useState)(Date.now());return(0,$.useEffect)((()=>
2{if(!e)return;const t=setInterval((()=>n(Date.now())),1e3);return()=>clearInterval(t)}),[e]),t}(n.running);(0,$.useEffect)((()=>{i.current&&(i.current.scrollTop=i.current.scrollHeight)}),[null===(t=n.log)||void 0===t?void 0:t.length]);const s=function(e){if(null===e||void 0===e||!e.total)return 0;const t=e.done+e.failed;if(!e.running)return Math.round(t/e.total*100);const n=e.current?SN(e)/yN.length:0;return Math.round(Math.min(98,Math.max(4,(t+n)/e.total*100)))}(n),o=n.done+n.failed,l=(n.running?a:new Date(n.finishedAt||a).getTime())-new Date(n.startedAt||a).getTime(),c=!n.running&&n.failed>0&&0===n.done,d=n.running?"run":c?"fail":n.failed?"warn":"ok";return(0,Xo.jsxs)("div",{className:"igc-panel igc-panel--".concat(d),role:"status","aria-live":"polite",children:[(0,Xo.jsxs)("div",{className:"igc-panel-head",children:[(0,Xo.jsx)("div",{className:"igc-panel-title",children:n.running?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin"}),"Analyzing Reel ",Math.min(o+1,n.total)," of ",n.total]}):c?(0,Xo.jsx)(Xo.Fragment,{children:"\u2715 Analysis failed"}):(0,Xo.jsxs)(Xo.Fragment,{children:["\u2713 Finished \u2014 ",n.done," analyzed",n.failed?", ".concat(n.failed," failed"):""]})}),(0,Xo.jsxs)("div",{className:"igc-panel-meta",children:[(0,Xo.jsx)("span",{children:(u=Math.max(0,l),"".concat(String(Math.floor(u/6e4)).padStart(2,"0"),":").concat(String(Math.floor(u%6e4/1e3)).padStart(2,"0")))}),!n.running&&(0,Xo.jsx)("button",{className:"igc-x",onClick:r,"aria-label":"Dismiss",children:"Dismiss"})]})]}),(0,Xo.jsxs)("div",{className:"igc-bar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,role:"progressbar",children:[(0,Xo.jsx)("div",{className:"igc-bar-fill ".concat(n.running?"igc-bar-fill--live":""," igc-bar-fill--").concat(d),style:{width:"".concat(Math.max(s,2),"%")}}),(0,Xo.jsxs)("span",{className:"igc-bar-pct",children:[s,"%"]})]}),n.running&&n.currentCaption&&(0,Xo.jsxs)("div",{className:"igc-now",children:["Now: ",(0,Xo.jsxs)("b",{children:["\u201c",n.currentCaption,"\u201d"]})]}),n.running&&(0,Xo.jsx)(wN,{states:n.stepStates}),n.running&&(0,Xo.jsx)("div",{className:"igc-hint",children:"Live \u2014 you can scroll, open other tabs or leave this page; it keeps running on the server."}),(0,Xo.jsxs)("div",{className:"igc-log",ref:i,"aria-label":"Live activity log",children:[0===(n.log||[]).length?(0,Xo.jsx)("div",{className:"igc-log-line igc-log--info",children:"Waiting for the first update\u2026"}):n.log.map(((e,t)=>(0,Xo.jsxs)("div",{className:"igc-log-line igc-log--".concat(e.level||"info"),children:[(0,Xo.jsx)("span",{className:"igc-log-t",children:kN(e.t)}),e.msg]},"".concat(e.t,"-").concat(t)))),n.running&&(0,Xo.jsxs)("div",{className:"igc-log-line igc-log--cursor",children:[(0,Xo.jsx)("span",{className:"igc-log-t",children:kN(a)}),(0,Xo.jsx)("span",{className:"igc-dots",children:"working"})]})]})]});var u}function CN(e){let{job:t}=e;const n=(t.log||[]).filter((e=>!t.current||e.mediaId===t.current)).slice(-4);return(0,Xo.jsxs)("div",{className:"igc-inline",children:[(0,Xo.jsxs)("div",{className:"igc-inline-top",children:[(0,Xo.jsx)("span",{className:"igc-spin"}),(0,Xo.jsx)("b",{children:"Analyzing this Reel\u2026"}),(0,Xo.jsxs)("span",{className:"muted",children:[SN(t)," of ",yN.length," steps"]})]}),(0,Xo.jsx)("div",{className:"igc-bar igc-bar--sm",children:(0,Xo.jsx)("div",{className:"igc-bar-fill igc-bar-fill--live igc-bar-fill--run",style:{width:"".concat(Math.max(6,SN(t)/yN.length*100),"%")}})}),(0,Xo.jsx)(wN,{states:t.stepStates}),(0,Xo.jsx)("div",{className:"igc-log igc-log--mini",children:n.map(((e,t)=>(0,Xo.jsxs)("div",{className:"igc-log-line igc-log--".concat(e.level||"info"),children:[(0,Xo.jsx)("span",{className:"igc-log-t",children:kN(e.t)}),e.msg]},t)))})]})}const EN="admindash.ig.filters";const jN=["ugc","promo","clip","music","other"],AN=[["postDate","Newest"],["views","Views"],["outlier","Outlier score"],["engagement","Engagement"],["likes","Likes"]],NN={viral:"Viral",hit:"Hit",above_average:"Above avg",average:"Average",below_average:"Below avg","n/a":"\u2014"},PN=e=>
2null==e?"\u2014":Number(e).toLocaleString(),RN=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e||0),LN=e=>{if(!e)return null;const t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return"".concat(t,"m ago");const n=Math.floor(t/60);return n<24?"".concat(n,"h ago"):"".concat(Math.floor(n/24),"d ago")},IN=e=>e?new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"2-digit"}):"\u2014";function DN(e){let{points:t}=e;if(!t||t.length<2)return(0,Xo.jsx)("div",{className:"muted",style:{fontSize:12},children:"Chart appears after 2+ daily syncs"});const n=Math.max(...t),r=Math.min(...t),i=n-r||1,a=t.map(((e,n)=>"".concat(n/(t.length-1)*260,",").concat(40-(e-r)/i*36))).join(" ");return(0,Xo.jsx)("svg",{width:260,height:44,viewBox:"0 0 ".concat(260," ").concat(44),children:(0,Xo.jsx)("polyline",{points:a,fill:"none",stroke:"#ff8a33",strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"})})}function ON(){var e;const[t,n]=(0,$.useState)(null),[r,i]=(0,$.useState)(!1),a=(0,$.useRef)(function(){try{return JSON.parse(localStorage.getItem(EN)||"{}")||{}}catch(e){return{}}}()).current,[s,l]=(0,$.useState)(a.label||""),[c,d]=(0,$.useState)(null!==(e=a.type)&&void 0!==e?e:"REELS"),[u,h]=(0,$.useState)(a.sort||"postDate");(0,$.useEffect)((()=>{try{localStorage.setItem(EN,JSON.stringify({label:s,type:c,sort:u}))}catch(e){}}),[s,c,u]);const[p,m]=(0,$.useState)(null),[f,g]=(0,$.useState)(null),[v,b]=(0,$.useState)(null),[y,x]=(0,$.useState)(null),S=(0,$.useRef)(null);S.current=f;const k=(0,$.useRef)(0),w=(0,$.useCallback)((()=>{const e={sort:u};s&&(e.label=s),c&&(e.type=c),ks.get("/admin/ig-content",{params:e}).then((e=>n(e.data))).catch((e=>{var t,r;Vo.error((null===(t=e.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.error)||"Failed to load Instagram data"),n({items:[],accounts:[],labels:[],history:[],summary:{}})}))}),[s,c,u]);(0,$.useEffect)(w,[w]);const T="".concat(ks.defaults.baseURL,"/auth/instagram?token=").concat(encodeURIComponent(localStorage.getItem("token")||"")),C=(0,$.useCallback)((async()=>{const e=S.current;if(e)try{b((await ks.get("/admin/ig-content/".concat(e))).data.item)}catch(t){}}),[]);(0,$.useEffect)((()=>{ks.get("/admin/ig-content/analyze/status").then((e=>{m(e.data),k.current=e.data.done+e.data.failed})).catch((()=>{}))}),[]),(0,$.useEffect)((()=>{if(null===p||void 0===p||!p.running)return;const e=setInterval((async()=>{try{const r=(await ks.get("/admin/ig-content/analyze/status")).data;m(r);const i=r.done+r.failed;var t,n;if(i===k.current&&r.running||(k.current=i,w(),C()),!r.running)clearInterval(e),r.failed&&Vo.error("".concat(r.failed," of ").concat(r.total," failed: ").concat((null===(t=r.errors)||void 0===t||null===(n=t[r.errors.length-1])||void 0===n?void 0:n.error)||"see the log"),{duration:1e4})}catch(r){}}),1e3);return()=>clearInterval(e)}),[null===p||void 0===p?void 0:p.running,w,C]);const E=async e=>{try{const t=(await ks.post("/admin/ig-content/analyze",e?{mediaIds:e}:{limit:10})).data;if(!t.started)return Vo("Nothing left to analyze");k.current=0,x(null),m({running:!0,total:t.total,done:0,failed:0,errors:[],log:[{t:(new Date).toISOString(),level:"info",msg:"Started \u2014 ".concat(t.total," Reel").concat(1===t.total?"":"s"," queued")}],stepStates:[],startedAt:(new Date).toISOString()})}catch(Ps){var t,n,r,i;if(409===(null===(t=Ps.response)||void 0===t?void 0:t.status)&&null!==(n=Ps.response.data)&&void 0!==n&&n.status)return void m(Ps.response.data.status);Vo.error((null===(r=Ps.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"Couldn't start analysis")}},j=async e=>{if(f!==e.mediaId){g(e.mediaId),b(null);try{b((await ks.get("/admin/ig-content/".concat(e.mediaId))).data.item)}catch(t){b(e)}}else g(null)};if(!t)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"});const{items:A,accounts:N=[],labels:P=[],history:R=[],stat:L,summary:I={},handle:D,lastSyncedAt:O,patterns:M={}}=t,_=I.analysis||{},F=O&&Date.now()-new Date(O).getTime()>468e5,B=Object.values(M).some((e=>null===e||void 0===e?void 0:e.length)),U=p&&p.total>0&&(p.running||p.finishedAt&&y!==p.finishedAt&&Date.now()-new Date(p.finishedAt).getTime()<18e5),z=N.find((e=>e.handle===D))||N[0],G=!z||!z.connected,W=z&&z.connected&&!z.metricsAvailable,H=I.categories||{};return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("div",{className:"igc-head",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",style:{margin:0},children:["Instagram ",D&&(0,Xo.jsxs)("span",{className:"muted",children:["@",D]})]}),O&&(0,Xo.jsxs)("span",{className:"igc-synced ".concat(F?"igc-synced--stale":""),children:["Last synced ",LN(O)]}),(0,Xo.jsxs)("div",{className:"igc-actions",children:[(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(null!==p&&void 0!==p&&p.running?"igc-btn-busy":""),onClick:()=>E(),disabled:G||(null===p||void 0===p?void 0:p.running)||!_.unanalyzed,title:"Whisper transcript + GPT hooks/topic + Gemini visuals for each new Reel (10 per click)",children:null!==p&&void 0!==p&&p.running?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Analyzing ",p.done+p.failed,"/",p.total,"\u2026"]}):"Analyze".concat(_.unanalyzed?" (".concat(_.unanalyzed," new)"):"")}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:async()=>{i(!0);try{var e;const t=(await ks.post("/admin/ig-content/sync")).data;if(t.skipped)Vo.error("not_configured"===t.skipped?"TOKEN_ENCRYPTION_KEY isn't set on the server":"A sync is already running");else if(null!==(e=t.accounts)&&void 0!==e&&e.length){const e=t.accounts[0];e.error?Vo.error(e.error):Vo.success("Synced ".concat(e.posts," posts").concat(e.metricsAvailable?"":" (no metrics \u2014 reconnect)"))}else Vo.error("No connected Instagram account yet");w()}catch(Ps){var t,n;Vo.error((null===(t=Ps.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||"Sync failed")}i(!1)},disabled:r||G,children:r?"Syncing\u2026":"Sync now"}),(0,Xo.jsx)("a",{className:"admindash-refresh",href:T,children:G?"Connect Instagram":"Reconnect"})]})]}),U&&(0,Xo.jsx)(TN,{job:p,onDismiss:()=>x(p.finishedAt)}),F&&(0,Xo.jsxs)("div",{className:"igc-banner",children:["Auto-sync hasn't run in ",LN(O).replace(" ago","")," (it should run every 6 hours). Click ",(0,Xo.jsx)("b",{children:"Sync now"}),"; if that works but this keeps happening, check the Render logs."]}),G&&(0,Xo.jsx)("div",{className:"igc-banner",children:"Connect your Instagram (log in as the founder page) to start tracking posts."}),(null===z||void 0===z?void 0:z.needsReconnect)&&(0,Xo.jsx)("div",{className:"igc-banner",children:"Instagram access expired \u2014 reconnect to keep syncing."}),W&&(0,Xo.jsxs)("div",{className:"igc-banner",children:["Views, reach, saves, shares and watch time are off. Click ",(0,Xo.jsx)("b",{children:"Reconnect"})," and approve the insights permission."]}),L&&(0,Xo.jsxs)("div",{className:"admindash-grid",style:{marginTop:16},children:[(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:RN(L.followerCount)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Followers"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:PN(I.total)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Posts tracked"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:RN(L.avgViews)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Avg views / post"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:RN(L.totalViews)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Total views"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:(H.viral||0)+(H.hit||0)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Viral + hits"})]})]}),R.length>1&&(0,Xo.jsxs)("div",{className:"igc-trend",children:[(0,Xo.jsx)("span",{className:"muted",children:"Followers"}),(0,Xo.jsx)(DN,{points:R.map((e=>e.followers))}),(0,Xo.jsx)("span",{className:"muted",children:"Avg views"}),(0,Xo.jsx)(DN,{points:R.map((e=>e.avgViews))})]}),B&&(0,Xo.jsxs)("div",{className:"igc-patterns",children:[(0,Xo.jsxs)("div",{className:"igc-patterns-title",children:["What's working ",(0,Xo.jsxs)("span",{className:"muted",children:["\u2014 average views, from ",_.analyzed," analyzed post",1===_.analyzed?"":"s"]})]}),(0,Xo.jsx)("div",{className:"igc-patterns-grid",children:[["hookStructure","Hook style"],["visualFormat","Visual format"],["contentType","Content type"]].map((e=>{var t;let[n,r]=e;return null!==(t=M[n])&&void 0!==t&&t.length?(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"igc-pat-h",children:r}),M[n].slice(0,4).map((e=>(0,Xo.jsxs)("div",{className:"igc-pat-row",children:[(0,Xo.jsx)("span",{children:e.name}),(0,Xo.jsxs)("span",{className:"muted",children:[e.count,"\xd7"]}),(0,Xo.jsx)("b",{children:RN(e.avgViews)})]},e.name)))]},n):null}))})]}),(0,Xo.jsxs)("div",{className:"igc-filters",children:[(0,Xo.jsxs)("select",{value:c,onChange:e=>d(e.target.value),children:[(0,Xo.jsx)("option",{value:"REELS",children:"Reels"}),(0,Xo.jsx)("option",{value:"",children:"All posts"}),(0,Xo.jsx)("option",{value:"FEED",children:"Feed"})]}),(0,Xo.jsx)("select",{value:u,onChange:e=>h(e.target.value),children:AN.map((e=>{let[t,n]=e;return(0,Xo.jsxs)("option",{value:t,children:["Sort: ",n]},t)}))}),(0,Xo.jsx)("button",{className:"igc-chip ".concat(""===s?"on":""),onClick:()=>l(""),children:"All"}),P.map((e=>(0,Xo.jsxs)("button",{className:"igc-chip ".concat(s===e.label?"on":""),onClick:()=>l(e.label),children:[e.label," ",(0,Xo.jsx)("span",{className:"muted",children:e.count})]},e.label)))]}),0===A.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:G?"Nothing yet.":"No posts yet \u2014 click \u201cSync now\u201d."}):(0,Xo.jsxs)("div",{className:"igc-table",children:[(0,Xo.jsxs)("div",{className:"igc-row igc-row--head",children:[(0,Xo.jsx)("span",{children:"Post"}),(0,Xo.jsx)("span",{children:"Views"}),(0,Xo.jsx)("span",{children:"Reach"}),(0,Xo.jsx)("span",{children:"Likes"}),(0,Xo.jsx)("span",{children:"Comments"}),(0,Xo.jsx)("span",{children:"Shares"}),(0,Xo.jsx)("span",{children:"Saves"}),(0,Xo.jsx)("span",{children:"Watch"}),(0,Xo.jsx)("span",{children:"Eng."}),(0,Xo.jsx)("span",{children:"Outlier"}),(0,Xo.jsx)("span",{children:"Label"}),(0,Xo.jsx)("span",{})]}),A.map((e=>{const r=t=>e.hasInsights?PN(t):"\u2014";return(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"igc-row igc-row--click ".concat(f===e.mediaId?"igc-row--open":""," ").concat(null!==p&&void 0!==p&&p.running&&p.current===e.mediaId?"igc-row--busy":""),role:"button",tabIndex:0,"aria-expanded":f===e.mediaId,title:"Click to see the analysis",onClick:()=>j(e),onKeyDown:t=>{t.target!==t.currentTarget||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),j(e))}
2,children:[(0,Xo.jsxs)("div",{className:"igc-post",children:[e.thumbnailUrl?(0,Xo.jsx)("img",{src:e.thumbnailUrl,alt:"",loading:"lazy"}):(0,Xo.jsx)("div",{className:"igc-thumb-empty"}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"igc-cap",children:(e.caption||"(no caption)").replace(/\s+/g," ").slice(0,90)}),(0,Xo.jsx)("div",{className:"muted igc-date",children:IN(e.postDate)})]}),(0,Xo.jsx)("a",{className:"igc-ext",href:e.url,target:"_blank",rel:"noreferrer",title:"Open on Instagram",onClick:e=>e.stopPropagation(),children:"\u2197"})]}),(0,Xo.jsx)("span",{"data-l":"Views",children:r(e.views)}),(0,Xo.jsx)("span",{"data-l":"Reach",children:r(e.reach)}),(0,Xo.jsx)("span",{"data-l":"Likes",children:PN(e.likes)}),(0,Xo.jsx)("span",{"data-l":"Comments",children:PN(e.comments)}),(0,Xo.jsx)("span",{"data-l":"Shares",children:r(e.shares)}),(0,Xo.jsx)("span",{"data-l":"Saves",children:r(e.saves)}),(0,Xo.jsx)("span",{"data-l":"Watch",children:e.hasInsights&&e.avgWatchTime?"".concat(e.avgWatchTime,"s"):"\u2014"}),(0,Xo.jsx)("span",{"data-l":"Eng.",children:e.hasInsights?"".concat(e.engagementRate,"%"):"\u2014"}),(0,Xo.jsx)("span",{className:"igc-badge igc-badge--".concat(e.outlierCategory),title:e.outlierScore?"".concat(e.outlierScore,"\xd7 your average"):"",children:e.hasInsights?NN[e.outlierCategory]:"\u2014"}),(0,Xo.jsxs)("select",{value:e.label||"",onClick:e=>e.stopPropagation(),onChange:r=>(async(e,r)=>{const i=t;n(o(o({},t),{},{items:t.items.map((t=>t.mediaId===e.mediaId?o(o({},t),{},{label:r}):t))}));try{await ks.patch("/admin/ig-content/".concat(e.mediaId),{label:r})}catch(a){n(i),Vo.error("Couldn't save label")}})(e,r.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"unlabeled"}),[...new Set([...jN,e.label].filter(Boolean))].map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]}),(0,Xo.jsx)("span",{className:"igc-more","aria-hidden":"true",children:f===e.mediaId?"\u25b4":"\u25be"})]}),f===e.mediaId&&(0,Xo.jsx)("div",{className:"igc-detail",children:null!==p&&void 0!==p&&p.running&&p.current===e.mediaId?(0,Xo.jsx)(CN,{job:p}):v?v.isAnalyzed?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"igc-kv",children:[["Spoken hook",v.spokenHook],["Hook style",v.hookStructure],["Hook template",v.hookFramework],["Topic",[v.topic,v.topicSummary].filter(Boolean).join(" \u2014 ")],["Structure",v.contentStructure],["Type",v.contentType],["Call to action",v.callToAction],["On-screen text",v.textHook],["Opening visual",v.visualHook],["Visual format",v.visualFormat],["Audio",v.audioHook],["Length",v.duration?"".concat(v.duration,"s"):null]].filter((e=>{let[,t]=e;return t})).map((e=>{let[t,n]=e;return(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{className:"muted",children:t}),(0,Xo.jsx)("div",{children:n})]},t)}))}),v.transcript&&(0,Xo.jsxs)("details",{className:"igc-tx",children:[(0,Xo.jsx)("summary",{className:"muted",children:"Transcript"}),(0,Xo.jsx)("p",{children:v.transcript})]})]}):(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("span",{className:"muted",children:["Not analyzed yet.",v.analysisError?" Last error: ".concat(v.analysisError):""]})," ","VIDEO"===e.mediaType&&(null!==p&&void 0!==p&&p.running?(0,Xo.jsxs)("span",{className:"igc-btn-busy igc-pill",children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),p.total>1?"Waiting \u2014 another analysis is running":"Starting\u2026"]}):(0,Xo.jsx)("button",{className:"igc-chip",onClick:()=>E([e.mediaId]),children:"Analyze this post"}))]}):(0,Xo.jsx)("span",{className:"muted",children:"Loading\u2026"})})]},e.mediaId)}))]})]})}const MN=e=>null==e?"\u2014":Number(e).toLocaleString(),_N=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e||0),FN=e=>e?new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}):"\u2014",BN=(e,t)=>{var n,r;return(null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||t},UN=[["prompt","Prompt"],["pipeline","Pipeline"],["hooks","Hooks"],["scripter","Scripter"],["trending","Trending"],["ideator","Ideator"],["brief","Performance Brief"],["competitors","Competitors"]],zN="admindash.contentEngine.view";function GN(){const[e,t]=(0,$.useState)((()=>{try{return localStorage.getItem(zN)||"pipeline"}catch(e){return"pipeline"}})),n=e=>{t(e);try{localStorage.setItem(zN,e)}catch(n){}},[r,i]=(0,$.useState)(null),a=e=>{i(e),n("scripter")};return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("div",{className:"ce-nav",children:UN.map((t=>{let[r,i]=t;return(0,Xo.jsx)("button",{className:"ce-nav-btn ".concat(e===r?"on":""),onClick:()=>n(r),children:i},r)}))}),"prompt"===e&&(0,Xo.jsx)(rP,{}),"pipeline"===e&&(0,Xo.jsx)(HN,{onScript:a}),"hooks"===e&&(0,Xo.jsx)(KN,{onScript:a}),"scripter"===e&&(0,Xo.jsx)(YN,{seed:r,clearSeed:()=>i(null)}),"trending"===e&&(0,Xo.jsx)(XN,{}),"ideator"===e&&(0,Xo.jsx)(JN,{}),"brief"===e&&(0,Xo.jsx)(ZN,{}),"competitors"===e&&(0,Xo.jsx)(tP,{onScript:a})]})}const WN={idea:"\ud83d\udca1 Idea",researched:"\ud83d\udcdd Researched",scripting:"\u270d\ufe0f Scripting",filming:"\ud83c\udfac Filming",editing:"\u2702\ufe0f Editing",sc
2heduled:"\ud83d\udcc5 Scheduled",posted:"\u2705 Posted",archived:"\ud83d\uddc4\ufe0f Archived"};function HN(e){let{onScript:t}=e;const[n,r]=(0,$.useState)(null),[i,a]=(0,$.useState)(""),[s,o]=(0,$.useState)(null),[l,c]=(0,$.useState)(""),d=(0,$.useCallback)((()=>{ks.get("/admin/content-engine/pipeline",{params:i?{status:i}:{}}).then((e=>r(e.data))).catch((e=>{Vo.error(BN(e,"Failed to load pipeline")),r({items:[],counts:{},statuses:[]})}))}),[i]);(0,$.useEffect)(d,[d]);const u=async()=>{if(l.trim())try{await ks.post("/admin/content-engine/pipeline",{title:l.trim()}),c(""),d()}catch(Ps){Vo.error(BN(Ps,"Couldn't add idea"))}};if(!n)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"});const{items:h,counts:p,statuses:m}=n;return(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input",placeholder:"New idea title\u2026",value:l,onChange:e=>c(e.target.value),onKeyDown:e=>"Enter"===e.key&&u()}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:u,children:"+ Add idea"})]}),(0,Xo.jsxs)("div",{className:"ce-chips",children:[(0,Xo.jsxs)("button",{className:"igc-chip ".concat(i?"":"on"),onClick:()=>a(""),children:["All ",(0,Xo.jsx)("span",{className:"muted",children:Object.values(p).reduce(((e,t)=>e+t),0)})]}),m.map((e=>(0,Xo.jsxs)("button",{className:"igc-chip ".concat(i===e?"on":""),onClick:()=>a(e),children:[WN[e]||e," ",(0,Xo.jsx)("span",{className:"muted",children:p[e]||0})]},e)))]}),0===h.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"Nothing here yet. Add an idea, or pull one in from Trending."}):(0,Xo.jsx)("div",{className:"ce-list",children:h.map((e=>(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-card",onClick:()=>o(s===e._id?null:e._id),children:[(0,Xo.jsxs)("div",{className:"ce-card-main",children:[(0,Xo.jsx)("div",{className:"ce-card-title",children:e.title}),(0,Xo.jsxs)("div",{className:"muted ce-card-meta",children:[WN[e.status]," \xb7 ",e.topic||"no topic"," \xb7 ",FN(e.createdAt)," ","manual"!==e.source&&(0,Xo.jsx)("span",{className:"ce-tag",children:e.source})]})]}),(0,Xo.jsx)("span",{className:"igc-more",children:s===e._id?"\u25b4":"\u25be"})]}),s===e._id&&(0,Xo.jsxs)("div",{className:"ce-detail",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"ce-detail-row",children:[(0,Xo.jsx)("label",{className:"muted",children:"Status"}),(0,Xo.jsx)("select",{value:e.status,onChange:t=>(async(e,n)=>{try{await ks.patch("/admin/content-engine/pipeline/".concat(e),{status:n}),d()}catch(t){Vo.error(BN(t,"Couldn't update status"))}})(e._id,t.target.value),children:m.map((e=>(0,Xo.jsx)("option",{value:e,children:WN[e]||e},e)))}),(0,Xo.jsx)("button",{className:"ce-x",onClick:()=>(async e=>{try{await ks.delete("/admin/content-engine/pipeline/".concat(e)),d(),s===e&&o(null)}catch(Ps){Vo.error(BN(Ps,"Couldn't delete"))}})(e._id),children:"Delete"})]}),e.materialsResearch&&(0,Xo.jsxs)("div",{className:"ce-field",children:[(0,Xo.jsx)("span",{className:"muted",children:"Research"}),(0,Xo.jsx)("p",{children:e.materialsResearch})]}),e.contentAngle&&(0,Xo.jsxs)("div",{className:"ce-field",children:[(0,Xo.jsx)("span",{className:"muted",children:"Angle"}),(0,Xo.jsx)("p",{children:e.contentAngle})]}),e.hook1&&(0,Xo.jsxs)("div",{className:"ce-field",children:[(0,Xo.jsx)("span",{className:"muted",children:"Hook"}),(0,Xo.jsx)("p",{children:e.hook1})]}),e.script&&(0,Xo.jsxs)("details",{className:"ce-field",children:[(0,Xo.jsx)("summary",{className:"muted",children:"Script"}),(0,Xo.jsx)("pre",{className:"ce-pre",children:e.script})]}),e.postCaption&&(0,Xo.jsxs)("div",{className:"ce-field",children:[(0,Xo.jsx)("span",{className:"muted",children:"Caption"}),(0,Xo.jsx)("p",{children:e.postCaption})]}),(0,Xo.jsx)("div",{className:"ce-actions",children:(0,Xo.jsx)("button",{className:"igc-chip",onClick:()=>t({pipelineItemId:e._id,topic:e.topic||e.title,hook:e.hook1||"",framework:e.hookSource||"",research:e.materialsResearch||"",contentType:e.contentTypeTag||""}),children:"Script it \u2192"})})]})]},e._id)))})]})}function VN(e){var t;let{h:n,onScript:r}=e;return(0,Xo.jsxs)("div",{className:"ce-hookrow",children:[(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsxs)("p",{children:['"',n.spokenHook||n.hook,'"']}),(n.spokenHookFramework||n.framework)&&(0,Xo.jsx)("div",{className:"muted ce-hook-fw",children:n.spokenHookFramework||n.framework})]}),(0,Xo.jsxs)("div",{className:"ce-hook-meta",children:[(0,Xo.jsx)("span",{className:"igc-badge",children:n.spokenHookStructure||n.structure||"\u2014"}),(0,Xo.jsxs)("span",{className:"muted",children:[_N(null!==(t=n.views)&&void 0!==t?t:n.originalViews)," views"]}),n.source&&(0,Xo.jsx)("span",{className:"ce-tag",children:n.source})]}),r&&(0,Xo.jsx)("button",{className:"igc-chip",onClick:()=>r({topic:"",hook:n.spokenHook||n.hook,framework:n.spokenHookFramework||n.framework}),children:"Script it \u2192"})]})}function KN(e){let{onScript:t}=e;const[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(""),[s,l]=(0,$.useState)(""),[c,d]=(0,$.useState)(null),[u,h]=(0,$.useState)(""),[p,m]=(0,$.useState)(""),[f,g]=(0,$.useState)(null),[v,b]=(0,$.useState)(!1),y=(0,$.useCallback)((()=>{ks.get("/admin/content-engine/hooks",{params:{q:n||void 0,structure:i||void 0,source:s||void 0}}).then((e=>d(e.data))).catch((e=>{Vo.error(BN(e,"Search failed")),d({kallaway:[],noe:[],totals:{}})}))}),[n,i,s]);(0,$.useEffect)(y,[y]);const x=async()=>
2{if(!u.trim())return Vo("Enter a topic first");b(!0);try{g((await ks.post("/admin/content-engine/hooks/generate",{topic:u,contentType:p||void 0})).data)}catch(Ps){Vo.error(BN(Ps,"Couldn't generate hooks"))}b(!1)};return c?(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-panel",children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Generate 6 hooks for a topic"}),(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input",placeholder:"Topic (e.g. streaming for small creators)",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&x()}),(0,Xo.jsxs)("select",{value:p,onChange:e=>m(e.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"Any content type"}),(0,Xo.jsx)("option",{children:"Demo"}),(0,Xo.jsx)("option",{children:"Tutorial"}),(0,Xo.jsx)("option",{children:"Everything Else"})]}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(v?"igc-btn-busy":""),onClick:x,disabled:v,children:v?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Generating\u2026"]}):"Generate 6 hooks"})]}),f&&(0,Xo.jsx)("div",{className:"ce-hooklist",children:f.hooks.map(((e,n)=>(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)(VN,{h:e,onScript:t}),e.whyItWorks&&(0,Xo.jsxs)("div",{className:"muted ce-why",children:[e.whyItWorks,e.originalHook&&e.originalHook!==e.hook&&(0,Xo.jsxs)(Xo.Fragment,{children:[' \u2014 adapted from: "',e.originalHook.slice(0,80),e.originalHook.length>80?"\u2026":"",'"']})]})]},n)))})]}),(0,Xo.jsxs)("div",{className:"ce-panel-title",style:{marginTop:18},children:["Browse the hook database ",(0,Xo.jsxs)("span",{className:"muted",children:["(",c.totals.kallaway," Kallaway \xb7 ",c.totals.noe," Noe)"]})]}),(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input",placeholder:"Search hooks\u2026",value:n,onChange:e=>r(e.target.value)}),(0,Xo.jsxs)("select",{value:s,onChange:e=>l(e.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"All sources"}),(0,Xo.jsx)("option",{value:"kallaway",children:"Kallaway"}),(0,Xo.jsx)("option",{value:"noe",children:"Noe"})]}),(0,Xo.jsxs)("select",{value:i,onChange:e=>a(e.target.value),children:[(0,Xo.jsx)("option",{value:"",children:"All structures"}),["Secret Reveal","Educational","Contrarian","Raw Shock","Question","Comparison","Experimentation"].map((e=>(0,Xo.jsx)("option",{children:e},e)))]})]}),0===c.totals.kallaway&&0===c.totals.noe&&(0,Xo.jsxs)("div",{className:"igc-banner",children:["No hooks loaded yet \u2014 run ",(0,Xo.jsx)("code",{children:"npm run seed:hooks"})," on the server once."]}),(0,Xo.jsx)("div",{className:"ce-hooklist",children:[...c.kallaway.map((e=>o(o({},e),{},{source:"kallaway"}))),...c.noe.map((e=>o(o({},e),{},{source:"noe"})))].slice(0,60).map(((e,n)=>(0,Xo.jsx)(VN,{h:e,onScript:t},n)))})]}):(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})}function qN(e){let{result:t}=e;return(0,Xo.jsxs)("div",{className:"ce-fc-wrap",children:[(0,Xo.jsxs)("div",{className:"ce-fc-hook",children:['HOOK: "',t.hook,'"']}),t.card.beats.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ce-fc-beat",children:[e.screenDirection&&(0,Xo.jsxs)("div",{className:"ce-fc-screen",children:["[SCREEN] ",e.screenDirection]}),(0,Xo.jsx)("div",{className:"muted ce-fc-fw",children:e.framework}),(0,Xo.jsxs)("p",{children:['"',e.example,'"']})]},t))),(0,Xo.jsxs)("div",{className:"ce-fc-close",children:['CLOSE: "',t.card.close,'"']}),(0,Xo.jsxs)("div",{className:"ce-fc-grid",children:[t.card.onScreenTextHook&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{className:"muted",children:"On-screen text"}),(0,Xo.jsx)("p",{children:t.card.onScreenTextHook})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{className:"muted",children:"Visual format"}),(0,Xo.jsx)("p",{children:t.card.visualFormat})]}),t.card.postCaption&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{className:"muted",children:"Post caption"}),(0,Xo.jsx)("p",{children:t.card.postCaption})]}),t.card.recordingInstructions&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{className:"muted",children:"Recording notes"}),(0,Xo.jsx)("p",{children:t.card.recordingInstructions})]})]})]})}function YN(e){let{seed:t,clearSeed:n}=e;const[r,i]=(0,$.useState)((null===t||void 0===t?void 0:t.topic)||""),[a,s]=(0,$.useState)((null===t||void 0===t?void 0:t.hook)||""),[o,l]=(0,$.useState)((null===t||void 0===t?void 0:t.framework)||""),[c,d]=(0,$.useState)((null===t||void 0===t?void 0:t.contentType)||"Everything Else"),[u,h]=(0,$.useState)((null===t||void 0===t?void 0:t.research)||""),[p]=(0,$.useState)((null===t||void 0===t?void 0:t.pipelineItemId)||null),[m,f]=(0,$.useState)(null),[g,v]=(0,$.useState)(!1);(0,$.useEffect)((()=>{t&&(i(t.topic||""),s(t.hook||""),l(t.framework||""),d(t.contentType||"Everything Else"),h(t.research||""),n())}),[t,n]);return(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-panel",children:[(0,Xo.jsxs)("div",{className:"ce-panel-title",children:["Generate a filming card ",p&&(0,Xo.jsx)("span",{className:"muted",children:"\u2014 will save to the pipeline item"})]}),(0,Xo.jsx)("input",{className:"ce-input ce-input--full",placeholder:"Topic",value:r,onChange:e=>i(e.target.value)}),(0,Xo.jsx)("textarea",{className:"ce-input ce-input--full ce-textarea",placeholder:"Chosen hook (spoken line)",value:a,onChange:e=>s(e.target.value),rows:2}),(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input",placeholder:"Hook framework (optional)",value:o,onChange:e=>l(e.target.value)}),(0,Xo.jsxs)("select",{value:c,onChange:e=>d(e.target.value),children:[(0,Xo.jsx)("option",{children:"Demo"}),(0,Xo.jsx)("option",{children:"Tutorial"}),(0,Xo.jsx)("option",{children:"Everything Else"})]})]}),(0,Xo.jsx)("textarea",{className:"ce-input ce-input--full ce-textarea",placeholder:"Research / facts to use (optional)",value:u,onChange:e=>h(e.target.value),rows:2}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(g?"igc-btn-busy":""),onClick:async()=>
2{if(!r.trim()||!a.trim())return Vo("Topic and a chosen hook are both required");v(!0);try{f((await ks.post("/admin/content-engine/scripter",{topic:r,hook:a,framework:o,contentType:c,research:u,pipelineItemId:p})).data),p&&Vo.success("Saved to the pipeline item")}catch(Ps){Vo.error(BN(Ps,"Couldn't generate a filming card"))}v(!1)},disabled:g,children:g?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Writing\u2026"]}):"Generate filming card"})]}),m&&(0,Xo.jsx)(qN,{result:m})]})}function XN(){const[e,t]=(0,$.useState)(null),[n,r]=(0,$.useState)(!1),i=(0,$.useCallback)((()=>{ks.get("/admin/content-engine/trending/logs").then((e=>t(e.data.logs))).catch((()=>t([])))}),[]);(0,$.useEffect)(i,[i]);return e?(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(n?"igc-btn-busy":""),onClick:async()=>{r(!0);try{await ks.post("/admin/content-engine/trending/run",{}),Vo.success("Research complete"),i()}catch(Ps){Vo.error(BN(Ps,"Research run failed"))}r(!1)},disabled:n,children:n?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Researching (Reddit + X)\u2026"]}):"Run today's research"}),(0,Xo.jsx)("span",{className:"muted",children:"Reddit + X/Twitter (via your xAI key). General news search isn't wired up (needs a paid search API)."})]}),0===e.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"No research runs yet."}):e.map((e=>{var t,n;return(0,Xo.jsxs)("div",{style:{marginTop:16},children:[(0,Xo.jsxs)("div",{className:"ce-panel-title",children:[e.date," ",(0,Xo.jsxs)("span",{className:"muted",children:["\u2014 ",(null===(t=e.sourcesScraped)||void 0===t?void 0:t.reddit)||0," Reddit, ",(null===(n=e.sourcesScraped)||void 0===n?void 0:n.x)||0," X posts scraped"]})]}),(0,Xo.jsx)("div",{className:"ce-list",children:e.topics.map(((t,n)=>(0,Xo.jsxs)("div",{className:"ce-card ce-card--static",children:[(0,Xo.jsxs)("div",{className:"ce-card-main",children:[(0,Xo.jsxs)("div",{className:"ce-card-title",children:[t.title," ",null!=t.score&&(0,Xo.jsxs)("span",{className:"igc-badge",children:[t.score,"/100"]})]}),(0,Xo.jsx)("div",{className:"muted",children:t.why}),t.angle&&(0,Xo.jsxs)("div",{className:"ce-hook-fw",children:["Angle: ",t.angle]}),t.sourceUrl&&(0,Xo.jsxs)("a",{href:t.sourceUrl,target:"_blank",rel:"noreferrer",className:"ce-tag",children:[t.source," \u2197"]})]}),(0,Xo.jsx)("button",{className:"igc-chip",disabled:t.addedToPipeline,onClick:()=>(async(e,t)=>{try{await ks.post("/admin/content-engine/trending/".concat(e,"/").concat(t,"/add-to-pipeline")),Vo.success("Added to pipeline"),i()}catch(Ps){Vo.error(BN(Ps,"Couldn't add \u2014 maybe already added"))}})(e.date,n),children:t.addedToPipeline?"Added \u2713":"Add to pipeline"})]},n)))})]},e.date)}))]}):(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})}function JN(){const[e,t]=(0,$.useState)(""),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(""),[s,o]=(0,$.useState)(null),[l,c]=(0,$.useState)(!1),[d,u]=(0,$.useState)(new Set);return(0,Xo.jsxs)("div",{className:"ce-panel",children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"One idea \u2192 up to 5 video variations"}),(0,Xo.jsx)("div",{className:"muted",style:{fontSize:12,marginBottom:10},children:'Uses GPT\'s own knowledge, not live search \u2014 good for well-known topics, less reliable for breaking news. Paste facts into "research" for anything time-sensitive.'}),(0,Xo.jsx)("input",{className:"ce-input ce-input--full",placeholder:"Idea / title",value:e,onChange:e=>t(e.target.value)}),(0,Xo.jsx)("div",{className:"ce-row-flex",children:(0,Xo.jsx)("input",{className:"ce-input",placeholder:"Category (optional)",value:n,onChange:e=>r(e.target.value)})}),(0,Xo.jsx)("textarea",{className:"ce-input ce-input--full ce-textarea",placeholder:"Research / known facts (optional, recommended)",value:i,onChange:e=>a(e.target.value),rows:2}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(l?"igc-btn-busy":""),onClick:async()=>
2{if(!e.trim())return Vo("Enter a title/idea first");c(!0),u(new Set);try{o((await ks.post("/admin/content-engine/ideator",{title:e,topic:n,existingResearch:i})).data)}catch(Ps){Vo.error(BN(Ps,"Couldn't generate variations"))}c(!1)},disabled:l,children:l?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Thinking\u2026"]}):"Generate 5 variations"}),s&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"ce-hooklist",style:{marginTop:14},children:s.variations.map(((e,t)=>(0,Xo.jsxs)("label",{className:"ce-variation ".concat(d.has(t)?"on":""),children:[(0,Xo.jsx)("input",{type:"checkbox",checked:d.has(t),onChange:()=>(e=>u((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})))(t)}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ce-card-title",children:e.title}),(0,Xo.jsxs)("div",{className:"muted",children:[e.framing," \xb7 ",e.contentType," \xb7 ",e.format," \xb7 ~",e.durationSeconds,"s"]}),(0,Xo.jsx)("p",{children:e.description})]})]},t)))}),(0,Xo.jsxs)("button",{className:"admindash-refresh",onClick:async()=>{if(!d.size)return Vo("Pick at least one variation");try{const e=[...d].map((e=>s.variations[e]));await ks.post("/admin/content-engine/ideator/save",{variations:e,topic:s.topic,materialsResearch:i||void 0}),Vo.success("Saved ".concat(e.length," to the pipeline")),o(null),u(new Set)}catch(Ps){Vo.error(BN(Ps,"Couldn't save"))}},disabled:!d.size,style:{marginTop:10},children:["Save ",d.size||""," picked to pipeline"]})]})]})}function QN(e){let{rows:t,cols:n}=e;return null!==t&&void 0!==t&&t.length?(0,Xo.jsxs)("table",{className:"ce-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsx)("tr",{children:n.map((e=>(0,Xo.jsx)("th",{children:e},e)))})}),(0,Xo.jsx)("tbody",{children:t.map(((e,t)=>(0,Xo.jsxs)("tr",{children:[(0,Xo.jsxs)("td",{children:[e.name,e.smallSample&&(0,Xo.jsx)("span",{className:"ce-tag",title:"Fewer than 3 posts \u2014 directional, not proven",children:"small n"})]}),(0,Xo.jsx)("td",{children:MN(e.videos)}),(0,Xo.jsx)("td",{children:_N(e.avgViews)}),(0,Xo.jsxs)("td",{children:[e.outlierRate,"%"]})]},t)))})]}):(0,Xo.jsx)("div",{className:"muted",children:"No data yet."})}function ZN(){var e,t,n;const[r,i]=(0,$.useState)(null),[a,s]=(0,$.useState)(!0),o=(0,$.useCallback)((()=>{s(!0),ks.get("/admin/content-engine/performance-brief").then((e=>i(e.data))).catch((e=>Vo.error(BN(e,"Failed to load")))).finally((()=>s(!1)))}),[]);if((0,$.useEffect)(o,[o]),a)return(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Crunching your Instagram numbers\u2026"});if(!r||r.empty)return(0,Xo.jsx)("div",{className:"admindash-empty",children:"Not enough analyzed posts yet \u2014 analyze some Reels in the Instagram tab first."});const l=r.scripterBrief;return(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"admindash-grid",children:[(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:MN(r.overview.totalPosts)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Posts"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:_N(r.overview.avgViews)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Avg views"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsxs)("div",{className:"admindash-stat-value",children:[r.overview.outlierRate,"%"]}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Outlier rate"})]}),(0,Xo.jsxs)("div",{className:"admindash-stat",children:[(0,Xo.jsx)("div",{className:"admindash-stat-value",children:MN(r.analyzedPosts)}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:"Analyzed"})]})]}),(0,Xo.jsxs)("div",{className:"ce-panel",children:[(0,Xo.jsxs)("div",{className:"ce-panel-title",children:["Scripter brief ",(0,Xo.jsx)("span",{className:"muted",children:"\u2014 feeds Ideator/Scripter automatically"})]}),l.note&&(0,Xo.jsx)("div",{className:"igc-banner",children:l.note}),(0,Xo.jsxs)("ul",{className:"ce-brief-list",children:[l.bestHookStructure&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Best hook structure:"})," ",l.bestHookStructure.name," (",l.bestHookStructure.outlierRate,"% outlier rate, ",_N(l.bestHookStructure.avgVie
2ws)," avg)"]}),l.worstHookStructure&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Worst hook structure:"})," ",l.worstHookStructure.name," (",l.worstHookStructure.outlierRate,"%)"]}),l.bestDuration&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Best duration:"})," ",l.bestDuration.bucket," (",l.bestDuration.outlierRate,"%)"]}),l.bestVisualFormat&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Best visual format:"})," ",l.bestVisualFormat.name]}),!(null===(e=l.bestTopics)||void 0===e||!e.length)&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Hot topics:"})," ",l.bestTopics.map((e=>e.name)).join(", ")]}),!(null===(t=l.deadTopics)||void 0===t||!t.length)&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Dead topics (stop making these):"})," ",l.deadTopics.map((e=>e.name)).join(", ")]}),!(null===(n=l.recurringTextHookWords)||void 0===n||!n.length)&&(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("b",{children:"Recurring text-hook words:"})," ",l.recurringTextHookWords.join(", ")]})]})]}),(0,Xo.jsxs)("div",{className:"ce-two-col",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Hook structures"}),(0,Xo.jsx)(QN,{rows:r.hookStructures,cols:["Structure","Posts","Avg views","Outlier"]})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Visual formats"}),(0,Xo.jsx)(QN,{rows:r.visualFormats,cols:["Format","Posts","Avg views","Outlier"]})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Duration"}),(0,Xo.jsx)(QN,{rows:r.durationBuckets,cols:["Bucket","Posts","Avg views","Outlier"]})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Content structure"}),(0,Xo.jsx)(QN,{rows:r.contentStructures,cols:["Structure","Posts","Avg views","Outlier"]})]})]}),(0,Xo.jsx)("div",{className:"ce-panel-title",style:{marginTop:16},children:"Top hook frameworks"}),(0,Xo.jsx)("div",{className:"ce-hooklist",children:r.top20.slice(0,10).map((e=>(0,Xo.jsxs)("div",{className:"ce-hookrow",children:[(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsxs)("p",{children:['"',e.spokenHook,'"']}),e.framework&&(0,Xo.jsx)("div",{className:"muted ce-hook-fw",children:e.framework})]}),(0,Xo.jsxs)("div",{className:"ce-hook-meta",children:[(0,Xo.jsx)("span",{className:"igc-badge",children:e.hookStructure||"\u2014"}),(0,Xo.jsxs)("span",{className:"muted",children:[_N(e.views)," views \xb7 ",e.outlierScore,"\xd7"]})]}),(0,Xo.jsx)("a",{className:"igc-chip",href:e.url,target:"_blank",rel:"noreferrer",children:"View \u2197"})]},e.mediaId)))})]})}const $N=e=>{if(!e)return null;const t=Math.floor((Date.now()-new Date(e).getTime())/36e5);return t<1?"just now":t<24?"".concat(t,"h ago"):"".concat(Math.floor(t/24),"d ago")};function eP(e){let{job:t,label:n}=e;if(null===t||void 0===t||!t.total)return null;const r=t.total?Math.round((t.done+t.failed)/t.total*100):0;return(0,Xo.jsxs)("div",{className:"ce-panel ".concat(t.running?"":"ce-panel--done"),style:{marginTop:10},children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:t.running?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin"}),n," ",t.current?"@".concat(t.current):""," \u2014 ",t.done+t.failed,"/",t.total]}):"".concat(n," finished \u2014 ").concat(t.done," done").concat(t.failed?", ".concat(t.failed," failed"):"")}),t.running&&(0,Xo.jsx)("div",{className:"igc-bar",style:{marginBottom:10},children:(0,Xo.jsx)("div",{className:"igc-bar-fill igc-bar-fill--live igc-bar-fill--run",style:{width:"".concat(Math.max(6,r),"%")}})}),(0,Xo.jsx)("div",{className:"igc-log",children:(t.log||[]).map(((e,t)=>(0,Xo.jsxs)("div",{className:"igc-log-line igc-log--".concat(e.level||"info"),children:[(0,Xo.jsx)("span",{className:"igc-log-t",children:new Date(e.t).toLocaleTimeString([],{hour12:!1})}),e.msg]},t)))})]})}function tP(e){let{onScript:t}=e;const[n,r]=(0,$.useState)(null),[i,a]=(0,$.useState)(!1),[s,o]=(0,$.useState)(""),[l,c]=(0,$.useState)(null),[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(null),[m,f]=(0,$.useState)(null),g=(0,$.useCallback)((()=>{ks.get("/admin/content-engine/competitors").then((e=>{r(e.data.competitors),a(e.data.apifyConfigured)})).catch((()=>r([]))),ks.get("/admin/content-engine/competitors/analysis").then((e=>c(e.data))).catch((()=>c({empty:!0})))}),[]);(0,$.useEffect)(g,[g]),(0,$.useEffect)((()=>{ks.get("/admin/content-engine/competitors/scrape/status").then((e=>u(e.data))).catch((()=>{})),ks.get("/admin/content-engine/competitors/analyze-posts/status").then((e=>p(e.data))).catch((()=>{}))}),[]),(0,$.useEffect)((()=>
2{if((null===d||void 0===d||!d.running)&&(null===h||void 0===h||!h.running))return;const e=setInterval((async()=>{if(null!==d&&void 0!==d&&d.running){const e=(await ks.get("/admin/content-engine/competitors/scrape/status")).data;u(e),e.running||g()}if(null!==h&&void 0!==h&&h.running){const e=(await ks.get("/admin/content-engine/competitors/analyze-posts/status")).data;p(e),e.running||g()}}),2e3);return()=>clearInterval(e)}),[null===d||void 0===d?void 0:d.running,null===h||void 0===h?void 0:h.running,g]);const v=async()=>{if(s.trim())try{await ks.post("/admin/content-engine/competitors",{handle:s.trim()}),o(""),g()}catch(Ps){Vo.error(BN(Ps,"Couldn't add competitor"))}},b=!(null===d||void 0===d||!d.running),y=!(null===h||void 0===h||!h.running);return n?(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input",placeholder:"@competitor_handle",value:s,onChange:e=>o(e.target.value),onKeyDown:e=>"Enter"===e.key&&v()}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:v,children:"+ Track"}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(b?"igc-btn-busy":""),onClick:async()=>{try{const e=(await ks.post("/admin/content-engine/competitors/scrape")).data;if(!e.started)return Vo(0===e.total?"No active competitors to scrape":"Nothing to do");u({running:!0,total:e.total,done:0,failed:0,log:[]}),Vo("Scraping ".concat(e.total," competitor(s) \u2014 this runs in the background, feel free to switch tabs"),{icon:"\ud83d\udd0e"})}catch(Ps){var e,t;if(409===(null===(e=Ps.response)||void 0===e?void 0:e.status)&&null!==(t=Ps.response.data)&&void 0!==t&&t.status)return u(Ps.response.data.status),Vo("A scrape is already running");Vo.error(BN(Ps,"Scrape failed"))}},disabled:b||!i,title:i?"":"Needs APIFY_API_TOKEN on the server (apify.com has a free tier)",children:b?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Scraping\u2026"]}):"Scrape all"}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(y?"igc-btn-busy":""),onClick:async()=>{try{const e=(await ks.post("/admin/content-engine/competitors/analyze-posts",{limit:10})).data;if(!e.started)return Vo("Nothing to analyze");p({running:!0,total:e.total,done:0,failed:0,log:[]}),Vo("Analyzing ".concat(e.total," post(s) \u2014 this runs in the background"),{icon:"\ud83c\udfac"})}catch(Ps){var e,t;if(409===(null===(e=Ps.response)||void 0===e?void 0:e.status)&&null!==(t=Ps.response.data)&&void 0!==t&&t.status)return p(Ps.response.data.status),Vo("An analysis is already running");Vo.error(BN(Ps,"Analyze failed"))}},disabled:y,children:y?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}),"Analyzing\u2026"]}):"Analyze new posts"})]}),!i&&(0,Xo.jsxs)("div",{className:"igc-banner",children:["Scraping needs an Apify account (apify.com, has a free tier) and ",(0,Xo.jsx)("code",{children:"APIFY_API_TOKEN"})," set on the server. Tracking + analysis views work either way once you have data."]}),(0,Xo.jsx)(eP,{job:d,label:"Scraping"}),(0,Xo.jsx)(eP,{job:h,label:"Analyzing"}),(0,Xo.jsx)("div",{className:"ce-list",style:{marginTop:10},children:0===n.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"No competitors tracked yet."}):n.map((e=>(0,Xo.jsx)("div",{children:(0,Xo.jsxs)("div",{className:"ce-card ce-card--static",children:[(0,Xo.jsxs)("div",{className:"ce-card-main",children:[(0,Xo.jsxs)("div",{className:"ce-card-title",children:["@",e.handle]}),(0,Xo.jsxs)("div",{className:"muted",children:[e.totalVideos>0?(0,Xo.jsxs)(Xo.Fragment,{children:[_N(e.avgViews)," avg views \xb7 ",e.totalVideos," posts",e.category?" \xb7 ".concat(e.category):""]}):"Not scraped yet",e.lastScrapedAt&&(0,Xo.jsxs)(Xo.Fragment,{children:[" \xb7 scraped ",$N(e.lastScrapedAt)]})]}),e.lastScrapeError&&(0,Xo.jsxs)("div",{className:"ce-scrape-err",children:["\u26a0 ",e.lastScrapeError]})]}),(0,Xo.jsx)("button",{className:"igc-chip",onClick:()=>(async e=>{try{await ks.patch("/admin/content-engine/competitors/".concat(e._id),{isActive:!e.isActive}),g()}catch(Ps){Vo.error(BN(Ps,"Failed"))}})(e),children:e.isActive?"Active":"Paused"}),(0,Xo.jsx)("button",{className:"ce-x",onClick:()=>(async e=>{try{await ks.delete("/admin/content-engine/competitors/".concat(e)),g()}catch(Ps){Vo.error(BN(Ps,"Failed"))}})(e._id),children:"Remove"})]})},e._id)))}),l&&!l.empty&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"ce-panel-title",style:{marginTop:18},children:"You vs competitors"}),(0,Xo.jsxs)("table",{className:"ce-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"Handle"}),(0,Xo.jsx)("th",{children:"Posts"}),(0,Xo.jsx)("th",{children:"Avg views"}),(0,Xo.jsx)("th",{children:"Outlier rate"})]})}),(0,Xo.jsxs)("tbody",{children:[(0,Xo.jsxs)("tr",{className:"ce-you-row",children:[(0,Xo.jsx)("td",{children:"You"}),(0,Xo.jsx)("td",{children:MN(l.you.videos)}),(0,Xo.jsx)("td",{children:_N(l.you.avgViews)}),(0,Xo.jsxs)("td",{children:[l.you.outlierRate,"%"]})]}),l.overview.map((e=>(0,Xo.jsxs)("tr",{children:[(0,Xo.jsxs)("td",{children:["@",e.handle]}),(0,Xo.jsx)("td",{children:MN(e.videos)}),(0,Xo.jsx)("td",{children:_N(e.avgViews)}),(0,Xo.jsxs)("td",{children:[e.outlierRate,"%"]})]},e.handle)))]})]}),l.perCompetitor.map((e=>{var n,r,i,a;return e.topHooks.length>0&&(0,Xo.jsxs)("div",{style:{marginTop:14},children:[(0,Xo.jsxs)("div",{className:"ce-panel-title",children:["@",e.handle," ",(0,Xo.jsxs)("span",{className:"muted",children:["\u2014 ",_N(e.avgViews)," avg views"]})]}),(!(null===(n=e.bestStructures)||void 0===n||!n.length)||!(null===(r=e.bestTopics)||void 0===r||!r.length))&&(0,Xo.jsxs)("div",{className:"muted ce-best-line",children:[!(null===(i=e.bestStructures)||void 0===i||!i.length)&&(0,Xo.jsxs)(Xo.Fragment,{children:["Best hook structures: ",e.bestStructures.slice(0,3).map((e=>"".concat(e.name," (").concat(_N(e.avgViews)," avg)"))).join(", "),(0,Xo.jsx)("br",{})]}),!(null===(a=e.bestTopics)||void 0===a||!a.length)&&(0,Xo.jsxs)(Xo.Fragment,{children:["Best topics: ",e.bestTopics.slice(0,3).map((e=>
2e.name)).join(", ")]})]}),(0,Xo.jsx)("div",{className:"ce-hooklist",children:e.topHooks.map(((e,n)=>(0,Xo.jsxs)("div",{className:"ce-hookrow",children:[(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsxs)("p",{children:['"',e.spokenHook,'"']}),e.hookFramework&&(0,Xo.jsx)("div",{className:"muted ce-hook-fw",children:e.hookFramework})]}),(0,Xo.jsxs)("div",{className:"ce-hook-meta",children:[(0,Xo.jsx)("span",{className:"igc-badge",children:e.hookStructure||"\u2014"}),(0,Xo.jsxs)("span",{className:"muted",children:[_N(e.views)," views \xb7 ",e.outlierScore,"\xd7"]})]}),e.url&&(0,Xo.jsx)("a",{className:"igc-chip",href:e.url,target:"_blank",rel:"noreferrer",children:"View \u2197"}),t&&(0,Xo.jsx)("button",{className:"igc-chip",onClick:()=>(async(e,n)=>{f(n);try{const n=(await ks.post("/admin/content-engine/hooks/adapt-for-clipbait",{hook:e.spokenHook,framework:e.hookFramework||""})).data;t({topic:n.topic,hook:n.hook,framework:n.framework||"",research:n.research})}catch(Ps){Vo.error(BN(Ps,"Couldn't adapt this hook"))}f(null)})(e,n),disabled:m===n,children:m===n?"Adapting\u2026":"Script it for Clipbait \u2192"})]},n)))})]},e.handle)}))]}),(null===l||void 0===l?void 0:l.empty)&&(0,Xo.jsx)("div",{className:"igc-banner",children:l.note})]}):(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})}
2function nP(e){let{command:t,result:n}=e;if("help"===t)return(0,Xo.jsx)("div",{className:"ce-hooklist",children:n.commands.map((e=>(0,Xo.jsx)("div",{className:"ce-hookrow",children:(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsx)("p",{children:(0,Xo.jsx)("code",{children:e.usage})}),(0,Xo.jsx)("div",{className:"muted ce-hook-fw",children:e.desc})]})},e.name)))});if("hooks"===t)return(0,Xo.jsx)("div",{className:"ce-hooklist",children:n.hooks.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ce-hookrow",children:[(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsxs)("p",{children:['"',e.hook,'"']}),e.framework&&(0,Xo.jsx)("div",{className:"muted ce-hook-fw",children:e.framework})]}),(0,Xo.jsxs)("div",{className:"ce-hook-meta",children:[(0,Xo.jsx)("span",{className:"igc-badge",children:e.source}),null!=e.originalViews&&(0,Xo.jsxs)("span",{className:"muted",children:[_N(e.originalViews)," original views"]})]})]},t)))});if("script"===t||"clipbait"===t)return(0,Xo.jsx)(qN,{result:n});if("ideate"===t)return(0,Xo.jsx)("div",{className:"ce-hooklist",children:n.variations.map(((e,t)=>(0,Xo.jsx)("div",{className:"ce-hookrow",children:(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsx)("div",{className:"ce-card-title",children:e.title}),(0,Xo.jsxs)("div",{className:"muted",children:[e.framing," \xb7 ",e.contentType," \xb7 ",e.format," \xb7 ~",e.durationSeconds,"s"]}),(0,Xo.jsx)("p",{children:e.description})]})},t)))});var r;if("research"===t)return null!==(r=n.topics)&&void 0!==r&&r.length?(0,Xo.jsx)("div",{className:"ce-hooklist",children:n.topics.map(((e,t)=>(0,Xo.jsx)("div",{className:"ce-hookrow",children:(0,Xo.jsxs)("div",{className:"ce-hook-text",children:[(0,Xo.jsx)("div",{className:"ce-card-title",children:e.title}),(0,Xo.jsx)("p",{children:e.body})]})},t)))}):(0,Xo.jsx)("div",{className:"muted",children:"No trending topics found."});if("brief"===t){var i,a,s;const e=n.overview,t=n.rankings;return(0,Xo.jsxs)("div",{className:"muted",children:[e.totalPosts," posts analyzed \xb7 ",_N(e.avgViews)," avg views \xb7 ",e.outlierRate,"% outlier rate",(0,Xo.jsx)("br",{}),t.bestHookStructure&&(0,Xo.jsxs)(Xo.Fragment,{children:["Best hook structure: ",t.bestHookStructure.name," (",t.bestHookStructure.outlierRate,"% outlier rate)",(0,Xo.jsx)("br",{})]}),(null===(i=t.bestTopics)||void 0===i?void 0:i.length)&&(0,Xo.jsxs)(Xo.Fragment,{children:["Best topics: ",null===(a=t.bestTopics)||void 0===a||null===(s=a.map)||void 0===s?void 0:s.call(a,(e=>e.name)).join(", ")]})]})}return"competitors"===t?(0,Xo.jsxs)("table",{className:"ce-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"Handle"}),(0,Xo.jsx)("th",{children:"Posts"}),(0,Xo.jsx)("th",{children:"Avg views"}),(0,Xo.jsx)("th",{children:"Outlier rate"})]})}),(0,Xo.jsxs)("tbody",{children:[(0,Xo.jsxs)("tr",{className:"ce-you-row",children:[(0,Xo.jsx)("td",{children:"You"}),(0,Xo.jsx)("td",{children:MN(n.you.videos)}),(0,Xo.jsx)("td",{children:_N(n.you.avgViews)}),(0,Xo.jsxs)("td",{children:[n.you.outlierRate,"%"]})]}),n.overview.map((e=>(0,Xo.jsxs)("tr",{children:[(0,Xo.jsxs)("td",{children:["@",e.handle]}),(0,Xo.jsx)("td",{children:MN(e.videos)}),(0,Xo.jsx)("td",{children:_N(e.avgViews)}),(0,Xo.jsxs)("td",{children:[e.outlierRate,"%"]})]},e.handle)))]})]}):(0,Xo.jsx)("pre",{className:"ce-fc-wrap",style:{whiteSpace:"pre-wrap"},children:JSON.stringify(n,null,2)})}function rP(){const[e,t]=(0,$.useState)(""),[n,r]=(0,$.useState)([]),[i,a]=(0,$.useState)(!1),[s,l]=(0,$.useState)(null);(0,$.useEffect)((()=>{ks.post("/admin/content-engine/assistant",{input:"/help"}).then((e=>l(e.data.result.commands))).catch((()=>{}))}),[]);const c=async()=>{const n=e.trim();if(n&&!i){a(!0),t("");try{const e=(await ks.post("/admin/content-engine/assistant",{input:n})).data;r((t=>[o({input:n},e),...t]))}catch(Ps){r((t=>[{input:n,type:"error",error:BN(Ps,"Something went wrong")},...t]))}a(!1)}};return(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"ce-panel",children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:"Prompt \u2014 free text or a / command"}),s&&(0,Xo.jsx)("div",{className:"muted ce-best-line",children:s.map((e=>(0,Xo.jsx)("code",{style:{marginRight:10},children:e.name},e.name)))}),(0,Xo.jsxs)("div",{className:"ce-row-flex",children:[(0,Xo.jsx)("input",{className:"ce-input ce-input--full",placeholder:"Ask for ideas, or type a / command (e.g. /hooks growing on Twitch)",value:e,onCh
2ange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&c()}),(0,Xo.jsx)("button",{className:"admindash-refresh ".concat(i?"igc-btn-busy":""),onClick:c,disabled:i||!e.trim(),children:i?(0,Xo.jsx)("span",{className:"igc-spin igc-spin--light"}):"Run"})]})]}),n.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ce-panel",style:{marginTop:10},children:[(0,Xo.jsx)("div",{className:"ce-panel-title",children:e.input}),"error"===e.type?(0,Xo.jsx)("div",{className:"igc-banner",children:e.error}):"chat"===e.type?(0,Xo.jsx)("p",{children:e.reply}):(0,Xo.jsx)(nP,{command:e.command,result:e.result})]},t)))]})}const iP="admindash.tab",aP=["overview","analytics","users","health","failed","onboarding","distribution","affiliates","clippers","clip-review","instagram","content-engine"];function sP(){try{const e=localStorage.getItem(iP);return aP.includes(e)?e:"overview"}catch(e){return"overview"}}function oP(e){if(!e)return"\u2014";const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/1e3);if(n<60)return"".concat(n,"s ago");const r=Math.floor(n/60);if(r<60)return"".concat(r,"m ago");const i=Math.floor(r/60);if(i<24)return"".concat(i,"h ago");const a=Math.floor(i/24);return"".concat(a,"d ago")}function lP(e){return null==e?"\u2014":"$".concat((e/100).toFixed(2))}function cP(e){let{geo:t}=e;const n=function(e){return e&&e.country?[e.city,e.country].filter(Boolean).join(", "):null}(t);return n?(0,Xo.jsxs)("span",{title:[t.city,t.region,t.country].filter(Boolean).join(", "),children:[(r=t.country,r&&2===r.length?String.fromCodePoint(...r.toUpperCase().split("").map((e=>127397+e.charCodeAt(0)))):"")," ",n]}):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"});var r}function dP(e){return new Date(e+"T00:00:00Z").toLocaleDateString(void 0,{weekday:"short"})}const uP=["Every clip generated is a creator you helped go viral.","Ship something. Tell someone. Repeat.","Your competitors are sleeping. You're shipping.","Compound the smallest improvement, daily.","The next 1,000 users are decided this week.","Distribution > Product. Ship the distribution.","One DM a day to a creator. That's the whole strategy."];function hP(){const e=Math.floor(Date.now()/864e5);return uP[e%uP.length]}function pP(){var e,t,n;const{user:r}=(0,$.useContext)(Qo),i=Vt(),[a,s]=(0,$.useState)(null),[l,c]=(0,$.useState)(null),[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(!0),[m,f]=(0,$.useState)(""),[g,v]=(0,$.useState)(!1),[b,y]=(0,$.useState)(sP),[x,S]=(0,$.useState)(!1);async function k(){p(!0);try{const[e,t,n]=await Promise.all([ks.get("/admin/analytics/overview"),ks.get("/admin/analytics/health").catch((()=>({data:null}))),ks.get("/admin/analytics/ga").catch((()=>({data:{configured:!1}})))]);s(e.data),c(t.data),u(n.data)}catch(K6){var e,t,n;if(403===(null===(e=K6.response)||void 0===e?void 0:e.status))return Vo.error("Admin only"),void i("/");Vo.error((null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||"Failed to load analytics")}finally{p(!1)}}if((0,$.useEffect)((()=>{document.title="Clipbait \u2014 Admin Dashboard"}),[]),(0,$.useEffect)((()=>{r&&k()}),[r]),h||!a)return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"admindash-page",children:(0,Xo.jsxs)("div",{className:"admindash-container",children:[(0,Xo.jsx)("h1",{className:"admindash-title",children:"Admin Dashboard"}),(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})]})})]});const{totals:w,recentlyActive:T=[],recentSignups:C,weeklySignups:E,weeklyClips:j,referralSources:A,foundVia:N=[],revenue:P}=a,R=[{id:"overview",label:"Overview",icon:(0,Xo.jsx)(FA,{})},{id:"analytics",label:"Analytics",icon:(0,Xo.jsx)(kA,{})},{id:"users",label:"Users",icon:(0,Xo.jsx)(JA,{})},{id:"health",label:"Health",icon:(0,Xo.jsx)(yA,{})},{id:"failed",label:"Failed",icon:(0,Xo.jsx)(xA,{})},{id:"onboarding",label:"Onboarding",icon:(0,Xo.jsx)(MA,{})},{id:"distribution",label:"Distribution",icon:(0,Xo.jsx)(HA,{})},{id:"affiliates",label:"Affiliates",icon:(0,Xo.jsx)(KA,{})},{id:"clippers",label:"Clippers",icon:(0,Xo.jsx)(_A,{})},{id:"clip-review",label:"Clip Review",icon:(0,Xo.jsx)(CA,{})},{id:"instagram",label:"Instagram",icon:(0,Xo.jsx)(UA,{})},{id:"content-engine",label:"Content Engine",icon:(0,Xo.jsx)(eN,{})}],L=e=>({display:b===e?void 0:"none"}),I=Math.max(1,...E.map((e=>e.count))),D=Math.max(1,...(j||[]).map((e=>e.clips)));return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{onUpgrade:()=>S(!0)}),(0,Xo.jsx)(oA,{isOpen:x,onClose:()=>S(!1),currentPlan:(null===w||void 0===w?void 0:w.plan)||null}),(0,Xo.jsx)("div",{className:"admindash-page",children:(0,Xo.jsxs)("div",{className:"admindash-container",children:[(0,Xo.jsxs)("div",{className:"admindash-header admindash-fade-in",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h1",{className:"admindash-title",children:"Founder dashboard"}),(0,Xo.jsx)("div",{className:"admindash-motivation",children:hP()})]}),(0,Xo.jsxs)("button",{className:"admindash-refresh",onClick:k,children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("polyline",{points:"23 4 23 10 17 10"}),(0,Xo.jsx)("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),"Refresh"]})]}),(0,Xo.jsx)("div",{className:"admindash-tabs admindash-fade-in",children:R.map((e=>(0,Xo.jsxs)("button",{className:"admindash-tab ".concat(b===e.id?"active":""),onClick:()=>(e=>{y(e);try{localStorage.setItem(iP,e)}catch(t){}})(e.id),children:[(0,Xo.jsx)("span",{className:"admindash-tab-icon",children:e.icon}),e.label]},e.id)))}),"overview"===b&&(0,Xo.jsx)(oN,{}),(0,Xo.jsxs)("div",{className:"admindash-grid admindash-fade-in",style:L("overview"),children:[(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(JA,{}),label:"Total users",value:w.totalUsers,pulse:!0}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(XA,{}),label:"New today",value:w.newToday,accent:"green",pulse:w.newToday>0}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(YA,{}),label:"New this week",value:w.newThisWeek,accent:"green"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(LA,{}),label:"Paying users",value:w.payingUsers,accent:"purple"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(IA,{}),label:"Revenue today",value:P.today?lP(P.today.totalCents):P.stripeConfigured?"$0.00":"\u2014",accent:"gold",pulse:P.today&&P.today.totalCents>0}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(IA,{}),label:"Revenue this week",value:P.week?lP(P.week.totalCents):P.stripeConfigured?"$0.00":"\u2014",accent:"gold"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(YA,{}),label:"MRR \u2014 live, app only".concat(null!=(null===(e=P.mrr)||void 0===e?void 0:e.activeCount)?" (".concat(P.mrr.activeCount," subs)"):""),value:P.mrr?lP(P.mrr.activeCents):P.stripeConfigured?"$0.00":"\u2014",accent:"purple"})]}),P.mrr&&(P.mrr.atRiskCents>0||P.mrr.agencyCents>0)&&(0,Xo.jsxs)("div",{className:"muted admindash-fade-in",style:o(o({},L("overview")),{},{fontSize:12,marginTop:-6,marginBottom:10}),children:[P.mrr.atRiskCents>0&&(0,Xo.jsxs)(Xo.Fragment,{children:[lP(P.mrr.atRiskCents),"/mo at risk (",P.mrr.atRiskCount," past-due subscription",1===P.mrr.atRiskCount?"":"s","). "]}),P.mrr.agencyCents>0&&(0,Xo.jsxs)(Xo.Fragment,{children:[lP(P.mrr.agencyCents),"/mo excluded as agency revenue (",P.mrr.agencyCount," subscription",1===P.mrr.agencyCount?"":"s","), not app MRR."]})]}),(0,Xo.jsxs)("div",{className:"admindash-grid admindash-fade-in",style:L("overview"),children:[(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(_A,{}),label:"Clips generated today",value:w.clipsToday,accent:"orange",pulse:w.clipsToday>0}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(QA,{}),label:"Clips this week",value:w.clipsThisWeek,accent:"orange"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(RA,{}),label:"Jobs today",value:w.jobsToday,accent:"blue"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(SA,{}),label:"Jobs all-time",value:w.jobsTotal,accent:"blue"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(WA,{}),label:"Clippers",value:w.clippers,accent:"cyan"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(GA,{}),label:"Streamers",value:w.streamers,accent:"cyan"}),(0,Xo.jsx)(xP,{icon:(0,Xo.jsx)(wA,{}),label:"Clippers wanting paid opportunities",value:w.paidClippers||0,accent:"gold",pulse:(w.paidClippers||0)>0})]}),l&&(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",style:L("health"),children:[(0,Xo.jsx)("h2",{children:"API Health"}),(0,Xo.jsxs)("div",{className:"admindash-health",children:[(0,Xo.jsx)(kP,{name:"RunPod",status:l.runpod,detail:l.runpod.ok?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("b",{children:["$",(l.runpod.clientBalance||0).toFixed(2)]})," balance"]}),(0,Xo.jsxs)("div",{className:"muted",children:["$",(l.runpod.currentSpendPerHr||0).toFixed(4),"/hr current spend"]}),l.runpod.spendLimit?(0,Xo.jsxs)("div",{className:"muted",children:["$",l.runpod.spendLimit," limit"]}):null]}):null,configMissingMsg:"Set RUNPOD_API_KEY env var",dashboardUrl:"https://www.console.runpod.io/user/billing"}),(0,Xo.jsx)(kP,{name:"AssemblyAI",status:l.assemblyai,detail:(0,Xo.jsx)("div",{className:"muted",children:"No live balance API \u2014 open dashboard to check credits"}),dashboardUrl:l.assemblyai.dashboardUrl}),(0,Xo.jsx)(kP,{name:"Gemini",status:l.gemini,detail:(0,Xo.jsx)("div",{className:"muted",children:"No live balance API \u2014 open dashboard to check usage"}),dashboardUrl:l.gemini.dashboardUrl})]})]}),(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",style:L("analytics"),children:[(0,Xo.jsxs)("h2",{children:["Marketing site traffic",(null===d||void 0===d?void 0:d.configured)&&(0,Xo.jsxs)("span",{className:"muted",style:{fontSize:13,fontWeight:400,marginLeft:10},children:["last ",d.days," days","number"===typeof d.activeNow&&(0,Xo.jsxs)("span",{style:{marginLeft:12,color:"#34d399"},title:"Unique users active on the site in the last 30 minutes (GA4 realtime) \u2014 not concurrent viewers",children:["\u25cf ",d.activeNow," active in last 30 min"]})]})]}),null!==d&&void 0!==d&&d.configured?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"admindash-grid",children:[(0,Xo.jsx)(xP,{label:"Visitors",value:d.totals.activeUsers,pulse:d.totals.activeUsers>0}),(0,Xo.jsx)(xP,{label:"New visitors",value:d.totals.newUsers,accent:"green"}),(0,Xo.jsx)(xP,{label:"Sessions",value:d.totals.sessions,accent:"blue"}),(0,Xo.jsx)(xP,{label:"Page views",value:d.totals.pageViews,accent:"purple"})]}),(null===(t=d.byDay)||void 0===t?void 0:t.length)>0&&(()=>{const e=e=>
2e&&8===e.length?"".concat(Number(e.slice(4,6)),"/").concat(Number(e.slice(6,8))):e,t=d.byDay,n=t.length,r=Math.max(1,...t.map((e=>e.activeUsers))),i=t.reduce(((e,t)=>t.activeUsers>e.activeUsers?t:e),t[0]),a=1e3,s=160,o=e=>n<=1?500:6+e/(n-1)*988,l=e=>154-e/r*148,c=t.map(((e,t)=>"".concat(o(t),",").concat(l(e.activeUsers)))).join(" "),u="".concat(o(0),",").concat(s," ").concat(c," ").concat(o(n-1),",").concat(s);return(0,Xo.jsxs)("div",{style:{marginTop:18},children:[(0,Xo.jsxs)("div",{className:"muted",style:{marginBottom:8,display:"flex",justifyContent:"space-between"},children:[(0,Xo.jsxs)("span",{children:["Visitors per day \xb7 last ",d.days," days"]}),(0,Xo.jsxs)("span",{children:["peak ",i.activeUsers," on ",e(i.date)]})]}),(0,Xo.jsxs)("svg",{viewBox:"0 0 ".concat(a," ").concat(s),preserveAspectRatio:"none",style:{width:"100%",height:160,display:"block"},children:[(0,Xo.jsx)("defs",{children:(0,Xo.jsxs)("linearGradient",{id:"gaArea",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,Xo.jsx)("stop",{offset:"0%",stopColor:"#ff6a00",stopOpacity:"0.40"}),(0,Xo.jsx)("stop",{offset:"100%",stopColor:"#ff6a00",stopOpacity:"0"})]})}),(0,Xo.jsx)("polygon",{points:u,fill:"url(#gaArea)"}),(0,Xo.jsx)("polyline",{points:c,fill:"none",stroke:"#ff6a00",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),t.map(((t,n)=>(0,Xo.jsx)("circle",{cx:o(n),cy:l(t.activeUsers),r:"3.5",fill:"#ff6a00",vectorEffect:"non-scaling-stroke",children:(0,Xo.jsx)("title",{children:"".concat(e(t.date),": ").concat(t.activeUsers," visitors \xb7 ").concat(t.sessions," sessions")})},t.date)))]}),(0,Xo.jsxs)("div",{className:"muted",style:{display:"flex",justifyContent:"space-between",marginTop:4,fontSize:12},children:[(0,Xo.jsx)("span",{children:e(t[0].date)}),n>2&&(0,Xo.jsx)("span",{children:e(t[Math.floor((n-1)/2)].date)}),(0,Xo.jsx)("span",{children:e(t[n-1].date)})]})]})})(),(null===(n=d.byPlatform)||void 0===n?void 0:n.length)>0&&(0,Xo.jsxs)("div",{style:{marginTop:18},children:[(0,Xo.jsx)("div",{className:"muted",style:{marginBottom:8},children:"Traffic by platform"}),d.byPlatform.map((e=>(0,Xo.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",padding:"6px 0",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[(0,Xo.jsx)("span",{children:e.platform}),(0,Xo.jsxs)("span",{className:"muted",children:[e.users.toLocaleString()," visitors \xb7 ",e.sessions.toLocaleString()," sessions"]})]},e.platform)))]})]}):(0,Xo.jsxs)("div",{className:"admindash-empty",children:["Google Analytics isn't connected yet. Set ",(0,Xo.jsx)("code",{children:"GA4_PROPERTY_ID"})," and"," ",(0,Xo.jsx)("code",{children:"GA_SERVICE_ACCOUNT_JSON"})," on the API service and redeploy to see live visitor data here."]})]}),(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",style:L("health"),children:[(0,Xo.jsx)("h2",{children:"TikTok Events API"}),(0,Xo.jsxs)("div",{className:"muted",style:{marginBottom:12},children:["Fire a server-side ",(0,Xo.jsx)("b",{children:"CompletePayment"})," test event to confirm the Events API token works \u2014 no real charge. Paste a ",(0,Xo.jsx)("b",{children:"Test Event Code"})," from TikTok Events Manager \u2192 Test Events so it lands in the debugger (and isn't counted as live data). Leave blank to send a live event."]}),(0,Xo.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,Xo.jsx)("input",{type:"text",value:m,onChange:e=>f(e.target.value),placeholder:"TikTok test_event_code (optional)",style:{flex:"1 1 280px",padding:"10px 12px",borderRadius:8,border:"1px solid rgba(255,255,255,0.15)",background:"rgba(255,255,255,0.04)",color:"#fff"}}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:async function(){v(!0);try{var e,t;const r=await ks.post("/admin/analytics/tiktok-test",{testEventCode:m.trim()||void 0});if(null!==(e=r.data)&&void 0!==e&&e.ok)Vo.success(m.trim()?"Test event sent \u2014 check TikTok Test Events tab":"CompletePayment sent to TikTok \u2705");else if(!1===(null===(t=r.data)||void 0===t?void 0:t.configured))Vo.error(r.data.message||"TikTok env not configured");else{var n;Vo.error((null===(n=r.data)||void 0===n?void 0:n.error)||"TikTok rejected the event")}}catch(K6){var r,i;Vo.error((null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"Failed to send test event")}finally{v(!1)}},disabled:g,children:g?"Sending\u2026":"Send test event"})]})]}),(0,Xo.jsxs)("div",{className:"admindash-two-col",style:L("overview"),children:[(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("h2",{children:"Signups \u2014 last 7 days"}),(0,Xo.jsx)("div",{className:"admindash-chart",children:E.map((e=>{const t=e.count/I*100;return(0,Xo.jsxs)("div",{className:"admindash-chart-col",title:"".concat(e.date,": ").concat(e.count," signups"),children:[(0,Xo.jsx)("div",{className:"admindash-chart-bar",style:{height:"".concat(Math.max(2,t),"%")},children:(0,Xo.jsx)("span",{className:"admindash-chart-count",children:e.count})}),(0,Xo.jsx)("span",{className:"admindash-chart-label",children:dP
2(e.date)})]},e.date)}))})]}),(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("h2",{children:"Clips generated \u2014 last 7 days"}),(0,Xo.jsx)("div",{className:"admindash-chart",children:(j||[]).map((e=>{const t=e.clips/D*100;return(0,Xo.jsxs)("div",{className:"admindash-chart-col",title:"".concat(e.date,": ").concat(e.clips," clips"),children:[(0,Xo.jsx)("div",{className:"admindash-chart-bar admindash-chart-bar--orange",style:{height:"".concat(Math.max(2,t),"%")},children:(0,Xo.jsx)("span",{className:"admindash-chart-count",children:e.clips})}),(0,Xo.jsx)("span",{className:"admindash-chart-label",children:dP(e.date)})]},e.date)}))})]})]}),A&&A.length>0&&(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",style:L("analytics"),children:[(0,Xo.jsx)("h2",{children:"Top traffic sources"}),(0,Xo.jsx)("div",{className:"admindash-sources",children:A.map((e=>{const t=Math.max(1,...A.map((e=>e.count))),n=e.count/t*100;return(0,Xo.jsxs)("div",{className:"admindash-source-row",children:[(0,Xo.jsx)("span",{className:"admindash-source-label",children:e.source}),(0,Xo.jsx)("div",{className:"admindash-source-bar-track",children:(0,Xo.jsx)("div",{className:"admindash-source-bar-fill",style:{width:"".concat(n,"%")}})}),(0,Xo.jsx)("span",{className:"admindash-source-count",children:e.count})]},e.source)}))}),(0,Xo.jsxs)("div",{className:"admindash-note",children:["Tracked via the ",(0,Xo.jsx)("code",{children:"referralSource"})," field set at onboarding. Full page-view analytics (GA / Plausible) is a separate integration."]})]}),N&&N.length>0&&(()=>{const e={twitter:"X / Twitter",youtube:"YouTube",tiktok:"TikTok",instagram:"Instagram",google:"Google Search",friend:"Friend / Word of mouth",other:"Other"},t=Math.max(1,...N.map((e=>e.count))),n=N.reduce(((e,t)=>e+t.count),0);return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",style:L("analytics"),children:[(0,Xo.jsx)("h2",{children:"How users found us"}),(0,Xo.jsx)("div",{className:"admindash-sources",children:N.map((r=>{const i=r.count/t*100,a=n?Math.round(r.count/n*100):0;return(0,Xo.jsxs)("div",{className:"admindash-source-row",children:[(0,Xo.jsx)("span",{className:"admindash-source-label",children:e[r.source]||r.source}),(0,Xo.jsx)("div",{className:"admindash-source-bar-track",children:(0,Xo.jsx)("div",{className:"admindash-source-bar-fill",style:{width:"".concat(i,"%")}})}),(0,Xo.jsxs)("span",{className:"admindash-source-count",children:[r.count," \xb7 ",a,"%"]})]},r.source)}))}),(0,Xo.jsxs)("div",{className:"admindash-note",children:['Self-reported at onboarding ("How did you find Clipbait?"). ',n," answered."]})]})})(),(0,Xo.jsxs)("div",{className:"admindash-two-col",style:L("users"),children:[(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("h2",{children:"Recently active"}),0===T.length?(0,Xo.jsx)("div",{className:"admindash-empty-sm",children:"No activity data yet."}):(0,Xo.jsxs)("table",{className:"admindash-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"User"}),(0,Xo.jsx)("th",{children:"Type"}),(0,Xo.jsx)("th",{children:"Plan"}),(0,Xo.jsx)("th",{children:"Location"}),(0,Xo.jsx)("th",{children:"Last active"})]})}),(0,Xo.jsx)("tbody",{children:T.map((e=>{var t;return(0,Xo.jsxs)("tr",{className:"admindash-row-clickable",onClick:()=>i("/admin/users/".concat(e._id)),children:[(0,Xo.jsx)("td",{children:(0,Xo.jsx)(SP,{u:e})}),(0,Xo.jsx)("td",{children:null!==(t=e.onboarding)&&void 0!==t&&t.userType?(0,Xo.jsxs)("span",{className:"type-chip-wrap",children:[(0,Xo.jsx)("span",{className:"type-chip",children:e.onboarding.userType}),"clipper"===e.onboarding.userType&&e.onboarding.wantsOpportunities&&(0,Xo.jsx)("span",{className:"paid-clipper-chip",title:"Wants paid clipping opportunities",children:"$"})]}):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsx)("td",{children:e.plan&&"none"!==e.plan?(0,Xo.jsx)("span",{className:"plan-chip",children:e.plan}):(0,Xo.jsx)("span",{className:"muted",children:"free"})}),(0,Xo.jsx)("td",{children:(0,Xo.jsx)(cP,{geo:e.geo})}),(0,Xo.jsx)("td",{children:oP(e.lastActiveAt||e.lastSignInAt)})]},e._id)}))})]})]}),(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsx)("h2",{children:"Recent signups"}),(0,Xo.jsxs)("table",{className:"admindash-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"User"}),(0,Xo.jsx)("th",{children:"Type"}),(0,Xo.jsx)("th",{children:"Plan"}),(0,Xo.jsx)("th",{children:"Location"}),(0,Xo.jsx)("th",{children:"Joined"})]})}),(0,Xo.jsx)("tbody",{children:C.map((e=>{var t;return(0,Xo.jsxs)("tr",{className:"admindash-row-clickable",onClick:()=>i("/admin/users/".concat(e._id)),title:"Click to view details",children:[(0,Xo.jsx)("td",{children:(0,Xo.jsx)(SP,{u:e})}),(0,Xo.jsx)("td",{children:null!==(t=e.onboarding)&&void 0!==t&&t.userType?(0,Xo.jsx)("span",{className:"type-chip",children:e.onboarding.userType}):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsx)("td",{children:e.plan&&"none"!==e.plan?(0,Xo.jsx)("span",{className:"plan-chip",children:e.plan}
2):(0,Xo.jsx)("span",{className:"muted",children:"free"})}),(0,Xo.jsx)("td",{children:(0,Xo.jsx)(cP,{geo:e.geo})}),(0,Xo.jsx)("td",{children:oP(e.createdAt)})]},e._id)}))})]})]})]}),"failed"===b&&(0,Xo.jsx)(mP,{}),"onboarding"===b&&(0,Xo.jsx)(vP,{}),"distribution"===b&&(0,Xo.jsx)(yP,{}),"affiliates"===b&&(0,Xo.jsx)(dN,{}),"clippers"===b&&(0,Xo.jsx)(bN,{}),"clip-review"===b&&(0,Xo.jsx)(gN,{}),"instagram"===b&&(0,Xo.jsx)(ON,{}),"content-engine"===b&&(0,Xo.jsx)(GN,{}),(0,Xo.jsx)("div",{className:"admindash-cta-row",children:(0,Xo.jsx)(wn,{to:"/admin/users",className:"admindash-cta",children:"Browse all users \u2192"})}),(0,Xo.jsxs)("div",{className:"admindash-foot",children:["Generated ",oP(a.generatedAt)]})]})})]})}function mP(){var e,t;const[n,r]=(0,$.useState)({loading:!0,items:[],total:0,unresolved:0,bySource:{},byCategory:[]}),[i,a]=(0,$.useState)(null),[s,l]=(0,$.useState)({source:"",category:"",resolved:"false"}),c=async()=>{r((e=>o(o({},e),{},{loading:!0})));try{const e=new URLSearchParams;s.source&&e.set("source",s.source),s.category&&e.set("category",s.category),s.resolved&&e.set("resolved",s.resolved);const t=await ks.get("/admin/failures?".concat(e));r(o({loading:!1},t.data))}catch(K6){var e,t;r((e=>o(o({},e),{},{loading:!1}))),Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to load failures")}};(0,$.useEffect)((()=>{c()}),[s.source,s.category,s.resolved]);const d={web:"#60a5fa",worker:"#f59e0b",modal:"#a78bfa",render:"#34d399",other:"#a1a1aa"};return(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("div",{className:"admindash-failed-head",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h2",{className:"admindash-section-title",style:{margin:0},children:"Failures"}),(0,Xo.jsxs)("div",{className:"muted",children:[n.unresolved," unresolved \xb7 ",n.total," total (auto-expire after 30 days)"]})]}),(0,Xo.jsxs)("div",{className:"admindash-failed-actions",children:[(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:c,children:"Refresh"}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:async()=>{try{var e;const t=await ks.get("/admin/failures/render-logs");a(t.data),!1===(null===(e=t.data)||void 0===e?void 0:e.configured)&&Vo("Render logs not configured (set RENDER_API_KEY).")}catch(t){Vo.error("Couldn't fetch Render logs")}},children:"Pull Render logs"}),(0,Xo.jsx)("button",{className:"admindash-refresh",onClick:async()=>{if(window.confirm("Delete all resolved failures?"))try{const e=await ks.post("/admin/failures/clear",{});Vo.success("Cleared ".concat(e.data.deleted)),c()}catch(e){Vo.error("Couldn't clear")}},children:"Clear resolved"})]})]}),(null===(e=n.byCategory)||void 0===e?void 0:e.length)>0&&(0,Xo.jsx)("div",{className:"admindash-failed-chips",children:n.byCategory.map((e=>(0,Xo.jsxs)("span",{className:"admindash-failed-chip",children:[e.category,(0,Xo.jsx)("b",{children:e.count})]},e.category)))}),(0,Xo.jsxs)("div",{className:"admindash-failed-filters",children:[(0,Xo.jsxs)("select",{value:s.source,onChange:e=>l((t=>o(o({},t),{},{source:e.target.value}))),children:[(0,Xo.jsx)("option",{value:"",children:"All sources"}),(0,Xo.jsx)("option",{value:"web",children:"Web (Render)"}),(0,Xo.jsx)("option",{value:"worker",children:"Worker"}),(0,Xo.jsx)("option",{value:"modal",children:"Modal"})]}),(0,Xo.jsxs)("select",{value:s.category,onChange:e=>l((t=>o(o({},t),{},{category:e.target.value}))),children:[(0,Xo.jsx)("option",{value:"",children:"All categories"}),(0,Xo.jsx)("option",{value:"social-post",children:"social-post"}),(0,Xo.jsx)("option",{value:"live-session",children:"live-session"}),(0,Xo.jsx)("option",{value:"clip-job",children:"clip-job"}),(0,Xo.jsx)("option",{value:"worker",children:"worker"})]}),(0,Xo.jsxs)("select",{value:s.resolved,onChange:e=>l((t=>o(o({},t),{},{resolved:e.target.value}))),children:[(0,Xo.jsx)("option",{value:"false",children:"Unresolved"}),(0,Xo.jsx)("option",{value:"true",children:"Resolved"}),(0,Xo.jsx)("option",{value:"",children:"All"})]})]}),n.loading?(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"}):0===n.items.length?(0,Xo.jsxs)("div",{className:"admindash-empty",children:["\ud83c\udf89 No failures","false"===s.resolved?" outstanding":"","."]}):(0,Xo.jsx)("div",{className:"admindash-failed-list",children:n.items.map((e=>{var t,n,r;return(0,Xo.jsxs)("div",{className:"admindash-failed-row ".concat(e.resolved?"resolved":""),children:[(0,Xo.jsx)("span",{className:"admindash-failed-src",style:{background:d[e.source]||"#a1a1aa"},children:e.source}),(0,Xo.jsxs)("div",{className:"admindash-failed-main",children:[(0,Xo.jsx)("div",{className:"admindash-failed-msg",children:e.message}),(0,Xo.jsxs)("div",{className:"admindash-failed-meta",children:[(0,Xo.jsx)("span",{className:"admindash-failed-cat",children:e.category}),(null===(t=e.context)||void 0===t?void 0:t.platform)&&(0,Xo.jsxs)("span",{children:["\xb7 ",e.context.platform]}),(null===(n=e.context)||void 0===n?void 0:n.userId)&&(0,Xo.jsxs)("span",{children:["\xb7 user ",String(e.context.userId).slice(-6)]}),(null===(r=e.context)||void 0===r?void 0:r.statusCode)&&(0,Xo.jsxs)("span",{children:["\xb7 HTTP ",e.context.statusCode]}),(0,Xo.jsxs)("span",{children:["\xb7 ",oP(e.createdAt)]})]}),e.detail&&(0,Xo.jsxs)("details",{className:"admindash-failed-detail",children:[(0,Xo.jsx)("summary",{children:"detail"}),(0,Xo.jsx)("pre",{children:e.detail})]})]}),!e.resolved&&(0,Xo.jsx)("button",{className:"admindash-failed-resolve",onClick:()=>(async e=>{try{await ks.post("/admin/failures/".concat(e,"/resolve"),{resolved:!0}),c()}catch(t){Vo.error("Couldn't resolve")}})(e._id),children:"Resolve"})]},e._id)}))}),i&&(0,Xo.jsxs)("div",{className:"admindash-failed-render",children:[(0,Xo.jsx)("h3",{className:"admindash-section-title",children:"Render logs (recent errors)"}),!1===i.configured?(0,Xo.jsxs)("div",{className:"muted",children:["Not configured. Set ",(0,Xo.jsx)("code",{children:"RENDER_API_KEY"}),", ",(0,Xo.jsx)("code",{children:"RENDER_OWNER_ID"}),", ",(0,Xo.jsx)("code",{children:"RENDER_SERVICE_ID"})," to pull live Render logs here."]}):i.error?(0,Xo.jsx)("div",{className:"error-text",children:i.error}):0===(null===(t=i.logs)||void 0===t?void 0:t.length)?(0,Xo.jsx)("div",{className:"muted",children:"No recent error logs."}):(0,Xo.jsx)("pre",{className:"admindash-failed-renderpre",children:i.logs.map((e=>"".concat(e.timestamp||""," ").concat(e.message))).join("\n")})]})]})}const fP=[{key:"goal",label:"Primary goal"},{key:"promote",label:"Wants pushed / promoted now"},{key:"trafficPages",label:"Main pages to direct traffic to"},{key:"contentStyles",label:"Preferred content styles"},{key:"styleRef",label:"Style reference (account/clips)"},{key:"postingTargets",label:"Where to post"}
2,{key:"nicheRefs",label:"Niche brands/figures to research"},{key:"assets",label:"Content assets available"}],gP={A:"Own brand pages only",B:"Theme pages only",C:"Both (branded + theme)"};function vP(){const[e,t]=(0,$.useState)(null);return(0,$.useEffect)((()=>{ks.get("/agency-onboarding").then((e=>t(e.data.items||[]))).catch((e=>{var n,r;t([]),Vo.error((null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Failed to load onboarding")}))}),[]),e?(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",children:["Agency onboarding ",(0,Xo.jsxs)("span",{className:"muted",children:["(",e.length,")"]})]}),0===e.length?(0,Xo.jsxs)("div",{className:"admindash-empty",children:["No submissions yet. Share ",(0,Xo.jsx)("code",{children:"/agency-onboarding"})," with clients."]}):(0,Xo.jsx)("div",{className:"admindash-onb-list",children:e.map((e=>(0,Xo.jsxs)("div",{className:"admindash-onb-card",children:[(0,Xo.jsxs)("div",{className:"admindash-onb-head",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"admindash-onb-name",children:[e.firstName,e.lastName].filter(Boolean).join(" ")||"\u2014"}),e.company&&(0,Xo.jsx)("div",{className:"admindash-onb-company",children:e.company})]}),(0,Xo.jsx)("span",{className:"muted",children:oP(e.createdAt)})]}),(0,Xo.jsx)("div",{className:"admindash-onb-qa",children:fP.map((t=>{let n=e[t.key];return"postingTargets"===t.key&&(n=(n||[]).map((e=>gP[e]||e)).join(", ")),n?(0,Xo.jsxs)("div",{className:"admindash-onb-item",children:[(0,Xo.jsx)("div",{className:"admindash-onb-q",children:t.label}),(0,Xo.jsx)("div",{className:"admindash-onb-a",children:n})]},t.key):null}))})]},e._id)))})]}):(0,Xo.jsx)("div",{className:"admindash-section admindash-fade-in",children:(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})})}function bP(e){let{platform:t,status:n}=e;const r={background:{x:"#e7e7e7",twitch:"#9146FF",kick:"#53FC18",youtube:"#FF0000",tiktok:"#69C9D0",facebook:"#1877F2"}[t]||"#a1a1aa",color:"x"===t?"#000":"#0a0a0a"};return(0,Xo.jsx)("span",{className:"admindash-pbadge ".concat(n?"st-".concat(n):""),style:r,children:t})}function yP(){var e,t;const[n,r]=(0,$.useState)(null),[i,a]=(0,$.useState)(null);return(0,$.useEffect)((()=>{ks.get("/admin/connections").then((e=>r(e.data))).catch((()=>r({items:[]}))),ks.get("/admin/posts?status=posted").then((e=>a(e.data))).catch((()=>a({items:[]})))}),[]),(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",children:["Connected accounts ",(0,Xo.jsxs)("span",{className:"muted",children:["(",null!==(e=null===n||void 0===n?void 0:n.total)&&void 0!==e?e:"\u2026",")"]})]}),n?0===n.items.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"No connected accounts yet."}):(0,Xo.jsx)("div",{className:"admindash-conn-list",children:n.items.map((e=>(0,Xo.jsxs)("div",{className:"admindash-conn-row",children:[(0,Xo.jsxs)("div",{className:"admindash-conn-user",children:[(0,Xo.jsx)("div",{className:"admindash-user-name",children:e.username}),(0,Xo.jsx)("div",{className:"admindash-user-email",children:e.email})]}),(0,Xo.jsx)("div",{className:"admindash-conn-platforms",children:e.platforms.map((e=>(0,Xo.jsxs)("span",{className:"admindash-conn-pill",title:e.username?"@".concat(e.username):"",children:[(0,Xo.jsx)(bP,{platform:e.platform}),e.username?"@".concat(e.username):e.platform,e.autoClip&&(0,Xo.jsx)("span",{className:"admindash-conn-auto",children:"auto-clip"})]},e.platform)))}),(0,Xo.jsx)("span",{className:"muted admindash-conn-when",children:e.lastConnectedAt?oP(e.lastConnectedAt):""})]},e.userId)))}):(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})]}),(0,Xo.jsxs)("div",{className:"admindash-section admindash-fade-in",children:[(0,Xo.jsxs)("h2",{className:"admindash-section-title",children:["Posted clips ",(0,Xo.jsxs)("span",{className:"muted",children:["(",null!==(t=null===i||void 0===i?void 0:i.postedCount)&&void 0!==t?t:"\u2026",")"]})]}),i?0===i.items.length?(0,Xo.jsx)("div",{className:"admindash-empty",children:"No clips posted yet."}):(0,Xo.jsx)("div",{className:"admindash-posts-list",children:i.items.map((e=>{var t,n;return(0,Xo.jsxs)("div",{className:"admindash-post-row",children:[(0,Xo.jsxs)("div",{className:"admindash-post-main",children:[(0,Xo.jsxs)("div",{className:"admindash-post-user",children:[(null===(t=e.user)||void 0===t?void 0:t.username)||"\u2014"," ",(0,Xo.jsxs)("span",{className:"muted",children:["\xb7 ",null===(n=e.user)||void 0===n?void 0:n.email]})]}),e.caption&&(0,Xo.jsx)("div",{className:"admindash-post-caption",children:e.caption}),(0,Xo.jsx)("div",{className:"admindash-post-platforms",children:e.platforms.map(((e,t)=>e.postUrl?(0,Xo.jsxs)("a",{href:e.postUrl,target:"_blank",rel:"noreferrer",className:"admindash-post-link",children:[(0,Xo.jsx)(bP,{platform:e.platform,status:e.status})," view \u2192"]},t):(0,Xo.jsxs)("span",{className:"admindash-post-link",children:[(0,Xo.jsx)(bP,{platform:e.platform,status:e.status})," ",e.status]},t)))})]}),(0,Xo.jsx)("span",{className:"muted",children:oP(e.updatedAt)})]},e.id)}))}):(0,Xo.jsx)("div",{className:"admindash-empty admindash-shimmer",children:"Loading\u2026"})]})]})}function xP(e){let{label:t,value:n,accent:r,pulse:i,icon:a}=e;return(0,Xo.jsxs)("div",{className:"admindash-stat ".concat(r?"admindash-stat--".concat(r):""," ").concat(i?"admindash-stat--pulse":""),children:[a&&(0,Xo.jsx)("div",{className:"admindash-stat-icon",children:a}),(0,Xo.jsx)("div",{className:"admindash-stat-value",children:n}),(0,Xo.jsx)("div",{className:"admindash-stat-label",children:t})]})}function SP(e){let{u:t}=e;const[n,r]=(0,$.useState)(!1),i=t.profilePicture&&!n,a=!!(s=t.lastActiveAt)&&Date.now()-new Date(s).getTime()<3e5;var s;return(0,Xo.jsxs)("div",{className:"admindash-user",children:[(0,Xo.jsxs)("div",{className:"admindash-user-avatar-wrap",children:[i?(0,Xo.jsx)("img",{src:t.profilePicture,alt:"",className:"admindash-user-avatar",onError:()=>r(!0)}):(0,Xo.jsx)("div",{className:"admindash-user-avatar admindash-user-avatar--blank"}),(0,Xo.jsx)("span",{className:"admindash-user-status ".concat(a?"online":"offline"),title:a?"Active now":"Offline"})]}),(0,Xo.jsxs)("div",{className:"admindash-user-meta",children:[(0,Xo.jsx)("div",{className:"admindash-user-name",children:t.username||"\u2014"}),(0,Xo.jsx)("div",{className:"admindash-user-email",children:t.email})]})]})}
2function kP(e){let t,{name:n,status:r,detail:i,configMissingMsg:a,dashboardUrl:s}=e;return t=r.manual?(0,Xo.jsx)("span",{className:"health-badge",children:"Manual check"}):r.configured?r.ok?(0,Xo.jsx)("span",{className:"health-badge health-badge--ok",children:"Live"}):r.error?(0,Xo.jsx)("span",{className:"health-badge health-badge--err",children:"Error"}):(0,Xo.jsx)("span",{className:"health-badge",children:"Manual check"}):(0,Xo.jsx)("span",{className:"health-badge health-badge--off",children:"Not configured"}),(0,Xo.jsxs)("div",{className:"admindash-health-card",children:[(0,Xo.jsxs)("div",{className:"admindash-health-head",children:[(0,Xo.jsx)("span",{className:"admindash-health-name",children:n}),t]}),(0,Xo.jsx)("div",{className:"admindash-health-body",children:r.manual||r.configured?r.error?(0,Xo.jsx)("div",{className:"error-text",children:r.error}):i:(0,Xo.jsx)("div",{className:"muted",children:a})}),s&&(0,Xo.jsx)("a",{className:"admindash-health-link",href:s,target:"_blank",rel:"noreferrer",children:"Open dashboard \u2192"})]})}function wP(e){if(!e)return"\u2014";const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/1e3);if(n<60)return"".concat(n,"s ago");const r=Math.floor(n/60);if(r<60)return"".concat(r,"m ago");const i=Math.floor(r/60);if(i<24)return"".concat(i,"h ago");const a=Math.floor(i/24);return"".concat(a,"d ago")}function TP(e){if(!e||!e.country)return null;return[e.city,e.country].filter(Boolean).join(", ")}function CP(e){let{src:t,alt:n,active:r}=e;const[i,a]=(0,$.useState)(!1),s=!t||i?(0,Xo.jsx)("div",{className:"adminusers-avatar adminusers-avatar--blank","aria-label":n}):(0,Xo.jsx)("img",{src:t,alt:n||"",className:"adminusers-avatar",onError:()=>a(!0)});return(0,Xo.jsxs)("div",{className:"adminusers-avatar-wrap",children:[s,(0,Xo.jsx)("span",{className:"adminusers-status ".concat(r?"online":"offline"),title:r?"Active now":"Offline"})]})}function EP(){const{user:e}=(0,$.useContext)(Qo),t=Vt(),[n,r]=(0,$.useState)([]),[i,a]=(0,$.useState)(0),[s,o]=(0,$.useState)(!1),[l,c]=(0,$.useState)(0),[d,u]=(0,$.useState)(!1),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)(!1),[g,v]=(0,$.useState)(""),b=(0,$.useRef)(null);(0,$.useEffect)((()=>{document.title="Clipbait \u2014 Users"}),[]);const y=(0,$.useCallback)((async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];u(!0);try{const t=e?0:l,n={limit:50,offset:t};h.trim()&&(n.search=h.trim()),m&&(n.paid=1),g&&(n.userType=g);const i=await ks.get("/admin/analytics/users",{params:n});a(i.data.total),o(i.data.hasMore),e?(r(i.data.users),c(i.data.users.length)):(r((e=>[...e,...i.data.users])),c(t+i.data.users.length))}catch(K6){var n,i,s;if(403===(null===(n=K6.response)||void 0===n?void 0:n.status))return Vo.error("Admin only"),void t("/");Vo.error((null===(i=K6.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.error)||"Failed to load users")}finally{u(!1)}}),[h,m,g,l,t]);return(0,$.useEffect)((()=>{if(e)return b.current&&clearTimeout(b.current),b.current=setTimeout((()=>y(!0)),250),()=>b.current&&clearTimeout(b.current)}),[e,h,m,g]),(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"adminusers-page",children:(0,Xo.jsxs)("div",{className:"adminusers-container",children:[(0,Xo.jsxs)("div",{className:"adminusers-header",children:[(0,Xo.jsx)("h1",{children:"Users"}),(0,Xo.jsx)("button",{className:"adminusers-back",onClick:()=>t("/admin/dashboard"),children:"\u2190 Back to dashboard"})]}),(0,Xo.jsxs)("div",{className:"adminusers-tabs",children:[(0,Xo.jsx)("button",{className:"adminusers-tab ".concat(""===g?"on":""),onClick:()=>v(""),children:"All"}),(0,Xo.jsx)("button",{className:"adminusers-tab ".concat("clipper"===g?"on":""),onClick:()=>v("clipper"),children:"Clippers"}),(0,Xo.jsx)("button",{className:"adminusers-tab ".concat("streamer"===g?"on":""),onClick:()=>v("streamer"),children:"Streamers"})]}),(0,Xo.jsxs)("div",{className:"adminusers-filters",children:[(0,Xo.jsx)("input",{type:"text",placeholder:"Search by username or email\u2026",value:h,onChange:e=>p(e.target.value)}),(0,Xo.jsxs)("label",{className:"adminusers-toggle",children:[(0,Xo.jsx)("input",{type:"checkbox",checked:m,onChange:e=>f(e.target.checked)}),"Paid users only"]}),(0,Xo.jsxs)("span",{className:"adminusers-count",children:[i.toLocaleStr
2ing()," ",m?"paid ":"",g||"users",g?"s":""]})]}),0!==n.length||d?(0,Xo.jsxs)("table",{className:"adminusers-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"User"}),(0,Xo.jsx)("th",{children:"Type"}),(0,Xo.jsx)("th",{children:"Plan"}),(0,Xo.jsx)("th",{children:"Location"}),(0,Xo.jsx)("th",{children:"Joined"}),(0,Xo.jsx)("th",{children:"Last sign-in"}),(0,Xo.jsx)("th",{})]})}),(0,Xo.jsx)("tbody",{children:n.map((e=>{var n,r,i,a;return(0,Xo.jsxs)("tr",{className:"adminusers-row-clickable",onClick:()=>t("/admin/users/".concat(e._id)),children:[(0,Xo.jsx)("td",{children:(0,Xo.jsxs)("div",{className:"adminusers-user",children:[(0,Xo.jsx)(CP,{src:e.profilePicture,alt:e.username,active:(a=e.lastActiveAt,!!a&&Date.now()-new Date(a).getTime()<3e5)}),(0,Xo.jsxs)("div",{className:"adminusers-user-meta",children:[(0,Xo.jsxs)("div",{className:"adminusers-user-name",children:[e.username||"\u2014",e.isAdmin&&(0,Xo.jsx)("span",{className:"admin-chip",children:"admin"}),!e.verified&&(0,Xo.jsx)("span",{className:"unverified-chip",children:"unverified"})]}),(0,Xo.jsx)("div",{className:"adminusers-user-email",children:e.email||"\u2014"})]})]})}),(0,Xo.jsx)("td",{children:null!==(n=e.onboarding)&&void 0!==n&&n.userType?(0,Xo.jsxs)("span",{className:"type-chip-wrap",children:[(0,Xo.jsx)("span",{className:"type-chip",children:e.onboarding.userType}),"clipper"===e.onboarding.userType&&e.onboarding.wantsOpportunities&&(0,Xo.jsx)("span",{className:"paid-clipper-chip",title:"Wants paid clipping opportunities",children:"$"})]}):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsx)("td",{children:e.plan&&"none"!==e.plan?(0,Xo.jsx)("span",{className:"plan-chip",children:e.plan}):(0,Xo.jsx)("span",{className:"muted",children:"free"})}),(0,Xo.jsx)("td",{children:null!==(r=e.geo)&&void 0!==r&&r.country?(0,Xo.jsxs)("span",{className:"adminusers-loc",title:[e.geo.city,e.geo.region,e.geo.country].filter(Boolean).join(", "),children:[(i=e.geo.country,i&&2===i.length?String.fromCodePoint(...[...i.toUpperCase()].map((e=>127462+e.charCodeAt(0)-65))):"\ud83c\udf10")," ",TP(e.geo)]}):(0,Xo.jsx)("span",{className:"muted",children:"\u2014"})}),(0,Xo.jsx)("td",{children:wP(e.createdAt)}),(0,Xo.jsx)("td",{children:wP(e.lastSignInAt)}),(0,Xo.jsx)("td",{children:(0,Xo.jsx)("a",{href:"/admin/users/".concat(e._id),className:"adminusers-link",onClick:n=>{n.preventDefault(),n.stopPropagation(),t("/admin/users/".concat(e._id))},children:"Details \u2192"})})]},e._id)}))})]}):(0,Xo.jsx)("div",{className:"adminusers-empty",children:"No users match these filters."}),(0,Xo.jsxs)("div",{className:"adminusers-pagination",children:[s&&(0,Xo.jsx)("button",{className:"adminusers-more",onClick:()=>y(!1),disabled:d,children:d?"Loading\u2026":"Load 50 more (".concat(i-n.length," remaining)")}),!s&&n.length>0&&(0,Xo.jsx)("div",{className:"adminusers-end",children:"End of list"})]})]})})]})}function jP(e){if(!e)return"\u2014";const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/1e3);if(n<60)return"".concat(n,"s ago");const r=Math.floor(n/60);if(r<60)return"".concat(r,"m ago");const i=Math.floor(r/60);if(i<24)return"".concat(i,"h ago");const a=Math.floor(i/24);return"".concat(a,"d ago")}function AP(e){if(!e)return"\u2014";const t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?"".concat(n,"h ").concat(r,"m"):r>0?"".concat(r,"m ").concat(i,"s"):"".concat(i,"s")}function NP(e){let{src:t,alt:n,className:r,fallbackClassName:i}=e;const[a,s]=(0,$.useState)(!1);return!t||a?(0,Xo.jsx)("div",{className:i||r,"aria-label":n}):(0,Xo.jsx)("img",{src:t,alt:n||"",className:r,onError:()=>s(!0)})}function PP(){var e,t,n,r;const{id:i}=qt(),{user:a}=(0,$.useContext)(Qo),s=Vt(),[o,l]=(0,$.useState)(null),[c,d]=(0,$.useState)(!0),[u,h]=(0,$.useState)(""),[p,m]=(0,$.useState)(!1),[f,g]=(0,$.useState)(null);async function v(){const e=parseInt(u,10);if(!e||e<=0)Vo.error("Enter a positive integer");else{m(!0);try{const t=await ks.post("/admin/analytics/users/".concat(i,"/gift-credits"),{amount:e});Vo.success("Gifted ".concat(t.data.granted," credits \u2014 new balance ").concat(t.data.newBalance)),h(""),await b()}catch(K6){var t,n;Vo.error((null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||"Gift failed")}finally{m(!1)}}}async function b(){d(!0);try{const e=await ks.get("/admin/analytics/users/".concat(i));l(e.data)}catch(K6){var e,t,n,r;if(403===(null===(e=K6.response)||void 0===e?void 0:e.status))return Vo.error("Admin only"),void s("/");if(404===(null===(t=K6.response)||void 0===t?void 0:t.status))return Vo.error("User not found"),void s("/admin/users");Vo.error((null===(n=K6.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Failed to load user")}finally{d(!1)}}if((0,$.useEffect)((()=>{document.title="Clipbait \u2014 User detail"}),[]),(0,$.useEffect)((()=>{a&&b()}),[a,i]),c||!o)return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"aud-page",children:(0,Xo.jsx)("div",{className:"aud-container",children:(0,Xo.jsx)("div",{className:"aud-empty",children:"Loading\u2026"})})})]});const{user:y,jobStats:x,jobs:S,liveSessions:k=[],liveStats:w}=o,T=k.map((e=>({_id:e._id,videoTitle:e.videoTitle||e.streamerName||"Live session",videoUrl:e.channelUrl,videoThumbnail:e.videoThumbnail,platform:e.platform,status:e.endedReason?"".concat(e.status," (").concat(e.endedReason,")"):e.status,streamerName:e.streamerName,createdAt:e.createdAt,clipCount:e.clipCount,clips:(e.clips||[]).map((e=>({hook:e.hook,duration:e.duration,start_sec:e.broadcastStartSec,url:e.url,thumbnailUrl:e.thumbnailUrl})))}))),C={totalJobs:(x.totalJobs||0)+k.length,completedJobs:(x.completedJobs||0)+k.filter((e=>"ended"===e.status)).length,failedJobs:(x.failedJobs||0)+k.filter((e=>"error"===e.status)).length,totalClips:(x.totalClips||0)+((null===w||void 0===w?void 0:w.totalClips)||0),totalSourceSeconds:x.totalSourceSeconds||0},E=y.brands||[],j=y.usage||{};return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"aud-page",children:(0,Xo.jsxs)("div",{className:"aud-container",children:[(0,Xo.jsx)("div",{className:"aud-back",children:(0,Xo.jsx)(wn,{to:"/admin/users",children:"\u2190 Back to users"})}),(0,Xo.jsxs)("div",{className:"aud-header",children:[(0,Xo.jsx)(NP,{src:y.profilePicture,alt:y.username,className:"aud-avatar",fallbackClassName:"aud-avatar aud-avatar--blank"}),(0,Xo.jsxs)("div",{className:"aud-header-meta",children:[(0,Xo.jsxs)("h1",{children:[y.username||"\u2014",y.isAdmin&&(0,Xo.jsx)("span",{className:"chip chip-admin",children:"admin"}),!y.verified&&(0,Xo.jsx)("span",{className:"chip chip-warn",children:"unverified"}),y.plan&&"none"!==y.plan&&(0,Xo.jsx)("span",{className:"chip chip-plan",children:y.plan})]}),(0,Xo.jsx)("div",{className:"aud-email",children:y.email}),(0,Xo.jsxs)("div",{className:"aud-sub",children:["Joined ",jP(y.createdAt)," \xb7 Last sign-in ",jP(y.lastSignInAt)]}),(null===(e=y.geo)||void 0===e?void 0:e.country)&&(0,Xo.jsxs)("div",{className:"aud-sub",children:["\ud83d\udccd ",[y.geo.city,y.geo.region,y.geo.country].filter(
2Boolean).join(", ")]}),(0,Xo.jsxs)("div",{className:"aud-sub",children:["\ud83d\udd0e Found us via:"," ",null!==(t=y.onboarding)&&void 0!==t&&t.foundVia?(0,Xo.jsx)("strong",{style:{color:"#e4e4e7",textTransform:"capitalize"},children:"other"===y.onboarding.foundVia?"Other \u2014 ".concat(y.onboarding.foundViaOther||"(unspecified)"):y.onboarding.foundVia}):(0,Xo.jsx)("span",{style:{color:"#a1a1aa"},children:"not answered"})]})]})]}),(0,Xo.jsxs)("div",{className:"aud-stats",children:[(0,Xo.jsx)(RP,{label:"Total jobs",value:C.totalJobs}),(0,Xo.jsx)(RP,{label:"Completed",value:C.completedJobs,accent:"green"}),(0,Xo.jsx)(RP,{label:"Failed",value:C.failedJobs,accent:"red"}),(0,Xo.jsx)(RP,{label:"Total clips",value:C.totalClips,accent:"purple"}),(0,Xo.jsx)(RP,{label:"Source minutes",value:Math.floor((C.totalSourceSeconds||0)/60)}),(0,Xo.jsx)(RP,{label:"Credits",value:null!==(n=y.credits)&&void 0!==n?n:0,accent:"gold"})]}),(0,Xo.jsxs)("div",{className:"aud-section aud-gift-section",children:[(0,Xo.jsx)("h2",{children:"\ud83c\udf81 Gift credits"}),(0,Xo.jsxs)("div",{className:"aud-gift-row",children:[(0,Xo.jsx)("input",{type:"number",min:"1",step:"1",placeholder:"Amount (e.g. 100)",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&v()},className:"aud-gift-input",disabled:p}),(0,Xo.jsx)("button",{className:"aud-gift-btn",onClick:v,disabled:p||!u,children:p?"Gifting\u2026":"Gift ".concat(u||"?"," credits")})]}),(0,Xo.jsxs)("div",{className:"aud-gift-hint muted",children:["Quick-add: ",[10,50,100,500,1e3].map((e=>(0,Xo.jsxs)("button",{className:"aud-gift-chip",onClick:()=>h(String(e)),disabled:p,children:["+",e]},e)))]})]}),Object.keys(j).length>0&&(0,Xo.jsxs)("div",{className:"aud-section",children:[(0,Xo.jsx)("h2",{children:"Usage (tracked counters)"}),(0,Xo.jsxs)("div",{className:"aud-usage",children:[null!=j.videosProcessed&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("b",{children:j.videosProcessed})," videos processed"]}),null!=j.clipsGenerated&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("b",{children:j.clipsGenerated})," clips generated"]}),null!=j.minutesProcessed&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("b",{children:j.minutesProcessed})," min processed"]})]})]}),(0,Xo.jsxs)("div",{className:"aud-section",children:[(0,Xo.jsxs)("h2",{children:["Brands (",E.length,")"]}),0===E.length?(0,Xo.jsx)("div",{className:"aud-empty-sm",children:"No brands set up yet."}):(0,Xo.jsx)("div",{className:"aud-brands",children:E.map((e=>{var t,n,r;return(0,Xo.jsxs)("div",{className:"aud-brand-card",children:[(0,Xo.jsxs)("div",{className:"aud-brand-head",children:[(0,Xo.jsx)(NP,{src:e.avatar,alt:e.name,className:"aud-brand-avatar",fallbackClassName:"aud-brand-avatar aud-brand-avatar--blank"}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"aud-brand-name",children:e.name}),(0,Xo.jsxs)("div",{className:"aud-brand-sub",children:[(null===(t=e.creatorSettings)||void 0===t?void 0:t.platform)||"no platform",null!==(n=e.creatorSettings)&&void 0!==n&&n.streamType?" \xb7 ".concat(e.creatorSettings.streamType):""]})]}),String(y.activeBrandId)===String(e._id)&&(0,Xo.jsx)("span",{className:"chip chip-active",children:"active"})]}),(null===(r=e.creatorSettings)||void 0===r?void 0:r.channelUsername)&&(0,Xo.jsxs)("div",{className:"aud-brand-row",children:[(0,Xo.jsx)("span",{className:"muted",children:"Channel:"})," @",e.creatorSettings.channelUsername]}),(0,Xo.jsxs)("div",{className:"aud-brand-row aud-brand-sub-muted",children:["Created ",jP(e.createdAt)]})]},e._id)}))})]}),(0,Xo.jsxs)("div",{className:"aud-section",children:[(0,Xo.jsxs)("h2",{children:["Recent clip jobs (",S.length,")"]}),0===S.length?(0,Xo.jsx)("div",{className:"aud-empty-sm",children:"No clip jobs yet."}):(0,Xo.jsx)("div",{className:"aud-jobs",children:S.map((e=>(0,Xo.jsx)(LP,{job:e,onWatchClip:g},e._id)))})]}),k.length>0&&(0,Xo.jsxs)("div",{className:"aud-section",children:[(0,Xo.jsxs)("h2",{children:["Live auto-clips (",null!==(r=null===w||void 0===w?void 0:w.totalClips)&&void 0!==r?r:0," clips \xb7 ",k.length," session",1===k.length?"":"s",")"]}),(0,Xo.jsx)("div",{className:"aud-jobs",children:T.map((e=>(0,Xo.jsx)(LP,{job:e,onWatchClip:g},e._id)))})]})]})}),f&&(0,Xo.jsxs)("div",{className:"aud-watch-overlay",onClick:()=>g(null),children:[(0,Xo.jsx)("button",{className:"aud-watch-close",onClick:e=>{e.stopPropagation(),g(null)},"aria-label":"Close",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Xo.jsxs)("div",{className:"aud-watch-inner",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("video",{src:f.url,controls:!0,autoPlay:!0,playsInl
2ine:!0,className:"aud-watch-video"}),f.hook&&(0,Xo.jsx)("div",{className:"aud-watch-caption",children:f.hook})]})]})]})}function RP(e){let{label:t,value:n,accent:r}=e;return(0,Xo.jsxs)("div",{className:"aud-stat ".concat(r?"aud-stat--".concat(r):""),children:[(0,Xo.jsx)("div",{className:"aud-stat-label",children:t}),(0,Xo.jsx)("div",{className:"aud-stat-value",children:n})]})}function LP(e){let{job:t,onWatchClip:n}=e;const[r,i]=(0,$.useState)(!1),a="completed"===t.status?"status-green":"failed"===t.status?"status-red":"status-yellow";return(0,Xo.jsxs)("div",{className:"aud-job-card",children:[(0,Xo.jsxs)("div",{className:"aud-job-head",onClick:()=>i((e=>!e)),children:[(0,Xo.jsx)(NP,{src:t.videoThumbnail,alt:"",className:"aud-job-thumb",fallbackClassName:"aud-job-thumb aud-job-thumb--blank"}),(0,Xo.jsxs)("div",{className:"aud-job-meta",children:[(0,Xo.jsx)("div",{className:"aud-job-title",children:t.videoTitle||t.videoUrl}),(0,Xo.jsxs)("div",{className:"aud-job-sub",children:[t.platform," \xb7 ",t.clipCount," clips \xb7 ",t.videoAuthor||t.streamerName||"\u2014",t.videoDuration?" \xb7 ".concat(AP(t.videoDuration)):""]})]}),(0,Xo.jsxs)("div",{className:"aud-job-side",children:[(0,Xo.jsx)("span",{className:"chip ".concat(a),children:t.status}),(0,Xo.jsx)("span",{className:"aud-job-date",children:jP(t.createdAt)})]})]}),r&&(0,Xo.jsxs)("div",{className:"aud-job-body",children:[(0,Xo.jsxs)("div",{className:"aud-job-info-row",children:[(0,Xo.jsx)("span",{className:"muted",children:"Source:"})," ",(0,Xo.jsx)("a",{href:t.videoUrl,target:"_blank",rel:"noreferrer",children:t.videoUrl})]}),t.processingTime&&(0,Xo.jsxs)("div",{className:"aud-job-info-row",children:[(0,Xo.jsx)("span",{className:"muted",children:"Processing:"})," ",t.processingTime,"s"]}),t.aspectRatio&&(0,Xo.jsxs)("div",{className:"aud-job-info-row",children:[(0,Xo.jsx)("span",{className:"muted",children:"Aspect:"})," ",t.aspectRatio]}),t.clips&&t.clips.length>0&&(0,Xo.jsxs)("div",{className:"aud-job-clips",children:[t.clips.map(((e,t)=>(0,Xo.jsxs)("div",{className:"aud-clip-mini ".concat(e.url?"aud-clip-mini--clickable":""),onClick:()=>e.url&&(null===n||void 0===n?void 0:n({url:e.url,hook:e.hook})),title:e.url?"Click to watch":"",children:[e.thumbnailUrl?(0,Xo.jsx)(NP,{src:e.thumbnailUrl,alt:"",className:"aud-clip-mini-thumb",fallbackClassName:"aud-clip-mini-thumb aud-clip-mini-thumb--blank"}):(0,Xo.jsx)("div",{className:"aud-clip-mini-thumb aud-clip-mini-thumb--blank"}),e.url&&(0,Xo.jsx)("div",{className:"aud-clip-mini-play",children:(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})}),(0,Xo.jsxs)("div",{className:"aud-clip-mini-meta",children:[(0,Xo.jsx)("div",{className:"aud-clip-mini-hook",children:e.hook||"(no hook)"}),(0,Xo.jsxs)("div",{className:"aud-clip-mini-sub muted",children:[e.duration?"".concat(Math.round(e.duration),"s"):"\u2014",null!=e.start_sec?" \xb7 @".concat(Math.floor(e.start_sec),"s"):""]})]})]},t))),t.clipCount>t.clips.length&&(0,Xo.jsxs)("div",{className:"aud-clip-mini muted",children:["+ ",t.clipCount-t.clips.length," more"]})]})]})]})}const IP="James O'Keefe Clipping -- Full Guide\nYou need a dedicated page for this campaign OR 5k+ followers on a theme page in the political space. Platforms: TikTok, Instagram, YouTube only.\n\nWho you're clipping: James O'Keefe, founder of O'Keefe Media Group (OMG).\n\nPage setup rules:\n- Post on a dedicated James O'Keefe clip page -- obvious in one second what it is.\n- Do not run this campaign on the same page as another campaign.\n- Bio must clearly state this is a fan/clip page, not James O'Keefe himself. Use this line exactly: \"Fan clip page \u2013 not affiliated with or impersonating James O'Keefe.\"\n- Bio must include this exact link, unchanged: https://okeefemediagroup.com/get-full-access/\n- Bio line 2 should be: \"Subscribe & Support the Fight \ud83d\udc47\"\n- Profile picture: a clean clip/brand-style image (logo, graphic, etc. is fine) -- just don't pose as his official account.\n- Page name: \"James O'Keefe Clips\" or a clean variation.\n- Username: SHOULD be tied to him (e.g. okeefe.clips, jamesokeefe.moments) -- a fan-page-style handle is the goal, not something unrelated. It must not claim to BE his official account.\n- No bots: minimum 10% engagement rate (likes+comments / views). Real organic comments can still get approved under 10%; fake views/comments are auto-banned.\n\nEvery clip needs:\n- James clearly speaking (no pure B-roll).\n- One idea per clip, one hook.\n- Clean modern editing, subtitles required, white/black/gold text only, kept out of the UI button zones.\n- Tag @JamesOKeefeIII in the caption (TikTok/Instagram) or @OKeefeMediaGroup in the title (YouTube).\n- Caption must direct viewers to the link in bio (CTA).\n- Drop the subscription link in the comments and pin it.\n- Do not follow James's main pages from the clip page.\n- Minimum 15 seconds long.\n- No AI edits or AI subtitles (Clipbait.ai is the only allowed exception).\n- No aura/glow/skull edits. No lazy reposts -- must be a properly edited, unique clip.\n- No personal opinions inserted as James's -- clip his actual words, don't editorialize on top.\n- Only use James's official source content (provided source links), not outside footage.\n- Minimum 40% Tier-1 audie
2nce (US/UK/CA/AU).\n\nPay: $1.50 CPM, min payout $3, max payout $300, total budget $1000.";function DP(e,t){const n=document.createElement("canvas");n.width=60,n.height=60;const r=n.getContext("2d");return r.fillStyle="#111",r.beginPath(),r.arc(30,30,30,0,2*Math.PI),r.fill(),r.fillStyle=t,r.beginPath(),r.arc(30,30,25,0,2*Math.PI),r.fill(),r.strokeStyle="#fff",r.lineWidth=2,r.beginPath(),r.arc(30,30,25,0,2*Math.PI),r.stroke(),r.fillStyle="#fff",r.font="bold 24px sans-serif",r.textAlign="center",r.textBaseline="middle",r.fillText((e[0]||"?").toUpperCase(),30,31),n.toDataURL("image/png")}function OP(e){let{steepness:t=1,color:n="#e879f9"}=e;const r=Array.from({length:10},((e,n)=>{const r=n/9*100,i=100-90*Math.pow(n/9,1/t);return"".concat(r,",").concat(i)})).join(" ");return(0,Xo.jsx)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"crs-sparkline",children:(0,Xo.jsx)("polyline",{points:r,fill:"none",stroke:n,strokeWidth:"3"})})}const MP="Fan clip page \u2013 not affiliated with or impersonating James O'Keefe. Subscribe & Support the Fight \ud83d\udc47 https://okeefemediagroup.com/get-full-access/",_P="Comment SUBSCRIBE for full access to the story they don't want you to see. Tag @JamesOKeefeIII \u2013 link in bio.",FP="James O'Keefe Clips",BP=[{id:"sub_01",expected:"approve",platform:"TikTok",title:"James O'Keefe exposes it live",submitter:"okeefe.clips",avatarColor:"#e1306c",timeAgo:"2 hours ago",estPayout:61.8,views:41200,likes:3500,comments:800,shares:310,watchUrl:"https://tiktok.com/@okeefe.clips/video/1",steepness:1.4,externalUsername:"@okeefe.clips",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("O","#e1306c")},{id:"sub_02",expected:"reject_brief",platform:"Instagram",title:"crazy clip you have to see",submitter:"clipking99",avatarColor:"#405de6",timeAgo:"5 hours ago",estPayout:22.95,views:15300,likes:1800,comments:300,shares:44,watchUrl:"https://instagram.com/p/clipking99_1",steepness:1.2,externalUsername:"@clipking99",externalBio:"just a guy who clips stuff",externalCaption:"wow crazy video, check it out",externalPfp:DP("C","#405de6"),note:"No @JamesOKeefeIII tag, no bio-link CTA in caption, bio missing the required disclaimer/link entirely."},{id:"sub_03",expected:"reject_brief",platform:"X",title:"watch this clip of okeefe",submitter:"okeefe.moments",avatarColor:"#000",timeAgo:"12 hours ago",estPayout:14.7,views:9800,likes:1200,comments:200,shares:61,watchUrl:"https://x.com/okeefe_moments/status/1",steepness:1.1,externalUsername:"@okeefe.moments",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("M","#000"),note:"Submitted via X -- brief only allows TikTok, Instagram, YouTube. Everything else here is compliant."},{id:"sub_04",expected:"reject_brief",platform:"YouTube",title:"Full breakdown of the confrontation",submitter:"jamesokeefe.moments",avatarColor:"#ff0000",timeAgo:"1 day ago",estPayout:33,views:22e3,likes:2500,comments:400,shares:88,watchUrl:"https://youtube.com/shorts/jamesokeefe_moments_1",steepness:1.3,externalUsername:"@jamesokeefe.moments",externalProfileName:FP,externalBio:"Fan clip page \u2013 not affiliated with or impersonating James O'Keefe.",externalCaption:"Full breakdown \u2013 tag @OKeefeMediaGroup",externalPfp:DP("J","#ff0000"),note:"Bio has the disclaimer line but is missing the required link to okeefemediagroup.com/get-full-access/."},{id:"sub_05",expected:"reject_bot",platform:"TikTok",title:"insane moment caught on camera",submitter:"okclipper_viral",avatarColor:"#25f4ee",timeAgo:"3 hours ago",estPayout:280.5,views:187e3,likes:0,comments:0,shares:0,watchUrl:"https://tiktok.com/@okclipper_viral/video/1",steepness:4,externalUsername:"@okeefe.viral",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("V","#25f4ee"),note:"187K views, ZERO likes/comments (0% engagement, brief requires 10%) -- classic bot pattern. Text compliance is otherwise clean, isolating the bot signal."},{id:"sub_06",expected:"reject_bot",platform:"Instagram",title:"wow can't believe this happened",submitter:"okeefe.fastclips",avatarColor:"#f09433",timeAgo:"30 minutes ago",estPayout:93,views:62e3,likes:4e3,comments:900,shares:20,watchUrl:"https://instagram.com/p/okeefe_fastclips_1",steepne
2ss:3.5,externalUsername:"@okeefe.fastclips",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("F","#f09433"),note:"62K views in 30 minutes on a small account -- view-velocity spike, even though engagement rate and text compliance look fine."},{id:"sub_07",expected:"reject_bot",platform:"TikTok",title:"James O'Keefe exposes it live",submitter:"okeefe.sam",avatarColor:"#000",timeAgo:"8 hours ago",estPayout:7.5,views:5e3,likes:640,comments:210,shares:12,watchUrl:"https://tiktok.com/@okeefe.clips/video/1",steepness:1.1,externalUsername:"@okeefe.sam",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("S","#000"),note:"Same watch URL as sub_01 -- duplicate/reused submission from a different account."},{id:"sub_08",expected:"flag",platform:"YouTube",title:"worth watching this one",submitter:"okeefe.maybe",avatarColor:"#ff0000",timeAgo:"15 hours ago",estPayout:12.45,views:8300,likes:700,comments:130,shares:9,watchUrl:"https://youtube.com/shorts/okeefe_maybe_1",steepness:1.2,externalUsername:"@okeefe.maybe",externalProfileName:FP,externalBio:MP,externalCaption:"worth watching this one, subscribe for more",externalPfp:DP("M","#ff0000"),note:"No @OKeefeMediaGroup tag in the title and no explicit bio-link CTA, but engagement (~10%) looks organic and everything else is clean -- borderline."},{id:"sub_09",expected:"approve",platform:"Instagram",title:"posting my first clip!",submitter:"okeefe.newbie",avatarColor:"#833ab4",timeAgo:"2 days ago",estPayout:.96,views:640,likes:50,comments:15,shares:2,watchUrl:"https://instagram.com/p/okeefe_newbie_1",steepne
2ss:1.1,externalUsername:"@okeefe.newbie",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("N","#833ab4"),note:"Small new account, modest views, ~10.2% engagement -- should NOT be flagged just for being small."},{id:"sub_10",expected:"reject_bot",platform:"TikTok",title:"unreal footage from today",submitter:"okeefe.bulk",avatarColor:"#fe2c55",timeAgo:"3 days ago",estPayout:510,views:34e4,likes:210,comments:3,shares:5,watchUrl:"https://tiktok.com/@okeefe.bulk/video/1",steepness:2.8,externalUsername:"@okeefe.bulk",externalProfileName:FP,externalBio:MP,externalCaption:_P,externalPfp:DP("B","#fe2c55"),note:"340K views but 0.06% engagement (brief requires 10%) -- views far exceed plausible organic reach."}];function UP(){const[e,t]=(0,$.useState)({}),n=(0,$.useMemo)((()=>BP),[]);(0,$.useEffect)((()=>(window.__clipSandbox={brief:IP,submissions:n},()=>{delete window.__clipSandbox})),[n]);const r=(e,n)=>{t((t=>o(o({},t),{},{[e]:{verdict:n,at:Date.now()}})))},i=Object.entries(e),a=i.filter((e=>{let[t,r]=e;return zP(t,r.verdict,n)})).length;return(0,Xo.jsxs)("div",{className:"crs-page",children:[(0,Xo.jsxs)("div",{className:"crs-header",children:[(0,Xo.jsx)("h1",{children:"Clip Review Sandbox"}),(0,Xo.jsx)("p",{className:"crs-sub",children:"Dummy submissions only, laid out to match the real Whop Content Rewards review screen -- nothing here is a real campaign or payout."}),i.length>0&&(0,Xo.jsxs)("div",{className:"crs-score",children:["Scored ",a,"/",i.length," correct (",Math.round(a/i.length*100),"%)"]})]}),(0,Xo.jsxs)("details",{className:"crs-brief",children:[(0,Xo.jsx)("summary",{children:"Campaign brief (what the bot should be checking against)"}),(0,Xo.jsx)("pre",{children:IP})]}),(0,Xo.jsx)("div",{className:"crs-list",children:n.map((t=>{var i;const a=e[t.id],s=a&&zP(t.id,a.verdict,n),o=a?a.verdict:"pending";return(0,Xo.jsxs)("div",{className:"crs-card","data-submission-id":t.id,"data-expected":t.expected,children:[(0,Xo.jsxs)("div",{className:"crs-card-header",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"crs-campaign-name",children:"James O'Keefe Clipping | $3500 Budget | $1.50 CPM"}),(0,Xo.jsx)("div",{className:"crs-campaign-rate",children:"$1.50 / 1k views"})]}),(0,Xo.jsxs)("div",{className:"crs-actions",children:[(0,Xo.jsx)("button",{className:"crs-icon-btn","data-action":"flag",onClick:()=>r(t.id,"flag"),title:"Flag",children:"\u2691"}),(0,Xo.jsx)("button",{className:"crs-btn approve","data-action":"approve",onClick:()=>r(t.id,"approve"),children:"Approve"}),(0,Xo.jsx)("button",{className:"crs-btn reject","data-action":"reject",onClick:()=>r(t.id,"reject"),children:"Reject"})]})]}),(0,Xo.jsxs)("div",{className:"crs-body",children:[(0,Xo.jsxs)("div",{className:"crs-main",children:[(0,Xo.jsx)("div",{className:"crs-title","data-role":"title",children:t.title}),(0,Xo.jsxs)("div",{className:"crs-submitted-by",children:[(0,Xo.jsx)("img",{src:DP(t.submitter,t.avatarColor),alt:"",className:"crs-avatar"}),(0,Xo.jsxs)("span",{children:[t.timeAgo," by ",(0,Xo.jsx)("b",{"data-role":"submitter",children:t.submitter})]})]}),(0,Xo.jsxs)("div",{className:"crs-meta-row",children:[(0,Xo.jsxs)("span",{className:"crs-payout",children:["Est. payout ",(0,Xo.jsxs)("b",{children:["$",t.estPayout.toFixed(2)]})]}),(0,Xo.jsx)("span",{className:"crs-shield",title:"Whop's own trust/safety indicator (meaning unconfirmed)",children:"\ud83d\udee1"}),(0,Xo.jsx)("span",{className:"crs-status-pill ".concat(o),children:o})]}),(0,Xo.jsxs)("div",{className:"crs-platform-row",children:[(0,Xo.jsx)("span",{className:"crs-platform-icon",children:t.platform}),(0,Xo.jsx)("a",{href:t.watchUrl,target:"_blank",rel:"noreferrer",className:"crs-watch-btn","data-role":"watch-url",children:"Watch video \u2197"})]})]}),(0,Xo.jsxs)("div",{className:"crs-stats-panel","data-role":"stats","data-views":t.views,"data-likes":t.likes,"data-comments":t.comments,"data-shares":t.shares,"data-url":t.watchUrl,children:[(0,Xo.jsxs)("div",{className:"crs-stats-numbers",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{children:"Views"}
2),(0,Xo.jsx)("b",{children:t.views.toLocaleString()})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{children:"Likes"}),(0,Xo.jsx)("b",{children:t.likes.toLocaleString()})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{children:"Comments"}),(0,Xo.jsx)("b",{children:t.comments.toLocaleString()})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("span",{children:"Shares"}),(0,Xo.jsx)("b",{children:t.shares.toLocaleString()})]})]}),(0,Xo.jsx)(OP,{steepness:t.steepness})]})]}),(0,Xo.jsx)("div",{className:"crs-external-data","data-role":"external","data-username":t.externalUsername,"data-profile-name":t.externalProfileName||(null===(i=t.externalUsername)||void 0===i?void 0:i.replace("@","")),"data-bio":t.externalBio,"data-caption":t.externalCaption,"data-pfp":t.externalPfp,hidden:!0}),t.note&&(0,Xo.jsx)("div",{className:"crs-note",children:t.note}),a&&(0,Xo.jsxs)("div",{className:"crs-result ".concat(s?"correct":"wrong"),children:["Bot said ",(0,Xo.jsx)("b",{children:a.verdict})," -- ",s?"correct":"expected ".concat(t.expected.replace("reject_brief","reject").replace("reject_bot","reject"))]})]},t.id)}))})]})}function zP(e,t,n){const r=n.find((t=>t.id===e));if(!r)return!1;return t===(r.expected.startsWith("reject")?"reject":r.expected)}const GP=["Content doesn't meet campaign requirements","Low quality content","Inappropriate content","Wrong campaign guidelines"];function WP(){return o({title:"James O\u2019Keefe Clips",submitter:"test_submitter",payout:"$4.57",shieldScore:40,status:"pending",videoUrl:"https://cdn.contentrewards.com/clips/sample-1.mp4",originalUrl:"https://www.tiktok.com/@jamesokeefe.highlights/video/7669158592406211853",views:3044,likes:45,comments:0,shares:2,rejectStage:"none",reasonText:""},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}const HP=[WP({title:"They Didn\u2019t Want This To Go Public \ud83d\ude33",submitter:"anu_clips",videoUrl:"https://cdn.contentrewards.com/clips/sample-1.mp4",originalUrl:"https://www.tiktok.com/@jamesokeefe.highlights/video/7669158592406211853"}),WP({title:"JO 8",submitter:"muhammadhashim01",status:"deleted",videoUrl:"",originalUrl:"",views:4,likes:1,comments:0,shares:0}),WP({title:"Huge discovery cross-referencing DHS lists",submitter:"hello_clipp",videoUrl:"https://cdn.contentrewards.com/clips/sample-3.mp4",originalUrl:"https://www.tiktok.com/@hello_clipp/video/7669158592406299999"})];function VP(){const[e,t]=(0,$.useState)(HP),[n,r]=(0,$.useState)([]),i=(0,$.useRef)({}),a=(0,$.useRef)(!1);function s(e,n){t((t=>t.map(((t,r)=>r===e?o(o({},t),n):t))))}function l(e){r((t=>[...t,"".concat((new Date).toLocaleTimeString()," \u2014 ").concat(e)]))}(0,$.useEffect)((()=>{const e=i.current;return()=>Object.values(e).forEach(clearTimeout)}),[]),(0,$.useEffect)((()=>{function n(){if(a.current||e.length>=6)return;window.innerHeight+window.scrollY>=document.body.scrollHeight-300&&(a.current=!0,l("Scrolled near bottom -- loading more cards (simulated network delay)..."),setTimeout((()=>{t((e=>{const t=e.length+1;return[...e,WP({title:"Extra lazy-loaded clip #".concat(t),submitter:"lazyload_user".concat(t),videoUrl:"https://cdn.contentrewards.com/clips/sample-lazy-".concat(t,".mp4"),originalUrl:"https://www.tiktok.com/@lazyload_user".concat(t,"/video/76691585924063").concat(t,"000")})]})),a.current=!1,l("New card loaded from scroll.")}),800))}return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[e.length]),window.__whopClickTest={cards:e,log:n};const c=e.findIndex((e=>"none"!==e.rejectStage)),d=c>=0?e[c]:null;return(0,Xo.jsxs)("div",{className:"whop-click-test-page",children:[(0,Xo.jsxs)("div",{className:"wct-header",children:[(0,Xo.jsx)("h1",{children:"Whop Click-Test Sandbox"}),(0,Xo.jsx)("p",{children:'Real Whop markup, reconstructed from confirmed selectors -- run the extension\'s "Run Clip Review Bot" here to test the actual approve/reject-with-reason/submit click flow before it ever touches the real dashboard.'})]}),e.map(((e,n)=>(0,Xo.jsxs)("div",{className:"wct-card",children:[(0,Xo.jsxs)("div",{className:"analytics-section-bg wct-title-row",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("p",{className:"wct-title",children:e.title}),(0,Xo.jsx)("button",{className:"wct-submitter-btn",type:"button",children:(0,Xo.jsx)("p",{children:e.submitter})})]}),(0,Xo.jsxs)("div",{className:"wct-actions",children:[(0,Xo.jsx)("button",{className:"btn-flag-container",type:"button",title:"Flag",onClick:()=>l("Card ".concat(n,": flag clicked (not wired -- expected no-op)")),children:"\u2691"}),(0,Xo.jsx)("button",{className:"btn-accept-container",type:"button",disabled:"approved"===e.status||"rejected"===e.status,onClick:()=>{s(n,{status:"approved"}),l("Card ".concat(n,' ("').concat(e.title,'"): APPROVED'))},children:"\u2713 Approve"}),(0,Xo.jsx)("button",{className:"btn-reject-container",type:"button",disabled:"approved"===e.status||"rejected"===e.status,onClick:()=>{s(n,{rejectStage:"confirm"}),l("Card ".concat(n,' ("').concat(e.title,'"): reject clicked, c
2onfirm toast shown (auto-dismisses in 5s)')),function(e){clearTimeout(i.current[e]),i.current[e]=setTimeout((()=>{t((t=>t.map(((t,n)=>n===e&&"confirm"===t.rejectStage?o(o({},t),{},{rejectStage:"none"}):t)))),l("Card ".concat(e,": reject toast auto-dismissed after 5s (no reason given in time)"))}),5e3)}(n)},children:"\u2715 Reject"}),(0,Xo.jsx)("button",{className:"btn-warning-container",type:"button",title:"Ban",onClick:()=>l("\u26a0\ufe0f Card ".concat(n,": BAN button clicked -- this should NEVER happen from the bot")),children:"Ban"})]})]}),(0,Xo.jsxs)("div",{className:"wct-meta-row",children:[(0,Xo.jsxs)("span",{children:["Est. payout ",e.payout]}),(0,Xo.jsx)("span",{className:"shield-score-text",children:e.shieldScore}),"pending"===e.status&&(0,Xo.jsx)("span",{className:"pill-neutral-text",children:"Pending"}),"approved"===e.status&&(0,Xo.jsx)("span",{className:"pill-success-text",children:"Approved"}),"rejected"===e.status&&(0,Xo.jsx)("span",{className:"pill-error-text",children:"Rejected"}),"deleted"===e.status&&(0,Xo.jsx)("span",{className:"pill-error-text",children:"Deleted"})]}),"deleted"===e.status?(0,Xo.jsxs)("div",{className:"wct-video-unavailable",children:[(0,Xo.jsx)("p",{children:"Video unavailable"}),(0,Xo.jsx)("p",{children:"This video has been removed by the uploader"})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[e.videoUrl&&(0,Xo.jsx)("video",{src:e.videoUrl,controls:!0,muted:!0}),e.originalUrl&&(0,Xo.jsx)("a",{href:e.originalUrl,target:"_blank",rel:"noreferrer",children:"Watch video"})]}),(0,Xo.jsxs)("div",{className:"analytics-section-bg wct-stats-row",children:[(0,Xo.jsxs)("button",{type:"button",children:[(0,Xo.jsx)("p",{children:"Views"}),(0,Xo.jsx)("p",{children:e.views.toLocaleString()})]}),(0,Xo.jsxs)("button",{type:"button",children:[(0,Xo.jsx)("p",{children:"Likes"}),(0,Xo.jsx)("p",{children:e.likes.toLocaleString()})]}),(0,Xo.jsxs)("button",{type:"button",children:[(0,Xo.jsx)("p",{children:"Comments"}),(0,Xo.jsx)("p",{children:e.comments.toLocaleString()})]}),(0,Xo.jsxs)("button",{type:"button",children:[(0,Xo.jsx)("p",{children:"Shares"}),(0,Xo.jsx)("p",{children:e.shares.toLocaleString()})]})]})]},n))),d&&(0,Xo.jsxs)("div",{className:"wct-toast",children:[(0,Xo.jsxs)("div",{className:"wct-toast-header",children:[(0,Xo.jsx)("span",{className:"toast-icon-warning","aria-hidden":"true",children:"\u26a0"}),(0,Xo.jsx)("span",{className:"toast-title-text",children:"Reject this submission?"}),(0,Xo.jsxs)("div",{className:"wct-toast-header-actions",children:[(0,Xo.jsx)("button",{className:"btn-ghost-container",type:"button",onClick:()=>{clearTimeout(i.current[c]),s(c,{rejectStage:"reason"}),l("Card ".concat(c,': "Give reason" clicked in time, toast expanded'))},children:"Give reason"}),(0,Xo.jsx)("button",{className:"btn-warning-container",type:"button",onClick:()=>l("\u26a0\ufe0f Card ".concat(c,": BAN button clicked (inside reject toast) -- this should NEVER happen from the bot")),children:"Ban"}),(0,Xo.jsx)("button",{className:"wct-toast-close",type:"button",title:"Close",onClick:()=>{clearTimeout(i.current[c]),s(c,{rejectStage:"none"}),l("Card ".concat(c,": toast closed without rejecting"))},children:"\u2715"})]})]}),"confirm"===d.rejectStage&&(0,Xo.jsx)("div",{className:"wct-toast-countdown-track",children:(0,Xo.jsx)("div",{className:"wct-toast-countdown-bar"},c)}),"reason"===d.rejectStage&&(0,Xo.jsxs)("div",{className:"wct-toast-expanded",children:[(0,Xo.jsxs)("div",{className:"wct-toast-input-row",children:[(0,Xo.jsx)("input",{type:"text",placeholder:"Reason for rejection...",value:d.reasonText,onChange:e=>s(c,{reasonText:e.target.value})}),(0,Xo.jsx)("button",{className:"btn-primary-container",type:"button",disabled:!d.reasonText.trim(),onClick:()=>{s(c,{status:"rejected",rejectStage:"none"}),l("Card ".concat(c,' ("').concat(d.title,'"): REJECTED, reason submitted: "').concat(d.reasonText,'"'))},children:"Submit"})]}),(0,Xo.jsx)("div",{className:"wct-quick-reasons",children:GP.map((e=>(0,Xo.jsx)("button",{className:"toast-quick-select-btn",type:"button",onClick:()=>l("Card ".concat(c,': quick-select "').concat(e,'" clicked (should never happen -- bot must use "Give reason" + type a specific reason)')),children:e},e)))})]})]}),(0,Xo.jsxs)("div",{className:"wct-log",children:[(0,Xo.jsx)("h2",{children:"Click log"}),0===n.length&&(0,Xo.jsx)("p",{className:"wct-log-empty",children:"Nothing yet -- run the extension."}),n.map(((e,t)=>(0,Xo.jsx)("div",{children:e},t)))]})]})}const KP="cb_post_auth_return";const qP=()=>{const[e]=An(),t=Vt(),{dispatch:n}=(0,$.useContext)(Qo);return(0,$.useEffect)((()=>{(async()=>{const r=e.get("token"),i=e.get("error");
2if(i)return console.error("Auth error:",i),void t("/login?error="+i);if(r)try{localStorage.setItem("token",r);const e=(await ks.get("/auth/me",{headers:{Authorization:"Bearer ".concat(r)}})).data;localStorage.setItem("user",JSON.stringify(e)),n({type:"LOGIN_SUCCESS",payload:e}),t(function(){try{const e=sessionStorage.getItem(KP);if(sessionStorage.removeItem(KP),"string"===typeof e&&e.startsWith("/")&&!e.startsWith("//"))return e}catch(e){}return"/home"}())}catch(K6){console.error("Auth success error:",K6),localStorage.removeItem("token"),t("/login?error=invalid_token")}else t("/login")})()}),[e,t,n]),(0,Xo.jsxs)("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#0a0a0a",color:"#fff"},children:[(0,Xo.jsxs)("div",{style:{textAlign:"center"},children:[(0,Xo.jsx)("div",{style:{width:40,height:40,border:"3px solid #333",borderTopColor:"#ff6a00",borderRadius:"50%",animation:"spin 1s linear infinite",margin:"0 auto 20px"}}),(0,Xo.jsx)("p",{style:{color:"#888"},children:"Signing you in..."})]}),(0,Xo.jsx)("style",{children:"\n @keyframes spin {\n to { transform: rotate(360deg); }\n }\n "})]})};var YP=n(7514),XP={},JP=function(e,t,n,r){var i=e+"-"+t+"-"+n+(r?"-server":"");if(XP[i])return XP[i];var a=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var a=i.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,i.width,i.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n,r);return XP[i]=a,a},QP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZP=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,a=e.borderRadius,s=e.boxShadow,o=e.children,l=(0,YP.Ay)({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+JP(t,n,r,i.canvas)+") center left"}}});return(0,$.isValidElement)(o)?$.cloneElement(o,QP({},o.props,{style:QP({},o.props.style,l.grid)})):$.createElement("div",{style:l.grid})};ZP.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const $P=ZP;var eR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function nR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var rR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=nR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r,i){var a=i.clientWidth,s=i.clientHeight,o="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,c=o-(i.getBoundingClientRect().left+window.pageXOffset),d=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var u=void 0;if(u=d<0?0:d>s?1:Math.round(100*d/s)/100,t.a!==u)return{h:t.h,s:t.s,l:t.l,a:u,source:"rgb"}}else{var h=void 0;if(r!==(h=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:h,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},nR(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 4,685 bytes, line 2
2(t,e),tR(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,YP.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:eR({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return $.createElement("div",{style:n.alpha},$.createElement("div",{style:n.checkboard},$.createElement($P,{renderers:this.props.renderers})),$.createElement("div",{style:n.gradient}),$.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},$.createElement("div",{style:n.pointer},this.props.pointer?$.createElement(this.props.pointer,this.props):$.createElement("div",{style:n.slider}))))}}]),t}($.PureComponent||$.Component);const iR=rR;var aR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var sR=[38,40],oR=1,lR=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,sR.indexOf(t)>-1)){var i=n.getArrowOffset(),a=38===e.keyCode?r+i:r-i;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+oR++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),aR(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,YP.Ay)({default:{wrap:{position:"relative"}}
2,"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return $.createElement("div",{style:t.wrap},$.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?$.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}($.PureComponent||$.Component);const cR=lR;var dR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function uR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var hR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=uR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=function(e,t,n,r){var i=r.clientWidth,a=r.clientHeight,s="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,o="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r.getBoundingClientRect().left+window.pageXOffset),c=o-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var d=void 0;if(d=c<0?359:c>a?0:360*(-100*c/a+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u=void 0;if(u=l<0?0:l>i?359:100*l/i*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},uR(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),dR(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,YP.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return $.createElement("div",{style:r.hue},$.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},$.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),$.createElement("div",{style:r.pointer},this.props.pointer?$.createElement(this.props.pointer,this.props):$.createElement("div",{style:r.slider}))))}}]),t}($.PureComponent||$.Component);const pR=hR;const mR=function(){this.__data__=[],this.size=0};const fR=function(e,t){return e===t||e!==e&&t!==t};const gR=function(e,t){for(var n=e.length;n--;)if(fR(e[n][0],t))return n;return-1};var vR=Array.prototype.splice;const bR=function(e){var t=this.__data__,n=gR(t,e);return!(n<0)&&(n==t.length-1?t.pop():vR.call(t,n,1),--this.size,!0)};const yR=function(e){var t=this.__data__,n=gR(t,e);return n<0?void 0:t[n][1]};const xR=function(e){return gR(this.__data__,e)>-1};const SR=function(e,t){var n=this.__data__,r=gR(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function kR(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kR.prototype.clear=mR,kR.prototype.delete=bR,kR.prototype.get=yR,kR.prototype.has=xR,kR.prototype.set=SR;const wR=kR;const TR=function(){this.__data__=new wR,this.size=0};const CR=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const ER=function(e){return this.__data__.get(e)};const jR=function(e){return this.__data__.has(e)};const AR="object"==typeof global&&global&&global.Object===Object&&global;var NR="object"==typeof self&&self&&self.Object===Object&&self;const PR=AR||NR||Function("return this")();const RR=PR.Symbol;var LR=Object.prototype,IR=LR.hasOwnProperty,DR=LR.toString,OR=RR?RR.toStringTag:void 0;const MR=function(e){var t=IR.call(e,OR),n=e[OR];try{e[OR]=void 0;var r=!0}catch(Ps){}var i=DR.call(e);
vendor: 5,698 bytes, line 2
2return r&&(t?e[OR]=n:delete e[OR]),i};var _R=Object.prototype.toString;const FR=function(e){return _R.call(e)};var BR=RR?RR.toStringTag:void 0;const UR=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":BR&&BR in Object(e)?MR(e):FR(e)};const zR=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const GR=function(e){if(!zR(e))return!1;var t=UR(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const WR=PR["__core-js_shared__"];var HR=function(){var e=/[^.]+$/.exec(WR&&WR.keys&&WR.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const VR=function(e){return!!HR&&HR in e};var KR=Function.prototype.toString;const qR=function(e){if(null!=e){try{return KR.call(e)}catch(Ps){}try{return e+""}catch(Ps){}}return""};var YR=/^\[object .+?Constructor\]$/,XR=Function.prototype,JR=Object.prototype,QR=XR.toString,ZR=JR.hasOwnProperty,$R=RegExp("^"+QR.call(ZR).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const eL=function(e){return!(!zR(e)||VR(e))&&(GR(e)?$R:YR).test(qR(e))};const tL=function(e,t){return null==e?void 0:e[t]};const nL=function(e,t){var n=tL(e,t);return eL(n)?n:void 0};const rL=nL(PR,"Map");const iL=nL(Object,"create");const aL=function(){this.__data__=iL?iL(null):{},this.size=0};const sL=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var oL=Object.prototype.hasOwnProperty;const lL=function(e){var t=this.__data__;if(iL){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return oL.call(t,e)?t[e]:void 0};var cL=Object.prototype.hasOwnProperty;const dL=function(e){var t=this.__data__;return iL?void 0!==t[e]:cL.call(t,e)};const uL=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=iL&&void 0===t?"__lodash_hash_undefined__":t,this};function hL(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hL.prototype.clear=aL,hL.prototype.delete=sL,hL.prototype.get=lL,hL.prototype.has=dL,hL.prototype.set=uL;const pL=hL;const mL=function(){this.size=0,this.__data__={hash:new pL,map:new(rL||wR),string:new pL}};const fL=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const gL=function(e,t){var n=e.__data__;return fL(t)?n["string"==typeof t?"string":"hash"]:n.map};const vL=function(e){var t=gL(this,e).delete(e);return this.size-=t?1:0,t};const bL=function(e){return gL(this,e).get(e)};const yL=function(e){return gL(this,e).has(e)};const xL=function(e,t){var n=gL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function SL(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}SL.prototype.clear=mL,SL.prototype.delete=vL,SL.prototype.get=bL,SL.prototype.has=yL,SL.prototype.set=xL;const kL=SL;const wL=function(e,t){var n=this.__data__;if(n instanceof wR){var r=n.__data__;if(!rL||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new kL(r)}return n.set(e,t),this.size=n.size,this};function TL(e){var t=this.__data__=new wR(e);this.size=t.size}TL.prototype.clear=TR,TL.prototype.delete=CR,TL.prototype.get=ER,TL.prototype.has=jR,TL.prototype.set=wL;const CL=TL;const EL=function(){try{var e=nL(Object,"defineProperty");return e({},"",{}),e}catch(Ps){}}();const jL=function(e,t,n){"__proto__"==t&&EL?EL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};const AL=function(e,t,n){(void 0!==n&&!fR(e[t],n)||void 0===n&&!(t in e))&&jL(e,t,n)};const NL=function(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++i];if(!1===n(a[l],l,a))break}return t}}();var PL="object"==typeof exports&&exports&&!exports.nodeType&&exports,RL=PL&&"object"==typeof module&&module&&!module.nodeType&&module,LL=RL&&RL.exports===PL?PR.Buffer:void 0,IL=LL?LL.allocUnsafe:void 0;const DL=function(e,t){if(t)return e.slice();var n=e.length,r=IL?IL(n):new e.constructor(n);return e.copy(r),r};const OL=PR.Uint8Array;const ML=function(e){var t=new e.constructor(e.byteLength);return new OL(t).set(new OL(e)),t};const _L=function(e,t){var n=t?ML(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const FL=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var BL=Object.create;const UL=function(){function e(){}return function(t){if(!zR(t))return{};if(BL)return BL(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zL=function(e,t){return function(n){return e(t(n))}};const GL=zL(Object.getPrototypeOf,Object);var WL=Object.prototype;const HL=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||WL)};const VL=function(e){return"function"!=typeof e.constructor||HL(e)?{}:UL(GL(e))};const KL=function(e){return null!=e&&"object"==typeof e};const qL=function(e){return KL(e)&&"[object Arguments]"==UR(e)};var YL=Object.prototype,XL=YL.hasOwnProperty,JL=YL.propertyIsEnumerable,QL=qL(function(){return arguments}())?qL:function(e){return KL(e)&&XL.call(e,"callee")&&!JL.call(e,"callee")};const ZL=QL;const $L=Array.isArray;const eI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const tI=function(e){return null!=e&&eI(e.length)&&!GR(e)};const nI=function(e){return KL(e)&&tI(e)};const rI=function(){return!1};var iI="object"==typeof exports&&exports&&!exports.nodeType&&exports,aI=iI&&"object"==typeof module&&module&&!module.nodeType&&module,sI=aI&&aI.exports===iI?PR.Buffer:void 0;const oI=(sI?sI.isBuffer:void 0)||rI;var lI=Function.prototype,cI=Object.prototype,dI=lI.toString,uI=cI.hasOwnProperty,hI=dI.c
vendor: 4,410 bytes, line 2
2all(Object);const pI=function(e){if(!KL(e)||"[object Object]"!=UR(e))return!1;var t=GL(e);if(null===t)return!0;var n=uI.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dI.call(n)==hI};var mI={};mI["[object Float32Array]"]=mI["[object Float64Array]"]=mI["[object Int8Array]"]=mI["[object Int16Array]"]=mI["[object Int32Array]"]=mI["[object Uint8Array]"]=mI["[object Uint8ClampedArray]"]=mI["[object Uint16Array]"]=mI["[object Uint32Array]"]=!0,mI["[object Arguments]"]=mI["[object Array]"]=mI["[object ArrayBuffer]"]=mI["[object Boolean]"]=mI["[object DataView]"]=mI["[object Date]"]=mI["[object Error]"]=mI["[object Function]"]=mI["[object Map]"]=mI["[object Number]"]=mI["[object Object]"]=mI["[object RegExp]"]=mI["[object Set]"]=mI["[object String]"]=mI["[object WeakMap]"]=!1;const fI=function(e){return KL(e)&&eI(e.length)&&!!mI[UR(e)]};const gI=function(e){return function(t){return e(t)}};var vI="object"==typeof exports&&exports&&!exports.nodeType&&exports,bI=vI&&"object"==typeof module&&module&&!module.nodeType&&module,yI=bI&&bI.exports===vI&&AR.process,xI=function(){try{var e=bI&&bI.require&&bI.require("util").types;return e||yI&&yI.binding&&yI.binding("util")}catch(Ps){}}();var SI=xI&&xI.isTypedArray;const kI=SI?gI(SI):fI;const wI=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]};var TI=Object.prototype.hasOwnProperty;const CI=function(e,t,n){var r=e[t];TI.call(e,t)&&fR(r,n)&&(void 0!==n||t in e)||jL(e,t,n)};const EI=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?jL(n,o,l):CI(n,o,l)}return n};const jI=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var AI=/^(?:0|[1-9]\d*)$/;const NI=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&AI.test(e))&&e>-1&&e%1==0&&e<t};var PI=Object.prototype.hasOwnProperty;const RI=function(e,t){var n=$L(e),r=!n&&ZL(e),i=!n&&!r&&oI(e),a=!n&&!r&&!i&&kI(e),s=n||r||i||a,o=s?jI(e.length,String):[],l=o.length;for(var c in e)!t&&!PI.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||NI(c,l))||o.push(c);return o};const LI=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var II=Object.prototype.hasOwnProperty;const DI=function(e){if(!zR(e))return LI(e);var t=HL(e),n=[];for(var r in e)("constructor"!=r||!t&&II.call(e,r))&&n.push(r);return n};const OI=function(e){return tI(e)?RI(e,!0):DI(e)};const MI=function(e){return EI(e,OI(e))};const _I=function(e,t,n,r,i,a,s){var o=wI(e,n),l=wI(t,n),c=s.get(l);if(c)AL(e,n,c);else{var d=a?a(o,l,n+"",e,t,s):void 0,u=void 0===d;if(u){var h=$L(l),p=!h&&oI(l),m=!h&&!p&&kI(l);d=l,h||p||m?$L(o)?d=o:nI(o)?d=FL(o):p?(u=!1,d=DL(l,!0)):m?(u=!1,d=_L(l,!0)):d=[]:pI(l)||ZL(l)?(d=o,ZL(o)?d=MI(o):zR(o)&&!GR(o)||(d=VL(l))):u=!1}u&&(s.set(l,d),i(d,l,r,a,s),s.delete(l)),AL(e,n,d)}};const FI=function e(t,n,r,i,a){t!==n&&NL(n,(function(s,o){if(a||(a=new CL),zR(s))_I(t,n,o,r,e,i,a);else{var l=i?i(wI(t,o),s,o+"",t,n,a):void 0;void 0===l&&(l=s),AL(t,o,l)}}),OI)};const BI=function(e){return e};const UI=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var zI=Math.max;const GI=function(e,t,n){return t=zI(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=zI(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(s),UI(e,this,o)}};const WI=function(e){return function(){return e}};const HI=EL?function(e,t){return EL(e,"toString",{configurable:!0,enumerable:!1,value:WI(t),writable:!0})}:BI;var VI=Date.now;const KI=function(e){var t=0,n=0;return function(){var r=VI(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};const qI=KI(HI);const YI=function(e,t){return qI(GI(e,t,BI),e+"")};const XI=function(e,t,n){if(!zR(n))return!1;var r=typeof t;return!!("number"==r?tI(n)&&NI(t,n.length):"string"==r&&t in n)&&fR(n[t],e)};const JI=function(e){return YI((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&XI(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,a)}return t}))}
2((function(e,t,n){FI(e,t,n)}));var QI=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,a=e.styles,s=void 0===a?{}:a,o=(0,YP.Ay)(JI({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":1===t});return $.createElement("div",{style:o.wrap},$.createElement("div",{style:o.bg}),$.createElement("div",{style:o.content},i))};QI.propTypes={background:Pd().string,zDepth:Pd().oneOf([0,1,2,3,4,5]),radius:Pd().number,styles:Pd().object},QI.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const ZI=QI;const $I=function(){return PR.Date.now()};var eD=/\s/;const tD=function(e){for(var t=e.length;t--&&eD.test(e.charAt(t)););return t};var nD=/^\s+/;const rD=function(e){return e?e.slice(0,tD(e)+1).replace(nD,""):e};const iD=function(e){return"symbol"==typeof e||KL(e)&&"[object Symbol]"==UR(e)};var aD=/^[-+]0x[0-9a-f]+$/i,sD=/^0b[01]+$/i,oD=/^0o[0-7]+$/i,lD=parseInt;const cD=function(e){if("number"==typeof e)return e;if(iD(e))return NaN;if(zR(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zR(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=rD(e);var n=sD.test(e);return n||oD.test(e)?lD(e.slice(2),n?2:8):aD.test(e)?NaN:+e};var dD=Math.max,uD=Math.min;const hD=function(e,t,n){var r,i,a,s,o,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=i;return r=i=void 0,c=t,s=e.apply(a,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=a}function f(){var e=$I();if(m(e))return g(e);o=setTimeout(f,function(e){var n=t-(e-l);return u?uD(n,a-(e-c)):n}(e))}function g(e){return o=void 0,h&&r?p(e):(r=i=void 0,s)}function v(){var e=$I(),n=m(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return function(e){return c=e,o=setTimeout(f,t),d?p(e):s}(l);if(u)return clearTimeout(o),o=setTimeout(f,t),p(l)}return void 0===o&&(o=setTimeout(f,t)),s}return t=cD(t)||0,zR(n)&&(d=!!n.leading,a=(u="maxWait"in n)?dD(cD(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},v.flush=function(){return void 0===o?s:g($I())},v};const pD=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return zR(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),hD(e,t,{leading:r,maxWait:t,trailing:i})};var mD=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var fD=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"===typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,a=r.height,s="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,o="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=o-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),c<0?c=0:c>a&&(c=a);var d=l/i,u=1-c/a;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=pD((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 5,615 bytes, line 2
2(t,e),mD(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,a=t.pointer,s=t.circle,o=(0,YP.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:a,circle:s}},{custom:!!this.props.style});return $.createElement("div",{style:o.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},$.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),$.createElement("div",{style:o.white,className:"saturation-white"},$.createElement("div",{style:o.black,className:"saturation-black"}),$.createElement("div",{style:o.pointer},this.props.pointer?$.createElement(this.props.pointer,this.props):$.createElement("div",{style:o.circle}))))}}]),t}($.PureComponent||$.Component);const gD=fD;const vD=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const bD=zL(Object.keys,Object);var yD=Object.prototype.hasOwnProperty;const xD=function(e){if(!HL(e))return bD(e);var t=[];for(var n in Object(e))yD.call(e,n)&&"constructor"!=n&&t.push(n);return t};const SD=function(e){return tI(e)?RI(e):xD(e)};const kD=function(e,t){return function(n,r){if(null==n)return n;if(!tI(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==r(s[a],a,s););return n}}((function(e,t){return e&&NL(e,t,SD)}));const wD=function(e){return"function"==typeof e?e:BI};const TD=function(e,t){return($L(e)?vD:kD)(e,wD(t))};function CD(e){return CD="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},CD(e)}var ED=/^\s+/,jD=/\s+$/;function AD(e,t){if(t=t||{},(e=e||"")instanceof AD)return e;if(!(this instanceof AD))return new AD(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;"string"==typeof e&&(e=function(e){e=e.replace(ED,"").replace(jD,"").toLowerCase();var t,n=!1;if(VD[e])e=VD[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=tO.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=tO.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=tO.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=tO.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=tO.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=tO.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=tO.hex8.exec(e))return{r:JD(t[1]),g:JD(t[2]),b:JD(t[3]),a:eO(t[4]),format:n?"name":"hex8"};if(t=tO.hex6.exec(e))return{r:JD(t[1]),g:JD(t[2]),b:JD(t[3]),format:n?"name":"hex"};if(t=tO.hex4.exec(e))return{r:JD(t[1]+""+t[1]),g:JD(t[2]+""+t[2]),b:JD(t[3]+""+t[3]),a:eO(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=tO.hex3.exec(e))return{r:JD(t[1]+""+t[1]),g:JD(t[2]+""+t[2]),b:JD(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==CD(e)&&(nO(e.r)&&nO(e.g)&&nO(e.b)?(t=function(e,t,n){return{r:255*YD(e,255),g:255*YD(t,255),b:255*YD(n,255)}}(e.r,e.g,e.b),s=!0,o="%"===String(e.r).substr(-1)?"prgb":"rgb"):nO(e.h)&&nO(e.s)&&nO(e.v)?(r=ZD(e.s),i=ZD(e.v),t=function(e,t,n){e=6*YD(e,360),t=YD(t,100),n=YD(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),o=n*(1-(1-i)*t),l=r%6,c=[n,s,a,a,o,n][l],d=[o,n,n,s,a,a][l],u=[a,a,o,n,n,s][l];return{r:255*c,g:255*d,b:255*u}}(e.h,r,i),s=!0,o="hsv"):nO(e.h)&&nO(e.s)&&nO(e.l)&&(r=ZD(e.s),a=ZD(e.l),t=function(e,t,n){var r,i,a;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=YD(e,360),t=YD(t,100),n=YD(n,100),0===t)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=s(l,o,e+1/3),i=s(l,o,e),a=s(l,o,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a));return n=qD(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function ND(e,t,n){e=YD(e,255),t=YD(t,255),n=YD(n,255);
vendor: 1,444 bytes, line 2
2var r,i,a=Math.max(e,t,n),s=Math.min(e,t,n),o=(a+s)/2;if(a==s)r=i=0;else{var l=a-s;switch(i=o>.5?l/(2-a-s):l/(a+s),a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:o}}function PD(e,t,n){e=YD(e,255),t=YD(t,255),n=YD(n,255);var r,i,a=Math.max(e,t,n),s=Math.min(e,t,n),o=a,l=a-s;if(i=0===a?0:l/a,a==s)r=0;else{switch(a){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:o}}function RD(e,t,n,r){var i=[QD(Math.round(e).toString(16)),QD(Math.round(t).toString(16)),QD(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function LD(e,t,n,r){return[QD($D(r)),QD(Math.round(e).toString(16)),QD(Math.round(t).toString(16)),QD(Math.round(n).toString(16))].join("")}function ID(e,t){t=0===t?0:t||10;var n=AD(e).toHsl();return n.s-=t/100,n.s=XD(n.s),AD(n)}function DD(e,t){t=0===t?0:t||10;var n=AD(e).toHsl();return n.s+=t/100,n.s=XD(n.s),AD(n)}function OD(e){return AD(e).desaturate(100)}function MD(e,t){t=0===t?0:t||10;var n=AD(e).toHsl();return n.l+=t/100,n.l=XD(n.l),AD(n)}function _D(e,t){t=0===t?0:t||10;var n=AD(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),AD(n)}
vendor: 6,754 bytes, line 2
2function FD(e,t){t=0===t?0:t||10;var n=AD(e).toHsl();return n.l-=t/100,n.l=XD(n.l),AD(n)}function BD(e,t){var n=AD(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,AD(n)}function UD(e){var t=AD(e).toHsl();return t.h=(t.h+180)%360,AD(t)}function zD(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=AD(e).toHsl(),r=[AD(e)],i=360/t,a=1;a<t;a++)r.push(AD({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function GD(e){var t=AD(e).toHsl(),n=t.h;return[AD(e),AD({h:(n+72)%360,s:t.s,l:t.l}),AD({h:(n+216)%360,s:t.s,l:t.l})]}function WD(e,t,n){t=t||6,n=n||30;var r=AD(e).toHsl(),i=360/n,a=[AD(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(AD(r));return a}function HD(e,t){t=t||6;for(var n=AD(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;t--;)s.push(AD({h:r,s:i,v:a})),a=(a+o)%1;return s}AD.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=qD(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=PD(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=PD(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=ND(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ND(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return RD(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[QD(Math.round(e).toString(16)),QD(Math.round(t).toString(16)),QD(Math.round(n).toString(16)),QD($D(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*YD(this._r,255))+"%",g:Math.round(100*YD(this._g,255))+"%",b:Math.round(100*YD(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*YD(this._r,255))+"%, "+Math.round(100*YD(this._g,255))+"%, "+Math.round(100*YD(this._b,255))+"%)":"rgba("+Math.round(100*YD(this._r,255))+"%, "+Math.round(100*YD(this._g,255))+"%, "+Math.round(100*YD(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(KD[RD(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+LD(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=AD(e);n="#"+LD(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return AD(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(MD,arguments)},brighten:function(){return this._applyModification(_D,arguments)},darken:function(){return this._applyModification(FD,arguments)},desaturate:function(){return this._applyModification(ID,arguments)},saturate:function(){return this._applyModification(DD,arguments)},greyscale:function(){return this._applyModification(OD,arguments)},spin:function(){return this._applyModification(BD,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(WD,arguments)},complement:function(){return this._applyCombination(UD,arguments)},monochromatic:function(){return this._applyCombination(HD,arguments)},splitcomplement:function(){return this._applyCombination(GD,arguments)},triad:function(){return this._applyCombination(zD,[3])},tetrad:function(){return this._applyCombination(zD,[4])}},AD.fromRatio=function(e,t){if("object"==CD(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:ZD(e[r]));e=n}return AD(e,t)},AD.equals=function(e,t){return!(!e||!t)&&AD(e).toRgbString()==AD(t).toRgbString()},AD.random=function(){return AD.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},AD.mix=function(e,t,n){n=0===n?0:n||50;var r=AD(e).toRgb(),i=AD(t).toRgb(),a=n/100;return AD({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},AD.readability=function(e,t){var n=AD(e),r=AD(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},AD.isReadable=function(e,t,n){var r,i,a=AD.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},AD.mostReadable=function(e,t,n){var r,i,a,s,o=null,l=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;
vendor: 1,589 bytes, line 2
2for(var c=0;c<t.length;c++)(r=AD.readability(e,t[c]))>l&&(l=r,o=AD(t[c]));return AD.isReadable(e,o,{level:a,size:s})||!i?o:(n.includeFallbackColors=!1,AD.mostReadable(e,["#fff","#000"],n))};var VD=AD.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
20",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},KD=AD.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(VD);function qD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function YD(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function XD(e){return Math.min(1,Math.max(0,e))}function JD(e){return parseInt(e,16)}function QD(e){return 1==e.length?"0"+e:""+e}function ZD(e){return e<=1&&(e=100*e+"%"),e}function $D(e){return Math.round(255*parseFloat(e)).toString(16)}function eO(e){return JD(e)/255}var tO=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"
vendor: 5,449 bytes, line 2
2+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function nO(e){return!!tO.CSS_UNIT.exec(e)}var rO=function(e){var t=0,n=0;return TD(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},iO=function(e,t){var n=e.hex?AD(e.hex):AD(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},aO=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&AD(e).isValid()},sO=function(e){if(!e)return"#fff";var t=iO(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},oO=function(e,t){return AD(t+" ("+e.replace("\xb0","")+")")._ok},lO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();const dO=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(rO(e)){var r=iO(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(rO(e)){var r=iO(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=lO({},iO(e.color,0)),t.debounce=hD((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),cO(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),$.createElement(e,lO({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return lO({},iO(e.color,t.oldHue))}}]),n}($.PureComponent||$.Component);return t.propTypes=lO({},e.propTypes),t.defaultProps=lO({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var uO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hO=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function pO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var mO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const fO=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=n=pO(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},pO(n,t)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),hO(r,[{key:"render",value:function(){return $.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},$.createElement(e,uO({},this.props,this.state)))}}]),r}($.Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,i=void 0===r?function(){}:r,a=e.onHover,s=e.title,o=void 0===s?t:s,l=e.children,c=e.focus,d=e.focusStyle,u=void 0===d?{}:d,h="transparent"===t,p=(0,YP.Ay)({default:{swatch:mO({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?u:{})}}),m={};return a&&(m.onMouseOver=function(e){return a(t,e)}),$.createElement("div",mO({style:p.swatch,onClick:function(e){return i(t,e)},title:o,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},m),l,h&&$.createElement($P,{borderRadius:p.swatch.borderRadius,boxSh
vendor: 5,258 bytes, line 2
2adow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const gO=function(e){var t=e.direction,n=(0,YP.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return $.createElement("div",{style:n.picker})};var vO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bO=function(e){var t=e.rgb,n=e.hsl,r=e.width,i=e.height,a=e.onChange,s=e.direction,o=e.style,l=e.renderers,c=e.pointer,d=e.className,u=void 0===d?"":d,h=(0,YP.Ay)({default:{picker:{position:"relative",width:r,height:i},alpha:{radius:"2px",style:o}}});return $.createElement("div",{style:h.picker,className:"alpha-picker "+u},$.createElement(iR,vO({},h.alpha,{rgb:t,hsl:n,pointer:c,renderers:l,onChange:a,direction:s})))};bO.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:gO};dO(bO);const yO=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};const xO=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const SO=function(e){return this.__data__.has(e)};function kO(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new kL;++t<n;)this.add(e[t])}kO.prototype.add=kO.prototype.push=xO,kO.prototype.has=SO;const wO=kO;const TO=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const CO=function(e,t){return e.has(t)};const EO=function(e,t,n,r,i,a){var s=1&n,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,p=2&n?new wO:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var m=e[u],f=t[u];if(r)var g=s?r(f,m,u,t,e,a):r(m,f,u,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!TO(t,(function(e,t){if(!CO(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(m!==f&&!i(m,f,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h};const jO=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const AO=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var NO=RR?RR.prototype:void 0,PO=NO?NO.valueOf:void 0;const RO=function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new OL(e),new OL(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fR(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=jO;case"[object Set]":var l=1&r;if(o||(o=AO),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var d=EO(o(e),o(t),r,i,a,s);return s.delete(e),d;case"[object Symbol]":if(PO)return PO.call(e)==PO.call(t)}return!1};const LO=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};const IO=function(e,t,n){var r=t(e);return $L(e)?r:LO(r,n(e))};const DO=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a};const OO=function(){return[]};var MO=Object.prototype.propertyIsEnumerable,_O=Object.getOwnPropertySymbols;const FO=_O?function(e){return null==e?[]:(e=Object(e),DO(_O(e),(function(t){return MO.call(e,t)})))}:OO;const BO=function(e){return IO(e,SD,FO)};var UO=Object.prototype.hasOwnProperty;const zO=function(e,t,n,r,i,a){var s=1&n,o=BO(e),l=o.length;if(l!=BO(t).length&&!s)return!1;for(var c=l;c--;){var d=o[c];if(!(s?d in t:UO.call(t,d)))return!1}var u=a.get(e),h=a.get(t);if(u&&h)return u==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<l;){var f=e[d=o[c]],g=t[d];if(r)var v=s?r(g,f,d,t,e,a):r(f,g,d,e,t,a);if(!(void 0===v?f===g||i(f,g,n,r,a):v)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p};const GO=nL(PR,"DataView");const WO=nL(PR,"Promise");const HO=nL(PR,"Set");const VO=nL(PR,"WeakMap");var KO="[object Map]",qO="[object Promise]",YO="[object Set]",XO="[object WeakMap]",JO="[object DataView]",QO=qR(GO),ZO=qR(rL),$O=qR(WO),eM=qR(HO),tM=qR(VO),nM=UR;(GO&&nM(new GO(new ArrayBuffer(1)))!=JO||rL&&nM(new rL)!=KO||WO&&nM(WO.resolve())!=qO||HO&&nM(new HO)!=YO||VO&&nM(new VO)!=XO)&&(nM=function(e){var t=UR(e),n="[object Object]"==t?e.constructor:void 0,r=n?qR(n):"";if(r)switch(r){case QO:return JO;case ZO:return KO;case $O:return qO;case eM:return YO;case tM:return XO}return t});const rM=nM;var iM="[object Arguments]",aM="[object Array]",sM="[object Object]",oM=Object.prototype.hasOwnProperty;const lM=function(e,t,n,r,i,a){var s=$L(e),o=$L(t),l=s?aM:rM(e),c=o?aM:rM(t),d=(l=l==iM?sM:l)==sM,u=(c=c==iM?sM:c)==sM,h=l==c;if(h&&oI(e)){if(!oI(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new CL),s||kI(e)?EO(e,t,n,r,i,a):RO(e,t,l,n,r,i,a);if(!(1&n)){var p=d&&oM.call(e,"__wrapped__"),m=u&&oM.call(t,"__wrapped__");
2if(p||m){var f=p?e.value():e,g=m?t.value():t;return a||(a=new CL),i(f,g,n,r,a)}}return!!h&&(a||(a=new CL),zO(e,t,n,r,i,a))};const cM=function e(t,n,r,i,a){return t===n||(null==t||null==n||!KL(t)&&!KL(n)?t!==t&&n!==n:lM(t,n,r,i,e,a))};const dM=function(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Object(e);i--;){var o=n[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var l=(o=n[i])[0],c=e[l],d=o[1];if(s&&o[2]){if(void 0===c&&!(l in e))return!1}else{var u=new CL;if(r)var h=r(c,d,l,e,t,u);if(!(void 0===h?cM(d,c,3,r,u):h))return!1}}return!0};const uM=function(e){return e===e&&!zR(e)};const hM=function(e){for(var t=SD(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,uM(i)]}return t};const pM=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const mM=function(e){var t=hM(e);return 1==t.length&&t[0][2]?pM(t[0][0],t[0][1]):function(n){return n===e||dM(n,e,t)}};var fM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gM=/^\w*$/;const vM=function(e,t){if($L(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!iD(e))||(gM.test(e)||!fM.test(e)||null!=t&&e in Object(t))};function bM(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(bM.Cache||kL),n}bM.Cache=kL;const yM=bM;const xM=function(e){var t=yM(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t};var SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kM=/\\(\\)?/g,wM=xM((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(SM,(function(e,n,r,i){t.push(r?i.replace(kM,"$1"):n||e)})),t}));const TM=wM;var CM=RR?RR.prototype:void 0,EM=CM?CM.toString:void 0;const jM=function e(t){if("string"==typeof t)return t;if($L(t))return yO(t,e)+"";if(iD(t))return EM?EM.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const AM=function(e){return null==e?"":jM(e)};const NM=function(e,t){return $L(e)?e:vM(e,t)?[e]:TM(AM(e))};const PM=function(e){if("string"==typeof e||iD(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const RM=function(e,t){for(var n=0,r=(t=NM(t,e)).length;null!=e&&n<r;)e=e[PM(t[n++])];return n&&n==r?e:void 0};const LM=function(e,t,n){var r=null==e?void 0:RM(e,t);return void 0===r?n:r};const IM=function(e,t){return null!=e&&t in Object(e)};const DM=function(e,t,n){for(var r=-1,i=(t=NM(t,e)).length,a=!1;++r<i;){var s=PM(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&eI(i)&&NI(s,i)&&($L(e)||ZL(e))};const OM=function(e,t){return null!=e&&DM(e,t,IM)};const MM=function(e,t){return vM(e)&&uM(t)?pM(PM(e),t):function(n){var r=LM(n,e);return void 0===r&&r===t?OM(n,e):cM(t,r,3)}};const _M=function(e){return function(t){return null==t?void 0:t[e]}};const FM=function(e){return function(t){return RM(t,e)}};const BM=function(e){return vM(e)?_M(PM(e)):FM(e)};const UM=function(e){return"function"==typeof e?e:null==e?BI:"object"==typeof e?$L(e)?MM(e[0],e[1]):mM(e):BM(e)};const zM=function(e,t){var n=-1,r=tI(e)?Array(e.length):[];return kD(e,(function(e,i,a){r[++n]=t(e,i,a)})),r};const GM=function(e,t){return($L(e)?yO:zM)(e,UM(t,3))};const WM=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,i=(0,YP.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return $.createElement("div",{style:i.swatches},GM(t,(function(e){return $.createElement(fO,{key:e,color:e,style:i.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),$.createElement("div",{style:i.clear}))};var HM=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,o=e.styles,l=void 0===o?{}:o,c=e.className,d=void 0===c?"":c,u="transparent"===r,h=function(e,n){aO(e)&&t({hex:e,source:"hex"},n)},p=(0,YP.Ay)(JI({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:sO(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":"hide"===s});return $.createElement("div",{style:p.card,className:"block-picker "+d},$.createElement("div",{style:p.triangle}),$.createElement("div",{style:p.head},u&&$.createElement($P,{borderRadius:"6px 6px 0 0"}),$.createElement("div",{style:p.label},r)),$.createElement("div",{style:p.body},$.createElement(WM,{colors:i,onClick:h,onSwatchHover:n}),$.createElement(cR,{style:{input:p.input},value:r,onChange:h})))};HM.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),colors:Pd().arrayOf(Pd().string),triangle:Pd().oneOf(["top","hide"]),styles:Pd().object},HM.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};dO(HM);var VM={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},KM={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a
2700:"#c51162"},qM={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},YM={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},XM={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},JM={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},QM={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},ZM={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},$M={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},e_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},t_={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},n_={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},r_={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},i_={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},a_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},s_={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},o_={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},l_={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var c_=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,i=e.hover,a=e.active,s=e.circleSize,o=e.circleSpacing,l=(0,YP.Ay)({default:{swatch:{width:s,height:s,marginRight:o,marginBottom:o,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:a});return $.createElement("div",{style:l.swatch},$.createElement(fO,{style:l.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+t}}))};c_.defaultProps={circleSize:28,circleSpacing:14};const d_=(0,YP.H8)(c_);var u_=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,i=e.colors,a=e.hex,s=e.circleSize,o=e.styles,l=void 0===o?{}:o,c=e.circleSpacing,d=e.className,u=void 0===d?"":d,h=(0,YP.Ay)(JI({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),p=function(e,t){return n({hex:e,source:"hex"},t)};return $.createElement("div",{style:h.card,className:"circle-picker "+u},GM(i,(function(e){return $.createElement(d_,{key:e,color:e,onClick:p,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:s,circleSpacing:c})})))};u_.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),circleSize:Pd().number,cir
2cleSpacing:Pd().number,styles:Pd().object},u_.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[VM[500],KM[500],qM[500],YM[500],XM[500],JM[500],QM[500],ZM[500],$M[500],e_[500],t_[500],n_[500],r_[500],i_[500],a_[500],s_[500],o_[500],l_[500]],styles:{}};dO(u_);const h_=function(e){return void 0===e};var p_=n(9128),m_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var f_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?aO(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(h_(e.s)?n.props.hsl.s:e.s),l:Number(h_(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m_(t,[{key:"render",value:function(){var e=this,t=(0,YP.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=$.createElement("div",{style:t.fields,className:"flexbox-fix"},$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=$.createElement("div",{style:t.fields,className:"flexbox-fix"},$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label}
2,label:"r",value:this.props.rgb.r,onChange:this.handleChange})),$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),$.createElement("div",{style:t.alpha},$.createElement(cR,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=$.createElement("div",{style:t.fields,className:"flexbox-fix"},$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),$.createElement("div",{style:t.field},$.createElement(cR,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),$.createElement("div",{style:t.alpha},$.createElement(cR,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),$.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,$.createElement("div",{style:t.toggle},$.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},$.createElement(p_.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}($.Component);f_.defaultProps={view:"hex"};const g_=f_;const v_=function(){var e=(0,YP.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return $.createElement("div",{style:e.picker})};const b_=function(){var e=(0,YP.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return $.createElement("div",{style:e.picker})};var y_=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,s=e.hsv,o=e.hex,l=e.renderers,c=e.styles,d=void 0===c?{}:c,u=e.className,h=void 0===u?"":u,p=e.defaultView,m=(0,YP.Ay)(JI({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return $.createElement("div",{style:m.picker,className:"chrome-picker "+h},$.createElement("div",{style:m.saturation},$.createElement(gD,{style:m.Saturation,hsl:a,hsv:s,pointer:b_,onChange:n})),$.createElement("div",{style:m.body},$.createElement("div",{style:m.controls,className:"flexbox-fix"},$.createElement("div",{style:m.color},$.createElement("div",{style:m.swatch},$.createElement("div",{style:m.active}),$.createElement($P,{renderers:l}))),$.createElement("div",{style:m.toggles},$.createElement("div",{style:m.hue},$.createElement(pR,{style:m.Hue,hsl:a,pointer:v_,onChange:n})),$.createElement("div",{style:m.alpha},$.createElement(iR,{style:m.Alpha,rgb:i,hsl:a,pointer:v_,renderers:l,onChange:n})))),$.createElement(g_,{rgb:i,hsl:a,hex:o,view:p,onChange:n,disableAlpha:r})))};
2y_.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),disableAlpha:Pd().bool,styles:Pd().object,defaultView:Pd().oneOf(["hex","rgb","hsl"])},y_.defaultProps={width:225,disableAlpha:!1,styles:{}};dO(y_);const x_=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.active,s=(0,YP.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:sO(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return $.createElement(fO,{style:s.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},$.createElement("div",{style:s.dot}))};const S_=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,YP.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return $.createElement("div",{style:i.fields,className:"flexbox-fix"},$.createElement("div",{style:i.active}),$.createElement(cR,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:a}),$.createElement(cR,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:a}),$.createElement(cR,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:a}),$.createElement(cR,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:a}))};var k_=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,s=e.styles,o=void 0===s?{}:s,l=e.className,c=void 0===l?"":l,d=(0,YP.Ay)(JI({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},o)),u=function(e,n){e.hex?aO(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return $.createElement(ZI,{style:d.Compact,styles:o},$.createElement("div",{style:d.compact,className:"compact-picker "+c},$.createElement("div",null,GM(r,(function(e){return $.createElement(x_,{key:e,color:e,active:e.toLowerCase()===i,onClick:u,onSwatchHover:n})})),$.createElement("div",{style:d.clear})),$.createElement(S_,{hex:i,rgb:a,onChange:u})))};k_.propTypes={colors:Pd().arrayOf(Pd().string),styles:Pd().object},k_.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};dO(k_);const w_=(0,YP.H8)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,YP.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return $.createElement("div",{style:s.swatch},$.createElement(fO,{color:n,onClick:r,onHover:i,focusStyle:a}))}));var T_=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,s=e.styles,o=void 0===s?{}:s,l=e.className,c=void 0===l?"":l,d=(0,YP.Ay)(JI({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},o),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),u=function(e,t){return r({hex:e,source:"hex"},t)};return $.createElement("div",{style:d.card,className:"github-picker "+c},$.createElement("div",{style:d.triangleShadow}),$.createElement("div",{style:d.triangle}),GM(n,(function(e){return $.createElement(w_,{color:e,key:e,onClick:u,onSwatchHover:i})})))};T_.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),colors:Pd().arrayOf(Pd().string),triangle:Pd().oneOf(["hide","to
2p-left","top-right","bottom-left","bottom-right"]),styles:Pd().object},T_.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};dO(T_);const C_=function(e){var t=e.direction,n=(0,YP.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return $.createElement("div",{style:n.picker})};var E_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j_=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.hsl,a=e.direction,s=e.pointer,o=e.styles,l=void 0===o?{}:o,c=e.className,d=void 0===c?"":c,u=(0,YP.Ay)(JI({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},l));return $.createElement("div",{style:u.picker,className:"hue-picker "+d},$.createElement(pR,E_({},u.hue,{hsl:i,pointer:s,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};j_.propTypes={styles:Pd().object},j_.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:C_,styles:{}};dO(j_);dO((function(e){var t=e.onChange,n=e.hex,r=e.rgb,i=e.styles,a=void 0===i?{}:i,s=e.className,o=void 0===s?"":s,l=(0,YP.Ay)(JI({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(e,n){e.hex?aO(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return $.createElement(ZI,{styles:a},$.createElement("div",{style:l.material,className:"material-picker "+o},$.createElement(cR,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),$.createElement("div",{style:l.split,className:"flexbox-fix"},$.createElement("div",{style:l.third},$.createElement(cR,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:r.r,onChange:c})),$.createElement("div",{style:l.third},$.createElement(cR,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:r.g,onChange:c})),$.createElement("div",{style:l.third},$.createElement(cR,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:r.b,onChange:c})))))}));const A_=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,i=e.hex,a=(0,YP.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}
2),s=function(e,i){e["#"]?aO(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},i)};return $.createElement("div",{style:a.fields},$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(r.h),onChange:s}),$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:s}),$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:s}),$.createElement("div",{style:a.divider}),$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),$.createElement(cR,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),$.createElement("div",{style:a.divider}),$.createElement(cR,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),$.createElement("div",{style:a.fieldSymbols},$.createElement("div",{style:a.symbol},"\xb0"),$.createElement("div",{style:a.symbol},"%"),$.createElement("div",{style:a.symbol},"%")))};const N_=function(e){var t=e.hsl,n=(0,YP.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return $.createElement("div",{style:n.picker})};const P_=function(){var e=(0,YP.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return $.createElement("div",{style:e.pointer},$.createElement("div",{style:e.left},$.createElement("div",{style:e.leftInside})),$.createElement("div",{style:e.right},$.createElement("div",{style:e.rightInside})))};const R_=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,YP.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return $.createElement("div",{style:a.button,onClick:t},n||r)};const L_=function(e){var t=e.rgb,n=e.currentColor,r=(0,YP.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return $.createElement("div",null,$.createElement("div",{style:r.label},"new"),$.createElement("div",{style:r.swatches},$.createElement("div",{style:r.new}),$.createElement("div",{style:r.current})),$.createElement("div",{style:r.label},"current"))};var I_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var D_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),I_(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,i=void 0===r?"":r,a=(0,YP.Ay)(JI({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px s
2olid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return $.createElement("div",{style:a.picker,className:"photoshop-picker "+i},$.createElement("div",{style:a.head},this.props.header),$.createElement("div",{style:a.body,className:"flexbox-fix"},$.createElement("div",{style:a.saturation},$.createElement(gD,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:N_,onChange:this.props.onChange})),$.createElement("div",{style:a.hue},$.createElement(pR,{direction:"vertical",hsl:this.props.hsl,pointer:P_,onChange:this.props.onChange})),$.createElement("div",{style:a.controls},$.createElement("div",{style:a.top,className:"flexbox-fix"},$.createElement("div",{style:a.previews},$.createElement(L_,{rgb:this.props.rgb,currentColor:this.state.currentColor})),$.createElement("div",{style:a.actions},$.createElement(R_,{label:"OK",onClick:this.props.onAccept,active:!0}),$.createElement(R_,{label:"Cancel",onClick:this.props.onCancel}),$.createElement(A_,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}($.Component);D_.propTypes={header:Pd().string,styles:Pd().object},D_.defaultProps={header:"Color Picker",styles:{}};dO(D_);const O_=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.disableAlpha,s=(0,YP.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),o=function(e,i){e.hex?aO(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return $.createElement("div",{style:s.fields,className:"flexbox-fix"},$.createElement("div",{style:s.double},$.createElement(cR,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:o})),$.createElement("div",{style:s.single},$.createElement(cR,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:o,dragLabel:"true",dragMax:"255"})),$.createElement("div",{style:s.single},$.createElement(cR,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:o,dragLabel:"true",dragMax:"255"})),$.createElement("div",{style:s.single},$.createElement(cR,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:o,dragLabel:"true",dragMax:"255"})),$.createElement("div",{style:s.alpha},$.createElement(cR,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:o,dragLabel:"true",dragMax:"100"})))};var M_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},__=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=(0,YP.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){r({hex:e,source:"hex"},t)};return $.createElement("div",{style:a.colors,className:"flexbox-fix"},t.map((function(e){var t="string"===typeof e?{color:e}:e,n=""+t.color+(t.title||"");return $.createElement("div",{key:n,style:a.swatchWrap},$.createElement(fO,M_({},t,{style:a.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};__.propTypes={colors:Pd().arrayOf(Pd().oneOfType([Pd().string,Pd().shape({color:Pd().string,title:Pd().string})])).isRequired};const F_=__;var B_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U_=function(e){var t=e.width,n=e.rgb,r=e.hex,i=e.hsv,a=e.hsl,s=e.onCh
2ange,o=e.onSwatchHover,l=e.disableAlpha,c=e.presetColors,d=e.renderers,u=e.styles,h=void 0===u?{}:u,p=e.className,m=void 0===p?"":p,f=(0,YP.Ay)(JI({default:B_({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return $.createElement("div",{style:f.picker,className:"sketch-picker "+m},$.createElement("div",{style:f.saturation},$.createElement(gD,{style:f.Saturation,hsl:a,hsv:i,onChange:s})),$.createElement("div",{style:f.controls,className:"flexbox-fix"},$.createElement("div",{style:f.sliders},$.createElement("div",{style:f.hue},$.createElement(pR,{style:f.Hue,hsl:a,onChange:s})),$.createElement("div",{style:f.alpha},$.createElement(iR,{style:f.Alpha,rgb:n,hsl:a,renderers:d,onChange:s}))),$.createElement("div",{style:f.color},$.createElement($P,null),$.createElement("div",{style:f.activeColor}))),$.createElement(O_,{rgb:n,hsl:a,hex:r,onChange:s,disableAlpha:l}),$.createElement(F_,{colors:c,onClick:s,onSwatchHover:o}))};U_.propTypes={disableAlpha:Pd().bool,width:Pd().oneOfType([Pd().string,Pd().number]),styles:Pd().object},U_.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};dO(U_);const z_=function(e){var t=e.hsl,n=e.offset,r=e.onClick,i=void 0===r?function(){}:r,a=e.active,s=e.first,o=e.last,l=(0,YP.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:o});return $.createElement("div",{style:l.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:"hsl"},e)}})};const G_=function(e){var t=e.onClick,n=e.hsl,r=(0,YP.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return $.createElement("div",{style:r.swatches},$.createElement("div",{style:r.swatch},$.createElement(z_,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),$.createElement("div",{style:r.swatch},$.createElement(z_,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),$.createElement("div",{style:r.swatch},$.createElement(z_,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),$.createElement("div",{style:r.swatch},$.createElement(z_,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),$.createElement("div",{style:r.swatch},$.createElement(z_,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),$.createElement("div",{style:r.clear}))};const W_=function(){var e=(0,YP.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return $.createElement("div",{style:e.picker})};
2var H_=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,i=e.styles,a=void 0===i?{}:i,s=e.className,o=void 0===s?"":s,l=(0,YP.Ay)(JI({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return $.createElement("div",{style:l.wrap||{},className:"slider-picker "+o},$.createElement("div",{style:l.hue},$.createElement(pR,{style:l.Hue,hsl:t,pointer:r,onChange:n})),$.createElement("div",{style:l.swatches},$.createElement(G_,{hsl:t,onClick:n})))};H_.propTypes={styles:Pd().object},H_.defaultProps={pointer:W_,styles:{}};dO(H_);var V_=n(4371);const K_=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.first,s=e.last,o=e.active,l=(0,YP.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:sO(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:o,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return $.createElement(fO,{color:t,style:l.color,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},$.createElement("div",{style:l.check},$.createElement(V_.A,null)))};const q_=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,YP.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return $.createElement("div",{style:a.group},GM(r,(function(e,a){return $.createElement(K_,{key:e,color:e,active:e.toLowerCase()===i,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})})))};var Y_=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,s=e.hex,o=e.styles,l=void 0===o?{}:o,c=e.className,d=void 0===c?"":c,u=(0,YP.Ay)(JI({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(e,t){return r({hex:e,source:"hex"},t)};return $.createElement("div",{style:u.picker,className:"swatches-picker "+d},$.createElement(ZI,null,$.createElement("div",{style:u.overflow},$.createElement("div",{style:u.body},GM(a,(function(e){return $.createElement(q_,{key:e.toString(),group:e,active:s,onClick:h,onSwatchHover:i})})),$.createElement("div",{style:u.clear})))))};Y_.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),height:Pd().oneOfType([Pd().string,Pd().number]),colors:Pd().arrayOf(Pd().arrayOf(Pd().string)),styles:Pd().object},Y_.defaultProps={width:320,height:240,colors:[[VM[900],VM[700],VM[500],VM[300],VM[100]],[KM[900],KM[700],KM[500],KM[300],KM[100]],[qM[900],qM[700],qM[500],qM[300],qM[100]],[YM[900],YM[700],YM[500],YM[300],YM[100]],[XM[900],XM[700],XM[500],XM[300],XM[100]],[JM[900],JM[700],JM[500],JM[300],JM[100]],[QM[900],QM[700],QM[500],QM[300],QM[100]],[ZM[900],ZM[700],ZM[500],ZM[300],ZM[100]],[$M[900],$M[700],$M[500],$M[300],$M[100]],["#194D33",e_[700],e_[500],e_[300],e_[100]],[t_[900],t_[700],t_[500],t_[300],t_[100]],[n_[900],n_[700],n_[500],n_[300],n_[100]],[r_[900],r_[700],r_[500],r_[300],r_[100]],[i_[900],i_[700],i_[500],i_[300],i_[100]],[a_[900],a_[700],a_[500],a_[300],a_[100]],[s_[900],s_[700],s_[500],s_[300],s_[100]],[o_[900],o_[700],o_[500],o_[300],o_[100]],[l_[900],l_[700],l_[500],l_[300],l_[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};dO(Y_);var X_=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,o=e.styles,l=void 0===o?{}:o,c=e.className,d=void 0===c?"":c,u=(0,YP.Ay)(JI({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",dis
2play:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),h=function(e,n){aO(e)&&t({hex:e,source:"hex"},n)};return $.createElement("div",{style:u.card,className:"twitter-picker "+d},$.createElement("div",{style:u.triangleShadow}),$.createElement("div",{style:u.triangle}),$.createElement("div",{style:u.body},GM(i,(function(e,t){return $.createElement(fO,{key:t,color:e,hex:e,style:u.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),$.createElement("div",{style:u.hash},"#"),$.createElement(cR,{label:null,style:{input:u.input},value:r.replace("#",""),onChange:h}),$.createElement("div",{style:u.clear})))};X_.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),triangle:Pd().oneOf(["hide","top-left","top-right"]),colors:Pd().arrayOf(Pd().string),styles:Pd().object},X_.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};dO(X_);var J_=function(e){var t=(0,YP.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return $.createElement("div",{style:t.picker})};J_.propTypes={hsl:Pd().shape({h:Pd().number,s:Pd().number,l:Pd().number,a:Pd().number})},J_.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Q_=J_;var Z_=function(e){var t=(0,YP.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return $.createElement("div",{style:t.picker})};Z_.propTypes={hsl:Pd().shape({h:Pd().number,s:Pd().number,l:Pd().number,a:Pd().number})},Z_.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const $_=Z_;const eF=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,s=function(e,n){if(e.hex)aO(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");oO(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var i=e.hsv.split(",");oO(e.hsv,"hsv")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("\xb0",""),1==i[1]?i[1]=.01:1==i[2]&&(i[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsv"},n))}else if(e.hsl){var a=e.hsl.split(",");oO(e.hsl,"hsl")&&(a[2]=a[2].replace("%",""),a[1]=a[1].replace("%",""),a[0]=a[0].replace("\xb0",""),1==d[1]?d[1]=.01:1==d[2]&&(d[2]=.01),t({h:Number(a[0]),s:Number(a[1]),v:Number(a[2]),source:"hsl"},n))}},o=(0,YP.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(r.h)+"\xb0, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",d=Math.round(a.h)+"\xb0, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return $.createElement("div",{style:o.wrap,className:"flexbox-fix"},$.createElement("div",{style:o.fields},$.createElement("div",{style:o.double},$.createElement(cR,{style:{input:o.input,label:o.label},label:"hex",value:i,onChange:s})),$.createElement("div",{style:o.column},$.createElement("div",{style:o.single},$.createElement(cR,{style:{input:o.input2,label:o.label2}
2,label:"rgb",value:l,onChange:s})),$.createElement("div",{style:o.single},$.createElement(cR,{style:{input:o.input2,label:o.label2},label:"hsv",value:d,onChange:s})),$.createElement("div",{style:o.single},$.createElement(cR,{style:{input:o.input2,label:o.label2},label:"hsl",value:c,onChange:s})))))};var tF=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,s=e.hex,o=e.header,l=e.styles,c=void 0===l?{}:l,d=e.className,u=void 0===d?"":d,h=(0,YP.Ay)(JI({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return $.createElement("div",{style:h.picker,className:"google-picker "+u},$.createElement("div",{style:h.head},o),$.createElement("div",{style:h.swatch}),$.createElement("div",{style:h.saturation},$.createElement(gD,{hsl:i,hsv:a,pointer:Q_,onChange:n})),$.createElement("div",{style:h.body},$.createElement("div",{style:h.controls,className:"flexbox-fix"},$.createElement("div",{style:h.hue},$.createElement(pR,{style:h.Hue,hsl:i,radius:"4px",pointer:$_,onChange:n}))),$.createElement(eF,{rgb:r,hsl:i,hex:s,hsv:a,onChange:n})))};tF.propTypes={width:Pd().oneOfType([Pd().string,Pd().number]),styles:Pd().object,header:Pd().string},tF.defaultProps={width:652,styles:{},header:"Color picker"};dO(tF),n.p;function nF(){const[e,t]=(0,$.useState)(),[n,r]=(0,$.useState)(),[i,a]=(0,$.useState)({}),[s,l]=(0,$.useState)({}),{user:c}=(0,$.useContext)(Qo),[d,u]=(0,$.useState)(),[h,p]=(0,$.useState)(),[m,f]=(0,$.useState)(""),[g,v]=(0,$.useState)(""),[b,y]=(0,$.useState)(""),[x,S]=(0,$.useState)(""),[k,w]=(0,$.useState)(""),[T,C]=(0,$.useState)(0),E=(0,$.useRef)(null),[j,A]=((0,$.useRef)(null),(0,$.useState)(!1)),[N,P]=(0,$.useState)(null),[R,L]=(0,$.useState)("#ffffff"),[I,D]=(0,$.useState)(!1),[O,M]=(0,$.useState)("#223344"),[_,F]=(0,$.useState)("#000000"),[B,U]=(0,$.useState)(!0),[z,G]=(0,$.useState)(window.innerWidth),[W,H]=(0,$.useState)(!1),[V,K]=(0,$.useState)(!0),q=()=>{H(window.innerWidth<=768)};(0,$.useLayoutEffect)((()=>(W&&(document.documentElement.style.overflowX="hidden"),()=>{document.documentElement.style.overflowX="visible"})),[W]),(0,$.useEffect)((()=>(q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)})),[]);const Y=(0,Xo.jsxs)("button",{className:"preview-button",onClick:()=>{U(!B)},children:[(0,Xo.jsx)("span",{className:"preview-text",children:"Preview"}),B&&(0,Xo.jsx)("span",{className:"close-icon",onClick:()=>{U(!1)},children:(0,Xo.jsx)(Wv,{icon:rb})})]});(0,$.useEffect)((()=>{(async()=>{try{const[e,t]=await Promise.all([ks.get("/users/profileTitle?userId=".concat(c._id)),ks.get("/users/creator-settings/".concat(c._id))]),n=e.data,r=t.data;f(n.profileTitle),y(n.backgroundEffects),l(n.userplan),S(n.profileTitle||""),F(n.backgroundColorHex||"#223344");const i=r.subscriptionDescription||n.profileBio||"";w(i),a(o(o({},n),{},{subscriptionEnabled:r.subscriptionEnabled,subscriptionPrice:r.subscriptionPrice,subscriptionDescription:r.subscriptionDescription}))}catch(e){console.error("Error fetching user data:",e)}})()}),[c._id]),(0,$.useEffect)((()=>{(async()=>{try{const e=await ks.get("/users/getuserprofilepicture/".concat(c._id),{responseType:"blob"});if(200===e.status){const t=window.URL.createObjectURL(new Blob([e.data]));r(t)}}catch(e){console.error("Error fetching profile picture:",e)}})()}),[c._id]),(0,$.useEffect)((()=>{C(k.length)}),[k]);const X=e=>{let{userId:t,initialLogoValue:n}=e;const[r,i]=(0,$.useState)(n);(0,$.useEffect)((()=>{(async()=>{try{const e=(await ks.get("/users/logostatus?userId=".concat(c._id))).data.logo;console.log("Fetched logo status:",e),i(e)}catch(e){console.error("Error fetching initial logo status:",e)}})()}),[])};return(0,Xo.jsxs)("div",{children:[W?(0,Xo.jsx)(Xj,{}):(0,Xo.jsx)(gT,{}),(0,Xo.jsxs)("div",{className:"container",children:[(0,Xo.jsxs)("div",{className:"left",children:[(0,Xo.jsxs)("div",{className:"content",children:[(0,Xo.jsx)("h2",{children:"Profile"}),(0,Xo.jsxs)("div",{className:"profile-container",children:[(0,Xo.jsx)("div",{className:"profile-left",children:(0,Xo.jsx)("div",{className:"profile-image",children:n?(0,Xo.jsx)("img",{src:n,alt:"Profile"}):(0,Xo.jsx)("p",{className:"profilenulltext",children:"@"})})}),(0,Xo.jsxs)("div",{className:"profile-right",children:[(0,Xo.jsx)("input",{type:"file",accept:"image/*",id:"file-input",onChange:e=>{const t=e.target.files[0];
2u(t),console.log(t),(e=>{const t=c._id,n=new FormData;n.append("image",e),n.append("userId",t),ks.post("/upload",n).then((e=>{console.log(e);const t=e.data.imageUrl;r(t),window.location.reload()})).catch((e=>console.log(e)))})(t)},ref:E,style:{display:"none"}}),(0,Xo.jsx)("button",{className:"upload-button",onClick:()=>{E.current.click()},children:"Pick an Image"}),(0,Xo.jsx)("button",{className:"remove-button",onClick:()=>{c&&c._id?ks.delete("/users/removeprofilepicture/".concat(c._id)).then((e=>{console.log(e),r(null),window.location.reload()})).catch((e=>console.log(e))):console.log("currentUser is not valid.")},children:"Remove"}),(0,Xo.jsx)("input",{className:"titleinput",type:"text",placeholder:"Your X handle (@username)",value:x,onChange:e=>{const t=e.target.value;S(t),(async e=>{try{const t=(await ks.post("/updateprofiletitle",{userId:c._id,profileTitle:e})).data;a(t)}catch(t){console.error("Error updating profile title:",t)}})(t)},onBlur:async()=>{try{const e=(await ks.post("/updateprofiletitle",{userId:c._id,profileTitle:x})).data;a(e)}catch(e){console.error("Error updating profile title:",e)}}}),(0,Xo.jsx)("textarea",{className:"bioinput",placeholder:"Why Should People Subscribe?",value:k,onChange:e=>{const t=e.target.value;w(t),t.length<=80&&(C(t.length),Promise.all([ks.post("/updateprofilebio",{userId:c._id,profileBio:t}),ks.post("/users/update-creator-settings/".concat(c._id),{subscriptionDescription:t,subscriptionEnabled:i.subscriptionEnabled||!1,subscriptionPrice:i.subscriptionPrice||0})]).catch((e=>{console.error("Error updating bio/subscription description:",e)})))},onBlur:async()=>{try{const e=(await ks.post("/updateprofilebio",{userId:c._id,profileBio:k})).data;a(e)}catch(e){console.error("Error updating profile title:",e)}},maxLength:80}),(0,Xo.jsxs)("p",{className:"character-count",children:[T,"/80"]})]})]})]}),(0,Xo.jsx)("div",{className:"content",children:(0,Xo.jsx)("div",{className:"container2",children:(0,Xo.jsx)("div",{className:"left"})})}),(0,Xo.jsx)("div",{className:"content",children:(0,Xo.jsx)("div",{className:"container2",children:(0,Xo.jsx)("div",{className:"left",children:(0,Xo.jsx)("div",{className:"content",children:(0,Xo.jsx)(X,{userId:c._id,initialLogoValue:c.logo})})})})})]}),z>768&&(0,Xo.jsx)("div",{className:"right",children:(0,Xo.jsx)("div",{className:"content",children:(0,Xo.jsx)("div",{className:"prevcontainer",children:(0,Xo.jsx)(cT,{})})})})]}),W&&(0,Xo.jsxs)("div",{className:"mobile-sticky-bar",children:[Y,B&&(0,Xo.jsx)(cT,{})]})]})}function rF(){const e=(0,$.useRef)(),t=(0,$.useRef)(),n=(0,$.useRef)(),r=(0,$.useRef)(),i=(0,$.useRef)(),a=(0,$.useRef)(),s=Vt(),{username:l}=qt(),{user:c,dispatch:d}=(0,$.useContext)(Qo),[u,h]=(0,$.useState)(""),[p,m]=(0,$.useState)(0),[f,g]=(0,$.useState)(l||""),[v,b]=(0,$.useState)(""),[y,x]=(0,$.useState)(""),[S,k]=(0,$.useState)({username:"",email:"",password:"",birthday:""}),[w,T]=(0,$.useState)({checking:!1,available:null}),[C,E]=(0,$.useState)({checking:!1,available:null}),j=(new Date).getFullYear(),A=Array.from({length:100},((e,t)=>j-t)),N=Array.from({length:12},((e,t)=>String(t+1).padStart(2,"0"))),P=Array.from({length:31},((e,t)=>String(t+1).padStart(2,"0")));(0,$.useEffect)((()=>{l&&g(l)}),[l]);const R=/^[A-Za-z0-9_]+$/,L=e=>e?e.length<3?"Username must be at least ".concat(3," characters."):e.length>39?"Username must be at most ".concat(39," characters."):R.test(e)?"":"Only letters, numbers, and underscores are allowed. No spaces.":"",I=e=>e?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?"":"Please enter a valid email address.":"",D=e=>e?e.length<3?"Password must be at least 3 characters.":"":"Password is required.",O=()=>{var e,t,n;const s=null===(e=r.current)||void 0===e?void 0:e.value,o=null===(t=i.current)||void 0===t?void 0:t.value,l=null===(n=a.current)||void 0===n?void 0:n.value;return s&&o&&l?"":"Please select your full birthday."},M=e=>e?"boolean"===typeof e.available?e.available:"boolean"===typeof e.exists?!e.exists:"boolean"===typeof e.taken?!e.taken:"boolean"===typeof e.inUse?!e.inUse:null:null,_=async(e,t)=>{const n=new AbortController,r=setTimeout((()=>n.abort()),3e3);try{const r=await ks.get(e,{params:t,signal:n.signal,timeout:3500});return{ok:!0,data:null===r||void 0===r?void 0:r.data}}catch(K6){return{ok:!1,error:K6}}finally{clearTimeout(r)}};(0,$.useEffect)((()=>{const e=L(f);if(k((t=>o(o({},t),{},{username:e}))),T({checking:!1,available:null}),e||!f)return;let t=!1;const n=setTimeout((async()=>
2{if(t)return;T({checking:!0,available:null});const{ok:e,data:n}=await _("/auth/check-username",{username:f});if(t)return;const r=M(n);T({checking:!1,available:r}),k(e&&!1===r?e=>o(o({},e),{},{username:"This username is already taken."}):e=>o(o({},e),{},{username:""}))}),400);return()=>{t=!0,clearTimeout(n)}}),[f]),(0,$.useEffect)((()=>{const e=I(v);if(k((t=>o(o({},t),{},{email:e}))),E({checking:!1,available:null}),e||!v)return;let t=!1;const n=setTimeout((async()=>{if(t)return;E({checking:!0,available:null});const{ok:e,data:n}=await _("/auth/check-email",{email:v});if(t)return;const r=M(n);E({checking:!1,available:r}),k(e&&!1===r?e=>o(o({},e),{},{email:"An account with this email already exists."}):e=>o(o({},e),{},{email:""}))}),400);return()=>{t=!0,clearTimeout(n)}}),[v]);const F=S.email||v&&(C.checking?"":!0===C.available?"Email looks good.":""),B=S.username||f&&(w.checking?"":!0===w.available?"Username is available.":""),U=!S.username&&!S.email&&!S.password&&!S.birthday&&f&&v&&y;return(0,Xo.jsx)("div",{className:"register",children:(0,Xo.jsx)("div",{className:"registerWrapper",children:(0,Xo.jsx)("div",{className:"registerRight",children:(0,Xo.jsxs)("form",{className:"registerBox",onSubmit:async l=>{l.preventDefault();const u={username:L(f),email:I(v),password:D(y),birthday:O()};if(k(u),Object.values(u).some(Boolean))return;const p={username:e.current.value.trim(),email:t.current.value.toLowerCase(),password:n.current.value,birthdayMonth:r.current.value,birthdayDay:i.current.value,birthdayYear:a.current.value};try{var g;m(50);const e=await ks.post("/auth/register",p);m(100),h((null===e||void 0===e||null===(g=e.data)||void 0===g?void 0:g.message)||"Account created!"),c||await Ko({email:p.email,password:p.password},d),s("/admin")}catch(K6){var b,x,w;m(0);const t=null===K6||void 0===K6||null===(b=K6.response)||void 0===b?void 0:b.status,n=(null===K6||void 0===K6||null===(x=K6.response)||void 0===x||null===(w=x.data)||void 0===w?void 0:w.message)||"Registration failed. Please try again.";let r=S.username,i=S.email;(409===t||/username/i.test(n))&&(r="This username is already taken."),409===t&&/email/i.test(n)&&(i="An account with this email already exists."),k((e=>o(o({},e),{},{username:r,email:i}))),h(n),console.error(K6)}},noValidate:!0,children:[(0,Xo.jsx)(wn,{to:"/",className:"logo link-style",children:(0,Xo.jsx)("h3",{className:"registerLogo",children:"CLIPBAIT"})}),(0,Xo.jsx)("label",{className:"registerLabel",children:"Email"}),(0,Xo.jsx)("input",{required:!0,ref:t,value:v,onChange:e=>b(e.target.value),className:"registerInput ".concat(S.email?"input-error":""),type:"email",placeholder:"","aria-invalid":!!S.email,"aria-describedby":"email-help"}),(0,Xo.jsx)("div",{id:"email-help",className:"help ".concat(S.email?"error":"muted"),children:F}),(0,Xo.jsx)("label",{className:"registerLabel",children:"Birthday (Month / Day / Year)"}),(0,Xo.jsxs)("div",{className:"birthday-wrapper",children:[(0,Xo.jsxs)("select",{ref:r,className:"birthdayInput",required:!0,defaultValue:"",children:[(0,Xo.jsx)("option",{value:"",children:"MM"}),N.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]}),(0,Xo.jsxs)("select",{ref:i,className:"birthdayInput",required:!0,defaultValue:"",children:[(0,Xo.jsx)("option",{value:"",children:"DD"}),P.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]}),(0,Xo.jsxs)("select",{ref:a,className:"birthdayInput",required:!0,defaultValue:"",children:[(0,Xo.jsx)("option",{value:"",children:"YYYY"}),A.map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))]})]}),S.birthday&&(0,Xo.jsx)("div",{className:"help error",children:S.birthday}),(0,Xo.jsx)("label",{className:"registerLabel",children:"Username"}),(0,Xo.jsx)("input",{maxLength:39,required:!0,ref:e,value:f,onChange:e=>g(e.target.value),className:"registerInput ".concat(S.username?"input-error":""),placeholder:"","aria-invalid":!!S.username,"aria-describedby":"username-help"}),(0,Xo.jsx)("div",{id:"username-help",className:"help ".concat(S.username?"error":"muted"),children:B}),(0,Xo.jsx)("label",{className:"registerLabel",children:"Password"}),(0,Xo.jsx)("input",{required:!0,ref:n,value:y,onChange:e=>x(e.target.value),className:"registerInput ".concat(S.password?"input-error":""),type:"password",minLength:3,"aria-invalid":!!S.password,"aria-describedby":"password-help"}),(0,Xo.jsx)("div",{id:"password-help",className:"help ".concat(S.password?"error":"muted"),children:S.password||"At least 3 characters."}),u&&(0,Xo.jsx)("div",{className:"message",children:u}),(0,Xo.jsx)("button",{className:"registerButton",type:"submit",disabled:!U,children:U?"Sign Up":"Fix errors to continue"}),(0,Xo.jsxs)("span",{className:"terms",children:["By signing up, you agree to our ",(0,Xo.jsx)("strong",{className:"highlight",children:"Privacy Policy"})," and"," ",(0,Xo.jsx)("strong",{className:"highlight",children:"Terms of Use"}),"."]}),p>0&&(0,Xo.jsx)("div",{className:"progress-circle-container",children:(0,Xo.jsx)(gh,{color:"primary"})}),(0,Xo.jsx)("span",{className:"registerRegisterButton",children:(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:(0,Xo.jsx)("span",{className:"regbold",children:"Log In"})})})]})})})})}function iF(){const e=(0,$.useRef)(),t=(0,$.useRef)(),n=(0,$.useRef)(),[r,i]=((0,$.useRef)(),Vt(),(0,$.useState)("")),[a,s]=(0,$.useState)(0),{username:o}=qt(),[l,c]=(0,$.useState)(o||""),{user:d,isFetching:u,dispatch:h,error:p}=(0,$.useContext)(Qo);(0,$.useEffect)((()=>{o&&c(o)}),[o]);return(0,Xo.jsx)("div",{className:"register",children:(0,Xo.jsx)("div",{className:"registerWrapper",children:(0,Xo.jsx)("div",{className:"registerRight",children:(0,Xo.jsxs)("form",{className:"registerBox",onSubmit:async r=>{r.preventDefault();const a={username:e.current.value.toLowerCase(),email:t.current.value.toLowerCase(),password:n.current.value};try{s(50);const e=await ks.post("/auth/register",a);if(200===e.status){const n=e.data.data.userId;s(100),i(e.data.message),console.log("Newly registered user ID:",e.data.data.userId),await Ko({email:a.email,password:a.password},h),console.log("Login successful. Redirecting..."),(async(e,n)=>{try{if(console.log("sessionStripePlan called with planId",n,e),e){const{data:r}=await ks.post("/v1/stripe/subscribe/plan",{planId:e,userId:n,email:t.current.value.toLowerCase()});
2console.log("sessionStripePlan called?",n),window.location.href=r.url,console.log("window:",window.location.href)}}catch(p){console.log(p)}})("price_1ONoUIHcNBtzOtcB1jBAwzdP",n),console.log("past sessionStripPlan and email",t)}else i("Registration failed. Please try again later.")}catch(K6){console.error(K6),i("Registration failed. Please try again later.")}},children:[(0,Xo.jsx)(wn,{to:"/",className:"logo link-style",children:(0,Xo.jsx)("h3",{className:"registerLogo",children:"XSubscribe.bio Starter"})}),(0,Xo.jsx)("span",{className:"registerDesc",children:"Sign up and start connecting!"}),(0,Xo.jsx)("input",{maxLength:"39",placeholder:"Username",required:!0,ref:e,defaultValue:o,className:"registerInput"}),(0,Xo.jsx)("input",{placeholder:"Email",required:!0,ref:t,className:"registerInput",type:"email"}),(0,Xo.jsx)("input",{placeholder:"Password",required:!0,ref:n,className:"registerInput",type:"password",minLength:"3"}),(0,Xo.jsx)("span",{className:"terms",children:"By signing up, you agree to our Terms, Privacy Policy, and Cookies Policy."}),(0,Xo.jsx)("button",{className:"registerButton",type:"submit",children:"Sign Up"}),a>0&&(0,Xo.jsx)("div",{className:"progress-circle-container",children:(0,Xo.jsx)(gh,{color:"primary"})}),(0,Xo.jsxs)("span",{className:"registerRegisterButton",children:["Already have an account? ",(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:(0,Xo.jsx)("span",{className:"regbold",children:"Log In"})})]})]})})})})}function aF(){const e=(0,$.useRef)(),t=(0,$.useRef)(),n=(0,$.useRef)(),[r,i]=((0,$.useRef)(),Vt(),(0,$.useState)("")),[a,s]=(0,$.useState)(0),{username:o}=qt(),[l,c]=(0,$.useState)(o||""),{user:d,isFetching:u,dispatch:h,error:p}=(0,$.useContext)(Qo);(0,$.useEffect)((()=>{o&&c(o)}),[o]);return(0,Xo.jsx)("div",{className:"register",children:(0,Xo.jsx)("div",{className:"registerWrapper",children:(0,Xo.jsx)("div",{className:"registerRight",children:(0,Xo.jsxs)("form",{className:"registerBox",onSubmit:async r=>{r.preventDefault();const a={username:e.current.value.toLowerCase(),email:t.current.value.toLowerCase(),password:n.current.value};try{s(50);const e=await ks.post("/auth/register",a);if(200===e.status){const n=e.data.data.userId;s(100),i(e.data.message),console.log("Newly registered user ID:",e.data.data.userId),await Ko({email:a.email,password:a.password},h),console.log("Login successful. Redirecting..."),(async(e,n)=>{try{if(console.log("sessionStripePlan called with planId",n,e),e){const{data:r}=await ks.post("/v1/stripe/subscribe/plan",{planId:e,userId:n,email:t.current.value.toLowerCase()});console.log("sessionStripePlan called?",n),window.location.href=r.url,console.log("window:",window.location.href)}}catch(p){console.log(p)}})("price_1ONoVEHcNBtzOtcBiTcLd84D",n),console.log("past sessionStripPlan and email",t)}else i("Registration failed. Please try again later.")}catch(K6){console.error(K6),i("Registration failed. Please try again later.")}},children:[(0,Xo.jsx)(wn,{to:"/",className:"logo link-style",children:(0,Xo.jsx)("h3",{className:"registerLogo",children:"XSubscribe.bio Pro"})}),(0,Xo.jsx)("span",{className:"registerDesc",children:"Sign up and start connecting!"}),(0,Xo.jsx)("input",{maxLength:"39",placeholder:"Username",required:!0,ref:e,defaultValue:o,className:"registerInput"}),(0,Xo.jsx)("input",{placeholder:"Email",required:!0,ref:t,className:"registerInput",type:"email"}),(0,Xo.jsx)("input",{placeholder:"Password",required:!0,ref:n,className:"registerInput",type:"password",minLength:"3"}),(0,Xo.jsx)("span",{className:"terms",children:"By signing up, you agree to our Terms, Privacy Policy, and Cookies Policy."}),(0,Xo.jsx)("button",{className:"registerButton",type:"submit",children:"Sign Up"}),a>0&&(0,Xo.jsx)("div",{className:"progress-circle-container",children:(0,Xo.jsx)(gh,{color:"primary"})}),(0,Xo.jsxs)("span",{className:"registerRegisterButton",children:["Already have an account? ",(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:(0,Xo.jsx)("span",{className:"regbold",children:"Log In"})})]})]})})})})}function sF(){const e=(0,$.useRef)(),t=(0,$.useRef)(),n=(0,$.useRef)(),[r,i]=((0,$.useRef)(),Vt(),(0,$.useState)("")),[a,s]=(0,$.useState)(0),{username:o}=qt(),[l,c]=(0,$.useState)(o||""),{user:d,isFetching:u,dispatch:h,error:p}=(0,$.useContext)(Qo);(0,$.useEffect)((()=>{o&&c(o)}),[o]);return(0,Xo.jsx)("div",{className:"register",children:(0,Xo.jsx)("div",{className:"registerWrapper",children:(0,Xo.jsx)("div",{className:"registerRight",children:(0,Xo.jsxs)("form",{className:"registerBox",onSubmit:async r=>{r.preventDefault();const a={username:e.current.value.toLowerCase(),email:t.current.value.toLowerCase(),password:n.current.value};try{s(50);const e=await ks.post("/auth/register",a);if(200===e.status){const n=e.data.data.userId;s(100),i(e.data.message),console.log("Newly registered user ID:",e.data.data.userId),await Ko({email:a.email,password:a.password},h),console.log("Login successful. Redirecting..."),(async(e,n)=>{try{if(console.log("sessionStripePlan called with planId",n,e),e){const{data:r}=await ks.post("/v1/stripe/subscribe/plan",{planId:e,userId:n,email:t.current.value.toLowerCase()});
2console.log("sessionStripePlan called?",n),window.location.href=r.url,console.log("window:",window.location.href)}}catch(p){console.log(p)}})("price_1ONoWHHcNBtzOtcBQODqRPHs",n),console.log("past sessionStripPlan and email",t)}else i("Registration failed. Please try again later.")}catch(K6){console.error(K6),i("Registration failed. Please try again later.")}},children:[(0,Xo.jsx)(wn,{to:"/",className:"logo link-style",children:(0,Xo.jsx)("h3",{className:"registerLogo",children:"XSubscribe.bio Premium"})}),(0,Xo.jsx)("span",{className:"registerDesc",children:"Sign up and start connecting!"}),(0,Xo.jsx)("input",{maxLength:"39",placeholder:"Username",required:!0,ref:e,defaultValue:o,className:"registerInput"}),(0,Xo.jsx)("input",{placeholder:"Email",required:!0,ref:t,className:"registerInput",type:"email"}),(0,Xo.jsx)("input",{placeholder:"Password",required:!0,ref:n,className:"registerInput",type:"password",minLength:"3"}),(0,Xo.jsx)("span",{className:"terms",children:"By signing up, you agree to our Terms, Privacy Policy, and Cookies Policy."}),(0,Xo.jsx)("button",{className:"registerButton",type:"submit",children:"Sign Up"}),a>0&&(0,Xo.jsx)("div",{className:"progress-circle-container",children:(0,Xo.jsx)(gh,{color:"primary"})}),(0,Xo.jsxs)("span",{className:"registerRegisterButton",children:["Already have an account? ",(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:(0,Xo.jsx)("span",{className:"regbold",children:"Log In"})})]})]})})})})}function oF(){return(0,Xo.jsx)("div",{className:"centered-container",children:(0,Xo.jsxs)("div",{className:"success-container",children:[(0,Xo.jsx)("h1",{className:"success-heading",children:"Success!"}),(0,Xo.jsx)("p",{className:"success-message",children:'Your account verification email has been sent to your email. Please open this email to verify your account. If you don\'t see this email in your inbox within 15 minutes, look for it in your junk mail folder. If you find it there, please mark the email as "Not Junk".'}),(0,Xo.jsx)(wn,{to:"/login",className:"login-link",style:{textDecoration:"none"},children:"Login"})]})})}const lF=()=>{const[e,t]=(0,$.useState)(!0),n=qt(),r=Vt();return(0,$.useEffect)((()=>{(async()=>{try{const e="https://clipbait-app.onrender.com/api/auth/verify/".concat(n.token),{data:r}=await Zi.get(e);console.log(r),t(!0)}catch(e){console.log(e),t(!1)}})()}),[n.token]),(0,$.useEffect)((()=>{e&&setTimeout((()=>{alert("Email successfully verified"),r("/login")}),3e3)}),[e]),(0,Xo.jsx)($.Fragment,{children:e?(0,Xo.jsxs)("div",{className:"successpage",children:[(0,Xo.jsx)("h1",{children:"Email verified successfully"}),setTimeout((()=>{r("/login")}),3e3)]}):(0,Xo.jsx)("h1",{children:"404 Not Found"})})},cF={width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f0f4f8"},dF={background:"white",padding:"20px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",borderRadius:"8px",width:"100%",maxWidth:420},uF={fontWeight:600,fontSize:24,marginBottom:16},hF={display:"flex",justifyContent:"space-between",width:"100%",gap:8,marginBottom:16},pF={width:64,height:48,textAlign:"center",padding:12,borderRadius:8,border:"1px solid #d1d5db",fontSize:18,backgroundColor:"white",outline:"none"},mF={width:"100%",height:48,marginTop:8,borderRadius:8,border:"none",fontSize:16,color:"white",backgroundColor:"black",cursor:"pointer"},fF=()=>{const{email:e,recoveryInfo:t,requestOTP:n,verifyOTP:r,isFetching:i,error:a,setError:s}=(0,$.useContext)(DF),[o,l]=(0,$.useState)(60),[c,d]=(0,$.useState)(["","","",""]),[u,h]=(0,$.useState)(!0),[p,m]=(0,$.useState)(!1),f=(0,$.useRef)([]),g=((null===t||void 0===t?void 0:t.email)||e||"").toString().trim();(0,$.useEffect)((()=>{h(!0),l(60);const e=setInterval((()=>{l((t=>t<=1?(clearInterval(e),h(!1),0):t-1))}),1e3);return()=>clearInterval(e)}),[]),(0,$.useEffect)((()=>{var e,t;null===(e=f.current)||void 0===e||null===(t=e[0])||void 0===t||t.focus()}),[]);return(0,Xo.jsx)("div",{style:cF,children:(0,Xo.jsxs)("div",{style:dF,children:[(0,Xo.jsx)("div",{style:uF,children:"Email Verification"}),(0,Xo.jsxs)("div",{style:{marginBottom:16,fontSize:14},children:["We sent a 4-digit code to ",(0,Xo.jsx)("b",{children:g||"your email"})]}),(0,Xo.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),null===s||void 0===s||s(null);const t=c.join("");if(!t||t.length<4)return alert("Please enter the 4-digit code.");try{await r(t)}catch(K6){alert("The code you entered is not correct or has expired. Try again or resend.")}},children:[(0,Xo.jsx)("div",{style:hF,onPaste:e=>{var t;const n=e.clipboardData.getData("text").replace(/\D/g,"").slice(0,4);if(!n)return;const r=n.split(""),i=["","","",""];for(let a=0;a<r.length;a++)i[a]=r[a];d(i),null===(t=f.current[Math.min(r.length,3)])||void 0===t||t.focus()},children:Array.from({length:4}).map(((e,t)=>(0,Xo.jsx)("input",{ref:e=>f.current[t]=e,inputMode:"numeric",maxLength:1,style:pF,value:c[t],onChange:e=>((e,t)=>{var n,r;const i=e.replace(/\D/g,"").slice(0,1),a=[...c];a[t]=i,d(a),i&&t<3&&(null===(n=f.current[t+1])||void 0===n||n.focus()),!i&&t>0&&!a[t]&&(null===(r=f.current[t-1])||void 0===r||r.focus())})(e.target.value,t),onKeyDown:e=>((e,t)=>{var n;"Backspace"===e.key&&!c[t]&&t>0&&(null===(n=f.current[t-1])||void 0===n||n.focus())})(e,t)},t)))}),(0,Xo.jsx)("button",{type:"submit",style:mF,disabled:i,children:i?"Verifying\u2026":"Verify Account"}),(0,Xo.jsxs)("div",{style:{marginTop:16,fontSize:14,color:"#718096"},children:["Didn\u2019t receive code?"," ",(0,Xo.jsx)("span",{onClick:async()=>
2{if(!u&&!p){if(!g)return alert("Missing email.");try{var e,t;m(!0),null===s||void 0===s||s(null),await n(g),alert("A new code has been sent to your email."),(()=>{h(!0),l(60);const e=setInterval((()=>{l((t=>t<=1?(clearInterval(e),h(!1),0):t-1))}),1e3)})(),d(["","","",""]),null===(e=f.current)||void 0===e||null===(t=e[0])||void 0===t||t.focus()}catch(Ps){console.error(Ps),alert("Failed to resend code. Try again in a moment.")}finally{m(!1)}}},style:{color:u||p?"#a0aec0":"#2563eb",cursor:u||p?"not-allowed":"pointer",textDecorationLine:u||p?"none":"underline"},children:u?"Resend in ".concat(o,"s"):p?"Sending\u2026":"Resend Code"})]}),a&&(0,Xo.jsx)("div",{style:{marginTop:12,color:"#c00",fontSize:13},children:String(a)})]})]})})},gF={height:"100%",margin:"0 auto",alignItems:"center",justifyContent:"center",margin:"0 auto"},vF={padding:"0 6px",height:"100%",color:"#4b5563",display:"flex",alignItems:"center",justifyContent:"center"},bF={flex:"0 1 auto",marginBottom:"24px",display:"flex",alignItems:"center",justifyContent:"center"},yF={width:"50%"},xF={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},SF={fontSize:"1.5rem",fontWeight:"700",marginBottom:"0",marginRight:"1rem",color:"white"},kF={margin:"0",display:"flex",color:"",alignItems:"center",justifyContent:"center",textDecoration:"underline"},wF=()=>(0,Xo.jsx)("div",{style:gF,children:(0,Xo.jsx)("section",{style:vF,children:(0,Xo.jsxs)("div",{className:"loginformcontainer",children:[(0,Xo.jsx)("div",{style:bF,children:(0,Xo.jsx)("img",{className:"loginformphoto",src:"https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-login-form/draw2.webp",alt:"Sample image",style:yF})}),(0,Xo.jsx)("div",{style:xF,children:(0,Xo.jsxs)("form",{children:[(0,Xo.jsx)("div",{className:"flex flex-row items-center justify-center lg:justify-start",children:(0,Xo.jsx)("h1",{style:SF,children:"Password successfully set"})}),(0,Xo.jsx)("div",{className:"flex items-center my-4 before:flex-1 before:border-t before:border-gray-300 before:mt-0.5 after:flex-1 after:border-t after:border-gray-300 after:mt-0.5",children:(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:(0,Xo.jsx)("h2",{style:kF,children:"Login"})})})]})})]})})}),TF={display:"flex",flexDirection:"column",alignItems:"center"},CF={backgroundColor:"#f0f4f8",width:"100%"},EF={background:"white",padding:"24px",borderRadius:"8px",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.1)",width:"100%",maxWidth:"400px",margin:"auto"},jF={fontWeight:"600",fontSize:"24px",marginBottom:"16px",color:"#1a202c"},AF={marginBottom:"8px",fontSize:"14px",fontWeight:"600",color:"#1a202c"},NF={width:"92%",height:"48px",padding:"12px",borderRadius:"8px",border:"1px solid #d1d5db",fontSize:"14px",backgroundColor:"white",outline:"none",marginBottom:"16px"},PF={display:"flex",alignItems:"center"},RF={width:"100%",height:"48px",borderRadius:"8px",border:"none",fontSize:"16px",color:"white",backgroundColor:"#000000",cursor:"pointer",marginTop:"16px"},LF=()=>{const{setPage:e,recoveryInfo:t}=(0,$.useContext)(DF),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)("");console.log(t);return(0,Xo.jsx)("div",{style:TF,children:(0,Xo.jsx)("section",{style:CF,children:(0,Xo.jsxs)("div",{style:EF,children:[(0,Xo.jsx)("h2",{style:jF,children:"Change Password"}),(0,Xo.jsxs)("form",{style:{marginBottom:"16px"},children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("label",{htmlFor:"password",style:AF,children:"New Password"}),(0,Xo.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",style:NF,onChange:e=>r(e.target.value),required:""})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("label",{htmlFor:"confirm-password",style:AF,children:"Confirm password"}),(0,Xo.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",style:NF,onChange:e=>a(e.target.value),required:""})]}),(0,Xo.jsx)("div",{style:PF})]}),(0,Xo.jsx)("button",{onClick:async()=>{if(n===i)try{200===(await ks.post("/reset-password",{email:t,newPassword:n})).status?e("recovered"):console.error("Failed to reset password")}catch(r){console.error("Error resetting password:",r.message)}else console.error("Passwords don't match")},style:RF,children:"Reset password"})]})})})};function IF(){const[e,t]=(0,$.useState)(""),{requestOTP:n,isFetching:r,setEmail:i,email:a,error:s,setError:o}=(0,$.useContext)(DF),[l,c]=(0,$.useState)(a||"");(0,$.useEffect)((()=>{(a||"")!==l&&c(a||"")}),[a]);return(0,Xo.jsxs)("div",{className:"login-container",children:[(0,Xo.jsxs)("div",{className:"login-header",children:[(0,Xo.jsx)(wn,{to:"/",className:"logo link-style",children:(0,Xo.jsx)("h1",{children:"Reset your password"})}),(0,Xo.jsx)("p",{children:"Enter email of account you want to reset"})]}),(0,Xo.jsxs)("div",{className:"login-form",children:[(0,Xo.jsxs)("div",{className:"form-group",children:[(0,Xo.jsx)("label",{htmlFor:"email",children:"Email"}),(0,Xo.jsx)("input",{className:"input2",id:"email",type:"email",name:"email",placeholder:"Email",value:l,onCh
2ange:e=>{const n=e.target.value;c(n),null===i||void 0===i||i(n),t(""),null===o||void 0===o||o(null)},autoComplete:"email",autoFocus:!0}),!l&&e&&(0,Xo.jsx)("span",{className:"error-message",children:"Please enter an email"})]}),(0,Xo.jsx)("button",{className:"login-button",type:"button",onClick:async()=>{const e=(l||"").trim().toLowerCase();if(e){t(""),null===o||void 0===o||o(null),null===i||void 0===i||i(e);try{await n(e)}catch(Ps){var r,a;t((null===Ps||void 0===Ps||null===(r=Ps.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.error)||"Could not start recovery.")}}else t("Please enter your email")},disabled:r,children:r?(0,Xo.jsx)(gh,{style:{color:"white"},size:18}):"Reset password"}),(e||s)&&(0,Xo.jsx)("span",{className:"error-message",children:e||String(s)}),(0,Xo.jsx)("div",{className:"login-link1",children:(0,Xo.jsx)(wn,{to:"/login",style:{textDecoration:"none"},children:"Back to login"})})]})]})}const DF=(0,$.createContext)();function OF(){const[e,t]=(0,$.useState)("login"),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(!1),[s,l]=(0,$.useState)(null),[c,d]=(0,$.useState)({email:"",resetToken:null,otpExpiresAt:null}),u=async e=>{l(null),a(!0);try{const{data:n}=await ks.post("/auth/forgot",{email:e});r(e),d((t=>o(o({},t),{},{email:e,otpExpiresAt:(null===n||void 0===n?void 0:n.otpExpiresAt)||null}))),t("otp")}catch(Ps){var n,i;l((null===Ps||void 0===Ps||null===(n=Ps.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error)||"Could not start recovery.")}finally{a(!1)}},h=async e=>{l(null),a(!0);try{const{data:r}=await ks.post("/auth/verify-otp",{email:n,code:e});if(null===r||void 0===r||!r.resetToken)throw new Error("Missing reset token from server.");d((e=>o(o({},e),{},{resetToken:r.resetToken}))),t("reset")}catch(Ps){var r,i;l((null===Ps||void 0===Ps||null===(r=Ps.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"Invalid or expired code.")}finally{a(!1)}},p=async e=>{l(null),a(!0);try{await ks.post("/auth/reset",{resetToken:c.resetToken,password:e}),t("recovered")}catch(Ps){var n,r;l((null===Ps||void 0===Ps||null===(n=Ps.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||"Could not reset password.")}finally{a(!1)}};function m(){return"login"===e?(0,Xo.jsx)(IF,{}):"otp"===e?(0,Xo.jsx)(fF,{}):"reset"===e?(0,Xo.jsx)(LF,{}):(0,Xo.jsx)(wF,{})}const f=(0,$.useMemo)((()=>({page:e,setPage:t,email:n,setEmail:r,recoveryInfo:c,setRecoveryInfo:d,isFetching:i,setIsFetching:a,error:s,setError:l,requestOTP:u,verifyOTP:h,resetPassword:p})),[e,n,c,i,s]);return(0,Xo.jsx)(DF.Provider,{value:f,children:(0,Xo.jsx)("div",{style:{height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,Xo.jsx)(m,{})})})}const MF=[{key:"Starter",label:"Starter",desc:"For individual creators getting started",monthlyPrice:12,annualPrice:6,credits:150,highlight:!1,features:["150 credits/mo (\u2248150 min of source video)","9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports"]},{key:"Pro",label:"Pro",desc:"For professional creators publishing daily",monthlyPrice:24,annualPrice:12,credits:300,highlight:!0,badge:"MOST POPULAR",features:["300 credits/mo (\u2248300 min of source video)","9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports"]},{key:"Premium",label:"Premium",desc:"For power creators scaling to the max",monthlyPrice:81,annualPrice:40,credits:1500,highlight:!1,badge:"BEST VALUE",features:["1,500 credits/mo (\u224825 hours of source video)","9:16 + 16:9 aspect ratios","HD rendered clips","AI animated captions","Watermark-free exports","Best per-credit value"]},{key:"Business",label:"Business",desc:"For organizations needing tailored solutions",monthlyPrice:null,annualPrice:null,credits:null,highlight:!1,isCustom:!0,features:["Everything in Pro","Priority project processing","Custom credit packs, team seats, social accounts","Tailored brand assets, fonts, vocabulary","Dedicated storage","API & custom integrations","Enterprise support (dedicated Slack)"]}
2],_F=[{id:"pack_100",credits:100,price:90,originalPrice:120,badge:"Best Value",mostPopular:!1,featured:!0,desc:"100 extra video generations"},{id:"pack_40",credits:40,price:44,originalPrice:60,badge:"Most Popular",mostPopular:!0,featured:!1,desc:"40 extra video generations"},{id:"pack_15",credits:15,price:20,originalPrice:24,badge:"Save 16%",mostPopular:!1,featured:!1,desc:"15 extra video generations"},{id:"pack_5",credits:5,price:8,originalPrice:null,badge:null,mostPopular:!1,featured:!1,desc:"5 extra video generations"}],FF=()=>(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),BF=()=>{const e=Vt(),[t]=An(),[n,r]=(0,$.useState)("credits"===t.get("tab")?"credits":"plans"),[i,a]=(0,$.useState)("monthly"),[s,l]=(0,$.useState)(null),c="annual"===i;return(0,Xo.jsxs)("div",{className:"pricing-page",children:[(0,Xo.jsxs)("button",{className:"pricing-back-btn",onClick:()=>e(-1),children:[(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"15 18 9 12 15 6"})}),"Back"]}),(0,Xo.jsxs)("div",{className:"pricing-inner",children:[(0,Xo.jsxs)("div",{className:"pricing-header",children:[(0,Xo.jsxs)("div",{className:"pricing-eyebrow",children:[(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),"BUILT FOR POWER CREATORS"]}),(0,Xo.jsxs)("h1",{className:"pricing-title",children:["GENERATE ",(0,Xo.jsx)("span",{className:"pricing-title-accent",children:"WITHOUT"}),(0,Xo.jsx)("br",{}),"LIMITS"]}),(0,Xo.jsx)("p",{className:"pricing-subtitle",children:"Upgrade your plan or top up credits to keep creating without interruptions."})]}),(0,Xo.jsxs)("div",{className:"pricing-tabs",children:[(0,Xo.jsxs)("button",{className:"pricing-tab".concat("plans"===n?" active":""),onClick:()=>r("plans"),children:[(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),"Upgrade Plan"]}),(0,Xo.jsxs)("button",{className:"pricing-tab".concat("credits"===n?" active":""),onClick:()=>r("credits"),children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),"Top-up Credits"]})]}),"plans"===n&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"pricing-interval-row",children:[(0,Xo.jsx)("button",{className:"pricing-interval-btn".concat(c?"":" active"),onClick:()=>a("monthly"),children:"Monthly"}),(0,Xo.jsx)("button",{className:"pricing-interval-btn".concat(c?" active":""),onClick:()=>a("annual"),children:"Annual"}),(0,Xo.jsx)("span",{className:"pricing-interval-save",children:"SAVE 50%"})]}),(0,Xo.jsx)("div",{className:"pricing-plans-grid",children:MF.map((e=>{const t=c?e.annualPrice:e.monthlyPrice,n=c?e.monthlyPrice:null,r=e.isCustom;return(0,Xo.jsxs)("div",{className:"pricing-plan-card".concat(e.highlight?" featured":"").concat("BEST VALUE"===e.badge?" best-value":""),children:[e.badge&&(0,Xo.jsxs)("div",{className:"pricing-plan-banner".concat("BEST VALUE"===e.badge?" best-value":" most-popular"),children:["MOST POPULAR"===e.badge?(0,Xo.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}):(0,Xo.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),e.badge]}),(0,Xo.jsx)("div",{className:"pricing-plan-label",children:e.label}),(0,Xo.jsx)("div",{className:"pricing-plan-desc",children:e.desc}),r?(0,Xo.jsx)("div",{className:"pricing-plan-price-row",children:(0,Xo.jsx)("span",{className:"pricing-plan-amount",children:"Custom"})}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"pricing-plan-price-row",children:[n&&(0,Xo.jsxs)("span",{className:"pricing-plan-original",children:["$",n]}),(0,Xo.jsxs)("span",{className:"pricing-plan-amount",children:["$",t]}),(0,Xo.jsx)("span",{className:"pricing-plan-period",children:"/month"})]}),c&&(0,Xo.jsxs)("div",{className:"pricing-plan-billed",children:["Billed annually ($",12*t,"/yr)"]})]}),e.credits&&(0,Xo.jsxs)("div",{className:"pricing-plan-gens-box",children:[(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,Xo.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),e.credits," credits/mo \xb7 ",e.credits," min of video"]}),(0,Xo.jsx)("button",{className:"pricing-plan-btn".concat(e.highlight?" primary":""),onClick:()=>r?window.open("mailto:[email protected]?subject=Business plan inquiry","_blank"):(async e=>{l(e);try{var t;const n=nA(),r=await ks.post("/billing/plan/checkout",o({planName:e,interval:i},n?{referral:n}:{}));null!==(t=r.data)&&void 0!==t&&t.url&&(window.location.href=r.data.url)}catch(K6){console.error("Checkout error:",K6),l(null)}})(e.key),disabled:s===e.key,children:s===e.key?(0,Xo.jsx)("span",{className:"pricing-spinner"}):r?"Contact us":"Subscribe"}),!r&&(0,Xo.jsx)("div",{className:"pricing-plan-trial-note",children:"Auto-renews \xb7 cancel anytime"}),(0,Xo.jsx)("ul",{className:"pricing-plan-features",children:e.features.map((e=>(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(FF,{}),e]},e)))})]},e.key)}))}),(0,Xo.jsx)("p",{className:"pricing-footer-note",children:"1 credit = 1 minute of source video processed. Prices exclude VAT. Cancel anytime."})]}),"credits"===n&&(0,Xo.jsxs)("div",{className:"pricing-credits-section",children:[(0,Xo.jsx)("p",{className:"pricing-credits-note",children:"Credits never expire and stack on top of your monthly plan allowance."}),(0,Xo.jsx)("div",{className:"pricing-credit-packs",children:_F.map((e=>{const t=e.originalPrice?Math.round(100*(1-e.price/e.originalPrice)):null;return(0,Xo.jsxs)("div",{className:"pricing-credit-pack".concat(e.featured?" featured":"").concat(e.mostPopular?" most-popular-pack":""),children:[e.mostPopular&&(0,Xo.jsx)("div",{className:"pricing-pack-glow"}),(0,Xo.jsxs)("div",{className:"pricing-credit-pack-left",children:[(0,Xo.jsxs)("div",{className:"pricing-credit-pack-credits",children:[(0,Xo.jsx)("span",{className:"pricing-credit-count",children:e.credits}),(0,Xo.jsx)("span",{className:"pricing-credit-word",children:" credits"}),e.badge&&(0,Xo.jsx)("span",{className:"pricing-credit-badge".concat(e.featured?" best":e.mostPopular?" popular":" save"),children:e.badge}),t&&(0,Xo.jsxs)("span",{className:"pricing-credit-discount-pill",children:["-",t,"%"]})]}),(0,Xo.jsx)("div",{className:"pricing-credit-pack-desc",children:e.desc})]}),(0,Xo.jsxs)("div",{className:"pricing-credit-pack-right",children:[(0,Xo.jsxs)("div",{className:"pricing-credit-price-row",children:[e.originalPrice&&(0,Xo.jsxs)("span",{className:"pricing-credit-original",children:["$",e.originalPrice]}),(0,Xo.jsxs)("span",{className:"pricing-credit-price",children:["$",e.price]})]}),(0,Xo.jsx)("button",{className:"pricing-credit-btn".concat(e.featured?" pricing-credit-btn--featured":""),onClick:()=>(async e=>{l(e);try{var t;const n=await ks.post("/billing/credits/checkout",{packId:e});null!==(t=n.data)&&void 0!==t&&t.url&&(window.location.href=n.data.url)}catch(K6){console.error("Credits checkout error:",K6),l(null)}})(e.id),disabled:s===e.id,children:s===e.id?(0,Xo.jsx)("span",{className:"pricing-spinner".concat(e.featured?" pricing-spinner--dark":"")}):"Purchase"})]})]},e.id)}))})]})]})]})},UF=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";function zF(){const{user:e}=(0,$.useContext)(Qo),t=!!e,n=Vt(),[r,i]=(0,$.useState)(""),{dispatch:a}=(0,$.useContext)(Qo),[s,o]=(0,$.useState)(!1),l=()=>{o(window.innerWidth<=768)};return(0,$.useEffect)((()=>(l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)})),[]),(0,Xo.jsxs)("div",{className:"about",children:[(0,Xo.jsxs)("nav",{className:"sticky-navbar ".concat(s?"mobile-nav":""),style:{zIndex:100},children:[(0,Xo.jsxs)("div",{className:"topbar-items",children:[(0,Xo.jsx)("div",{className:"logo ".concat(s?"mobile-logo":"").concat(s?"mobile-logo":"desktop-logo"),children:(0,Xo.jsxs)(wn,{to:"/home",style:{textDecoration:"none",color:"inherit"},children:[(0,Xo.jsx)("img",{className:"navlogo".concat(s?"mobile":"desktop"),src:s?UF:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAACeCAYAAADEzvgCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABjISURBVHhe7d0L3H1ZPcfxISZGSkkKXYxKUsYISWoUpSvySlLSFDIUXemKJEqJyiWJikQqMpVENJWUkCI1oaYLETG5E4nf57/P9jrPmbXX2pe197l93q/X9/Xs/+U5z/k///Octdftt06TJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGl7Pmz1UZI0zDUiZ0W+OPLZ/EZ4Y+SdkVeuriVJ0o76uMgFkf8t5AUR/q4kSdox9MbfH0k14Knwd8+NSJKkHUHDnGq0++QrI9KsnEOXtCto9JiTZj66nZN+xSrMSTM3vS0Mnb9j9XGMf4ycHdnmv0GSpFkxjP2GSKpnu55tzkk/M5J6TkPCv1GajT30kz4pckZzmXTxKtt05chlmstL+FDkouZy71xhlS70jv6nudSWXTpy1eYy6X2Rf2oui54YuW9z2Qsrx++x+rgUbjhYBFfDzSKMONR2euRqzWXS30cYJZCOxq9HUnfWbb4rsm3Pi6SeG9nnH9jvjaT+TW0+JaLd8LmR1P9Rm2+P9EFjnvr8UlhoRiO7lEdGUs9jTHisOTBFkfp6bR4Q0YH78NVHSVoS8+VDeubrGHZ/RnO5iHY+v4Ylb0R0ZGzQJS2NgixTG2QeY67e7qaa8/bnrD5K1dmgS1oavfMajSQ9fBr2udVshPuuLZAGs0GXtLRaw87cFNQcDu/ClrlaLAer2digS1pazXnkJRr0mqvS3Yeu2digS1oSDfDlmssqlhhyr9mg20PXbGzQJS2pdoO2RIPOc64x9/2uCFv1pFlYWOYk9qHfqrlM+u7I9zWXW/N1kc9oLi/hA5FHNZd7h33ofH+7UMjkr5pLbRn70P+guUxisdqTm8sk9kXX8qTI/ZrLWZ0XeUpzOdpcRWVwlch9msukl0Z+p7mUjsM+FJY5VBaW2R9TC8vQqKU+b0yWOPTkzAiV1lJfv29+NSLNyiF3SUuruTBsrh5vi3LQL4t8/KlfjcMogqetaXY26JKWxhB5jTlptpPNWe74YyO/GaGHvuk/Vx9z+DfeIbLElIBkgy5pcTTCU6u8cVAP60nm8lGRF0Y+89SvTnpz5FqR+0e4qWCxW4tG/PwIf8aKfofapS1xDn17nEPfH7UOZ2H1eOrz++a3IzS8tX1E5EWR1Nd8e4Rh+E0UuVlixb3UyR66pG2hwMzPNpej3DzyS5Ha72M/F7ldc3nCX0dusfq4iVEHi8Zoq2zQJW0LjeC5EYan+/jv1cd1Xx754eayisdGvra5POFfIreMXHTqV9IOch/6SfuwD31p14/wPTkrwv73K0cuG7lUhPnCf4j8eeQtEYZA2ev6wchQh7AP/eoRep2ftQpDswzFXj7C9+TiSNuTY7j5DRFWaddYINYHi7xolG4QOTtytQjPjbDIi+fH/+UfRV4ceW0kZeo+9BSGq/neteF7Ceao+X7xfeI1xq9Tw+wPjdAYT/GQyGOayxP43tw6MveK+l3HugH+b64XYW3BJ0d4fRNutngdvy/y1siFkddEeD/4r4i0uH2YQ39WhEYhlb+MbLpSJPV3ya9FUj46QiGNP4mkvg+5vDdCcRsa/iGWmEO/bYQ3nNT3Yj2pN/Uul4lQ0IOGJvW8S6Hn9+wIDcZcvijC6+afI6nn0BX+/786snnjX2sOfQx65DQeqa87ZZEcvfLUY/K1UsPvu4Yb79RruU2u6EwO7x+873GTl/r+lPL+CK/vL4nYgdSi9qFBf14k9dwIP7ibaFhTf5e8PLKJN0x6aam/PyT8IPPGTk++j7kb9NtE/j2Seuz1PC7SB71EtiO9J5J6nDG5IHKjSC3XiTw/kvpaQ8LWrfUFX9ts0EHDnfq6NL7Mqw9Fg911k5Aaft9FrKhPPf82D4gM8YkRytRyw5l6vDH508idItIijrlB/8gIBTBSf29KGAVgSLdkzgadKYN/i6Qedz19y+bSGxrbY+kT5oT5/5jinpGab8aMbLSjCNtu0MG2t9TXZhTi8yOb2qFhRlTWMYT8H5HUYzEEvy9qNuh3jjDSlnqcGuHG9boRaVbH2qDT23xJJPV3auT1kVKjPleD/mWRPo05c7B93CNSs6HsCkP4qe1RJSx0/clI6jGnhl7s3SK70KDjxyKpr0+Z1k+L3D3COoXU33lBhAV5XdMQU+fjl1ajQWe73tMiqc+vHUbwrJ6nWR1jg57bc1szlM/M7aqYo0Fni1GfxrdvJa97R1KfP1feFOHQjb6Yo5yrMW9Do/6wjd/bzFINOq8niriknkPXEHqf/EJk30xt0Fk38yuR1OfOFYoDjZ3bl4qO
2sUF//MbvpfK3EeZRWVj11MhzI/Qg+8xJryf3Rl+7QWcRTqkx5w2FxX993CuSeoxUGBFglfiDI/QSGfK/fYRhcBbc/X6Er5363M2wGr5vHXGmDFKPkQqPy/89z4+h9C+N3DHCSAXTJF3D0KTUWC7VoIPRpddFUs9jTLi55SZ330xp0LkR5Gc69XmpMP3CTc8DI18V4WeN1/hdIt8T4b0i9/pZDz8HfJ5U3bE16GxTSv0+4c9YIMbwapePifAD3Xc+mVX4p0dSajboLIwqreimUWL4vI8bRvq8Qf1NhMaM70vJp0Y4jrPP47KwrYR/c59e6asiN42UMDLwQxG2HKUeJ5clG3Rww8NoRuq5DMkfR+aoPLeEKQ0672upz9nM2yLclNKbL2F1/MMjufeYNvwMsBNDqurYGvSu/GjkCpG+WMn+6EjqsTZz10hKrQadM6dLjTnnxvddvcxCqr+IpB5nPYxeXC4yFCvR2dOdesz1fEukCwu93hFJfd566D0N3Tr0BZF3R1KP15WlG3Twfew76tGVV0f21dgG/SaRPt83bj7PiAzFXnV67KnHXA9716mTIFVz7A06Q+hTFqpQdCf1uOuhVGdKjQb9nAjFLVKf34beACdg9dVnSoKbmSl7bOkVUgI19dht6Ol8QiTlEZHU56xnyolf14wwupJ63FS20aB3rXofGla976MxDTo34n1uJh8UmYIdG5TTTT32erhpkKo55gadu3T2oE/BDy4r2lOP3+bvIqnFcVMbdIaR+fenPrcNc9vsR++Lhqy0ToCV1jUwb8vJXKmv0eYJkU1XjJSGNVm5PNWNI32H37fRoLNqOvVchmZfT0cb06Az6pP6u+vh57IGXt+sK0l9jTZMGVGNUqrimBt05ktr4KYg9fjrSf3QTmnQmX8rNeb03Fm8M8TTI6nHakNZy641AWMwpPlnkdTXItxc8P+57jsjqb/bhv3ETBvU0Ge0gizdoH96JPU8xmYfDW3QuanOvdYIr+/czpShKFbDgrrU12oz5bCeo1fzP0v7ix+yWjXquSlKnUa1jj3CtdBzZGVybv6a3hurzKk13xdrCCh72uVDEYaxa9appsHOnRPOYqTNNQilcqc/EEnd6I3xgxG+l7vm2quPtRxD0RPKIOe+b9Sv/9YIr/Na2C2TO68BrG05s7nUUDboAj3RWgeEMGzGIpicIXurc74wQmOe64G2Fc5Y3T3E10c2q4qtYy0A0wu1PSfClrIuFHZpUSaWqnVdOMyGfem1ULCl5slm2p7SDg+2p7JzoDYel2I/XZi2G7LGRWts0AXmtmpi+09OjSFgVl+/MJKrQMdwM5Xi2Kc8FNvxcmo2lOsYduTf1YVT7zjpCuwdz6FQSO2Trp4Zqdlr20Vdiw8PxaUjpdcON/lz4LVTGlZn9EAj2KCLN3wKndT05tXHLn32seawL5ybkFzBFXqnVIrL9Qa6MHzPDUMXDmSZc4sT0xY57Urs0n5yGvTa+L4yt3rIGNU5ZKw5yW0R49hTTtqbC0VpGNLvwla6Q7+pmoUNumh8a/fiSvOsUw4e+bxIqTFnTzYL4DjdaQz2suee40sjc/ZS2UrE1EUXGnSeX+6mg3Pq52p4d20lOP/Wmg69QS9tzaPO/Zz4/v5Wc5nEivjPaS41hA266HHVRsnVnLGvO6rWUZaUrVpdWADGcCJHwI51g9XHLheuPs6FLYSps+1bDLuzcCg3x08Pa66bjteuPu4KVmvX8q7IoTfopUV/c6wN2VT6Gm5fG8EGXaw8rY393rWdHaExLw3FMT/P353iWquPXabcLPSVa9ApG1t6wytNe0zByMcuzaPTQ2eYuAbWCBy63Oub/1dKOc+tNBVG5T8NZIMutkrtA+bdqA/dx5MjU+bgStugKNRCgztnUmd6txiSZOohZ85RBG7YKIe7K5gPHlKquAslgZ/YXB4sqsPlGnRGO2rteMkpNeg1t7YeDRt01Z4/n0tueHkT54jTqI9FDziHAhkUupkzpYWD1MjOYYvZnHalQefmhl0BNXp0rP6+XXN5sLjxyR1Aw86QJXCQUU6tYkhHxQZduzR0WtOdI1/TXA5CTfbLNpc7rXSQBQfUzGmJXlwJ71/UCK9Zf/0ZkaklkHdZ6cZ47tdNi0WfubU2HtQygg26DhnDp/Smh+Do0334uSi9Mf/r6uNcSgsfl/DjkdSpeVNGnejxUzQoN+Wxz0pH+y7VoCNXwdAGfQQbdO0rFn1xMlzuzZu65xwFO0Sfs8x3QWnr39xrI+a+YSihRO55zeUJ3Giwz5pKaKxYz+HPf7m5PIEh6ZdEDnEetzSVM8eC1i6519C+/BzuFBt07SNW4bI17fxI6VAZ6rF3ncG+z0q9UOaD55TbJz83GnLOdt/0wQjD5ezjZ7X6NSIsjmRNBDsf2vBreoD8+Z0iqcp81Dn4jQjrMQ5J6XWzZEOaG2XimGMNNOUM50NEha5bNZdJHCxQ6xCTsTht7Y7N5SUwr7m5mIReam4ByuMiD24uq2FRFyu1u3BgyMOby//HaWulgxvA9iTetNtiIvSm/jDSlkNN4chWTqMqLcQB8+e5+WGK1tQ6mW6K60U4/rILhXVe3lzOgpGP+zSXl3DfyJRFiTkMsf98ZLMzwloQDqr5xVO/GobXEFsib37qVyexRY8zA3ZhiiGH13du5fgDI9Th52S6t/IbHSgatFQtdYb3u4bWWXRZ+9AdHZljPD6VE7Rqo0FPfa023x/ZVDo+lVBdKrVg7ZwIxVhSn9OmbxlU5lBzj/XOyC4oHZtaqkU/FfW4U1+XzHV8KovfGBlIfc3U8PsQNCwcRpJ6bE7p43Wxy/oen8rBSKk/bzPkRMIpmDJKff02S+yFPzgOuWtf0IOiZ55atPPKSOmwFHodnKBWwrBtbusO28WmlK6tJTcCgquvPs5l6UVL7LtnaDzVsHIzOPWwHHrgHOSTOvqXnjur3w/h/ZJCUrlh96GLSMcq1YmYe9vlQbJB177gbObcQq+HRhgOz2GovLR/G7lyuDQofR5jbqVqdcwPz6nWDQNTRF8R+ZEIQ8b0zi5Y/Zqhe/4dTKcwepa6iaAhz50hPwSNOY16qjY8w/mHcHQsUxPvbi6TGJIfUvNhLEYUcpaoxnhwbNC1L0r75em50wDk0Cv4ieYyq1Q0ZRe2NJXe8Er16Kdgzpk5/KnuF+EgH+ZtuW7f5Bla59dsO+Qo3t+NpA7jYb783s1lNcyZ3yaSOg2M1xfPaxPPl2mfuW+iasnVvueGdWrp5D5KX+Ntq48awAZdh+RFkWc3l50Ytr9nc9mpdHRkavHU0hgizj1PGvSpx9R2uX7k9OZyFHrlnOhFL7yENRMcZ7vpFRGmUOYojMRxwhQlSj32EyL3ijAEz4hQO6LA8+HXhD9jS+WuKpVdXeKks1KD/pbVRw1gg65Dw+Kf0oEzrOy/anOZxKr5HFaQz+2bImyp4ohUtk6ldqTkVrHTi2b4eA6s+h6LxpwGZUqDx7a020dY7zAX5utTi/t4z3xq5NxIqkfO7/Fn3LDQsO9iCVO+fzlz34xwk3aL5jKJLWuMymggG3QdGraosQI8h+Hb3CKqV0dyW9euGbllczkLhp5/KkLFMo4qfU+Egh/0WjiLnefO0GhpW9qY0rd93GX1cQzmu6cMTbOT49aRJQrbUInuEc3lKDTs9N53bSie101uPQpTCMylz4WyzLnyyvz8LVng5mDYoOsQUd+bVfE5zJPSC05hFTBFRXK+Y/VxDt+8+riO4XOOTKXXTWEUeqds48ud3U1Pq3ZjwnD72DUE3KiU1jmU0OOld74Utliy730s/s006rvUU+dmqLQ9jUp7c+FGJ6f0s6cONug6VCyWKh0gwh78rtXapbl4KtXNMZdOz6g0x//c1UeGJnONDcPutYsGTbmRqXXWeKlBqG3q8+amKrWYbpuetfrYhZ+f3DGrY90tcqPmMomRA27INYINug4VdbpLhYAuH2E+NDU/TS3vi5rLTj8TmXLu+iaeB1vrcgvO6F0xP9viOeR8Y+TGzeVk3MTwhjzWWauPU7GifEmpeu9DUap2l4be2VmQq3XP1jWmHGq6UoT1KznPieRGnZRhg65DxhvSq5rLTgxhp4a4GdIuvfnwBk3vrVahGcpzls7jZtvdxc3lKRxSkxtNYK79pyNXPPWr8RgynlLOtbTveKiaR6bm8LxTq+zHYBverqDi3uOby04sXKs1tcTr8GkRKld24Tk9qbnUGDboOmRsO6Leeemgh8dGzmwuT3h6hH3JOczFsyI6t8inDwqXUOM+h+pZqZsMauDn/o3XiVD6duxz5MAOSg4zhz9W7TnkpRr0ml+n9D3gnAj21nflKZGaWHhZen3zs5E7M6APRpz6nDPPDXhpy6jUW6mWO3M7t91SzojgWGu585hjsVI59ZjreVkkNfTOcHVX/fD1sNWN8qRDXSpClbtSLXpy/0gXVo+nPmc9FGkZ2iizxoBVx6nH60pqu1ef5zckS82jMzSd+vpjQhGdHEaTUp/XJlful5GE1Oe0aWu5b+L1zSLQ1Oesh57zmLoGjGKxqj71mOuhOuMuLRzUASg16NsMW6Vggz4cPQQOe0g97nq6Tg9jLj719zdDo8yhJX2Gl2nIWYXOtrTUY22GHnbudESGNFlNnfrc9bDoiF4Xe9tzGGZm+x+jAqnHySXVoNPTTf3dsVmqh07BmNTXH5ucbTToeFgk9TmboXobO0P6HLFKnQd+zlmYmnqs9XwgstT/p46IDXodu9ag44aRUk+bN5/2+7yOhpRVwanP6QpvfgwhMgd59wj1yllQxhsrK9Opp536vF
2QujPTpvVwtwpt+6jE2Q6+M1zs3KzwvhkPZH8yq+OdHcm/E3BTQ20/9Gek6bS31d8dmqd5czR46yT3vbTXoYPg99Xmp8D7Dwsz2tcNrm9P92J3xmAiHJfUZ1WrDOQ1SdTbodexigw7KdqYeez3sz02tLWHhGw1x6nPmDHOcQ1ZHc5AJh4ykHqtW2Eueex12Nei1ertLHmFbc6rgjZGcbTbojBixwDP1uXOFES0WgqoSF8XpmLB4rHSoCXvLUw0SPQ5qh3MDNEf98BTKX94sMqQBY9U7ldTefupX9XFTNHYlcq196Evu6a5588ANza6icaWYzKMjS7y+GeXh6/F6UiU26DomlJPsczrXoyKp0pe80T0kQqWy0h71Kbh5YDU75WXH7MllOJwpBg6rqYV/O0OsDzr1q3Fo0M9vLkdjOJdh8KXwtUoFivra5QYd9Jr5P2YRbm6P+lSviVBt0AIyldmg69hQLrVUjIVztyk40/XzQdEZSqDS4y8dBDMUDRZvdsxl5+ptl3CmN3ObzN+XzokveW+EBXz03qZidfrYxoKGdekqcUxj1ThvnZusJW9EpuC8AF7f7aK2WhgdOy9y0wgjSarMBl3HiNXbbJPJoRpZbt6RxpZ9w+xf/4YIb4IsNBuDs9xZlERDzmrf0lxrX/S46AVxdvm3RUqnbG1imxVHnF43Uqu3TwPJzcHQRp0Gke/NkvPnrfZc9rFoFOc+waw2judluyfnBjAqM/S10+LnhFGZu0ZY38GNMsP7mkFuG4ykYVjBzHGnnEXOkD1bd64SYZsPddUp/kKVNxpKFq6xd/11kddH2LqzBBp3ekjsmb92hJPnKIFLZTwaW57XmyK/F3lxZMooQQ7fK+bCKYlawlZA/m5q0edSWHRGD7ur9n/OHSL70jvPYXHmTSKcl84iXXZV8NphfzrTRNy4EG66WMxJkRi2UnJzIEk6cDSUDGkzv0xDwKgCDTcNII04f74ruAnhebWrtEvh37NvPXNJko4GNyDtzUdXGKZfaq+8dIpD7pI0DkPQzOu3Vc5o5BlpYA3ENqcHJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEnaW6ed9n+P+bJJFQsf9wAAAABJRU5ErkJggg==",alt:""})," "]})}),(0,Xo.jsx)(wn,{to:"/pricing",children:(0,Xo.jsx)("button",{className:"topbar-item",children:"Pricing"})})]}),(0,Xo.jsxs)("div",{className:"login-signup",children:[t?(0,Xo.jsx)("button",{onClick:()=>{qo(a)},className:"login",children:"Log out"}):(0,Xo.jsx)(wn,{to:"/login",children:(0,Xo.jsx)("button",{className:"login ".concat(s?"mobile-button":""),children:"Login"})}),t?(0,Xo.jsx)(wn,{to:"/admin",children:(0,Xo.jsx)("button",{className:"signup",children:"Admin"})}):(0,Xo.jsx)("div",{className:"signup-input",children:(0,Xo.jsx)(wn,{to:"/signup",children:(0,Xo.jsx)("button",{onClick:()=>{r&&n("/signup?username=".concat(r))},className:"signup ".concat(s?"mobile-button":""),children:(0,Xo.jsx)("span",{style:{whiteSpace:"nowrap"},children:s?"Sign Up":"Sign Up Free"})})})})]})]}),(0,Xo.jsx)("div",{className:"about-container",children:(0,Xo.jsxs)("div",{className:"about-content",children:[(0,Xo.jsx)("h1",{className:"hero1",children:"Our Founders' Story"}),(0,Xo.jsx)("p",{className:"hero3",children:"In 2021, Spirit encountered the stifling grip of censorship while sharing his content on mainstream social media platforms. Recognizing the imperative of a liberated space for expression, he drew inspiration from tech luminaries Elon Musk and Chris Pavloski. Fueled by a passion to defy limitations, Spirit took decisive action, launching an alternative platform that not only safeguards creators from censorship but also streamlines the sharing process with simplified links. His journey embodies the resilience of those who refuse to be silenced, carving a path towards a digital realm where freedom of expression reigns supreme."})]})}),(0,Xo.jsx)(Ad,{})]})}const GF=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";function WF(){const{user:e}=(0,$.useContext)(Qo),t=!!e,n=Vt(),[r,i]=(0,$.useState)(""),{dispatch:a}=(0,$.useContext)(Qo),[s,o]=(0,$.useState)(!1),l=()=>{o(window.innerWidth<=768)};return(0,$.useEffect)((()=>(l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)})),[]),(0,Xo.jsxs)("div",{className:"about",children:[(0,Xo.jsxs)("nav",{className:"sticky-navbar ".concat(s?"mobile-nav":""),style:{zIndex:100},children:[(0,Xo.jsxs)("div",{className:"topbar-items",children:[(0,Xo.jsx)("div",{className:"logo ".concat(s?"mobile-logo":"").concat(s?"mobile-logo":"desktop-logo"),children:(0,Xo.jsxs)(wn,{to:"/home",style:{textDecoration:"none",color:"inherit"},children:[(0,Xo.jsx)("img",{className:"navlogo".concat(s?"mobile":"desktop"),src:s?GF:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAACeCAYAAADEzvgCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABjISURBVHhe7d0L3H1ZPcfxISZGSkkKXYxKUsYISWoUpSvySlLSFDIUXemKJEqJyiWJikQqMpVENJWUkCI1oaYLETG5E4nf57/P9jrPmbXX2pe197l93q/X9/Xs/+U5z/k///Octdftt06TJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGl7Pmz1UZI0zDUiZ0W+OPLZ/EZ4Y+SdkVeuriVJ0o76uMgFkf8t5AUR/q4kSdox9MbfH0k14Knwd8+NSJKkHUHDnGq0++QrI9KsnEOXtCto9JiTZj66nZN+xSrMSTM3vS0Mnb9j9XGMf4ycHdnmv0GSpFkxjP2GSKpnu55tzkk/M5J6TkPCv1GajT30kz4pckZzmXTxKtt05chlmstL+FDkouZy71xhlS70jv6nudSWXTpy1eYy6X2Rf2oui54YuW9z2Qsrx++x+rgUbjhYBFfDzSKMONR2euRqzWXS30cYJZCOxq9HUnfWbb4rsm3Pi6SeG9nnH9jvjaT+TW0+JaLd8LmR1P9Rm2+P9EFjnvr8UlhoRiO7lEdGUs9jTHisOTBFkfp6bR4Q0YH78NVHSVoS8+VDeubrGHZ/RnO5iHY+v4Ylb0R0ZGzQJS2NgixTG2QeY67e7qaa8/bnrD5K1dmgS1oavfMajSQ9fBr2udVshPuuLZAGs0GXtLRaw87cFNQcDu/ClrlaLAer2digS1pazXnkJRr0mqvS3Yeu2digS1oSDfDlmssqlhhyr9mg20PXbGzQJS2pdoO2RIPOc64x9/2uCFv1pFlYWOYk9qHfqrlM+u7I9zWXW/N1kc9oLi/hA5FHNZd7h33ofH+7UMjkr5pLbRn70P+guUxisdqTm8sk9kXX8qTI/ZrLWZ0XeUpzOdpcRWVwlch9msukl0Z+p7mUjsM+FJY5VBaW2R9TC8vQqKU+b0yWOPTkzAiV1lJfv29+NSLNyiF3SUuruTBsrh5vi3LQL4t8/KlfjcMogqetaXY26JKWxhB5jTlptpPNWe74YyO/GaGHvuk/Vx9z+DfeIbLElIBkgy5pcTTCU6u8cVAP60nm8lGRF0Y+89SvTnpz5FqR+0e4qWCxW4tG/PwIf8aKfofapS1xDn17nEPfH7UOZ2H1eOrz++a3IzS8tX1E5EWR1Nd8e4Rh+E0UuVlixb3UyR66pG2hwMzPNpej3DzyS5Ha72M/F7ldc3nCX0dusfq4iVEHi8Zoq2zQJW0LjeC5EYan+/jv1cd1Xx754eayisdGvra5POFfIreMXHTqV9IOch/6SfuwD31p14/wPTkrwv73K0cuG7lUhPnCf4j8eeQtEYZA2ev6wchQh7AP/eoRep2ftQpDswzFXj7C9+TiSNuTY7j5DRFWaddYINYHi7xolG4QOTtytQjPjbDIi+fH/+UfRV4ceW0kZeo+9BSGq/neteF7Ceao+X7xfeI1xq9Tw+wPjdAYT/GQyGOayxP43tw6MveK+l3HugH+b64XYW3BJ0d4fRNutngdvy/y1siFkddEeD/4r4i0uH2YQ39WhEYhlb+MbLpSJPV3ya9FUj46QiGNP4mkvg+5vDdCcRsa/iGWmEO/bYQ3nNT3Yj2pN/Uul4lQ0IOGJvW8S6Hn9+wIDcZcvijC6+afI6nn0BX+/786snnjX2sOfQx65DQeqa87ZZEcvfLUY/K1UsPvu4Yb79RruU2u6EwO7x+873GTl/r+lPL+CK/vL4nYgdSi9qFBf14k9dwIP7ibaFhTf5e8PLKJN0x6aam/PyT8IPPGTk++j7kb9NtE/j2Seuz1PC7SB71EtiO9J5J6nDG5IHKjSC3XiTw/kvpaQ8LWrfUFX9ts0EHDnfq6NL7Mqw9Fg911k5Aaft9FrKhPPf82D4gM8YkRytRyw5l6vDH508idItIijrlB/8gIBTBSf29KGAVgSLdkzgadKYN/i6Qedz19y+bSGxrbY+kT5oT5/5jinpGab8aMbLSjCNtu0MG2t9TXZhTi8yOb2qFhRlTWMYT8H5HUYzEEvy9qNuh3jjDSlnqcGuHG9boRaVbH2qDT23xJJPV3auT1kVKjPleD/mWRPo05c7B93CNSs6HsCkP4qe1RJSx0/clI6jGnhl7s3SK70KDjxyKpr0+Z1k+L3D3COoXU33lBhAV5XdMQU+fjl1ajQWe73tMiqc+vHUbwrJ6nWR1jg57bc1szlM/M7aqYo0Fni1GfxrdvJa97R1KfP1feFOHQjb6Yo5yrMW9Do/6wjd/bzFINOq8niriknkPXEHqf/EJk30xt0Fk38yuR1OfOFYoDjZ3bl4qO
2sUF//MbvpfK3EeZRWVj11MhzI/Qg+8xJryf3Rl+7QWcRTqkx5w2FxX993CuSeoxUGBFglfiDI/QSGfK/fYRhcBbc/X6Er5363M2wGr5vHXGmDFKPkQqPy/89z4+h9C+N3DHCSAXTJF3D0KTUWC7VoIPRpddFUs9jTLi55SZ330xp0LkR5Gc69XmpMP3CTc8DI18V4WeN1/hdIt8T4b0i9/pZDz8HfJ5U3bE16GxTSv0+4c9YIMbwapePifAD3Xc+mVX4p0dSajboLIwqreimUWL4vI8bRvq8Qf1NhMaM70vJp0Y4jrPP47KwrYR/c59e6asiN42UMDLwQxG2HKUeJ5clG3Rww8NoRuq5DMkfR+aoPLeEKQ0672upz9nM2yLclNKbL2F1/MMjufeYNvwMsBNDqurYGvSu/GjkCpG+WMn+6EjqsTZz10hKrQadM6dLjTnnxvddvcxCqr+IpB5nPYxeXC4yFCvR2dOdesz1fEukCwu93hFJfd566D0N3Tr0BZF3R1KP15WlG3Twfew76tGVV0f21dgG/SaRPt83bj7PiAzFXnV67KnHXA9716mTIFVz7A06Q+hTFqpQdCf1uOuhVGdKjQb9nAjFLVKf34beACdg9dVnSoKbmSl7bOkVUgI19dht6Ol8QiTlEZHU56xnyolf14wwupJ63FS20aB3rXofGla976MxDTo34n1uJh8UmYIdG5TTTT32erhpkKo55gadu3T2oE/BDy4r2lOP3+bvIqnFcVMbdIaR+fenPrcNc9vsR++Lhqy0ToCV1jUwb8vJXKmv0eYJkU1XjJSGNVm5PNWNI32H37fRoLNqOvVchmZfT0cb06Az6pP6u+vh57IGXt+sK0l9jTZMGVGNUqrimBt05ktr4KYg9fjrSf3QTmnQmX8rNeb03Fm8M8TTI6nHakNZy641AWMwpPlnkdTXItxc8P+57jsjqb/bhv3ETBvU0Ge0gizdoH96JPU8xmYfDW3QuanOvdYIr+/czpShKFbDgrrU12oz5bCeo1fzP0v7ix+yWjXquSlKnUa1jj3CtdBzZGVybv6a3hurzKk13xdrCCh72uVDEYaxa9appsHOnRPOYqTNNQilcqc/EEnd6I3xgxG+l7vm2quPtRxD0RPKIOe+b9Sv/9YIr/Na2C2TO68BrG05s7nUUDboAj3RWgeEMGzGIpicIXurc74wQmOe64G2Fc5Y3T3E10c2q4qtYy0A0wu1PSfClrIuFHZpUSaWqnVdOMyGfem1ULCl5slm2p7SDg+2p7JzoDYel2I/XZi2G7LGRWts0AXmtmpi+09OjSFgVl+/MJKrQMdwM5Xi2Kc8FNvxcmo2lOsYduTf1YVT7zjpCuwdz6FQSO2Trp4Zqdlr20Vdiw8PxaUjpdcON/lz4LVTGlZn9EAj2KCLN3wKndT05tXHLn32seawL5ybkFzBFXqnVIrL9Qa6MHzPDUMXDmSZc4sT0xY57Urs0n5yGvTa+L4yt3rIGNU5ZKw5yW0R49hTTtqbC0VpGNLvwla6Q7+pmoUNumh8a/fiSvOsUw4e+bxIqTFnTzYL4DjdaQz2suee40sjc/ZS2UrE1EUXGnSeX+6mg3Pq52p4d20lOP/Wmg69QS9tzaPO/Zz4/v5Wc5nEivjPaS41hA266HHVRsnVnLGvO6rWUZaUrVpdWADGcCJHwI51g9XHLheuPs6FLYSps+1bDLuzcCg3x08Pa66bjteuPu4KVmvX8q7IoTfopUV/c6wN2VT6Gm5fG8EGXaw8rY393rWdHaExLw3FMT/P353iWquPXabcLPSVa9ApG1t6wytNe0zByMcuzaPTQ2eYuAbWCBy63Oub/1dKOc+tNBVG5T8NZIMutkrtA+bdqA/dx5MjU+bgStugKNRCgztnUmd6txiSZOohZ85RBG7YKIe7K5gPHlKquAslgZ/YXB4sqsPlGnRGO2rteMkpNeg1t7YeDRt01Z4/n0tueHkT54jTqI9FDziHAhkUupkzpYWD1MjOYYvZnHalQefmhl0BNXp0rP6+XXN5sLjxyR1Aw86QJXCQUU6tYkhHxQZduzR0WtOdI1/TXA5CTfbLNpc7rXSQBQfUzGmJXlwJ71/UCK9Zf/0ZkaklkHdZ6cZ47tdNi0WfubU2HtQygg26DhnDp/Smh+Do0334uSi9Mf/r6uNcSgsfl/DjkdSpeVNGnejxUzQoN+Wxz0pH+y7VoCNXwdAGfQQbdO0rFn1xMlzuzZu65xwFO0Sfs8x3QWnr39xrI+a+YSihRO55zeUJ3Giwz5pKaKxYz+HPf7m5PIEh6ZdEDnEetzSVM8eC1i6519C+/BzuFBt07SNW4bI17fxI6VAZ6rF3ncG+z0q9UOaD55TbJz83GnLOdt/0wQjD5ezjZ7X6NSIsjmRNBDsf2vBreoD8+Z0iqcp81Dn4jQjrMQ5J6XWzZEOaG2XimGMNNOUM50NEha5bNZdJHCxQ6xCTsTht7Y7N5SUwr7m5mIReam4ByuMiD24uq2FRFyu1u3BgyMOby//HaWulgxvA9iTetNtiIvSm/jDSlkNN4chWTqMqLcQB8+e5+WGK1tQ6mW6K60U4/rILhXVe3lzOgpGP+zSXl3DfyJRFiTkMsf98ZLMzwloQDqr5xVO/GobXEFsib37qVyexRY8zA3ZhiiGH13du5fgDI9Th52S6t/IbHSgatFQtdYb3u4bWWXRZ+9AdHZljPD6VE7Rqo0FPfa023x/ZVDo+lVBdKrVg7ZwIxVhSn9OmbxlU5lBzj/XOyC4oHZtaqkU/FfW4U1+XzHV8KovfGBlIfc3U8PsQNCwcRpJ6bE7p43Wxy/oen8rBSKk/bzPkRMIpmDJKff02S+yFPzgOuWtf0IOiZ55atPPKSOmwFHodnKBWwrBtbusO28WmlK6tJTcCgquvPs5l6UVL7LtnaDzVsHIzOPWwHHrgHOSTOvqXnjur3w/h/ZJCUrlh96GLSMcq1YmYe9vlQbJB177gbObcQq+HRhgOz2GovLR/G7lyuDQofR5jbqVqdcwPz6nWDQNTRF8R+ZEIQ8b0zi5Y/Zqhe/4dTKcwepa6iaAhz50hPwSNOY16qjY8w/mHcHQsUxPvbi6TGJIfUvNhLEYUcpaoxnhwbNC1L0r75em50wDk0Cv4ieYyq1Q0ZRe2NJXe8Er16Kdgzpk5/KnuF+EgH+ZtuW7f5Bla59dsO+Qo3t+NpA7jYb783s1lNcyZ3yaSOg2M1xfPaxPPl2mfuW+iasnVvueGdWrp5D5KX+Ntq48awAZdh+RFkWc3l50Ytr9nc9mpdHRkavHU0hgizj1PGvSpx9R2uX7k9OZyFHrlnOhFL7yENRMcZ7vpFRGmUOYojMRxwhQlSj32EyL3ijAEz4hQO6LA8+HXhD9jS+WuKpVdXeKks1KD/pbVRw1gg65Dw+Kf0oEzrOy/anOZxKr5HFaQz+2bImyp4ohUtk6ldqTkVrHTi2b4eA6s+h6LxpwGZUqDx7a020dY7zAX5utTi/t4z3xq5NxIqkfO7/Fn3LDQsO9iCVO+fzlz34xwk3aL5jKJLWuMymggG3QdGraosQI8h+Hb3CKqV0dyW9euGbllczkLhp5/KkLFMo4qfU+Egh/0WjiLnefO0GhpW9qY0rd93GX1cQzmu6cMTbOT49aRJQrbUInuEc3lKDTs9N53bSie101uPQpTCMylz4WyzLnyyvz8LVng5mDYoOsQUd+bVfE5zJPSC05hFTBFRXK+Y/VxDt+8+riO4XOOTKXXTWEUeqds48ud3U1Pq3ZjwnD72DUE3KiU1jmU0OOld74Utliy730s/s006rvUU+dmqLQ9jUp7c+FGJ6f0s6cONug6VCyWKh0gwh78rtXapbl4KtXNMZdOz6g0x//c1UeGJnONDcPutYsGTbmRqXXWeKlBqG3q8+amKrWYbpuetfrYhZ+f3DGrY90tcqPmMomRA27INYINug4VdbpLhYAuH2E+NDU/TS3vi5rLTj8TmXLu+iaeB1vrcgvO6F0xP9viOeR8Y+TGzeVk3MTwhjzWWauPU7GifEmpeu9DUap2l4be2VmQq3XP1jWmHGq6UoT1KznPieRGnZRhg65DxhvSq5rLTgxhp4a4GdIuvfnwBk3vrVahGcpzls7jZtvdxc3lKRxSkxtNYK79pyNXPPWr8RgynlLOtbTveKiaR6bm8LxTq+zHYBverqDi3uOby04sXKs1tcTr8GkRKld24Tk9qbnUGDboOmRsO6Leeemgh8dGzmwuT3h6hH3JOczFsyI6t8inDwqXUOM+h+pZqZsMauDn/o3XiVD6duxz5MAOSg4zhz9W7TnkpRr0ml+n9D3gnAj21nflKZGaWHhZen3zs5E7M6APRpz6nDPPDXhpy6jUW6mWO3M7t91SzojgWGu585hjsVI59ZjreVkkNfTOcHVX/fD1sNWN8qRDXSpClbtSLXpy/0gXVo+nPmc9FGkZ2iizxoBVx6nH60pqu1ef5zckS82jMzSd+vpjQhGdHEaTUp/XJlful5GE1Oe0aWu5b+L1zSLQ1Oesh57zmLoGjGKxqj71mOuhOuMuLRzUASg16NsMW6Vggz4cPQQOe0g97nq6Tg9jLj719zdDo8yhJX2Gl2nIWYXOtrTUY22GHnbudESGNFlNnfrc9bDoiF4Xe9tzGGZm+x+jAqnHySXVoNPTTf3dsVmqh07BmNTXH5ucbTToeFgk9TmboXobO0P6HLFKnQd+zlmYmnqs9XwgstT/p46IDXodu9ag44aRUk+bN5/2+7yOhpRVwanP6QpvfgwhMgd59wj1yllQxhsrK9Opp536vF
2QujPTpvVwtwpt+6jE2Q6+M1zs3KzwvhkPZH8yq+OdHcm/E3BTQ20/9Gek6bS31d8dmqd5czR46yT3vbTXoYPg99Xmp8D7Dwsz2tcNrm9P92J3xmAiHJfUZ1WrDOQ1SdTbodexigw7KdqYeez3sz02tLWHhGw1x6nPmDHOcQ1ZHc5AJh4ykHqtW2Eueex12Nei1ertLHmFbc6rgjZGcbTbojBixwDP1uXOFES0WgqoSF8XpmLB4rHSoCXvLUw0SPQ5qh3MDNEf98BTKX94sMqQBY9U7ldTefupX9XFTNHYlcq196Evu6a5588ANza6icaWYzKMjS7y+GeXh6/F6UiU26DomlJPsczrXoyKp0pe80T0kQqWy0h71Kbh5YDU75WXH7MllOJwpBg6rqYV/O0OsDzr1q3Fo0M9vLkdjOJdh8KXwtUoFivra5QYd9Jr5P2YRbm6P+lSviVBt0AIyldmg69hQLrVUjIVztyk40/XzQdEZSqDS4y8dBDMUDRZvdsxl5+ptl3CmN3ObzN+XzokveW+EBXz03qZidfrYxoKGdekqcUxj1ThvnZusJW9EpuC8AF7f7aK2WhgdOy9y0wgjSarMBl3HiNXbbJPJoRpZbt6RxpZ9w+xf/4YIb4IsNBuDs9xZlERDzmrf0lxrX/S46AVxdvm3RUqnbG1imxVHnF43Uqu3TwPJzcHQRp0Gke/NkvPnrfZc9rFoFOc+waw2judluyfnBjAqM/S10+LnhFGZu0ZY38GNMsP7mkFuG4ykYVjBzHGnnEXOkD1bd64SYZsPddUp/kKVNxpKFq6xd/11kddH2LqzBBp3ekjsmb92hJPnKIFLZTwaW57XmyK/F3lxZMooQQ7fK+bCKYlawlZA/m5q0edSWHRGD7ur9n/OHSL70jvPYXHmTSKcl84iXXZV8NphfzrTRNy4EG66WMxJkRi2UnJzIEk6cDSUDGkzv0xDwKgCDTcNII04f74ruAnhebWrtEvh37NvPXNJko4GNyDtzUdXGKZfaq+8dIpD7pI0DkPQzOu3Vc5o5BlpYA3ENqcHJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEnaW6ed9n+P+bJJFQsf9wAAAABJRU5ErkJggg==",alt:""})," "]})}),(0,Xo.jsx)(wn,{to:"/pricing",children:(0,Xo.jsx)("button",{className:"topbar-item",children:"Pricing"})})]}),(0,Xo.jsxs)("div",{className:"login-signup",children:[t?(0,Xo.jsx)("button",{onClick:()=>{qo(a)},className:"login",children:"Log out"}):(0,Xo.jsx)(wn,{to:"/login",children:(0,Xo.jsx)("button",{className:"login ".concat(s?"mobile-button":""),children:"Login"})}),t?(0,Xo.jsx)(wn,{to:"/admin",children:(0,Xo.jsx)("button",{className:"signup",children:"Admin"})}):(0,Xo.jsx)("div",{className:"signup-input",children:(0,Xo.jsx)(wn,{to:"/signup",children:(0,Xo.jsx)("button",{onClick:()=>{r&&n("/signup?username=".concat(r))},className:"signup ".concat(s?"mobile-button":""),children:(0,Xo.jsx)("span",{style:{whiteSpace:"nowrap"},children:s?"Sign Up":"Sign Up Free"})})})})]})]}),(0,Xo.jsx)("div",{className:"about-container",children:(0,Xo.jsxs)("div",{className:"about-content",children:[(0,Xo.jsx)("h1",{className:"hero1",children:"Press"}),(0,Xo.jsxs)("p",{className:"hero3",children:["For media inquiries and collaboration opportunities, reach out to our press team at ",(0,Xo.jsx)("a",{className:"hrefmail",href:"mailto:[email protected]",children:"[email protected]"}),". At XSubscribe, we thrive on partnering with global media to disseminate our unparalleled wealth of data about the creator economy worldwide. Whether you're interested in featuring compelling stories about the evolving digital landscape or shining a spotlight on the inspiring users and happenings at XSubscribe, we welcome the opportunity to connect. If you're not a member of the media but still need to get in touch, drop us a line at ",(0,Xo.jsx)("a",{className:"hrefmail",href:"mailto:[email protected]",children:"[email protected]"}),", and let's start a conversation."]})]})}),(0,Xo.jsx)(Ad,{})]})}const HF=[{id:"intro",type:"welcome",title:"Welcome! We\u2019re excited to get started",subtitle:"This short onboarding form will help us understand your goals, assets, and preferences so we can launch your distribution the right way."},{id:"goal",type:"longtext",key:"goal",n:1,required:!0,title:"Please describe your primary goal with distribution to the best of your ability"},{id:"promote",type:"longtext",key:"promote",n:2,required:!0,title:"Is there anything specific you want pushed or promoted right now?",hint:"(ex: new video, new product, community, movie, album, etc.) \u2014 if so, drop links below"},{id:"trafficPages",type:"longtext",key:"trafficPages",n:3,required:!0,title:"Which main pages should we direct traffic to?",hint:"Please paste the links for your primary pages on IG, TikTok, YT"},{id:"contentStyles",type:"longtext",key:"contentStyles",n:4,required:!0,title:"What content styles do you prefer?",hint:"(ex. talking head clips, lifestyle edits, raw moments, no preference)"},{id:"styleRef",type:"longtext",key:"styleRef",n:5,required:!1,title:"Drop a link to an account or clips that represent the style you want the clippers to model"},{id:"postingTargets",type:"multi",key:"postingTargets",n:6,required:!1,title:"Where do you want your clips to get posted?",hint:"Choose as many as you like",options:[{key:"A",label:"On pages under your own brand only"},{key:"B",label:"On large theme pages in your niche only"},{key:"C",label:"Both (branded pages + theme pages)"}]}
2,{id:"nicheRefs",type:"longtext",key:"nicheRefs",n:7,required:!0,title:"Drop the social links to a couple brands/figures in your niche so we can research angles"},{id:"assets",type:"longtext",key:"assets",n:8,required:!1,title:"Drop any content assets links you currently have available for us to clip",hint:"(Google drive, YouTube video, Dropbox, etc.)"}],VF=HF.length;function KF(){const[e,t]=(0,$.useState)(0),[n,r]=(0,$.useState)(1),[i,a]=(0,$.useState)({firstName:"",lastName:"",company:"",goal:"",promote:"",trafficPages:"",contentStyles:"",styleRef:"",nicheRefs:"",assets:"",postingTargets:[]}),[s,l]=(0,$.useState)(""),[c,d]=(0,$.useState)(!1),[u,h]=(0,$.useState)(!1),p=(0,$.useRef)(null),m=HF[e],f=e===VF-1;(0,$.useEffect)((()=>{l("");const e=setTimeout((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.focus()}),260);return()=>clearTimeout(e)}),[e]);const g=(e,t)=>a((n=>o(o({},n),{},{[e]:t}))),v=(0,$.useCallback)((e=>{var t;return"welcome"===e.type?i.firstName.trim().length>0:"multi"===e.type?i[e.key].length>0:(null===(t=i[e.key])||void 0===t?void 0:t.trim().length)>0}),[i]),b=(0,$.useCallback)((async()=>{if(!c){d(!0),l("");try{await ks.post("/agency-onboarding",i),h(!0)}catch(K6){var e,t;l("goal_required"===(null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)?"Please answer the primary-goal question.":"Something went wrong. Please try again.")}finally{d(!1)}}}),[i,c]),y=(0,$.useCallback)((()=>{!m.required||v(m)?f?b():(r(1),t((e=>Math.min(VF-1,e+1)))):l("This one\u2019s required to continue.")}),[m,f,v,b]),x=(0,$.useCallback)((()=>{0!==e&&(r(-1),t((e=>Math.max(0,e-1))))}),[e]),S=e=>{if("Enter"===e.key){if(e.shiftKey)return;e.preventDefault(),y()}};return u?(0,Xo.jsx)("div",{className:"agon",children:(0,Xo.jsx)("div",{className:"agon-stage",children:(0,Xo.jsxs)("div",{className:"agon-screen agon-done",children:[(0,Xo.jsx)("div",{className:"agon-check",children:(0,Xo.jsx)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,Xo.jsxs)("h1",{className:"agon-q",children:["You\u2019re all set",i.firstName?", ".concat(i.firstName):""," \ud83c\udf89"]}),(0,Xo.jsx)("p",{className:"agon-sub",children:"Thanks for the detail \u2014 our team will review everything and start building your distribution. We\u2019ll be in touch shortly."})]})})}):(0,Xo.jsxs)("div",{className:"agon",children:[(0,Xo.jsx)("div",{className:"agon-progress",children:(0,Xo.jsx)("div",{className:"agon-progress-fill",style:{width:"".concat(e/(VF-1)*100,"%")}})}),(0,Xo.jsx)("div",{className:"agon-stage",children:(0,Xo.jsxs)("div",{className:"agon-screen ".concat(n>=0?"agon-in-fwd":"agon-in-back"),children:["welcome"!==m.type&&(0,Xo.jsxs)("div",{className:"agon-num",children:[m.n,(0,Xo.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("polyline",{points:"5 12 19 12"}),(0,Xo.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]}),"welcome"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("h1",{className:"agon-q",children:m.title}),(0,Xo.jsx)("p",{className:"agon-sub",children:m.subtitle}),(0,Xo.jsxs)("div",{className:"agon-namegrid",children:[(0,Xo.jsx)("input",{ref:p,className:"agon-input",placeholder:"First name",value:i.firstName,onChange:e=>g("firstName",e.target.value),onKeyDown:S}),(0,Xo.jsx)("input",{className:"agon-input",placeholder:"Last name",value:i.lastName,onChange:e=>g("lastName",e.target.value),onKeyDown:S}),(0,Xo.jsx)("input",{className:"agon-input",placeholder:"Company",value:i.company,onChange:e=>g("company",e.target.value),onKeyDown:S})]})]}),"longtext"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("h1",{className:"agon-q",children:[m.title,m.required&&(0,Xo.jsx)("span",{className:"agon-star",children:"*"})]}),m.hint&&(0,Xo.jsx)("p",{className:"agon-hint",children:m.hint}),(0,Xo.jsx)("textarea",{ref:p,className:"agon-textarea",rows:1,placeholder:"Type your answer here\u2026",value:i[m.key],onChange:e=>g(m.key,e.target.value),onKeyDown:S,onInput:e=>{e.target.style.height="auto",e.target.style.height="".concat(e.target.scrollHeight,"px")}}),(0,Xo.jsx)("p",{className:"agon-linebreak",children:"Shift \u21e7 + Enter \u21b5 to make a line break"})]}),"multi"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("h1",{className:"agon-q",children:m.title}),m.hint&&(0,Xo.jsx)("p",{className:"agon-hint",children:m.hint}),(0,Xo.jsx)("div",{className:"agon-options",children:m.options.map((e=>
2{const t=i.postingTargets.includes(e.key);return(0,Xo.jsxs)("button",{ref:"A"===e.key?p:null,className:"agon-opt ".concat(t?"on":""),onClick:()=>{return t=e.key,l(""),void a((e=>{const n=e.postingTargets;return o(o({},e),{},{postingTargets:n.includes(t)?n.filter((e=>e!==t)):[...n,t]})}));var t},children:[(0,Xo.jsx)("span",{className:"agon-opt-key",children:e.key}),(0,Xo.jsx)("span",{className:"agon-opt-label",children:e.label}),t&&(0,Xo.jsx)("svg",{className:"agon-opt-check",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.key)}))})]}),s&&(0,Xo.jsx)("p",{className:"agon-error",children:s}),(0,Xo.jsxs)("div",{className:"agon-foot",children:[(0,Xo.jsxs)("button",{className:"agon-ok",onClick:y,disabled:c,children:[c?"Submitting\u2026":f?"Submit":"OK",!c&&(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]}),(0,Xo.jsxs)("span",{className:"agon-enter",children:["press ",f?"Cmd \u2318 + Enter \u21b5":"Enter \u21b5"]})]})]},m.id)}),(0,Xo.jsxs)("div",{className:"agon-nav",children:[(0,Xo.jsx)("button",{className:"agon-arrow",onClick:x,disabled:0===e,"aria-label":"Previous",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"18 15 12 9 6 15"})})}),(0,Xo.jsx)("button",{className:"agon-arrow",onClick:y,disabled:c,"aria-label":"Next",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]})}const qF=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";function YF(){const{user:e}=(0,$.useContext)(Qo),t=!!e,n=Vt(),[r,i]=(0,$.useState)(""),{dispatch:a}=(0,$.useContext)(Qo),[s,o]=(0,$.useState)(!1),l=()=>{o(window.innerWidth<=768)};return(0,$.useEffect)((()=>(l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)})),[]),(0,Xo.jsxs)("div",{className:"about",children:[(0,Xo.jsxs)("nav",{className:"sticky-navbar ".concat(s?"mobile-nav":""),style:{zIndex:100},children:[(0,Xo.jsxs)("div",{className:"topbar-items",children:[(0,Xo.jsx)("div",{className:"logo ".concat(s?"mobile-logo":"").concat(s?"mobile-logo":"desktop-logo"),children:(0,Xo.jsxs)(wn,{to:"/home",style:{textDecoration:"none",color:"inherit"},children:[(0,Xo.jsx)("img",{className:"navlogo".concat(s?"mobile":"desktop"),src:s?qF:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAACeCAYAAADEzvgCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABjISURBVHhe7d0L3H1ZPcfxISZGSkkKXYxKUsYISWoUpSvySlLSFDIUXemKJEqJyiWJikQqMpVENJWUkCI1oaYLETG5E4nf57/P9jrPmbXX2pe197l93q/X9/Xs/+U5z/k///Octdftt06TJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGl7Pmz1UZI0zDUiZ0W+OPLZ/EZ4Y+SdkVeuriVJ0o76uMgFkf8t5AUR/q4kSdox9MbfH0k14Knwd8+NSJKkHUHDnGq0++QrI9KsnEOXtCto9JiTZj66nZN+xSrMSTM3vS0Mnb9j9XGMf4ycHdnmv0GSpFkxjP2GSKpnu55tzkk/M5J6TkPCv1GajT30kz4pckZzmXTxKtt05chlmstL+FDkouZy71xhlS70jv6nudSWXTpy1eYy6X2Rf2oui54YuW9z2Qsrx++x+rgUbjhYBFfDzSKMONR2euRqzWXS30cYJZCOxq9HUnfWbb4rsm3Pi6SeG9nnH9jvjaT+TW0+JaLd8LmR1P9Rm2+P9EFjnvr8UlhoRiO7lEdGUs9jTHisOTBFkfp6bR4Q0YH78NVHSVoS8+VDeubrGHZ/RnO5iHY+v4Ylb0R0ZGzQJS2NgixTG2QeY67e7qaa8/bnrD5K1dmgS1oavfMajSQ9fBr2udVshPuuLZAGs0GXtLRaw87cFNQcDu/ClrlaLAer2digS1pazXnkJRr0mqvS3Yeu2digS1oSDfDlmssqlhhyr9mg20PXbGzQJS2pdoO2RIPOc64x9/2uCFv1pFlYWOYk9qHfqrlM+u7I9zWXW/N1kc9oLi/hA5FHNZd7h33ofH+7UMjkr5pLbRn70P+guUxisdqTm8sk9kXX8qTI/ZrLWZ0XeUpzOdpcRWVwlch9msukl0Z+p7mUjsM+FJY5VBaW2R9TC8vQqKU+b0yWOPTkzAiV1lJfv29+NSLNyiF3SUuruTBsrh5vi3LQL4t8/KlfjcMogqetaXY26JKWxhB5jTlptpPNWe74YyO/GaGHvuk/Vx9z+DfeIbLElIBkgy5pcTTCU6u8cVAP60nm8lGRF0Y+89SvTnpz5FqR+0e4qWCxW4tG/PwIf8aKfofapS1xDn17nEPfH7UOZ2H1eOrz++a3IzS8tX1E5EWR1Nd8e4Rh+E0UuVlixb3UyR66pG2hwMzPNpej3DzyS5Ha72M/F7ldc3nCX0dusfq4iVEHi8Zoq2zQJW0LjeC5EYan+/jv1cd1Xx754eayisdGvra5POFfIreMXHTqV9IOch/6SfuwD31p14/wPTkrwv73K0cuG7lUhPnCf4j8eeQtEYZA2ev6wchQh7AP/eoRep2ftQpDswzFXj7C9+TiSNuTY7j5DRFWaddYINYHi7xolG4QOTtytQjPjbDIi+fH/+UfRV4ceW0kZeo+9BSGq/neteF7Ceao+X7xfeI1xq9Tw+wPjdAYT/GQyGOayxP43tw6MveK+l3HugH+b64XYW3BJ0d4fRNutngdvy/y1siFkddEeD/4r4i0uH2YQ39WhEYhlb+MbLpSJPV3ya9FUj46QiGNP4mkvg+5vDdCcRsa/iGWmEO/bYQ3nNT3Yj2pN/Uul4lQ0IOGJvW8S6Hn9+wIDcZcvijC6+afI6nn0BX+/786snnjX2sOfQx65DQeqa87ZZEcvfLUY/K1UsPvu4Yb79RruU2u6EwO7x+873GTl/r+lPL+CK/vL4nYgdSi9qFBf14k9dwIP7ibaFhTf5e8PLKJN0x6aam/PyT8IPPGTk++j7kb9NtE/j2Seuz1PC7SB71EtiO9J5J6nDG5IHKjSC3XiTw/kvpaQ8LWrfUFX9ts0EHDnfq6NL7Mqw9Fg911k5Aaft9FrKhPPf82D4gM8YkRytRyw5l6vDH508idItIijrlB/8gIBTBSf29KGAVgSLdkzgadKYN/i6Qedz19y+bSGxrbY+kT5oT5/5jinpGab8aMbLSjCNtu0MG2t9TXZhTi8yOb2qFhRlTWMYT8H5HUYzEEvy9qNuh3jjDSlnqcGuHG9boRaVbH2qDT23xJJPV3auT1kVKjPleD/mWRPo05c7B93CNSs6HsCkP4qe1RJSx0/clI6jGnhl7s3SK70KDjxyKpr0+Z1k+L3D3COoXU33lBhAV5XdMQU+fjl1ajQWe73tMiqc+vHUbwrJ6nWR1jg57bc1szlM/M7aqYo0Fni1GfxrdvJa97R1KfP1feFOHQjb6Yo5yrMW9Do/6wjd/bzFINOq8niriknkPXEHqf/EJk30xt0Fk38yuR1OfOFYoDjZ3bl4qO
2sUF//MbvpfK3EeZRWVj11MhzI/Qg+8xJryf3Rl+7QWcRTqkx5w2FxX993CuSeoxUGBFglfiDI/QSGfK/fYRhcBbc/X6Er5363M2wGr5vHXGmDFKPkQqPy/89z4+h9C+N3DHCSAXTJF3D0KTUWC7VoIPRpddFUs9jTLi55SZ330xp0LkR5Gc69XmpMP3CTc8DI18V4WeN1/hdIt8T4b0i9/pZDz8HfJ5U3bE16GxTSv0+4c9YIMbwapePifAD3Xc+mVX4p0dSajboLIwqreimUWL4vI8bRvq8Qf1NhMaM70vJp0Y4jrPP47KwrYR/c59e6asiN42UMDLwQxG2HKUeJ5clG3Rww8NoRuq5DMkfR+aoPLeEKQ0672upz9nM2yLclNKbL2F1/MMjufeYNvwMsBNDqurYGvSu/GjkCpG+WMn+6EjqsTZz10hKrQadM6dLjTnnxvddvcxCqr+IpB5nPYxeXC4yFCvR2dOdesz1fEukCwu93hFJfd566D0N3Tr0BZF3R1KP15WlG3Twfew76tGVV0f21dgG/SaRPt83bj7PiAzFXnV67KnHXA9716mTIFVz7A06Q+hTFqpQdCf1uOuhVGdKjQb9nAjFLVKf34beACdg9dVnSoKbmSl7bOkVUgI19dht6Ol8QiTlEZHU56xnyolf14wwupJ63FS20aB3rXofGla976MxDTo34n1uJh8UmYIdG5TTTT32erhpkKo55gadu3T2oE/BDy4r2lOP3+bvIqnFcVMbdIaR+fenPrcNc9vsR++Lhqy0ToCV1jUwb8vJXKmv0eYJkU1XjJSGNVm5PNWNI32H37fRoLNqOvVchmZfT0cb06Az6pP6u+vh57IGXt+sK0l9jTZMGVGNUqrimBt05ktr4KYg9fjrSf3QTmnQmX8rNeb03Fm8M8TTI6nHakNZy641AWMwpPlnkdTXItxc8P+57jsjqb/bhv3ETBvU0Ge0gizdoH96JPU8xmYfDW3QuanOvdYIr+/czpShKFbDgrrU12oz5bCeo1fzP0v7ix+yWjXquSlKnUa1jj3CtdBzZGVybv6a3hurzKk13xdrCCh72uVDEYaxa9appsHOnRPOYqTNNQilcqc/EEnd6I3xgxG+l7vm2quPtRxD0RPKIOe+b9Sv/9YIr/Na2C2TO68BrG05s7nUUDboAj3RWgeEMGzGIpicIXurc74wQmOe64G2Fc5Y3T3E10c2q4qtYy0A0wu1PSfClrIuFHZpUSaWqnVdOMyGfem1ULCl5slm2p7SDg+2p7JzoDYel2I/XZi2G7LGRWts0AXmtmpi+09OjSFgVl+/MJKrQMdwM5Xi2Kc8FNvxcmo2lOsYduTf1YVT7zjpCuwdz6FQSO2Trp4Zqdlr20Vdiw8PxaUjpdcON/lz4LVTGlZn9EAj2KCLN3wKndT05tXHLn32seawL5ybkFzBFXqnVIrL9Qa6MHzPDUMXDmSZc4sT0xY57Urs0n5yGvTa+L4yt3rIGNU5ZKw5yW0R49hTTtqbC0VpGNLvwla6Q7+pmoUNumh8a/fiSvOsUw4e+bxIqTFnTzYL4DjdaQz2suee40sjc/ZS2UrE1EUXGnSeX+6mg3Pq52p4d20lOP/Wmg69QS9tzaPO/Zz4/v5Wc5nEivjPaS41hA266HHVRsnVnLGvO6rWUZaUrVpdWADGcCJHwI51g9XHLheuPs6FLYSps+1bDLuzcCg3x08Pa66bjteuPu4KVmvX8q7IoTfopUV/c6wN2VT6Gm5fG8EGXaw8rY393rWdHaExLw3FMT/P353iWquPXabcLPSVa9ApG1t6wytNe0zByMcuzaPTQ2eYuAbWCBy63Oub/1dKOc+tNBVG5T8NZIMutkrtA+bdqA/dx5MjU+bgStugKNRCgztnUmd6txiSZOohZ85RBG7YKIe7K5gPHlKquAslgZ/YXB4sqsPlGnRGO2rteMkpNeg1t7YeDRt01Z4/n0tueHkT54jTqI9FDziHAhkUupkzpYWD1MjOYYvZnHalQefmhl0BNXp0rP6+XXN5sLjxyR1Aw86QJXCQUU6tYkhHxQZduzR0WtOdI1/TXA5CTfbLNpc7rXSQBQfUzGmJXlwJ71/UCK9Zf/0ZkaklkHdZ6cZ47tdNi0WfubU2HtQygg26DhnDp/Smh+Do0334uSi9Mf/r6uNcSgsfl/DjkdSpeVNGnejxUzQoN+Wxz0pH+y7VoCNXwdAGfQQbdO0rFn1xMlzuzZu65xwFO0Sfs8x3QWnr39xrI+a+YSihRO55zeUJ3Giwz5pKaKxYz+HPf7m5PIEh6ZdEDnEetzSVM8eC1i6519C+/BzuFBt07SNW4bI17fxI6VAZ6rF3ncG+z0q9UOaD55TbJz83GnLOdt/0wQjD5ezjZ7X6NSIsjmRNBDsf2vBreoD8+Z0iqcp81Dn4jQjrMQ5J6XWzZEOaG2XimGMNNOUM50NEha5bNZdJHCxQ6xCTsTht7Y7N5SUwr7m5mIReam4ByuMiD24uq2FRFyu1u3BgyMOby//HaWulgxvA9iTetNtiIvSm/jDSlkNN4chWTqMqLcQB8+e5+WGK1tQ6mW6K60U4/rILhXVe3lzOgpGP+zSXl3DfyJRFiTkMsf98ZLMzwloQDqr5xVO/GobXEFsib37qVyexRY8zA3ZhiiGH13du5fgDI9Th52S6t/IbHSgatFQtdYb3u4bWWXRZ+9AdHZljPD6VE7Rqo0FPfa023x/ZVDo+lVBdKrVg7ZwIxVhSn9OmbxlU5lBzj/XOyC4oHZtaqkU/FfW4U1+XzHV8KovfGBlIfc3U8PsQNCwcRpJ6bE7p43Wxy/oen8rBSKk/bzPkRMIpmDJKff02S+yFPzgOuWtf0IOiZ55atPPKSOmwFHodnKBWwrBtbusO28WmlK6tJTcCgquvPs5l6UVL7LtnaDzVsHIzOPWwHHrgHOSTOvqXnjur3w/h/ZJCUrlh96GLSMcq1YmYe9vlQbJB177gbObcQq+HRhgOz2GovLR/G7lyuDQofR5jbqVqdcwPz6nWDQNTRF8R+ZEIQ8b0zi5Y/Zqhe/4dTKcwepa6iaAhz50hPwSNOY16qjY8w/mHcHQsUxPvbi6TGJIfUvNhLEYUcpaoxnhwbNC1L0r75em50wDk0Cv4ieYyq1Q0ZRe2NJXe8Er16Kdgzpk5/KnuF+EgH+ZtuW7f5Bla59dsO+Qo3t+NpA7jYb783s1lNcyZ3yaSOg2M1xfPaxPPl2mfuW+iasnVvueGdWrp5D5KX+Ntq48awAZdh+RFkWc3l50Ytr9nc9mpdHRkavHU0hgizj1PGvSpx9R2uX7k9OZyFHrlnOhFL7yENRMcZ7vpFRGmUOYojMRxwhQlSj32EyL3ijAEz4hQO6LA8+HXhD9jS+WuKpVdXeKks1KD/pbVRw1gg65Dw+Kf0oEzrOy/anOZxKr5HFaQz+2bImyp4ohUtk6ldqTkVrHTi2b4eA6s+h6LxpwGZUqDx7a020dY7zAX5utTi/t4z3xq5NxIqkfO7/Fn3LDQsO9iCVO+fzlz34xwk3aL5jKJLWuMymggG3QdGraosQI8h+Hb3CKqV0dyW9euGbllczkLhp5/KkLFMo4qfU+Egh/0WjiLnefO0GhpW9qY0rd93GX1cQzmu6cMTbOT49aRJQrbUInuEc3lKDTs9N53bSie101uPQpTCMylz4WyzLnyyvz8LVng5mDYoOsQUd+bVfE5zJPSC05hFTBFRXK+Y/VxDt+8+riO4XOOTKXXTWEUeqds48ud3U1Pq3ZjwnD72DUE3KiU1jmU0OOld74Utliy730s/s006rvUU+dmqLQ9jUp7c+FGJ6f0s6cONug6VCyWKh0gwh78rtXapbl4KtXNMZdOz6g0x//c1UeGJnONDcPutYsGTbmRqXXWeKlBqG3q8+amKrWYbpuetfrYhZ+f3DGrY90tcqPmMomRA27INYINug4VdbpLhYAuH2E+NDU/TS3vi5rLTj8TmXLu+iaeB1vrcgvO6F0xP9viOeR8Y+TGzeVk3MTwhjzWWauPU7GifEmpeu9DUap2l4be2VmQq3XP1jWmHGq6UoT1KznPieRGnZRhg65DxhvSq5rLTgxhp4a4GdIuvfnwBk3vrVahGcpzls7jZtvdxc3lKRxSkxtNYK79pyNXPPWr8RgynlLOtbTveKiaR6bm8LxTq+zHYBverqDi3uOby04sXKs1tcTr8GkRKld24Tk9qbnUGDboOmRsO6Leeemgh8dGzmwuT3h6hH3JOczFsyI6t8inDwqXUOM+h+pZqZsMauDn/o3XiVD6duxz5MAOSg4zhz9W7TnkpRr0ml+n9D3gnAj21nflKZGaWHhZen3zs5E7M6APRpz6nDPPDXhpy6jUW6mWO3M7t91SzojgWGu585hjsVI59ZjreVkkNfTOcHVX/fD1sNWN8qRDXSpClbtSLXpy/0gXVo+nPmc9FGkZ2iizxoBVx6nH60pqu1ef5zckS82jMzSd+vpjQhGdHEaTUp/XJlful5GE1Oe0aWu5b+L1zSLQ1Oesh57zmLoGjGKxqj71mOuhOuMuLRzUASg16NsMW6Vggz4cPQQOe0g97nq6Tg9jLj719zdDo8yhJX2Gl2nIWYXOtrTUY22GHnbudESGNFlNnfrc9bDoiF4Xe9tzGGZm+x+jAqnHySXVoNPTTf3dsVmqh07BmNTXH5ucbTToeFgk9TmboXobO0P6HLFKnQd+zlmYmnqs9XwgstT/p46IDXodu9ag44aRUk+bN5/2+7yOhpRVwanP6QpvfgwhMgd59wj1yllQxhsrK9Opp536vF
2QujPTpvVwtwpt+6jE2Q6+M1zs3KzwvhkPZH8yq+OdHcm/E3BTQ20/9Gek6bS31d8dmqd5czR46yT3vbTXoYPg99Xmp8D7Dwsz2tcNrm9P92J3xmAiHJfUZ1WrDOQ1SdTbodexigw7KdqYeez3sz02tLWHhGw1x6nPmDHOcQ1ZHc5AJh4ykHqtW2Eueex12Nei1ertLHmFbc6rgjZGcbTbojBixwDP1uXOFES0WgqoSF8XpmLB4rHSoCXvLUw0SPQ5qh3MDNEf98BTKX94sMqQBY9U7ldTefupX9XFTNHYlcq196Evu6a5588ANza6icaWYzKMjS7y+GeXh6/F6UiU26DomlJPsczrXoyKp0pe80T0kQqWy0h71Kbh5YDU75WXH7MllOJwpBg6rqYV/O0OsDzr1q3Fo0M9vLkdjOJdh8KXwtUoFivra5QYd9Jr5P2YRbm6P+lSviVBt0AIyldmg69hQLrVUjIVztyk40/XzQdEZSqDS4y8dBDMUDRZvdsxl5+ptl3CmN3ObzN+XzokveW+EBXz03qZidfrYxoKGdekqcUxj1ThvnZusJW9EpuC8AF7f7aK2WhgdOy9y0wgjSarMBl3HiNXbbJPJoRpZbt6RxpZ9w+xf/4YIb4IsNBuDs9xZlERDzmrf0lxrX/S46AVxdvm3RUqnbG1imxVHnF43Uqu3TwPJzcHQRp0Gke/NkvPnrfZc9rFoFOc+waw2judluyfnBjAqM/S10+LnhFGZu0ZY38GNMsP7mkFuG4ykYVjBzHGnnEXOkD1bd64SYZsPddUp/kKVNxpKFq6xd/11kddH2LqzBBp3ekjsmb92hJPnKIFLZTwaW57XmyK/F3lxZMooQQ7fK+bCKYlawlZA/m5q0edSWHRGD7ur9n/OHSL70jvPYXHmTSKcl84iXXZV8NphfzrTRNy4EG66WMxJkRi2UnJzIEk6cDSUDGkzv0xDwKgCDTcNII04f74ruAnhebWrtEvh37NvPXNJko4GNyDtzUdXGKZfaq+8dIpD7pI0DkPQzOu3Vc5o5BlpYA3ENqcHJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEnaW6ed9n+P+bJJFQsf9wAAAABJRU5ErkJggg==",alt:""})," "]})}),(0,Xo.jsx)(wn,{to:"/pricing",children:(0,Xo.jsx)("button",{className:"topbar-item",children:"Pricing"})})]}),(0,Xo.jsxs)("div",{className:"login-signup",children:[t?(0,Xo.jsx)("button",{onClick:()=>{qo(a)},className:"login",children:"Log out"}):(0,Xo.jsx)(wn,{to:"/login",children:(0,Xo.jsx)("button",{className:"login ".concat(s?"mobile-button":""),children:"Login"})}),t?(0,Xo.jsx)(wn,{to:"/admin",children:(0,Xo.jsx)("button",{className:"signup",children:"Admin"})}):(0,Xo.jsx)("div",{className:"signup-input",children:(0,Xo.jsx)(wn,{to:"/signup",children:(0,Xo.jsx)("button",{onClick:()=>{r&&n("/signup?username=".concat(r))},className:"signup ".concat(s?"mobile-button":""),children:(0,Xo.jsx)("span",{style:{whiteSpace:"nowrap"},children:s?"Sign Up":"Sign Up Free"})})})})]})]}),(0,Xo.jsx)("div",{className:"about-container",children:(0,Xo.jsxs)("div",{className:"about-content",children:[(0,Xo.jsx)("h1",{className:"hero1",children:"Cookie Notice"}),(0,Xo.jsx)("p",{className:"hero3",children:"Last updated: Sunday Jan 7, 2023"}),(0,Xo.jsx)("p",{className:"hero3",children:"This Cookie Notice explains how XSubscribe LLC and its group companies (XSubscribe, \u201cwe\u201d, \u201cus\u201d and \u201cours\u201d) use cookies and similar tracking technologies, including SDKs (together, \u201ccookies\u201d) on or through our website at https://xsubscribe.bio/ (\u201cPlatform\u201d), or when you visit a XSubscribe member\u2019s profile (\u201cUser Profile\u201d). It explains what these technologies are and why we use them, as well as your rights to control our use of them."}),(0,Xo.jsx)("h2",{className:"hero1",children:"What are cookies?"}),(0,Xo.jsx)("p",{className:"hero3",children:"Cookies are small data files that are placed on your computer or mobile device. Website owners can use cookies for a variety of reasons that can include enabling the website to work (or work more efficiently), providing personalised content and advertising, and creating analytics. Cookies set by the website owner (in this case, XSubscribe) are called \u201cfirst party cookies\u201d. Only XSubscribe can access the first-party cookies it sets."}),(0,Xo.jsx)("p",{className:"hero3",children:"Cookies set by parties other than XSubscribe are called \u201cthird-party cookies\u201d. Third-party cookies enable third-party features or functionality (e.g. like advertising, interactive content, and social sharing) to be provided on or through the website. The parties that set these third-party cookies on websites can recognize your device both when it visits the website in question and also when it visits other websites that have partnered with them."}),(0,Xo.jsx)("h2",{className:"hero1",children:"Why do we use cookies?"}),(0,Xo.jsx)("p",{className:"hero3",children:"We use first-party and third-party cookies for several reasons. Some cookies are required for technical reasons that are strictly necessary to provide XSubscribe services, and we refer to these as \u201cessential\u201d cookies. Other
2cookies also enable us to carry out analytics, to personalize and enhance your experience and/or to show you more relevant content and advertising."}),(0,Xo.jsx)("p",{className:"hero3",children:"In addition to the cookies used by XSubscribe for these XSubscribe purposes, XSubscribe Users can adjust their settings to set first and third-party cookies on their XSubscribe User Profile for their own independent purposes of a similar nature."}),(0,Xo.jsx)("h2",{className:"hero1",children:"Where can you get further information?"}),(0,Xo.jsxs)("p",{className:"hero3",children:["If you have any questions about our use of cookies or other technologies, please email us at ",(0,Xo.jsx)("a",{className:"hrefmail",href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})}),(0,Xo.jsx)(Ad,{})]})}const XF=n.p+"static/media/logosingle.98ccaa0fc0f0a44ada55.png";function JF(){const{user:e}=(0,$.useContext)(Qo),t=!!e,n=Vt(),[r,i]=(0,$.useState)(""),{dispatch:a}=(0,$.useContext)(Qo),[s,o]=(0,$.useState)(!1),l=()=>{o(window.innerWidth<=768)};return(0,$.useEffect)((()=>(l(),window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)})),[]),(0,Xo.jsxs)("div",{className:"about",children:[(0,Xo.jsxs)("nav",{className:"sticky-navbar ".concat(s?"mobile-nav":""),style:{zIndex:100},children:[(0,Xo.jsxs)("div",{className:"topbar-items",children:[(0,Xo.jsx)("div",{className:"logo ".concat(s?"mobile-logo":"").concat(s?"mobile-logo":"desktop-logo"),children:(0,Xo.jsx)(wn,{to:"/home",style:{textDecoration:"none",color:"inherit"},children:(0,Xo.jsx)("img",{className:"navlogo".concat(s?"mobile":"desktop"),src:s?XF:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAACeCAYAAADEzvgCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABjISURBVHhe7d0L3H1ZPcfxISZGSkkKXYxKUsYISWoUpSvySlLSFDIUXemKJEqJyiWJikQqMpVENJWUkCI1oaYLETG5E4nf57/P9jrPmbXX2pe197l93q/X9/Xs/+U5z/k///Octdftt06TJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJGl7Pmz1UZI0zDUiZ0W+OPLZ/EZ4Y+SdkVeuriVJ0o76uMgFkf8t5AUR/q4kSdox9MbfH0k14Knwd8+NSJKkHUHDnGq0++QrI9KsnEOXtCto9JiTZj66nZN+xSrMSTM3vS0Mnb9j9XGMf4ycHdnmv0GSpFkxjP2GSKpnu55tzkk/M5J6TkPCv1GajT30kz4pckZzmXTxKtt05chlmstL+FDkouZy71xhlS70jv6nudSWXTpy1eYy6X2Rf2oui54YuW9z2Qsrx++x+rgUbjhYBFfDzSKMONR2euRqzWXS30cYJZCOxq9HUnfWbb4rsm3Pi6SeG9nnH9jvjaT+TW0+JaLd8LmR1P9Rm2+P9EFjnvr8UlhoRiO7lEdGUs9jTHisOTBFkfp6bR4Q0YH78NVHSVoS8+VDeubrGHZ/RnO5iHY+v4Ylb0R0ZGzQJS2NgixTG2QeY67e7qaa8/bnrD5K1dmgS1oavfMajSQ9fBr2udVshPuuLZAGs0GXtLRaw87cFNQcDu/ClrlaLAer2digS1pazXnkJRr0mqvS3Yeu2digS1oSDfDlmssqlhhyr9mg20PXbGzQJS2pdoO2RIPOc64x9/2uCFv1pFlYWOYk9qHfqrlM+u7I9zWXW/N1kc9oLi/hA5FHNZd7h33ofH+7UMjkr5pLbRn70P+guUxisdqTm8sk9kXX8qTI/ZrLWZ0XeUpzOdpcRWVwlch9msukl0Z+p7mUjsM+FJY5VBaW2R9TC8vQqKU+b0yWOPTkzAiV1lJfv29+NSLNyiF3SUuruTBsrh5vi3LQL4t8/KlfjcMogqetaXY26JKWxhB5jTlptpPNWe74YyO/GaGHvuk/Vx9z+DfeIbLElIBkgy5pcTTCU6u8cVAP60nm8lGRF0Y+89SvTnpz5FqR+0e4qWCxW4tG/PwIf8aKfofapS1xDn17nEPfH7UOZ2H1eOrz++a3IzS8tX1E5EWR1Nd8e4Rh+E0UuVlixb3UyR66pG2hwMzPNpej3DzyS5Ha72M/F7ldc3nCX0dusfq4iVEHi8Zoq2zQJW0LjeC5EYan+/jv1cd1Xx754eayisdGvra5POFfIreMXHTqV9IOch/6SfuwD31p14/wPTkrwv73K0cuG7lUhPnCf4j8eeQtEYZA2ev6wchQh7AP/eoRep2ftQpDswzFXj7C9+TiSNuTY7j5DRFWaddYINYHi7xolG4QOTtytQjPjbDIi+fH/+UfRV4ceW0kZeo+9BSGq/neteF7Ceao+X7xfeI1xq9Tw+wPjdAYT/GQyGOayxP43tw6MveK+l3HugH+b64XYW3BJ0d4fRNutngdvy/y1siFkddEeD/4r4i0uH2YQ39WhEYhlb+MbLpSJPV3ya9FUj46QiGNP4mkvg+5vDdCcRsa/iGWmEO/bYQ3nNT3Yj2pN/Uul4lQ0IOGJvW8S6Hn9+wIDcZcvijC6+afI6nn0BX+/786snnjX2sOfQx65DQeqa87ZZEcvfLUY/K1UsPvu4Yb79RruU2u6EwO7x+873GTl/r+lPL+CK/vL4nYgdSi9qFBf14k9dwIP7ibaFhTf5e8PLKJN0x6aam/PyT8IPPGTk++j7kb9NtE/j2Seuz1PC7SB71EtiO9J5J6nDG5IHKjSC3XiTw/kvpaQ8LWrfUFX9ts0EHDnfq6NL7Mqw9Fg911k5Aaft9FrKhPPf82D4gM8YkRytRyw5l6vDH508idItIijrlB/8gIBTBSf29KGAVgSLdkzgadKYN/i6Qedz19y+bSGxrbY+kT5oT5/5jinpGab8aMbLSjCNtu0MG2t9TXZhTi8yOb2qFhRlTWMYT8H5HUYzEEvy9qNuh3jjDSlnqcGuHG9boRaVbH2qDT23xJJPV3auT1kVKjPleD/mWRPo05c7B93CNSs6HsCkP4qe1RJSx0/clI6jGnhl7s3SK70KDjxyKpr0+Z1k+L3D3COoXU33lBhAV5XdMQU+fjl1ajQWe73tMiqc+vHUbwrJ6nWR1jg57bc1szlM/M7aqYo0Fni1GfxrdvJa97R1KfP1feFOHQjb6Yo5yrMW9Do/6wjd/bzFINOq8niriknkPXEHqf/EJk30xt0Fk38yuR1OfOFYoDjZ3bl4qO
2sUF//MbvpfK3EeZRWVj11MhzI/Qg+8xJryf3Rl+7QWcRTqkx5w2FxX993CuSeoxUGBFglfiDI/QSGfK/fYRhcBbc/X6Er5363M2wGr5vHXGmDFKPkQqPy/89z4+h9C+N3DHCSAXTJF3D0KTUWC7VoIPRpddFUs9jTLi55SZ330xp0LkR5Gc69XmpMP3CTc8DI18V4WeN1/hdIt8T4b0i9/pZDz8HfJ5U3bE16GxTSv0+4c9YIMbwapePifAD3Xc+mVX4p0dSajboLIwqreimUWL4vI8bRvq8Qf1NhMaM70vJp0Y4jrPP47KwrYR/c59e6asiN42UMDLwQxG2HKUeJ5clG3Rww8NoRuq5DMkfR+aoPLeEKQ0672upz9nM2yLclNKbL2F1/MMjufeYNvwMsBNDqurYGvSu/GjkCpG+WMn+6EjqsTZz10hKrQadM6dLjTnnxvddvcxCqr+IpB5nPYxeXC4yFCvR2dOdesz1fEukCwu93hFJfd566D0N3Tr0BZF3R1KP15WlG3Twfew76tGVV0f21dgG/SaRPt83bj7PiAzFXnV67KnHXA9716mTIFVz7A06Q+hTFqpQdCf1uOuhVGdKjQb9nAjFLVKf34beACdg9dVnSoKbmSl7bOkVUgI19dht6Ol8QiTlEZHU56xnyolf14wwupJ63FS20aB3rXofGla976MxDTo34n1uJh8UmYIdG5TTTT32erhpkKo55gadu3T2oE/BDy4r2lOP3+bvIqnFcVMbdIaR+fenPrcNc9vsR++Lhqy0ToCV1jUwb8vJXKmv0eYJkU1XjJSGNVm5PNWNI32H37fRoLNqOvVchmZfT0cb06Az6pP6u+vh57IGXt+sK0l9jTZMGVGNUqrimBt05ktr4KYg9fjrSf3QTmnQmX8rNeb03Fm8M8TTI6nHakNZy641AWMwpPlnkdTXItxc8P+57jsjqb/bhv3ETBvU0Ge0gizdoH96JPU8xmYfDW3QuanOvdYIr+/czpShKFbDgrrU12oz5bCeo1fzP0v7ix+yWjXquSlKnUa1jj3CtdBzZGVybv6a3hurzKk13xdrCCh72uVDEYaxa9appsHOnRPOYqTNNQilcqc/EEnd6I3xgxG+l7vm2quPtRxD0RPKIOe+b9Sv/9YIr/Na2C2TO68BrG05s7nUUDboAj3RWgeEMGzGIpicIXurc74wQmOe64G2Fc5Y3T3E10c2q4qtYy0A0wu1PSfClrIuFHZpUSaWqnVdOMyGfem1ULCl5slm2p7SDg+2p7JzoDYel2I/XZi2G7LGRWts0AXmtmpi+09OjSFgVl+/MJKrQMdwM5Xi2Kc8FNvxcmo2lOsYduTf1YVT7zjpCuwdz6FQSO2Trp4Zqdlr20Vdiw8PxaUjpdcON/lz4LVTGlZn9EAj2KCLN3wKndT05tXHLn32seawL5ybkFzBFXqnVIrL9Qa6MHzPDUMXDmSZc4sT0xY57Urs0n5yGvTa+L4yt3rIGNU5ZKw5yW0R49hTTtqbC0VpGNLvwla6Q7+pmoUNumh8a/fiSvOsUw4e+bxIqTFnTzYL4DjdaQz2suee40sjc/ZS2UrE1EUXGnSeX+6mg3Pq52p4d20lOP/Wmg69QS9tzaPO/Zz4/v5Wc5nEivjPaS41hA266HHVRsnVnLGvO6rWUZaUrVpdWADGcCJHwI51g9XHLheuPs6FLYSps+1bDLuzcCg3x08Pa66bjteuPu4KVmvX8q7IoTfopUV/c6wN2VT6Gm5fG8EGXaw8rY393rWdHaExLw3FMT/P353iWquPXabcLPSVa9ApG1t6wytNe0zByMcuzaPTQ2eYuAbWCBy63Oub/1dKOc+tNBVG5T8NZIMutkrtA+bdqA/dx5MjU+bgStugKNRCgztnUmd6txiSZOohZ85RBG7YKIe7K5gPHlKquAslgZ/YXB4sqsPlGnRGO2rteMkpNeg1t7YeDRt01Z4/n0tueHkT54jTqI9FDziHAhkUupkzpYWD1MjOYYvZnHalQefmhl0BNXp0rP6+XXN5sLjxyR1Aw86QJXCQUU6tYkhHxQZduzR0WtOdI1/TXA5CTfbLNpc7rXSQBQfUzGmJXlwJ71/UCK9Zf/0ZkaklkHdZ6cZ47tdNi0WfubU2HtQygg26DhnDp/Smh+Do0334uSi9Mf/r6uNcSgsfl/DjkdSpeVNGnejxUzQoN+Wxz0pH+y7VoCNXwdAGfQQbdO0rFn1xMlzuzZu65xwFO0Sfs8x3QWnr39xrI+a+YSihRO55zeUJ3Giwz5pKaKxYz+HPf7m5PIEh6ZdEDnEetzSVM8eC1i6519C+/BzuFBt07SNW4bI17fxI6VAZ6rF3ncG+z0q9UOaD55TbJz83GnLOdt/0wQjD5ezjZ7X6NSIsjmRNBDsf2vBreoD8+Z0iqcp81Dn4jQjrMQ5J6XWzZEOaG2XimGMNNOUM50NEha5bNZdJHCxQ6xCTsTht7Y7N5SUwr7m5mIReam4ByuMiD24uq2FRFyu1u3BgyMOby//HaWulgxvA9iTetNtiIvSm/jDSlkNN4chWTqMqLcQB8+e5+WGK1tQ6mW6K60U4/rILhXVe3lzOgpGP+zSXl3DfyJRFiTkMsf98ZLMzwloQDqr5xVO/GobXEFsib37qVyexRY8zA3ZhiiGH13du5fgDI9Th52S6t/IbHSgatFQtdYb3u4bWWXRZ+9AdHZljPD6VE7Rqo0FPfa023x/ZVDo+lVBdKrVg7ZwIxVhSn9OmbxlU5lBzj/XOyC4oHZtaqkU/FfW4U1+XzHV8KovfGBlIfc3U8PsQNCwcRpJ6bE7p43Wxy/oen8rBSKk/bzPkRMIpmDJKff02S+yFPzgOuWtf0IOiZ55atPPKSOmwFHodnKBWwrBtbusO28WmlK6tJTcCgquvPs5l6UVL7LtnaDzVsHIzOPWwHHrgHOSTOvqXnjur3w/h/ZJCUrlh96GLSMcq1YmYe9vlQbJB177gbObcQq+HRhgOz2GovLR/G7lyuDQofR5jbqVqdcwPz6nWDQNTRF8R+ZEIQ8b0zi5Y/Zqhe/4dTKcwepa6iaAhz50hPwSNOY16qjY8w/mHcHQsUxPvbi6TGJIfUvNhLEYUcpaoxnhwbNC1L0r75em50wDk0Cv4ieYyq1Q0ZRe2NJXe8Er16Kdgzpk5/KnuF+EgH+ZtuW7f5Bla59dsO+Qo3t+NpA7jYb783s1lNcyZ3yaSOg2M1xfPaxPPl2mfuW+iasnVvueGdWrp5D5KX+Ntq48awAZdh+RFkWc3l50Ytr9nc9mpdHRkavHU0hgizj1PGvSpx9R2uX7k9OZyFHrlnOhFL7yENRMcZ7vpFRGmUOYojMRxwhQlSj32EyL3ijAEz4hQO6LA8+HXhD9jS+WuKpVdXeKks1KD/pbVRw1gg65Dw+Kf0oEzrOy/anOZxKr5HFaQz+2bImyp4ohUtk6ldqTkVrHTi2b4eA6s+h6LxpwGZUqDx7a020dY7zAX5utTi/t4z3xq5NxIqkfO7/Fn3LDQsO9iCVO+fzlz34xwk3aL5jKJLWuMymggG3QdGraosQI8h+Hb3CKqV0dyW9euGbllczkLhp5/KkLFMo4qfU+Egh/0WjiLnefO0GhpW9qY0rd93GX1cQzmu6cMTbOT49aRJQrbUInuEc3lKDTs9N53bSie101uPQpTCMylz4WyzLnyyvz8LVng5mDYoOsQUd+bVfE5zJPSC05hFTBFRXK+Y/VxDt+8+riO4XOOTKXXTWEUeqds48ud3U1Pq3ZjwnD72DUE3KiU1jmU0OOld74Utliy730s/s006rvUU+dmqLQ9jUp7c+FGJ6f0s6cONug6VCyWKh0gwh78rtXapbl4KtXNMZdOz6g0x//c1UeGJnONDcPutYsGTbmRqXXWeKlBqG3q8+amKrWYbpuetfrYhZ+f3DGrY90tcqPmMomRA27INYINug4VdbpLhYAuH2E+NDU/TS3vi5rLTj8TmXLu+iaeB1vrcgvO6F0xP9viOeR8Y+TGzeVk3MTwhjzWWauPU7GifEmpeu9DUap2l4be2VmQq3XP1jWmHGq6UoT1KznPieRGnZRhg65DxhvSq5rLTgxhp4a4GdIuvfnwBk3vrVahGcpzls7jZtvdxc3lKRxSkxtNYK79pyNXPPWr8RgynlLOtbTveKiaR6bm8LxTq+zHYBverqDi3uOby04sXKs1tcTr8GkRKld24Tk9qbnUGDboOmRsO6Leeemgh8dGzmwuT3h6hH3JOczFsyI6t8inDwqXUOM+h+pZqZsMauDn/o3XiVD6duxz5MAOSg4zhz9W7TnkpRr0ml+n9D3gnAj21nflKZGaWHhZen3zs5E7M6APRpz6nDPPDXhpy6jUW6mWO3M7t91SzojgWGu585hjsVI59ZjreVkkNfTOcHVX/fD1sNWN8qRDXSpClbtSLXpy/0gXVo+nPmc9FGkZ2iizxoBVx6nH60pqu1ef5zckS82jMzSd+vpjQhGdHEaTUp/XJlful5GE1Oe0aWu5b+L1zSLQ1Oesh57zmLoGjGKxqj71mOuhOuMuLRzUASg16NsMW6Vggz4cPQQOe0g97nq6Tg9jLj719zdDo8yhJX2Gl2nIWYXOtrTUY22GHnbudESGNFlNnfrc9bDoiF4Xe9tzGGZm+x+jAqnHySXVoNPTTf3dsVmqh07BmNTXH5ucbTToeFgk9TmboXobO0P6HLFKnQd+zlmYmnqs9XwgstT/p46IDXodu9ag44aRUk+bN5/2+7yOhpRVwanP6QpvfgwhMgd59wj1yllQxhsrK9Opp536vF
2QujPTpvVwtwpt+6jE2Q6+M1zs3KzwvhkPZH8yq+OdHcm/E3BTQ20/9Gek6bS31d8dmqd5czR46yT3vbTXoYPg99Xmp8D7Dwsz2tcNrm9P92J3xmAiHJfUZ1WrDOQ1SdTbodexigw7KdqYeez3sz02tLWHhGw1x6nPmDHOcQ1ZHc5AJh4ykHqtW2Eueex12Nei1ertLHmFbc6rgjZGcbTbojBixwDP1uXOFES0WgqoSF8XpmLB4rHSoCXvLUw0SPQ5qh3MDNEf98BTKX94sMqQBY9U7ldTefupX9XFTNHYlcq196Evu6a5588ANza6icaWYzKMjS7y+GeXh6/F6UiU26DomlJPsczrXoyKp0pe80T0kQqWy0h71Kbh5YDU75WXH7MllOJwpBg6rqYV/O0OsDzr1q3Fo0M9vLkdjOJdh8KXwtUoFivra5QYd9Jr5P2YRbm6P+lSviVBt0AIyldmg69hQLrVUjIVztyk40/XzQdEZSqDS4y8dBDMUDRZvdsxl5+ptl3CmN3ObzN+XzokveW+EBXz03qZidfrYxoKGdekqcUxj1ThvnZusJW9EpuC8AF7f7aK2WhgdOy9y0wgjSarMBl3HiNXbbJPJoRpZbt6RxpZ9w+xf/4YIb4IsNBuDs9xZlERDzmrf0lxrX/S46AVxdvm3RUqnbG1imxVHnF43Uqu3TwPJzcHQRp0Gke/NkvPnrfZc9rFoFOc+waw2judluyfnBjAqM/S10+LnhFGZu0ZY38GNMsP7mkFuG4ykYVjBzHGnnEXOkD1bd64SYZsPddUp/kKVNxpKFq6xd/11kddH2LqzBBp3ekjsmb92hJPnKIFLZTwaW57XmyK/F3lxZMooQQ7fK+bCKYlawlZA/m5q0edSWHRGD7ur9n/OHSL70jvPYXHmTSKcl84iXXZV8NphfzrTRNy4EG66WMxJkRi2UnJzIEk6cDSUDGkzv0xDwKgCDTcNII04f74ruAnhebWrtEvh37NvPXNJko4GNyDtzUdXGKZfaq+8dIpD7pI0DkPQzOu3Vc5o5BlpYA3ENqcHJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEnaW6ed9n+P+bJJFQsf9wAAAABJRU5ErkJggg==",alt:""})})}),(0,Xo.jsx)(wn,{to:"/pricing",children:(0,Xo.jsx)("button",{className:"topbar-item",children:"Pricing"})})]}),(0,Xo.jsxs)("div",{className:"login-signup",children:[t?(0,Xo.jsx)("button",{onClick:()=>{qo(a)},className:"login",children:"Log out"}):(0,Xo.jsx)(wn,{to:"/login",children:(0,Xo.jsx)("button",{className:"login ".concat(s?"mobile-button":""),children:"Login"})}),t?(0,Xo.jsx)(wn,{to:"/admin",children:(0,Xo.jsx)("button",{className:"signup",children:"Admin"})}):(0,Xo.jsx)("div",{className:"signup-input",children:(0,Xo.jsx)(wn,{to:"/signup",children:(0,Xo.jsx)("button",{onClick:()=>{r&&n("/signup?username=".concat(r))},className:"signup ".concat(s?"mobile-button":""),children:(0,Xo.jsx)("span",{style:{whiteSpace:"nowrap"},children:s?"Sign Up":"Sign Up Free"})})})})]})]}),(0,Xo.jsx)("div",{className:"about-container",children:(0,Xo.jsxs)("div",{className:"about-content",children:[(0,Xo.jsx)("h1",{className:"hero1",children:"Terms and Conditions"}),(0,Xo.jsx)("p",{className:"hero3",children:"Last updated: Sunday Jan 7, 2024"}),(0,Xo.jsx)("p",{className:"hero3",children:"1. Welcome to XSubscribe: Terms govern the use of XSubscribe services. Users must be at least 18 years old. Users agree to comply with the terms."}),(0,Xo.jsx)("p",{className:"hero3",children:"2. Changes to Terms: XSubscribe may change terms to reflect updates, legal reasons, etc. Material changes will be notified in advance."}),(0,Xo.jsx)("p",{className:"hero3",children:"3. Your Account: Users must be 18 or have permission. Users are responsible for account security. Accounts can't be transferred without permission."}),(0,Xo.jsx)("p",{className:"hero3",children:"4. Your Username: Usernames must respect rights and avoid infringement. Offensive or vulgar usernames are not allowed."}),(0,Xo.jsx)("p",{className:"hero3",children:"5. Managing Your Plan: Users can have free or paid plans. Cancel anytime; paid plan fees are non-refundable. Don't share login details."}),(0,Xo.jsx)("p",{className:"hero3",children:"6. Your Content: Users are responsible for their content. Content must not infringe on rights or harm reputation. Follow community standards."}),(0,Xo.jsx)("p",{className:"hero3",children:"7. What we can do with Your Content: XSubscribe has a license to use and display user content. Users retain rights in their content."}),(0,Xo.jsx)("p",{className:"hero3",children:"8. Suspension or Cancellation of Your Account: XSubscribe can suspend/cancel accounts for non-compliance. No refund for fees paid in advance."}),(0,Xo.jsx)("p",{className:"hero3",children:'9. Your Responsibility for Your Visitors and Customers: Users are responsible for profile visitors and transactions. Donations through "Support Me" are voluntary.'}),(0,Xo.jsx)("p",{className:"hero3",children:"10. Feedback: Users can provide feedback; XSubscribe may use it."}),(0,Xo.jsx)("p",{className:"hero3",children:"11. Our Platform: Limited right to use the platform. XSubscribe IP is owned by XSubscribe Restrictions on using platform content."}),(0,Xo.jsx)("p",{className:"hero3",children:"12. Fees and Payment: Subscription fees, transaction fees, and processing fees may apply. Users are responsible for external fees and taxes. XSubscribe may adjust fees with notice."}),(0,Xo.jsx)("p",{className:"hero3",children:"13. Privacy: Privacy Notice outlines how personal data is handled. Users confirm understanding and consent to Data Processing Addendum."}),(0,Xo.jsx)("p",{className:"hero3",children:"14. Confidentiality: Users must keep confidential information secure."}),(0,Xo.jsx)("p",{className:"hero3",children:"15. Liability: Users are responsible for platform use and content. XSubscribe is not liable for damages."}),(0,Xo.jsx)("p",{className:"hero3",children:'16. Disclaimers: Platform provided "AS IS" and "AS AVAILABLE."'}),(0,Xo.jsx)("p",{className:"hero3",children:"17. Third Party Services: XSubscribe collaborates with third-party services. Users are responsible for third-party terms."}),(0,Xo.jsx)("p",{className:"hero3",children:"18. App Terms: Specific terms for using the XSubscribe app."}),(0,Xo.jsx)("p",{className:"hero3",children:"19. Open Source: The app includes open-source software components with specific license terms."}),(0,Xo.jsx)("p",{className:"hero3",children:"20. A Few Last Things: Certain laws may apply depen
2ding on location. These terms constitute the full agreement. Terms are subject to the laws of the Commonwealth of United States. Users must adhere to YouTube\u2019s Terms of Service when using Music Link or Video Link features."}),(0,Xo.jsx)("h2",{className:"hero1",children:"Where can you get further information?"}),(0,Xo.jsxs)("p",{className:"hero3",children:["If you have any questions about our Terms and Conditions or other matters, please email us at ",(0,Xo.jsx)("a",{className:"hrefmail",href:"mailto:support@XSubscribeio",children:"support@XSubscribeio"}),"."]})]})}),(0,Xo.jsx)(Ad,{})]})}function QF(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=QF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ZF=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=QF(e))&&(r&&(r+=" "),r+=t);return r};var $F=n(7598),eB=n(2919);const tB=(0,n(5979).Ay)();var nB=n(7024);const rB=["className","component","disableGutters","fixed","maxWidth","classes"],iB=(0,nB.A)(),aB=tB("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,$F.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),sB=e=>(0,eB.A)({props:e,name:"MuiContainer",defaultTheme:iB});const oB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=aB,useThemeProps:n=sB,componentName:r="MuiContainer"}=e,i=t((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}})})),a=$.forwardRef((function(e,t){const a=n(e),{className:s,component:o="div",disableGutters:l=!1,fixed:c=!1,maxWidth:d="lg"}=a,u=(0,xe.A)(a,rB),h=(0,Mu.A)({},a,{component:o,disableGutters:l,fixed:c,maxWidth:d}),p=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&"maxWidth".concat((0,$F.A)(String(a))),r&&"fixed",i&&"disableGutters"]};return(0,Fu.A)(s,(e=>(0,Zu.A)(t,e)),n)})(h,r);return(0,Xo.jsx)(i,(0,Mu.A)({as:o,ownerState:h,className:ZF(p.root,s),ref:t},u))}));return a}({createStyledComponent:(0,Ju.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,Yu.A)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Xu.A)({props:e,name:"MuiContainer"})}),lB=oB;var cB=n(5713),dB=n(7758);const uB=["sx"];function hB(e){const{sx:t}=e,n=(0,xe.A)(e,uB),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dB.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let a;return a=Array.isArray(t)?[r,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,cB.Q)(e)?(0,Mu.A)({},r,e):r}:(0,Mu.A)({},r,t),(0,Mu.A)({},i,{sx:a})}function pB(e){return(0,Zu.A)("MuiTypography",e)}(0,Qu.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const mB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fB=(0,Ju.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,Yu.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})}
2)),gB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bB=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiTypography"}),r=(e=>vB[e]||e)(n.color),i=hB((0,Mu.A)({},n,{color:r})),{align:a="inherit",className:s,component:o,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:h=gB}=i,p=(0,xe.A)(i,mB),m=(0,Mu.A)({},i,{align:a,color:r,className:s,component:o,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:h}),f=o||(d?"p":h[u]||gB[u])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,"inherit"!==e.align&&"align".concat((0,Yu.A)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,Fu.A)(o,pB,s)})(m);return(0,Xo.jsx)(fB,(0,Mu.A)({as:f,ref:t,ownerState:m,className:(0,_u.A)(g.root,s)},p))}));function yB(e){return(0,Zu.A)("MuiCard",e)}(0,Qu.A)("MuiCard",["root"]);const xB=["className","raised"],SB=(0,Ju.Ay)(ap,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),kB=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,a=(0,xe.A)(n,xB),s=(0,Mu.A)({},n,{raised:i}),o=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"]},yB,t)})(s);return(0,Xo.jsx)(SB,(0,Mu.A)({className:(0,_u.A)(o.root,r),elevation:i?8:void 0,ref:t,ownerState:s},a))}));function wB(e){return(0,Zu.A)("MuiCardContent",e)}(0,Qu.A)("MuiCardContent",["root"]);const TB=["className","component"],CB=(0,Ju.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),EB=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,a=(0,xe.A)(n,TB),s=(0,Mu.A)({},n,{component:i}),o=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"]},wB,t)})(s);return(0,Xo.jsx)(CB,(0,Mu.A)({as:i,className:(0,_u.A)(o.root,r),ownerState:s,ref:t},a))}));var jB=n(4984),AB=n(8812);const NB=["className","component"];var PB=n(9386),RB=n(8279);const LB=(0,Qu.A)("MuiBox",["root"]),IB=(0,RB.A)(),DB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=(0,jB.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(AB.A);return $.forwardRef((function(e,s){const o=(0,Nh.A)(n),l=hB(e),{className:c,component:d="div"}=l,u=(0,xe.A)(l,NB);return(0,Xo.jsx)(a,(0,Mu.A)({as:d,ref:s,className:ZF(c,i?i(r):r),theme:t&&o[t]||o},u))}))}({themeId:Rh.A,defaultTheme:IB,defaultClassName:LB.root,generateClassName:PB.A.generate}),OB=DB;var MB=n(9549);function _B(e){return(0,Zu.A)("MuiButton",e)}const FB=(0,Qu.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const BB=$.createContext({});const UB=$.createContext(void 0),zB=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],GB=e=>(0,Mu.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),WB=(0,Ju.Ay)(Qp,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Yu.A)(n.color))],t["size".concat((0,Yu.A)(n.size))],t["".concat(n.variant,"Size").concat((0,Yu.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Mu.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Mu.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,Mu.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(FB.focusVisible)]:(0,Mu.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(FB.disabled)]:(0,Mu.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,ep.X4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(FB.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(FB.disabled)]:{boxShadow:"none"}}})),HB=(0,Ju.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,Yu.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},GB(t))})),VB=(0,Ju.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,Yu.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},GB(t))})),KB=$.forwardRef((function(e,t){const n=$.useContext(BB),r=$.useContext(UB),i=(0,MB.A)(n,e),a=(0,Xu.A)({props:i,name:"MuiButton"}),{children:s,color:o="primary",component:l="button",className:c,disabled:d=!1,disableElevation:u=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:m,fullWidth:f=!1,size:g="medium",startIcon:v,type:b,variant:y="text"}=a,x=(0,xe.A)(a,zB),S=(0,Mu.A)({},a,{color:o,component:l,disabled:d,disableElevation:u,disableFocusRipple:h,fullWidth:f,size:g,type:b,variant:y}),k=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,"".concat(a).concat((0,Yu.A)(t)),"size".concat((0,Yu.A)(i)),"".concat(a,"Size").concat((0,Yu.A)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,Yu.A)(i))],endIcon:["endIcon","iconSize".concat((0,Yu.A)(i))]},l=(0,Fu.A)(o,_B,s);return(0,Mu.A)({},s,l)})(S),w=v&&(0,Xo.jsx)(HB,{className:k.startIcon,ownerState:S,children:v}),T=p&&(0,Xo.jsx)(VB,{className:k.endIcon,ownerState:S,children:p}),C=r||"";return(0,Xo.jsxs)(WB,(0,Mu.A)({ownerState:S,className:(0,_u.A)(n.className,k.root,c,C),component:l,disabled:d,focusRipple:!h,focusVisibleClassName:(0,_u.A)(k.focusVisible,m),ref:t,type:b},x,{classes:k,children:[w,s,T]}))})),qB=KB;const YB=$.createContext(void 0);function XB(){return $.useContext(YB)}var JB=n(9751),QB=n(8604);const ZB=["component","direction","spacing","divider","children","className","useFlexGap"],$B=(0,nB.A)(),eU=tB("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function tU(e){return(0,eB.A)({props:e,name:"MuiStack",defaultTheme:$B})}
2function nU(e,t){const n=$.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,i)=>(e.push(r),i<n.length-1&&e.push($.cloneElement(t,{key:"separator-".concat(i)})),e)),[])}const rU=e=>{let{ownerState:t,theme:n}=e,r=(0,Mu.A)({display:"flex",flexDirection:"column"},(0,JB.NI)({theme:n},(0,JB.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,QB.LX)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),a=(0,JB.kW)({values:t.direction,base:i}),s=(0,JB.kW)({values:t.spacing,base:i});"object"===typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));const o=(n,r)=>{return t.useFlexGap?{gap:(0,QB._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((i=r?a[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]))]:(0,QB._W)(e,n)}};var i};r=(0,cB.A)(r,(0,JB.NI)({theme:n},s,o))}return r=(0,JB.iZ)(n.breakpoints,r),r};const iU=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=eU,useThemeProps:n=tU,componentName:r="MuiStack"}=e,i=t(rU),a=$.forwardRef((function(e,t){const a=hB(n(e)),{component:s="div",direction:o="column",spacing:l=0,divider:c,children:d,className:u,useFlexGap:h=!1}=a,p=(0,xe.A)(a,ZB),m={direction:o,spacing:l,useFlexGap:h},f=(0,Fu.A)({root:["root"]},(e=>(0,Zu.A)(r,e)),{});return(0,Xo.jsx)(i,(0,Mu.A)({as:s,ownerState:m,ref:t,className:ZF(f.root,u)},p,{children:c?nU(d,c):d}))}));return a}({createStyledComponent:(0,Ju.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Xu.A)({props:e,name:"MuiStack"})}),aU=iU;function sU(e){return(0,Zu.A)("MuiFormControlLabel",e)}const oU=(0,Qu.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function lU(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const cU=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],dU=(0,Ju.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(oU.label)]:t.label},t.root,t["labelPlacement".concat((0,Yu.A)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(oU.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(oU.label)]:{["&.".concat(oU.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),uU=(0,Ju.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(oU.error)]:{color:(t.vars||t).palette.error.main}}})),hU=$.forwardRef((function(e,t){var n,r;const i=(0,Xu.A)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:o,disabled:l,disableTypography:c,label:d,labelPlacement:u="end",required:h,slotProps:p={}}=i,m=(0,xe.A)(i,cU),f=XB(),g=null!=(n=null!=l?l:o.props.disabled)?n:null==f?void 0:f.disabled,v=null!=h?h:o.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof o.props[e]&&"undefined"!==typeof i[e]&&(b[e]=i[e])}));const y=lU({props:i,muiFormControl:f,states:["error"]}),x=(0,Mu.A)({},i,{disabled:g,labelPlacement:u,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled","labelPlacement".concat((0,Yu.A)(r)),i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,Fu.A)(s,sU,t)})(x),k=null!=(r=p.typography)?r:s.typography;let w=d;return null==w||w.type===bB||c||(w=(0,Xo.jsx)(bB,(0,Mu.A)({component:"span"},k,{className:(0,_u.A)(S.label,null==k?void 0:k.className),children:w}))),(0,Xo.jsxs)(dU,(0,Mu.A)({className:(0,_u.A)(S.root,a),ownerState:x,ref:t},m,{children:[$.cloneElement(o,b),v?(0,Xo.jsxs)(aU,{display:"block",children:[w,(0,Xo.jsxs)(uU,{ownerState:x,"aria-hidden":!0,
2className:S.asterisk,children:["\u2009","*"]})]}):w]}))})),pU=hU;var mU=n(5420);function fU(e){return(0,Zu.A)("PrivateSwitchBase",e)}(0,Qu.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const gU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],vU=(0,Ju.Ay)(Qp)((e=>{let{ownerState:t}=e;return(0,Mu.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),bU=(0,Ju.Ay)("input",{shouldForwardProp:Ju.ep})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yU=$.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:a,defaultChecked:s,disabled:o,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:p,name:m,onBlur:f,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:k}=e,w=(0,xe.A)(e,gU),[T,C]=(0,mU.A)({controlled:r,default:Boolean(s),name:"SwitchBase",state:"checked"}),E=XB();let j=o;E&&"undefined"===typeof j&&(j=E.disabled);const A="checkbox"===S||"radio"===S,N=(0,Mu.A)({},e,{checked:T,disabled:j,disableFocusRipple:l,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,Yu.A)(i))],input:["input"]};return(0,Fu.A)(a,fU,t)})(N);return(0,Xo.jsxs)(vU,(0,Mu.A)({component:"span",className:(0,_u.A)(P.root,a),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{f&&f(e),E&&E.onBlur&&E.onBlur(e)},ownerState:N,ref:t},w,{children:[(0,Xo.jsx)(bU,(0,Mu.A)({autoFocus:n,checked:r,defaultChecked:s,className:P.input,disabled:j,id:A?u:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),g&&g(e,t)},readOnly:b,ref:p,required:y,ownerState:N,tabIndex:x,type:S},"checkbox"===S&&void 0===k?{}:{value:k},h)),T?i:d]}))})),xU=yU;function SU(e){return(0,Zu.A)("MuiSwitch",e)}const kU=(0,Qu.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),wU=["className","color","edge","size","sx"],TU=(0,Ju.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t["edge".concat((0,Yu.A)(n.edge))],t["size".concat((0,Yu.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(kU.thumb)]:{width:16,height:16},["& .".concat(kU.switchBase)]:{padding:4,["&.".concat(kU.checked)]:{transform:"translateX(16px)"}}})})),CU=(0,Ju.Ay)(xU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{["& .".concat(kU.input)]:t.input},"default"!==n.color&&t["color".concat((0,Yu.A)(n.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(kU.checked)]:{transform:"translateX(20px)"},["&.".concat(kU.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(kU.checked," + .").concat(kU.track)]:{opacity:.5},["&.".concat(kU.disabled," + .").concat(kU.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(kU.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(kU.checked)]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ep.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(kU.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,ep.a)(t.palette[n.color].main,.62):(0,ep.e$)(t.palette[n.color].main,.55))}},["&.".concat(kU.checked," + .").concat(kU.track)]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),EU=(0,Ju.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),jU=(0,Ju.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),AU=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:a=!1,size:s="medium",sx:o}=n,l=(0,xe.A)(n,wU),c=(0,Mu.A)({},n,{color:i,edge:a,size:s}),d=(e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&"edge".concat((0,Yu.A)(n)),"size".concat((0,Yu.A)(r))],switchBase:["switchBase","color".concat((0,Yu.A)(i)),a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,Fu.A)(o,SU,t);return(0,Mu.A)({},t,l)})(c),u=(0,Xo.jsx)(jU,{className:d.thumb,ownerState:c});return(0,Xo.jsxs)(TU,{className:(0,_u.A)(d.root,r),sx:o,ownerState:c,children:[(0,Xo.jsx)(CU,(0,Mu.A)({type:"checkbox",icon:u,checkedIcon:u,ref:t,ownerState:c},l,{classes:(0,Mu.A)({},d,{root:d.switchBase})})),(0,Xo.jsx)(EU,{className:d.track,ownerState:c})]})})),NU=AU;var PU=n(5844),RU=n(2538),LU=n(3940),IU=n(4440),DU=n(3468);const OU=["onChange","maxRows","minRows","style","value"];function MU(e){return parseInt(e,10)||0}const _U={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function FU(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const BU=$.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:a,value:s}=e,o=(0,xe.A)(e,OU),{current:l}=$.useRef(null!=s),c=$.useRef(null),d=(0,vh.A)(t,c),u=$.useRef(null),h=$.useRef(0),[p,m]=$.useState({outerHeightStyle:0}),f=$.useCallback((()=>{const t=c.current,n=(0,LU.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const a=u.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const s=n.boxSizing,o=MU(n.paddingBottom)+MU(n.paddingTop),l=MU(n.borderBottomWidth)+MU(n.borderTopWidth),d=a.scrollHeight;a.value="x";const h=a.scrollHeight;let p=d;i&&(p=Math.max(Number(i)*h,p)),r&&(p=Math.min(Number(r)*h,p)),p=Math.max(p,h);return{outerHeightStyle:p+("border-box"===s?o+l:0),overflow:Math.abs(p-d)<=1}}),[r,i,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return h.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(h.current+=1,{overflow:r,outerHeightStyle:n}):e},v=$.useCallback((()=>{const e=f();FU(e)||m((t=>g(t,e)))}),[f]);(0,IU.A)((()=>{const e=()=>{h.current=0,(()=>{const e=f();FU(e)||Ze.flushSync((()=>{m((t=>g(t,e)))}))})()};let t;const n=(0,DU.A)(e),r=c.current,i=(0,LU.A)(r);let a;return i.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),a&&a.disconnect()}}),[f]),(0,IU.A)((()=>{v()})),$.useEffect((()=>{h.current=0}),[s]);return(0,Xo.jsxs)($.Fragment,{children:[(0,Xo.jsx)("textarea",(0,Mu.A)({value:s,onChange:e=>{h.current=0,l||v(),n&&n(e)},ref:d,rows:i,style:(0,Mu.A)({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},a)}
2,o)),(0,Xo.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:u,tabIndex:-1,style:(0,Mu.A)({},_U,a,{paddingTop:0,paddingBottom:0})})]})}));var UU=n(5013);function zU(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,Xo.jsx)(Vu,{styles:r})}const GU=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=(0,Nh.A)(r),a="function"===typeof t?t(n&&i[n]||i):t;return(0,Xo.jsx)(zU,{styles:a})};const WU=function(e){return(0,Xo.jsx)(GU,(0,Mu.A)({},e,{defaultTheme:Ph.A,themeId:Rh.A}))};function HU(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function VU(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(HU(e.value)&&""!==e.value||t&&HU(e.defaultValue)&&""!==e.defaultValue)}function KU(e){return(0,Zu.A)("MuiInputBase",e)}const qU=(0,Qu.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),YU=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],XU=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,Yu.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},JU=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QU=(0,Ju.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:XU})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(qU.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,Mu.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),ZU=(0,Ju.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:JU})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,Mu.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,Mu.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(qU.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(qU.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})}
2)),$U=(0,Xo.jsx)(WU,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ez=$.forwardRef((function(e,t){var n;const r=(0,Xu.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,components:l={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:m=!1,id:f,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:k,onBlur:w,onChange:T,onClick:C,onFocus:E,onKeyDown:j,onKeyUp:A,placeholder:N,readOnly:P,renderSuffix:R,rows:L,slotProps:I={},slots:D={},startAdornment:O,type:M="text",value:_}=r,F=(0,xe.A)(r,YU),B=null!=v.value?v.value:_,{current:U}=$.useRef(null!=B),z=$.useRef(),G=$.useCallback((e=>{0}),[]),W=(0,qh.A)(z,b,v.ref,G),[H,V]=$.useState(!1),K=XB();const q=lU({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});q.focused=K?K.focused:H,$.useEffect((()=>{!K&&u&&H&&(V(!1),w&&w())}),[K,u,H,w]);const Y=K&&K.onFilled,X=K&&K.onEmpty,J=$.useCallback((e=>{VU(e)?Y&&Y():X&&X()}),[Y,X]);(0,UU.A)((()=>{U&&J({value:B})}),[B,J,U]);$.useEffect((()=>{J(z.current)}),[]);let Q=g,Z=v;S&&"input"===Q&&(Z=L?(0,Mu.A)({type:void 0,minRows:L,maxRows:L},Z):(0,Mu.A)({type:void 0,maxRows:y,minRows:x},Z),Q=BU);$.useEffect((()=>{K&&K.setAdornedStart(Boolean(O))}),[K,O]);const ee=(0,Mu.A)({},r,{color:q.color||"primary",disabled:q.disabled,endAdornment:p,error:q.error,focused:q.focused,formControl:K,fullWidth:m,hiddenLabel:q.hiddenLabel,multiline:S,size:q.size,startAdornment:O,type:M}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:h,startAdornment:p,type:m}=e,f={root:["root","color".concat((0,Yu.A)(n)),r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",h&&"medium"!==h&&"size".concat((0,Yu.A)(h)),d&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",u&&"readOnly"]};return(0,Fu.A)(f,KU,t)})(ee),ne=D.root||l.Root||QU,re=I.root||c.root||{},ie=D.input||l.Input||ZU;return Z=(0,Mu.A)({},Z,null!=(n=I.input)?n:c.input),(0,Xo.jsxs)($.Fragment,{children:[!h&&$U,(0,Xo.jsxs)(ne,(0,Mu.A)({},re,!bh(ne)&&{ownerState:(0,Mu.A)({},ee,re.ownerState)},{ref:t,onClick:e=>{z.current&&e.currentTarget===e.target&&z.current.focus(),C&&C(e)}},F,{className:(0,_u.A)(te.root,re.className,o,P&&"MuiInputBase-readOnly"),children:[O,(0,Xo.jsx)(YB.Provider,{value:null,children:(0,Xo.jsx)(ie,(0,Mu.A)({ownerState:ee,"aria-invalid":q.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:q.disabled,id:f,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?z.current:{value:"x"})},name:k,placeholder:N,readOnly:P,required:q.required,rows:L,value:B,onKeyDown:j,onKeyUp:A,type:M},Z,!bh(ie)&&{as:Q,ownerState:(0,Mu.A)({},ee,Z.ownerState)},{ref:W,className:(0,_u.A)(te.input,Z.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),K&&K.onBlur?K.onBlur(e):V(!1)},onChange:function(e){if(!U){const t=e.target||z.current;if(null==t)throw new Error((0,RU.A)(1));J({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];v.onChange&&v.onChange(e,...n),T&&T(e,...n)},onFocus:e=>{q.disabled?e.stopPropagation():(E&&E(e),v.onFocus&&v.onFocus(e),K&&K.onFocus?K.onFocus(e):V(!0))}}))}),p,R?R((0,Mu.A)({},q,{startAdornment:O})):null]}))]})})),tz=ez;function nz(e){return(0,Zu.A)("MuiInput",e)}const rz=(0,Mu.A)({},qU,(0,Qu.A)("MuiInput",["root","underline","input"])),iz=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],az=(0,Ju.Ay)(QU,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XU(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroun
2dChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Mu.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(rz.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(rz.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(rz.disabled,", .").concat(rz.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(rz.disabled,":before")]:{borderBottomStyle:"dotted"}})})),sz=(0,Ju.Ay)(ZU,{name:"MuiInput",slot:"Input",overridesResolver:JU})({}),oz=$.forwardRef((function(e,t){var n,r,i,a;const s=(0,Xu.A)({props:e,name:"MuiInput"}),{disableUnderline:o,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:p,slots:m={},type:f="text"}=s,g=(0,xe.A)(s,iz),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,Fu.A)(r,nz,t);return(0,Mu.A)({},t,i)})(s),b={root:{ownerState:{disableUnderline:o}}},y=(null!=p?p:c)?(0,cB.A)(null!=p?p:c,b):b,x=null!=(n=null!=(r=m.root)?r:l.Root)?n:az,S=null!=(i=null!=(a=m.input)?a:l.Input)?i:sz;return(0,Xo.jsx)(tz,(0,Mu.A)({slots:{root:x,input:S},slotProps:y,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:f},g,{classes:v}))}));oz.muiName="Input";const lz=oz;function cz(e){return(0,Zu.A)("MuiFilledInput",e)}const dz=(0,Mu.A)({},qU,(0,Qu.A)("MuiFilledInput",["root","underline","input"])),uz=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hz=(0,Ju.Ay)(QU,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XU(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,a=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Mu.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},["&.".concat(dz.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},["&.".concat(dz.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(dz.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(dz.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(dz.disabled,", .").concat(dz.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(dz.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,Mu.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),pz=(0,Ju.Ay)(ZU,{name:"MuiFilledInput",slot:"Input",overridesResolver:JU})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),mz=$.forwardRef((function(e,t){var n,r,i,a;const s=(0,Xu.A)({props:e,name:"MuiFilledInput"}),{components:o={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:p={},type:m="text"}=s,f=(0,xe.A)(s,uz),g=(0,Mu.A)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,Fu.A)(r,cz,t);return(0,Mu.A)({},t,i)})(s),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=h?h:l)?(0,cB.A)(b,null!=h?h:l):b,x=null!=(n=null!=(r=p.root)?r:o.Root)?n:hz,S=null!=(i=null!=(a=p.input)?a:o.Input)?i:pz;
2return(0,Xo.jsx)(tz,(0,Mu.A)({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:m},f,{classes:v}))}));mz.muiName="Input";const fz=mz;var gz;const vz=["children","classes","className","label","notched"],bz=(0,Ju.Ay)("fieldset",{shouldForwardProp:Ju.ep})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yz=(0,Ju.Ay)("legend",{shouldForwardProp:Ju.ep})((e=>{let{ownerState:t,theme:n}=e;return(0,Mu.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,Mu.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function xz(e){return(0,Zu.A)("MuiOutlinedInput",e)}const Sz=(0,Mu.A)({},qU,(0,Qu.A)("MuiOutlinedInput",["root","notchedOutline","input"])),kz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wz=(0,Ju.Ay)(QU,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:XU})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Mu.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(Sz.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(Sz.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}},["&.".concat(Sz.focused," .").concat(Sz.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(Sz.error," .").concat(Sz.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(Sz.disabled," .").concat(Sz.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,Mu.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),Tz=(0,Ju.Ay)((function(e){const{className:t,label:n,notched:r}=e,i=(0,xe.A)(e,vz),a=null!=n&&""!==n,s=(0,Mu.A)({},e,{notched:r,withLabel:a});return(0,Xo.jsx)(bz,(0,Mu.A)({"aria-hidden":!0,className:t,ownerState:s},i,{children:(0,Xo.jsx)(yz,{ownerState:s,children:a?(0,Xo.jsx)("span",{children:n}):gz||(gz=(0,Xo.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),Cz=(0,Ju.Ay)(ZU,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:JU})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Ez=$.forwardRef((function(e,t){var n,r,i,a,s;const o=(0,Xu.A)({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:d="input",label:u,multiline:h=!1,notched:p,slots:m={},type:f="text"}=o,g=(0,xe.A)(o,kz),v=(e=>{const{classes:t}=e,n=(0,Fu.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xz,t);return(0,Mu.A)({},t,n)})(o),b=XB(),y=lU({props:o,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=(0,Mu.A)({},o,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:h,size:y.size,type:f}),S=null!=(n=null!=(r=m.root)?r:l.Root)?n:wz,k=null!=(i=null!=(a=m.input)?a:l.Input)?i:Cz;return(0,Xo.jsx)(tz,(0,Mu.A)({slots:{root:S,input:k},renderSuffix:e=>(0,Xo.jsx)(Tz,{ownerState:x,className:v.notchedOutline,label:null!=u&&""!==u&&y.required?s||(s=(0,Xo.jsxs)($.Fragment,{children:[u,"\u2009","*"]})):u,notched:"undefined"!==typeof p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:t,type:f},g,{classes:(0,Mu.A)({},v,{notchedOutline:null})}))}));Ez.muiName="Input";const jz=Ez;function Az(e){return(0,Zu.A)("MuiFormLabel",e)}const Nz=(0,Qu.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Pz=["children","className","color","component","disabled","error","filled","focused","required"],Rz=(0,Ju.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Mu.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(Nz.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(Nz.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(Nz.error)]:{color:(t.vars||t).palette.error.main}})})),Lz=(0,Ju.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Nz.error)]:{color:(t.vars||t).palette.error.main}}})),Iz=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:a="label"}=n,s=(0,xe.A)(n,Pz),o=lU({props:n,muiFormControl:XB(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Mu.A)({},n,{color:o.color||"primary",component:a,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root","color".concat((0,Yu.A)(n)),i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return(0,Fu.A)(l,Az,t)})(l);return(0,Xo.jsxs)(Rz,(0,Mu.A)({as:a,ownerState:l,className:(0,_u.A)(c.root,
2i),ref:t},s,{children:[r,o.required&&(0,Xo.jsxs)(Lz,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),Dz=Iz;function Oz(e){return(0,Zu.A)("MuiInputLabel",e)}(0,Qu.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Mz=["disableAnimation","margin","shrink","variant","className"],_z=(0,Ju.Ay)(Dz,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Nz.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,Mu.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,Mu.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,Mu.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Fz=$.forwardRef((function(e,t){const n=(0,Xu.A)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:a}=n,s=(0,xe.A)(n,Mz),o=XB();let l=i;"undefined"===typeof l&&o&&(l=o.filled||o.focused||o.adornedStart);const c=lU({props:n,muiFormControl:o,states:["size","variant","required","focused"]}),d=(0,Mu.A)({},n,{disableAnimation:r,formControl:o,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),u=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&"normal"!==r&&"size".concat((0,Yu.A)(r)),s],asterisk:[o&&"asterisk"]},c=(0,Fu.A)(l,Oz,t);return(0,Mu.A)({},t,c)})(d);return(0,Xo.jsx)(_z,(0,Mu.A)({"data-shrink":l,ownerState:d,ref:t,className:(0,_u.A)(u.root,a)},s,{classes:u}))})),Bz=Fz;var Uz=n(5758);function zz(e){return(0,Zu.A)("MuiFormControl",e)}(0,Qu.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Gz=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Wz=(0,Ju.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Mu.A)({},t.root,t["margin".concat((0,Yu.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Hz=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:s="div",disabled:o=!1,error:l=!1,focused:c,fullWidth:d=!1,hiddenLabel:u=!1,margin:h="none",required:p=!1,size:m="medium",variant:f="outlined"}=n,g=(0,xe.A)(n,Gz),v=(0,Mu.A)({},n,{color:a,component:s,disabled:o,error:l,fullWidth:d,hiddenLabel:u,margin:h,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&"margin".concat((0,Yu.A)(n)),r&&"fullWidth"]};return(0,Fu.A)(i,zz,t)})(v),[y,x]=$.useState((()=>{let e=!1;
2return r&&$.Children.forEach(r,(t=>{if(!(0,Uz.A)(t,["Input","Select"]))return;const n=(0,Uz.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[S,k]=$.useState((()=>{let e=!1;return r&&$.Children.forEach(r,(t=>{(0,Uz.A)(t,["Input","Select"])&&(VU(t.props,!0)||VU(t.props.inputProps,!0))&&(e=!0)})),e})),[w,T]=$.useState(!1);o&&w&&T(!1);const C=void 0===c||o?w:c;let E;const j=$.useMemo((()=>({adornedStart:y,setAdornedStart:x,color:a,disabled:o,error:l,filled:S,focused:C,fullWidth:d,hiddenLabel:u,size:m,onBlur:()=>{T(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{T(!0)},registerEffect:E,required:p,variant:f})),[y,a,o,l,S,C,d,u,E,p,m,f]);return(0,Xo.jsx)(YB.Provider,{value:j,children:(0,Xo.jsx)(Wz,(0,Mu.A)({as:s,ownerState:v,className:(0,_u.A)(b.root,i),ref:t},g,{children:r}))})})),Vz=Hz;function Kz(e){return(0,Zu.A)("MuiFormHelperText",e)}const qz=(0,Qu.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Yz;const Xz=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Jz=(0,Ju.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,Yu.A)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(qz.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(qz.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),Qz=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p"}=n,s=(0,xe.A)(n,Xz),o=lU({props:n,muiFormControl:XB(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Mu.A)({},n,{component:a,contained:"filled"===o.variant||"outlined"===o.variant,variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,c={root:["root",i&&"disabled",a&&"error",r&&"size".concat((0,Yu.A)(r)),n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return(0,Fu.A)(c,Kz,t)})(l);return(0,Xo.jsx)(Jz,(0,Mu.A)({as:a,ownerState:l,className:(0,_u.A)(c.root,i),ref:t},s,{children:" "===r?Yz||(Yz=(0,Xo.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),Zz=Qz;n(805);var $z=n(2427);const eG=$.createContext({});function tG(e){return(0,Zu.A)("MuiList",e)}(0,Qu.A)("MuiList",["root","padding","dense","subheader"]);const nG=["children","className","component","dense","disablePadding","subheader"],rG=(0,Ju.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),iG=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:s=!1,disablePadding:o=!1,subheader:l}=n,c=(0,xe.A)(n,nG),d=$.useMemo((()=>({dense:s})),[s]),u=(0,Mu.A)({},n,{component:a,dense:s,disablePadding:o}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,a={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,Fu.A)(a,tG,t)})(u);return(0,Xo.jsx)(eG.Provider,{value:d,children:(0,Xo.jsxs)(rG,(0,Mu.A)({as:a,className:(0,_u.A)(h.root,i),ref:t,ownerState:u},c,{children:[l,r]}))})})),aG=iG;function sG(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const oG=sG,lG=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cG(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}
vendor: 14,345 bytes, line 2
2function dG(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uG(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function hG(e,t,n,r,i,a){let s=!1,o=i(e,t,!!t&&n);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const t=!r&&(o.disabled||"true"===o.getAttribute("aria-disabled"));if(o.hasAttribute("tabindex")&&uG(o,a)&&!t)return o.focus(),!0;o=i(e,o,n)}return!1}const pG=$.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:o=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=(0,xe.A)(e,lG),h=$.useRef(null),p=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,UU.A)((()=>{r&&h.current.focus()}),[r]),$.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n="".concat(oG((0,$z.A)(e)),"px");h.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,h.current.style.width="calc(100% + ".concat(n,")")}return h.current}})),[]);const m=(0,qh.A)(h,t);let f=-1;$.Children.forEach(a,((e,t)=>{$.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=a.length&&(f=-1))):f===t&&(f+=1,f>=a.length&&(f=-1))}));const g=$.Children.map(a,((e,t)=>{if(t===f){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),$.cloneElement(e,t)}return e}));return(0,Xo.jsx)(aG,(0,Mu.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=(0,$z.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),hG(t,r,l,o,cG);else if("ArrowUp"===n)e.preventDefault(),hG(t,r,l,o,dG);else if("Home"===n)e.preventDefault(),hG(t,null,l,o,cG);else if("End"===n)e.preventDefault(),hG(t,null,l,o,dG);else if(1===n.length){const i=p.current,a=n.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(a);const l=r&&!i.repeating&&uG(r,i);i.previousKeyMatched&&(l||hG(t,r,!1,o,cG,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:g}))})),mG=pG;var fG=n(950),gG=n(6078),vG=n(7107);function bG(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yG(e){return parseInt((0,LU.A)(e).getComputedStyle(e).paddingRight,10)||0}function xG(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&bG(e,i)}))}function SG(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function kG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Eh.A)(e);return t.body===e?(0,LU.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=sG((0,Eh.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(yG(r)+e,"px");const t=(0,Eh.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(yG(t)+e,"px")}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Eh.A)(r).body;else{const t=r.parentElement,n=(0,LU.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const wG=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bG(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xG(t,e.mount,e.modalRef,r,!0);const i=SG(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=SG(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=kG(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=SG(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&bG(e.modalRef,t),xG(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&bG(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function TG(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=wG,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:c,open:d,rootRef:u}=e,h=$.useRef({}),p=$.useRef(null),m=$.useRef(null),f=(0,vh.A)(m,u),[g,v]=$.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(h.current.modalRef=m.current,h.current.mount=p.current,h.current),S=()=>{i.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},k=(0,Ch.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Eh.A)(p.current).body;i.add(x(),e),m.current&&S()})),w=$.useCallback((()=>i.isTopModal(x())),[i]),T=(0,Ch.A)((e=>{p.current=e,e&&(d&&w()?S():m.current&&bG(m.current,y))})),C=$.useCallback((()=>{i.remove(x(),y)}),[y,i]);$.useEffect((()=>()=>{C()}),[C]),$.useEffect((()=>{d?k():b&&a||C()}),[d,C,b,a,k]);const E=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},j=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Sh(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,Mu.A)({},n,t);return(0,Mu.A)({role:"presentation"},r,{onKeyDown:E(r),ref:f})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Mu.A)({"aria-hidden":!0},e,{onClick:j(e),open:d})},getTransitionProps:()=>({onEnter:(0,vG.A)((()=>{v(!1),s&&s()}),null==l?void 0:l.props.onEnter),onExited:(0,vG.A)((()=>{v(!0),o&&o(),a&&C()}),null==l?void 0:l.props.onExited)}),rootRef:f,portalRef:T,isTopModal:w,exited:g,hasTransition:b}}const CG=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EG(e){const t=[],n=[];return Array.from(e.querySelectorAll(CG)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function jG(){return!0}function AG(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=EG,isEnabled:s=jG,open:o}=e,l=$.useRef(!1),c=$.useRef(null),d=$.useRef(null),u=$.useRef(null),h=$.useRef(null),p=$.useRef(!1),m=$.useRef(null),f=(0,vh.A)(t.ref,m),g=$.useRef(null);$.useEffect((()=>{o&&m.current&&(p.current=!n)}),[n,o]),$.useEffect((()=>{if(!o||!m.current)return;const e=(0,Eh.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{i||(u.current&&u.current.focus&&(l.current=!0,u.current.focus()),u.current=null)}}),[o]),$.useEffect((()=>{if(!o||!m.current)return;const e=(0,Eh.A)(m.current),t=t=>{g.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var i,o;const e=Boolean((null==(i=g.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=g.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,s,o,a]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,Xo.jsxs)($.Fragment,{children:[(0,Xo.jsx)("div",{tabIndex:o?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Xo.jsx)("div",{tabIndex:o?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}var NG=n(2614);const PG=$.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,s]=$.useState(null),o=(0,vh.A)($.isValidElement(n)?n.ref:null,t);if((0,IU.A)((()=>{i||s(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,i]),(0,IU.A)((()=>{if(a&&!i)return(0,NG.A)(t,a),()=>{(0,NG.A)(t,null)}}),[t,a,i]),i){if($.isValidElement(n)){const e={ref:o};return $.cloneElement(n,e)}return(0,Xo.jsx)($.Fragment,{children:n})}return(0,Xo.jsx)($.Fragment,{children:a?Ze.createPortal(n,a):a})}));const RG=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LG={entering:{opacity:1},entered:{opacity:1}},IG=$.forwardRef((function(e,t){const n=Lh(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:o,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:h,onExited:p,onExiting:m,style:f,timeout:g=r,TransitionComponent:v=Hh}=e,b=(0,xe.A)(e,RG),y=$.useRef(null),x=(0,qh.A)(y,s.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},k=S(u),w=S(((e,t)=>{Vh(e);const r=Kh({style:f,timeout:g,easing:o},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),T=S(d),C=S(m),E=S((e=>{const t=Kh({style:f,timeout:g,easing:o},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)})),j=S(p);return(0,Xo.jsx)(v,(0,Mu.A)({appear:a,in:l,nodeRef:y,onEnter:w,onEntered:T,onEntering:k,onExit:E,onExited:j,onExiting:C,addEndListener:e=>{i&&i(y.current,e)},timeout:g},b,{children:(e,t)=>$.cloneElement(s,(0,Mu.A)({style:(0,Mu.A)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},LG[e],f,s.props.style),ref:x},t))}))})),DG=IG;function OG(e){return(0,Zu.A)("MuiBackdrop",e)}(0,Qu.A)("MuiBackdrop",["root","invisible"]);const MG=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_G=(0,Ju.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Mu.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),FG=$.forwardRef((function(e,t){var n,r,i;const a=(0,Xu.A)({props:e,name:"MuiBackdrop"}),{children:s,className:o,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:p={},slots:m={},TransitionComponent:f=DG,transitionDuration:g}=a,v=(0,xe.A)(a,MG),b=(0,Mu.A)({},a,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,Fu.A)(r,OG,t)})(b),x=null!=(n=p.root)?n:d.root;return(0,Xo.jsx)(f,(0,Mu.A)({in:h,timeout:g},v,{children:(0,Xo.jsx)(_G,(0,Mu.A)({"aria-hidden":!0},x,{as:null!=(r=null!=(i=m.root)?i:c.Root)?r:l,className:(0,_u.A)(y.root,o,null==x?void 0:x.className),ownerState:(0,Mu.A)({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:s}))}))})),BG=FG;function UG(e){return(0,Zu.A)("MuiModal",e)}(0,Qu.A)("MuiModal",["root","hidden","backdrop"]);const zG=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","
2slots","theme"],GG=(0,Ju.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,Mu.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),WG=(0,Ju.Ay)(BG,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HG=$.forwardRef((function(e,t){var n,r,i,a,s,o;const l=(0,Xu.A)({name:"MuiModal",props:e}),{BackdropComponent:c=WG,BackdropProps:d,className:u,closeAfterTransition:h=!1,children:p,container:m,component:f,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:w=!1,hideBackdrop:T=!1,keepMounted:C=!1,onBackdropClick:E,open:j,slotProps:A,slots:N}=l,P=(0,xe.A)(l,zG),R=(0,Mu.A)({},l,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:k,disableScrollLock:w,hideBackdrop:T,keepMounted:C}),{getRootProps:L,getBackdropProps:I,getTransitionProps:D,portalRef:O,isTopModal:M,exited:_,hasTransition:F}=TG((0,Mu.A)({},R,{rootRef:t})),B=(0,Mu.A)({},R,{exited:_}),U=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Fu.A)(i,UG,r)})(B),z={};if(void 0===p.props.tabIndex&&(z.tabIndex="-1"),F){const{onEnter:e,onExited:t}=D();z.onEnter=e,z.onExited=t}const G=null!=(n=null!=(r=null==N?void 0:N.root)?r:g.Root)?n:GG,W=null!=(i=null!=(a=null==N?void 0:N.backdrop)?a:g.Backdrop)?i:c,H=null!=(s=null==A?void 0:A.root)?s:v.root,V=null!=(o=null==A?void 0:A.backdrop)?o:v.backdrop,K=Th({elementType:G,externalSlotProps:H,externalForwardedProps:P,getSlotProps:L,additionalProps:{ref:t,as:f},ownerState:B,className:(0,_u.A)(u,null==H?void 0:H.className,null==U?void 0:U.root,!B.open&&B.exited&&(null==U?void 0:U.hidden))}),q=Th({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>I((0,Mu.A)({},e,{onClick:t=>{E&&E(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,_u.A)(null==V?void 0:V.className,null==d?void 0:d.className,null==U?void 0:U.backdrop),ownerState:B});return C||j||F&&!_?(0,Xo.jsx)(PG,{ref:O,container:m,disablePortal:S,children:(0,Xo.jsxs)(G,(0,Mu.A)({},K,{children:[!T&&c?(0,Xo.jsx)(W,(0,Mu.A)({},q)):null,(0,Xo.jsx)(AG,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:M,open:j,children:$.cloneElement(p,z)})]}))}):null})),VG=HG;function KG(e){return(0,Zu.A)("MuiPopover",e)}(0,Qu.A)("MuiPopover",["root","paper"]);const qG=["onEntering"],YG=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],XG=["slotProps"];function JG(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function QG(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ZG(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function $G(e){return"function"===typeof e?e():e}const eW=(0,Ju.Ay)(VG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tW=(0,Ju.Ay)(ap,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nW=$.forwardRef((function(e,t){var n,r,i;const a=(0,Xu.A)({props:e,name:"MuiPopover"}),{action:s,anchorEl:o,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:h,container:p,elevation:m=8,marginThreshold:f=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=$h,transitionDuration:k="auto",TransitionProps:{onEntering:w}={},disableScrollLock:T=!1}=a,C=(0,xe.A)(a.TransitionProps,qG),E=(0,xe.A)(a,YG),j=null!=(n=null==y?void 0:y.paper)?n:v,A=$.useRef(),N=(0,qh.A)(A,j.ref),P=(0,Mu.A)({}
vendor: 4,087 bytes, line 2
2,a,{anchorOrigin:l,anchorReference:d,elevation:m,marginThreshold:f,externalPaperSlotProps:j,transformOrigin:x,TransitionComponent:S,transitionDuration:k,TransitionProps:C}),R=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"],paper:["paper"]},KG,t)})(P),L=$.useCallback((()=>{if("anchorPosition"===d)return c;const e=$G(o),t=(e&&1===e.nodeType?e:(0,$z.A)(A.current).body).getBoundingClientRect();return{top:t.top+JG(t,l.vertical),left:t.left+QG(t,l.horizontal)}}),[o,l.horizontal,l.vertical,c,d]),I=$.useCallback((e=>({vertical:JG(e,x.vertical),horizontal:QG(e,x.horizontal)})),[x.horizontal,x.vertical]),D=$.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===d)return{top:null,left:null,transformOrigin:ZG(n)};const r=L();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,l=a+t.width,c=(0,gG.A)($G(o)),u=c.innerHeight-f,h=c.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&s>u){const e=s-u;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(l>h){const e=l-h;a-=e,n.horizontal+=e}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:ZG(n)}}),[o,d,L,I,f]),[O,M]=$.useState(g),_=$.useCallback((()=>{const e=A.current;if(!e)return;const t=D(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)}),[D]);$.useEffect((()=>(T&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[o,T,_]);$.useEffect((()=>{g&&_()})),$.useImperativeHandle(s,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),$.useEffect((()=>{if(!g)return;const e=(0,fG.A)((()=>{_()})),t=(0,gG.A)(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,g,_]);let F=k;"auto"!==k||S.muiSupportAuto||(F=void 0);const B=p||(o?(0,$z.A)($G(o)).body:void 0),U=null!=(r=null==b?void 0:b.root)?r:eW,z=null!=(i=null==b?void 0:b.paper)?i:tW,G=Th({elementType:z,externalSlotProps:(0,Mu.A)({},j,{style:O?j.style:(0,Mu.A)({},j.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:P,className:(0,_u.A)(R.paper,null==j?void 0:j.className)}),W=Th({elementType:U,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:E,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:P,className:(0,_u.A)(R.root,h)}),{slotProps:H}=W,V=(0,xe.A)(W,XG);return(0,Xo.jsx)(U,(0,Mu.A)({},V,!bh(U)&&{slotProps:H,disableScrollLock:T},{children:(0,Xo.jsx)(S,(0,Mu.A)({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),_()},onExited:()=>{M(!1)},timeout:F},C,{children:(0,Xo.jsx)(z,(0,Mu.A)({},G,{children:u}))}))}))})),rW=nW;function iW(e){return(0,Zu.A)("MuiMenu",e)}(0,Qu.A)("MuiMenu",["root","paper","list"]);const aW=["onEntering"],sW=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],oW={vertical:"top",horizontal:"right"},lW={vertical:"top",horizontal:"left"},cW=(0,Ju.Ay)(rW,{shouldForwardProp:e=>(0,Ju.ep)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dW=(0,Ju.Ay)(tW,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uW=(0,Ju.Ay)(mG,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hW=$.forwardRef((function(e,t){var n,r;const i=(0,Xu.A)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:o,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:h={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:{onEntering:f}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=i,y=(0,xe.A)(i.TransitionProps,aW),x=(0,xe.A)(i,sW),S=Lh(),k="rtl"===S.direction,w=(0,Mu.A)({},i,{autoFocus:a,disableAutoFocusItem:l,MenuListProps:c,onEntering:f,PaperProps:h,transitionDuration:m,TransitionProps:y,variant:g}),T=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"],paper:["paper"],list:["list"]},iW,t)}
2)(w),C=a&&!l&&u,E=$.useRef(null);let j=-1;$.Children.map(s,((e,t)=>{$.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===j)&&(j=t))}));const A=null!=(n=v.paper)?n:dW,N=null!=(r=b.paper)?r:h,P=Th({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[T.root,o]}),R=Th({elementType:A,externalSlotProps:N,ownerState:w,className:T.paper});return(0,Xo.jsx)(cW,(0,Mu.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?oW:lW,slots:{paper:A,root:v.root},slotProps:{root:P,paper:R},open:u,ref:t,transitionDuration:m,TransitionProps:(0,Mu.A)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,S),f&&f(e,t)}},y),ownerState:w},x,{classes:p,children:(0,Xo.jsx)(uW,(0,Mu.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:E,autoFocus:a&&(-1===j||l),autoFocusItem:C,variant:g},c,{className:(0,_u.A)(T.list,c.className),children:s}))}))}));function pW(e){return(0,Zu.A)("MuiNativeSelect",e)}const mW=(0,Qu.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),fW=["className","disabled","error","IconComponent","inputRef","variant"],gW=e=>{let{ownerState:t,theme:n}=e;return(0,Mu.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Mu.A)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(mW.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},vW=(0,Ju.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ju.ep,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(mW.multiple)]:t.multiple}]}})(gW),bW=e=>{let{ownerState:t,theme:n}=e;return(0,Mu.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(mW.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},yW=(0,Ju.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,Yu.A)(n.variant))],n.open&&t.iconOpen]}})(bW),xW=$.forwardRef((function(e,t){const{className:n,disabled:r,error:i,IconComponent:a,inputRef:s,variant:o="standard"}=e,l=(0,xe.A)(e,fW),c=(0,Mu.A)({},e,{disabled:r,variant:o,error:i}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon","icon".concat((0,Yu.A)(n)),a&&"iconOpen",r&&"disabled"]};return(0,Fu.A)(o,pW,t)})(c);return(0,Xo.jsxs)($.Fragment,{children:[(0,Xo.jsx)(vW,(0,Mu.A)({ownerState:c,className:(0,_u.A)(d.select,n),disabled:r,ref:s||t},l)),e.multiple?null:(0,Xo.jsx)(yW,{as:a,ownerState:c,className:d.icon})]})})),SW=xW;function kW(e){return(0,Zu.A)("MuiSelect",e)}const wW=(0,Qu.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var TW;const CW=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],EW=(0,Ju.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(wW.select)]:t.select},{["&.".concat(wW.select)]:t[n.variant]},{["&.".concat(wW.error)]:t.error},{["&.".concat(wW.multiple)]:t.multiple}]}})(gW,{["&.".concat(wW.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jW=(0,Ju.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,Yu.A)(n.variant))],n.open&&t.iconOpen]}})(bW),AW=(0,Ju.Ay)("input",{shouldForwardProp:e=>(0,Ju._n)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function NW(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function PW(e){return null==e||"string"===typeof e&&!e.trim()}const RW=$.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,error:p=!1,IconComponent:m,inputRef:f,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:k,onFocus:w,onOpen:T,open:C,readOnly:E,renderValue:j,SelectDisplayProps:A={},tabIndex:N,value:P,variant:R="standard"}=e,L=(0,xe.A)(e,CW),[I,D]=(0,mU.A)({controlled:P,default:d,name:"Select"}),[O,M]=(0,mU.A)({controlled:C,default:c,name:"Select"}),_=$.useRef(null),F=$.useRef(null),[B,U]=$.useState(null),{current:z}=$.useRef(null!=C),[G,W]=$.useState(),H=(0,qh.A)(t,f),V=$.useCallback((e=>{F.current=e,e&&U(e)}),[]),K=null==B?void 0:B.parentNode;$.useImperativeHandle(H,(()=>({focus:()=>{F.current.focus()},node:_.current,value:I})),[I]),$.useEffect((()=>{c&&O&&B&&!z&&(W(s?null:K.clientWidth),F.current.focus())}),[B,s]),$.useEffect((()=>{a&&F.current.focus()}
2),[a]),$.useEffect((()=>{if(!g)return;const e=(0,$z.A)(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const q=(e,t)=>{e?T&&T(t):k&&k(t),z||(W(s?null:K.clientWidth),M(e))},Y=$.Children.toArray(o),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(I)?I.slice():[];const t=I.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),I!==n&&(D(n),S)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:y}}),S(i,e)}b||q(!1,t)}},J=null!==B&&O;let Q,Z;delete L["aria-invalid"];const ee=[];let te=!1,ne=!1;(VU({value:I})||h)&&(j?Q=j(I):te=!0);const re=Y.map((e=>{if(!$.isValidElement(e))return null;let t;if(b){if(!Array.isArray(I))throw new Error((0,RU.A)(2));t=I.some((t=>NW(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=NW(I,e.props.value),t&&te&&(Z=e.props.children);return t&&(ne=!0),$.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Q=b?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Z);let ie,ae=G;!s&&z&&B&&(ae=K.clientWidth),ie="undefined"!==typeof N?N:u?null:0;const se=A.id||(y?"mui-component-select-".concat(y):void 0),oe=(0,Mu.A)({},e,{variant:R,value:I,open:J,error:p}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon","icon".concat((0,Yu.A)(n)),a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,Fu.A)(o,kW,t)})(oe),ce=(0,Mu.A)({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),de=(0,PU.A)();return(0,Xo.jsxs)($.Fragment,{children:[(0,Xo.jsx)(EW,(0,Mu.A)({ref:V,tabIndex:ie,role:"combobox","aria-controls":de,"aria-disabled":u?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,se].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),q(!0,e))}},onMouseDown:u||E?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),q(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:y}}),x(e))},onFocus:w},A,{ownerState:oe,className:(0,_u.A)(A.className,le.select,l),id:se,children:PW(Q)?TW||(TW=(0,Xo.jsx)("span",{className:"notranslate",children:"\u200b"})):Q})),(0,Xo.jsx)(AW,(0,Mu.A)({"aria-invalid":p,value:Array.isArray(I)?I.join(","):I,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(D(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:u,className:le.nativeInput,autoFocus:a,ownerState:oe},L)),(0,Xo.jsx)(jW,{as:m,className:le.icon,ownerState:oe}),(0,Xo.jsx)(hW,(0,Mu.A)({id:"menu-".concat(y||""),anchorEl:K,open:J,onClose:e=>{q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,Mu.A)({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:de},v.MenuListProps),slotProps:(0,Mu.A)({},v.slotProps,{paper:(0,Mu.A)({},ce,{style:(0,Mu.A)({minWidth:ae},null!=ce?ce.style:null)})}),children:re}))]})})),LW=RW,IW=(0,im.A)((0,Xo.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),DW=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],OW=["root"],MW={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Ju.ep)(e)&&"variant"!==e,slot:"Root"},_W=(0,Ju.Ay)(lz,MW)(""),FW=(0,Ju.Ay)(jz,MW)(""),BW=(0,Ju.Ay)(fz,MW)(""),UW=$.forwardRef((function(e,t){const n=(0,Xu.A)({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:a={},className:s,defaultOpen:o=!1,displayEmpty:l=!1,IconComponent:c=IW,id:d,input:u,inputProps:h,label:p,labelId:m,MenuProps:f,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:k,variant:w="outlined"}=n,T=(0,xe.A)(n,DW),C=v?SW:LW,E=lU({props:n,muiFormControl:XB(),states:["variant","error"]}),j=E.variant||w,A=(0,Mu.A)({},n,{variant:j,classes:a}),N=(e=>{const{classes:t}=e;return t})(A),P=(0,xe.A)(N,OW),R=u||{standard:(0,Xo.jsx)(_W,{ownerState:A}),outlined:(0,Xo.jsx)(FW,{label:p,ownerState:A}),filled:(0,Xo.jsx)(BW,{ownerState:A})}[j],L=(0,qh.A)(t,R.ref);return(0,Xo.jsx)($.Fragment,{children:$.cloneElement(R,(0,Mu.A)({inputComponent:C,inputProps:(0,Mu.A)({children:i,error:E.error,IconComponent:c,variant:j,type:void 0,multiple:g},v?{id:d}:{autoWidth:r,defaultOpen:o,displayEmpty:l,labelId:m,MenuProps:f,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:(0,Mu.A)({id:d},k)},h,{classes:h?(0,cB.A)(P,h.classes):P},u?u.props.inputProps:{})},g&&v&&"outlined"===j?{notched:!0}:{},{ref:L,className:(0,_u.A)(R.props.className,s,N.root)},!u&&{variant:j},T))})}));UW.muiName="Select";const zW=UW;function GW(e){return(0,Zu.A)("MuiTextField",e)}(0,Qu.A)("MuiTextField",["root"]);
2const WW=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],HW={standard:lz,filled:fz,outlined:jz},VW=(0,Ju.Ay)(Vz,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KW=$.forwardRef((function(e,t){const n=(0,Xu.A)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:s,color:o="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:p,id:m,InputLabelProps:f,inputProps:g,InputProps:v,inputRef:b,label:y,maxRows:x,minRows:S,multiline:k=!1,name:w,onBlur:T,onChange:C,onFocus:E,placeholder:j,required:A=!1,rows:N,select:P=!1,SelectProps:R,type:L,value:I,variant:D="outlined"}=n,O=(0,xe.A)(n,WW),M=(0,Mu.A)({},n,{autoFocus:i,color:o,disabled:c,error:d,fullWidth:h,multiline:k,required:A,select:P,variant:D}),_=(e=>{const{classes:t}=e;return(0,Fu.A)({root:["root"]},GW,t)})(M);const F={};"outlined"===D&&(f&&"undefined"!==typeof f.shrink&&(F.notched=f.shrink),F.label=y),P&&(R&&R.native||(F.id=void 0),F["aria-describedby"]=void 0);const B=(0,PU.A)(m),U=p&&B?"".concat(B,"-helper-text"):void 0,z=y&&B?"".concat(B,"-label"):void 0,G=HW[D],W=(0,Xo.jsx)(G,(0,Mu.A)({"aria-describedby":U,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:h,multiline:k,name:w,rows:N,maxRows:x,minRows:S,type:L,value:I,id:B,inputRef:b,onBlur:T,onChange:C,onFocus:E,placeholder:j,inputProps:g},F,v));return(0,Xo.jsxs)(VW,(0,Mu.A)({className:(0,_u.A)(_.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:A,color:o,variant:D,ownerState:M},O,{children:[null!=y&&""!==y&&(0,Xo.jsx)(Bz,(0,Mu.A)({htmlFor:B,id:z},f,{children:y})),P?(0,Xo.jsx)(zW,(0,Mu.A)({"aria-describedby":U,id:B,labelId:z,value:I,input:W},R,{children:a})):W,p&&(0,Xo.jsx)(Zz,(0,Mu.A)({id:U},u,{children:p}))]}))})),qW=KW;function YW(){const{user:e}=(0,$.useContext)(Qo),[t,n]=(0,$.useState)(!1),[r,i]=(0,$.useState)(""),[a,s]=(0,$.useState)(""),[o,l]=(0,$.useState)(!1),[c,d]=(0,$.useState)(!0),[u,h]=(0,$.useState)(!1),[p,m]=(0,$.useState)(!1),[f,g]=(0,$.useState)(!1);(0,$.useEffect)((()=>{const e=()=>{h(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,$.useEffect)((()=>{null!==e&&void 0!==e&&e._id&&(async()=>{try{const t=await ks.get("/users/creator-settings/".concat(e._id));n(t.data.subscriptionEnabled||!1),i(t.data.subscriptionPrice||""),s(t.data.subscriptionDescription||"");const r=Boolean(t.data.stripeConnectAccountId);l(r),r&&"complete"===new URLSearchParams(window.location.search).get("setup")&&g(!0),d(!1)}catch(t){console.error("Error fetching creator settings:",t),d(!1),l(!1)}})()}),[null===e||void 0===e?void 0:e._id]);return(0,$.useEffect)((()=>{const t=new URLSearchParams(window.location.search),n=t.get("setup"),r=t.get("account");"complete"===n&&r&&(ks.post("/v1/stripe/verify-account",{userId:e._id,accountId:r}).then((()=>{l(!0),g(!0)})).catch((e=>{console.error("Error verifying account:",e),alert("Failed to complete Stripe setup. Please try again.")})),window.history.replaceState({},"",window.location.pathname))}),[e._id]),c?(0,Xo.jsx)("div",{children:"Loading..."}):(0,Xo.jsxs)("div",{children:[u?(0,Xo.jsx)(Xj,{}):(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"subscriptions",children:(0,Xo.jsxs)(lB,{maxWidth:"md",sx:{py:4},children:[(0,Xo.jsx)(bB,{variant:"h4",component:"h1",gutterBottom:!0,sx:{color:"white"},children:"Subscription Settings"}),(0,Xo.jsx)(kB,{sx:{mb:4},children:(0,Xo.jsxs)(EB,{children:[(0,Xo.jsx)(bB,{variant:"h6",gutterBottom:!0,children:"Stripe Connection Status"}),o?(0,Xo.jsxs)(OB,{sx:{mb:2},children:[(0,Xo.jsx)(bB,{color:"success.main",sx:{mb:2},children:"\u2713 Your Stripe account is connected and ready to receive payments"}),(0,Xo.jsx)(OB,{sx:{display:"flex",gap:2},children:(0,Xo.jsx)(qB,{variant:"contained",onClick:async()=>{try{const t=await ks.post("/v1/stripe/manage-account",{userId:e._id});window.location.href=t.data.url}catch(t){console.error("Error opening Stripe dashboard:",t),alert("Failed to open Stripe dashboard. Please try again.")}},color:"primary",children:"Manage Stripe Account"})})]}):(0,Xo.jsxs)(OB,{children:[(0,Xo.jsxs)(bB,{sx:{mb:2}
2,children:["Connect your Stripe account to start receiving subscription payments from your subscribers.",(0,Xo.jsx)("strong",{style:{color:"#ff4444"},children:" IMPORTANT: You must complete the entire Stripe setup process. Do not close or leave the page until setup is fully complete, or you'll need to start over."}),(0,Xo.jsx)("br",{}),(0,Xo.jsx)("br",{}),(0,Xo.jsx)("span",{style:{fontSize:"0.9em",color:"#666"},children:"Having issues? Contact support at [email protected] for assistance."})]}),(0,Xo.jsx)(qB,{variant:"contained",onClick:async()=>{try{m(!0);const t=await ks.post("/v1/stripe/connect-account",{userId:e._id,returnUrl:window.location.href});window.location.href=t.data.url}catch(t){console.error("Error connecting Stripe:",t),alert("Failed to connect Stripe. Please try again."),m(!1)}},disabled:p,color:"primary",children:p?(0,Xo.jsxs)(OB,{sx:{display:"flex",alignItems:"center"},children:[(0,Xo.jsx)(gh,{size:24,sx:{mr:1},color:"inherit"}),"Connecting to Stripe..."]}):"Connect Stripe Account"})]})]})}),(0,Xo.jsx)(kB,{children:(0,Xo.jsxs)(EB,{children:[(0,Xo.jsx)(pU,{control:(0,Xo.jsx)(NU,{checked:t,onChange:e=>n(e.target.checked),disabled:!o}),label:"Enable Subscriptions",sx:{mb:3}}),(0,Xo.jsx)(OB,{sx:{mb:3},children:(0,Xo.jsx)(qW,{label:"Monthly Subscription Price (USD)",type:"number",value:r,onChange:e=>i(e.target.value),disabled:!t||!o,fullWidth:!0,InputProps:{startAdornment:"$",inputProps:{min:1,step:.01}}})}),(0,Xo.jsx)(OB,{sx:{mb:3},children:(0,Xo.jsx)(qW,{label:"Subscription Description",multiline:!0,rows:4,value:a,onChange:e=>s(e.target.value),disabled:!t||!o,fullWidth:!0,placeholder:"Describe what subscribers will get access to..."})}),(0,Xo.jsx)(qB,{variant:"contained",onClick:async()=>{try{if(t&&r){await ks.post("/v1/stripe/create-subscription-price",{price:parseFloat(r),userId:e._id,applicationFeePercent:10})}await ks.post("/users/update-creator-settings/".concat(e._id),{subscriptionEnabled:t,subscriptionPrice:r,subscriptionDescription:a}),alert("Settings saved successfully!")}catch(n){console.error("Error saving settings:",n),alert("Failed to save settings. Please try again.")}},disabled:!o,fullWidth:!0,children:"Save Settings"})]})})]})})]})}const XW=()=>{const[e,t]=(0,$.useState)([]),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)("");(0,$.useEffect)((()=>{console.log("Chat popout mounted");return(async()=>{try{const e=await ks.get("/chats/spirit"),n=Array.isArray(e.data)?e.data.reverse():[];t(n)}catch(K6){console.error("Failed to fetch messages:",K6)}})(),As.on("chat message spirit",(e=>{console.log("\ud83d\udcf1 ChatPopout Debug: Received socket message:",e),e&&"object"===typeof e&&t((t=>{if(t.some((t=>t.user===e.user&&t.text===e.text&&t.timestamp===e.timestamp)))return console.log("\ud83d\udcf1 ChatPopout Debug: Duplicate message detected, skipping"),t;const n=[...t,e];return console.log("\ud83d\udcf1 ChatPopout Debug: Added new message, total count:",n.length),n}))})),()=>{As.off("chat message spirit")}}),[]);return(0,Xo.jsxs)("div",{className:"chat-popout",children:[(0,Xo.jsx)("div",{className:"chat-header"}),(0,Xo.jsx)("div",{className:"chat-messages",children:e.map(((e,t)=>(0,Xo.jsxs)("div",{className:"chat-message",children:[(0,Xo.jsxs)("strong",{children:[e.user,":"]})," ",e.text]},t)))}),i&&(0,Xo.jsxs)("div",{className:"rate-limit-error",children:[(0,Xo.jsx)("div",{className:"rate-limit-icon",children:"\u23f0"}),(0,Xo.jsx)("span",{className:"rate-limit-text",children:i})]}),(0,Xo.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),!n.trim())return;if(/(https?:\/\/[^\s]+|www\.[^\s]+|[^\s]+\.[a-z]{2,}\/[^\s]*)/gi.test(n))return a("Links are not allowed in chat!"),void setTimeout((()=>a("")),3e3);try{const e={user:"Anonymous",text:n,timestamp:(new Date).toISOString(),streamer:"spirit"},t=await ks.post("/chats/spirit",e);console.log("\ud83d\udcf1 ChatPopout Debug: Message sent successfully:",t.data),r("")}catch(K6){var t;if(console.error("Failed to send message:",K6),429===(null===(t=K6.response)||void 0===t?void 0:t.status)){const t=K6.response.data;a(t.error||"You're sending messages too fast."),setTimeout((()=>a("")),3e3)}}},className:"chat-input-wrapper",children:[(0,Xo.jsx)("input",{type:"text",value:n,onChange:e=>r(e.target.value),placeholder:"Type a message...",className:"chat-input"}),(0,Xo.jsx)("button",{type:"submit",className:"chat-send-btn",children:(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Xo.jsx)("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z",fill:"
2currentColor"})})})]})]})};function JW(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M15 18l-6-6 6-6"})})}const QW=()=>{const{user:e,dispatch:t}=(0,$.useContext)(Qo),n=Wt(),r=Vt(),[i,a]=(0,$.useState)({email:!0});(0,$.useEffect)((()=>{(async()=>{if(e)try{const t=!1!==e.emailNotifications;a((e=>o(o({},e),{},{email:t})))}catch(t){console.error("Failed to load notification settings:",t)}})()}),[e]);return(0,Xo.jsxs)("div",{className:"streaming-page",children:[(0,Xo.jsxs)("header",{className:"page-topbar",children:[(0,Xo.jsx)("button",{type:"button",className:"topbar-back","aria-label":"Back",onClick:()=>{var e;const t=null===(e=n.state)||void 0===e?void 0:e.backTo;return t?r(t,{replace:!0}):window.history.length>1?r(-1):void r("/",{replace:!0})},children:(0,Xo.jsx)(JW,{})}),(0,Xo.jsx)("div",{className:"page-topbar-title",children:"Notifications"})]}),(0,Xo.jsxs)("div",{className:"notifications-container",children:[(0,Xo.jsx)("h1",{className:"notifications-title",children:"NOTIFICATIONS"}),(0,Xo.jsxs)("div",{className:"notifications-setting",children:[(0,Xo.jsxs)("div",{className:"setting-header",children:[(0,Xo.jsx)("div",{className:"setting-title",children:"VIA EMAIL"}),(0,Xo.jsx)("div",{className:"toggle-switch ".concat(i.email?"":"off"),onClick:()=>(async n=>{const r=!i[n];a((e=>o(o({},e),{},{[n]:r})));try{200===(await ks.post("/notifications/toggle-".concat(n),{enabled:r,userId:null===e||void 0===e?void 0:e._id})).status&&"email"===n&&t({type:"UPDATE_EMAIL_NOTIFICATIONS",payload:r})}catch(l){var s;console.error("Failed to toggle ".concat(n,":"),l),console.error("Error details:",null===(s=l.response)||void 0===s?void 0:s.data),a((e=>o(o({},e),{},{[n]:!r})))}})("email"),role:"switch","aria-checked":i.email,"aria-label":"Toggle email notifications"})]}),(0,Xo.jsx)("div",{className:"setting-description",children:"RECEIVE NOTIFICATION THROUGH EMAIL"})]})]}),(0,Xo.jsx)("div",{className:"notifications-footer",children:(0,Xo.jsx)("div",{className:"footer-text"})})]})},ZW=()=>{const{streamer:e="spirit"}=qt(),[t,n]=(0,$.useState)([]),[r,i]=(0,$.useState)(!0),[a,s]=(0,$.useState)("");(0,$.useEffect)((()=>{(async()=>{try{i(!0);const t=await ks.get("/superchat/".concat(e,"?limit=100"));n(t.data)}catch(K6){s("Failed to load SuperChats"),console.error("Error fetching SuperChats:",K6)}finally{i(!1)}})()}),[e]);return r?(0,Xo.jsxs)("div",{className:"superchats-page",children:[(0,Xo.jsx)("div",{className:"superchats-header",children:(0,Xo.jsxs)("h1",{children:["SuperChats - ",e]})}),(0,Xo.jsx)("div",{className:"loading",children:"Loading SuperChats..."})]}):a?(0,Xo.jsxs)("div",{className:"superchats-page",children:[(0,Xo.jsx)("div",{className:"superchats-header",children:(0,Xo.jsxs)("h1",{children:["SuperChats - ",e]})}),(0,Xo.jsx)("div",{className:"error",children:a})]}):(0,Xo.jsxs)("div",{className:"superchats-page",children:[(0,Xo.jsxs)("div",{className:"superchats-header",children:[(0,Xo.jsxs)("h1",{children:["SuperChats - ",e]}),(0,Xo.jsx)("p",{children:"Recent SuperChat messages and tips"})]}),(0,Xo.jsx)("div",{className:"superchats-container",children:0===t.length?(0,Xo.jsxs)("div",{className:"no-superchats",children:[(0,Xo.jsxs)("p",{children:["No SuperChats yet for ",e]}),(0,Xo.jsx)("p",{children:"Be the first to send a SuperChat!"})]}):(0,Xo.jsx)("div",{className:"superchats-list",children:t.map((e=>{return(0,Xo.jsxs)("div",{className:"superchat-item",children:[(0,Xo.jsxs)("div",{className:"superchat-header",children:[(0,Xo.jsxs)("div",{className:"superchat-user",children:[(0,Xo.jsx)("span",{className:"user-name",children:e.user}),(0,Xo.jsx)("span",{className:"superchat-amount",children:(n=e.amount,new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(n))})]}),(0,Xo.jsx)("div",{className:"superchat-time",children:(t=e.timestamp,new Date(t).toLocaleString())})]}),(0,Xo.jsx)("div",{className:"superchat-message",children:e.message})]},e._id);var t,n}))})})]})};var $W=n(6581);
2function eH(e){let{count:t}=e;if(!t)return null;const n=t>99?"99+":String(t);return(0,Xo.jsx)("span",{style:{marginLeft:8,minWidth:18,height:18,borderRadius:9,padding:"0 6px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,background:"#ff3b30",color:"#fff",lineHeight:1},children:n})}function tH(){const e=Number(localStorage.getItem("yzy_unread_count")||"0");return Number.isFinite(e)?e:0}function nH(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M4 4a2 2 0 0 0-2 2v1h20V6a2 2 0 0 0-2-2H4zM2 9v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9H2zm8 2.5l5 3-5 3v-6z"})})}function rH(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm-7 10a7 7 0 0 1 14 0H5z"})})}const iH=()=>{const{t:e}=Ae("common"),{pathname:t}=Wt(),n=t.startsWith("/notifications")||t.startsWith("/notificationspage"),[r,i]=(0,$.useState)(tH),a=((0,$.useRef)(null),(0,$.useRef)(null),(0,$.useRef)(!1),(0,$.useRef)(new Set),(0,$.useRef)(null),(0,$.useRef)(!1),e=>{const t=function(e,t){const n=t?0:Math.max(0,Number(e)||0);return localStorage.setItem("yzy_unread_count",String(n)),window.dispatchEvent(new Event("yzy_unread_update")),n}(e,n);i(n?0:t)});(0,$.useEffect)((()=>{const e=e=>{"yzy_unread_count"===e.key&&i(tH())},t=()=>i(tH());return window.addEventListener("storage",e),window.addEventListener("yzy_unread_update",t),()=>{window.removeEventListener("storage",e),window.removeEventListener("yzy_unread_update",t)}}),[]);const[s,o]=(0,$.useState)((()=>{const e=Number(localStorage.getItem("cb_new_clips")||"0");return Number.isFinite(e)?e:0}));return(0,$.useEffect)((()=>{const e=()=>{const e=Number(localStorage.getItem("cb_new_clips")||"0");o(Number.isFinite(e)?e:0)};return window.addEventListener("cb_new_clips",e),window.addEventListener("storage",e),()=>{window.removeEventListener("cb_new_clips",e),window.removeEventListener("storage",e)}}),[]),(0,$.useEffect)((()=>{n&&a(0)}),[n]),(0,Xo.jsxs)("div",{className:"leftbar",children:[(0,Xo.jsxs)("a",{href:"/home",className:"tab tab-link",target:"_self",rel:"noreferrer",title:"Clip","aria-label":"Clip",children:[(0,Xo.jsx)(nH,{size:24}),(0,Xo.jsx)("span",{children:"Clip"})]}),(0,Xo.jsxs)("a",{href:"/home?tab=library",className:"tab tab-link",target:"_self",rel:"noreferrer",title:"Library","aria-label":"Library",children:[(0,Xo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Xo.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]}),(0,Xo.jsx)("span",{children:"Library"}),(0,Xo.jsx)(eH,{count:s})]}),(0,Xo.jsxs)("a",{href:"/me",className:"tab tab-link",target:"_self",rel:"noreferrer",title:e("profileTab"),"aria-label":e("profileTab"),children:[(0,Xo.jsx)(rH,{size:24}),(0,Xo.jsx)("span",{children:e("profileTab")})]})]})},aH={twitter:{name:"X",icon:"\ud835\udd4f",color:"#000"},tiktok:{name:"TikTok",icon:"\u266a",color:"#000"},youtube:{name:"YouTube",icon:"\u25b6",color:"#FF0000"},facebook:{name:"Facebook",icon:"f",color:"#1877F2"}},sH=[{id:"schedule",labelKey:"scheduleAction",descKey:"saveAndSchedule"},{id:"publish",labelKey:"postAction",descKey:"publishImmediately"}],oH=e=>{var t;let{clip:n,clipJobId:r,clipIndex:i,onClose:a,onScheduled:s,initialAction:o="schedule"}=e;const{t:l}=Ae("schedule"),c=Vt(),[d,u]=(0,$.useState)([]),[h,p]=(0,$.useState)([]),[m,f]=(0,$.useState)(""),[g,v]=(0,$.useState)((null===n||void 0===n?void 0:n.caption)||(null===n||void 0===n?void 0:n.hook)||""),[b,y]=(0,$.useState)(!1),[x,S]=(0,$.useState)(!1),[k,w]=(0,$.useState)(!0),[T,C]=(0,$.useState)(o),[E,j]=(0,$.useState)(!1),[A,N]=(0,$.useState)(null),P=(0,$.useRef)(null);(0,$.useEffect)((()=>{const e=e=>{P.current&&!P.current.contains(e.target)&&j(!1)};return E&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[E]),(0,$.useEffect)((()=>{L();const e=new Date(Date.now()+36e5);f(R(e))}),[]);const R=e=>{const t=e=>String(e).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate()),"T").concat(t(e.getHours()),":").concat(t(e.getMinutes()))},L=async()=>{try{const e=(await ks.get("/users/me/creator-settings")).data.socialConnections||{},t=Object.entries(e).filter((e=>{let[t,n]=e;return n.connected})).map((e=>{let[t]=e;return t}));u(t),p(t)}catch(K6){console.error("Failed to fetch platforms:",K6),Vo.error("Failed to load connected platforms")}finally{w(!1)}},I=async e=>{if(e&&e.preventDefault(),0===h.length)return Vo.error(l("selectAtLeastOnePlatform"));if(!m)return Vo.error(l("selectATime"));const t=new Date(m);if(t<=new Date)return Vo.error(l("selectFutureTime"));y(!0);try{await ks.post("/scheduled-posts",{clipUrl:n.editedUrl||n.url,clipTitle:n.hook||n.title||"",clip
2Duration:n.duration,clipJobId:r||null,clipIndex:null!==i&&void 0!==i?i:0,platforms:h,scheduledTime:t.toISOString(),caption:g}),Vo.success(l("postScheduled")),null===s||void 0===s||s(),a()}catch(K6){var o,c;Vo.error((null===(o=K6.response)||void 0===o||null===(c=o.data)||void 0===c?void 0:c.error)||l("failedToSchedule"))}finally{y(!1)}},D=R(new Date);return(0,Xo.jsx)("div",{className:"schedule-modal-overlay",onClick:a,children:(0,Xo.jsxs)("div",{className:"schedule-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"schedule-modal-header",children:[(0,Xo.jsx)("h3",{children:l("shareClip")}),(0,Xo.jsx)("button",{className:"schedule-modal-close",onClick:a,children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),A?(0,Xo.jsxs)("div",{className:"schedule-result",children:[(0,Xo.jsx)("div",{className:"schedule-result-header ".concat(A.status),children:"completed"===A.status?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"schedule-result-icon success",children:(0,Xo.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,Xo.jsx)("h4",{children:l("postedSuccessfully")})]}):"partial"===A.status?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"schedule-result-icon partial",children:(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,Xo.jsx)("h4",{children:l("partiallyPosted")})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"schedule-result-icon failed",children:(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,Xo.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]})}),(0,Xo.jsx)("h4",{children:l("failedToPost")})]})}),(0,Xo.jsx)("div",{className:"schedule-result-platforms",children:A.results.map((e=>{const t=aH[e.name];return(0,Xo.jsxs)("div",{className:"schedule-result-platform ".concat(e.status),children:[(0,Xo.jsxs)("div",{className:"schedule-result-platform-info",children:[(0,Xo.jsx)("span",{className:"schedule-platform-icon",style:{backgroundColor:(null===t||void 0===t?void 0:t.color)||"#333"},children:(null===t||void 0===t?void 0:t.icon)||e.name[0].toUpperCase()}),(0,Xo.jsx)("span",{className:"schedule-result-platform-name",children:(null===t||void 0===t?void 0:t.name)||e.name})]}),(0,Xo.jsx)("div",{className:"schedule-result-platform-status",children:"posted"===e.status?(0,Xo.jsxs)("a",{href:e.postUrl,target:"_blank",rel:"noopener noreferrer",className:"schedule-result-link",children:[l("viewPost"),(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,Xo.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Xo.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]}):(0,Xo.jsx)("span",{className:"schedule-result-error",children:e.error||"Failed"})})]},e.name)}))}),(0,Xo.jsx)("div",{className:"schedule-result-actions",children:(0,Xo.jsx)("button",{className:"schedule-result-done",onClick:a,children:l("common:done")})})]}):k?(0,Xo.jsx)("div",{className:"schedule-modal-loading",children:l("loadingPlatforms")}):0===d.length?(0,Xo.jsxs)("div",{className:"schedule-modal-empty",children:[(0,Xo.jsx)("p",{children:l("noConnectedPlatforms")}),(0,Xo.jsx)("p",{children:l("connectSocialsToSchedule")}),(0,Xo.jsx)("button",{className:"schedule-modal-goto",onClick:()=>{a(),c("/me")},children:l("connectYourAccounts")})]}):(0,Xo.jsxs)("form",{onSubmit:I,children:[(0,Xo.jsxs)("div",{className:"schedule-platforms",children:[(0,Xo.jsxs)("div",{className:"schedule-platforms-header",children:[(0,Xo.jsx)("span",{children:l("postTo")}),d.length>1&&(0,Xo.jsx)("button",{type:"button",onClick:()=>{p(d)},children:h.length===d.length?l("deselectAll"):l("selectAll")})]}),(0,Xo.jsx)("div",{className:"schedule-platforms-pills",children:d.map((e=>{const t=aH[e],n=h.includes(e);return(0,Xo.jsxs)("button",{type:"button",className:"schedule-platform-pill ".concat(n?"selected":""),onClick:()=>(e=>{p((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))})(e),children:[(0,Xo.jsx)("span",{className:"schedule-platform-icon",style:{backgroundColor:(null===t||void 0===t?void 0:t.color)||"#333"},children:(null===t||void 0===t?void 0:t.icon)||e[0].toUpperCase()}),(0,Xo.jsx)("span",{className:"schedule-platform-name",children:(null===t||void 0===t?void 0:t.name)||e}),n&&(0,Xo.jsx)("span",{className:"schedule-platform-check",children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})})]},e)}))})]}),(0,Xo.jsxs)("div",{className:"schedule-caption",children:[(0,Xo.jsx)("label",{children:l("caption")}),(0,Xo.jsx)("textarea",{value:g,onChange:e=>v(e.target.value),maxLength:500,placeholder:l("writeCaptionPlaceholder"),rows:4}),(0,Xo.jsxs)("span",{className:"schedule-caption-count",children:[g.length,"/500"]})]}
2),"schedule"===T&&(0,Xo.jsx)("div",{className:"schedule-datetime",children:(0,Xo.jsx)("input",{type:"datetime-local",value:m,onChange:e=>f(e.target.value),min:D,required:!0})}),(0,Xo.jsxs)("div",{className:"schedule-actions",children:[(0,Xo.jsx)("button",{type:"button",className:"schedule-cancel",onClick:a,disabled:b||x,children:l("common:cancel")}),(0,Xo.jsxs)("div",{className:"schedule-split-btn",ref:P,children:[(0,Xo.jsx)("button",{type:"button",className:"schedule-main-btn",onClick:"publish"===T?async()=>{if(0===h.length)return Vo.error(l("selectAtLeastOnePlatform"));S(!0),N(null);try{const e=await ks.post("/scheduled-posts/publish-now",{clipUrl:n.editedUrl||n.url,clipTitle:n.hook||n.title||"",clipDuration:n.duration,clipJobId:r||null,clipIndex:null!==i&&void 0!==i?i:0,platforms:h,caption:g});N({status:e.data.status,results:e.data.results}),"completed"===e.data.status?Vo.success(l("postedSuccess")):"partial"===e.data.status?Vo.success(l("postedToSomePlatforms")):Vo.error(l("failedToPostError")),null===s||void 0===s||s()}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||l("failedToPublish")),N(null)}finally{S(!1)}}:I,disabled:b||x||0===h.length,children:b||x?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"schedule-btn-spinner"}),l("publish"===T?"publishing":"scheduling")]}):l((null===(t=sH.find((e=>e.id===T)))||void 0===t?void 0:t.labelKey)||"scheduleAction")}),(0,Xo.jsx)("button",{type:"button",className:"schedule-dropdown-toggle",onClick:()=>j(!E),disabled:b||x,children:(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"18 15 12 9 6 15"})})}),E&&(0,Xo.jsx)("div",{className:"schedule-action-menu",children:sH.map((e=>(0,Xo.jsxs)("button",{type:"button",className:"schedule-action-option ".concat(T===e.id?"selected":""),onClick:()=>{C(e.id),j(!1)},children:[(0,Xo.jsxs)("div",{className:"schedule-action-option-content",children:[(0,Xo.jsx)("span",{className:"schedule-action-option-label",children:l(e.labelKey)}),(0,Xo.jsx)("span",{className:"schedule-action-option-desc",children:l(e.descKey)})]}),T===e.id&&(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.id)))})]})]})]})]})})},lH=[{mood:"comedic",re:/\b(laugh(?:ing|s)?|hilarious|lmao|lol|punchline|roast(?:ed|ing|s)?|absurd|ridiculous|cracking up|joking)\b/i},{mood:"dark",re:/\b(expose[ds]?|horrific|scandal(?:ous)?|destroy(?:ing|ed)?|controversial|evil|sinister|conspirac(?:y|ies)|disgusting|corrupt(?:ion)?|sick|wicked)\b/i},{mood:"tense",re:/\b(piss(?:ed)?|furious|enraged|outrage(?:d)?|attack(?:ing|ed)?|confront(?:ation|ed)?|argument|argue|fight(?:ing)?|aggressive|hostile)\b/i},{mood:"epic",re:/\b(incredible|legendary|insane|unbelievable|mind ?blowing|jaw ?dropping|game ?chang(?:er|ing)|historic)\b/i},{mood:"emotional",re:/\b(heart(?: ?break(?:ing)?)?|tears?|crying|grief|grieving|miss(?:ed)? (?:her|him|them|you)|loss|lost (?:my|her|him)|vulnerable|emotional(?:ly)?)\b/i},{mood:"uplifting",re:/\b(success(?:ful)?|thriv(?:e|ing)|inspir(?:ed|ing)|breakthrough|grateful|blessed|won (?:against|the))\b/i},{mood:"hopeful",re:/\b(hope(?:ful)?|believ(?:e|ing)|healing|healed|recover(?:y|ing|ed)|rebuild(?:ing)?|start(?:ing)? over|new (?:beginning|chapter|day)|second chance|possibilit(?:y|ies)|brighter|dawn|horizon|keep going|carry on|growth|growing)\b/i},{mood:"love",re:/\b(love(?:d|s|r|rs)?|loving|in love|romantic|romance|crush|soulmate|wedding|married|husband|wife|fianc\xe9e?|girlfriend|boyfriend|forever (?:with|together)|first kiss|made for (?:me|you|us|each other))\b/i},{mood:"sexy",re:/\b(seduct(?:ive|ion)|sensual|sexy|sultry|flirt(?:y|ing)?|tempt(?:ation|ing)|desire|intimate|provocative|hot (?:girl|guy|night))\b/i},{mood:"motivating",re:/\b(grind(?:ing)?|hustle|hustling|discipline|driven|relentless|work ?ethic|no excuses|earn(?:ed)? it|comeback|underdog|prove (?:them|him|her) wrong|unstoppable|warrior|champion|level up|locked in|sigma|alpha|grit|outwork)\b/i},{mood:"mystery",re:/\b(conspirac(?:y|ies|theor(?:y|ies))|cover ?up|deep state|illuminat[ie]|hidden agenda|secret society|investigat(?:e|ed|ing|ion|or)|detective|whistleblow(?:er|ing)|leak(?:ed)?|classified|redacted|suspicious|mysterious|sinister plot|undercover|behind the scenes|whats really going on)\b/i},{mood:"scary",re:/\b(scary|terrifying|horrif(?:y|ying|ic)|nightmare|haunt(?:ed|ing)|creepy|spook(?:y|ed)?|petrified|chilling|blood ?curdling|paranormal|demonic|possessed|exorcism|ghost(?:ly)?|cursed)\b/i},{mood:"dramatic",re:/\b(turning point|never forget(?:ting)?|life ?chang(?:ed|ing)|biggest (?:secret|reveal|mistake)|the truth (?:is|about|behind)
2)\b/i},{mood:"chill",re:/\b(peaceful|relax(?:ing|ed)?|meditat(?:e|ing)|tranquil|easy ?going|laid ?back)\b/i}],cH={controversial:"tense",candid:"emotional",reaction:"comedic"},dH=/\b(yell(?:ing)?|scream(?:ing)?|crazy|insane|explod(?:e|ing)|destroy(?:ing)?|attack(?:ing|ed)?|hype|chaos|frantic)\b/i,uH=/\b(whisper|gentle|soft|peaceful|reflect(?:ive)?|contemplat(?:ive|ing)|melanchol(?:y|ic)|somber|grief)\b/i;function hH(e){return e?[e.caption,e.hook,e.hookLine,e.retentionLine,e.payoffLine,e.transcript].filter(Boolean).join(" "):""}function pH(e){return Array.isArray(e)?e.map((e=>String(e||"").toLowerCase().trim())).filter(Boolean):[]}function mH(e,t){const n=pH(t.instruments),r=pH(e.avoidInstruments);for(const s of r)if(n.some((e=>e===s||e.includes(s)||s.includes(e))))return 1/0;let i=0;"number"===typeof t.tempo&&"number"===typeof e.tempo&&(i+=Math.abs(t.tempo-e.tempo)/160),"number"===typeof t.valence&&"number"===typeof e.valence&&(i+=Math.abs(t.valence-e.valence)),"number"===typeof t.intensity&&"number"===typeof e.intensity&&(i+=Math.abs(t.intensity-e.intensity)/4);const a=pH(e.preferInstruments);for(const s of a)if(n.some((e=>e===s||e.includes(s)||s.includes(e)))){i-=.15;break}return Math.max(i,0)}function fH(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!Array.isArray(e)||0===e.length)return{tracks:[],mood:null,energy:"medium",source:"empty"};const r=null===t||void 0===t?void 0:t.musicTarget;if(!r)return{tracks:[],mood:null,energy:"medium",source:"no-spec"};const i=function(e){if(null!==e&&void 0!==e&&e.musicMood)return e.musicMood;const t=hH(e);if(t)for(const{mood:n,re:r}of lH)if(r.test(t))return n;return null!==e&&void 0!==e&&e.hookType&&cH[e.hookType]?cH[e.hookType]:null}(t),a=function(e){if(null!==e&&void 0!==e&&e.musicEnergy)return e.musicEnergy;const t=hH(e);return dH.test(t)?"high":uH.test(t)?"low":"medium"}(t),s=i?e.filter((e=>((e,t)=>Array.isArray(e.moods)&&e.moods.includes(t))(e,i))):e;if(0===s.length)return{tracks:[],mood:i,energy:a,source:"no-pool"};const o=s.filter((e=>"number"===typeof e.tempo||"number"===typeof e.valence||"number"===typeof e.intensity));if(0===o.length)return{tracks:[],mood:i,energy:a,source:"no-data"};const l=o.map((e=>({track:e,d:mH(r,e)}))).filter((e=>Number.isFinite(e.d))).sort(((e,t)=>e.d-t.d));return 0===l.length?{tracks:[],mood:i,energy:a,source:"no-data"}:{tracks:l.slice(0,n).map((e=>e.track)),mood:i,energy:a,source:"target"}}const gH=/(instrumental|slowed|sped[\s-]?up|reverb|remix|piano version|piano cover|acoustic|live|looped?|special version|tiktok|cover)/i;function vH(e){if(!e)return{displayName:"",modifiers:[]};const t=[];return{displayName:e.replace(/\s*[([]\s*([^()[\]]+?)\s*[)\]]/g,((e,n)=>gH.test(n)?(t.push(n.trim()),""):e)).trim()||e,modifiers:t}}function bH(e){return e.map((e=>({trackId:e._id,trackName:e.trackName,artist:e.artist,tiktokSoundUrl:e.tiktokSoundUrl,spotifyUrl:e.spotifyUrl})))}const yH=["youtube.com","www.youtube.com","m.youtube.com","youtu.be"];const xH=e=>{var t,n;let{clip:r,job:i,clipIndex:a,userPlan:s,catalog:o=[],onClose:l,onUpgrade:c,onDeleteClip:d,onPrev:u,onNext:h,hasPrev:p,hasNext:m}=e;const{t:f}=Ae(["clips","common"]),g=(0,$.useRef)(null),v=(0,$.useRef)(null),b=(0,$.useRef)(null),y=(0,$.useRef)(null),x=(0,$.useRef)(null),S=(0,$.useRef)("up"),[k,w]=(0,$.useState)(!1),[T,C]=(0,$.useState)(!1),[E,j]=(0,$.useState)(!1),[A,N]=(0,$.useState)(0),[P,R]=(0,$.useState)(!1),[L,I]=(0,$.useState)(null),[D,O]=(0,$.useState)(!1),[M,_]=(0,$.useState)(0),[F,B]=(0,$.useState)(0),[U,z]=(0,$.useState)(!1),[G,W]=(0,$.useState)(!1),[H,V]=(0,$.useState)(!1),K=!s||"none"===s,q="16:9"===i.aspectRatio,Y=r.hook||"",X=r.caption||"",J=(0,$.useMemo)((()=>fH(o,r,5)),[o,r]),Q=(0,$.useMemo)((()=>bH(J.tracks)),[J.tracks]),Z=(()=>{switch(J.source){case"no-spec":return"This clip is missing musicTarget \u2014 regenerate it to get vibe-matched music.";case"no-data":return"No catalog tracks have audio features yet \u2014 run the backfill script to enable matching.";case"no-pool":return"No catalog tracks tagged with this clip's inferred mood.";case"empty":return"Catalog is loading\u2026";default:return""}})(),ee=function(e,t){if(!e)return null;const n=Math.floor(t||0);try{const t=new URL(e);if(!yH.includes(t.hostname))return e;if("youtu.be"===t.hostname){const r=t.pathname.replace(/^\//,"").split("/")[0];return r?"https://www.youtube.com/watch?v=".concat(r,"&t=").concat(n,"s"):e}const r=t.searchParams.get("v");if(r)return"https://www.youtube.com/watch?v=".concat(r,"&t=").concat(n,"s");const i=t.pathname.match(/^\/(?:embed|shorts|live|v)\/([^/?#]+)/);return i?"https://www.youtube.com/watch?v=".concat(i[1],"&t=").concat(n,"s"):e}catch(vo){return e}}(null===i||void 0===i?void 0:i.videoUrl,null!==(t=null!==(n=null===r||void 0===r?void 0:r.start_sec)&&void 0!==n?n:null===r||void 0===r?void 0:r.start)&&void 0!==t?t:0),te=r.editedUrl||r.url,ne=r.thumbnailUrl?"/api/clips/thumb?u=".concat(encodeURIComponent(r.thumbnailUrl)):void 0;(0,$.useEffect)((()=>{const e=x.current;if(!e||"function"!==typeof e.animate)return;const t="up"===S.current?"9%":"-9%";e.animate([{transform:"translateY(".concat(t,")"),opacity:.3},{transform:"translateY(0)",opacity:1}],{duration:280,easing:"cubic-bezier(0.22, 0.61, 0.36, 1)"})}),[te]),(0,$.useEffect)((()=>{const e=e=>{"Escape"===e.key?l():"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||!p?"ArrowRight"!==e.key&&"ArrowDown"!==e.key||!m||(e.preventDefault(),S.current="up",null===h||void 0===h||h()):(e.preventDefault(),S.current="down",null===u||void 0===u||u())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[l,u,h,p,m]),(0,$.useEffect)((()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""})),[]),(0,$.useEffect)((()=>{const e=g.current;e&&(_(0),Promise.resolve().then((()=>e.play().then((()=>w(!0))).catch((()=>{e.muted=!0,V(!0),e.play().then((()=>w(!0))).catch((()=>{}))})))))}),[null===r||void 0===r?void 0:r.url,null===r||void 0===r?void 0:r._id]),(0,$.useEffect)((()=>{const e=g.current;if(!e)return;const t=()=>{U||_(e.currentTime)},n=()=>B(e.duration||0),r=()=>{e.volume>0&&e.muted&&(e.muted=!1),V(e.muted||0===e.volume)};return e.addEventListener("timeupdate",t),e.addEventListener("loadedmetadata",n),e.addEventListener("durationchange",n),e.addEventListener("volumechange",r),e.duration&&!F&&B(e.duration),()=>{e.removeEventListener("timeupdate",t),e.removeEventListener("loadedmetadata",n),e.removeEventListener("durationchange",n),e.removeEventListener("volumechange",r)}}),[U,F]),(0,$.useEffect)((()=>{const e=()=>W(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e)}}),[]);const re=e=>{const t=g.current,n=y.current;if(!t||!n||!t.duration)return;const r=n.getBoundingClientRect(),i=Math.max(0,Math.min(1,(e-r.left)/r.width))*t.duration;t.currentTime=i,_(i)},ie=e=>{if(U){z(!1);try{var t,n;null===(t=(n=e.currentTarget).releasePointerCapture)||void 0===t||t.call(n,e.pointerId)}catch(vo){}}},ae=e=>{if(!Number.isFinite(e))return"0:00";const t=Math.floor(e);return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))},se=F>0?M/F*100:0;(0,$.useEffect)((()=>
2{if("undefined"===typeof window)return;if(window.innerWidth>700)return;const e=b.current,t=v.current;if(!e||!t)return;let n=!1;const r=()=>{n||(n=!0,window.requestAnimationFrame((()=>{const r=Math.max(0,Math.min(1,e.scrollTop/220));t.style.setProperty("--cdp-collapse",String(r)),n=!1})))};return e.addEventListener("scroll",r,{passive:!0}),()=>e.removeEventListener("scroll",r)}),[]);const oe=e=>{if(null==e)return null;const t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?"".concat(n,":").concat(r.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0")):"".concat(r,":").concat(i.toString().padStart(2,"0"))},le=null!=r.start_sec&&null!=r.end_sec?"".concat(oe(r.start_sec)," \u2192 ").concat(oe(r.end_sec)):null,ce=async e=>{if(D)return;O(!0);const t=L===e?null:e,n=L;I(t);try{t?await ks.post("/clips/feedback",{jobId:i._id,clipIndex:a,vote:t}):await ks.delete("/clips/feedback",{data:{jobId:i._id,clipIndex:a}})}catch(r){I(n)}finally{O(!1)}};return(0,Ze.createPortal)((0,Xo.jsxs)("div",{className:"cdp-overlay",ref:v,children:[(0,Xo.jsx)("button",{className:"cdp-float-close",onClick:l,"aria-label":"Close",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(p||m)&&(0,Xo.jsxs)("div",{className:"cdp-nav-stack",children:[(0,Xo.jsx)("button",{type:"button",className:"cdp-nav cdp-nav--prev",onClick:e=>{e.stopPropagation(),S.current="down",null===u||void 0===u||u()},disabled:!p,"aria-label":"Previous clip",children:(0,Xo.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 15 12 9 18 15"})})}),(0,Xo.jsx)("button",{type:"button",className:"cdp-nav cdp-nav--next",onClick:e=>{e.stopPropagation(),S.current="up",null===h||void 0===h||h()},disabled:!m,"aria-label":"Next clip",children:(0,Xo.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]}),(0,Xo.jsxs)("div",{className:"cdp-video-area",onClick:l,children:[(0,Xo.jsx)("video",{className:"cdp-video-bg",src:te,poster:ne,muted:!0,autoPlay:!0,loop:!0,playsInline:!0,tabIndex:-1}),(0,Xo.jsxs)("div",{ref:x,className:"cdp-video-frame".concat(q?" cdp-video-frame--wide":"").concat(G?" cdp-video-frame--fs":""),onClick:e=>{e.stopPropagation(),(()=>{const e=g.current;e&&(e.paused?(e.play().catch((()=>{})),w(!0)):(e.pause(),w(!1)))})()},onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:[(0,Xo.jsx)("video",{ref:g,src:te,poster:ne,loop:!0,playsInline:!0,preload:"auto",className:"cdp-video"}),(0,Xo.jsx)("div",{className:"cdp-play-hint".concat(T?" visible":""),children:k?(0,Xo.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Xo.jsx)("rect",{x:"6",y:"4",width:"4",height:"16"}),(0,Xo.jsx)("rect",{x:"14",y:"4",width:"4",height:"16"})]}):(0,Xo.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})}),(0,Xo.jsx)("button",{className:"cdp-mute-btn",onClick:e=>{var t;null===e||void 0===e||null===(t=e.stopPropagation)||void 0===t||t.call(e);const n=g.current;if(!n)return;const r=!n.muted;n.muted=r,r||(0===n.volume&&(n.volume=1),n.paused&&n.play().catch((()=>{}))),V(r)},title:H?"Unmute":"Mute","aria-label":H?"Unmute":"Mute",children:H?(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M11 5 6 9H2v6h4l5 4V5z"}),(0,Xo.jsx)("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),(0,Xo.jsx)("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]}):(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M11 5 6 9H2v6h4l5 4V5z"}),(0,Xo.jsx)("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}),(0,Xo.jsx)("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"})]})}),(0,Xo.jsx)("button",{className:"cdp-fs-btn",onClick:e=>{var t;null===e||void 0===e||null===(t=e.stopPropagation)||void 0===t||t.call(e);const n=x.current,r=g.current;document.fullscreenElement||document.webkitFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():null!==n&&void 0!==n&&n.requestFullscreen?n.requestFullscreen().catch((()=>{})):null!==n&&void 0!==n&&n.webkitRequestFullscreen?n.webkitRequestFullscreen():null!==r&&void 0!==r&&r.webkitEnterFullscreen&&r.webkitEnterFullscreen()},title:G?"Exit fullscreen":"Fullscreen","aria-label":"Toggle fullscreen",children:G?(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("path",{d:"M15 21h4a2 2 0 0 0 2-2v-4"}),(0,Xo.jsx)("path",{d:"M9 3H5a2 2 0 0 0-2 2v4"}),(0,Xo.jsx)("path",{d:"M15 3h4a2 2 0 0 1 2 2v4"})]}):(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M3 9V5a2 2 0 0 1 2-2h4"}),(0,Xo.jsx)("path",{d:"M21 9V5a2 2 0 0 0-2-2h-4"}),(0,Xo.jsx)("path",{d:"M3 15v4a2 2 0 0 0 2 2h4"}),(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2h-4"})]})}),(0,Xo.jsxs)("div",{className:"cdp-controls-bar",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("span",{className:"cdp-time",children:ae(M)}),(0,Xo.jsx)("div",{ref:y,className:"cdp-scrubber",onPointerDown:e=>{var t,n;e.preventDefault(),e.stopPropagation(),z(!0),null===(t=(n=e.currentTarget).setPointerCapture)||void 0===t||t.call(n,e.pointerId),re(e.clientX)},onPointerMove:e=>{U&&(e.preventDefault(),re(e.clientX))},onPointerUp:ie,onPointerCancel:ie,children:(0,Xo.jsxs)("div",{className:"cdp-scrubber-track",children:[(0,Xo.jsx)("div",{className:"cdp-scrubber-fill",style:{width:"".concat(se,"%")}}),(0,Xo.jsx)("div",{className:"cdp-scrubber-thumb",style:{left:"".concat(se,"%")}})]})}),(0,Xo.jsx)("span",{className:"cdp-time",children:ae(F)})]})]})]}),(0,Xo.jsxs)("div",{className:"cdp-sidebar",ref:b,onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"cdp-sidebar-grip","aria-hidden":"true",children:(0,Xo.jsx)("span",{className:"cdp-sidebar-grip-pill"})}),(0,Xo.jsx)("div",{className:"cdp-sidebar-header",children:(0,Xo.jsx)("span",{className:"cdp-sidebar-eyebrow",children:f("clips:clipDefaultTitle",{number:a+1})})}),X&&(0,Xo.jsxs)("div",{className:"cdp-section cdp-section--caption",children:[(0,Xo.jsxs)("div",{className:"cdp-section-label",children:[(0,Xo.jsxs)("span",{className:"cdp-caption-badge",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"})]}),"AI caption"]}),(0,Xo.jsxs)("button",{type:"button",className:"cdp-caption-copy-btn",onClick:async()=>{try{await navigator.clipboard.writeText(X),Vo.success("Caption copied!")}catch(e){Vo.error("Couldn't copy \u2014 copy it manually")}},"aria-label":"Copy caption to clipboard",children:[(0,Xo.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,Xo.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})]}),(0,Xo.jsx)("p",{className:"cdp-caption-text",children:X})]}),(0,Xo.jsxs)("div",{className:"cdp-section cdp-section--info",children:[(0,Xo.jsx)("div",{className:"cdp-section-label",children:f("clips:information")}),(0,Xo.jsxs)("div",{className:"cdp-info-list",children:[le&&(0,Xo.jsxs)("div",{className:"cdp-info-row",children:[(0,Xo.jsx)("span",{className:"cdp-info-key",children:"Timecode"}),(0,Xo.jsx)("span",{className:"cdp-info-val",children:le})]}),r.duration&&(0,Xo.jsxs)("div",{className:"cdp-info-row",children:[(0,Xo.jsx)("span",{className:"cdp-info-key",children:f("clips:duration")}),(0,Xo.jsx)("span",{className:"cdp-info-val",children:(e=>{if(!e)return null;const t=Math.floor(e/60),n=Math.floor(e%60);return"".concat(t,":").concat(n.toString().padStart(2,"0"))})(r.duration)})]}),i.platform&&(0,Xo.jsxs)("div",{className:"cdp-info-row",children:[(0,Xo.jsx)("span",{className:"cdp-info-key",children:f("clips:platform")}),(0,Xo.jsx)("span",{className:"cdp-info-val cdp-capitalize",children:i.platform})]}),i.streamerName&&(0,Xo.jsxs)("div",{className:"cdp-info-row",children:[(0,Xo.jsx)("span",{className:"cdp-info-key",children:f("clips:creator")}),(0,Xo.jsx)("span",{className:"cdp-info-val",children:i.streamerName})]})]})]}),(0,Xo.jsx)("div",{className:"cdp-section cdp-section--rate",children:(0,Xo.jsxs)("div",{className:"cdp-vote-row",children:[(0,Xo.jsx)("span",{className:"cdp-section-label",style:{margin:0},children:f("clips:rateThisClip")}),(0,Xo.jsxs)("div",{className:"cdp-vote-btns",children:[(0,Xo.jsx)("button",{className:"cdp-vote-btn".concat("up"===L?" up":""),onClick:()=>ce("up"),disabled:D,children:(0,Xo.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"up"===L?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"})})}),(0,Xo.jsx)("button",{className:"cdp-vote-btn".concat("down"===L?" down":""),onClick:()=>ce("down"),disabled:D,children:(0,Xo.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"down"===L?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10zM17 2h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"})})})]})]})}),(Q.length>0||Z)&&(0,Xo.jsxs)("div",{className:"cdp-section cdp-section--music",children:[(0,Xo.jsx)("div",{className:"cdp-section-label cdp-section-label--music",children:(0,Xo.jsxs)("span",{className:"cdp-music-badge",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 18V5l12-2v13"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"16",r:"3"})]}),"Music to pair",Q.length>0&&J.mood?" \xb7 ".concat(J.mood):""]})}),0===Q.length?(0,Xo.jsx)("div",{className:"cdp-music-empty",children:Z}):(0,Xo.jsx)("div",{className:"cdp-music-row",children:Q.map(((e,t)=>{const{displayName:n,modifiers:r}=vH(e.trackName);return(0,Xo.jsxs)("div",{className:"cdp-music-card",children:[(0,Xo.jsxs)("div",{className:"cdp-music-meta",children:[(0,Xo.jsx)("div",{className:"cdp-music-name",children:n}),e.artist&&(0,Xo.jsx)("div",{className:"cdp-music-artist",children:e.artist}),r.length>0&&(0,Xo.jsx)("div",{className:"cdp-music-mods",children:r.map((e=>(0,Xo.jsx)("span",{className:"cdp-music-mod",children:e},e)))})]}),(0,Xo.jsxs)("div",{className:"cdp-music-links",children:[e.tiktokSoundUrl&&(0,Xo.jsx)("a",{href:e.tiktokSoundUrl,target:"_blank",rel:"noopener noreferrer",className:"cdp-music-link",children:"TikTok"}),e.spotifyUrl&&(0,Xo.jsx)("a",{href:e.spotifyUrl,target:"_blank",rel:"noopener noreferrer",className:"cdp-music-link",children:"Spotify"})]})]},e.trackId||t)}))})]}),(0,Xo.jsx)("div",{className:"cdp-spacer"}),(0,Xo.jsxs)("div",{className:"cdp-actions",children:[(0,Xo.jsxs)("div",{className:"cdp-btn-row-primary",children:[(0,Xo.jsxs)("button",{className:"cdp-btn-orange",onClick:()=>{K?null===c||void 0===c||c():R(!0)},children:[(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Publish Now"]}),(0,Xo.jsx)("button",{className:"cdp-btn-orange",onClick:async()=>
2{if(!E){j(!0),N(.2);try{const e=(Y||"clip-".concat(a+1)).replace(/[^a-zA-Z0-9-_ ]/g,"_")+".mp4",t=await ks.get("/clips/download-url",{params:{url:r.editedUrl||r.url,filename:Y||"clip-".concat(a+1)}}),n=document.createElement("a");n.href=t.data.url,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),N(1)}catch(K6){Vo.error("Download failed: ".concat(K6.message||"Unknown error"))}finally{j(!1),N(0)}}},disabled:E,children:E?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"cdp-spinner"}),Math.round(100*A),"%"]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Xo.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),f("common:download")]})})]}),(null===r||void 0===r?void 0:r.url)&&(null==r.overlays||r.overlays.length>0)&&(0,Xo.jsxs)("a",{className:"cdp-btn-edit",href:"/edit/".concat(null===i||void 0===i?void 0:i._id,"/").concat(a),onMouseEnter:()=>{const e=r.cleanUrl||r.url;if(e)try{fetch(e,{mode:"cors",credentials:"omit",priority:"low"}).catch((()=>{}))}catch(t){}},children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M12 20h9"}),(0,Xo.jsx)("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]}),"Edit clip"]}),(0,Xo.jsxs)("div",{className:"cdp-btn-row-secondary",children:[ee&&(0,Xo.jsxs)("a",{href:ee,target:"_blank",rel:"noopener noreferrer",className:"cdp-btn-link-small",children:[(0,Xo.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",children:[(0,Xo.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,Xo.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Xo.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),"Content link"]}),(0,Xo.jsxs)("button",{className:"cdp-btn-delete-small",onClick:()=>null===d||void 0===d?void 0:d(),children:[(0,Xo.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),f("common:delete")]})]})]})]}),P&&(0,Xo.jsx)(oH,{clip:r,clipJobId:i._id,clipIndex:a,onClose:()=>R(!1),onScheduled:()=>R(!1),initialAction:"schedule"})]}),document.body)},SH=["funMessagesModal.goForSwim","funMessagesModal.perfectTimeForCoffee","funMessagesModal.quickStretch","funMessagesModal.hydrationCheck","funMessagesModal.takeWalk","funMessagesModal.callSomeone","funMessagesModal.petYourPet","funMessagesModal.touchGrass","funMessagesModal.jumpingJacks","funMessagesModal.victoryDance","funMessagesModal.deepBreaths","funMessagesModal.timeToSnack"];const kH=e=>{let{job:t,videoTitle:n,onClose:r}=e;const{t:i}=Ae("clips"),[a,s]=(0,$.useState)(Date.now()),o=null===t||void 0===t?void 0:t._id,l=(null===t||void 0===t?void 0:t.progress)||0,c=null===t||void 0===t?void 0:t.status,d=null===t||void 0===t?void 0:t.createdAt,u=null===t||void 0===t?void 0:t.videoDuration,h=null===t||void 0===t?void 0:t.etaSeconds,p="queued"===c||"processing"===c;if((0,$.useEffect)((()=>{if(!p)return;const e=setInterval((()=>s(Date.now())),1e3);return()=>clearInterval(e)}),[p]),!t)return null;const m=(a-new Date(d).getTime())/6e4;let f=null;if("number"===typeof h&&h>=0)f=h/60;else if(u){f=14+Math.ceil(u/600)-m}const g=p?null===f?i("estimatingTime"):function(e,t){return e<=0?t("almostDone"):e<2?t("underTwoMinutes"):e<60?t("minutesRemaining",{count:Math.ceil(e)}):t("hoursMinutesRemaining",{hours:Math.floor(e/60),minutes:Math.ceil(e%60)})}(f,i):null,v=function(e,t,n){if(e>=100)return n("phaseDone");if(e>=56)return n("phaseRendering");if(e>=55)return n("phaseAnalyzing");if(e>=40){const e=n("phaseTranscribing");return t>3600?"".concat(e," ").concat(n("phaseTranscribingLong")):e}return n(e>=25?"phaseExtractingAudio":e>=15?"phaseDownloaded":"phaseDownloading")}(l,u||0,i);return(0,Xo.jsx)("div",{className:"job-modal-overlay",onClick:r,children:(0,Xo.jsxs)("div",{className:"job-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"job-modal-close",onClick:r,children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Xo.jsxs)("div",{className:"job-modal-header",children:[(0,Xo.jsx)("div",{className:"job-modal-icon",children:(0,Xo.jsx)("div",{className:"job-modal-spinner"})}),(0,Xo.jsx)("h3",{className:"job-modal-title",children:i("creatingYourClips")}),n&&(0,Xo.jsx)("p",{className:"job-modal-subtitle",children:n})]}),(0,Xo.jsxs)("div",{className:"job-modal-progress-section",children:[(0,Xo.jsx)("div",{className:"job-modal-progress-bar",children:(0,Xo.jsx)("div",{className:"job-modal-progress-fill",style:{width:"".concat(l,"%")}})}),(0,Xo.jsxs)("div",{className:"job-modal-progress-info",children:[(0,Xo.jsxs)("span",{className:"job-modal-percentage",children:[Math.round(l),"%"]}),g&&(0,Xo.jsxs)("span",{className:"job-modal-time-remaining",children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),g]})]})]}),p&&(0,Xo.jsxs)("div",{className:"job-modal-step",children:[(0,Xo.jsx)("span",{className:"job-modal-step-dot"}),v]}),(0,Xo.jsx)("div",{className:"job-modal-fun-message",children:(()=>
2{const e=o.charCodeAt(o.length-1)%SH.length;return i(SH[e])})()}),(0,Xo.jsxs)("div",{className:"job-modal-email-note",children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),(0,Xo.jsx)("polyline",{points:"22 4 12 13 2 4"})]}),i("wellEmailYouWhenReady")]})]})})},wH=[{id:"schedule",labelKey:"schedule"},{id:"publish",labelKey:"post"}],TH=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(\uFE0F|\u200D(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD]))*/g,CH=e=>{let{children:t,className:n,style:r}=e;if(!t)return null;const i=String(t),a=[];let s=0;const o=new RegExp(TH.source,TH.flags);let l;for(;null!==(l=o.exec(i));){l.index>s&&a.push(i.slice(s,l.index));const e=(c=l[0],[...c].map((e=>e.codePointAt(0))).filter((e=>65039!==e)).map((e=>e.toString(16))).join("-"));a.push((0,Xo.jsx)("img",{className:"twemoji",src:"".concat("https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/svg/").concat(e,".svg"),alt:l[0],draggable:!1},l.index)),s=l.index+l[0].length}var c;return s<i.length&&a.push(i.slice(s)),(0,Xo.jsx)("span",{className:n,style:r,children:a})},EH=e=>{var t;let{clip:n,index:r,clipJobId:i,userPlan:a,onUpgrade:s,vote:o,onVote:l,hookScore:c,isBestClip:d}=e;const{t:u}=Ae("clips"),h=!a||"none"===a,[p,m]=(0,$.useState)(!1),[f,g]=(0,$.useState)(!1),[v,b]=(0,$.useState)(null),[y,x]=(0,$.useState)(!1),[S,k]=(0,$.useState)(!1),[w,T]=(0,$.useState)("schedule"),[C,E]=(0,$.useState)(!1),[j,A]=(0,$.useState)(0),[N,P]=(0,$.useState)([]),[R,L]=(0,$.useState)(o||null),[I,D]=(0,$.useState)(!1),[O,M]=(0,$.useState)(!1),[_,F]=(0,$.useState)(!1),[B,U]=(0,$.useState)(!1),[z,G]=(0,$.useState)(!1),W=n.hook||"",H=n.editedUrl||n.url,V=(0,$.useRef)(null),K=(0,$.useRef)(null),q=(0,$.useRef)(null),Y=(0,$.useRef)(null),X=(0,$.useRef)(0),J=(0,$.useRef)(null),Q=(0,$.useRef)(null),Z=()=>{clearTimeout(J.current),J.current=setTimeout((()=>{const e=performance.now()-(X.current||0);V.current&&!V.current.paused&&e>400&&M(!0)}),250)};(0,$.useEffect)((()=>()=>{clearTimeout(J.current),clearTimeout(Q.current)}),[]),(0,$.useEffect)((()=>(O?Q.current=setTimeout((()=>F(!0)),3e3):(clearTimeout(Q.current),F(!1)),()=>clearTimeout(Q.current))),[O]),(0,$.useEffect)((()=>{const e=Y.current;if(!e)return;const t=new IntersectionObserver((e=>{let[n]=e;n.isIntersecting&&(G(!0),t.disconnect())}),{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()}),[]),(0,$.useEffect)((()=>{L(o||null)}),[o]);const ee=async e=>{if(I)return;D(!0);const t=R,n=R===e?null:e;L(n);try{n?await ks.post("/clips/feedback",{jobId:i,clipIndex:r,vote:n}):await ks.delete("/clips/feedback",{data:{jobId:i,clipIndex:r}}),null===l||void 0===l||l(r,n)}catch(K6){console.error("Vote failed:",K6),L(t)}finally{D(!1)}};(0,$.useEffect)((()=>{(async()=>
2{if(n.url)try{const e=await ks.get("/scheduled-posts/by-clip",{params:{clipUrl:n.url}});P(e.data.history||[])}catch(K6){console.log("Could not fetch posting history:",K6)}})()}),[n.url]);const te=(()=>{const e=[];for(const t of N)if("completed"===t.status||"partial"===t.status)for(const n of t.platforms)"posted"!==n.status||e.find((e=>e.name===n.name))||e.push({name:n.name,postUrl:n.postUrl,postedAt:n.postedAt});return e})();(0,$.useEffect)((()=>{const e=e=>{q.current&&!q.current.contains(e.target)&&k(!1)};return S&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[S]),(0,$.useEffect)((()=>{if(n.thumbnailUrl)return void b(n.thumbnailUrl);const e=K.current;if(!e)return;const t=()=>{try{if(0===e.videoWidth||0===e.videoHeight)return;const t=document.createElement("canvas");t.width=e.videoWidth,t.height=e.videoHeight;t.getContext("2d").drawImage(e,0,0,t.width,t.height);const n=t.toDataURL("image/jpeg",.8);n&&"data:,"!==n&&b(n)}catch(K6){console.log("Thumbnail generation skipped (CORS)")}},r=()=>{e.currentTime=.1},i=()=>{t()},a=()=>{v||t()},s=()=>{0===e.currentTime&&e.readyState>=2&&(e.currentTime=.1)};return e.addEventListener("loadedmetadata",r),e.addEventListener("seeked",i),e.addEventListener("loadeddata",a),e.addEventListener("canplay",s),e.load(),()=>{e.removeEventListener("loadedmetadata",r),e.removeEventListener("seeked",i),e.removeEventListener("loadeddata",a),e.removeEventListener("canplay",s)}}),[n.url,n.thumbnailUrl,v]);const ne=e=>{e&&(e.stopPropagation(),e.preventDefault());const t=V.current;t&&(t.paused?(t.play().catch((e=>console.error("Play failed:",e))),g(!1)):(t.pause(),g(!0)))};return(0,Xo.jsxs)("div",{className:"clip-card",ref:Y,children:[(0,Xo.jsx)("div",{className:"clip-card-media",children:p?(0,Xo.jsxs)("div",{className:"clip-card-video-container",children:[(0,Xo.jsx)("div",{className:"clip-card-video-inner",children:(0,Xo.jsx)("video",{ref:V,src:H,autoPlay:!0,loop:!0,playsInline:!0,className:"clip-card-video",controlsList:"nodownload nofullscreen noremoteplayback",disablePictureInPicture:!0,onContextMenu:e=>e.preventDefault(),onClick:ne,onPlay:()=>g(!1),onPause:()=>{g(!0),M(!1)},onPlaying:()=>M(!1),onCanPlay:()=>M(!1),onWaiting:Z,onStalled:Z,onTimeUpdate:()=>{var e;X.current=performance.now(),O&&(null===(e=V.current)||void 0===e?void 0:e.readyState)>=3&&M(!1)},onError:()=>{M(!1),U(!0)}})}),O&&!B&&(0,Xo.jsxs)("div",{className:"clip-card-buffering",children:[(0,Xo.jsx)("div",{className:"clip-card-buffering-spinner"}),_&&(0,Xo.jsx)("span",{className:"clip-card-buffering-label",children:u("slowConnection")})]}),B&&(0,Xo.jsxs)("div",{className:"clip-card-error-overlay",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.7)",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),(0,Xo.jsx)("span",{className:"clip-card-error-label",children:u("couldntLoad")}),(0,Xo.jsx)("button",{className:"clip-card-retry-btn",onClick:e=>{e.stopPropagation(),U(!1),M(!0);const t=V.current;t&&(t.load(),t.play().catch((()=>{})))},children:u("tapToRetry")})]}),(0,Xo.jsx)("div",{className:"clip-card-controls-overlay",style:{opacity:f?1:0,pointerEvents:f?"auto":"none"},children:(0,Xo.jsx)("button",{className:"clip-card-control-btn clip-card-play-pause-btn",onClick:ne,"aria-label":"Play",children:(0,Xo.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})})})]}):(0,Xo.jsxs)("div",{className:"clip-card-thumbnail",onClick:e=>{e&&(e.stopPropagation(),e.preventDefault()),m(!0),g(!1),M(!0),setTimeout((()=>{V.current&&V.current.play().catch((e=>{console.error("Play failed:",e),M(!1)}))}),50)},children:[(0,Xo.jsx)("div",{className:"clip-card-video-inner",children:z?(0,Xo.jsx)("video",{ref:K,src:H,muted:!0,playsInline:!0,preload:n.thumbnailUrl?"none":"metadata",poster:v||void 0,className:"clip-card-preview",style:{backgroundColor:"#18181b"}}):(0,Xo.jsx)("div",{className:"clip-card-preview",style:{backgroundColor:"#18181b"}})}),(0,Xo.jsx)("div",{className:"clip-card-play-overlay",children:(0,Xo.jsx)("div",{className:"clip-card-play-btn",children:(0,Xo.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"
2currentColor",children:(0,Xo.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})})})}),(0,Xo.jsx)("div",{className:"clip-card-duration",children:(e=>{if(!e)return"0:30";const t=Math.floor(e/60),n=Math.floor(e%60);return"".concat(t,":").concat(n.toString().padStart(2,"0"))})(n.duration)})]})}),(0,Xo.jsxs)("div",{className:"clip-card-content",children:[(0,Xo.jsx)("div",{className:"clip-card-title-row",children:(0,Xo.jsx)("h3",{className:"clip-card-title",children:(0,Xo.jsx)(CH,{children:W||u("clipDefaultTitle",{number:r+1})})})}),void 0!==c&&(0,Xo.jsxs)("div",{className:"clip-card-hook-score".concat(d?" best":""),children:[d&&(0,Xo.jsx)("span",{className:"clip-card-best-label",children:"Best"}),(0,Xo.jsx)("span",{className:"clip-card-score-value",children:c}),(0,Xo.jsx)("span",{className:"clip-card-score-label",children:"Hook Score"})]}),(0,Xo.jsxs)("div",{className:"clip-card-feedback",children:[(0,Xo.jsx)("button",{className:"clip-card-vote-btn ".concat("up"===R?"active up":""),onClick:e=>{e.stopPropagation(),ee("up")},disabled:I,title:u("goodClip"),children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"up"===R?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"})})}),(0,Xo.jsx)("button",{className:"clip-card-vote-btn ".concat("down"===R?"active down":""),onClick:e=>{e.stopPropagation(),ee("down")},disabled:I,title:u("badClip"),children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"down"===R?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10zM17 2h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"})})})]}),te.length>0&&(0,Xo.jsx)("div",{className:"clip-card-posted-badges",children:te.map((e=>(0,Xo.jsxs)("a",{href:e.postUrl,target:"_blank",rel:"noopener noreferrer",className:"clip-card-posted-badge ".concat(e.name),title:"Posted to ".concat(e.name).concat(e.postedAt?" on ".concat(new Date(e.postedAt).toLocaleDateString()):""),onClick:e=>e.stopPropagation(),children:["tiktok"===e.name&&(0,Xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})}),"youtube"===e.name&&(0,Xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),"instagram"===e.name&&(0,Xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"})}),(0,Xo.jsx)("span",{children:e.name}),(0,Xo.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.name)))}),(0,Xo.jsxs)("div",{className:"clip-card-actions",children:[(0,Xo.jsxs)("div",{className:"clip-card-post-wrapper",ref:q,children:[(0,Xo.jsx)("button",{onClick:e=>{e.stopPropagation(),x(!0)},className:"clip-card-post-btn",title:u("publish"===w?"post":"schedule"),children:u((null===(t=wH.find((e=>e.id===w)))||void 0===t?void 0:t.labelKey)||"post")}),(0,Xo.jsx)("button",{className:"clip-card-post-dropdown",onClick:e=>{e.stopPropagation(),h?null===s||void 0===s||s():k(!S)},title:u("moreOptions"),children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})}),S&&(0,Xo.jsx)("div",{className:"clip-card-post-menu",children:wH.map((e=>(0,Xo.jsxs)("button",{className:"clip-card-post-menu-item ".concat(w===e.id?"selected":""),onClick:t=>{t.stopPropagation(),T(e.id),k(!1)},children:[(0,Xo.jsx)("span",{children:u(e.labelKey)}),w===e.id&&(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.id)))})]}),(0,Xo.jsx)("button",{className:"clip-card-download-btn ".concat(C?"downloading":""),onClick:async e=>{if(e.stopPropagation(),!C){E(!0),A(.2);try{const e=(W||"clip-".concat(r+1)).replace(/[^a-zA-Z0-9-_ ]/g,"_")+".mp4",t=await ks.get("/clips/download-url",{params:{url:n.editedUrl||n.url,filename:W||"clip-".concat(r+1)}}),i=document.createElement("a");i.href=t.data.url,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),A(1)}catch(K6){console.error("[Download] FAILED:",K6.message),Vo.error("Download failed: ".concat(K6.message||"Unknown error"))}finally{E(!1),A(0)}}},disabled:C,title:u("downloadClip"),children:C?(0,Xo.jsxs)("div",{className:"clip-card-download-progress",children:[(0,Xo.jsxs)("svg",{className:"clip-card-download-ring",viewBox:"0 0 36 36",children:[(0,Xo.jsx)("circle",{cx:"18",cy:"18",r:"15",fill:"none",stroke:"rgba(255,255,255,0.1)",strokeWidth:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"18",r:"15",fill:"none",stroke:"#ff6a00",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"".concat(94.25*(j||0)," 94.25"),transform:"rotate(-90 18 18)"})]}),(0,Xo.jsx)("span",{className:"clip-card-download-pct",children:Math.round(100*(j||0))})]}):(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Xo.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})})]})]}),y&&(0,Ze.createPortal)((0,Xo.jsx)(oH,{clip:n,clipJobId:i,clipIndex:r,onClose:()=>x(!1),onScheduled:()=>x(!1),initialAction:w}),document.body)]})};function jH(){const e=(0,$.useRef)(null),[t,n]=(0,$.useState)(!0);return(0,$.useEffect)((()=>{const t=e.current;if(!t)return;const r=t.getContext("2d");t.width=window.innerWidth,t.height=window.innerHeight;const i=["#ff6a00","#ffaa00","#ff8533","#ffffff","#ffcc00"],a=Array.from({length:55},(()=>({x:Math.random()*t.width,y:-20-80*Math.random(),w:6+7*Math.random(),h:4+4*Math.random(),color:i[Math.floor(Math.random()*i.length)],vx:3*(Math.random()-.5),vy:2.5+3*Math.random(),angle:Math.random()*Math.PI*2,spin:.15*(Math.random()-.5),opacity:1})));let s,o=0;const l=()=>{r.clearRect(0,0,t.width,t.height),o++;let e=!1;for(const n of a)n.x+=n.vx,n.y+=n.vy,n.angle+=n.spin,o>45&&(n.opacity-=.018),n.y<t.height+30&&n.opacity>0&&(e=!0,r.save(),r.globalAlpha=Math.max(0,n.opacity),r.translate(n.x,n.y),r.rotate(n.angle),r.fillStyle=n.color,r.fillRect(-n.w/2,-n.h/2,n.w,n.h),r.restore(
2));e?s=requestAnimationFrame(l):n(!1)};return l(),()=>cancelAnimationFrame(s)}),[]),t?(0,Xo.jsx)("canvas",{ref:e,style:{position:"fixed",inset:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:99999}}):null}const AH=e=>{var t;let{job:n,videoTitle:r,onClose:i,userPlan:a,onUpgrade:s,onGenerateAnother:l}=e;const{t:c}=Ae("clips"),[d,u]=(0,$.useState)({}),[h,p]=(0,$.useState)(""),[m]=(0,$.useState)(!0);if((0,$.useEffect)((()=>{if(null===n||void 0===n||!n._id)return;(async()=>{try{const e=await ks.get("/clips/feedback/".concat(n._id));u(e.data.votes||{})}catch(K6){console.log("Could not fetch feedback:",K6)}})()}),[null===n||void 0===n?void 0:n._id]),!n||null===(t=n.clips)||void 0===t||!t.length)return null;const f=n.clips.map(((e,t)=>function(e,t){var n;const r=e._id?[...e._id].reduce(((e,t)=>e+t.charCodeAt(0)),0):73*(t+1),i=62+r%22,a=(null===(n=e.hook)||void 0===n?void 0:n.length)||0,s=a>=15&&a<=75?Math.min(10,Math.floor(a/7)):0,o=e.duration||0,l=o>=25&&o<=55?5:0;return Math.min(99,i+s+l)}(e,t))),g=Math.max(...f),v=f.indexOf(g),b=e=>e._id&&d[e._id]||null,y=(e,t)=>{const r=n.clips[e];null!==r&&void 0!==r&&r._id&&u((e=>{const n=o({},e);return t?n[r._id]=t:delete n[r._id],n}))};return(0,Xo.jsxs)(Xo.Fragment,{children:[m&&(0,Xo.jsx)(jH,{}),(0,Xo.jsx)("div",{className:"clips-modal-overlay",onClick:i,children:(0,Xo.jsxs)("div",{className:"clips-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"clips-modal-header",children:[(0,Xo.jsxs)("div",{className:"clips-modal-header-content",children:[(0,Xo.jsxs)("h3",{className:"clips-modal-title",children:[(0,Xo.jsx)("span",{className:"clips-modal-icon",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("polygon",{points:"23 7 16 12 23 17 23 7"}),(0,Xo.jsx)("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})]})}),c("yourClips")]}),r&&(0,Xo.jsx)("p",{className:"clips-modal-subtitle",children:r})]}),(0,Xo.jsx)("button",{className:"clips-modal-close",onClick:i,children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Xo.jsx)("div",{className:"clips-modal-count",children:(0,Xo.jsx)("span",{className:"clips-modal-count-badge",children:c("clipCount",{count:n.clips.length})})}),(0,Xo.jsx)("div",{className:"clips-modal-grid",children:n.clips.map(((e,t)=>(0,Xo.jsx)("div",{className:"clips-modal-card-wrapper",style:{animationDelay:"".concat(.12*t,"s")},children:(0,Xo.jsx)(EH,{clip:e,index:t,clipJobId:n._id,userPlan:a,onUpgrade:s,vote:b(e),onVote:y,hookScore:f[t],isBestClip:t===v&&n.clips.length>1})},t)))}),l&&(0,Xo.jsxs)("div",{className:"clips-modal-generate-another",children:[(0,Xo.jsx)("p",{className:"clips-modal-generate-label",children:"Generate from another video"}),(0,Xo.jsxs)("div",{className:"clips-modal-generate-row",children:[(0,Xo.jsx)("input",{type:"text",value:h,onChange:e=>p(e.target.value),onKeyDown:e=>{"Enter"===e.key&&h.trim()&&l(h.trim())},placeholder:"Paste a video URL...",className:"clips-modal-generate-input"}),(0,Xo.jsx)("button",{onClick:()=>{h.trim()&&l(h.trim())},disabled:!h.trim(),className:"clips-modal-generate-btn",children:"Generate"})]})]})]})})]})},NH=e=>{let{isOpen:t,onClose:n,onConfirm:r,isProcessing:i}=e;const{t:a}=Ae("clips"),[s,o]=(0,$.useState)(!1);if(!t)return null;return(0,Xo.jsx)("div",{className:"delete-modal-overlay",onClick:s?void 0:n,children:(0,Xo.jsxs)("div",{className:"delete-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("h3",{className:"delete-modal-title",children:a(i?"cancelThisJob":"deleteTheseAssets")}),(0,Xo.jsx)("p",{className:"delete-modal-description",children:a(i?"willStopProcessingRemoveJob":"cannotBeUndone")}),(0,Xo.jsxs)("div",{className:"delete-modal-actions",children:[(0,Xo.jsx)("button",{className:"delete-modal-btn cancel",onClick:n,disabled:s,children:a(i?"keepGoing":"noKeepThem")}),(0,Xo.jsx)("button",{className:"delete-modal-btn confirm",onClick:async()=>{o(!0);try{await r()}finally{o(!1)}},disabled:s,children:s?(0,Xo.jsx)("span",{className:"delete-modal-spinner"}):a(i?"yesCancelJob":"yesDeleteForever")})]})]})})},PH=e=>{let{isOpen:t,onClose:n}=e;const{t:r}=Ae("upgrade"),[i,a]=(0,$.useState)(!1),[s,l]=(0,$.useState)("monthly");if(!t)return null;
2const c="annual"===s,d=c?69:81,u=Math.round(.9*d*100)/100,h=r(c?"perMonthShort":"perMonth");return(0,Xo.jsx)("div",{className:"russell-modal-overlay",onClick:n,children:(0,Xo.jsxs)("div",{className:"russell-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"russell-modal-close",onClick:n,children:(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,Xo.jsx)("div",{className:"russell-modal-photo",children:(0,Xo.jsx)("img",{src:"/russell-brand.jpg",alt:"Russell Brand",onError:e=>{e.target.style.display="none",e.target.parentElement.classList.add("russell-modal-photo--fallback")}})}),(0,Xo.jsx)("div",{className:"russell-modal-badge",children:r("exclusiveOffer")}),(0,Xo.jsx)("h3",{className:"russell-modal-title",children:r("russellBrandsPick")}),(0,Xo.jsx)("p",{className:"russell-modal-subtitle",children:r("get10PercentOff")}),(0,Xo.jsxs)("div",{className:"russell-modal-toggle",children:[(0,Xo.jsx)("button",{className:"russell-modal-toggle-btn".concat(c?"":" active"),onClick:()=>l("monthly"),children:r("monthly")}),(0,Xo.jsxs)("button",{className:"russell-modal-toggle-btn".concat(c?" active":""),onClick:()=>l("annual"),children:[r("annual"),(0,Xo.jsx)("span",{className:"russell-modal-save-badge",children:r("save15Percent")})]})]}),(0,Xo.jsxs)("div",{className:"russell-modal-price",children:[(0,Xo.jsxs)("span",{className:"russell-modal-original",children:["$",d]}),(0,Xo.jsxs)("span",{className:"russell-modal-amount",children:["$",u]}),(0,Xo.jsx)("span",{className:"russell-modal-period",children:h})]}),(0,Xo.jsx)("p",{className:"russell-modal-discount-note",children:r("discountApplied")}),(0,Xo.jsxs)("ul",{className:"russell-modal-features",children:[(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),r("upload30Videos")]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),r("upTo2Hours")]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),r("generate300Clips")]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#22c55e",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})}),r("downloadAndSchedule")]})]}),(0,Xo.jsx)("button",{className:"russell-modal-btn",onClick:async()=>{a(!0);try{var e;const t=nA(),n=await ks.post("/billing/plan/checkout",o({interval:s,coupon:"RUSSELL"},t?{referral:t}:{}));null!==(e=n.data)&&void 0!==e&&e.url&&(window.location.href=n.data.url)}catch(K6){console.error("Checkout error:",K6),a(!1)}},disabled:i,children:i?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"russell-modal-spinner"}),r("redirecting")]}):r("claim10Off")}),(0,Xo.jsx)("button",{className:"russell-modal-dismiss",onClick:n,children:r("noThanksFullPrice")})]})})};function RH(e){let{isOpen:t,credits:n=150,onClose:r,onCta:i}=e;return t?(0,Xo.jsx)("div",{className:"own-welcome-overlay",onClick:r,children:(0,Xo.jsxs)("div",{className:"own-welcome-card",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"own-welcome-close",onClick:r,"aria-label":"Close",children:"\xd7"}),(0,Xo.jsx)("div",{className:"own-welcome-badge",children:"OWN \xd7 CLIPBAIT"}),(0,Xo.jsx)("div",{className:"own-welcome-gift",children:"\ud83c\udf81"}),(0,Xo.jsxs)("h2",{className:"own-welcome-title",children:[n," bonus credits, on us"]}),(0,Xo.jsxs)("p",{className:"own-welcome-sub",children:["Welcome from ",(0,Xo.jsx)("strong",{children:"OWN"}),". Go Pro and we'll drop"," ",(0,Xo.jsxs)("strong",{children:[n," bonus credits that never expire"]})," straight into your account. That's your first stream, on the house."]}),(0,Xo.jsx)("button",{className:"own-welcome-cta",onClick:i||r,children:"Go Pro & claim 150 credits"})]})}):null}const LH=[{id:"twitch",labelKey:"twitchStreamer",icon:"/twitch.png"},{id:"rumble",labelKey:"rumbleStreamer",icon:"/rumble.png"},{id:"youtube",labelKey:"youtubeStreamer",icon:"/youtube.png"},{id:"kick",labelKey:"kickStreamer",icon:"/kick.png"},{id:"x",labelKey:"xStreamer",icon:"/x.png"},{id:"ganjing",labelKey:"ganjingStreamer",icon:"/ganjing.png"},{id:"own",labelKey:"ownStreamer",icon:"/own.webp"}],IH=[{id:"twitch",labelKey:"twitchStreamer",icon:"/twitch.png"},{id:"rumble",labelKey:"rumbleStreamer",icon:"/rumble.png"},{id:"youtube",labelKey:"youtubeStreamer",icon:"/youtube.png"},{id:"kick",labelKey:"kickStreamer",icon:"/kick.png"},{id:"x",labelKey:"xStreamer",icon:"/x.png"},{id:"ganjing",labelKey:"ganjingStreamer",icon:"/ganjing.png"},{id:"own",labelKey:"ownStreamer",icon:"/own.webp"}],DH={gaming:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("rect",{x:"2",y:"6",width:"20",height:"12",rx:"4"}),(0,Xo.jsx)("line",{x1:"6",y1:"10",x2:"10",y2:"10"}),(0,Xo.jsx)("line",{x1:"8",y1:"8",x2:"8",y2:"12"}),(0,Xo.jsx)("circle",{cx:"15",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),(0,Xo.jsx)("circle",{cx:"18",cy:"11",r:"1",fill:"currentColor",stroke:"none"})]}),talking_head:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),(0,Xo.jsx)("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),(0,Xo.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"22"})]}),irl:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),(0,Xo.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),music:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 18V5l12-2v13"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"16",r:"3"})]})},OH=[{id:"gaming",labelKey:"streamTypeGaming",descKey:"streamTypeGamingDesc"},{id:"talking_head",labelKey:"streamTypeTalkingHead",descKey:"streamTypeTalkingHeadDesc"},{id:"irl",labelKey:"streamTypeIRL",descKey:"streamTypeIRLDesc"},{id:"music",labelKey:"streamTypeMusic",descKey:"streamTypeMusicDesc"}],MH=[{id:"twitter",label:"X / Twitter"},{id:"youtube",label:"YouTube"},{id:"tiktok",label:"TikTok"},{id:"instagram",label:"Instagram"},{id:"google",label:"Google Search"},{id:"friend",label:"Friend / Word of mouth"},{id:"other",label:"Other"}],_H=e=>{let{onComplete:t}=e;const{t:n}=Ae("onboarding"),[r,i]=(0,$.useState)(0),[a,s]=(0,$.useState)(null),[o,l]=(0,$.useState)(""),[c,d]=(0,$.useState)(""),[u,h]=(0,$.useState)(""),[p,m]=(0,$.useState)(""),[f,g]=(0,$.useState)(null),[v,b]=(0,$.useState)(null),[y,x]=(0,$.useState)(!1),[S,k]=(0,$.useState)(null),[w,T]=(0,$.useState)({}),[C,E]=(0,$.useState)(null),[j,A]=(0,$.useState)(""),[N,P]=(0,$.useState)(!1),[R,L]=(0,$.useState)(""),[I,D]=(0,$.useState)(!1),O
2=(0,$.useRef)(null);(0,$.useEffect)((()=>{if(0===r)return;const e=1===r?n("questionUserType"):2===r?n("clipper"===a?"questionStreamerNameClipper":"questionStreamerNameStreamer"):3===r?n("clipper"===a?"questionChannelUsernameClipper":"questionChannelUsernameStreamer"):4===r?n("clipper"===a?"questionPlatformClipper":"questionPlatformStreamer"):5===r?n("questionStreamType"):6===r?n("questionUploadPicture"):7===r?n("clipper"===a?"questionOpportunitiesClipper":"questionOpportunitiesStreamer"):8===r?n("questionFoundUs","How did you find Clipbait?"):"";L(""),D(!0);let t=0;const i=setInterval((()=>{t<e.length?(L(e.slice(0,t+1)),t++):(D(!1),clearInterval(i))}),30);return()=>clearInterval(i)}),[r,a]);const M=e=>{s(e),i(2)},_=()=>{o.trim()&&i(3)},F=()=>{c.trim()&&i(4)},B=e=>{k(e),i(8)};(0,$.useEffect)((()=>{const e=sessionStorage.getItem("onboarding_state");if(e)try{const t=JSON.parse(e);i(t.step),s(t.userType),l(t.streamerName||""),d(t.channelUsername),h(t.platform),m(t.streamType||""),k(t.wantsOpportunities)}catch(Ps){}}),[]);const U=e=>{"Enter"===e.key&&(2===r&&_(),3===r&&c.trim()&&F())};return 0===r?(0,Xo.jsx)("div",{className:"onboarding",children:(0,Xo.jsx)("div",{className:"onboarding-container",children:(0,Xo.jsxs)("div",{className:"onboarding-intro",children:[(0,Xo.jsx)("img",{src:"/favicon.png",alt:"Clipbait",className:"onboarding-logo"}),(0,Xo.jsx)("h1",{className:"onboarding-title",children:n("title")}),(0,Xo.jsx)("p",{className:"onboarding-subtitle",children:n("subtitle")}),(0,Xo.jsxs)("div",{className:"onboarding-facts",children:[(0,Xo.jsx)("p",{className:"onboarding-fact-header",children:n("factHeader")}),(0,Xo.jsxs)("div",{className:"onboarding-fact",children:[(0,Xo.jsx)("span",{className:"onboarding-fact-icon"}),(0,Xo.jsx)("span",{children:n("fact1")})]}),(0,Xo.jsxs)("div",{className:"onboarding-fact",children:[(0,Xo.jsx)("span",{className:"onboarding-fact-icon"}),(0,Xo.jsx)("span",{children:n("fact2")})]})]}),(0,Xo.jsx)("button",{className:"onboarding-start-btn",onClick:()=>i(1),children:n("letsGetStarted")})]})})}):(0,Xo.jsx)("div",{className:"onboarding",children:(0,Xo.jsx)("div",{className:"onboarding-container",children:(0,Xo.jsxs)("div",{className:"onboarding-question-wrapper",children:[(0,Xo.jsxs)("div",{className:"onboarding-question-row",children:[(0,Xo.jsx)("img",{src:"/favicon.png",alt:"",className:"onboarding-question-logo"}),(0,Xo.jsxs)("h2",{className:"onboarding-question",children:[R,I&&(0,Xo.jsx)("span",{className:"onboarding-cursor",children:"|"})]})]}),1===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-options fade-in",children:[(0,Xo.jsx)("button",{className:"onboarding-option-btn",onClick:()=>M("clipper"),children:n("imAClipper")}),(0,Xo.jsx)("button",{className:"onboarding-option-btn",onClick:()=>M("streamer"),children:n("imAStreamer")})]}),2===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-input-group fade-in",children:[(0,Xo.jsx)("input",{type:"text",className:"onboarding-input",placeholder:n("clipper"===a?"placeholderStreamerNameClipper":"placeholderStreamerNameStreamer"),value:o,onChange:e=>l(e.target.value),onKeyPress:U,autoFocus:!0}),(0,Xo.jsx)("span",{className:"onboarding-input-hint",children:n("streamerNameHint")}),(0,Xo.jsx)("button",{className:"onboarding-next-btn",onClick:_,disabled:!o.trim(),children:n("common:continue")})]}),3===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-input-group fade-in",children:[(0,Xo.jsx)("input",{type:"text",className:"onboarding-input",placeholder:n("clipper"===a?"placeholderChannelUsernameClipper":"placeholderChannelUsernameStreamer"),value:c,onChange:e=>d(e.target.value.replace(/[@\s]/g,"")),onKeyPress:U,autoFocus:!0}),(0,Xo.jsx)("button",{className:"onboarding-next-btn",onClick:F,disabled:!c.trim(),children:n("common:continue")})]}),4===r&&!I&&(0,Xo.jsx)("div",{className:"onboarding-options fade-in",children:("clipper"===a?IH:LH).map((e=>(0,Xo.jsxs)("button",{className:"onboarding-option-btn",onClick:()=>{return t=e.id,h(t),void i(5);var t},children:[(0,Xo.jsx)("img",{src:e.icon,alt:"",className:"onboarding-option-icon"}),n(e.labelKey)]},e.id)))}),5===r&&!I&&(0,Xo.jsx)("div",{className:"onboarding-options fade-in",children:OH.map((e=>(0,Xo.jsxs)("button",{className:"onboarding-option-btn",onClick:()=>{return t=e.id,m(t),void i(6);var t},children:[(0,Xo.jsx)("span",{style:{marginRight:8,display:"flex",alignItems:"center"},children:DH[e.id]}),(0,Xo.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"left"},children:[(0,Xo.jsx)("span",{children:n(e.labelKey)}),(0,Xo.jsx)("span",{style:{fontSize:12,color:"#888",fontWeight:400},children:n(e.descKey)})]})]},e.id)))}),6===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-upload-group fade-in",children:[(0,Xo.jsx)("p",{className:"onboarding-hint-text",children:n("profilePictureHint")}),(0,Xo.jsx)("input",{ref:O,type:"file",accept:"image/*",onChange:async e=>{const t=e.target.files[0];if(!t)return;g(t);const n=new FileReader;n.onloadend=()=>{b(n.result)},n.readAsDataURL(t),x(!0);try{const e=new FormData;e.append("profilePicture",t),await ks.post("/users/me/profile-picture",e,{headers:{"Content-Type":"multipart/form-data"}})}catch(K6){console.error("Failed to upload profile picture:",K6)}finally{x(!1)}},className:"onboarding-file-input"}),(0,Xo.jsx)("div",{className:"onboarding-avatar-upload",onClick:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.click()},children:v?(0,Xo.jsx)("img",{src:v,alt:"Profile preview",className:"onboarding-avatar-preview"}):(0,Xo.jsxs)("div",{className:"onboarding-avatar-placeholder",children:[(0,Xo.jsx)("span",{className:"onboarding-avatar-icon",children:"+"}),(0,Xo.jsx)("span",{className:"onboarding-avatar-text",children:n("choosePhoto")})]})}),(0,Xo.jsx)("div",{className:"onboarding-upload-actions",children:(0,Xo.jsx)("button",{className:"onboarding-next-btn",onClick:()=>{i(7)},disabled:y||!f,children:n(y?"uploading":f?"common:continue":"choosePhoto")})})]}),7===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-options fade-in",children:[(0,Xo.jsx)("button",{className:"onboarding-option-btn primary",onClick:()=>B(!0),children:n("yesInterested")}),(0,Xo.jsx)("button",{className:"onboarding-option-btn secondary",onClick:()=>B(!1),children:n("notRightNow")})]}),8===r&&!I&&(0,Xo.jsxs)("div",{className:"onboarding-options fade-in",children:[MH.map((e=>(0,Xo.jsx)("button",{className:"onboarding-option-btn ".concat(C===e.id?"primary":"secondary"),onClick:()=>E(e.id),children:e.label},e.id))),"other"===C&&(0,Xo.jsx)("input",{className:"onboarding-input",type:"text",value:j,onChange:e=>A(e.target.value),placeholder:"Tell us where (at least ".concat(3," characters)"),maxLength:100,autoFocus:!0}),(0,Xo.jsx)("button",{className:"onboarding-next-btn",onClick:()=>(async e=>{P(!0);try{const n=localStorage.getItem("referral_via")||"",r=await ks.post("/users/me/onboarding",{userType:a,streamerName:o.trim(),channelUsername:c.trim(),platform:u,streamType:p,wantsOpportunities:void 0!==e?e:S,foundVia:C||null,foundViaOther:"other"===C?j.trim():"",referralSource:n});sessionStorage.removeItem("onboarding_state"),n&&localStorage.removeItem("referral_via"),null===t||void 0===t||t(r.data)}catch(K6){console.error("Failed to save onboarding:",K6),null===t||void 0===t||t()}finally{P(!1)}})(),disabled:N||!C||"other"===C&&j.trim().length<3,children:N?n("saving","Saving\u2026"):n("common:continue")})]}),(0,Xo.jsx)("div",{className:"onboarding-progress",children:Array.from({length:8},((e,t)=>t+1)).map((e=>(0,Xo.jsx)("div",{className:"onboarding-dot ".concat(r>=e?"active":"")},e)))})]})})})};function FH(e){const t=Math.max(0,Math.floor(e||0)),n=Math.floor(t/3600),r=M
2ath.floor(t%3600/60),i=t%60;return"".concat(n,":").concat(String(r).padStart(2,"0"),":").concat(String(i).padStart(2,"0"))}function BH(){return(0,Xo.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"6",cy:"6",r:"3"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),(0,Xo.jsx)("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),(0,Xo.jsx)("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}function UH(e){var t,n;let{loading:r,duration:i,start:a,end:s,onChange:o}=e;const l=(0,$.useRef)(null),c=(0,$.useRef)(null);if(r)return(0,Xo.jsxs)("div",{className:"mkc-detecting",children:[(0,Xo.jsx)("span",{className:"mkc-detecting-ic",children:(0,Xo.jsx)(BH,{})}),(0,Xo.jsx)("span",{className:"mkc-detecting-label",children:"Detecting length\u2026"}),(0,Xo.jsx)("span",{className:"mkc-detecting-spin"})]});if(!(Number.isFinite(i)&&i>0))return null;const d=Math.max(0,null!==a&&void 0!==a?a:0),u=Math.min(i,null!==s&&void 0!==s?s:i),h=e=>t=>{t.preventDefault();try{t.currentTarget.setPointerCapture(t.pointerId)}catch(vo){}c.current=e},p=e=>{if(!c.current)return;const t=(e=>{var t;const n=null===(t=l.current)||void 0===t?void 0:t.getBoundingClientRect();if(!n||!n.width)return 0;const r=Math.min(1,Math.max(0,(e-n.left)/n.width));return Math.round(r*i)})(e.clientX);"start"===c.current?o(Math.max(0,Math.min(t,u-60)),u):o(d,Math.min(i,Math.max(t,d+60)))},m=e=>{c.current=null;try{e.currentTarget.releasePointerCapture(e.pointerId)}catch(vo){}},f=e=>"".concat(e/i*100,"%"),g=[{label:"Full",end:i},{label:"First 15m",end:Math.min(900,i)},{label:"First 30m",end:Math.min(1800,i)},{label:"First 1h",end:Math.min(3600,i)}],v=0!==d?null:u===i?"Full":null!==(t=null===(n=g.find((e=>"Full"!==e.label&&e.end===u)))||void 0===n?void 0:n.label)&&void 0!==t?t:null;return(0,Xo.jsxs)("div",{className:"mkc-cl",children:[(0,Xo.jsxs)("div",{className:"mkc-cl-head",children:[(0,Xo.jsx)("span",{className:"mkc-cl-head-ic",children:(0,Xo.jsx)(BH,{})}),(0,Xo.jsx)("span",{className:"mkc-cl-head-label",children:"CLIP LENGTH"})]}),(0,Xo.jsxs)("div",{className:"mkc-cl-slider",children:[(0,Xo.jsx)("div",{className:"mkc-cl-track",ref:l,children:(0,Xo.jsx)("div",{className:"mkc-cl-fill",style:{left:f(d),width:f(u-d)}})}),(0,Xo.jsx)("div",{className:"mkc-cl-handle",style:{left:f(d)},onPointerDown:h("start"),onPointerMove:p,onPointerUp:m,onPointerCancel:m,role:"slider","aria-label":"Clip start","aria-valuenow":Math.round(d)}),(0,Xo.jsx)("div",{className:"mkc-cl-handle",style:{left:f(u)},onPointerDown:h("end"),onPointerMove:p,onPointerUp:m,onPointerCancel:m,role:"slider","aria-label":"Clip end","aria-valuenow":Math.round(u)})]}),(0,Xo.jsxs)("div",{className:"mkc-cl-times",children:[(0,Xo.jsx)("span",{children:FH(d)}),(0,Xo.jsxs)("span",{className:"mkc-cl-times-of",children:["of ",FH(i)]}),(0,Xo.jsx)("span",{children:FH(u)})]}),(0,Xo.jsx)("div",{className:"mkc-cl-presets",children:g.map((e=>(0,Xo.jsx)("button",{type:"button",className:"mkc-chip".concat(v===e.label?" on":""),onClick:()=>o(0,e.end),children:e.label},e.label)))})]})}const zH=["youtube.com","www.youtube.com","m.youtube.com","youtu.be"];function GH(e){const t=Math.floor(e||0),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?"".concat(n,":").concat(String(r).padStart(2,"0"),":").concat(String(i).padStart(2,"0")):"".concat(r,":").concat(String(i).padStart(2,"0"))}function WH(e,t){if(!e)return null;const n=Math.floor(t||0),r=function(e){if(!e)return null;try{const t=new URL(e);if(!zH.includes(t.hostname))return null;if("youtu.be"===t.hostname)return t.pathname.replace(/^\//,"").split("/")[0]||null;const n=t.searchParams.get("v");if(n)return n;const r=t.pathname.match(/^\/(?:embed|shorts|live|v)\/([^/?#]+)/);return r?r[1]:null}catch(vo){return null}}(e);return r?"https://www.youtube.com/watch?v=".concat(r,"&t=").concat(n,"s"):e}function HH(e){if(!e)return"";const t=String(e).trim(),n=t.lastIndexOf("@");if(n>=0)return t.slice(n+1).split(/[\s/?#]/)[0];const r=t.lastIndexOf("/");return r>=0?t.slice(r+1).split(/[\s?#]/)[0]:t}const VH=new Set(["the","and","but","for","with","that","this","from","have","has","had","been","were","was","when","what","just","like","going","gonna","because","about","they","them","their","there","then","than","some","into","over","your","you","our","ours","its","it's","i'm","i've","i'll","don't","didn't","won't","cant","can't","also","much","very","really","said","says","saying","get","got","make","made","one","two","why","how","who","are","not","yes","no","all","any","off","out","up","down","came","come","created","create","made","make","do","did","does","does","an","a","of","to","in","on","at","is","be","or","so","if","as","my","we","he","she","him","her","us"]);function KH(e){const t=((null===e||void 0===e?void 0:e.hookLine)||(null===e||void 0===e?void 0:e.hook)||"").trim();return t?t.replace(/[""''""'']/g,"").split(/[\s\-\u2014\u2013.,!?:;()]+/).filter((e=>e.length>2&&!VH.has(e.toLowerCase()))).slice(0,3).join(" ").toUpperCase():""}function qH(e){var t,n,r,i,a,s,o,l,c,d;let{clip:u,index:h,job:p,catalog:m=[],open:f,onClose:g,onDelete:v,onPrev:b,onNext:y,hasPrev:x=!1,hasNext:S=!1}=e;const k=u;(0,$.useEffect)((()=>
2{if(!f)return;const e=document.body.style.overflow;document.body.style.overflow="hidden";const t=e=>{"Escape"===e.key?null===g||void 0===g||g():"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||!x?"ArrowRight"!==e.key&&"ArrowDown"!==e.key||!S||(e.preventDefault(),null===y||void 0===y||y()):(e.preventDefault(),null===b||void 0===b||b())};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}}),[f,g,b,y,x,S]);const w=(0,$.useMemo)((()=>{const{tracks:e,mood:t,source:n}=fH(m,k,5);return{tracks:bH(e),mood:t,source:n}}),[m,k]),T=(0,$.useRef)(null),C=(0,$.useRef)({x:0,y:0,t:0,scrollTop:0});if(!f)return null;const E=null!==(t=null!==(n=null===k||void 0===k?void 0:k.start_sec)&&void 0!==n?n:null===k||void 0===k?void 0:k.start)&&void 0!==t?t:0,j=null!==(r=null!==(i=null===k||void 0===k?void 0:k.end_sec)&&void 0!==i?i:null===k||void 0===k?void 0:k.end)&&void 0!==r?r:0,A=WH(null===p||void 0===p?void 0:p.videoUrl,E),N=null!==(a=null===k||void 0===k?void 0:k.hookSec)&&void 0!==a?a:E,P=null===k||void 0===k?void 0:k.retentionSec,R=null===k||void 0===k?void 0:k.payoffSec,L=null!==(s=null!==(o=null===k||void 0===k?void 0:k.hookEndSec)&&void 0!==o?o:P)&&void 0!==s?s:Math.min(N+3,j||N+3),I=null!==(l=null!==(c=null===k||void 0===k?void 0:k.retentionEndSec)&&void 0!==c?c:R)&&void 0!==l?l:j,D=null!==(d=null===k||void 0===k?void 0:k.payoffEndSec)&&void 0!==d?d:j,O=(null===p||void 0===p?void 0:p.videoThumbnail)||null,M=HH((null===p||void 0===p?void 0:p.streamerName)||(null===p||void 0===p?void 0:p.videoAuthor)||""),_=w.tracks,F=w.mood,B=(()=>{switch(w.source){case"no-spec":return"This clip is missing musicTarget \u2014 regenerate it to get vibe-matched music.";case"no-data":return"No catalog tracks have audio features yet \u2014 run the backfill script to enable matching.";case"no-pool":return"No catalog tracks tagged with this clip's inferred mood.";case"empty":return"Catalog is loading\u2026";default:return""}})();return(0,Ze.createPortal)((0,Xo.jsxs)("div",{className:"ccp-overlay",ref:T,onClick:g,onTouchStart:e=>{var t,n;const r=e.touches[0];C.current={x:r.clientX,y:r.clientY,t:Date.now(),scrollTop:null!==(t=null===(n=T.current)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:0}},onTouchEnd:e=>{var t,n;const r=e.changedTouches[0],i=r.clientX-C.current.x,a=r.clientY-C.current.y,s=Date.now()-C.current.t,o=Math.abs((null!==(t=null===(n=T.current)||void 0===n?void 0:n.scrollTop)&&void 0!==t?t:0)-C.current.scrollTop);s>600||o>4||Math.abs(a)>70&&Math.abs(a)>1.4*Math.abs(i)&&(a<0&&S?null===y||void 0===y||y():a>0&&x&&(null===b||void 0===b||b()))},children:[(0,Xo.jsx)("button",{className:"ccp-float-close",onClick:e=>{e.stopPropagation(),null===g||void 0===g||g()},"aria-label":"Close",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(x||S)&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("button",{type:"button",className:"ccp-nav ccp-nav--prev",onClick:e=>{e.stopPropagation(),null===b||void 0===b||b()},disabled:!x,"aria-label":"Previous clip",children:(0,Xo.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,Xo.jsx)("button",{type:"button",className:"ccp-nav ccp-nav--next",onClick:e=>{e.stopPropagation(),null===y||void 0===y||y()},disabled:!S,"aria-label":"Next clip",children:(0,Xo.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]}),(0,Xo.jsx)("main",{className:"ccp-main",onClick:e=>e.stopPropagation(),children:(0,Xo.jsxs)("div",{className:"ccp-main-inner",children:[O&&(0,Xo.jsx)("div",{className:"ccp-cover",children:(0,Xo.jsx)("img",{src:O,alt:M,className:"ccp-cover-img"})}),(0,Xo.jsxs)("header",{className:"ccp-header",children:[(0,Xo.jsx)("img",{src:"/favicon.png",alt:"",className:"ccp-fish"}),(0,Xo.jsx)("div",{className:"ccp-header-text",children:(0,Xo.jsxs)("div",{className:"ccp-header-title",children:[(M||"Clip").toUpperCase()," CLIP ",(null!==h&&void 0!==h?h:0)+1,(()=>{const e=KH(k);return e?" ".concat(e):""})()]})})]}),(null===k||void 0===k?void 0:k.url)&&(0,Xo.jsx)("video",{src:k.url,controls:!0,playsInl
2ine:!0,className:"ccp-rendered-video"}),((null===k||void 0===k?void 0:k.hookLine)||(null===k||void 0===k?void 0:k.hook))&&(0,Xo.jsxs)("section",{className:"ccp-layer",children:[(0,Xo.jsxs)("div",{className:"ccp-layer-head",children:[(0,Xo.jsx)("span",{className:"ccp-layer-label",children:"Hook"}),(0,Xo.jsxs)("span",{className:"ccp-layer-tc",children:["[",GH(N),"] \u2014 [",GH(L),"]"]})]}),(0,Xo.jsxs)("div",{className:"ccp-layer-quote",children:['"',k.hookLine||k.hook,'"']})]}),(null===k||void 0===k?void 0:k.retentionLine)&&(0,Xo.jsxs)("section",{className:"ccp-layer",children:[(0,Xo.jsxs)("div",{className:"ccp-layer-head",children:[(0,Xo.jsx)("span",{className:"ccp-layer-label",children:"Retention \xb7 the bridge"}),null!=P&&(0,Xo.jsxs)("span",{className:"ccp-layer-tc",children:["[",GH(P),"] \u2014 [",GH(I),"]"]})]}),(0,Xo.jsxs)("div",{className:"ccp-layer-quote",children:['"',k.retentionLine,'"']})]}),(null===k||void 0===k?void 0:k.payoffLine)&&(0,Xo.jsxs)("section",{className:"ccp-layer ccp-layer--payoff",children:[(0,Xo.jsxs)("div",{className:"ccp-layer-head",children:[(0,Xo.jsx)("span",{className:"ccp-layer-label ccp-layer-label--payoff",children:"Payoff \xb7 final 10s"}),null!=R&&(0,Xo.jsxs)("span",{className:"ccp-layer-tc",children:["[",GH(R),"] \u2014 [",GH(D),"]"]})]}),(0,Xo.jsxs)("div",{className:"ccp-layer-quote ccp-layer-quote--payoff",children:['"',k.payoffLine,'"']})]}),!(null!==k&&void 0!==k&&k.hookLine)&&!(null!==k&&void 0!==k&&k.hook)&&!(null!==k&&void 0!==k&&k.retentionLine)&&!(null!==k&&void 0!==k&&k.payoffLine)&&(0,Xo.jsx)("section",{className:"ccp-empty-brief",children:"This moment was generated before the editor-brief upgrade. Re-run the clip in ClipFinder to get hook / retention / payoff cards."})]},h)}),(0,Xo.jsxs)("aside",{className:"ccp-sidebar",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"ccp-sidebar-grip","aria-hidden":"true",children:(0,Xo.jsx)("span",{className:"ccp-sidebar-grip-pill"})}),(0,Xo.jsxs)("div",{className:"ccp-section",children:[(0,Xo.jsx)("div",{className:"ccp-label",children:"Information"}),(0,Xo.jsxs)("div",{className:"ccp-info-list",children:[(null===p||void 0===p?void 0:p.platform)&&(0,Xo.jsxs)("div",{className:"ccp-info-row",children:[(0,Xo.jsx)("span",{className:"ccp-info-key",children:"Platform"}),(0,Xo.jsx)("span",{className:"ccp-info-val",children:String(p.platform).replace(/^./,(e=>e.toUpperCase()))})]}),M&&(0,Xo.jsxs)("div",{className:"ccp-info-row",children:[(0,Xo.jsx)("span",{className:"ccp-info-key",children:"Creator"}),(0,Xo.jsx)("span",{className:"ccp-info-val",children:M})]})]})]}),(null===k||void 0===k?void 0:k.caption)&&(0,Xo.jsxs)("div",{className:"ccp-section",children:[(0,Xo.jsxs)("div",{className:"ccp-caption-head",children:[(0,Xo.jsxs)("span",{className:"ccp-caption-badge",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 12l2 2 4-4"}),(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"})]}),"AI caption"]}),(0,Xo.jsxs)("button",{type:"button",className:"ccp-caption-copy",onClick:async()=>{try{await navigator.clipboard.writeText(k.caption),Vo.success("Caption copied!")}catch(e){Vo.error("Couldn't copy \u2014 copy it manually")}},"aria-label":"Copy caption to clipboard",children:[(0,Xo.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,Xo.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})]}),(0,Xo.jsx)("div",{className:"ccp-caption-body",children:k.caption})]}),0===_.length&&B&&(0,Xo.jsxs)("div",{className:"ccp-section",children:[(0,Xo.jsx)("div",{className:"ccp-music-head",children:(0,Xo.jsxs)("span",{className:"ccp-music-badge",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 18V5l12-2v13"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"16",r:"3"})]}),"Music to pair"]})}),(0,Xo.jsx)("div",{className:"ccp-music-empty",children:B})]}),_.length>0&&(0,Xo.jsxs)("div",{className:"ccp-section",children:[(0,Xo.jsx)("div",{className:"ccp-music-head",children:(0,Xo.jsxs)("span",{className:"ccp-music-badge",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 18V5l12-2v13"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"16",r:"3"})]}),"Music to pair",F?" \xb7 ".concat(F):""]})}),(0,Xo.jsx)("div",{className:"ccp-music-row",children:_.map(((e,t)=>{const{displayName:n,modifiers:r}=vH(e.trackName);return(0,Xo.jsxs)("div",{className:"ccp-music-card",children:[(0,Xo.jsxs)("div",{className:"ccp-music-meta",children:[(0,Xo.jsx)("div",{className:"ccp-music-name",children:n}),e.artist&&(0,Xo.jsx)("div",{className:"ccp-music-artist",children:e.artist}),r.length>0&&(0,Xo.jsx)("div",{className:"ccp-music-mods",children:r.map((e=>(0,Xo.jsx)("span",{className:"ccp-music-mod",children:e},e)))})]}),(0,Xo.jsxs)("div",{className:"ccp-music-links",children:[e.tiktokSoundUrl&&(0,Xo.jsx)("a",{href:e.tiktokSoundUrl,target:"_blank",rel:"noopener noreferrer",className:"ccp-music-link",children:"TikTok"}),e.spotifyUrl&&(0,Xo.jsx)("a",{href:e.spotifyUrl,target:"_blank",rel:"noopener noreferrer",className:"ccp-music-link",children:"Spotify"})]})]},e.trackId||t)}))})]}),(0,Xo.jsx)("div",{className:"ccp-spacer"}),(0,Xo.jsxs)("div",{className:"ccp-actions",children:[A&&(0,Xo.jsxs)("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"ccp-btn-orange",children:[(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,Xo.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,Xo.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),"Content link"]}),v&&(0,Xo.jsxs)("button",{type:"button",className:"ccp-btn-delete-small",onClick:()=>{v&&window.confirm("Delete this moment?")&&(v({stopPropagation:()=>{}}),S?null===y||void 0===y||y():x?null===b||void 0===b||b():null===g||void 0===g||g())},children:[(0,Xo.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),"Delete"]})]})]})]}),document.body)}function YH(e){let{clip:t,index:n,job:r,isSelected:i=!1,isLiked:a=!1,onOpen:s,onToggleSelect:o,onToggleLike:l,onDelete:c}=e;const[d,u]=(0,$.useState)(!1),h=null!==r&&void 0!==r&&r.videoThumbnail&&!d?r.videoThumbnail:null,p=HH((null===r||void 0===r?void 0:r.streamerName)||(null===r||void 0===r?void 0:r.videoAuthor)||""),m=(p||"C").trim().charAt(0).toUpperCase(),f=KH(t),g="".concat((p||"CLIP").toUpperCase()," CLIP ").concat((null!==n&&void 0!==n?n:0)+1).concat(f?" ".concat(f):""),v=()=>null===s||void 0===s?void 0:s(t,r,n);return(0,Xo.jsxs)("div",{className:"moment-card moment-card--clickable".concat(i?" moment-card--selected":""),onClick:v,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&v()},children:[(0,Xo.jsxs)("div",{className:"moment-card-cover",children:[h?(0,Xo.jsx)("img",{src:h,alt:p,className:"moment-card-cover-img",draggable:!1,onError:()=>u(!0)}):(0,Xo.jsx)("div",{className:"moment-card-cover-fallback","aria-hidden":"true",children:(0,Xo.jsx)("span",{className:"moment-card-cover-initial",children:m})}),(0,Xo.jsxs)("div",{className:"moment-card-actions",onClick:e=>e.stopPropagation(),children:[o&&(0,Xo.jsx)("button",{type:"button",className:"moment-card-action moment-card-action--check".concat(i?" on":""),onClick:e=>{e.stopPropagation(),o(e)},title:i?"Deselect":"Select","aria-label":"Select moment",children:i&&(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),l&&(0,Xo.jsx)("button",{type:"button",className:"moment-card-action".concat(a?" moment-card-action--liked":""),onClick:e=>{e.stopPropagation(),l(e)},title:a?"Unlike":"Like","aria-label":"Like moment",children:(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:a?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),c&&(0,Xo.jsx)("button",{type:"button",className:"moment-card-action moment-card-action--delete",onClick:e=>{e.stopPropagation(),c(e)},title:"Delete moment","aria-label":"Delete moment",children:(0,Xo.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]})]}),(0,Xo.jsx)("div",{className:"moment-card-meta",children:(0,Xo.jsx)("p",{className:"moment-card-title",children:g})})]})}function XH(e){if(null==e||!Number.isFinite(e))return null;const t=Math.max(0,Math.floor(e));return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))}function JH(e){var t,n,r;let{clips:i,startIndex:a=0,onClose:s,likedIds:o=[],catalog:l=[],onLike:c,onDownload:d,onPublish:u,onDelete:h}=e;const p=(0,$.useRef)(null),m=(0,$.useRef)([]),f=(0,$.useRef)([]),g=(0,$.useRef)(null),[v,b]=(0,$.useState)(!0),[y,x]=(0,$.useState)(null),[S,k]=(0,$.useState)(null),[w,T]=(0,$.useState)(a),[C,E]=(0,$.useState)(!0);if((0,$.useEffect)((()=>{const e=p.current;e&&(e.scrollTop=a*e.clientHeight),T(a)}),[a]),(0,$.useEffect)((()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting&&e.intersectionRatio>.6){const t=Number(e.target.dataset.index);Number.isNaN(t)||(T(t),E(!0))}}))}),{threshold:[0,.6,1]});return m.current.forEach((t=>t&&e.observe(t))),()=>e.disconnect()}),[i]),(0,$.useEffect)((()=>{f.current.forEach(((e,t)=>{if(e)if(t===w){e.muted=v;try{e.networkState!==e.NETWORK_EMPTY&&0!==e.readyState||e.load()}catch(n){}const t=e.play();t&&t.catch&&t.catch((()=>{}))}else try{e.pause()}catch(r){}}))}),[w,v,i]),(0,$.useEffect)((()=>{const e=e=>{"Escape"===e.key&&(null===s||void 0===s||s())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[s]),null===i||void 0===i||!i.length)return null;const j={stopPropagation(){}},A=e=>{const t=p.current;!t||e<0||e>=i.length||t.scrollTo({top:e*t.clientHeight,behavior:"smooth"})},N="undefined"!==typeof window&&((null===(t=(n=window).matchMedia)||void 0===t||null===(r=t.call(n,"(max-width: 820px)"))||void 0===r?void 0:r.matches)||/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent||""));return(0,Xo.jsxs)("div",{className:"cfv-overlay",children:[(0,Xo.jsx)("button",{className:"cfv-top-btn cfv-back",onClick:s,"aria-label":"Back",children:(0,Xo.jsx)(jA,{})}),(0,Xo.jsx)("button",{className:"cfv-top-btn cfv-mute",onClick:()=>b((e=>!e)),"aria-label":"Sound",children:v?(0,Xo.jsx)($A,{}):(0,Xo.jsx)(ZA,{})}),(0,Xo.jsxs)("div",{className:"cfv-nav",children:[(0,Xo.jsx)("button",{className:"cfv-nav-btn",onClick:()=>A(w-1),disabled:0===w,"aria-label":"Previous clip",children:(0,Xo.jsx)(AA,{})}),(0,Xo.jsx)("button",{className:"cfv-nav-btn",onClick:()=>A(w+1),disabled:w===i.length-1,"aria-label":"Next clip",children:(0,Xo.jsx)(EA,{})})]}),(0,Xo.jsx)("div",{className:"cfv-feed",ref:p,onTouchStart:e=>{const t=e.touches[0];g.current={x:t.clientX,y:t.clientY}},onTouchEnd:e=>{if(!g.current)return;const t=e.changedTouches[0],n=t.clientX-g.current.x,r=t.clientY-g.current.y;g.current=null,n>70&&Math.abs(n)>1.5*Math.abs(r)&&(null===s||void 0===s||s())},children:i.map(((e,t)=>{var n,r,i;
2let{clip:a,job:s,clipIndex:p}=e;const g="".concat(s._id,"-").concat(p),b=o.includes(g),T=y===g,A=a.caption||a.hook||"",P=null!==(n=null!==(r=null!==(i=a.start_sec)&&void 0!==i?i:a.start)&&void 0!==r?r:a.broadcastStartSec)&&void 0!==n?n:null,R=Number.isFinite(a.duration)?a.duration:null,L=XH(P),I=null!=P&&null!=R?XH(P+R):null,D=L?I?"".concat(L," \u2013 ").concat(I):L:null!=R?"".concat(Math.round(R),"s"):null;let O=null;if(T&&null!==l&&void 0!==l&&l.length)try{const e=bH(fH(l,a,1).tracks||[]);e[0]&&(O=e[0].artist?"".concat(e[0].trackName," \u2014 ").concat(e[0].artist):e[0].trackName)}catch(B){}const M=a.thumbnailUrl?"/api/clips/thumb?u=".concat(encodeURIComponent(a.thumbnailUrl)):s.videoThumbnail||void 0,_=Math.abs(t-w)<=1,F=t===w;return(0,Xo.jsxs)("div",{className:"cfv-slide","data-index":t,ref:e=>m.current[t]=e,children:[_?(0,Xo.jsx)("video",{ref:e=>f.current[t]=e,className:"cfv-video","data-index":t,src:a.editedUrl||a.url,poster:M,playsInline:!0,"webkit-playsinline":"true",loop:!0,muted:v,preload:F?"auto":"metadata",onWaiting:()=>{F&&E(!0)},onPlaying:()=>{F&&E(!1)},onCanPlay:()=>{F&&E(!1)},onLoadedData:()=>{F&&E(!1)},onTimeUpdate:()=>{F&&C&&E(!1)},onClick:e=>{const t=e.currentTarget;t.paused?t.play().catch((()=>{})):t.pause()}}):M?(0,Xo.jsx)("img",{className:"cfv-video",src:M,alt:"",draggable:!1}):(0,Xo.jsx)("div",{className:"cfv-video"}),F&&C&&(0,Xo.jsx)("div",{className:"cfv-buffering",children:(0,Xo.jsx)("span",{className:"cfv-spinner"})}),(0,Xo.jsxs)("div",{className:"cfv-actions",children:[(0,Xo.jsx)("button",{className:"cfv-action".concat(b?" liked":""),onClick:()=>null===c||void 0===c?void 0:c(g),"aria-label":"Like",children:(0,Xo.jsx)(BA,{fill:b?"currentColor":"none"})}),(0,Xo.jsx)("button",{className:"cfv-action".concat(S===g?" cfv-action--busy":""),disabled:S===g,onClick:async()=>{k(g);const e=Date.now();try{await(null===d||void 0===d?void 0:d(a,s,p,j))}finally{const t=Math.max(0,700-(Date.now()-e));setTimeout((()=>k((e=>e===g?null:e))),t)}},"aria-label":"Save",children:S===g?(0,Xo.jsx)("span",{className:"cfv-dl-spin"}):(0,Xo.jsx)(DA,{})}),(0,Xo.jsx)("button",{className:"cfv-action",onClick:()=>((e,t)=>{N?Vo("Editing is available on desktop"):window.location.href="/edit/".concat(e._id,"/").concat(t)})(s,p),"aria-label":"Edit",children:(0,Xo.jsx)(OA,{})}),(0,Xo.jsx)("button",{className:"cfv-action",onClick:()=>null===u||void 0===u?void 0:u(a,s,p,j),"aria-label":"Post",children:(0,Xo.jsx)(HA,{})}),(0,Xo.jsx)("button",{className:"cfv-action cfv-action--danger",onClick:()=>null===h||void 0===h?void 0:h(a,s,p,j),"aria-label":"Delete",children:(0,Xo.jsx)(qA,{})})]}),(0,Xo.jsxs)("div",{className:"cfv-caption".concat(T?" cfv-caption--open":""),children:[(0,Xo.jsxs)("button",{className:"cfv-caption-head",onClick:()=>x(T?null:g),children:[(0,Xo.jsxs)("div",{className:"cfv-caption-headtext",children:[(0,Xo.jsx)("div",{className:"cfv-hook",children:a.hook||"Clip"}),!T&&(s.videoTitle||s.streamerName)&&(0,Xo.jsx)("div",{className:"cfv-sub",children:s.videoTitle||s.streamerName})]}),(0,Xo.jsx)("span",{className:"cfv-more",children:T?(0,Xo.jsxs)(Xo.Fragment,{children:["See less ",(0,Xo.jsx)(EA,{})]}):(0,Xo.jsxs)(Xo.Fragment,{children:["See more ",(0,Xo.jsx)(AA,{})]})})]}),T&&(0,Xo.jsxs)("div",{className:"cfv-details",children:[A&&(0,Xo.jsxs)("div",{className:"cfv-detail",children:[(0,Xo.jsx)("div",{className:"cfv-detail-label",children:"AI caption"}),(0,Xo.jsxs)("div",{className:"cfv-caption-row",children:[(0,Xo.jsx)("p",{className:"cfv-caption-text",children:A}),(0,Xo.jsxs)("button",{className:"cfv-copy",onClick:()=>(e=>{if(e)try{navigator.clipboard.writeText(e),Vo.success("Caption copied")}catch(t){Vo.error("Copy failed")}})(A),"aria-label":"Copy caption",children:[(0,Xo.jsx)(PA,{})," Copy"]})]})]}),O&&(0,Xo.jsxs)("div",{className:"cfv-detail cfv-detail--row",children:[(0,Xo.jsx)("span",{className:"cfv-detail-ic",children:(0,Xo.jsx)(zA,{})}),(0,Xo.jsx)("span",{className:"cfv-detail-val",children:O})]}),D&&(0,Xo.jsxs)("div",{className:"cfv-detail cfv-detail--row",children:[(0,Xo.jsx)("span",{className:"cfv-detail-ic",children:(0,Xo.jsx)(NA,{})}),(0,Xo.jsx)("span",{className:"cfv-detail-val",children:D})]})]})]})]},a._id||g)}))})]})}const QH=["Scanning the footage","Finding the best moments","Cutting your clips","Writing captions","Polishing the edits"],ZH={twitch:"Twitch",youtube:"YouTube",kick:"Kick",rumble:"Rumble",x:"X",ganjing:"Ganjing World"};function $H(e){let{brandImage:t,title:n,progress:r=0,resultsCount:i=0,done:a=!1,failed:s=!1,live:o=!1,ended:l=!1,endedReason:c,platform:d,onCancel:u,onClose:h,onViewClips:p,onUpgrade:m}=e;const[f,g]=(0,$.useState)(0),[v,b]=(0,$.useState)(!1),y=o?function(e){const t=ZH[String(e||"").toLowerCase()]||"your channel";return["Watching your stream","Catching the best moments","Cutting clips as they happen","Branding for ".concat(t)]}(d):QH,x=o&&l,S=x&&"credits"===c;(0,$.useEffect)((()=>
2{if(a||s||l)return;const e=setInterval((()=>g((e=>(e+1)%y.length))),1500);return()=>clearInterval(e)}),[a,s,l,y.length]);const k=!v&&t&&/^(https?:|data:|blob:)/.test(t)?t:"/mascot.png",w=s?"SOMETHING WENT WRONG":S?"OUT OF CREDITS":x?"CLIPS READY":o?"LIVE":a?"CLIPS READY":r<15?"PREPARING":r<60?"ANALYZING":r<92?"RENDERING":"FINISHING",T=s?"This one didn't work out. Try again.":S?"You're out of credits \u2014 upgrade to keep auto-clipping.":x?"Your stream ended \u2014 clips are ready.":a?"Opening your clips\u2026":"".concat(y[f],"\u2026"),C=a?100:Math.max(0,Math.min(100,Math.round(r)));return(0,Xo.jsxs)("div",{className:"clsc-overlay",children:[(0,Xo.jsxs)("div",{className:"clsc-head",children:[(0,Xo.jsx)("button",{className:"clsc-x",onClick:h,"aria-label":"Close",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}),(0,Xo.jsx)("span",{className:"clsc-title-top",children:o?"Auto-clipping":"Clipping"})]}),(0,Xo.jsxs)("div",{className:"clsc-body",children:[(0,Xo.jsxs)("div",{className:"clsc-ring".concat(a||x?" clsc-ring--done":"").concat(o&&!l?" clsc-ring--live":""),children:[(0,Xo.jsx)("span",{className:"clsc-dash"}),(0,Xo.jsx)("span",{className:"clsc-pulse"}),(0,Xo.jsxs)("div",{className:"clsc-frame",children:[(0,Xo.jsx)("img",{className:"clsc-img",src:k,alt:"",draggable:!1,onError:()=>b(!0)}),!a&&!s&&!l&&(0,Xo.jsx)("div",{className:"clsc-beam"})]})]}),(0,Xo.jsxs)("div",{className:"clsc-label".concat(s?" clsc-label--err":"").concat(o&&!l?" clsc-label--live":""),children:[o&&!l&&(0,Xo.jsx)("span",{className:"clsc-live-dot"}),w]}),(0,Xo.jsx)("div",{className:"clsc-sub",children:T},T),n&&(0,Xo.jsx)("div",{className:"clsc-vidtitle",title:n,children:n})]}),(0,Xo.jsxs)("div",{className:"clsc-foot",children:[(0,Xo.jsxs)("div",{className:"clsc-card",children:[(0,Xo.jsxs)("div",{className:"clsc-card-row",children:[(0,Xo.jsxs)("div",{className:"clsc-stat",children:[(0,Xo.jsx)("span",{className:"clsc-stat-label",children:"CLIPS"}),(0,Xo.jsx)("span",{className:"clsc-stat-val",children:i>0?i:"\u2014"})]}),(0,Xo.jsxs)("div",{className:"clsc-stat clsc-stat--right",children:[(0,Xo.jsx)("span",{className:"clsc-stat-label",children:o?"STATUS":"PROGRESS"}),(0,Xo.jsx)("span",{className:"clsc-stat-val".concat(o&&!l?" clsc-stat-val--live":""),children:o?l?"ENDED":"LIVE":"".concat(C,"%")})]})]}),(0,Xo.jsx)("div",{className:"clsc-bar",children:o?l?(0,Xo.jsx)("div",{className:"clsc-bar-fill",style:{width:"100%"}}):(0,Xo.jsx)("div",{className:"clsc-bar-fill clsc-bar-fill--indet"}):(0,Xo.jsx)("div",{className:"clsc-bar-fill",style:{width:"".concat(Math.max(3,C),"%")}})})]}),x?(0,Xo.jsxs)("div",{className:"clsc-live-actions",children:[i>0&&(0,Xo.jsx)("button",{className:"clsc-cancel clsc-cancel--primary",onClick:p,children:"View clips \u2192"}),S&&m?(0,Xo.jsx)("button",{className:"clsc-cancel",onClick:m,children:"Upgrade to keep clipping"}):(0,Xo.jsx)("button",{className:"clsc-cancel",onClick:h,children:"Close"})]}):o?(0,Xo.jsxs)("div",{className:"clsc-live-actions",children:[i>0&&(0,Xo.jsx)("button",{className:"clsc-cancel clsc-cancel--primary",onClick:p,children:"View clips \u2192"}),(0,Xo.jsx)("button",{className:"clsc-cancel",onClick:u,children:"Stop auto-clipping"})]}):a?(0,Xo.jsx)("button",{className:"clsc-cancel clsc-cancel--primary",onClick:p,children:"View clips \u2192"}):i>0&&!s?(0,Xo.jsxs)("div",{className:"clsc-live-actions",children:[(0,Xo.jsxs)("button",{className:"clsc-cancel clsc-cancel--primary",onClick:p,children:["View ",i," clip",1===i?"":"s"," \u2192"]}),(0,Xo.jsx)("button",{className:"clsc-cancel",onClick:u,children:"Cancel clipping"})]}):(0,Xo.jsx)("button",{className:"clsc-cancel",onClick:u,children:s?"Close":"Cancel clipping"})]})]})}function eV(e){return vA({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.333 0h8v5.333H12V2.667h2.667V0h8v8H20v2.667h-2.667v2.666H20V16h2.667v8h-8v-2.667H12v-2.666H9.333V24h-8Z"},child:[]}]})(e)}function tV(e){return vA({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"},child:[]}]})(e)}function nV(e){return vA({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},child:[]}]})(e)}const rV={twitch:tV,youtube:nV,kick:eV,rumble:function(e){return vA({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.4528 13.5458c.8064-.6542.9297-1.8381.2756-2.6445a1.8802 1.8802 0 0 0-.2756-.2756 21.2127 21.2127 0 0 0-4.3121-2.776c-1.066-.51-2.256.2-2.4261 1.414a23.5226 23.5226 0 0 0-.14 5.5021c.116 1.23 1.292 1.964 2.372 1.492a19.6285 19.6285 0 0 0 4.5062-2.704v-.008zm6.9322-5.4002c2.0335 2.228 2.0396 5.637.014 7.8723A26.1487 26.1487 0 0 1 8.2946 23.846c-2.6848.6713-5.4168-.914-6.1662-3.5781-1.524-5.2002-1.3-11.0803.17-16.3045.772-2.744 3.3521-4.4661 6.0102-3.832 4.9242 1.174 9.5443 4.196 13.0764 8.0121v.002z"},child:[]}]})(e)}};function iV(e){let{id:t}=e;const n=rV[t];return n?(0,Xo.jsx)(n,{size:24}):t?t.charAt(0).toUpperCase():""}function aV(e,t){const n=String(e||"").replace("#",""),r=3===n.length?n.split("").map((e=>e+e)).join(""):n,i=parseInt(r,16);return"rgba(".concat(i>>16&255,", ").concat(i>>8&255,", ").concat(255&i,", ").concat(t,")")}const sV=["Pro","Premium"],oV=/(youtube\.com|youtu\.be)\//i,lV=[{id:"twitch",name:"Twitch",color:"#9146FF",prefix:"twitch.tv/",ph:"yourname",oauth:!0},{id:"youtube",name:"YouTube",color:"#FF0000",prefix:"youtube.com/@",ph:"yourhandle",oauth:!0},{id:"kick",name:"Kick",color:"#53FC18",prefix:"kick.com/",ph:"yourname",oauth:!0},{id:"rumble",name:"Rumble",color:"#85C742",prefix:"rumble.com/c/",ph:"YourChannel",soon:!0}];function cV(e){if(null==e||!Number.isFinite(e))return"";
2const t=Math.max(0,Math.floor(e)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,"0");return n>0?"".concat(n,":").concat(a(r),":").concat(a(i)):"".concat(r,":").concat(a(i))}function dV(e){let{status:t}=e;return"active"===t||"starting"===t?(0,Xo.jsxs)("span",{className:"lcm-badge lcm-badge--live",children:[(0,Xo.jsx)("span",{className:"lcm-dot"}),"LIVE"]}):"ended"===t?(0,Xo.jsx)("span",{className:"lcm-badge lcm-badge--ended",children:"ENDED"}):"error"===t?(0,Xo.jsx)("span",{className:"lcm-badge lcm-badge--error",children:"ERROR"}):(0,Xo.jsx)("span",{className:"lcm-badge",children:t})}function uV(e){let{clip:t}=e;const n=t.url||t.cleanUrl;return(0,Xo.jsxs)("div",{className:"lcm-clip",children:[(0,Xo.jsxs)("div",{className:"lcm-clip-vid-wrap",children:[t.url?(0,Xo.jsx)("video",{className:"lcm-clip-vid",src:t.url,poster:t.thumbnailUrl||void 0,controls:!0,preload:"none",playsInline:!0}):(0,Xo.jsx)("div",{className:"lcm-clip-pending",children:"rendering\u2026"}),Number.isFinite(t.broadcastStartSec)&&(0,Xo.jsxs)("span",{className:"lcm-clip-ts",children:["@ ",cV(t.broadcastStartSec)]}),Number.isFinite(t.duration)&&(0,Xo.jsxs)("span",{className:"lcm-clip-dur",children:[Math.round(t.duration),"s"]})]}),(0,Xo.jsxs)("div",{className:"lcm-clip-body",children:[(0,Xo.jsx)("p",{className:"lcm-clip-hook",title:t.hook,children:t.hook||"Untitled clip"}),n&&(0,Xo.jsx)("a",{className:"lcm-clip-dl",href:n,target:"_blank",rel:"noreferrer",download:!0,children:"Download"})]})]})}function hV(){const[e,t]=(0,$.useState)(!1),[n,r]=(0,$.useState)(!1),[i,a]=(0,$.useState)({aspectRatio:"9:16",maxClips:"auto",burnHookTitle:!0,burnSubtitles:!0,burnWatermark:!0});(0,$.useEffect)((()=>{ks.get("/users/me/creator-settings").then((e=>{var t,n;const r=(null===(t=e.data)||void 0===t||null===(n=t.creatorSettings)||void 0===n?void 0:n.autoClip)||{};a({aspectRatio:"16:9"===r.aspectRatio?"16:9":"9:16",maxClips:r.maxClips||"auto",burnHookTitle:!1!==r.burnHookTitle,burnSubtitles:!1!==r.burnSubtitles,burnWatermark:!1!==r.burnWatermark})})).catch((()=>{})).finally((()=>t(!0)))}),[]);const s=[..."16:9"!==i.aspectRatio?[{k:"burnHookTitle",label:"Title captions"},{k:"burnSubtitles",label:"Subtitles"}]:[],{k:"burnWatermark",label:"Channel watermark"}];return e?(0,Xo.jsxs)("div",{className:"lcm2-style",children:[(0,Xo.jsxs)("div",{className:"lcm2-style-group",children:[(0,Xo.jsx)("span",{className:"lcm2-style-label",children:"Aspect ratio"}),(0,Xo.jsx)("div",{className:"lcm2-style-aspect",children:[["9:16","Vertical"],["16:9","Wide"]].map((e=>{let[t,n]=e;return(0,Xo.jsxs)("button",{type:"button",className:"lcm2-style-ar".concat(i.aspectRatio===t?" on":""),onClick:()=>a((e=>o(o({},e),{},{aspectRatio:t}))),children:[(0,Xo.jsx)("b",{children:t}),(0,Xo.jsx)("small",{children:n})]},t)}))})]}),(0,Xo.jsxs)("div",{className:"lcm2-style-group",children:[(0,Xo.jsx)("span",{className:"lcm2-style-label",children:"Overlays"}),(0,Xo.jsx)("div",{className:"lcm2-style-chips",children:s.map((e=>(0,Xo.jsxs)("button",{type:"button",className:"lcm2-style-chip".concat(i[e.k]?" on":""),onClick:()=>(e=>a((t=>o(o({},t),{},{[e]:!t[e]}))))(e.k),children:[(0,Xo.jsx)("span",{className:"lcm2-style-chip-ic",children:i[e.k]?"\u2713":"+"}),e.label]},e.k)))})]}),(0,Xo.jsx)("button",{className:"lcm2-style-save",onClick:async()=>{r(!0);try{await ks.put("/users/me/auto-clip-settings",i),Vo.success("Auto-clip style saved")}catch(e){Vo.error("Couldn't save. Try again.")}finally{r(!1)}},disabled:n,children:n?"Saving\u2026":"Save auto-clip style"})]}):(0,Xo.jsx)("div",{className:"lcm2-style-loading",children:"Loading\u2026"})}function pV(e){var t,n,r;let{open:i,onClose:a,url:s="",userPlan:o,sessionId:l=null,aspectRatio:c="9:16",burnHookTitle:d=!0,burnSubtitles:u=!0,burnWatermark:h=!1,twitchConn:p=null,onTwitchDisconnect:m,kickConn:f=null,onKickDisconnect:g,youtubeConn:v=null,onYoutubeDisconnect:b,onUpgrade:y,onNotLive:x}=e;const S=sV.includes(o),[k,w]=(0,$.useState)(null),T={twitch:p,kick:f,youtube:v},C={twitch:m,kick:g,youtube:b},E=Object.keys(T).find((e=>{var t;return null===(t=T[e])||void 0===t?void 0:t.connected}))||null,[j,A]=(0,$.useState)("start"),[N,P]=(0,$.useState)(null),[R,L]=(0,$.useState)(""),[I,D]=(0,$.useState)(null),[O,M]=(0,$.useState)(!1),[_,F]=(0,$.useState)(!1),[B,U]=(0,$.useState)(null),[z,G]=(0,$.useState)(l),[W,H]=(0,$.useState)("channels"),V=(0,$.useRef)(null),K=(0,$.useCallback)((async e=>{if(e)try{var t;const n=await ks.get("/live/".concat(e));null!==(t=n.data)&&void 0!==t&&t.session&&U(n.data.session)}catch(n){}}),[]);(0,$.useEffect)((()=>{V.current&&clearInterval(V.current);return i&&"session"===j&&B&&("active"===B.status||"starting"===B.status)&&z&&(V.current=setInterval((()=>K(z)),15e3)),()=>{V.current&&clearInterval(V.current)}}),[i,j,B,z,K]);const q=(0,$.useCallback)((async()=>{const e=s?s.trim():function(e,t){const n=(t||"").trim();if(!n)return"";if(/^https?:\/\//i.test(n))return n;const r=n.replace(/^@/,"");switch(e){case"youtube":return"https://youtube.com/@".concat(r,"/live");case"kick":return"https://kick.com/".concat(r);case"rumble":return"https://rumble.com/c/".concat(r);default:return"https://twitch.tv/".concat(r)}}(N,R);if(e){M(!0);try{var t,n;const r=await ks.post("/live/start",{videoUrl:e,aspectRatio:c,burnHookTitle:d,burnSubtitles:u,burnWatermark:h});Vo.success("You're live! Clips roll in as moments happen.");const i=null===(t=r.data)||void 0===t?void 0:t.liveSessionId;G(i),U((null===(n=r.data)||void 0===n?void 0:n.session)||null),A("session"),i&&K(i)}catch(K6){var r,i;const n=null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error;if("pro_required"===n)A("gate");else if("not_live"===n)null===x||void 0===x||x(e);else if("live_already_running"===n){var a,o;const e=null===(a=K6.response)||void 0===a||null===(o=a.data)||void 0===o?void 0:o.liveSessionId;Vo.error("You already have a live session running."),e&&(G(e),A("session"),K(e))}else if("out_of_credits"===n)Vo.error("You're out of credits."),null===y||void 0===y||y();else{var l,p,m,f;Vo.error((null===(l=K6.response)||void 0===l||null===(p=l.data)||void 0===p?void 0:p.message)||(null===(m=K6.response)||void 0===m||null===(f=m.data)||void 0===f?void 0:f.error)||"Couldn't start live clipping")}}finally{M(!1)}}else Vo.error("Enter your channel name first")}),[s,N,R,c,d,u,h,K,x,y]),Y=(0,$.useRef)(q);if((0,$.useEffect)((()=>{Y.current=q}),[q]),(0,$.useEffect)((()=>{var e;i&&(S?l?(G(l),A("session"),K(l)):(G(null),U(null),A("start"),P(null),L("")):!l&&oV.test(s||"")?(A("checking"),null===(e=Y.current)||void 0===e||e.call(Y)):A("gate"))}),[i,S,l,s,K]),!i)return null;const X=((null===B||void 0===B?void 0:B.clips)||[]).slice().sort(((e,t)=>(t.broadcastStartSec||0)-(e.broadcastStartSec||0))),J=B&&("active"===B.status||"starting"===B.status);return(0,Xo.jsx)("div",{className:"lcm-overlay",onClick:a,children:(0,Xo.jsxs)("div",{className:"lcm-panel",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"lcm-close",onClick:a,"aria-label":"Close",children:"\xd7"}),"checking"===j&&(0,Xo.jsxs)("div",{className:"lcm-gate",children:[(0,Xo.jsx)("div",{className:"lcm-gate-icon",children:"\u23f3"}),(0,Xo.jsx)("h2",{className:"lcm-gate-title",children:"Checking this stream\u2026"}),(0,Xo.jsx)("p",{className:"lcm-gate-sub",children:"One sec \u2014 working out whether this one's live right now or an already-finished stream we can just clip."})]}),"gate"===j&&(0,Xo.jsxs)("div",{className:"lcm-gate",children:[(0,Xo.jsx)("div",{className:"lcm-gate-icon",children:"\u26a1"}),(0,Xo.jsx)("h2",{className:"lcm-gate-title",children:"Live Clipping is a Pro feature"}),(0,Xo.jsxs)("p",{className:"lcm-gate-sub",children:["We clip the best moments of your Twitch stream ",(0,Xo.jsx)("strong",{children:"while you're live"}),", no waiting for the VOD. Upgrade to Pro to turn it on."]}),(0,Xo.jsxs)("ul",{className:"lcm-gate-list",children:[(0,Xo.jsx)("li",{children:"Clips delivered every few minutes, as it happens"}),(0,Xo.jsx)("li",{children:"Same captions, hooks & branding as your normal clips"}),(0,Xo.jsx)("li",{children:"Only pay for clips we actually ship"})]}),(0,Xo.jsx)("button",{className:"lcm-primary",onClick:()=>{null===a||void 0===a||a(),null===y||void 0===y||y()},children:"Upgrade to Pro"})]}),"start"===j&&(0,Xo.jsx)("div",{className:"lcm-start",children:s?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("p",{className:"lcm-url",title:s,children:s}),(0,Xo.jsx)("button",{className:"lcm-primary",onClick:q,disabled:O,children:O?"Connecting\u2026":"Start auto-clipping"})]}):N?(0,Xo.jsxs)("div",{className:"lcm-connect",children:[(0,Xo.jsxs)("button",{className:"lcm-back",onClick:()=>P(null),children:[(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"15 18 9 12 15 6"})}),null===(t=lV.find((e=>e.id===N)))||void 0===t?void 0:t.name]}),(0,Xo.jsxs)("div",{className:"lcm-channel",children:[(0,Xo.jsx)("span",{className:"lcm-channel-prefix",children:null===(n=lV.find((e=>e.id===N)))||void 0===n?void 0:n.prefix}),(0,Xo.jsx)("input",{className:"lcm-channel-input",type:"text",value:R,onChange:e=>L(e.target.value),onKeyDown:e=>{"Enter"!==e.key||O||q()},placeholder:null===(r=lV.find((e=>e.id===N)))||void 0===r?void 0:r.ph,autoFocus:!0})]}),(0,Xo.jsx)("button",{className:"lcm-primary",onClick:q,disabled:O,children:O?"Connecting\u2026":"Start auto-clipping"})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"lcm2-head",children:[(0,Xo.jsx)("h2",{className:"lcm2-title",children:"Connect your channel"}),(0,Xo.jsx)("p",{className:"lcm2-sub",children:"Auto-clips your best moments in real time, live while you stream."})]}),(0,Xo.jsxs)("div",{className:"lcm2-tabs",children:[(0,Xo.jsx)("button",{type:"button",className:"lcm2-tab".concat("channels"===W?" on":""),onClick:()=>H("channels"),children:"Channels"}),(0,Xo.jsx)("button",{type:"button",className:"lcm2-tab".concat("style"===W?" on":""),onClick:()=>H("style"),children:"Auto-clip style"})]}),"style"===W?(0,Xo.jsx)(hV,{}):(0,Xo.jsx)("div",{className:"lcm2-grid",children:lV.map((e=>{const t=T[e.id],n=!(null===t||void 0===t||!t.connected),r=E&&E!==e.id&&!e.soon&&!n,i="kick"===e.id||"rumble"===e.id,a=e.soon?"soon":n?"on":r?"locked":"",s=n?{"--b-bg":aV(e.color,.09),"--b-bd":aV(e.color,.55),"--b-glow":"0 16px 46px -16px ".concat(aV(e.color,.6))}:void 0;return(0,Xo.jsxs)("button",{type:"button",className:"lcm2-tile ".concat(a),style:s,disabled:e.soon||!!I&&!n,onClick:()=>{var t;
2if(!e.soon)if(n)(async e=>{if(!k){w(e);try{var t,n;await ks.post("/connect/".concat(e,"/disconnect")),Vo.success("".concat((null===(t=lV.find((t=>t.id===e)))||void 0===t?void 0:t.name)||"Channel"," disconnected")),null===(n=C[e])||void 0===n||n.call(C)}catch(r){Vo.error("Couldn't disconnect. Try again.")}finally{w(null)}}})(e.id);else if(r)Vo("Disconnect ".concat((null===(t=lV.find((e=>e.id===E)))||void 0===t?void 0:t.name)||"your channel"," first to switch."));else if(!I){if(e.oauth)return D(e.id),void(window.location.href="/api/connect/".concat(e.id));P(e.id),L("")}},children:[(0,Xo.jsx)("span",{className:"lcm2-brand",style:{background:e.color,color:i?"#0a0a0b":"#fff"},children:(0,Xo.jsx)(iV,{id:e.id})}),(0,Xo.jsxs)("div",{className:"lcm2-tile-meta",children:[(0,Xo.jsx)("span",{className:"lcm2-name",children:e.name}),e.soon?(0,Xo.jsx)("span",{className:"lcm2-status",children:"Coming soon"}):n?(0,Xo.jsx)("span",{className:"lcm2-disc-btn",children:k===e.id?(0,Xo.jsx)("span",{className:"lcm2-btn-spin"}):"Disconnect"}):r?(0,Xo.jsx)("span",{className:"lcm2-status",children:"Locked"}):(0,Xo.jsx)("span",{className:"lcm2-connect-btn",children:I===e.id?(0,Xo.jsx)("span",{className:"lcm2-btn-spin"}):"Connect"})]}),e.soon?(0,Xo.jsx)("span",{className:"lcm2-soon",children:"SOON"}):n?(0,Xo.jsx)("span",{className:"lcm2-badge",style:{background:e.color,color:i?"#0a0a0b":"#fff"},children:(0,Xo.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})}):null]},e.id)}))})]})}),"session"===j&&(0,Xo.jsxs)("div",{className:"lcm-session",children:[(0,Xo.jsxs)("div",{className:"lcm-session-head",children:[(0,Xo.jsxs)("div",{className:"lcm-session-meta",children:[(0,Xo.jsxs)("div",{className:"lcm-session-titleline",children:[(0,Xo.jsx)(dV,{status:null===B||void 0===B?void 0:B.status}),(0,Xo.jsx)("span",{className:"lcm-session-name",children:(null===B||void 0===B?void 0:B.videoTitle)||(null===B||void 0===B?void 0:B.videoAuthor)||(null===B||void 0===B?void 0:B.channelUrl)||"Live session"})]}),(0,Xo.jsxs)("div",{className:"lcm-session-stats",children:[X.length," clip",1===X.length?"":"s"," \xb7 ",(null===B||void 0===B?void 0:B.windowCount)||0," checks"]})]}),J&&(0,Xo.jsx)("button",{className:"lcm-stop",onClick:async()=>{if(z){F(!0);try{await ks.post("/live/".concat(z,"/stop")),Vo.success("Live clipping stopped"),K(z)}catch(e){Vo.error("Couldn't stop the session")}finally{F(!1)}}},disabled:_,children:_?"Stopping\u2026":"Stop"})]}),"error"===(null===B||void 0===B?void 0:B.status)&&(0,Xo.jsx)("p",{className:"lcm-error",children:B.error||"This session failed to start."}),0===X.length?(0,Xo.jsx)("div",{className:"lcm-empty",children:J?"Watching the stream\u2026 clips appear here as moments happen.":"No clips were captured this session."}):(0,Xo.jsx)("div",{className:"lcm-grid",children:X.map((e=>(0,Xo.jsx)(uV,{clip:e},e._id||e.broadcastStartSec)))}),J&&(0,Xo.jsx)("p",{className:"lcm-bg-note",children:"You can close this window, clipping keeps running."})]})]})})}const mV={twitter:{name:"X",icon:"\ud835\udd4f",color:"#000"},tiktok:{name:"TikTok",icon:"\u266a",color:"#000"},youtube:{name:"YouTube",icon:"\u25b6",color:"#FF0000"},facebook:{name:"Facebook",icon:"f",color:"#1877F2"}},fV=e=>{let{post:t,onClose:n,onUpdated:r,onDeleted:i}=e;const{t:a}=Ae("schedule"),[s,o]=(0,$.useState)((null===t||void 0===t?void 0:t.caption)||""),[l,c]=(0,$.useState)(""),[d,u]=(0,$.useState)([]),[h,p]=(0,$.useState)([]),[m,f]=(0,$.useState)(!1),[g,v]=(0,$.useState)(!1),[b,y]=(0,$.useState)(!1);(0,$.useEffect)((()=>{var e;t&&(o(t.caption||""),c(x(new Date(t.scheduledTime))),u((null===(e=t.platforms)||void 0===e?void 0:e.map((e=>e.name)))||[]));S()}),[t]);const x=e=>{const t=e=>String(e).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate()),"T").concat(t(e.getHours()),":").concat(t(e.getMinutes()))},S=async()=>{try{const e=(await ks.get("/users/me/creator-settings")).data.socialConnections||{},t=Object.entries(e).filter((e=>{let[t,n]=e;return n.connected})).map((e=>{let[t]=e;return t}));p(t)}catch(K6){console.error("Failed to fetch platforms:",K6)}},k=x(new Date);return t?(0,Xo.jsx)("div",{className:"edit-post-overlay",onClick:n,children:(0,Xo.jsxs)("div",{className:"edit-post-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"edit-post-header",children:[(0,Xo.jsxs)("div",{className:"edit-post-header-content",children:[(0,Xo.jsx)("span",{className:"edit-post-label",children:a("scheduledPost")}),(0,Xo.jsx)("h3",{className:"edit-post-title",children:t.clipTitle||a("untitledCl
2ip")})]}),(0,Xo.jsx)("button",{className:"edit-post-close",onClick:n,children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),b?(0,Xo.jsxs)("div",{className:"edit-post-delete-confirm",children:[(0,Xo.jsx)("div",{className:"edit-post-delete-icon",children:(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,Xo.jsx)("h4",{children:a("cancelScheduledPost")}),(0,Xo.jsx)("p",{children:a("clipWontBePosted")}),(0,Xo.jsxs)("div",{className:"edit-post-delete-actions",children:[(0,Xo.jsx)("button",{className:"edit-post-delete-cancel",onClick:()=>y(!1),disabled:g,children:a("keepIt")}),(0,Xo.jsx)("button",{className:"edit-post-delete-confirm-btn",onClick:async()=>{v(!0);try{await ks.delete("/scheduled-posts/".concat(t._id)),Vo.success(a("postCancelled")),null===i||void 0===i||i(),n()}catch(K6){var e,r;Vo.error((null===(e=K6.response)||void 0===e||null===(r=e.data)||void 0===r?void 0:r.error)||a("failedToCancelPost"))}finally{v(!1),y(!1)}},disabled:g,children:a(g?"cancelling":"yesCancelPost")})]})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"edit-post-section edit-post-time-section",children:[(0,Xo.jsxs)("div",{className:"edit-post-time-display",children:[(0,Xo.jsx)("div",{className:"edit-post-time-icon",children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("polyline",{points:"12 6 12 12 16 14"})]})}),(0,Xo.jsx)("span",{className:"edit-post-time-text",children:(e=>{const t=new Date(e),n=new Date,r=new Date(n);r.setDate(r.getDate()+1);const i=t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return t.toDateString()===n.toDateString()?"".concat(a("todayAt")," ").concat(i):t.toDateString()===r.toDateString()?"".concat(a("tomorrowAt")," ").concat(i):t.toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"})+" at ".concat(i)})(l)})]}),(0,Xo.jsx)("input",{type:"datetime-local",value:l,onChange:e=>c(e.target.value),min:k,className:"edit-post-datetime"})]}),(0,Xo.jsxs)("div",{className:"edit-post-section",children:[(0,Xo.jsx)("label",{className:"edit-post-section-label",children:a("postingTo")}),(0,Xo.jsx)("div",{className:"edit-post-platforms",children:h.map((e=>{const t=mV[e],n=d.includes(e);return(0,Xo.jsxs)("button",{type:"button",className:"edit-post-platform ".concat(n?"selected":""),onClick:()=>(e=>{u((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))})(e),children:[(0,Xo.jsx)("span",{className:"edit-post-platform-icon",style:{backgroundColor:(null===t||void 0===t?void 0:t.color)||"#333"},children:(null===t||void 0===t?void 0:t.icon)||e[0].toUpperCase()}),(0,Xo.jsx)("span",{className:"edit-post-platform-name",children:(null===t||void 0===t?void 0:t.name)||e}),n&&(0,Xo.jsx)("span",{className:"edit-post-platform-check",children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})})]},e)}))})]}),(0,Xo.jsxs)("div",{className:"edit-post-section",children:[(0,Xo.jsx)("label",{className:"edit-post-section-label",children:a("caption")}),(0,Xo.jsx)("textarea",{value:s,onChange:e=>o(e.target.value),maxLength:500,placeholder:a("writeCaptionShort"),className:"edit-post-caption",rows:3}),(0,Xo.jsxs)("span",{className:"edit-post-caption-count",children:[s.length,"/500"]})]}),(0,Xo.jsxs)("div",{className:"edit-post-actions",children:[(0,Xo.jsxs)("button",{className:"edit-post-delete-btn",onClick:()=>y(!0),disabled:m,children:[(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),a("cancelPost")]}),(0,Xo.jsx)("button",{className:"edit-post-save-btn",onClick:async()=>
2{if(0===d.length)return Vo.error(a("selectAtLeastOnePlatform"));const e=new Date(l);if(e<=new Date)return Vo.error(a("selectFutureTime"));f(!0);try{await ks.put("/scheduled-posts/".concat(t._id),{caption:s,scheduledTime:e.toISOString(),platforms:d}),Vo.success(a("changesSaved")),null===r||void 0===r||r(),n()}catch(K6){var i,o;Vo.error((null===(i=K6.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.error)||a("failedToSaveChanges"))}finally{f(!1)}},disabled:m||0===d.length,children:m?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"edit-post-spinner"}),a("common:saving")]}):a("saveChanges")})]})]})]})}):null},gV=e=>{let{isOpen:t,onClose:n,onConfirm:r,title:i="Are you sure?",message:a,itemName:s,confirmText:o="Confirm",cancelText:l="Cancel",variant:c="danger"}=e;if(!t)return null;return(0,Xo.jsx)("div",{className:"confirm-modal-overlay",onClick:n,children:(0,Xo.jsxs)("div",{className:"confirm-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"confirm-modal-icon ".concat(c),children:(()=>{switch(c){case"warning":return(0,Xo.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,Xo.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,Xo.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]});case"info":return(0,Xo.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]});default:return(0,Xo.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,Xo.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]})}})()}),(0,Xo.jsx)("h3",{className:"confirm-modal-title",children:i}),s&&(0,Xo.jsx)("p",{className:"confirm-modal-subtitle",children:(0,Xo.jsxs)("span",{className:"confirm-modal-item-name",children:['"',s,'"']})}),a&&(0,Xo.jsx)("p",{className:"confirm-modal-description",children:a}),(0,Xo.jsxs)("div",{className:"confirm-modal-actions",children:[(0,Xo.jsx)("button",{className:"confirm-modal-btn cancel",onClick:n,children:l}),(0,Xo.jsx)("button",{className:"confirm-modal-btn confirm ".concat(c),onClick:r,children:o})]})]})})};function vV(){const{t:e}=Ae("schedule"),t=Wt(),[n,r]=(0,$.useState)([]),[i,a]=(0,$.useState)(new Date),[s,o]=(0,$.useState)(null),[l,c]=(0,$.useState)(null),[d,u]=(0,$.useState)(null),h=[e("sun"),e("mon"),e("tue"),e("wed"),e("thu"),e("fri"),e("sat")],p=(0,$.useCallback)((async()=>{try{const e=new Date(i.getFullYear(),i.getMonth(),1),t=new Date(i.getFullYear(),i.getMonth()+1,0),n=await ks.get("/scheduled-posts",{params:{startDate:e.toISOString(),endDate:t.toISOString()}});r(n.data.posts||[])}catch(K6){console.error("Failed to fetch scheduled posts:",K6)}}),[i]);(0,$.useEffect)((()=>{p()}),[p,t.key]),(0,$.useEffect)((()=>{const e=()=>p();return window.addEventListener("refetch_calendar",e),()=>window.removeEventListener("refetch_calendar",e)}),[p]);const m=e=>{o(e)};return(0,Xo.jsxs)("div",{className:"calendar-view-content",children:[(0,Xo.jsxs)("div",{className:"calendar-header",children:[(0,Xo.jsx)("button",{className:"calendar-nav",onClick:()=>{a(new Date(i.getFullYear(),i.getMonth()-1,1))},children:"\u2190"}),(0,Xo.jsx)("span",{className:"calendar-month",children:i.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Xo.jsx)("button",{className:"calendar-nav",onClick:()=>{a(new Date(i.getFullYear(),i.getMonth()+1,1))},children:"\u2192"})]}),(0,Xo.jsxs)("div",{className:"calendar-grid",children:[(0,Xo.jsx)("div",{className:"calendar-weekdays",children:h.map((e=>(0,Xo.jsx)("div",{className:"calendar-weekday",children:e},e)))}),(0,Xo.jsx)("div",{className:"calendar-days",children:(e=>{const t=e.getFullYear(),n=e.getMonth(),r=new Date(t,n,1),i=new Date(t,n+1,0).getDate(),a=r.getDay(),s=[];for(let o=0;o<a;o++)s.push(null);for(let o=1;o<=i;o++)s.push(new Date(t,n,o));return s})(i).map(((e,t)=>{const r=(e=>e?n.filter((t=>new Date(t.scheduledTime).toDateString()===e.toDateString())):[])(e),i=e&&e.toDateString()===(new Date).toDateString();return(0,Xo.jsx)("div",{className:"calendar-day ".concat(e?"":"empty"," ").concat(i?"today":""," ").concat(r.length>0?"has-posts":""),onClick:()=>((e,t)=>{e&&0!==t.length&&window.innerWidth<=480&&u({date:e,posts:t})})(e,r),children:e&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"calendar-date",children:e.getDate()}),r.length>0&&(0,Xo.jsxs)("div",{className:"calendar-posts",children:[r.slice(0,2).map((e=>(0,Xo.jsx)("div",{className:"calendar-post clickable status-".concat(e.status||"scheduled"),onClick:()=>m(e),children:(0,Xo.jsx)("span",{className:"calendar-post-time",children:new Date(e.scheduledTime).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})},e._id))),r.length>2&&(0,Xo.jsxs)("span",{className:"calendar-more",children:["+",r.length-2]})]})]})},t)}))})]}),n.length>0&&(0,Xo.jsxs)("div",{className:"calendar-upcoming",children:[(0,Xo.jsx)("h4",{className:"calendar-upcoming-title",children:e("upcomingClips")}),(0,Xo.jsx)("div",{className:"calendar-upcoming-list",children:n.filter((e=>"scheduled"===e.status)).slice(0,5).map((t=>(0,Xo.jsxs)("div",{className:"calendar-upcoming-item clickable",children:[(0,Xo.jsx)("span",{className:"calendar-upcoming-status status-".concat(t.status||"scheduled")}),(0,Xo.jsxs)("div",{className:"calendar-upcoming-info",onClick:()=>m(t),children:[(0,Xo.jsx)("span",{className:"calendar-upcoming-title-text",children:t.clipTitle||e("untitledCl
2ip")}),(0,Xo.jsx)("span",{className:"calendar-upcoming-time",children:new Date(t.scheduledTime).toLocaleString()})]}),(0,Xo.jsx)("button",{className:"calendar-upcoming-cancel",onClick:e=>{e.stopPropagation(),(e=>{c(e)})(t)},children:e("common:cancel")})]},t._id)))})]}),0===n.length&&(0,Xo.jsxs)("div",{className:"calendar-empty",children:[(0,Xo.jsx)("p",{children:e("noScheduledClipsThisMonth")}),(0,Xo.jsx)("p",{className:"calendar-empty-hint",children:e("scheduleClipsHint")})]}),s&&(0,Xo.jsx)(fV,{post:s,onClose:()=>o(null),onUpdate:()=>{p(),o(null)}}),(0,Xo.jsx)(gV,{isOpen:!!l,onClose:()=>c(null),onConfirm:async()=>{if(l){try{await ks.delete("/scheduled-posts/".concat(l._id)),p(),Vo.success(e("postCancelled"))}catch(K6){Vo.error(e("failedToCancelPost"))}c(null)}},title:e("cancelScheduledPostConfirm"),itemName:(null===l||void 0===l?void 0:l.clipTitle)||e("untitledClip"),message:e("cancelPostMessage"),confirmText:e("cancelPost"),cancelText:e("keepIt"),variant:"warning"}),d&&(0,Xo.jsx)("div",{className:"calendar-day-sheet-overlay",onClick:()=>u(null),children:(0,Xo.jsxs)("div",{className:"calendar-day-sheet",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"calendar-day-sheet-header",children:[(0,Xo.jsx)("h4",{children:d.date.toLocaleDateString("default",{weekday:"long",month:"short",day:"numeric"})}),(0,Xo.jsx)("button",{className:"calendar-day-sheet-close",onClick:()=>u(null),children:(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Xo.jsx)("div",{className:"calendar-day-sheet-posts",children:d.posts.map((t=>(0,Xo.jsxs)("div",{className:"calendar-day-sheet-post",onClick:()=>{u(null),m(t)},children:[(0,Xo.jsx)("span",{className:"calendar-day-sheet-status status-".concat(t.status||"scheduled")}),(0,Xo.jsxs)("div",{className:"calendar-day-sheet-info",children:[(0,Xo.jsx)("span",{className:"calendar-day-sheet-title",children:t.clipTitle||e("untitledClip")}),(0,Xo.jsx)("span",{className:"calendar-day-sheet-time",children:new Date(t.scheduledTime).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"9 18 15 12 9 6"})})]},t._id)))})]})})]})}function bV(){return(0,Xo.jsxs)("div",{className:"calendar-page",children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"calendar-leftbar-wrapper",children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsx)("div",{className:"calendar-content",children:(0,Xo.jsx)(vV,{})})]})}const yV="By checking this box, I agree to receive recurring SMS clip-ready alerts and marketing texts from Clipbait at the number above. You are opting into marketing texts. Message frequency may vary. Standard message and data rates may apply. Reply STOP to opt out. Reply HELP for help. We will not share your mobile information with third parties for promotional or marketing purposes.",xV=/(youtube\.com|youtu\.be)\//i,SV=[{value:"gaming",labelKey:"contentTypes.gaming"},{value:"talking_head",labelKey:"contentTypes.podcastTalkingHead"},{value:"irl",labelKey:"contentTypes.irlVlog"},{value:"music",labelKey:"contentTypes.music"},{value:"documentary",labelKey:"contentTypes.documentary"}],kV=()=>{var e,t,n,r,i,a,s,l;const{t:c}=Ae("clips"),d=Vt(),u=Wt(),{user:h}=(0,$.useContext)(Qo),[p,m]=(0,$.useState)((()=>"library"===new URLSearchParams(window.location.search).get("tab")?"library":"home"));(0,$.useEffect)((()=>{const e=new URLSearchParams(u.search).get("tab");m("library"===e?"library":"home")}),[u.search]),(0,$.useEffect)((()=>{F(null),U(null),V(!1)}),[u.pathname,u.search]),(0,$.useEffect)((()=>{const e=new URLSearchParams(u.search);for(const[n,r]of[["twitch","Twitch"],["kick","Kick"],["youtube","YouTube"]]){const t=e.get(n);t&&("connected"===t?Vo.success("".concat(r," connected \u2014 we'll auto-clip every stream.")):"denied"===t?Vo("".concat(r," connection cancelled.")):"switch"===t?Vo.error("Disconnect your current channel before connecting ".concat(r,"."),{duration:4e3}):Vo.error("Couldn't connect ".concat(r,". Try again.")),e.delete(n))}const t=e.toString();window.history.replaceState({},"",t?"".concat(u.pathname,"?").concat(t):u.pathname)}),[]),(0,$.useEffect)((()=>
2{if("home"!==p)return;const e=[document.documentElement,document.body],t=e.map((e=>e.style.overflow));return e.forEach((e=>{e.style.overflow="hidden"})),()=>{e.forEach(((e,n)=>{e.style.overflow=t[n]}))}}),[p]),(0,$.useEffect)((()=>{const e=new URLSearchParams(u.search);if("1"===e.get("editedClip")){Vo.success("Saved! Your edited clip is ready."),e.delete("editedClip");const t=e.toString();window.history.replaceState({},"",t?"".concat(u.pathname,"?").concat(t):u.pathname)}}),[]),(0,$.useEffect)((()=>{"calendar"===p&&window.dispatchEvent(new Event("refetch_calendar"))}),[p]);const[f,g]=(0,$.useState)(!1);(0,$.useEffect)((()=>{null!==h&&void 0!==h&&h._id&&ks.get("/users?userId=".concat(h._id)).then((e=>{var t;const n=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.referralBonusStatus;n&&P(n)})).catch((()=>{}))}),[null===h||void 0===h?void 0:h._id]);const[v,b]=(0,$.useState)(!1),[y,x]=(0,$.useState)(!1),[S,k]=(0,$.useState)(!1),[w,T]=(0,$.useState)({open:!1}),[C,E]=(0,$.useState)(!1),[j,A]=(0,$.useState)(""),[N,P]=(0,$.useState)("none"),[R,L]=(0,$.useState)(null),[I,D]=(0,$.useState)(null),[O,M]=(0,$.useState)(!1),[_,F]=(0,$.useState)(null),[B,U]=(0,$.useState)(null),z=(0,$.useRef)(null),[G,W]=(0,$.useState)(null),[H,V]=(0,$.useState)(!1),[K,q]=(0,$.useState)(0),[Y,X]=(0,$.useState)(!1),[J,Q]=(0,$.useState)(!1),[Z,ee]=(0,$.useState)(!1),[te,ne]=(0,$.useState)(!1),re=((0,$.useRef)(null),(0,$.useRef)(null)),[ie,ae]=(0,$.useState)(null),[se,oe]=(0,$.useState)(null),[le,ce]=(0,$.useState)(null),de=()=>{"russell"===j?k(!0):M(!0)},[ue,he]=(0,$.useState)(!1),[pe,me]=(0,$.useState)(""),[fe,ge]=(0,$.useState)(!1),[ve,be]=(0,$.useState)(null),[ye,xe]=(0,$.useState)(""),[Se,ke]=(0,$.useState)(null),[we,Te]=(0,$.useState)(null),[Ce,Ee]=(0,$.useState)([]),[je,Ne]=(0,$.useState)(!0),[Pe,Re]=(0,$.useState)({}),[Le,Ie]=(0,$.useState)({}),[De,Oe]=(0,$.useState)(!1),[Me,_e]=(0,$.useState)(""),[Fe,Be]=(0,$.useState)(null),[Ue,ze]=(0,$.useState)(null),Ge=(0,$.useRef)(null),We=(0,$.useRef)(null),He=(0,$.useRef)(null),[Ve,Ke]=(0,$.useState)([]),[qe,Ye]=(0,$.useState)(null),[Xe,Je]=(0,$.useState)(!1),[Qe,Ze]=(0,$.useState)(!1),[$e,et]=(0,$.useState)(!1),[tt,nt]=(0,$.useState)(!1),[rt,it]=(0,$.useState)(""),[at,st]=(0,$.useState)(null),[ot,lt]=(0,$.useState)(null),[ct,dt]=(0,$.useState)(null),[ut,ht]=(0,$.useState)(null),[pt,mt]=(0,$.useState)("talking_head"),[ft,gt]=(0,$.useState)("9:16"),[vt,bt]=(0,$.useState)("auto"),[yt,xt]=(0,$.useState)(!1),St="auto"===vt?9:vt,[kt,wt]=(0,$.useState)("streamer"),[Tt,Ct]=(0,$.useState)(!0),[Et,jt]=(0,$.useState)(!0),[At,Nt]=(0,$.useState)(!0),Pt="streamer"===kt,Rt=!("streamer"===kt&&"16:9"===ft),Lt=Tt&&Rt,It=Et&&Rt,[Dt,Ot]=(0,$.useState)(null),[Mt,_t]=(0,$.useState)(!1),[Ft,Bt]=(0,$.useState)(null),[Ut,zt]=(0,$.useState)(null);(0,$.useEffect)((()=>{Number.isFinite(Dt)&&Dt>0?(Bt(0),zt(Dt)):(Bt(null),zt(null))}),[Dt]);const[Gt,Ht]=(0,$.useState)(null),[Kt,qt]=(0,$.useState)(null),[Yt,Xt]=(0,$.useState)(0),[Jt,Qt]=(0,$.useState)(null),[Zt,$t]=(0,$.useState)([]),[en,tn]=(0,$.useState)(null),[nn,rn]=(0,$.useState)(!1),[an,sn]=(0,$.useState)(""),[on,ln]=(0,$.useState)(!1),[cn,dn]=(0,$.useState)(!1),[un,hn]=(0,$.useState)(!1),[pn,mn]=(0,$.useState)(null);(0,$.useEffect)((()=>{0===Gt&&R&&"none"!==R&&he(!0)}),[Gt,R]);const[fn,gn]=(0,$.useState)([]),[vn,bn]=(0,$.useState)((()=>{try{return JSON.parse(localStorage.getItem("clipbait_liked")||"[]")}catch(e){return[]}})),[yn,xn]=(0,$.useState)(null),[Sn,kn]=(0,$.useState)(0);(0,$.useEffect)((()=>{const e=parseInt(localStorage.getItem("clipbait_streak_count")||"0"),t=localStorage.getItem("clipbait_streak_last"),n=(new Date).toDateString(),r=new Date(Date.now()-864e5).toDateString();t!==n&&t!==r||kn(e)}),[]);const wn=()=>{const e=(new Date).toDateString(),t=localStorage.getItem("clipbait_streak_last"),n=parseInt(localStorage.getItem("clipbait_streak_count")||"0");if(t===e)return;const r=t===new Date(Date.now()-864e5).toDateString()?n+1:1;localStorage.setItem("clipbait_streak_last",e),localStorage.setItem("clipbait_streak_count",String(r)),kn(r)},[Tn,Cn]=(0,$.useState)("url"),[En,jn]=(0,$.useState)(null),[An,Nn]=(0,$.useState)(0),[Pn,Rn]=(0,$.useState)(!1),[Ln,In]=(0,$.useState)(!1);(0,$.useEffect)((()=>
2{if(!En)return void Ot(null);_t(!0);const e=document.createElement("video");e.preload="metadata",e.muted=!0;const t=URL.createObjectURL(En);return e.onloadedmetadata=()=>{Number.isFinite(e.duration)&&Ot(e.duration),_t(!1),URL.revokeObjectURL(t)},e.onerror=()=>{Ot(null),_t(!1),URL.revokeObjectURL(t)},e.src=t,()=>{try{URL.revokeObjectURL(t)}catch(vo){}}}),[En]),(0,$.useEffect)((()=>{if("url"!==Tn)return;if(!pe||!/^https?:\/\//i.test(pe))return Ot(null),void _t(!1);_t(!0);const e=setTimeout((async()=>{try{var e,t;const n=await ks.post("/clips/probe-url",{url:pe});Ot(null!==(e=null===(t=n.data)||void 0===t?void 0:t.durationSeconds)&&void 0!==e?e:null)}catch(vo){Ot(null)}finally{_t(!1)}}),500);return()=>clearTimeout(e)}),[pe,Tn]);const[Dn,On]=(0,$.useState)(0),Mn=[c("pasteYouTubeLivestream"),c("pasteRumbleLivestream"),c("pasteGanjingWorldLink"),c("pasteKickLink"),c("pasteTwitchLink"),c("pasteXLink")],_n=(0,$.useCallback)((async(e,t)=>{if(e&&void 0===Pe[t]&&(e.includes("youtube.com")||e.includes("youtu.be")))try{const r="https://www.youtube.com/oembed?url=".concat(encodeURIComponent(e),"&format=json"),i=await fetch(r);if(i.ok){const r=await i.json();if(r.title){var n;Re((e=>o(o({},e),{},{[t]:r.title})));const i=null===(n=e.match(/(?:v=|youtu\.be\/)([^&?]+)/))||void 0===n?void 0:n[1];return void(i&&Ie((e=>o(o({},e),{},{[t]:"https://img.youtube.com/vi/".concat(i,"/hqdefault.jpg")}))))}}const a=await fetch("https://noembed.com/embed?url=".concat(encodeURIComponent(e))),s=await a.json();Re((e=>o(o({},e),{},{[t]:s.title||null}))),s.thumbnail_url&&Ie((e=>o(o({},e),{},{[t]:s.thumbnail_url})))}catch(K6){console.log("Could not fetch video info:",K6),Re((e=>o(o({},e),{},{[t]:null})))}}),[Pe]);(0,$.useEffect)((()=>{const e=new URLSearchParams(u.search);e.get("connected")&&(Vo.success(c("common:connectedTo",{platform:e.get("connected")})),d("/",{replace:!0})),e.get("plan_success")&&(Vo.success(c("common:planActivated")),L("Starter"),d("/",{replace:!0}))}),[u.search,d]),(0,$.useEffect)((()=>{(async()=>{try{(await ks.get("/users/me/onboarding")).data.completed||b(!0)}catch(K6){}finally{x(!0)}})()}),[]);const Fn=(0,$.useCallback)((async()=>{try{var e;const n=(null===(e=(await ks.get("/live")).data)||void 0===e?void 0:e.sessions)||[];Ke(n);const r=n.find((e=>("active"===e.status||"starting"===e.status)&&String(e._id)!==Ge.current));if(r)return We.current=String(r._id),Be(r),void ze(null);Be(null);const i=We.current;if(i&&He.current!==i){var t;const e=n.find((e=>String(e._id)===i&&"ended"===e.status)),r=e&&("credits"===e.endedReason||"stream-ended"===e.endedReason&&((null===(t=e.clips)||void 0===t?void 0:t.length)||0)>0);ze(r?e:null)}}catch(n){}}),[]);(0,$.useEffect)((()=>{Fn()}),[Fn]),(0,$.useEffect)((()=>{let e=null;const t=()=>{e||(e=setInterval(Fn,2e4))},n=()=>{e&&(clearInterval(e),e=null)},r=()=>{"visible"===document.visibilityState?(Fn(),t()):n()};return"visible"===document.visibilityState&&t(),document.addEventListener("visibilitychange",r),()=>{n(),document.removeEventListener("visibilitychange",r)}}),[Fn]),(0,$.useEffect)((()=>{Fe&&("active"===Fe.status||"starting"===Fe.status)&&!J&&X(!0),Fe||(X(!1),Q(!1))}),[Fe,J]),(0,$.useEffect)((()=>{(async()=>{try{var e,t,n,r,i,a,s,o;const l=await ks.get("/billing/plan/status");L((null===(e=l.data)||void 0===e?void 0:e.plan)||"none"),D((null===(t=l.data)||void 0===t?void 0:t.interval)||null),"number"===typeof(null===(n=l.data)||void 0===n?void 0:n.generationsRemaining)&&Ht(l.data.generationsRemaining),"number"===typeof(null===(r=l.data)||void 0===r?void 0:r.creditsPeriodTotal)&&qt(l.data.creditsPeriodTotal),"number"===typeof(null===(i=l.data)||void 0===i?void 0:i.credits)&&Xt(l.data.credits),void 0!==(null===(a=l.data)||void 0===a?void 0:a.nextExpiringGrant)&&Qt(l.data.nextExpiringGrant),Array.isArray(null===(s=l.data)||void 0===s?void 0:s.activeGrants)&&$t(l.data.activeGrants),void 0!==(null===(o=l.data)||void 0===o?void 0:o.phoneNumber)&&tn(l.data.phoneNumber)}catch(vo){L("none")}})()}),[]);const Bn=async e=>{if(!en&&!cn)return mn((()=>e)),void rn(!0);await e()},Un=async()=>{if(an.trim())if(un){ln(!0);try{const e=await ks.post("/sms/phone",{phoneNumber:an,smsConsent:!0,consentLanguage:yV});tn(e.data.phoneNumber),Vo.success("Phone saved \u2014 we'll text you when clips are ready"),rn(!1),sn(""),hn(!1);const t=pn;mn(null),t&&await t()}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Couldn't save phone")}finally{ln(!1)}}else Vo.error("Please check the consent box to receive texts");else Vo.error("Enter a phone number")},zn=async()=>{dn(!0),rn(!1),sn(""),hn(!1);const e=pn;mn(null),e&&await e()};(0,$.useEffect)((()=>{(async()=>{try{var e,t,n,r,i,a,s,o,l,c,d,u;const h=await ks.get("/users/me/creator-settings");null!==(e=h.data)&&void 0!==e&&e.creatorSettings&&(be(h.data.creatorSettings.platform||null),xe(h.data.creatorSettings.channelUsername||""),h.data.creatorSettings.streamType&&mt(h.data.creatorSettings.streamType)),null!==(t=h.data)&&void 0!==t&&t.activeBrand
2Id&&Te(h.data.activeBrandId),null!==(n=h.data)&&void 0!==n&&n.profilePicture&&ke(h.data.profilePicture),ae(null!==(r=h.data)&&void 0!==r&&null!==(i=r.socialConnections)&&void 0!==i&&null!==(a=i.twitch)&&void 0!==a&&a.connected?h.data.socialConnections.twitch:null),oe(null!==(s=h.data)&&void 0!==s&&null!==(o=s.socialConnections)&&void 0!==o&&null!==(l=o.kick)&&void 0!==l&&l.connected?h.data.socialConnections.kick:null);const p=null===(c=h.data)||void 0===c||null===(d=c.socialConnections)||void 0===d?void 0:d.youtube;ce(null!==p&&void 0!==p&&p.connected&&null!==p&&void 0!==p&&p.autoClip?p:null),null!==(u=h.data)&&void 0!==u&&u.referralSource&&A(h.data.referralSource)}catch(K6){}})()}),[v]),(0,$.useEffect)((()=>{if(!Z)return;const e=e=>{re.current&&!re.current.contains(e.target)&&(ee(!1),me(""))},t=setTimeout((()=>document.addEventListener("pointerdown",e)),0);return()=>{clearTimeout(t),document.removeEventListener("pointerdown",e)}}),[Z]),(0,$.useEffect)((()=>{te&&En&&(ne(!1),Bn((()=>Xn())))}),[te,En]),(0,$.useEffect)((()=>{const e=setInterval((()=>{On((e=>(e+1)%Mn.length))}),3e3);return()=>clearInterval(e)}),[Mn.length]);const Gn=()=>ye?"rumble"===ve?"rumble.com/".concat(ye):"youtube"===ve?"youtube.com/@".concat(ye):"twitch"===ve?"twitch.tv/".concat(ye):"x"===ve?"x.com/".concat(ye):"kick"===ve?"kick.com/".concat(ye):"ganjing"===ve?"ganjingworld.com/@".concat(ye):"own"===ve?"@".concat(ye):ye:"",Wn=(0,$.useCallback)((async()=>{Ne(!0);const e=performance.now();try{var t;const n=await ks.get("/clips/jobs"),r=n.data.jobs||[],i=Math.round(performance.now()-e),a=JSON.stringify(n.data).length,s=r.reduce(((e,t)=>{var n;return e+((null===(n=t.clips)||void 0===n?void 0:n.length)||0)}),0);console.log("[lib] /clips/jobs \u2192 ".concat(r.length," jobs / ").concat(s," clips \xb7 ").concat((a/1024).toFixed(0),"KB \xb7 round-trip ").concat(i,"ms")+(null!==(t=n.headers)&&void 0!==t&&t["x-jobs-query-ms"]?" (server query ".concat(n.headers["x-jobs-query-ms"],"ms)"):"")),Ee(r)}catch(K6){console.error("[lib] /clips/jobs FAILED after ".concat(Math.round(performance.now()-e),"ms:"),(null===K6||void 0===K6?void 0:K6.message)||K6)}finally{Ne(!1)}}),[]);(0,$.useEffect)((()=>{Wn()}),[Wn]);const[Hn,Vn]=(0,$.useState)([]);(0,$.useEffect)((()=>{let e=!1;return ks.get("/music-tracks/catalog").then((t=>{var n;e||Vn((null===(n=t.data)||void 0===n?void 0:n.tracks)||[])})).catch((()=>{})),()=>{e=!0}}),[]),(0,$.useEffect)((()=>{Ce.forEach((e=>{e.videoUrl&&"youtube"===e.platform&&void 0===Pe[e._id]&&_n(e.videoUrl,e._id)}))}),[Ce,_n,Pe]),(0,$.useEffect)((()=>{const e=Ce.filter((e=>"queued"===e.status||"processing"===e.status));0!==e.length&&"Notification"in window&&"default"===Notification.permission&&Notification.requestPermission()}),[Ce]),(0,$.useEffect)((()=>{const e=window.visualViewport;if(!e)return;const t=()=>{const t=Math.max(0,window.innerHeight-e.height-e.offsetTop);document.documentElement.style.setProperty("--keyboard-inset","".concat(t,"px"))};return e.addEventListener("resize",t),e.addEventListener("scroll",t),t(),()=>{e.removeEventListener("resize",t),e.removeEventListener("scroll",t),document.documentElement.style.removeProperty("--keyboard-inset")}}),[]),(0,$.useEffect)((()=>{const e=Ce.filter((e=>"queued"===e.status||"processing"===e.status));if(0===e.length)return;const t=async e=>{try{const t=await ks.get("/clips/status/"+e._id),{status:n,progress:r,clips:i,currentStep:a,videoTitle:s,videoThumbnail:l,videoAuthor:d,videoDuration:u,etaSeconds:h}=t.data;Ee((t=>t.map((t=>{if(t._id===e._id){const e=s&&!t.videoTitle||l&&!t.videoThumbnail,p=o(o({},t),{},{status:n,progress:r||0,currentStep:a,clips:i||t.clips,videoTitle:s||t.videoTitle,videoThumbnail:l||t.videoThumbnail,videoAuthor:d||t.videoAuthor,videoDuration:u||t.videoDuration,etaSeconds:"number"===typeof h?h:t.etaSeconds,_metadataLoaded:e||t._metadataLoaded});return"completed"===n&&"completed"!==t.status&&(null===i||void 0===i?void 0:i.length)>0?(Vo.success(c("clipsReady",{count:i.length})),"Notification"in window&&"granted"===Notification.permission&&new Notification("Your clips are ready! \ud83c\udfac",{body:1===i.length?"1 clip is ready to view.":i.length+" clips are ready to view.",icon:"/logo192.png"})):"failed"===n&&t.status,p}return t})))),(null===qe||void 0===qe?void 0:qe._id)===e._id&&(Ye((e=>o(o({},e),{},{status:n,progress:r||0,currentStep:a,clips:i||(null===e||void 0===e?void 0:e.clips),videoTitle:s||(null===e||void 0===e?void 0:e.videoTitle),videoThumbnail:l||(null===e||void 0===e?void 0:e.videoThumbnail),videoAuthor:d||(null===e||void 0===e?void 0:e.videoAuthor),videoDuration:u||(null===e||void 0===e?void 0:e.videoDuration),etaSeconds:"number"===typeof h?h:null===e||void 0===e?void 0:e.etaSeconds}))),"completed"===n&&(null===i||void 0===i?void 0:i.length)>0&&(Je(!1),Ze(!0)))}catch(K6){console.error("Status poll error:",K6)}};e.forEach((e=>{"rumble"!==e.platform||e.videoTitle||e._metadataLoaded||t(e)}));const n=setInterval((async()=>{for(const n of e)await t(n)}),5e3);return()=>clearInterval(n)}),[Ce,qe]);const Kn=e=>{Oe(!1),xV.test(e||"")?(Vo.success("That stream already ended \u2014 clipping the replay instead."),qn(e,{forceVod:!0})):Vo.error("That channel isn't live right now. Paste a VOD link to clip a past stream.")},qn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!==h&&void 0!==h&&h.isDemo)return void Vo.error("Demo accounts can't generate clips. Log out and sign up to create your own.",{duration:5e3});if("none"===R&&!(Yt>0))return void de();const n=e||pe;
2if(!n)return Vo.error(c("pasteVideoLinkFirst"),{duration:3500});if(!pt)return Vo.error(c("selectContentTypeFirst"),{duration:3500});if(!ve)return Vo.error(c("selectPlatformInSettings"),{duration:3500});const r=n.includes("twitch.tv/")&&!n.includes("/videos/"),i=n.includes("kick.com/")&&!n.includes("/videos/"),a=(n.includes("youtube.com")||n.includes("youtu.be"))&&/\/live(\/|\?|$)/.test(n);if(!t.forceVod&&(r||i||a))return void(async e=>{if(["Pro","Premium"].includes(R)||xV.test(e||"")){ee(!1),Be({_id:"pending",status:"starting",channelUrl:e,clips:[],streamerName:e.split("/").filter(Boolean).pop()||""}),Q(!1),X(!0);try{await ks.post("/live/start",{videoUrl:e,aspectRatio:ft,burnHookTitle:Lt,burnSubtitles:It,burnWatermark:At}),await Fn()}catch(K6){var t,n,r,i,a,s;const l=null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error;if("live_already_running"===l)return void await Fn();Be(null),X(!1),"not_live"===l?Kn(e):"pro_required"===l?de():"out_of_credits"===l?(Vo.error("You're out of credits."),de()):Vo.error((null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||(null===(a=K6.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.error)||"Couldn't start live clipping")}}else de()})(n);const s=Gn();if(!s)return Vo.error(c("setChannelUsername"),{duration:3500});const l=(e=>e.includes("youtube.com")||e.includes("youtu.be")?"youtube":e.includes("rumble.com")?"rumble":e.includes("twitch.tv")?"twitch":e.includes("kick.com")?"kick":e.includes("twitter.com")||e.includes("x.com")?"x":ve)(n);W({jobId:null,brandImage:Se,title:s}),V(!0),q(0),ee(!1),me(""),ge(!0);try{const e=await ks.post("/clips/generate",o({videoUrl:n,streamerName:s,platform:l,contentType:pt,aspectRatio:"coach"===kt?"9:16":ft,maxClips:St,mode:kt,renderRequested:!1,burnHookTitle:Lt,burnSubtitles:It,burnWatermark:At},Number.isFinite(Dt)&&null!=Ft&&(Ft>0||Ut<Dt-1)?{clipRangeStartSec:Math.floor(Ft),clipRangeEndSec:Math.floor(Ut)}:{})),t={_id:e.data.jobId,videoUrl:n,streamerName:s,platform:l,brandId:we,status:"queued",progress:0,maxClips:St,mode:kt,renderRequested:!1,aspectRatio:ft,createdAt:(new Date).toISOString()};Ee((e=>[t,...e])),wn(),Ht((e=>null!==e?Math.max(0,e-1):null)),W((t=>t?o(o({},t),{},{jobId:e.data.jobId}):{jobId:e.data.jobId,brandImage:Se,title:s})),"youtube"===l&&_n(n,e.data.jobId),Vo.dismiss(),Vo.success(c("clippingStarted")),me("")}catch(K6){var d,u;W(null),V(!1);const t=null===(d=K6.response)||void 0===d||null===(u=d.data)||void 0===u?void 0:u.error;if("free_limit"===t)de();else if("out_of_credits"===t)he(!0);else if("limit_reached"===t){var p,m;it((null===(p=K6.response)||void 0===p||null===(m=p.data)||void 0===m?void 0:m.message)||c("reachedUploadLimit"));try{var f;const e=await ks.get("/billing/plan/status");null!==(f=e.data)&&void 0!==f&&f.currentPeriodEnd?st(new Date(e.data.currentPeriodEnd)):st(null)}catch(vo){st(null)}nt(!0)}else{var g,v,b,y;Vo.error((null===(g=K6.response)||void 0===g||null===(v=g.data)||void 0===v?void 0:v.message)||(null===(b=K6.response)||void 0===b||null===(y=b.data)||void 0===y?void 0:y.error)||c("failedToStartClipping"))}}ge(!1)},Yn=2147483648,Xn=async()=>{if(null!==h&&void 0!==h&&h.isDemo)return void Vo.error("Demo accounts can't generate clips. Log out and sign up to create your own.",{duration:5e3});if("none"===R&&!(Yt>0))return void de();if(!En)return Vo.error(c("selectVideoFileFirst"),{duration:3500});if(!pt)return Vo.error(c("selectContentTypeFirst"),{duration:3500});if(!ve)return Vo.error(c("selectPlatformInSettings"),{duration:3500});const e=Gn();if(!e)return Vo.error(c("setChannelUsername"),{duration:3500});ge(!0),Nn(0);try{const t=await ks.post("/clips/upload-url",{filename:En.name,fileType:En.type}),{url:n,s3Key:r}=t.data;await new Promise(((e,t)=>{const r=new XMLHttpRequest;r.open("PUT",n),r.setRequestHeader("Content-Type",En.type),r.upload.onprogress=e=>{e.lengthComputable&&Nn(Math.round(e.loaded/e.total*100))},r.onload=()=>{r.status>=200&&r.status<300?e():t(new Error("Upload failed with status ".concat(r.status)))},r.onerror=()=>t(new Error("Upload failed")),r.send(En)}));const i=await ks.post("/clips/generate-from-upload",{s3Key:r,filename:En.name,fileSize:En.size,streamerName:e,platform:ve,contentType:pt,as
2pectRatio:"coach"===kt?"9:16":ft,maxClips:St,mode:kt,renderRequested:!1,burnHookTitle:Lt,burnSubtitles:It,burnWatermark:At}),a={_id:i.data.jobId,videoUrl:"",streamerName:e,platform:ve,brandId:we,videoSource:"upload",originalFilename:En.name,status:"queued",progress:0,maxClips:St,aspectRatio:ft,createdAt:(new Date).toISOString()};Ee((e=>[a,...e])),wn(),Ht((e=>null!==e?Math.max(0,e-1):null)),W({jobId:i.data.jobId,brandImage:Se,title:En.name}),V(!0),q(0),ee(!1),Vo.dismiss(),Vo.success(c("uploadCompleteClippingStarted")),jn(null),Nn(0)}catch(K6){var t,n;const u=null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error;if("free_limit"===u)de();else if("out_of_credits"===u)he(!0);else if("limit_reached"===u){var r,i;it((null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||c("reachedUploadLimit"));try{var a;const e=await ks.get("/billing/plan/status");null!==(a=e.data)&&void 0!==a&&a.currentPeriodEnd?st(new Date(e.data.currentPeriodEnd)):st(null)}catch(vo){st(null)}nt(!0)}else{var s,o,l,d;Vo.error((null===(s=K6.response)||void 0===s||null===(o=s.data)||void 0===o?void 0:o.message)||(null===(l=K6.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.error)||c("uploadFailed"))}}ge(!1)},Jn=()=>{Je(!1),Ze(!1),Ye(null)},Qn=(e,t,n)=>{xn({clip:e,job:t,clipIndex:n})},Zn=(e,t)=>{t.stopPropagation(),gn((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))},$n=(e,t)=>{t.stopPropagation(),bn((t=>{const n=t.includes(e)?t.filter((t=>t!==e)):[...t,e];return localStorage.setItem("clipbait_liked",JSON.stringify(n)),n}))},er=async(e,t,n,r)=>{r.stopPropagation();try{const t=await ks.get("/clips/download-url",{params:{url:e.url,filename:e.hook||"clip-".concat(n+1)}});window.location.href=t.data.url}catch(K6){Vo.error("Download failed")}},tr=(e,t,n,r)=>{r.stopPropagation(),dt({clip:e,job:t,clipIndex:n}),et(!0)},nr=e=>"youtube"===e.platform?Pe[e._id]:e.videoTitle,rr=e=>"youtube"===e.platform&&Le[e._id]?Le[e._id]:e.videoThumbnail?e.videoThumbnail:Se||(null===h||void 0===h?void 0:h.profilePicture)||null,ir=Ce.filter((e=>"cancelled"!==e.status)),ar=(ir.length,Gn()),sr=we?Ce.filter((e=>{var t,n;return e.brandId?e.brandId===we||(null===(t=e.brandId)||void 0===t?void 0:t.toString())===(null===we||void 0===we?void 0:we.toString()):ar&&(null===(n=e.streamerName)||void 0===n?void 0:n.toLowerCase())===ar.toLowerCase()})):ar?Ce.filter((e=>{var t;return(null===(t=e.streamerName)||void 0===t?void 0:t.toLowerCase())===ar.toLowerCase()})):[],or=we?(Ve||[]).filter((e=>{var t;return e.brandId?String(e.brandId)===String(we):ar&&(null===(t=e.streamerName)||void 0===t?void 0:t.toLowerCase())===ar.toLowerCase()})):Ve||[],lr=(e,t)=>new Date(t.createdAt||0).getTime()-new Date(e.createdAt||0).getTime(),cr=sr.filter((e=>"queued"===e.status||"processing"===e.status)),dr=sr.filter((e=>"completed"===e.status)).sort(lr),ur=sr.filter((e=>"failed"===e.status)).sort(lr),hr=or.filter((e=>{var t;return((null===(t=e.clips)||void 0===t?void 0:t.length)||0)>0})).map((e=>({_id:e._id,status:"completed",mode:"streamer",isLive:!0,aspectRatio:e.aspectRatio||"9:16",createdAt:e.lastClipAt||e.createdAt,clips:e.clips||[],videoTitle:e.videoTitle,streamerName:e.streamerName}))),pr=[...dr,...cr.filter((e=>{var t;return(null===(t=e.clips)||void 0===t?void 0:t.length)>0})),...hr].sort(lr).flatMap((e=>{const t=(e.clips||[]).map(((t,n)=>({clip:t,job:e,clipIndex:n})));return e.isLive&&t.sort(((e,t)=>(t.clip.broadcastStartSec||0)-(e.clip.broadcastStartSec||0))),t})),mr=null!==G&&void 0!==G&&G.jobId?Ce.find((e=>e._id===G.jobId)):null,fr=(null===mr||void 0===mr?void 0:mr.progress)||0,gr=(null===mr||void 0===mr||null===(e=mr.clips)||void 0===e?void 0:e.length)||0,vr="completed"===(null===mr||void 0===mr?void 0:mr.status),br="failed"===(null===mr||void 0===mr?void 0:mr.status);(0,$.useEffect)((()=>{null!==G&&void 0!==G&&G.jobId&&q(gr)}),[gr,null===G||void 0===G?void 0:G.jobId]);const yr=Fe||Ue,xr=(null===yr||void 0===yr||null===(t=yr.clips)||void 0===t?void 0:t.length)||0,Sr=(0,$.useRef)(null),[kr,wr]=(0,$.useState)(0);(0,$.useEffect)((()=>{if(!yr)return Sr.current=null,void wr(0);if(null!==Sr.current){if(xr>Sr.current){const e=xr-Sr.current;Sr.current=xr,"library"!==p&&wr((t=>t+e))}}else Sr.current=xr}),[yr,xr,p]),(0,$.useEffect)((()=>
2{"library"===p&&(q(0),wr(0),G&&vr&&(W(null),V(!1)),Ue&&(He.current=String(Ue._id),ze(null)))}),[p,vr]),(0,$.useEffect)((()=>{try{const e="library"===p?0:K+kr;localStorage.setItem("cb_new_clips",String(e)),window.dispatchEvent(new Event("cb_new_clips"))}catch(e){}}),[K,kr,p]);const Tr=pr.map((e=>{let{job:t,clipIndex:n}=e;return"".concat(t._id,"-").concat(n)}));Tr.length>0&&(fn.length,Tr.length);if(v)return(0,Xo.jsx)(_H,{onComplete:e=>{b(!1);const t=!!R&&"none"!==R;"pending"!==(null===e||void 0===e?void 0:e.referralBonusStatus)||t?"russell"!==(null===e||void 0===e?void 0:e.referralSource)||t?"none"!==R||Yt>0||M(!0):k(!0):(P("pending"),M(!0))}});if(!y)return(0,Xo.jsx)("div",{className:"foryou-page",children:(0,Xo.jsx)("div",{className:"foryou-loading-screen",children:(0,Xo.jsx)("img",{src:"/favicon.png",alt:"Clipbait",className:"foryou-loading-logo"})})});const Cr=("none"===R||null===R)&&0===Yt,Er="pending"===N&&!(!!R&&"none"!==R);return(0,Xo.jsxs)("div",{className:"foryou-page".concat(Er||Cr&&null!==R?" has-trial-banner":"").concat("home"===p?" foryou-home-locked":""),onDrop:e=>{var t;e.preventDefault(),e.stopPropagation(),Rn(!1);const n=null===(t=e.dataTransfer.files)||void 0===t?void 0:t[0];if(!n)return;["video/mp4","video/quicktime"].includes(n.type)?n.size>Yn?Vo.error(c("fileMustBeUnder2GB")):(Cn("upload"),jn(n)):Vo.error(c("onlyMp4MovSupported"))},onDragOver:e=>{e.preventDefault(),e.stopPropagation(),Rn(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),Rn(!1)},children:[Er&&(0,Xo.jsxs)("div",{className:"own-pending-banner",children:[(0,Xo.jsx)("span",{className:"own-pending-banner-text",children:"\ud83c\udf81 Go Pro and unlock 150 bonus credits. Your first stream, on us. Credits never expire."}),(0,Xo.jsx)("button",{className:"own-pending-banner-btn",onClick:()=>de(),children:c("common:upgrade")})]}),Cr&&null!==R&&"pending"!==N&&(0,Xo.jsxs)("div",{className:"free-trial-banner",children:[(0,Xo.jsx)("span",{className:"free-trial-banner-text",children:c("freeTrialBanner")}),(0,Xo.jsx)("button",{className:"free-trial-banner-btn",onClick:()=>de(),children:c("common:upgrade")})]}),nn&&(0,Xo.jsx)("div",{className:"phone-prompt-overlay",onClick:zn,children:(0,Xo.jsxs)("div",{className:"phone-prompt-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"phone-prompt-icon",children:(0,Xo.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})})}),(0,Xo.jsx)("h2",{className:"phone-prompt-title",children:"Get a text when your clips are ready"}),(0,Xo.jsx)("p",{className:"phone-prompt-sub",children:"Drop your number and we'll text you the moment each batch of clips finishes \u2014 plus the occasional new-feature heads-up and offer from Clipbait."}),(0,Xo.jsx)("input",{type:"tel",className:"phone-prompt-input",placeholder:"+1 555 867 5309",value:an,onChange:e=>sn(e.target.value),onKeyDown:e=>"Enter"===e.key&&!on&&un&&Un(),autoFocus:!0}),(0,Xo.jsxs)("label",{className:"phone-prompt-consent",children:[(0,Xo.jsx)("input",{type:"checkbox",className:"phone-prompt-consent-box",checked:un,onChange:e=>hn(e.target.checked)}),(0,Xo.jsx)("span",{className:"phone-prompt-consent-text",children:yV})]}),(0,Xo.jsxs)("div",{className:"phone-prompt-actions",children:[(0,Xo.jsx)("button",{type:"button",className:"phone-prompt-save",onClick:Un,disabled:on||!an.trim()||!un,children:on?"Saving\u2026":"Save & generate"}),(0,Xo.jsx)("button",{type:"button",className:"phone-prompt-skip",onClick:zn,disabled:on,children:"No thanks, just email me"})]})]})}),(0,Xo.jsx)(oA,{isOpen:O,onClose:()=>{M(!1),"pending"!==N||C||(E(!0),T({open:!0}))},ownOffer:"pending"===N,message:"pending"===N?"\ud83c\udf81 Go Pro and we'll drop 150 bonus credits into your account instantly. That's your first stream on us. They never expire.":"Upgrade to start generating clips.",currentPlan:R,currentInterval:I}),ue&&(0,Xo.jsxs)("div",{className:"credits-popup",children:[(0,Xo.jsxs)("div",{className:"credits-popup-text",children:[(0,Xo.jsx)("span",{className:"credits-popup-bold",children:"Credits are running low!"})," ","All credits used"]}),(0,Xo.jsx)("button",{className:"credits-popup-upgrade",onClick:()=>{he(!1),d("/upgrade?tab=credits")},children:"Upgrade"}),(0,Xo.jsx)("button",{className:"credits-popup-close",onClick:()=>he(!1),"aria-label":"Dismiss",children:"\u2715"})]}),(0,Xo.jsx)(gT,{creditRemaining:Gt,creditTotal:Kt,nextExpiringGrant:Jt,activeGrants:Zt,onUpgrade:de,userPlan:R}),(0,Xo.jsx)("div",{className:"foryou-leftbar-wrapper",children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsx)("div",{className:"foryou-bg-gradient"}),(0,Xo.jsx)("div",{className:"foryou-home-area",style:"home"!==p?{display:"none"}:{},children:(0,Xo.jsxs)("div",{className:"foryou-hero",children:[(0,Xo.jsxs)("div",{className:"foryou-hero-bubble",children:["Paste your link or connect your channel,",(0,Xo.jsx)("br",{}),"I'll do the clipping."]}),(0,Xo.jsx)("div",{className:"foryou-hero-mascot",children:(0,Xo.jsx)("img",{src:"/mascot.png",alt:"Clipbait",onError:e=>{e.currentTarget.dataset.fb||(e.currentTarget.dataset.fb="1",e.currentTarget.src="/favicon.png")}})}),(0,Xo.jsxs)("div",{className:"foryou-hero-actions",children:[(()=>{const e=null!==ie&&void 0!==ie&&ie.connected?o(o({},ie),{},{label:"Twitch connected",Icon:tV,color:"#9146FF"}):null!==se&&void 0!==se&&se.connected?o(o({},se),{},{label:"Kick connected",Icon:eV,color:"#53FC18"}):null!==le&&void 0!==le&&le.connected?o(o({},le),{}
2,{label:"YouTube connected",Icon:nV,color:"#FF0000"}):null;if(!e)return(0,Xo.jsxs)("button",{className:"foryou-hero-btn foryou-hero-btn--primary",onClick:()=>{_e(""),Oe(!0)},children:[(0,Xo.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",children:(0,Xo.jsx)("polygon",{points:"6 4 20 12 6 20 6 4"})}),"Connect Channel"]});const{Icon:t}=e,n="#53FC18"===e.color?"#0a0a0b":"#fff";return(0,Xo.jsxs)("button",{className:"foryou-hero-btn foryou-hero-btn--connected",onClick:()=>{_e(""),Oe(!0)},title:"Manage your connected channel",children:[(0,Xo.jsx)("span",{className:"foryou-conn-icon",style:{background:e.color},children:(0,Xo.jsx)(t,{size:24,color:n})}),(0,Xo.jsxs)("span",{className:"foryou-conn-mid",children:[(0,Xo.jsx)("b",{className:"foryou-conn-title",children:e.label}),(0,Xo.jsxs)("span",{className:"foryou-conn-sub",children:[(0,Xo.jsxs)("span",{className:"foryou-conn-handle",children:["@",e.username]}),(0,Xo.jsx)("span",{className:"foryou-conn-dot",children:"\xb7"}),(0,Xo.jsxs)("span",{className:"foryou-conn-live",children:[(0,Xo.jsx)("span",{className:"foryou-conn-ping"}),(0,Xo.jsx)("span",{className:"foryou-conn-live-dot"})]}),(0,Xo.jsx)("span",{className:"foryou-conn-live-text",children:"auto-clipping on"})]})]}),(0,Xo.jsx)("span",{className:"foryou-conn-check",children:(0,Xo.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"#ff8a3d",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})})]})})(),(0,Xo.jsxs)("button",{className:"foryou-hero-btn foryou-hero-btn--ghost",onClick:()=>{Cn("url"),ee(!0)},children:[(0,Xo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,Xo.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),"Paste A Link"]})]})]})}),(0,Xo.jsx)("div",{className:"foryou-main-area",style:"library"!==p?{display:"none"}:{},children:(0,Xo.jsxs)("div",{className:"foryou-clips-grid",children:[Fe&&(0,Xo.jsxs)("div",{className:"foryou-clip-card foryou-clip-card--processing foryou-clip-card--live",onClick:()=>{Q(!1),X(!0)},children:[Fe.videoThumbnail&&(0,Xo.jsx)("img",{className:"foryou-clip-skeleton-thumb",src:Fe.videoThumbnail,alt:"",draggable:!1}),(0,Xo.jsx)("div",{className:"foryou-clip-skeleton-vignette"}),(0,Xo.jsx)("div",{className:"foryou-clip-skeleton-fill foryou-clip-skeleton-fill--live"}),(0,Xo.jsxs)("div",{className:"foryou-clip-card-processing-inner",children:[(0,Xo.jsxs)("span",{className:"foryou-live-badge",children:[(0,Xo.jsx)("span",{className:"foryou-live-dot"}),"LIVE"]}),(0,Xo.jsx)("span",{className:"foryou-clip-card-processing-label",children:"Live auto clipping"}),(0,Xo.jsxs)("span",{className:"foryou-clip-card-processing-title",children:[(null===(n=Fe.clips)||void 0===n?void 0:n.length)||0," clip",1===(null===(r=Fe.clips)||void 0===r?void 0:r.length)?"":"s"," generated"]}),(0,Xo.jsx)("button",{className:"foryou-clip-card-cancel-btn",onClick:e=>{e.stopPropagation(),Q(!1),X(!0)},children:"Manage"})]})]}),cr.flatMap((e=>{var t;return Array.from({length:Math.max(0,(e.maxClips||3)-((null===(t=e.clips)||void 0===t?void 0:t.length)||0))},((t,n)=>(0,Xo.jsxs)("div",{className:"foryou-clip-card foryou-clip-card--processing",onClick:()=>(e=>{var t;if("queued"===e.status||"processing"===e.status)return W({jobId:e._id,brandImage:Se,title:nr(e)||e.streamerName}),void V(!0);Ye(e),"completed"===e.status&&(null===(t=e.clips)||void 0===t?void 0:t.length)>0&&(Ze(!0),Je(!1))})(e),children:[e.videoThumbnail&&(0,Xo.jsx)("img",{className:"foryou-clip-skeleton-thumb",src:e.videoThumbnail,alt:"",draggable:!1}),(0,Xo.jsx)("div",{className:"foryou-clip-skeleton-vignette"}),(0,Xo.jsx)("div",{className:"foryou-clip-skeleton-fill",style:{width:"".concat(Math.max(2,Math.min(100,e.progress||0)),"%")}}),(0,Xo.jsxs)("div",{className:"foryou-clip-card-processing-inner",children:[(0,Xo.jsx)("span",{className:"foryou-spinner-small"}),(0,Xo.jsxs)("span",{className:"foryou-clip-card-processing-label",children:[e.progress>0?"".concat(e.progress,"%"):c("processingStatus"),"number"===typeof e.etaSeconds&&e.etaSeconds>0&&(0,Xo.jsxs)("span",{className:"foryou-clip-card-processing-eta",children:[" \xb7 ",e.etaSeconds<60?c("underTwoMinutes"):c("minutesRemaining",{count:Math.ceil(e.etaSeconds/60)})]})]}),(nr(e)||e.streamerName)&&(0,Xo.jsx)("span",{className:"foryou-clip-card-processing-title",children:nr(e)||e.streamerName}),0===n&&(0,Xo.jsx)("button",{className:"foryou-clip-card-cancel-btn",onClick:t=>{t.stopPropagation(),(e=>{lt(e),et(!0)})(e)},children:c("cancelJobBtn")}
2)]})]},"".concat(e._id,"-skeleton-").concat(n))))})),ur.map((e=>(0,Xo.jsxs)("div",{className:"foryou-clip-card foryou-clip-card--failed",children:[(0,Xo.jsxs)("div",{className:"foryou-clip-card-failed-badges",children:[(0,Xo.jsxs)("span",{className:"foryou-clip-badge foryou-clip-badge--failed",children:[(0,Xo.jsxs)("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),c("failed")]}),(0,Xo.jsxs)("span",{className:"foryou-clip-badge foryou-clip-badge--refunded",children:[(0,Xo.jsxs)("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),c("creditsRefunded")]})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"foryou-clip-card-failed-msg",children:/zero segments|no\s*(speech|words|utterances|transcript)|transcription produced/i.test(e.error||"")?c("noSpeechInVideo"):c("tryAgainDifferentLink")}),(nr(e)||e.streamerName)&&(0,Xo.jsx)("div",{className:"foryou-clip-card-failed-title",children:nr(e)||e.streamerName})]}),(0,Xo.jsxs)("div",{className:"foryou-clip-card-failed-actions",children:[e.videoUrl&&(0,Xo.jsxs)("button",{className:"foryou-clip-card-failed-btn foryou-clip-card-failed-btn--retry",onClick:()=>(async e=>{try{const t={_id:(await ks.post("/clips/generate",{videoUrl:e.videoUrl,streamerName:e.streamerName,platform:e.platform,contentType:e.contentType||pt,aspectRatio:e.aspectRatio||ft,maxClips:e.maxClips||St})).data.jobId,videoUrl:e.videoUrl,streamerName:e.streamerName,platform:e.platform,brandId:e.brandId||we,status:"queued",progress:0,maxClips:e.maxClips||St,aspectRatio:e.aspectRatio||ft,createdAt:(new Date).toISOString()};Ee((n=>[t,...n.filter((t=>t._id!==e._id))])),Ht((e=>null!==e?Math.max(0,e-1):null)),Vo.dismiss(),Vo.success(c("clippingStarted"))}catch(K6){var t,n,r,i;const a=null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error;"free_limit"===a?de():"out_of_credits"===a?he(!0):Vo.error((null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.message)||c("failedToStartClipping"))}})(e),children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("polyline",{points:"1 4 1 10 7 10"}),(0,Xo.jsx)("path",{d:"M3.51 15a9 9 0 1 0 .49-4.1"})]}),c("retry")]}),(0,Xo.jsxs)("button",{className:"foryou-clip-card-failed-btn foryou-clip-card-failed-btn--delete",onClick:()=>(e=>{const t=Ce.find((t=>t._id===e));t&&(lt(t),et(!0))})(e._id),children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),c("common:delete")]})]})]},e._id))),pr.map(((e,t)=>{let{clip:n,job:r,clipIndex:i}=e;const a="".concat(r._id,"-").concat(i),s=fn.includes(a),o=vn.includes(a),l=r.expiresAt?Math.ceil((new Date(r.expiresAt).getTime()-Date.now())/864e5):null,d=null==l?null:l<=0?c("expiresToday"):1===l?c("expiresTomorrow"):c("expiresInDays",{count:l});return"coach"===r.mode?(0,Xo.jsx)("div",{className:"foryou-moment-cell",style:{animationDelay:"".concat(.04*Math.min(t,15),"s")},children:(0,Xo.jsx)(YH,{clip:n,index:i,job:r,isSelected:s,isLiked:o,onOpen:Qn,onToggleSelect:e=>Zn(a,e),onToggleLike:e=>$n(a,e),onDelete:e=>tr(n,r,i,e)})},n._id||"".concat(r._id,"-").concat(t)):(0,Xo.jsxs)("div",{className:"foryou-clip-card".concat(s?" selected":"").concat("16:9"===r.aspectRatio?" foryou-clip-card--wide":""),style:{animationDelay:"".concat(.04*Math.min(t,15),"s")},onClick:()=>F(t),onMouseEnter:e=>{const t=e.currentTarget.querySelector(".foryou-clip-card-video");t&&t.play().catch((()=>{}))},onMouseLeave:e=>{const t=e.currentTarget.querySelector(".foryou-clip-card-video");t&&(t.pause(),t.currentTime=0)},children:[n.thumbnailUrl&&(0,Xo.jsx)("img",{className:"foryou-clip-thumb",src:"/api/clips/thumb?u=".concat(encodeURIComponent(n.thumbnailUrl)),alt:"","aria-hidden":"true",onError:e=>{e.target.style.display="none"}}),(0,Xo.jsx)("video",{className:"foryou-clip-card-video",src:n.editedUrl||n.url,preload:"metadata",muted:!0,playsInl
2ine:!0,loop:!0,crossOrigin:"anonymous",onLoadedMetadata:e=>{n.thumbnailUrl||(e.currentTarget.currentTime=.001)}}),(0,Xo.jsx)("button",{className:"foryou-clip-select-btn",onClick:e=>Zn(a,e),children:(0,Xo.jsx)("div",{className:"foryou-clip-checkbox".concat(s?" checked":""),children:s&&(0,Xo.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})})}),(0,Xo.jsxs)("div",{className:"foryou-clip-side-actions",children:[(0,Xo.jsx)("button",{className:"foryou-clip-action-btn".concat(o?" liked":""),onClick:e=>$n(a,e),title:"Like",children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:o?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),(0,Xo.jsx)("button",{className:"foryou-clip-action-btn",onClick:e=>er(n,0,i,e),title:"Download",children:(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Xo.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),(0,Xo.jsx)("button",{className:"foryou-clip-action-btn foryou-clip-action-btn--delete",onClick:e=>tr(n,r,i,e),title:"Delete clip",children:(0,Xo.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})})]}),d&&(0,Xo.jsxs)("div",{className:"foryou-clip-expiry".concat(l<=1?" foryou-clip-expiry--soon":""),title:"Clips are auto-deleted after this. Download to keep.",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,Xo.jsx)("polyline",{points:"12 7 12 12 15 14"})]}),d]}),(0,Xo.jsx)("div",{className:"foryou-clip-card-overlay"})]},n._id||"".concat(r._id,"-").concat(t))})),je&&0===pr.length&&0===cr.length&&(0,Xo.jsx)("div",{className:"foryou-clips-empty",children:(0,Xo.jsx)("span",{className:"foryou-spinner-small"})}),!je&&0===pr.length&&0===cr.length&&(0,Xo.jsxs)("div",{className:"foryou-clips-empty",children:[(0,Xo.jsx)("div",{className:"foryou-empty-icon",children:(0,Xo.jsxs)("svg",{width:"44",height:"44",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]})}),(0,Xo.jsx)("h3",{children:"No clips yet"}),(0,Xo.jsx)("p",{children:"Head to Home and paste a link to make your first clip."})]})]})}),Z&&(0,Xo.jsx)("div",{className:"mkc-overlay",onClick:()=>ee(!1),children:(0,Xo.jsxs)("div",{className:"mkc-panel",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"mkc-head",children:[(0,Xo.jsx)("h3",{className:"mkc-title",children:"Make clips"}),(0,Xo.jsx)("button",{className:"mkc-close",onClick:()=>ee(!1),"aria-label":"Close",children:(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})})]}),(0,Xo.jsxs)("div",{className:"mkc-source",children:["url"===Tn?(0,Xo.jsx)("input",{ref:z,type:"text",className:"mkc-input",placeholder:Mn[Dn],value:pe,onChange:e=>{me(e.target.value)},onPaste:()=>{}}):En?(0,Xo.jsxs)("div",{className:"mkc-file",children:[(0,Xo.jsx)("span",{className:"mkc-file-name",children:En.name}),(0,Xo.jsx)("button",{className:"mkc-file-clear",onClick:()=>jn(null),"aria-label":"Remove file",children:"\xd7"})]}):(0,Xo.jsxs)("label",{className:"mkc-file-label",children:[(0,Xo.jsx)("input",{type:"file",accept:".mp4,.mov",onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;
2return["video/mp4","video/quicktime"].includes(n.type)?n.size>Yn?(Vo.error(c("fileMustBeUnder2GB")),void(e.target.value="")):void jn(n):(Vo.error(c("onlyMp4MovSupported")),void(e.target.value=""))},style:{display:"none"}}),c(Pn?"dropFileHere":"mp4OrMovMax2GB")]}),(0,Xo.jsx)("button",{className:"mkc-source-btn",onClick:()=>Cn((e=>"url"===e?"upload":"url")),title:c("url"===Tn?"switchToFileUpload":"switchToURL"),"aria-label":c("url"===Tn?"switchToFileUpload":"switchToURL"),children:"url"===Tn?(0,Xo.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Xo.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}):(0,Xo.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,Xo.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})})]}),(0,Xo.jsxs)("div",{className:"mkc-aspect",children:[(0,Xo.jsxs)("button",{type:"button",className:"mkc-aspect-card".concat("9:16"===ft?" on":""),onClick:()=>gt("9:16"),children:[(0,Xo.jsx)("span",{className:"mkc-shape mkc-shape--v"}),(0,Xo.jsx)("span",{className:"mkc-aspect-lbl",children:"9:16"}),(0,Xo.jsx)("span",{className:"mkc-aspect-sub",children:"Vertical"})]}),(0,Xo.jsxs)("button",{type:"button",className:"mkc-aspect-card".concat("16:9"===ft?" on":""),onClick:()=>gt("16:9"),children:[(0,Xo.jsx)("span",{className:"mkc-shape mkc-shape--w"}),(0,Xo.jsx)("span",{className:"mkc-aspect-lbl",children:"16:9"}),(0,Xo.jsx)("span",{className:"mkc-aspect-sub",children:"Wide"})]})]}),(0,Xo.jsxs)("div",{className:"mkc-dds",children:[(0,Xo.jsxs)("div",{className:"mkc-dd",children:[(0,Xo.jsxs)("button",{type:"button",className:"mkc-dd-btn",onClick:()=>{In((e=>!e)),xt(!1)},children:[(0,Xo.jsx)("span",{children:c(null===(i=SV.find((e=>e.value===pt)))||void 0===i?void 0:i.labelKey)||c("type")}),(0,Xo.jsx)("svg",{className:"mkc-chev",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),Ln&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"mkc-dd-backdrop",onClick:()=>In(!1)}),(0,Xo.jsx)("div",{className:"mkc-dd-menu",children:SV.map((e=>(0,Xo.jsx)("button",{type:"button",className:"mkc-dd-item".concat(pt===e.value?" on":""),onClick:()=>{mt(e.value),In(!1)},children:c(e.labelKey)},e.value)))})]})]}),(0,Xo.jsxs)("div",{className:"mkc-dd",children:[(0,Xo.jsxs)("button",{type:"button",className:"mkc-dd-btn",onClick:()=>{xt((e=>!e)),In(!1)},children:[(0,Xo.jsx)("span",{children:"auto"===vt?"Auto":"".concat(vt," clips")}),(0,Xo.jsx)("svg",{className:"mkc-chev",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),yt&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"mkc-dd-backdrop",onClick:()=>xt(!1)}),(0,Xo.jsx)("div",{className:"mkc-dd-menu",children:["auto",1,2,3,5,8,10,15,20].map((e=>(0,Xo.jsx)("button",{type:"button",className:"mkc-dd-item".concat(vt===e?" on":""),onClick:()=>{bt(e),xt(!1)},children:"auto"===e?"Auto":"".concat(e," clips")},e)))})]})]})]}),Pt&&(0,Xo.jsxs)("div",{className:"mkc-addons",children:[Rt&&(0,Xo.jsxs)("button",{type:"button",className:"mkc-chip".concat(Tt?" on":""),onClick:()=>Ct((e=>!e)),children:[(0,Xo.jsx)("span",{className:"mkc-chip-ic",children:Tt?"\u2713":"+"}),"Title captions"]}),Rt&&(0,Xo.jsxs)("button",{type:"button",className:"mkc-chip".concat(Et?" on":""),onClick:()=>jt((e=>!e)),children:[(0,Xo.jsx)("span",{className:"mkc-chip-ic",children:Et?"\u2713":"+"}),"Subtitles"]}),(0,Xo.jsxs)("button",{type:"button",className:"mkc-chip".concat(At?" on":""),onClick:()=>Nt((e=>!e)),children:[(0,Xo.jsx)("span",{className:"mkc-chip-ic",children:At?"\u2713":"+"}),"Channel watermark"]})]}),!Mt&&Number.isFinite(Dt)&&Dt>0&&(0,Xo.jsx)("div",{className:"mkc-cl-divider"}),(0,Xo.jsx)(UH,{loading:Mt,duration:Dt,start:Ft,end:Ut,onChange:(e,t)=>
2{Bt(e),zt(t)}}),(()=>{const e=Number.isFinite(Dt)&&Dt>0?Math.max(1,(null!==Ut&&void 0!==Ut?Ut:Dt)-(null!==Ft&&void 0!==Ft?Ft:0)):null,t=null!=e?"coach"===kt?1:Math.max(1,Math.round(e/60)):null;return(0,Xo.jsx)("button",{className:"mkc-generate",onClick:()=>Bn((()=>"url"===Tn?qn():Xn())),disabled:fe,children:fe?(0,Xo.jsx)("span",{className:"mkc-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{children:"coach"===kt?"Find Moments":"Generate"}),null!=t&&(0,Xo.jsx)("span",{className:"mkc-gen-credits",children:t}),(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})})]})})})()]})}),yn&&(e=>{const t=pr.findIndex((e=>{let{job:t,clipIndex:n}=e;return t._id===yn.job._id&&n===yn.clipIndex})),n=t>0,r=t>=0&&t<pr.length-1,i=e=>{if(t<0)return;const n=pr[t+e];n&&xn(n)};if("coach"===(null===(e=yn.job)||void 0===e?void 0:e.mode)){const{clip:e,job:t,clipIndex:a}=yn;return(0,Xo.jsx)(qH,{clip:e,index:a,job:t,catalog:Hn,open:!0,onClose:()=>xn(null),onPrev:()=>i(-1),onNext:()=>i(1),hasPrev:n,hasNext:r,onDelete:n=>tr(e,t,a,n)})}return(0,Xo.jsx)(xH,{clip:yn.clip,job:yn.job,clipIndex:yn.clipIndex,userPlan:R,catalog:Hn,onPrev:()=>i(-1),onNext:()=>i(1),hasPrev:n,hasNext:r,onClose:()=>xn(null),onUpgrade:()=>{xn(null),de()},onDeleteClip:()=>{if(yn){const{clip:e,job:t,clipIndex:n}=yn;(t.clips||[]).length<=1?(xn(null),lt(t),et(!0)):(Ee((e=>e.map((e=>{if(e._id!==t._id)return e;const r=[...e.clips||[]];return r.splice(n,1),o(o({},e),{},{clips:r})})))),xn(null),Vo.success("Clip removed"))}}})})(),Xe&&qe&&(0,Xo.jsx)(kH,{job:qe,videoTitle:nr(qe),videoThumbnail:rr(qe),videoAuthor:"rumble"===qe.platform?qe.videoAuthor:null,videoDuration:"rumble"===qe.platform?(e=>{if(!e)return null;const t=Math.floor(e/60),n=Math.floor(e%60);return"".concat(t,":").concat(n.toString().padStart(2,"0"))})(qe.videoDuration):null,onClose:Jn}),Qe&&qe&&(0,Xo.jsx)(AH,{job:qe,videoTitle:nr(qe),videoThumbnail:rr(qe),videoAuthor:"rumble"===qe.platform?qe.videoAuthor:null,onClose:Jn,userPlan:R,onUpgrade:()=>{Jn(),de()},onGenerateAnother:e=>{Jn(),me(e),Cn("url"),setTimeout((()=>qn(e)),50)}}),"library"===p&&fn.length>0&&(0,Xo.jsxs)("div",{className:"foryou-libsel-bar",children:[(0,Xo.jsxs)("span",{className:"foryou-libsel-count",children:[fn.length," selected"]}),(0,Xo.jsxs)("div",{className:"foryou-libsel-actions",children:[(0,Xo.jsxs)("button",{className:"foryou-libsel-btn",onClick:async()=>{const e=pr.filter((e=>{let{job:t,clipIndex:n}=e;return fn.includes("".concat(t._id,"-").concat(n))}));for(const{clip:n,job:r,clipIndex:i}of e)try{const e=await ks.get("/clips/download-url",{params:{url:n.editedUrl||n.url,filename:n.hook||"clip-".concat(i+1)}});window.open(e.data.url,"_blank"),await new Promise((e=>setTimeout(e,600)))}catch(t){}gn([])},children:[(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,Xo.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),"Download"]}),(0,Xo.jsxs)("button",{className:"foryou-libsel-btn foryou-libsel-btn--danger",onClick:()=>{const e=pr.filter((e=>{let{job:t,clipIndex:n}=e;return fn.includes("".concat(t._id,"-").concat(n))}));0!==e.length&&(ht(e),et(!0))},children:[(0,Xo.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,Xo.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),"Delete"]})]}),(0,Xo.jsx)("button",{className:"foryou-libsel-clear",onClick:()=>gn([]),children:"Cancel"})]}),null!==_&&(0,Xo.jsx)(JH,{clips:pr,startIndex:_,likedIds:vn,catalog:Hn,onClose:()=>F(null),onLike:e=>$n(e,{stopPropagation(){}}),onDownload:(e,t,n,r)=>er(e,0,n,r),onDelete:(e,t,n,r)=>tr(e,t,n,r),onPublish:(e,t,n)=>U({clip:e,job:t,clipIndex:n})}),B&&(0,Xo.jsx)(oH,{clip:B.clip,clipJobId:B.job._id,clipIndex:B.clipIndex,onClose:()=>U(null),onScheduled:()=>U(null),initialAction:"schedule"}),G&&H&&(0,Xo.jsx)($H,{brandImage:G.brandImage,title:G.title,progress:fr,resultsCount:gr,done:vr,failed:br,onClose:()=>V(!1),onViewClips:()=>{V(!1),m("library")},onCancel:async()=>{const e=G.jobId,t=vr;
2if(W(null),V(!1),e&&!t)try{await ks.delete("/clips/jobs/".concat(e)),Ee((t=>t.filter((t=>t._id!==e))))}catch(n){}}}),G&&!H&&(0,Xo.jsx)("button",{className:"foryou-scanner-pill",onClick:()=>V(!0),children:vr?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"foryou-scanner-pill-dot foryou-scanner-pill-dot--done"}),"Clips ready"]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("span",{className:"foryou-scanner-pill-spin"}),"Clipping ",Math.round(fr),"%"]})}),Fe&&Y&&!G&&(0,Xo.jsx)($H,{live:!0,platform:Fe.platform,brandImage:Fe.creatorImageUrl||(null===ie||void 0===ie?void 0:ie.avatar)||(null===se||void 0===se?void 0:se.avatar)||(null===le||void 0===le?void 0:le.avatar)||Fe.videoThumbnail||Se,title:Fe.videoTitle||Fe.streamerName||"Your stream",resultsCount:(null===(a=Fe.clips)||void 0===a?void 0:a.length)||0,onClose:()=>{X(!1),Q(!0)},onViewClips:()=>{X(!1),Q(!0),m("library")},onCancel:()=>{const e=String(Fe._id);Ge.current=e,He.current=e,X(!1),Q(!0),Be(null),ks.post("/live/".concat(e,"/stop")).catch((()=>{})).finally((()=>Fn()))}}),Fe&&!Y&&!G&&(0,Xo.jsxs)("button",{className:"foryou-scanner-pill",onClick:()=>{X(!0),Q(!1)},children:[(0,Xo.jsx)("span",{className:"foryou-scanner-pill-dot",style:{background:"#ff3b30",boxShadow:"0 0 8px #ff3b30"}}),"Live \xb7 ",(null===(s=Fe.clips)||void 0===s?void 0:s.length)||0," clips"]}),Ue&&!Fe&&!G&&(0,Xo.jsx)($H,{live:!0,ended:!0,endedReason:Ue.endedReason,platform:Ue.platform,brandImage:Ue.creatorImageUrl||(null===ie||void 0===ie?void 0:ie.avatar)||(null===se||void 0===se?void 0:se.avatar)||(null===le||void 0===le?void 0:le.avatar)||Ue.videoThumbnail||Se,title:Ue.videoTitle||Ue.streamerName||"Your stream",resultsCount:(null===(l=Ue.clips)||void 0===l?void 0:l.length)||0,onClose:()=>{He.current=String(Ue._id),ze(null)},onViewClips:()=>{He.current=String(Ue._id),ze(null),m("library")},onUpgrade:()=>{He.current=String(Ue._id),ze(null),de()}}),(0,Xo.jsx)(pV,{open:De,url:Me,sessionId:null,userPlan:R,aspectRatio:ft,burnHookTitle:Lt,burnSubtitles:It,burnWatermark:At,twitchConn:ie,onTwitchDisconnect:()=>ae(null),kickConn:se,onKickDisconnect:()=>oe(null),youtubeConn:le,onYoutubeDisconnect:()=>ce(null),onUpgrade:de,onNotLive:Kn,onClose:()=>{Oe(!1),Fn()}}),(0,Xo.jsx)(NH,{isOpen:$e,onClose:()=>{et(!1),lt(null),dt(null),ht(null)},onConfirm:async()=>{if((null===ut||void 0===ut?void 0:ut.length)>0){const e={};for(const{job:r,clipIndex:i}of ut)e[r._id]||(e[r._id]={job:r,indices:[]}),e[r._id].indices.push(i);let t=0,n=!1;for(const{job:r,indices:i}of Object.values(e)){if(r.isLive){for(const e of[...i].sort(((e,t)=>t-e)))try{await ks.delete("/live/".concat(r._id,"/clips/").concat(e)),t+=1,n=!0}catch(K6){console.error("Failed to delete live clip ".concat(r._id,"/").concat(e,":"),K6)}continue}const e=(r.clips||[]).every(((e,t)=>i.includes(t)));if(e)try{await ks.delete("/clips/jobs/".concat(r._id)),Ee((e=>e.filter((e=>e._id!==r._id)))),t+=i.length}catch(u){Vo.error(c("failedToDeleteProject"))}else{const e=[...i].sort(((e,t)=>t-e));let n=[];for(const i of e)try{await ks.delete("/clips/jobs/".concat(r._id,"/clips/").concat(i)),n.push(i),t+=1}catch(K6){console.error("Failed to delete clip ".concat(r._id,"/").concat(i,":"),K6)}n.length>0&&Ee((e=>e.map((e=>e._id!==r._id?e:o(o({},e),{},{clips:(e.clips||[]).filter(((e,t)=>!n.includes(t)))})))))}}return n&&await Fn(),t>0?Vo.success(c("clipsDeleted",{count:t})):Vo.error(c("failedToDeleteProject")),gn([]),ht(null),void et(!1)}if(ct){const{job:s,clipIndex:l}=ct;if(s.isLive){try{await ks.delete("/live/".concat(s._id,"/clips/").concat(l)),await Fn(),Vo.success("Clip removed")}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to delete clip")}return dt(null),void et(!1)}if((s.clips||[]).length<=1)try{await ks.delete("/clips/jobs/".concat(s._id)),Ee((e=>e.filter((e=>e._id!==s._id)))),(null===qe||void 0===qe?void 0:qe._id)===s._id&&Jn()}catch(K6){var n,r;Vo.error((null===(n=K6.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||c("failedToDeleteProject"))}else try{await ks.delete("/clips/jobs/".concat(s._id,"/clips/").concat(l)),Ee((e=>e.map((e=>{if(e._id!==s._id)return e;const t=[...e.clips||[]];return t.splice(l,1),o(o({},e),{},{clips:t})})))),Vo.success("Clip removed")}catch(K6){var i,a;console.error("Failed to delete clip:",K6),Vo.error((null===(i=K6.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.error)||"Failed to delete clip")}return dt(null),void et(!1)}if(!ot)return;const s="queued"===ot.status||"processing"===ot.status;try{await ks.delete("/clips/jobs/".concat(ot._id)),Ee((e=>e.filter((e=>e._id!==ot._id)))),Vo.success(c(s?"jobCancelled":"projectDeleted")),(null===qe||void 0===qe?void 0:qe._id)===ot._id&&Jn()}catch(K6){var l,d;Vo.error((null===(l=K6.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.error)||
2c("failedToDeleteProject"))}et(!1),lt(null)},jobTitle:ut?c("clipsSelected",{count:ut.length}):ot?nr(ot)||ot.streamerName:"",isProcessing:!ut&&("queued"===(null===ot||void 0===ot?void 0:ot.status)||"processing"===(null===ot||void 0===ot?void 0:ot.status))}),(0,Xo.jsx)(pT,{isOpen:f,onClose:()=>g(!1)}),(0,Xo.jsx)(PH,{isOpen:S,onClose:()=>k(!1)}),(0,Xo.jsx)(RH,{isOpen:w.open,onClose:()=>T({open:!1}),onCta:()=>{T({open:!1}),M(!0)}}),tt&&(0,Xo.jsx)("div",{className:"limit-modal-overlay",onClick:()=>nt(!1),children:(0,Xo.jsxs)("div",{className:"limit-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"limit-modal-icon",children:(0,Xo.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#ff6a00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,Xo.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,Xo.jsx)("h3",{className:"limit-modal-title",children:c("uploadLimitReached")}),(0,Xo.jsx)("p",{className:"limit-modal-message",children:rt}),at&&(0,Xo.jsx)("p",{className:"limit-modal-reset",children:c("limitResets",{date:at.toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})})}),(0,Xo.jsx)("button",{className:"limit-modal-btn",onClick:()=>nt(!1),children:c("gotIt")})]})})]})},wV=()=>(0,Xo.jsx)("div",{className:"contact-container",children:(0,Xo.jsxs)("div",{className:"contact-card",children:[(0,Xo.jsx)("h2",{children:"Contact Spirit"}),(0,Xo.jsx)("p",{children:"Hey Ye you can contact me in several ways listed below:"}),(0,Xo.jsxs)("p",{children:["X:"," ",(0,Xo.jsx)("a",{className:"contact-card2",href:"https://x.com/spiritraps",target:"_blank",rel:"noreferrer",children:"X.com/spiritraps"})," ","(DM)"]}),(0,Xo.jsxs)("p",{children:["Instagram:"," ",(0,Xo.jsx)("a",{className:"contact-card2",href:"https://instagram.com/spiritraps",target:"_blank",rel:"noreferrer",children:"Instagram.com/spiritraps"})," ","(DM)"]}),(0,Xo.jsxs)("p",{children:["Email:"," ",(0,Xo.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,Xo.jsx)("p",{children:"- Spirit"}),(0,Xo.jsx)(wn,{to:"/",className:"back-btn",children:"\u2190"})]})}),TV=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)},CV=Number.isSafeInteger||function(e){return"number"===typeof e&&Math.abs(e)<=EV},EV=Number.MAX_SAFE_INTEGER||9007199254740991;let jV=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),AV=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ER
2ROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),NV=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var PV="manifest",RV="level",LV="audioTrack",IV="subtitleTrack",DV="main",OV="audio",MV="subtitle";class _V{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}
vendor: 4,125 bytes, line 2
2getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class FV{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new _V(e),this.fast_=new _V(t),this.defaultTTFB_=r,this.ttfb_=new _V(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new _V(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new _V(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new _V(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){const n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function BV(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UV(){return UV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UV.apply(null,arguments)}function zV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zV(Object(n),!0).forEach((function(t){BV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class WV{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n="[".concat(e,"]:");this.trace=HV,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const HV=function(){},VV={trace:HV,debug:HV,log:HV,warn:HV,info:HV,error:HV};function KV(){return UV({},VV)}function qV(e,t,n){return t[e]?t[e].bind(t):function(e,t){const n=self.console[e];return n?n.bind(self.console,"".concat(t?"["+t+"] ":"","[").concat(e,"] >")):HV}(e,n)}const YV=KV();const XV=YV;function JV(){if("undefined"===typeof self)return;return(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function QV(e,t){const n=Object.keys(e),r=Object.keys(t),i=n.length,a=r.length;return!i||!a||i===a&&!n.some((e=>-1===r.indexOf(e)))}function ZV(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"!==typeof TextDecoder){const n=new TextDecoder("utf-8").decode(e);if(t){const e=n.indexOf("\0");return-1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}const n=e.length;let r,i,a,s="",o=0;for(;o<n;){if(r=e[o++],0===r&&t)return s;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:i=e[o++],s+=String.fromCharCode((31&r)<<6|63&i);break;
vendor: 14,543 bytes, line 2
2case 14:i=e[o++],a=e[o++],s+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a)}}return s}const $V=function(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t};function eK(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function tK(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nK,rK={exports:{}};var iK=(nK||(nK=1,function(e){!function(){var t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return r.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=n.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var c={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(c.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var d=o.path,u=d.substring(0,d.lastIndexOf("/")+1)+s.path;c.path=a.normalizePath(u)}else c.path=o.path,s.params||(c.params=o.params,s.query||(c.query=o.query));return null===c.path&&(c.path=r.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(c)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a}()}(rK)),rK.exports);class aK{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var sK="audio",oK="video",lK="audiovideo";class cK{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"===typeof e&&(e={url:e}),this.base=e,function(e,t){const n=pK(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;r=1===n.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[sK]:null,[oK]:null,[lK]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new aK),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=iK.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[sK]=null,e[oK]=null,e[lK]=null}}function dK(e){return"initSegment"!==e.sn}class uK extends cK{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(TV(e)&&TV(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{const e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;const e=TV(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){const e=Object.keys(this.levelkeys),t=e.length;if(t>1||1===t&&this.levelkeys[e[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){TV(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return dK(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,r,i){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const{elementaryStreams:s}=this,o=s[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,r),o.endDTS=Math.max(o.endDTS,i)):s[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a}}}class hK extends cK{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function pK(e,t){const n=Object.getPrototypeOf(e);if(n){const e=Object.getOwnPropertyDescriptor(n,t);return e||pK(n,t)}}const mK=Math.pow(2,32)-1,fK=[].push,gK={video:1,audio:2,id3:3,text:4};function vK(e){return String.fromCharCode.apply(null,e)}function bK(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function yK(e,t){const n=SK(e,t);return n<0?4294967296+n:n}function xK(e,t){let n=yK(e,t);return n*=Math.pow(2,32),n+=yK(e,t+4),n}function SK(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function kK(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let i=0;i<r;){const a=yK(e,i),s=a>1?i+a:r;if(vK(e.subarray(i+4,i+8))===t[0])if(1===t.length)n.push(e.subarray(i+8,s));else{const r=kK(e.subarray(i+8,s),t.slice(1));r.length&&fK.apply(n,r)}i=s}return n}function wK(e){const t=[],n=e[0];let r=8;const i=yK(e,r);r+=4;let a=0,s=0;0===n?(a=yK(e,r),s=yK(e,r+4),r+=8):(a=xK(e,r),s=xK(e,r+8),r+=16),r+=2;let o=e.length+s;const l=bK(e,r);r+=2;for(let c=0;c<l;c++){let n=r;const a=yK(e,n);n+=4;const s=2147483647&a;if(1===(2147483648&a)>>>31)return XV.warn("SIDX has hierarchical references (not supported)"),null;const l=yK(e,n);n+=4,t.push({referenceSize:s,subsegmentDuration:l,info:{duration:l/i,start:o,end:o+s-1}}),o+=s,n+=4,r=n}return{earliestPresentationTime:a,timescale:i,version:n,referencesCount:l,references:t}}function TK(e){const t=[],n=kK(e,["moov","trak"]);for(let r=0;r<n.length;r++){const e=n[r],i=kK(e,["tkhd"])[0];if(i){let n=i[0];const r=yK(i,0===n?12:20),a=kK(e,["mdia","mdhd"])[0];if(a){n=a[0];const i=yK(a,0===n?12:20),s=kK(e,["mdia","hdlr"])[0];if(s){const n=vK(s.subarray(8,12)),a={soun:sK,vide:oK}[n],o=CK(kK(e,["mdia","minf","stbl","stsd"])[0]);a?(t[r]={timescale:i,type:a,stsd:o},t[a]=GV({timescale:i,id:r},o)):t[r]={timescale:i,type:n,stsd:o}}}}}return kK(e,["moov","mvex","trex"]).forEach((e=>{const n=yK(e,4),r=t[n];r&&(r.default={duration:yK(e,12),flags:yK(e,20)})})),t}function CK(e){const t=e.subarray(8),n=t.subarray(86),r=vK(t.subarray(4,8));let i,a=r;const s="enca"===r||"encv"===r;if(s){const e=kK(t,[r])[0];kK(e.subarray("enca"===r?28:78),["sinf"]).forEach((e=>{const t=kK(e,["schm"])[0];if(t){const n=vK(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=kK(e,["frma"])[0];t&&(a=vK(t))}}}))}const o=a;switch(a){case"avc1":case"avc2":case"avc3":case"avc4":{const e=kK(n,["avcC"])[0];e&&e.length>3&&(a+="."+AK(e[1])+AK(e[2])+AK(e[3]),i=EK("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const e=kK(t,[r])[0],n=kK(e.subarray(28),["esds"])[0];if(n&&n.length>7){let e=4;if(3!==n[e++])break;e=jK(n,e),e+=2;const t=n[e++];if(128&t&&(e+=2),64&t&&(e+=n[e++]),4!==n[e++])break;e=jK(n,e);const r=n[e++];if(64!==r)break;if(a+="."+AK(r),e+=12,5!==n[e++])break;e=jK(n,e);const i=n[e++];let s=(248&i)>>3;31===s&&(s+=1+((7&i)<<3)+((224&n[e])>>5)),a+="."+s}break}case"hvc1":case"hev1":{const e=kK(n,["hvcC"])[0];if(e&&e.length>12){const t=e[1],n=["","A","B","C"][t>>6],r=31&t,i=yK(e,2),s=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);a+="."+n+r,a+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(i).toString(16).toUpperCase(),a+="."+s+o;let c="";for(let e=l.length;e--;){const t=l[e];if(t||c){c="."+t.toString(16).toUpperCase()+c}}a+=c}i=EK("hev1"==o?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":a=EK(a,n)||a;break;case"vp09":{const e=kK(n,["vpcC"])[0];if(e&&e.length>6){const t=e[4],n=e[5],r=e[6]>>4&15;a+="."+NK(t)+"."+NK(n)+"."+NK(r)}break}case"av01":{const e=kK(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,r=31&e[1],s=e[2]>>>7?"H":"M",o=(64&e[2])>>6,l=(32&e[2])>>5,c=2===t&&o?l?12:10:o?10:8,d=(16&e[2])>>4,u=(8&e[2])>>3,h=(4&e[2])>>2,p=3&e[2],m=1,f=1,g=1,v=0;a+="."+t+"."+NK(r)+s+"."+NK(c)+"."+d+"."+u+h+p+"."+NK(m)+"."+NK(f)+"."+NK(g)+"."+v,i=EK("dav1",n)}break}}return{codec:a,encrypted:s,supplemental:i}}function EK(e,t){const n=kK(t,["dvvC"]),r=n.length?n[0]:kK(t,["dvcC"])[0];if(r){const t=r[2]>>1&127,n=r[2]<<5&32|r[3]>>3&31;return e+"."+NK(t)+"."+NK(n)}}function jK(e,t){const n=t+5;for(;128&e[t++]&&t<n;);return t}function AK(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function NK(e){return(e<10?"0":"")+e}function PK(e,t){if(!e||!t)return e;const n=t.keyId;if(n&&t.isCommonEncryption){kK(e,["moov","trak"]).forEach((e=>{const t=kK(e,["mdia","minf","stbl","stsd"])[0].subarray(8);let r=kK(t,["enca"]);const i=r.length>0;i||(r=kK(t,["encv"])),r.forEach((e=>{kK(i?e.subarray(28):e.subarray(78),["sinf"]).forEach((e=>{const t=function(e){const t=kK(e,["schm"])[0];if(t){const n=vK(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return kK(e,["schi","tenc"])[0]}return null}(e);if(t){const e=t.subarray(8,24);e.some((e=>0!==e))||(XV.log("[eme] Patching keyId in 'enc".concat(i?"a":"v",">sinf>>tenc' box: ").concat($V(e)," -> ").concat($V(n))),t.set(n,8))}}))}))}))}return e}function RK(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function LK(e,t){const n=[],r=t.samples,i=t.timescale,a=t.id;let s=!1;return kK(r,["moof"]).map((o=>{const l=o.byteOffset-8;kK(o,["traf"]).map((o=>{const c=kK(o,["tfdt"]).map((e=>{const t=e[0];let n=yK(e,4);return 1===t&&(n*=Math.pow(2,32),n+=yK(e,8)),n/i}))[0];return void 0!==c&&(e=c),kK(o,["tfhd"]).map((c=>{const d=yK(c,4),u=16777215&yK(c,0);let h=0;const p=0!==(16&u);let m=0;const f=0!==(32&u);let g=8;d===a&&(0!==(1&u)&&(g+=8),0!==(2&u)&&(g+=4),0!==(8&u)&&(h=yK(c,g),g+=4),p&&(m=yK(c,g),g+=4),f&&(g+=4),"video"===t.type&&(s=IK(t.codec)),kK(o,["trun"]).map((a=>{const o=a[0],c=16777215&yK(a,0),d=0!==(1&c);let u=0;const p=0!==(4&c),f=0!==(256&c);let g=0;const v=0!==(512&c);let b=0;const y=0!==(1024&c),x=0!==(2048&c);let S=0;const k=yK(a,4);let w=8;d&&(u=yK(a,w),w+=4),p&&(w+=4);let T=u+l;for(let l=0;l<k;l++){if(f?(g=yK(a,w),w+=4):g=h,v?(b=yK(a,w),w+=4):b=m,y&&(w+=4),x&&(S=0===o?yK(a,w):SK(a,w),w+=4),t.type===oK){let t=0;for(;t<b;){const a=yK(r,T);if(T+=4,DK(s,r[T])){OK(r.subarray(T,T+a),s?2:1,e+S/i,n)}T+=a,t+=a+4}}e+=g/i}})))}))}))})),n}function IK(e){if(!e)return!1;const t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function DK(e,t){if(e){const e=t>>1&63;return 39===e||40===e}return 6===(31&t)}function OK(e,t,n,r){const i=MK(e);let a=0;a+=t;let s=0,o=0,l=0;for(;a<i.length;){s=0;do{if(a>=i.length)break;l=i[a++],s+=l}while(255===l);o=0;do{if(a>=i.length)break;l=i[a++],o+=l}while(255===l);const e=i.length-a;let t=a;if(o<e)a+=o;else if(o>e){XV.error("Malformed SEI payload. ".concat(o," is too small, only ").concat(e," bytes left to parse."));break}if(4===s){if(181===i[t++]){const e=bK(i,t);if(t+=2,49===e){const e=yK(i,t);if(t+=4,1195456820===e){const e=i[t++];if(3===e){const a=i[t++],o=64&a,l=o?2+3*(31&a):0,c=new Uint8Array(l);if(o){c[0]=a;for(let e=1;e<l;e++)c[e]=i[t++]}r.push({type:e,payloadType:s,pts:n,bytes:c})}}}}}else if(5===s&&o>16){const e=[];for(let n=0;n<16;n++){const r=i[t++].toString(16);e.push(1==r.length?"0"+r:r),3!==n&&5!==n&&7!==n&&9!==n||e.push("-")}const a=o-16,l=new Uint8Array(a);for(let n=0;n<a;n++)l[n]=i[t++];r.push({payloadType:s,pts:n,uuid:e.join(""),userData:ZV(l),userDataBytes:l})}}}function MK(e){const t=e.byteLength,n=[];let r=1;for(;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;const i=t-n.length,a=new Uint8Array(i);let s=0;for(r=0;r<i;s++,r++)s===n[0]&&(s++,n.shift()),a[r]=e[s];return a}
vendor: 19,852 bytes, line 2
2function _K(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");let r,i,a;r=0,i=new Uint8Array,a=new Uint8Array;const s=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.length;let a=8,s=i;for(;s--;)a+=n[s].byteLength;const o=new Uint8Array(a);for(o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(e,4),s=0,a=8;s<i;s++)o.set(n[s],a),a+=n[s].byteLength;return o}([112,115,115,104],new Uint8Array([0,0,0,0]),e,a,i,s,n||new Uint8Array)}const FK=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),BK={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function UK(e,t){const n=BK[t];return!!n&&!!n[e.slice(0,4)]}function zK(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!e.split(",").some((e=>!GK(e,t,n)))}function GK(e,t){var n;const r=JV(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);return null!=(n=null==r?void 0:r.isTypeSupported(WK(e,t)))&&n}function WK(e,t){return"".concat(t,"/mp4;codecs=").concat(e)}function HK(e){if(e){const t=e.substring(0,4);return BK.video[t]}return 2}function VK(e){const t=FK();return e.split(",").reduce(((e,n)=>{const r=t&&IK(n)?9:BK.video[n];return r?(2*r+e)/(e?3:2):(BK.audio[n]+e)/(e?2:1)}),0)}const KK={};const qK=/flac|opus|mp4a\.40\.34/i;function YK(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.replace(qK,(e=>function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(KK[e])return KK[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;i<n.length;i++){var r;if(GK(n[i],"audio",t))return KK[e]=n[i],n[i];if("mp3"===n[i]&&null!=(r=JV(t))&&r.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t)))}function XK(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(JK(e,"audio")||JK(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e)for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t];return n[0]}}return t||e}function JK(e,t){return UK(e,t)&&GK(e,t)}function QK(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function ZK(e){const t=JV(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function $K(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const eq={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function tq(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}function nq(e,t,n,r,i,a){const s=e.videoCodec,o=e.audioCodec?e.audioGroups:null,l=null==a?void 0:a.audioCodec,c=null==a?void 0:a.channels,d=c?parseInt(c):l?1/0:2;let u=null;if(null!=o&&o.length)try{u=1===o.length&&o[0]?t.groups[o[0]].channels:o.reduce(((e,n)=>{if(n){const r=t.groups[n];if(!r)throw new Error("Audio track group ".concat(n," not found"));Object.keys(r.channels).forEach((t=>{e[t]=(e[t]||0)+r.channels[t]}))}return e}),{2:0})}catch(h){return!0}return void 0!==s&&(s.split(",").some((e=>IK(e)))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!u&&TV(d)&&Object.keys(u).some((e=>parseInt(e)>d))}function rq(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=e.videoCodec;if(!i&&!e.audioCodec||!n)return Promise.resolve(eq);const a=[],s=function(e){var t;const n=null==(t=e.videoCodec)?void 0:t.split(","),r=aq(e),i=e.width||640,a=e.height||480,s=e.frameRate||30,o=e.videoRange.toLowerCase();return n?n.map((e=>{const t={contentType:WK(QK(e),"video"),width:i,height:a,bitrate:r,framerate:s};return"sdr"!==o&&(t.transferFunction=o),t})):[]}(e),o=s.length,l=function(e,t,n){var r;const i=null==(r=e.audioCodec)?void 0:r.split(","),a=aq(e);if(i&&e.audioGroups)return e.audioGroups.reduce(((e,r)=>{var s;const o=r?null==(s=t.groups[r])?void 0:s.tracks:null;return o?o.reduce(((e,t)=>{if(t.groupId===r){const r=parseFloat(t.channels||"");i.forEach((t=>{const i={contentType:WK(t,"audio"),bitrate:n?iq(t,a):a};r&&(i.channels=""+r),e.push(i)}))}return e}),e):e}),[]);return[]}(e,t,o>0),c=l.length;for(let d=o||1*c||1;d--;){const e={type:"media-source"};if(o&&(e.video=s[d%o]),c){e.audio=l[d%c];const t=e.audio.bitrate;e.video&&t&&(e.video.bitrate-=t)}a.push(e)}if(i){const e=navigator.userAgent;if(i.split(",").some((e=>IK(e)))&&FK())return Promise.resolve(tq(new Error("Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (".concat(e,")")),a))}return Promise.all(a.map((e=>{const t=function(e){let t="";const{audio:n,video:r}=e;if(r){const e=$K(r.contentType);t+="".concat(e,"_r").concat(r.height,"x").concat(r.width,"f").concat(Math.ceil(r.framerate)).concat(r.transferFunction||"sd","_").concat(Math.ceil(r.bitrate/1e5))}if(n){const e=$K(n.contentType);t+="".concat(r?"_":"").concat(e,"_c").concat(n.channels)}return t}(e);return r[t]||(r[t]=n.decodingInfo(e))}))).then((e=>({supported:!e.some((e=>!e.supported)),configurations:a,decodingInfoResults:e}))).catch((e=>({supported:!1,configurations:a,decodingInfoResults:[],error:e})))}function iq(e,t){if(t<=1)return 1;let n=128e3;return"ec-3"===e?n=768e3:"ac-3"===e&&(n=64e4),Math.min(t/2,n)}function aq(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}const sq=["NONE","TYPE-0","TYPE-1",null];const oq=["SDR","PQ","HLG"];var lq="",cq="YES",dq="v2";function uq(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e;return t&&r<t/2?n?dq:cq:lq}class hq{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class pq{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter((e=>!!e)).map((e=>e.substring(0,4))).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=",".concat(n.substring(0,4)))}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return mq(this._audioGroups,e)}hasSubtitleGroup(e){return mq(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function mq(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function fq(e,t){let n=!1,r=[];if(e&&(n="SDR"!==e,r=[e]),t){r=t.allowedVideoRanges||oq.slice(0);const e="SDR"!==r.join("")&&!t.videoCodec;n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"===typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const gq=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),"object"===typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}})(t));function vq(e,t){XV.log('[abr] start candidates with "'.concat(e,'" ignored because ').concat(t))}function bq(e){return e.reduce(((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function yq(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}}function xq(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let r=0;r<t.length;r++){if(Sq(e,t[r],n))return r}return-1}function Sq(e,t,n){const{groupId:r,name:i,lang:a,assocLang:s,default:o}=e,l=e.forced;return(void 0===r||t.groupId===r)&&(void 0===i||t.name===i)&&(void 0===a||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"--";if(e.length===t.length)return e===t;return e.startsWith(t)||t.startsWith(e)}(a,t.lang))&&(void 0===a||t.assocLang===s)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some((e=>-1===r.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function kq(e,t){const{audioCodec:n,channels:r}=e;return(void 0===n||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(void 0===r||r===(t.channels||"2"))}function wq(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;return-1}function Tq(e,t){var n;return!!e&&e!==(null==(n=t.loadLevelObj)?void 0:n.uri)}const Cq=function(e,t){let n=0,r=e.length-1,i=null,a=null;for(;n<=r;){i=(n+r)/2|0,a=e[i];const s=t(a);if(s>0)n=i+1;else{if(!(s<0))return a;r=i-1}}return null};function Eq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.005,a=null;if(e){a=t[1+e.sn-t[0].sn]||null;const r=e.endDTS-n;r>0&&r<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===jq(n,r,a)||function(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){const r=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),n);return e.start<=r}return!1}(a,e,Math.min(i,r))))return a;const s=Cq(t,jq.bind(null,n,r));return!s||s===e&&a?a:s}function jq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function Aq(e,t,n){const r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}function Nq(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:i}=e;let a;return i&&(r=r.concat(i)),Cq(r,(e=>e.cc<t?1:e.cc>t?-1:(a=e,e.end<=n?1:e.start>n?-1:0))),a||null}return null}function Pq(e){switch(e.details){case AV.FRAG_LOAD_TIMEOUT:case AV.KEY_LOAD_TIMEOUT:case AV.LEVEL_LOAD_TIMEOUT:case AV.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Rq(e,t){const n=Pq(t);return e.default["".concat(n?"timeout":"error","Retry")]}function Lq(e,t){const n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function Iq(e){return GV(GV({},e),{errorRetry:null,timeoutRetry:null})}function Dq(e,t,n,r){if(!e)return!1;const i=null==r?void 0:r.code,a=t<e.maxNumRetry&&(function(e){return 0===e&&!1===navigator.onLine||!!e&&(e<400||e>499)}(i)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,a):a}var Oq=0,Mq=2,_q=3,Fq=5,Bq=0,Uq=1,zq=2;function Gq(e){const t={action:Oq,flags:Bq};return e&&(t.resolved=!0),t}var Wq="NOT_LOADED",Hq="APPENDING",Vq="PARTIAL",Kq="OK";class qq{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.BUFFER_APPENDED,this.onBufferAppended,this),e.on(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.on(NV.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.BUFFER_APPENDED,this.onBufferAppended,this),e.off(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.off(NV.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const t=n[r];if(!t)break;const i=t.end;if(t.start<=e&&null!==i&&e<=i)return t}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let a=i.length;a--;){const s=r[i[a]];if((null==s?void 0:s.body.type)===t&&(!n||s.buffered)){const t=s.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const a=(null==r?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach((r=>{const s=this.fragments[r];if(!s)return;if(a>=s.body.sn)return;if(!s.buffered&&(!s.loaded||i))return void(s.body.type===n&&this.removeFragment(s.body));const o=s.range[e];o&&(0!==o.time.length?o.time.some((e=>{const n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(s.body),n})):this.removeFragment(s.body))}))}detectPartialFragments(e){const t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;const n=e.frag,r=Xq(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const a=!n.relurl;if(Object.keys(t).forEach((r=>{const s=n.elementaryStreams[r];if(!s)return;const o=t[r],l=a||!0===s.partial;i.range[r]=this.getBufferedTimes(n,e.part,l,o)})),i.loaded=null,Object.keys(i.range).length){i.buffered=!0;(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),Yq(i)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Jq(n,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const n=Xq(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},a=e.start,s=e.end,o=e.minEndPTS||s,l=e.maxStartPTS||a;for(let c=0;c<r.length;c++){const e=r.start(c)-this.bufferPadding,t=r.end(c)+this.bufferPadding;if(l>=e&&o<=t){i.time.push({startPTS:Math.max(a,r.start(c)),endPTS:Math.min(s,r.end(c))});break}if(a<t&&s>e){const e=Math.max(a,r.start(c)),t=Math.min(s,r.end(c));t>e&&(i.partial=!0,i.time.push({startPTS:e,endPTS:t}))}else if(s<=e)break}return i}getPartialFragment(e){let t,n,r,i=null,a=0;const{bufferPadding:s,fragments:o}=this;return Object.keys(o).forEach((l=>{const c=o[l];c&&Yq(c)&&(n=c.body.start-s,r=c.body.end+s,e>=n&&e<=r&&(t=Math.min(e-n,r-e),a<=t&&(i=c.body,a=t)))})),i}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||Yq(t))}getState(e){const t=Xq(e),n=this.fragments[t];return n?n.buffered?Yq(n)?Vq:Kq:Hq:Wq}isTimeBuffered(e,t,n){let r,i;for(let a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Xq(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:a}=t;if("initSegment"===n.sn)return;const s=n.type;if(r){let e=this.activePartLists[s];e||(this.activePartLists[s]=e=[]),e.push(r)}this.timeRanges=i;const o=i[a];this.detectEvictedFragments(a,o,s,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Xq(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((null==i?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach((a=>{const s=this.fragments[a];if(!s)return;const o=s.body;o.type!==n||r&&!o.gap||o.start<t&&o.end>e&&(s.buffered||i)&&this.removeFragment(o)}))}removeFragment(e){const t=Xq(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=Jq(n,(e=>e.fragment.sn!==t))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=null==(e=this.hls)||null==(t=e.latestLevelDetails)?void 0:t.partList;n&&n.forEach((e=>e.clearElementaryStreamInfo()))}}function Yq(e){var t,n,r;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(r=e.range.audiovideo)?void 0:r.partial))}function Xq(e){return"".concat(e.type,"_").concat(e.level,"_").concat(e.sn)}function Jq(e,t){return e.filter((e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n}))}var Qq=0,Zq=1;class $q{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case Qq:return this.subtle.decrypt({
vendor: 2,884 bytes, line 2
2name:"AES-CBC",iv:this.aesIV},t,e);case Zq:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error("[AESCrypto] invalid aes mode ".concat(this.aesMode))}}}class eY{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(4*r);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],s=n[3],o=this.invSubMix,l=o[0],c=o[1],d=o[2],u=o[3],h=new Uint32Array(256);let p=0,m=0,f=0;for(f=0;f<256;f++)h[f]=f<128?f<<1:f<<1^283;for(f=0;f<256;f++){let n=m^m<<1^m<<2^m<<3^m<<4;n=n>>>8^255&n^99,e[p]=n,t[n]=p;const o=h[p],f=h[o],g=h[f];let v=257*h[n]^16843008*n;r[p]=v<<24|v>>>8,i[p]=v<<16|v>>>16,a[p]=v<<8|v>>>24,s[p]=v,v=16843009*g^65537*f^257*o^16843008*p,l[n]=v<<24|v>>>8,c[n]=v<<16|v>>>16,d[n]=v<<8|v>>>24,u[n]=v,p?(p=o^h[h[h[g^o]]],m^=h[h[m]]):p=m=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);const a=this.ksRows=4*(i+6+1);let s,o;const l=this.keySchedule=new Uint32Array(a),c=this.invKeySchedule=new Uint32Array(a),d=this.sBox,u=this.rcon,h=this.invSubMix,p=h[0],m=h[1],f=h[2],g=h[3];let v,b;for(s=0;s<a;s++)s<i?v=l[s]=t[s]:(b=v,s%i===0?(b=b<<8|b>>>24,b=d[b>>>24]<<24|d[b>>>16&255]<<16|d[b>>>8&255]<<8|d[255&b],b^=u[s/i|0]<<24):i>6&&s%i===4&&(b=d[b>>>24]<<24|d[b>>>16&255]<<16|d[b>>>8&255]<<8|d[255&b]),l[s]=v=(l[s-i]^b)>>>0);for(o=0;o<a;o++)s=a-o,b=3&o?l[s]:l[s-4],c[o]=o<4||s<=4?b:p[d[b>>>24]]^m[d[b>>>16&255]]^f[d[b>>>8&255]]^g[d[255&b]],c[o]=c[o]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,a=this.invSBox,s=this.invSubMix,o=s[0],l=s[1],c=s[2],d=s[3],u=this.uint8ArrayToUint32Array_(n);let h=u[0],p=u[1],m=u[2],f=u[3];const g=new Int32Array(e),v=new Int32Array(g.length);let b,y,x,S,k,w,T,C,E,j,A,N,P,R;const L=this.networkToHostOrderSwap;for(;t<g.length;){for(E=L(g[t]),j=L(g[t+1]),A=L(g[t+2]),N=L(g[t+3]),k=E^i[0],w=N^i[1],T=A^i[2],C=j^i[3],P=4,R=1;R<r;R++)b=o[k>>>24]^l[w>>16&255]^c[T>>8&255]^d[255&C]^i[P],y=o[w>>>24]^l[T>>16&255]^c[C>>8&255]^d[255&k]^i[P+1],x=o[T>>>24]^l[C>>16&255]^c[k>>8&255]^d[255&w]^i[P+2],S=o[C>>>24]^l[k>>16&255]^c[w>>8&255]^d[255&T]^i[P+3],k=b,w=y,T=x,C=S,P+=4;b=a[k>>>24]<<24^a[w>>16&255]<<16^a[T>>
vendor: 4,085 bytes, line 2
28&255]<<8^a[255&C]^i[P],y=a[w>>>24]<<24^a[T>>16&255]<<16^a[C>>8&255]<<8^a[255&k]^i[P+1],x=a[T>>>24]<<24^a[C>>16&255]<<16^a[k>>8&255]<<8^a[255&w]^i[P+2],S=a[C>>>24]<<24^a[k>>16&255]<<16^a[w>>8&255]<<8^a[255&T]^i[P+3],v[t]=L(b^h),v[t+1]=L(S^p),v[t+2]=L(x^m),v[t+3]=L(y^f),h=E,p=j,m=A,f=N,t+=4}return v.buffer}}class tY{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=function(e){switch(e){case Qq:return"AES-CBC";case Zq:return"AES-CTR";default:throw new Error("[FastAESKey] invalid aes mode ".concat(e))}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}class nY{constructor(e){let{removePKCS7Padding:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(Ps){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?function(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise(((i,a)=>{const s=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(s,t,n,r);const o=this.flush();o?i(o.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:a,remainderData:s}=this;if(r!==Qq||16!==t.byteLength)return XV.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),s&&(e=RK(s,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;i&&(n=i);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new eY),l.expandKey(t);const c=a;return this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,c||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new tY(this.subtle,t,r)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new $q(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,t)})).catch((i=>(XV.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(i.name,": ").concat(i.message)),this.onWebCryptoError(e,t,n,r))))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const i=this.flush();if(i)return i.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(XV.log("[decrypter]: ".concat(e)),this.logEnabled=!1)}}const rY=Math.pow(2,17);class iY{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new oY({type:jV.NETWORK_ERROR,details:AV.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a ".concat(n?"part list":"url")),networkDetails:null}));this.abort();
vendor: 9,817 bytes, line 2
2const r=this.config,i=r.fLoader,a=r.loader;return new Promise(((s,o)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some((e=>"GAP"===e[0])))return void o(sY(e));e.gap=!1}const l=this.loader=i?new i(r):new a(r),c=aY(e);e.loader=l;const d=Iq(r.fragLoadPolicy.default),u={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:rY};e.stats=l.stats;const h={onSuccess:(t,n,r,i)=>{this.resetLoader(e,l);let a=t.data;r.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),s({frag:e,part:null,payload:a,networkDetails:i})},onError:(t,r,i,a)=>{this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:GV({url:n,data:void 0},t),error:new Error("HTTP Error ".concat(t.code," ").concat(t.text)),networkDetails:i,stats:a}))},onAbort:(t,n,r)=>{this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:r,stats:t}))},onTimeout:(t,n,r)=>{this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error("Timeout after ".concat(u.timeout,"ms")),networkDetails:r,stats:t}))}};t&&(h.onProgress=(n,r,i,a)=>t({frag:e,part:null,payload:i,networkDetails:a})),l.load(c,u,h)}))}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,a=r.loader;return new Promise(((s,o)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void o(sY(e,t));const l=this.loader=i?new i(r):new a(r),c=aY(e,t);e.loader=l;const d=Iq(r.fragLoadPolicy.default),u={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:rY};t.stats=l.stats,l.load(c,u,{onSuccess:(r,i,a,o)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const c={frag:e,part:t,payload:r.data,networkDetails:o};n(c),s(c)},onError:(n,r,i,a)=>{this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:GV({url:c.url,data:void 0},n),error:new Error("HTTP Error ".concat(n.code," ").concat(n.text)),networkDetails:i,stats:a}))},onAbort:(n,r,i)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:i,stats:n}))},onTimeout:(n,r,i)=>{this.resetLoader(e,l),o(new oY({type:jV.NETWORK_ERROR,details:AV.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error("Timeout after ".concat(u.timeout,"ms")),networkDetails:i,stats:n}))}})}))}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const r=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/i),r),s=(r-a)*Math.round(n.loaded/a);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);const a=n.loading,s=r.loading;a.start?a.first+=s.first-s.start:(a.start=s.start,a.first=s.first),a.end=s.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function aY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(TV(i)&&TV(a)){var s;let t=i,n=a;if("initSegment"===e.sn&&("AES-128"===(o=null==(s=e.decryptdata)?void 0:s.method)||"AES-256"===o)){const e=a-i;e%16&&(n=a+(16-e%16)),0!==i&&(r.resetIV=!0,t=i-16)}r.rangeStart=t,r.rangeEnd=n}var o;return r}function sY(e,t){const n=new Error("GAP ".concat(e.gap?"tag":"attribute"," found")),r={type:jV.MEDIA_ERROR,details:AV.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new oY(r)}class oY extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class lY extends WV{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class cY{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=a}}const dY={length:0,start:()=>0,end:()=>0};class uY{static isBuffered(e,t){if(e){const n=uY.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=uY.getBuffered(e);return uY.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=uY.bufferedRanges(e);if(r.length)return uY.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort(((e,t)=>e.start-t.start||t.end-e.end));let r=-1,i=[];if(n)for(let c=0;c<e.length;c++){t>=e[c].start&&t<=e[c].end&&(r=c);const a=i.length;if(a){const t=i[a-1].end;e[c].start-t<n?e[c].end>t&&(i[a-1].end=e[c].end):i.push(e[c])}else i.push(e[c])}else i=e;let a,s=0,o=t,l=t;for(let c=0;c<i.length;c++){const e=i[c].start,d=i[c].end;if(-1===r&&t>=e&&t<=d&&(r=c),t+n>=e&&t<d)o=e,l=d,s=l-t;else if(t+n<e){a=e;break}}return{len:s,start:o||0,end:l||0,nextStart:a,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||dY}catch(Ps){return XV.log("failed to get media.buffered",Ps),dY}}}const hY=/\{\$([a-zA-Z0-9-_]+)\}/g;function pY(e){return hY.test(e)}function mY(e,t){if(null!==e.variableList||e.hasVariableRefs){const n=e.variableList;return t.replace(hY,(t=>{const r=t.substring(2,t.length-1),i=null==n?void 0:n[r];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(r,'"'))),t):i}))}return t}function fY(e,t,n){let r,i,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){r=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(r))throw new Error('"'.concat(r,'" does not match any query parameter in URI: "').concat(n,'"'));i=e.get(r)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(s.message)))}}else r=t.NAME,i=t.VALUE;r in a?e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(r,'"'))):a[r]=i||""}function gY(e,t,n){const r=t.IMPORT;if(n&&r in n){let t=e.variableList;t||(e.variableList=t={}),t[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(r,'"')))}const vY=/^(\d+)x(\d+)$/,bY=/(.+?)=(".*?"|.*?)(?:,|$)/g;class yY{constructor(e,t){"string"===typeof e&&(e=yY.parseAttrList(e,t)),UV(this,e)}get clientAttrs(){return Object.keys(this).filter((e=>"X-"===e.substring(0,2)))}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;const n=new Uint8Array(t.length/2);for(let e=0;e<t.length/2;e++)n[e]=parseInt(t.slice(2*e,2*e+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce(((e,t)=>(e[t.toLowerCase()]=!0,e)),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=vY.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={};for(bY.lastIndex=0;null!==(n=bY.exec(e));){const i=n[1].trim();let a=n[2];const s=0===a.indexOf('"')&&a.lastIndexOf('"')===a.length-1;let o=!1;if(s)a=a.slice(1,-1);else switch(i){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(t&&(s||o))a=mY(t,a);else if(!o&&!s)switch(i){case"CLOSED-CAPTIONS":if("NONE"===a)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":XV.warn("".concat(e,": attribute ").
vendor: 4,103 bytes, line 2
2concat(i," is missing quotes"))}r[i]=a}return r}}function xY(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class SY{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(r=null==t?void 0:t.tagOrder)?r:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){XV.warn('DATERANGE tag attribute: "'.concat(t,'" does not match for tags with ID: "').concat(e.ID,'"')),this._badValueForSameId=t;break}e=UV(new yY({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);TV(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return null===e||null===e.programDateTime?(XV.warn('Expected tagAnchor Fragment with PDT set for DateRange "'.concat(this.id,'": ').concat(e)),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(TV(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&TV(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class kY{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e)return this.advanced=!0,void(this.updated=!0);const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&TV(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}
2get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function wY(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function TY(e){switch(e){case"AES-128":case"AES-256":return Qq;case"AES-256-CTR":return Zq;default:throw new Error("invalid full segment method ".concat(e))}}function CY(e){return Uint8Array.from(atob(e),(e=>e.charCodeAt(0)))}function EY(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(e=>e.charCodeAt(0)))}function jY(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),r=e[e.length-1].split(",");if(2===r.length){const t="base64"===r[0],i=r[1];t?(e.splice(-1,1),n=CY(i)):n=function(e){const t=EY(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(i)}}return n}const AY="undefined"!==typeof self?self:void 0;var NY={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},PY="org.w3.clearkey",RY="com.apple.streamingkeydelivery",LY="com.microsoft.playready",IY="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function DY(e){switch(e){case RY:return NY.FAIRPLAY;case LY:return NY.PLAYREADY;case IY:return NY.WIDEVINE;case PY:return NY.CLEARKEY}}function OY(e){switch(e){case NY.FAIRPLAY:return RY;case NY.PLAYREADY:return LY;case NY.WIDEVINE:return IY;case NY.CLEARKEY:return PY}}function MY(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[NY.FAIRPLAY,NY.WIDEVINE,NY.PLAYREADY,NY.CLEARKEY].filter((e=>!!t[e])):[];return!r[NY.WIDEVINE]&&n&&r.push(NY.WIDEVINE),r}const _Y=null!=AY&&null!=(FY=AY.navigator)&&FY.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var FY;let BY={};class UY{static clearKeyUriToKeyIdMap(){BY={}}constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5?arguments[5]:void 0;this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!wY(e),null!=a&&a.startsWith("0x")&&(this.keyId=new Uint8Array(eK(a)))}matches(e){var t,n;return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&e.keyFormatVersions.join(",")===this.keyFormatVersions.join(",")&&(null==(t=e.iv)?void 0:t.join(","))===(null==(n=this.iv)?void 0:n.join(","))}isSupported(){if(this.method){if(wY(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case RY:case IY:case LY:case PY:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(wY(this.method)&&this.uri&&!this.iv){"number"!==typeof e&&(XV.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),e=0);const t=function(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e);return new UY(this.method,this.uri,"identity",this.keyFormatVersions,t)}if(this.pssh&&this.keyId)return this;const t=jY(this.uri);if(t)switch(this.keyFormat){case IY:if(this.pssh=t,!this.keyId&&t.length>=22){const e=t.length-22;this.keyId=t.subarray(e,e+16)}break;case LY:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);
vendor: 9,342 bytes, line 2
2this.pssh=_K(e,0,t),this.keyId=function(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),i=(new DOMParser).parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(i){const e=i.childNodes[0]?i.childNodes[0].nodeValue:i.getAttribute("VALUE");if(e){const t=CY(e).subarray(0,16);return function(e){const t=function(e,t,n){const r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(t),t}}return null}(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(!this.keyId||16!==this.keyId.byteLength){let e=BY[this.uri];if(!e){const t=Object.keys(BY).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16);new DataView(e.buffer,12,4).setUint32(0,t),BY[this.uri]=e}this.keyId=e}return this}}const zY=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,GY=/#EXT-X-MEDIA:(.*)/g,WY=/^#EXT(?:INF|-X-TARGETDURATION):/m,HY=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),VY=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class KY{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return iK.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return WY.test(e)}static parseMasterPlaylist(e,t){const n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:pY(e)},r=[];let i;for(zY.lastIndex=0;null!=(i=zY.exec(e));)if(i[1]){var a;const e=new yY(i[1],n),s=mY(n,i[2]),o={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:KY.resolve(s,t)},l=e.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),QY(e.CODECS,o);const c=e["SUPPLEMENTAL-CODECS"];c&&(o.supplemental={},QY(c,o.supplemental)),null!=(a=o.unknownCodecs)&&a.length||r.push(o),n.levels.push(o)}else if(i[3]){const e=i[3],r=i[4];switch(e){case"SESSION-DATA":{const e=new yY(r,n),t=e["DATA-ID"];t&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[t]=e);break}case"SESSION-KEY":{const e=XY(r,t,n);e.encrypted&&e.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(e)):XV.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(r,'"'));break}case"DEFINE":fY(n,new yY(r,n),t);break;case"CONTENT-STEERING":{const e=new yY(r,n);n.contentSteering={uri:KY.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":n.startTimeOffset=JY(r)}}const s=r.length>0&&r.length<n.levels.length;return n.levels=s?r:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,n){let r;const i={},a=n.levels,s={AUDIO:a.map((e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec}))),SUBTITLES:a.map((e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec}))),"CLOSED-CAPTIONS":[]};let o=0;for(GY.lastIndex=0;null!==(r=GY.exec(e));){const e=new yY(r[1],n),a=e.TYPE;if(a){const n=s[a],r=i[a]||[];i[a]=r;const l=e.LANGUAGE,c=e["ASSOC-LANGUAGE"],d=e.CHANNELS,u=e.CHARACTERISTICS,h=e["INSTREAM-ID"],p={attrs:e,bitrate:0,id:o++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:a,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?KY.resolve(e.URI,t):""};if(c&&(p.assocLang=c),d&&(p.channels=d),u&&(p.characteristics=u),h&&(p.instreamId=h),null!=n&&n.length){const e=KY.findGroup(n,p.groupId)||n[0];ZY(p,e,"audioCodec"),ZY(p,e,"textCodec")}r.push(p)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){var s;const o={url:t},l=new kY(t),c=l.fragments,d=[];let u,h,p,m,f=null,g=0,v=0,b=0,y=0,x=0,S=null,k=new uK(r,o),w=-1,T=!1,C=null;if(HY.lastIndex=0,l.m3u8=e,l.hasVariableRefs=pY(e),"#EXTM3U"!==(null==(s=HY.exec(e))?void 0:s[0]))return l.playlistParsingError=new Error("Missing format identifier #EXTM3U"),l;for(;null!==(u=HY.exec(e));){T&&(T=!1,k=new uK(r,o),k.playlistOffset=b,k.start=b,k.sn=g,k.cc=y,x&&(k.bitrate=x),k.level=n,f&&(k.initSegment=f,f.rawProgramDateTime&&(k.rawProgramDateTime=f.rawProgramDateTime,f.rawProgramDateTime=null),C&&(k.setByteRange(C),C=null)));const e=u[1];if(e){k.duration=parseFloat(e);const t=(" "+u[2]).slice(1);k.title=t||null,k.tagList.push(t?["INF",e,t]:["INF",e])}else if(u[3]){if(TV(k.duration)){k.playlistOffset=b,k.start=b,p&&tX(k,p,l),k.sn=g,k.level=n,k.cc=y,c.push(k);const e=(" "+u[3]).slice(1);k.relurl=mY(l,e),$Y(k,S,d),S=k,b+=k.duration,g++,v=0,T=!0}}else{if(u=u[0].match(VY),!u){XV.warn("No matches on slow regex match for level playlist!");continue}for(h=1;h<u.length&&void 0===u[h];h++);const e=(" "+u[h]).slice(1),i=(" "+u[h+1]).slice(1),s=u[h+2]?(" "+u[h+2]).slice(1):null;switch(e){case"BYTERANGE":S?k.setByteRange(i,S):k.setByteRange(i);break;case"PROGRAM-DATE-TIME":k.rawProgramDateTime=i,k.tagList.push(["PROGRAM-DATE-TIME",i]),-1===w&&(w=c.length);break;case"PLAYLIST-TYPE":l.type&&nX(l,e,u),l.type=i.toUpperCase();break;case"MEDIA-SEQUENCE":0!==l.startSN?nX(l,e,u):c.length>0&&rX(l,e,u),g=l.startSN=parseInt(i);break;case"SKIP":{l.skippedSegments&&nX(l,e,u);const t=new yY(i,l),n=t.decimalInteger("SKIPPED-SEGMENTS");if(TV(n)){l.skippedSegments+=n;for(let e=n;e--;)c.push(null);g+=n}const r=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(l.recentlyRemovedDateranges=(l.recentlyRemovedDateranges||[]).concat(r.split("\t")));break}case"TARGETDURATION":0!==l.targetduration&&nX(l,e,u),l.targetduration=Math.max(parseInt(i),1);break;case"VERSION":null!==l.version&&nX(l,e,u),l.version=parseInt(i);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":l.live||nX(l,e,u),l.live=!1;break;case"#":(i||s)&&k.tagList.push(s?[i,s]:[i]);break;case"DISCONTINUITY":y++,k.tagList.push(["DIS"]);break;case"GAP":k.gap=!0,k.tagList.push([e]);break;case"BITRATE":k.tagList.push([e,i]),x=1e3*parseInt(i),TV(x)?k.bitrate=x:x=0;break;case"DATERANGE":{const e=new yY(i,l),t=new SY(e,l.dateRanges[e.ID],l.dateRangeTagCount);l.dateRangeTagCount++,t.isValid||l.skippedSegments?l.dateRanges[t.id]=t:XV.warn('Ignoring invalid DATERANGE tag: "'.concat(i,'"')),k.tagList.push(["EXT-X-DATERANGE",i]);break}case"DEFINE":{const e=new yY(i,l);"IMPORT"in e?gY(l,e,a):fY(l,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==l.startCC?nX(l,e,u):c.length>0&&rX(l,e,u),l.startCC=y=parseInt(i);break;case"KEY":{const e=XY(i,t,l);if(e.isSupported()){if("NONE"===e.method){p=void 0;break}p||(p={});const t=p[e.keyFormat];null!=t&&t.matches(e)||(t&&(p=UV({},p)),p[e.keyFormat]=e)}else XV.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(i,'"'));break}case"START":l.startTimeOffset=JY(i);break;case"MAP":{const e=new yY(i,l);if(k.duration){const t=new uK(r,o);eX(t,e,n,p),f=t,k.initSegment=f,f.rawProgramDateTime&&!k.rawProgramDateTime&&(k.rawProgramDateTime=f.rawProgramDateTime)}else{const t=k.byteRangeEndOffset;if(t){const e=k.byteRangeStartOffset;C="".concat(t-e,"@").concat(e)}else C=null;eX(k,e,n,p),f=k,T=!0}f.cc=y;break}case"SERVER-CONTROL":m&&nX(l,e,u),m=new yY(i),l.canBlockReload=m.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=m.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&m.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=m.optionalFloat("PART-HOLD-BACK",0),l.holdBack=m.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{l.partTarget&&nX(l,e,u);const t=new yY(i);l.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=l.partList;e||(e=l.partList=[]);const t=v>0?e[e.length-1]:void 0,n=v++,r=new yY(i,l),a=new hK(r,k,o,n,t);e.push(a),k.duration+=a.duration;break}case"PRELOAD-HINT":{const e=new yY(i,l);l.preloadHint=e;break}case"RENDITION-REPORT":{const e=new yY(i,l);l.renditionReports=l.renditionReports||[],l.renditionReports.push(e);break}default:XV.warn("line parsed but not handled: ".concat(u))}}}S&&!S.relurl?(c.pop(),b-=S.duration,l.partList&&(l.fragmentHint=S)):l.partList&&($Y(k,S,d),k.cc=y,l.fragmentHint=k,p&&tX(k,p,l)),l.targetduration||(l.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const E=c.length,j=c[0],A=c[E-1];if(b+=l.skippedSegments*l.targetduration,b>0&&E&&A){l.averagetargetduration=b/E;const e=A.sn;l.endSN="initSegment"!==e?e:0,l.live||(A.endList=!0),j&&void 0===l.startCC&&(l.startCC=j.cc),w>0&&(!function(e,t){let n=e[t];for(let r=t;r--;){const t=e[r];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(c,w),j&&d.unshift(j))}else l.endSN=0,l.startCC=0;return l.fragmentHint&&(b+=l.fragmentHint.duration),l.totalduration=b,d.length&&l.dateRangeTagCount&&j&&qY(d,l),l.endCC=y,l}}function qY(e,t){const n=e.length;if(!n)return;const r=e[n-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let s=a.length;s--;){const o=t.dateRanges[a[s]],l=o.startDate.getTime();o.tagAnchor=r.ref;for(let r=n;r--;){const n=YY(t,l,e,r,i);if(-1!==n){o.tagAnchor=t.fragments[n].ref;break}}}}
vendor: 4,123 bytes, line 2
2function YY(e,t,n,r,i){const a=n[r];if(a){const o=a.programDateTime;if(t>=o||0===r){var s;if(t<=o+1e3*(((null==(s=n[r+1])?void 0:s.start)||i)-a.start)){const i=n[r].sn-e.startSN,a=e.fragments;if(a.length>n.length){for(let s=(n[r+1]||a[a.length-1]).sn-e.startSN;s>i;s--){const e=a[s].programDateTime;if(t>=e&&t<e+1e3*a[s].duration)return s}}return i}}}return-1}function XY(e,t,n){var r,i;const a=new yY(e,n),s=null!=(r=a.METHOD)?r:"",o=a.URI,l=a.hexadecimalInteger("IV"),c=a.KEYFORMATVERSIONS,d=null!=(i=a.KEYFORMAT)?i:"identity";o&&a.IV&&!l&&XV.error("Invalid IV: ".concat(a.IV));const u=o?KY.resolve(o,t):"",h=(c||"1").split("/").map(Number).filter(Number.isFinite);return new UY(s,u,d,h,l,a.KEYID)}function JY(e){const t=new yY(e).decimalFloatingPoint("TIME-OFFSET");return TV(t)?t:null}function QY(e,t){let n=(e||"").split(/[ ,]+/).filter((e=>e));["video","audio","text"].forEach((e=>{const r=n.filter((t=>UK(t,e)));r.length&&(t["".concat(e,"Codec")]=r.map((e=>e.split("/")[0])).join(","),n=n.filter((e=>-1===r.indexOf(e))))})),t.unknownCodecs=n}function ZY(e,t,n){const r=t[n];r&&(e[n]=r)}function $Y(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function eX(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function tX(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||r.push(e)}function nX(e,t,n){e.playlistParsingError=new Error("#EXT-X-".concat(t," must not appear more than once (").concat(n[0],")"))}function rX(e,t,n){e.playlistParsingError=new Error("#EXT-X-".concat(t," must appear before the first Media Segment (").concat(n[0],")"))}function iX(e,t){const n=t.startPTS;if(TV(n)){let r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&r.setDuration(i)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function aX(e,t,n,r,i,a){r-n<=0&&(XV.warn("Fragment should have a positive duration",t),r=n+t.duration,a=i+t.duration);let s=n,o=r;const l=t.startPTS,c=t.endPTS;if(TV(l)){const e=Math.abs(l-n);TV(t.deltaPTS)?t.deltaPTS=Math.max(e,t.deltaPTS):t.deltaPTS=e,s=Math.max(n,l),n=Math.min(n,l),i=Math.min(i,t.startDTS),o=Math.min(r,c),r=Math.max(r,c),a=Math.max(a,t.endDTS)}const d=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=s,t.startDTS=i,t.endPTS=r,t.minEndPTS=o,t.endDTS=a;const u=t.sn;if(!e||u<e.startSN||u>e.endSN)return 0;let h;const p=u-e.startSN,m=e.fragments;for(m[p]=t,h=p;h>0;h--)iX(m[h],m[h-1]);for(h=p;h<m.length-1;h++)iX(m[h],m[h+1]);return e.fragmentHint&&iX(m[m.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,d}function sX(e,t){if(e===t)return;let n=null;const r=e.fragments;for(let c=r.length-1;c>=0;c--){const e=r[c].initSegment;if(e){n=e;break}}let i;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){const r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let c=i;c<=a;c++){const i=l[s+c];let a=o[c];if(r&&!a&&i&&(a=t.fragments[c]=i),i&&a){if(n(i,a,c,o),i.url&&i.url!==a.url)return void(t.playlistParsingError=oX("media sequence mismatch ".concat(a.sn,":"),e,t,i,a));if(i.cc!==a.cc)return void(t.playlistParsingError=oX("discontinuity sequence mismatch (".concat(i.cc,"!=").concat(a.cc,")"),e,t,i,a))}}}(e,t,((e,r,a,s)=>{if((!t.startCC||t.skippedSegments)&&r.cc!==e.cc){const n=e.cc-r.cc;for(let e=a;e<s.length;e++)s[e].cc+=n;t.endCC=s[s.length-1].cc}TV(e.startPTS)&&TV(e.endPTS)&&(r.setStart(r.startPTS=e.startPTS),r.startDTS=e.startDTS,r.maxStartPTS=e.maxStartPTS,r.endPTS=e.endPTS,r.endDTS=e.endDTS,r.minEndPTS=e.minEndPTS,r.setDuration(e.endPTS-e.startPTS),r.duration&&(i=r),t.PTSKnown=t.alignedSliding=!0),e.hasStream
vendor: 6,886 bytes, line 2
2s&&(r.elementaryStreams=e.elementaryStreams),r.loader=e.loader,e.hasStats&&(r.stats=e.stats),e.initSegment&&(r.initSegment=e.initSegment,n=e.initSegment)}));const a=t.fragments,s=t.fragmentHint?a.concat(t.fragmentHint):a;if(n&&s.forEach((e=>{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=n)?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments){if(t.deltaUpdateFailed=a.some((e=>!e)),t.deltaUpdateFailed){XV.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)a.shift();t.startSN=a[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=t,i=UV({},e);r&&r.forEach((e=>{delete i[e]}));const a=Object.keys(i).length;a&&Object.keys(n).forEach((e=>{const t=i[e],r=new SY(n[e].attr,t);r.isValid?(i[e]=r,t||(r.tagOrder+=a)):XV.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(gq(n[e].attr),'"'))}));return i}(e.dateRanges,t));const n=e.fragments.filter((e=>e.rawProgramDateTime));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<s.length;e++)null===s[e].programDateTime&&$Y(s[e],s[e-1],n);qY(n,t)}t.endCC=a[a.length-1].cc}if(!t.startCC){var o;const n=uX(e,t.startSN-1);t.startCC=null!=(o=null==n?void 0:n.cc)?o:a[0].cc}!function(e,t,n){if(e&&t){let r=0;for(let i=0,a=e.length;i<=a;i++){const a=e[i],s=t[i+r];a&&s&&a.index===s.index&&a.fragment.sn===s.fragment.sn?n(a,s):r--}}}(e.partList,t.partList,((e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),i?aX(t,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):lX(e,t),a.length&&(t.totalduration=t.edge-a[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const l=t.advancedDateTime;if(t.advanced&&l){const e=t.edge;t.driftStart||(t.driftStartTime=l,t.driftStart=e),t.driftEndTime=l,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function oX(e,t,n,r,i){return new Error("".concat(e," ").concat(i.url,"\nPlaylist starting @").concat(t.startSN,"\n").concat(t.m3u8,"\n\nPlaylist starting @").concat(n.startSN,"\n").concat(n.m3u8))}function lX(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,a=r>=0;let s=0;if(a&&r<i.length)s=i[r].start;else if(a&&t.startSN===e.endSN+1)s=e.fragmentEnd;else if(a&&n)s=e.fragmentStart+r*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;s=e.fragmentStart}cX(t,s)}function cX(e,t){if(t){const n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function dX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=1e3*e.targetduration;if(e.updated){const r=e.fragments,i=4;if(r.length&&n*i>t){const e=1e3*r[r.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function uX(e,t,n){if(!e)return null;let r=e.fragments[t-e.startSN];return r||(r=e.fragmentHint,r&&r.sn===t?r:t<e.startSN&&n&&n.sn===t?n:null)}function hX(e,t,n){return e?pX(e.partList,t,n):null}function pX(e,t,n){if(e)for(let r=e.length;r--;){const i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function mX(e){e.forEach(((e,t)=>{var n;null==(n=e.details)||n.fragments.forEach((e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function fX(e,t){for(let r=0,i=e.length;r<i;r++){var n;if((null==(n=e[r])?void 0:n.cc)===t)return e[r]}return null}function gX(e,t){if(e){const n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function vX(e,t){const n=t.fragments;for(let r=0,i=n.length;r<i;r++)gX(n[r],e);t.fragmentHint&&gX(t.fragmentHint,e),t.alignedSliding=!0}function bX(e,t){if(!function(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}(t,e))return;const n=Math.min(t.endCC,e.endCC),r=fX(t.fragments,n),i=fX(e.fragments,n);if(!r||!i)return;XV.log("Aligning playlist at start of dicontinuity sequence ".concat(n));vX(r.start-i.start,e)}function yX(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,r=t.fragments;if(!n.length||!r.length)return;let i,a;const s=Math.min(t.endCC,e.endCC);t.startCC<s&&e.startCC<s&&(i=fX(r,s),a=fX(n,s)),i&&a||(i=r[Math.floor(r.length/2)],a=fX(n,i.cc)||n[Math.floor(n.length/2)]);const o=i.programDateTime,l=a.programDateTime;if(!o||!l)return;vX((l-o)/1e3-(a.start-i.start),e)}const xX=function(e){let t="";const n=e.length;for(let r=0;r<n;r++)t+="[".concat(e.start(r).toFixed(3),"-").concat(e.end(r).toFixed(3),"]");return t},SX="STOPPED",kX="IDLE",wX="KEY_LOADING",TX="FRAG_LOADING",CX="FRAG_LOADING_WAITING_RETRY",EX="WAITING_TRACK",jX="PARSING",AX="PARSED",NX="ENDED",PX="ERROR",RX="WAITING_INIT_PTS",LX="WAITING_LEVEL";class IX extends lY{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=SX,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,a=n?n.currentTime:0,s=uY.bufferInfo(r||n,a,e.maxBufferHole),o=!s.len;if(this.log("Media seeking to ".concat(TV(a)?a.toFixed(3):a,", state: ").concat(i,", ").concat(o?"out of":"in"," buffer")),this.state===NX)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,r=t.start-n,i=t.start+t.duration+n;if(o||i<s.start||r>s.end){const e=a>i;(a<r||e)&&(e&&t.loader&&(this.log("Cancelling fragment load for seek (sn: ".concat(t.sn,")")),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(n){this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0);if(a>this.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts){const e=Math.max(s.end,a),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log("LL-Part loading ON after seeking to ".concat(a.toFixed(2)," with buffer @").concat(e.toFixed(2))),this.loadingParts=t)}}this.hls.hasEnoughToStart||(this.log("Setting ".concat(o?"startPosition":"nextLoadPosition"," to ").concat(a," for seek without enough to start")),this.nextLoadPosition=a,o&&(this.startPosition=a)),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new iY(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new nY(e.config)}registerListeners(){const{hls:e}=this;
2e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(NV.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===SX)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=SX}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return-1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=uY.bufferedInfo(i,e.start,0));const a=e.nextStart;if(a&&a>r&&a<t.edge)return!1;if(this.media.currentTime<e.start)return!1;const s=t.partList;if(null!=s&&s.length){const e=s[s.length-1];return uY.isBuffered(this.media,e.start+e.duration/2)}const o=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(o)}getLevelDetails(){var e;if(this.levels&&null!==this.levelLastLoaded)return null==(e=this.levelLastLoaded)?void 0:e.details}get timelineOffset(){const e=this.config.timelineOffset;var t;return e?(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e:0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===SX&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(null!==r){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n)return this.resetLoadingState(),void this.resetTransmuxer();this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=SX,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){this._doFragLoad(e,t,n,(e=>{const t=e.frag;if(this.fragContextChanged(t))return this.warn("".concat(t.type," sn: ").concat(t.sn).concat(e.part?" part: "+e.part.index:""," of ").concat(this.fragInfo(t,!1,e.part),") was dropped during download.")),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const t=this.state,n=e.frag;this.fragContextChanged(n)?(t===TX||!this.fragCurrent&&t===jX)&&(this.fragmentTracker.removeFragment(n),this.state=kX):("payload"in e&&(this.log("Loaded ".concat(n.type," sn: ").concat(n.sn," of ").concat(this.playlistLabel()," ").concat(n.level)),this.hls.trigger(NV.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((t=>{this.state!==SX&&this.state!==PX&&(this.warn("Frag error: ".concat((null==t?void 0:t.message)||t)),this.resetFragmentLoading(e))}))}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Hq){const t=e.type,r=this.getFwdBufferInfo(this.mediaBuffer,t),i=Math.max(e.duration,r?r.len:this.config.maxBufferLength),a=this.backtrackFragment;(1===(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(i,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===Vq&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null};this.hls.trigger(NV.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then((e=>{const t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:t}=this,{frag:n,payload:r}=e,i=n.decryptdata;if(r&&r.byteLength>0&&null!=i&&i.key&&i.iv&&wY(i.method)){const a=self.performance.now();
2return this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,TY(i.method)).catch((e=>{throw t.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((r=>{const i=self.performance.now();return t.trigger(NV.FRAG_DECRYPTED,{frag:n,payload:r,stats:{tstart:a,tdecrypt:i}}),e.payload=r,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==SX&&this.state!==PX&&(this.warn(t),this.resetFragmentLoading(e))}))}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==SX&&(this.state=kX),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(e.type," sn: ").concat(e.sn).concat(t?" part: "+t.index:""," of ").concat(this.fragInfo(e,!1,t)," > buffer:").concat(n?xX(uY.getBuffered(n)):"(detached)",")")),dK(e)){var r;if(e.type!==MV){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=kX)}const t=null==(r=this.levels)?void 0:r[e.level];null!=t&&t.fragmentError&&(this.log("Resetting level fragment error count of ".concat(t.fragmentError," on frag buffered")),t.fragmentError=0)}this.state=kX}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,a=!i||0===i.length||i.some((e=>!e)),s=new cY(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a);t.flush(s)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;var i;this.fragCurrent=e;const a=null==t?void 0:t.details;if(!this.levels||!a)throw new Error("frag load aborted, missing level".concat(a?"":" detail","s"));let s=null;!e.encrypted||null!=(i=e.decryptdata)&&i.key?e.encrypted||(s=this.keyLoader.loadClear(e,a.encryptedFragments,this.startFragRequested),s&&this.log("[eme] blocking frag load until media-keys acquired")):(this.log("Loading key for ".concat(e.sn," of [").concat(a.startSN,"-").concat(a.endSN,"], ").concat(this.playlistLabel()," ").concat(e.level)),this.state=wX,this.fragCurrent=e,s=this.keyLoader.load(e).then((e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(NV.KEY_LOADED,e),this.state===wX&&(this.state=kX),e})),this.hls.trigger(NV.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(s=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const o=this.fragPrevious;if(dK(e)&&(!o||e.sn!==o.sn)){const n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log("LL-Part loading ".concat(n?"ON":"OFF"," loading sn ").concat(null==o?void 0:o.sn,"->").concat(e.sn)),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&dK(e)){const i=a.partList;if(i&&r){n>e.end&&a.fragmentHint&&(e=a.fragmentHint);const o=this.getNextPart(i,e,n);if(o>-1){const l=i[o];let c;return e=this.fragCurrent=l.fragment,this.log("Loading ".concat(e.type," sn: ").concat(e.sn," part: ").concat(l.index," (").concat(o,"/").concat(i.length-1,") of ").concat(this.fragInfo(e,!1,l),") cc: ").concat(e.cc," [").concat(a.startSN,"-").concat(a.endSN,"], target: ").concat(parseFloat(n.toFixed(3)))),this.nextLoadPosition=l.start+l.duration,this.state=TX,c=s?s.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,l,t,r))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,l,t,r).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(NV.FRAG_LOADING,{frag:e,part:l,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(i,n))return Promise.resolve(null)}}if(dK(e)&&this.loadingParts)this.log("LL-Part loading OFF after next part miss @".concat(n.toFixed(2))),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log("Loading ".concat(e.type," sn: ").concat(e.sn," of ").concat(this.fragInfo(e,!1),") cc: ").concat(e.cc," ").concat(a?"["+a.startSN+"-"+a.endSN+"]":"",", target: ").concat(parseFloat(n.toFixed(3)))),TV(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=TX;const l=this.config.progressive;let c;return c=l&&s?s.then((t=>!t||this.fragContextChanged(null==t?void 0:t.frag)?null:this.fragmentLoader.load(e,r))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,l?r:void 0),s]).then((e=>{let[t]=e;return!l&&t&&r&&r(t),t})).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(NV.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(e,t,n,r){return new Promise(((i,a)=>{var s;const o=[],l=null==(s=n.details)?void 0:s.partList,c=t=>{this.fragmentLoader.loadPart(e,t,r).then((r=>{o[t.index]=r;const a=r.part;this.hls.trigger(NV.FRAG_LOADED,r);const s=hX(n.details,e.sn,t.index+1)||pX(l,e.sn,t.index+1);if(!s)return i({frag:e,part:a,partsLoaded:o});c(s)})).catch(a)};c(t)}))}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===AV.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(NV.ERROR,t)}else this.hls.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==jX)return void(this.fragCurrent||this.state===SX||this.state===PX||(this.state=kX));const{frag:n,part:r,level:i}=t,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a);const s=this.getLevelDetails(),o=s&&n.sn>s.endSN||this.shouldLoadParts(s,n.end);o!==this.loadingParts&&(this.log("LL-Part loading ".concat(o?"ON":"OFF"," after parsing segment ending @").concat(n.end.toFixed(2))),this.loadingParts=o),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(null!=e&&e.partList){var n;const i=e.partList[0];if(t>=i.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){var r;if((this.hls.hasEnoughToStart?(null==(r=this.media)?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:a}=e;if(null==t||!t[r])return this.warn("Levels object was unset while buffering fragment ".concat(i," of ").concat(this.playlistLabel()," ").concat(r,". The current chunk will not be buffered.")),null;const s=t[r],o=s.details,l=a>-1?hX(o,i,a):null,c=l?l.fragment:uX(o,i,n);return c?(n&&n!==c&&(c.stats=n.stats),{frag:c,part:l,level:s}):null}bufferFragmentData(e,t,n,r,i){var a;if(!e||this.state!==jX)return;const{data1:s,data2:o}=e;let l=s;if(s&&o&&(l=RK(s,o)),null==(a=l)||!a.length)return;const c=this.initPTS[t.cc],d=c?-c.baseTime/c.timescale:void 0,u={type:e.type,frag:t,part:n,chunkMeta:r,offset:d,parent:t.type,data:l};if(this.hls.trigger(NV.BUFFER_APPENDING,u),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!uY.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,r=uY.bufferInfo(t,n,0),i=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),s=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-s>a&&this.flushMainBuffer(s,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!TV(r))return null;const i=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,i)}getFwdBufferInfoAtPos(e,t,n,r){const i=uY.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){const a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&(i.nextStart<=a.end||a.gap)){const n=Math.max(Math.min(i.nextStart,a.end)-t,r);return uY.bufferInfo(e,t,n)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return n=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-3*t,n.maxMaxBufferLength/2,r);return i>=r&&(n.maxMaxBufferLength=i,this.warn("Reduce max buffer length to ".concat(i,"s")),!0)}getAppendedFrag(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DV;var n;const r=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,a=n[0].start,s=i.lowLatencyMode&&!!t.partList;let o=null;if(t.live){const n=i.initialLiveManifestSize;if(r<n)return this.warn("Not enough fragments to start playback (have: ".concat(r,", need: ").concat(n,")")),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a){var l;s&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),o=this.getInitialLiveFragment(t);const n=this.hls.startPosition,r=this.hls.liveSyncPosition,i=o?(-1!==n&&n>=a?n:r)||o.start:e;this.log("Setting startPosition to ".concat(i," to match start frag at live edge. mainStart: ").concat(n," liveSyncPosition: ").concat(r," frag.start: ").concat(null==(l=o)?void 0:l.start)),this.startPosition=this.nextLoadPosition=i}}else e<=a&&(o=n[0]);if(!o){const n=this.loadingParts?t.partEnd:t.fragmentEnd;o=this.getFragmentAtPosition(e,n,t)}let c=this.filterReplacedPrimary(o,t);
2if(!c&&o){const e=o.sn-t.startSN;c=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(c)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Kq||n===Vq&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t),a&&!a.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(null!==e&&n.len+e.len>=i){const e=a.sn;return this.loopSn!==e&&(this.log('buffer full after gaps in "'.concat(r,'" playlist starting at sn: ').concat(e)),this.loopSn=e),null}}return this.loopSn=void 0,a}get primaryPrefetch(){if(DX(this.hls.config)){var e,t;if(null==(e=this.hls.interstitialsManager)||null==(t=e.playingItem)?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(DX(this.hls.config)&&e.type!==MV){const n=this.hls.interstitialsManager,r=null==n?void 0:n.bufferingItem;if(r){const n=r.event;if(n){if(n.appendInPlace||Math.abs(e.start-r.start)>1||0===r.start)return null}else{if(e.end<=r.start&&!1===(null==t?void 0:t.live))return null;if(e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}}const i=null==n?void 0:n.playerQueue;if(i)for(let t=i.length;t--;){const n=i[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let r=-1,i=!1,a=!0;for(let s=0,o=e.length;s<o;s++){const o=e[s];if(a=a&&!o.independent,r>-1&&n<o.start)break;const l=o.loaded;l?r=-1:(i||o.independent||a)&&o.fragment===t&&(r=s),i=l}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(n.programDateTime)),r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!TV(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let r=0;r<e.length;++r){const i=e[r];if(Aq(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const a=t[i-e.startSN];n.cc===a.cc&&(r=a,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(r.sn)))}r||(r=Nq(e,n.cc,n.end),r&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(r.sn)))}}else{const t=this.hls.liveSyncPosition;null!==t&&(r=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:a,endSN:s}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=r,c=n.partList,d=!!(this.loadingParts&&null!=c&&c.length&&o);let u;if(d&&o&&!this.bitrateTest&&c[c.length-1].fragment.sn===o.sn&&(a=a.concat(o),s=o.sn),e<t){var h;u=Eq(i,a,e,e<this.lastCurrentTime||e>t-l||null!=(h=this.media)&&h.paused||!this.startFragRequested?0:l)}else u=a[a.length-1];if(u){const e=u.sn-n.startSN,t=this.fragmentTracker.getState(u);if((t===Kq||t===Vq&&u.gap)&&(i=u),i&&u.sn===i.sn&&(!d||c[0].fragment.sn>u.sn||!n.live&&!d)){if(i&&u.level===i.level){const t=a[e+1];u=u.sn<s&&this.fragmentTracker.getState(t)!==Kq?t:null}}}return u}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,a=!t,s=e.alignedSliding&&TV(i);if(a||!s&&!i){!function(e,t){e&&(bX(t,e),!t.alignedSliding&&e&&yX(t,e),t.alignedSliding||!e||t.skippedSegments||lX(e,t,!1))}(n,e);const i=e.fragmentStart;return this.log("Live playlist sliding: ".concat(i.toFixed(2)," start-sn: ").concat(t?t.startSN:"na","->").concat(e.startSN," fragments: ").concat(r)),i}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(-1===n){const i=null!==this.startTimeOffset,a=i?this.startTimeOffset:e.startTimeOffset;null!==a&&TV(a)?(n=t+a,a<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log("Setting startPosition to ".concat(n," for start time offset ").concat(a," found in ").concat(i?"multivariant":"media"," playlist")),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log("Setting startPosition to -1 to start at live edge ".concat(n)),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&dK(e)&&e.stats.aborted&&(this.log("Fragment ".concat(e.sn).c
2oncat(t?" part "+t.index:""," of ").concat(this.playlistLabel()," ").concat(e.level," was aborted")),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===CX)||(this.state=kX)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;var r;if(this.fragContextChanged(n))return void this.warn("Frag load error must match current frag to retry ".concat(n.url," > ").concat(null==(r=this.fragCurrent)?void 0:r.url));const i=t.details===AV.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const a=t.errorAction,{action:s,flags:o,retryCount:l=0,retryConfig:c}=a||{},d=!!a&&!!c,u=d&&s===Fq,h=d&&!a.resolved&&o===Uq;if(!u&&h&&dK(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),a.resolved=!0;else if((u||h)&&l<c.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const r=Lq(c,l);this.warn("Fragment ".concat(n.sn," of ").concat(e," ").concat(n.level," errored with ").concat(t.details,", retrying loading ").concat(l+1,"/").concat(c.maxNumRetry," in ").concat(r,"ms")),a.resolved=!0,this.retryDate=self.performance.now()+r,this.state=CX}else if(c&&a){if(this.resetFragmentErrors(e),!(l<c.maxNumRetry))return void this.warn("".concat(t.details," reached or exceeded max retry (").concat(l,")"));i||s===_q||(a.resolved=!0)}else this.state=s===Mq?LX:PX;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===jX||this.state===AX){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(null==t?void 0:t.duration)||10);const a=!i;return a&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(n," buffer")),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===OV&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==SX&&(this.state=kX)}afterBufferFlushed(e,t,n){if(!e)return;const r=uY.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===NX&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==SX&&(this.state=kX)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn("The loading context changed while buffering fragment ".concat(e.sn," of ").concat(this.playlistLabel()," ").concat(e.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i)return void this.warn("level.details undefined");var a;if(!Object.keys(e.elementaryStreams).reduce(((t,a)=>{const s=e.elementaryStreams[a];if(s){const o=s.endPTS-s.startPTS;if(o<=0)return this.warn("Could not parse fragment ".concat(e.sn," ").concat(a," duration reliably (").concat(o,")")),t||!1;const l=r?0:aX(i,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return this.hls.trigger(NV.LEVEL_PTS_UPDATED,{details:i,level:n,drift:l,type:a,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t}),!1)&&(0===n.fragmentError&&this.treatAsGap(e,n),null===(null==(a=this.transmuxer)?void 0:a.error))){const t=new Error("Found no media in fragment ".concat(e.sn," of ").concat(this.playlistLabel()," ").concat(e.level," resetting transmuxer to fallback to playlist timing"));if(this.warn(t.message),this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:"Found no media in msn ".concat(e.sn," of ").concat(this.playlistLabel(),' "').concat(n.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=AX,this.log("Parsed ".concat(e.type," sn: ").concat(e.sn).c
vendor: 4,425 bytes, line 2
2oncat(t?" part: "+t.index:""," of ").concat(this.fragInfo(e,!1,t),")")),this.hls.trigger(NV.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===DV?"level":"track"}fragInfo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;var r,i;return"".concat(this.playlistLabel()," ").concat(e.level," (").concat(n?"part":"frag",":[").concat((null!=(r=t&&!n?e.startPTS:(n||e).start)?r:NaN).toFixed(3),"-").concat((null!=(i=t&&!n?e.endPTS:(n||e).end)?i:NaN).toFixed(3),"]").concat(n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):"")}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log("".concat(t,"->").concat(e)))}get state(){return this._state}}function DX(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class OX{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;return e.length?(n=1===e.length?e[0]:function(e,t){const n=new Uint8Array(t);let r=0;for(let i=0;i<e.length;i++){const t=e[i];n.set(t,r),r+=t.length}return n}(e,t),this.reset(),n):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var MX,_X={exports:{}};var FX=(MX||(MX=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,s){if("function"!==typeof r)throw new TypeError("The listener must be a function");var o=new i(r,a||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i<a;i++)s[i]=r[i].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,a,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,c,d=this._events[o],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,i),!0;case 5:return d.fn.call(d.context,t,r,i,a),!0;case 6:return d.fn.call(d.context,t,r,i,a,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var h,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,r);break;case 4:d[c].fn.call(d[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(u-1);h<u;h++)l[h-1]=arguments[h];d[c].fn.apply(d[c].context,l)}}return!0},o.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||r&&o.context!==r||s(this,a);else{for(var l=0,c=[],d=o.length;l<d;l++)(o[l].fn!==t||i&&!o[l].once||r&&o[l].context!==r)&&c.push(o[l]);c.length?this._events[a]=1===c.length?c[0]:c:s(this,a)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o}
vendor: 6,653 bytes, line 2
2(_X)),_X.exports),BX=tK(FX);const UX="1.6.7",zX={};function GX(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function WX(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function HX(e,t){let n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,n|=(127&e[t+2])<<7,n|=127&e[t+3],n}function VX(e,t){const n=t;let r=0;for(;WX(e,t);){r+=10;r+=HX(e,t+6),GX(e,t+10)&&(r+=10),t+=r}if(r>0)return e.subarray(n,n+r)}function KX(e,t){return 255===e[t]&&240===(246&e[t+1])}function qX(e,t){return 1&e[t+1]?7:9}function YX(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function XX(e,t){return t+1<e.length&&KX(e,t)}function JX(e,t){if(XX(e,t)){const n=qX(e,t);if(t+n>=e.length)return!1;const r=YX(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||XX(e,i)}return!1}function QX(e,t,n,r,i){if(!e.samplerate){const a=function(e,t,n,r){const i=t[n+2],a=i>>2&15;if(a>12){const t=new Error("invalid ADTS sampling index:".concat(a));return void e.emit(NV.ERROR,NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const s=1+(i>>6&3),o=t[n+3]>>6&3|(1&i)<<2,l="mp4a.40."+s,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][a];let d=a;5!==s&&29!==s||(d-=3);const u=[s<<3|(14&d)>>1,(1&d)<<7|o<<3];return XV.log("manifest codec:".concat(r,", parsed codec:").concat(l,", channels:").concat(o,", rate:").concat(c," (ADTS object type:").concat(s," sampling index:").concat(a,")")),{config:u,samplerate:c,channelCount:o,codec:l,parsedCodec:l,manifestCodec:r}}(t,n,r,i);if(!a)return;UV(e,a)}}function ZX(e){return 9216e4/e}function $X(e,t,n,r,i){const a=r+i*ZX(e.samplerate),s=function(e,t){const n=qX(e,t);if(t+n<=e.length){const r=YX(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);let o;if(s){const{frameLength:r,headerLength:i}=s,l=i+r,c=Math.max(0,n+l-t.length);c?(o=new Uint8Array(l-i),o.set(t.subarray(n+i,t.length),0)):o=t.subarray(n+i,n+l);const d={unit:o,pts:a};return c||e.samples.push(d),{sample:d,length:l,missing:c}}const l=t.length-n;o=new Uint8Array(l),o.set(t.subarray(n,t.length),0);return{sample:{unit:o,pts:a},length:l,missing:-1}}function eJ(e,t){return WX(e,t)&&HX(e,t+6)+10<=e.length-t}function tJ(e){return function(e,t,n,r){const i=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=(u=e,u&&u.buffer instanceof ArrayBuffer&&void 0!==u.byteLength&&void 0!==u.byteOffset?e.byteOffset:0),o=(s+e.byteLength)/a,l=(s+t)/a,c=Math.floor(Math.max(0,Math.min(l,o))),d=Math.floor(Math.min(c+Math.max(n,0),o));var u;return new r(i,c,d-c)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,Uint8Array)}function nJ(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=e.data.subarray(1).indexOf(0);if(-1===n)return;const r=ZV(tJ(e.data,1,n)),i=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(-1===a)return;const s=ZV(tJ(e.data,3+n,a));let o;return o="--\x3e"===r?ZV(tJ(e.data,4+n+a)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+n+a)),t.mimeType=r,t.pictureType=i,t.description=s,t.data=o,t}function rJ(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=ZV(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const n=ZV(e.data.subarray(t),!0);t+=n.length+1;const r=ZV(e.data.subarray(t));return{key:e.type,info:n,data:r}}const t=ZV(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?nJ(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const n=ZV(e.data.subarray(t),!0);t+=n.length+1;const r=ZV(e.data.subarray(t));return{key:e.type,info:n,data:r}}const t=ZV(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function iJ(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=HX(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function aJ(e){let t=0;const n=[];for(;WX(e,t);){const r=HX(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const i=t+r;for(;t+10<i;){const r=iJ(e.subarray(t)),i=rJ(r);i&&n.push(i),t+=r.size+10}GX(e,t)&&(t+=10)}return n}function sJ(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function oJ(e){if(8===e.data.byteLength){const t=new Uint8Array(e.data),n=1&t[3];let r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}}function lJ(e){const t=aJ(e);for(let n=0;n<t.length;n++){const e=t[n];if(sJ(e))return oJ(e)}}let cJ=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({});function dJ(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",id:-1,pid:-1,inputTimeScale:arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4,sequenceNumber:-1,samples:[],dropped:0}}class uJ{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=RK(this.cachedData,e),this.cachedData=null);let n,r=VX(e,0),i=r?r.length:0;const a=this._audioTrack,s=this._id3Track,o=r?lJ(r):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&TV(o))&&(this.basePTS=hJ(o,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:cJ.audioId3,duration:Number.POSITIVE_INFINITY});i<l;){if(this.canParse(e,i)){const t=this.appendFrame(a,e,i);t?(this.frameIndex++,this.lastPTS=t.sample.pts,i+=t.length,n=i):i=l}else eJ(e,i)?(r=VX(e,i),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:cJ.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,n=i):i++;if(i===l&&n!==l){const t=e.slice(n);this.cachedData?this.cachedData=RK(this.cachedData,t):this.cachedData=t}}return{audioTrack:a,videoTrack:dJ(),id3Track:s,textTrack:dJ()}}
vendor: 4,491 bytes, line 2
2demuxSampleAes(e,t,n){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:dJ(),id3Track:this._id3Track,textTrack:dJ()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const hJ=(e,t,n)=>{if(TV(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)};let pJ=null;const mJ=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],fJ=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],gJ=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],vJ=[0,1,1,4];function bJ(e,t,n,r,i){if(n+24>t.length)return;const a=yJ(t,n);if(a&&n+a.frameLength<=t.length){const s=r+i*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:t.subarray(n,n+a.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}function yJ(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==a){const s=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*mJ[14*(3===n?3-r:3===r?3:4)+i-1],c=fJ[3*(3===n?0:2===n?1:2)+a],d=3===o?1:2,u=gJ[n][r],h=vJ[r],p=8*u*h,m=Math.floor(u*l/c+s)*h;if(null===pJ){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);pJ=e?parseInt(e[1]):0}return!!pJ&&pJ<=87&&2===r&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:c,channelCount:d,frameLength:m,samplesPerFrame:p}}}function xJ(e,t){return 255===e[t]&&224===(224&e[t+1])&&0!==(6&e[t+1])}function SJ(e,t){return t+1<e.length&&xJ(e,t)}function kJ(e,t){if(t+1<e.length&&xJ(e,t)){const n=4,r=yJ(e,t);let i=n;null!=r&&r.frameLength&&(i=r.frameLength);const a=t+i;return a===e.length||SJ(e,a)}return!1}const wJ=(e,t)=>{let n=0,r=5;t+=r;const i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const o=Math.min(r,8),l=8-o;a[0]=4278190080>>>24+l<<l,i[0]=(s[0]&a[0])>>l,n=n?n<<o|i[0]:i[0],t+=1,r-=o}return n};class TJ extends uJ{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=CJ(e,t,n,this.basePTS,this.frameIndex);if(-1!==r){return{sample:e.samples[e.samples.length-1],length:r,missing:0}}}static probe(e){if(!e)return!1;const t=VX(e,0);if(!t)return!1;const n=t.length;return 11===e[n]&&119===e[n+1]&&void 0!==lJ(t)&&wJ(e,n)<16}}function CJ(e,t,n,r,i){if(n+8>t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;const a=t[n+4]>>6;if(a>=3)return-1;const s=[48e3,44100,32e3][a],o=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(n+l>t.length)return-1;const c=t[n+6]>>5;let d=0;2===c?d+=2:(1&c&&1!==c&&(d+=2),4&c&&(d+=2));const u=(t[n+6]<<8|t[n+7])>>12-d&1,h=[2,1,2,3,3,4,4,5][c]+u,p=t[n+5]>>3,m=7&t[n+5],f=new Uint8Array([a<<6|p<<1|m>>2,(3&m)<<6|c<<3|u<<2|o>>4,o<<4&224]),g=r+i*(1536/s*9e4),v=t.subarray(n,n+l);return e.config=f,e.channelCount=h,e.samplerate=s,e.samples.push({unit:v,pts:g}),l}const EJ=/\/emsg[-/]ID3/i;function jJ(e,t){return TV(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class AJ{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new nY(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Qq)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then((i=>{const a=new Uint8Array(i);r.set(a,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)}))}
vendor: 4,126 bytes, line 2
2decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const a=MK(i.data),s=this.getAvcEncryptedData(a);this.decryptBuffer(s.buffer).then((s=>{i.data=this.getAvcDecryptedUnit(a,s),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)}))}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();const i=e[t].units;for(;!(n>=i.length);n++){const a=i[n];if(!(a.data.length<=48||1!==a.type&&5!==a.type)&&(this.decryptAvcSample(e,t,n,r,a),!this.decrypter.isSync()))return}}}}class NJ{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n,r=this.VideoSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){const e=r.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const n=t.samples,r=n.length;if(!r)return void t.dropped++;{const t=n[r-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const a=i,s=[];let o,l,c,d=0,u=-1,h=0;for(-1===i&&(u=0,h=this.getNALuType(t,0),i=0,d=1);d<r;)if(o=t[d++],i)if(1!==i)if(o)if(1===o){if(l=d-i-1,u>=0){const e={data:t.subarray(u,l),type:h};s.push(e)}else{const n=this.getLastNalUnit(e.samples);n&&(a&&d<=4-a&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-a)),l>0&&(n.data=RK(n.data,t.subarray(0,l)),n.state=0))}d<r?(c=this.getNALuType(t,d),u=d,h=c,i=0):i=-1}else i=0;else i=3;else i=o?0:2;else i=o?0:1;if(u>=0&&i>=0){const e={data:t.subarray(u,r),type:h,state:i};s.push(e)}if(0===s.length){const n=this.getLastNalUnit(e.samples);n&&(n.data=RK(n.data,t))}return e.naluState=i,s}}class PJ{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&XV.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(0!==(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class RJ extends NJ{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let a,s=this.VideoSample,o=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach((r=>{var i,l;switch(r.type){case 1:{let t=!1;a=!0;const i=r.data;if(o&&i.length>4){const e=this.readSliceType(i);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var c;
vendor: 9,519 bytes, line 2
2if(t)null!=(c=s)&&c.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null);s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=t;break}case 5:a=!0,null!=(i=s)&&i.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:a=!0,OK(r.data,1,n.pts,t.samples);break;case 7:{var d,u;a=!0,o=!0;const t=r.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(d=e.pixelRatio)?void 0:d[0])!==n.pixelRatio[0]||(null==(u=e.pixelRatio)?void 0:u[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];const r=t.subarray(1,4);let i="avc1.";for(let e=0;e<3;e++){let t=r[e].toString(16);t.length<2&&(t="0"+t),i+=t}e.codec=i}break}case 8:a=!0,e.pps=[r.data];break;case 9:a=!0,e.audFound=!0,null!=(l=s)&&l.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:a=!0;break;default:a=!1}if(s&&a){s.units.push(r)}})),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new PJ(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,r=8,i=8;for(let a=0;a<e;a++)0!==i&&(n=t.readEG(),i=(r+n+256)%256),r=0===i?r:i}readSPS(e){const t=new PJ(e);let n,r,i,a=0,s=0,o=0,l=0;const c=t.readUByte.bind(t),d=t.readBits.bind(t),u=t.readUEG.bind(t),h=t.readBoolean.bind(t),p=t.skipBits.bind(t),m=t.skipEG.bind(t),f=t.skipUEG.bind(t),g=this.skipScalingList.bind(this);c();const v=c();if(d(5),p(3),c(),f(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){const e=u();if(3===e&&p(1),f(),f(),p(1),h())for(r=3!==e?8:12,i=0;i<r;i++)h()&&g(i<6?16:64,t)}f();const b=u();if(0===b)u();else if(1===b)for(p(1),m(),m(),n=u(),i=0;i<n;i++)m();f(),p(1);const y=u(),x=u(),S=d(1);0===S&&p(1),p(1),h()&&(a=u(),s=u(),o=u(),l=u());let k=[1,1];if(h()&&h()){switch(c()){case 1:k=[1,1];break;case 2:k=[12,11];break;case 3:k=[10,11];break;case 4:k=[16,11];break;case 5:k=[40,33];break;case 6:k=[24,11];break;case 7:k=[20,11];break;case 8:k=[32,11];break;case 9:k=[80,33];break;case 10:k=[18,11];break;case 11:k=[15,11];break;case 12:k=[64,33];break;case 13:k=[160,99];break;case 14:k=[4,3];break;case 15:k=[3,2];break;case 16:k=[2,1];break;case 255:k=[c()<<8|c(),c()<<8|c()]}}return{width:Math.ceil(16*(y+1)-2*a-2*s),height:(2-S)*(x+1)*16-(S?2:4)*(o+l),pixelRatio:k}}}class LJ extends NJ{constructor(){super(...arguments),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let a,s=this.VideoSample,o=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach((r=>{var i,l;switch(r.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,a=!0;break;case 16:case 17:case 18:case 21:var c;if(a=!0,o)null!=(c=s)&&c.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null);s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:a=!0,null!=(i=s)&&i.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:a=!0,OK(r.data,2,n.pts,t.samples);break;case 32:a=!0,e.vps||("object"!==typeof e.params&&(e.params={}),e.params=UV(e.params,this.readVPS(r.data)),this.initVPS=r.data),e.vps=[r.data];break;case 33:if(a=!0,o=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],r.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(r.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!==typeof e.params&&(e.params={});for(const n in t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,r.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(a=!0,"object"===typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(r.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,r.data,e.vps)}break;case 35:a=!0,e.audFound=!0,null!=(l=s)&&l.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:a=!1}if(s&&a){s.units.push(r)}})),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&3===e[r]&&0===e[r-1]&&0===e[r-2]||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new PJ(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new PJ(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),a=t.readBits(5),s=t.readUByte(),o=t.readUByte(),l=t.readUByte(),c=t.readUByte(),d=t.readUByte(),u=t.readUByte(),h=t.readUByte(),p=t.readUByte(),m=t.readUByte(),f=t.readUByte(),g=t.readUByte(),v=[],b=[];for(let K=0;K<n;K++)v.push(t.readBoolean()),b.push(t.readBoolean());if(n>0)for(let K=n;K<8;K++)t.readBits(2);for(let K=0;K<n;K++)v[K]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),b[K]&&t.readUByte();t.readUEG();const y=t.readUEG();3==y&&t.skipBits(1);const x=t.readUEG(),S=t.readUEG(),k=t.readBoolean();let w=0,T=0,C=0,E=0;k&&(w+=t.readUEG(),T+=t.readUEG(),C+=t.readUEG(),E+=t.readUEG());const j=t.readUEG(),A=t.readUEG(),N=t.readUEG();for(let K=t.readBoolean()?0:n;K<=n;K++)t.skipUEG(),t.skipUEG(),t.skipUEG();t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.readBoolean()){if(t.readBoolean())for(let e=0;e<4;e++)for(let n=0;n<(3===e?2:6);n++){if(t.readBoolean()){const n=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<n;e++)t.readEG()}else t.readUEG()}}t.readBoolean(),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const P=t.readUEG();let R=0;for(let K=0;K<P;K++){let e=!1;if(0!==K&&(e=t.readBoolean()),e){K===P&&t.readUEG(),t.readBoolean(),t.readUEG();let e=0;for(let n=0;n<=R;n++){const n=t.readBoolean();let r=!1;n||(r=t.readBoolean()),(n||r)&&e++}R=e}else{const e=t.readUEG(),n=t.readUEG();R=e+n;for(let r=0;r<e;r++)t.readUEG(),t.readBoolean();for(let r=0;r<n;r++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const e=t.readUEG();for(let n=0;n<e;n++){for(let e=0;e<N+4;e++)t.readBits(1);t.readBits(1)}}let L=0,I=1,D=1,O=!0,M=1,_=0;t.readBoolean(),t.readBoolean();let F=!1;if(t.readBoolean()){if(t.readBoolean()){const e=t.readUByte();e>0&&e<16?(I=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],D=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(I=t.readBits(16),D=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(t.readBoolean()){t.readBits(3),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())}t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),F=t.readBoolean(),F&&(w+=t.readUEG(),T+=t.readUEG(),C+=t.readUEG(),E+=t.readUEG());if(t.readBoolean()){M=t.readBits(32),_=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),r=t.readBoolean();let i=!1;(e||r)&&(i=t.readBoolean(),i&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),i&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let a=0;a<=n;a++){O=t.readBoolean();let n=!1;O||t.readBoolean()?t.readEG():n=t.readBoolean();const a=n?1:t.readUEG()+1;if(e)for(let e=0;e<a;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(r)for(let e=0;e<a;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),L=t.readUEG())}let B=x,U=S;if(k||F){let e=1,t=1;1===y?e=t=2:2==y&&(e=2),B=x-e*T-e*w,U=S-t*E-t*C}const z=r?["A","B","C"][r]:"",G=s<<24|o<<16|l<<8|c;let W=0;for(let K=0;K<32;K++)W=(W|(G>>K&1)<<31-K)>>>0;let H=W.toString(16);1===a&&"2"===H&&(H="6");const V=i?"H":"L";return{codecString:"hvc1.".concat(z).concat(a,".").concat(H,".").concat(V).concat(g,".B0"),params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:r,general_profile_compatibility_flags:[s,o,l,c],general_constraint_indicator_flags:[d,u,h,p,m,f],general_level_idc:g,bit_depth:j+8,bit_depth_luma_minus8:j,bit_depth_chroma_minus8:A,min_spatial_segmentation_idc:L,chroma_format_idc:y,frame_rate:{fixed:O,fps:_/M}},width:B,height:U,pixelRatio:[I,D]}}readPPS(e){const t=new PJ(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2);t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const n=t.readBoolean(),r=t.readBoolean();let i=1;return r&&n?i=0:r?i=3:n&&(i=2),{parallelismType:i}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const IJ=188;class DJ{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupp
vendor: 6,275 bytes, line 2
2orted=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=DJ.syncOffset(e);return n>0&&t.warn("MPEG2-TS detected but first sync word found @ offset ".concat(n)),-1!==n}static syncOffset(e){const t=e.length;let n=Math.min(940,t-IJ)+1,r=0;for(;r<n;){let i=!1,a=-1,s=0;for(let o=r;o<t;o+=IJ){if(71!==e[o]||t-o!==IJ&&71!==e[o+IJ]){if(s)return-1;break}if(s++,-1===a&&(a=o,0!==a&&(n=Math.min(a+18612,e.length-IJ)+1)),i||(i=0===OJ(e,o)),i&&s>1&&(0===a&&s>2||o+IJ>n))return a}r++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:gK[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=DJ.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=DJ.createTrack("audio",r),this._id3Track=DJ.createTrack("id3"),this._txtTrack=DJ.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r||(this.sampleAes=null);const a=this._videoTrack,s=this._audioTrack,o=this._id3Track,l=this._txtTrack;let c=a.pid,d=a.pesData,u=s.pid,h=o.pid,p=s.pesData,m=o.pesData,f=null,g=this.pmtParsed,v=this._pmtId,b=e.length;if(this.remainderData&&(b=(e=RK(this.remainderData,e)).length,this.remainderData=null),b<IJ&&!i)return this.remainderData=e,{audioTrack:s,videoTrack:a,id3Track:o,textTrack:l};const y=Math.max(0,DJ.syncOffset(e));b-=(b-y)%IJ,b<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,b,e.buffer.byteLength-b));let x=0;for(let k=y;k<b;k+=IJ)if(71===e[k]){const t=!!(64&e[k+1]),i=OJ(e,k);let b;if((48&e[k+3])>>4>1){if(b=k+5+e[k+4],b===k+IJ)continue}else b=k+4;switch(i){case c:if(t){if(d&&(n=UJ(d,this.logger))){if(null===this.videoParser)switch(a.segmentCodec){case"avc":this.videoParser=new RJ;break;case"hevc":this.videoParser=new LJ}null!==this.videoParser&&this.videoParser.parsePES(a,l,n,!1)}d={data:[],size:0}}d&&(d.data.push(e.subarray(b,k+IJ)),d.size+=k+IJ-b);break;case u:if(t){if(p&&(n=UJ(p,this.logger)))switch(s.segmentCodec){case"aac":this.parseAACPES(s,n);break;case"mp3":this.parseMPEGPES(s,n);break;case"ac3":this.parseAC3PES(s,n)}p={data:[],size:0}}p&&(p.data.push(e.subarray(b,k+IJ)),p.size+=k+IJ-b);break;case h:t&&(m&&(n=UJ(m,this.logger))&&this.parseID3PES(o,n),m={data:[],size:0}),m&&(m.data.push(e.subarray(b,k+IJ)),m.size+=k+IJ-b);break;case 0:t&&(b+=e[b]+1),v=this._pmtId=MJ(e,b);break;case v:{t&&(b+=e[b]+1);const n=_J(e,b,this.typeSupported,r,this.observer,this.logger);c=n.videoPid,c>0&&(a.pid=c,a.segmentCodec=n.segmentVideoCodec),u=n.audioPid,u>0&&(s.pid=u,s.segmentCodec=n.segmentAudioCodec),h=n.id3Pid,h>0&&(o.pid=h),null===f||g||(this.logger.warn("MPEG-TS PMT found at ".concat(k," after unknown PID '").concat(f,"'. Backtracking to sync byte @").concat(y," to parse all TS packets.")),f=null,k=y-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:f=i}}else x++;x>0&&FJ(this.observer,new Error("Found ".concat(x," TS packet/s that do not start with 0x47")),void 0,this.logger),a.pesData=d,s.pesData=p,o.pesData=m;const S={audioTrack:s,videoTrack:a,id3Track:o,textTrack:l};return i&&this.extractRemainingSamples(S),S}flush(){const{remainderData:e}=this;let t;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,a=n.pesData,s=t.pesData,o=r.pesData;let l;if(a&&(l=UJ(a,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new RJ;break;case"hevc":this.videoParser=new LJ}null!==this.videoParser&&(this.videoParser.parsePES(n,i,l,!0),n.pesData=null)}else n.pesData=a;if(s&&(l=UJ(s,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l)}t.pesData=null}else null!=s&&s.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=s;o&&(l=UJ(o,this.logger))?(this.parseID3PES(r,l),r.pesData=null):r.pesData=o}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new AJ(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise((n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,(()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,(()=>{n(e)})):n(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(()=>{n(e)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i,a,s,o=t.data;if(r){this.aacOverFlow=null;const t=r.missing,i=r.sample.unit.byteLength;if(-1===t)o=RK(r.sample.unit,o);else{const a=i-t;r.sample.unit.set(o.subarray(0,t),a),e.samples.push(r.sample),n=r.missing}}for(i=n,a=o.length;i<a-1&&!XX(o,i);i++);if(i!==n){let e;const t=i<a-1;if(e=t?"AAC PES did not start with ADTS header,offset:".concat(i):"No ADTS header found in AAC PES",FJ(this.observer,new Error(e),t,this.logger),!t)return}if(QX(e,this.observer,o,i,this.audioCodec),void 0!==t.pts)s=t.pts;else{if(!r)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");{const t=ZX(e.samplerate);s=r.sample.pts+t}}let l,c=0;for(;i<a;
vendor: 9,575 bytes, line 2
2){if(l=$X(e,o,i,s,c),i+=l.length,l.missing){this.aacOverFlow=l;break}for(c++;i<a-1&&!XX(o,i);i++);}}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,a=0;const s=t.pts;if(void 0!==s)for(;a<r;)if(SJ(n,a)){const t=bJ(e,n,a,s,i);if(!t)break;a+=t.length,i++}else a++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(void 0===r)return void this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");const i=n.length;let a,s=0,o=0;for(;o<i&&(a=CJ(e,n,o,r,s++))>0;)o+=a}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=UV({},t,{type:this._videoTrack?cJ.emsg:cJ.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function OJ(e,t){return((31&e[t+1])<<8)+e[t+2]}function MJ(e,t){return(31&e[t+10])<<8|e[t+11]}function _J(e,t,n,r,i,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<o;){const o=OJ(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!r){BJ("ADTS AAC",a);break}case 15:-1===s.audioPid&&(s.audioPid=o);break;case 21:-1===s.id3Pid&&(s.id3Pid=o);break;case 219:if(!r){BJ("H.264",a);break}case 27:-1===s.videoPid&&(s.videoPid=o);break;case 3:case 4:n.mpeg||n.mp3?-1===s.audioPid&&(s.audioPid=o,s.segmentAudioCodec="mp3"):a.log("MPEG audio found, not supported in this browser");break;case 193:if(!r){BJ("AC-3",a);break}case 129:n.ac3?-1===s.audioPid&&(s.audioPid=o,s.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===s.audioPid&&l>0){let r=t+5,i=l;for(;i>2;){if(106===e[r])!0!==n.ac3?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=o,s.segmentAudioCodec="ac3");const t=e[r+1]+2;r+=t,i-=t}}break;case 194:case 135:return FJ(i,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:-1===s.videoPid&&(s.videoPid=o,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"))}t+=l+5}return s}function FJ(e,t,n,r){r.warn("parsing error: ".concat(t.message)),e.emit(NV.ERROR,NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function BJ(e,t){t.log("".concat(e," with AES-128-CBC encryption found in unencrypted stream"))}function UJ(e,t){let n,r,i,a,s,o=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=RK(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(r=(n[4]<<8)+n[5],r&&r>e.size-6)return null;const c=n[7];192&c&&(a=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&c?(s=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,a-s>54e5&&(t.warn("".concat(Math.round((a-s)/9e4),"s delta between PTS and DTS, align them")),a=s)):s=a),i=n[8];let d=i+9;if(e.size<=d)return null;e.size-=d;const u=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){n=l[e];let t=n.byteLength;if(d){if(d>t){d-=t;continue}n=n.subarray(d),t-=d,d=0}u.set(n,o),o+=t}return r&&(r-=i+3),{data:u,pts:a,dts:s,len:r}}return null}class zJ{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}const GJ=Math.pow(2,32)-1;class WJ{static init(){let e;for(e in WJ.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},WJ.types)WJ.types.hasOwnProperty(e)&&(WJ.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);WJ.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);WJ.STTS=WJ.STSC=WJ.STCO=i,WJ.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),WJ.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),WJ.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),WJ.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);WJ.FTYP=WJ.box(WJ.types.ftyp,a,o,a,s),WJ.DINF=WJ.box(WJ.types.dinf,WJ.box(WJ.types.dref,r))}static box(e){let t=8;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];let a=r.length;const s=a;for(;a--;)t+=r[a].byteLength;const o=new Uint8Array(t);for(o[0]=t>>24&255,o[1]=t>>16&255,o[2]=t>>8&255,o[3]=255&t,o.set(e,4),a=0,t=8;a<s;a++)o.set(r[a],t),t+=r[a].byteLength;return o}static hdlr(e){return WJ.box(WJ.types.hdlr,WJ.HDLR_TYPES[e])}static mdat(e){return WJ.box(WJ.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(GJ+1)),r=Math.floor(t%(GJ+1));return WJ.box(WJ.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,85,196,0,0]))}static mdia(e){return WJ.box(WJ.types.mdia,WJ.mdhd(e.timescale||0,e.duration||0),WJ.hdlr(e.type),WJ.minf(e))}static mfhd(e){return WJ.box(WJ.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?WJ.box(WJ.types.minf,WJ.box(WJ.types.smhd,WJ.SMHD),WJ.DINF,WJ.stbl(e)):WJ.box(WJ.types.minf,WJ.box(WJ.types.vmhd,WJ.VMHD),WJ.DINF,WJ.stbl(e))}static moof(e,t,n){return WJ.box(WJ.types.moof,WJ.mfhd(e),WJ.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=WJ.trak(e[t]);return WJ.box.apply(null,[WJ.types.moov,WJ.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(WJ.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=WJ.trex(e[t]);return WJ.box.apply(null,[WJ.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(GJ+1)),r=Math.floor(t%(GJ+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return WJ.box(WJ.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return WJ.box(WJ.types.sdtp,n)}static stbl(e){return WJ.box(WJ.types.stbl,WJ.stsd(e),WJ.box(WJ.types.stts,WJ.STTS),WJ.box(WJ.types.stsc,WJ.STSC),WJ.box(WJ.types.stsz,WJ.STSZ),WJ.box(WJ.types.stco,WJ.STCO))}static avc1(e){let t,n,r,i=[],a=[];for(t=0;t<e.sps.length;t++)n=e.sps[t],r=n.byteLength,i.push(r>>>8&255),i.push(255&r),i=i.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)n=e.pps[t],r=n.byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(n));const s=WJ.box(WJ.types.avcC,new Uint8Array([1,i[3],i[4],i[5],255,224|e.sps.length].concat(i).concat([e.pps.length]).concat(a))),o=e.width,l=e.height,c=e.pixelRatio[0],d=e.pixelRatio[1];return WJ.box(WJ.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,255&o,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,WJ.box(WJ.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),WJ.box(WJ.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return WJ.box(WJ.types.mp4a,WJ.audioStsd(e),WJ.box(WJ.types.esds,WJ.esds(e)))}static mp3(e){return WJ.box(WJ.types[".mp3"],WJ.audioStsd(e))}static ac3(e){return WJ.box(WJ.types["ac-3"],WJ.audioStsd(e),WJ.box(WJ.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return WJ.box(WJ.types.stsd,WJ.STSD,WJ.mp4a(e));if("ac3"===t&&e.config)return WJ.box(WJ.types.stsd,WJ.STSD,WJ.ac3(e));if("mp3"===t&&"mp3"===e.codec)return WJ.box(WJ.types.stsd,WJ.STSD,WJ.mp3(e))}
vendor: 4,544 bytes, line 2
2else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return WJ.box(WJ.types.stsd,WJ.STSD,WJ.avc1(e));if("hevc"===t&&e.vps)return WJ.box(WJ.types.stsd,WJ.STSD,WJ.hvc1(e))}throw new Error("unsupported ".concat(e.type," segment codec (").concat(t,"/").concat(e.codec,")"))}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,a=Math.floor(n/(GJ+1)),s=Math.floor(n%(GJ+1));return WJ.box(WJ.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]))}static traf(e,t){const n=WJ.sdtp(e),r=e.id,i=Math.floor(t/(GJ+1)),a=Math.floor(t%(GJ+1));return WJ.box(WJ.types.traf,WJ.box(WJ.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),WJ.box(WJ.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a])),WJ.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,WJ.box(WJ.types.trak,WJ.tkhd(e),WJ.mdia(e))}static trex(e){const t=e.id;return WJ.box(WJ.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,a=new Uint8Array(i);let s,o,l,c,d,u;for(t+=8+i,a.set(["video"===e.type?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),s=0;s<r;s++)o=n[s],l=o.duration,c=o.size,d=o.flags,u=o.cts,a.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,61440&d.degradPrio,15&d.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*s);return WJ.box(WJ.types.trun,a)}static initSegment(e){WJ.types||WJ.init();const t=WJ.moov(e);return RK(WJ.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let i=r.length;for(let h=0;h<n.length;h+=1){i+=3;for(let e=0;e<n[h].length;e+=1)i+=2+n[h][e].length}const a=new Uint8Array(i);a.set(r,0),i=r.length;const s=n.length-1;for(let h=0;h<n.length;h+=1){a.set(new Uint8Array([32+h|(h===s?128:0),0,n[h].length]),i),i+=3;for(let e=0;e<n[h].length;e+=1)a.set(new Uint8Array([n[h][e].length>>8,255&n[h][e].length]),i),i+=2,a.set(n[h][e],i),i+=n[h][e].length}const o=WJ.box(WJ.types.hvcC,a),l=e.width,c=e.height,d=e.pixelRatio[0],u=e.pixelRatio[1];return WJ.box(WJ.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,WJ.box(WJ.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),WJ.box(WJ.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,u>>24,u>>16&255,u>>8&255,255&u])))}}WJ.types=void 0,WJ.HDLR_TYPES=void 0,WJ.STTS=void 0,WJ.STSC=void 0,WJ.STCO=void 0,WJ.STSZ=void 0,WJ.VMHD=void 0,WJ.SMHD=void 0,WJ.STSD=void 0,WJ.FTYP=void 0,WJ.DINF=void 0;function HJ(e,t){const n=e*t*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return arguments.length>3&&void 0!==arguments[3]&&arguments[3]?Math.round(n):n}function VJ(e){return HJ(e,1e3,1/9e4,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}let KJ,qJ=null,YJ=null;function XJ(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class JJ extends WV{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupp
vendor: 13,452 bytes, line 2
2orted=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,null===qJ){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);qJ=e?parseInt(e[1]):0}if(null===YJ){const e=navigator.userAgent.match(/Safari\/(\d+)/i);YJ=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.log("initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce(((e,r)=>{let i=r.pts,a=i-e;return a<-4294967296&&(t=!0,i=QJ(i,n),a=i-e),a>0?e:i}),n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,a,s,o){let l,c,d,u,h,p,m=i,f=i;const g=e.pid>-1,v=t.pid>-1,b=t.samples.length,y=e.samples.length>0,x=s&&b>0||b>1;if((!g||y)&&(!v||x)||this.ISGenerated||s){if(this.ISGenerated){var S,k,w,T;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(S=t.pixelRatio)?void 0:S[0])!==(null==(k=e.pixelRatio)?void 0:k[0])||(null==(w=t.pixelRatio)?void 0:w[1])!==(null==(T=e.pixelRatio)?void 0:T[1]))||!e&&x||null===this.nextAudioTs&&y)&&this.resetInitSegment()}this.ISGenerated||(d=this.generateIS(e,t,i,a));const n=this.isVideoContiguous;let r,s=-1;if(x&&(s=function(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!n&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,s>0){this.warn("Dropped ".concat(s," out of ").concat(b," video samples due to a missing keyframe"));const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(s),t.dropped+=s,f+=(t.samples[0].pts-e)/t.inputTimeScale,r=f}else-1===s&&(this.warn("No keyframe found out of ".concat(b," video samples")),p=!1);if(this.ISGenerated){if(y&&x){const n=this.getVideoStartPts(t.samples),r=(QJ(e.samples[0].pts,n)-n)/t.inputTimeScale;m+=Math.max(0,r),f+=Math.max(0,-r)}if(y){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),d=this.generateIS(e,t,i,a)),c=this.remuxAudio(e,m,this.isAudioContiguous,a,v||x||o===OV?f:void 0),x){const r=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),d=this.generateIS(e,t,i,a)),l=this.remuxVideo(t,f,n,r)}}else x&&(l=this.remuxVideo(t,f,n,0));l&&(l.firstKeyFrame=s,l.independent=-1!==s,l.firstKeyFramePTS=r)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=ZJ(n,i,this._initPTS,this._initDTS)),r.samples.length&&(u=$J(r,i,this._initPTS))),{audio:c,video:l,initSegment:d,independent:p,text:u,id3:h}}generateIS(e,t,n,r){const i=e.samples,a=t.samples,s=this.typeSupported,o={},l=this._initPTS;let c,d,u,h,p=!l||r,m="audio/mp4";if(p&&(c=d=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":s.mpeg?(m="audio/mpeg",e.codec=""):s.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}o.audio={id:"audio",container:m,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&s.mpeg?new Uint8Array(0):WJ.initSegment([e]),metadata:{channelCount:e.channelCount}},p&&(h=e.id,u=e.inputTimeScale,l&&u===l.timescale?p=!1:c=d=i[0].pts-Math.round(u*n))}if(t.sps&&t.pps&&a.length){if(t.timescale=t.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:WJ.initSegment([t]),metadata:{width:t.width,height:t.height}},p)if(h=t.id,u=t.inputTimeScale,l&&u===l.timescale)p=!1;else{const e=this.getVideoStartPts(a),t=Math.round(u*n);d=Math.min(d,QJ(a[0].dts,e)-t),c=Math.min(c,e-t)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,p?(this._initPTS={baseTime:c,timescale:u},this._initDTS={baseTime:d,timescale:u}):c=u=void 0,{tracks:o,initPTS:c,timescale:u,trackId:h}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,a=e.samples,s=[],o=a.length,l=this._initPTS,c=l.baseTime*i/l.timescale;let d,u,h=this.nextVideoTs,p=8,m=this.videoSampleDuration,f=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=!1;if(!n||null===h){const e=c+t*i,r=a[0].pts-QJ(a[0].dts,a[0].pts);qJ&&null!==h&&Math.abs(e-r-(h+c))<15e3?n=!0:h=e-r-c}const b=h+c;for(let D=0;D<o;D++){const e=a[D];e.pts=QJ(e.pts,b),e.dts=QJ(e.dts,b),e.dts<a[D>0?D-1:D].dts&&(v=!0)}v&&a.sort((function(e,t){const n=e.dts-t.dts,r=e.pts-t.pts;return n||r})),d=a[0].dts,u=a[a.length-1].dts;const y=u-d,x=y?Math.round(y/(o-1)):m||e.inputTimeScale/30;if(n){const n=d-b,r=n>x,i=n<-1;if((r||i)&&(r?this.warn("".concat((e.segmentCodec||"").toUpperCase(),": ").concat(VJ(n,!0)," ms (").concat(n,"dts) hole between fragments detected at ").concat(t.toFixed(3))):this.warn("".concat((e.segmentCodec||"").toUpperCase(),": ").concat(VJ(-n,!0)," ms (").concat(n,"dts) overlapping between fragments detected at ").concat(t.toFixed(3))),!i||b>=a[0].pts||qJ)){d=b;const e=a[0].pts-n;if(r)a[0].dts=d,a[0].pts=e;else{let t=!0;for(let r=0;r<a.length&&!(a[r].dts>e&&t);r++){const e=a[r].pts;if(a[r].dts-=n,a[r].pts-=n,r<a.length-1){const n=a[r+1].pts;t=n<=a[r].pts==n<=e}}}this.log("Video: Initial PTS/DTS adjusted: ".concat(VJ(e,!0),"/").concat(VJ(d,!0),", delta: ").concat(VJ(n,!0)," ms"))}}d=Math.max(0,d);let S=0,k=0,w=d;for(let D=0;D<o;D++){const e=a[D],t=e.units,n=t.length;let r=0;for(let i=0;i<n;i++)r+=t[i].data.length;k+=r,S+=n,e.length=r,e.dts<w?(e.dts=w,w+=x/4|0||1):w=e.dts,f=Math.min(e.pts,f),g=Math.max(e.pts,g)}u=a[o-1].dts;const T=k+4*S+8;let C;try{C=new Uint8Array(T)}catch(K6){return void this.observer.emit(NV.ERROR,NV.ERROR,{type:jV.MUX_ERROR,details:AV.REMUX_ALLOC_ERROR,fatal:!1,error:K6,bytes:T,reason:"fail allocating video mdat ".concat(T)})}const E=new DataView(C.buffer);E.setUint32(0,T),C.set(WJ.types.mdat,4);let j=!1,A=Number.POSITIVE_INFINITY,N=Number.POSITIVE_INFINITY,P=Number.NEGATIVE_INFINITY,R=Number.NEGATIVE_INFINITY;for(let D=0;D<o;D++){const e=a[D],t=e.units;let n,l=0;for(let r=0,i=t.length;r<i;r++){const e=t[r],n=e.data,i=e.data.byteLength;E.setUint32(p,i),p+=4,C.set(n,p),p+=i,l+=4+i}if(D<o-1)m=a[D+1].dts-e.dts,n=a[D+1].pts-e.pts;else{const t=this.config,s=D>0?e.dts-a[D-1].dts:x;if(n=D>0?e.pts-a[D-1].pts:x,t.stretchShortVideoTrack&&null!==this.nextAudioTs){const n=Math.floor(t.maxBufferHole*i),a=(r?f+r*i:this.nextAudioTs+c)-e.pts;a>n?(m=a-s,m<0?m=s:j=!0,this.log("It is approximately ".concat(a/90," ms to the next segment; using duration ").concat(m/90," ms for the last video frame."))):m=s}else m=s}const d=Math.round(e.pts-e.dts);A=Math.min(A,m),P=Math.max(P,m),N=Math.min(N,n),R=Math.max(R,n),s.push(XJ(e.key,m,l,d))}if(s.length)if(qJ){if(qJ<70){const e=s[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(YJ&&R-N<P-A&&x/P<.025&&0===s[0].cts){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=d;for(let t=0,n=s.length;t<n;t++){const r=e+s[t].duration,i=e+s[t].cts;if(t<n-1){const e=r+s[t+1].cts;s[t].duration=e-i}else s[t].duration=t?s[t-1].duration:x;s[t].cts=0,e=r}}m=j||!m?x:m;const L=u+m;this.nextVideoTs=h=L-c,this.videoSampleDuration=m,this.isVideoContiguous=!0;const I={data1:WJ.moof(e.sequenceNumber++,d,UV(e,{samples:s})),data2:C,startPTS:(f-c)/i,endPTS:(g+m-c)/i,startDTS:(d-c)/i,endDTS:h/i,type:"video",hasAudio:!1,hasVideo:!0,nb:s.length,dropped:e.dropped};return e.samples=[],e.dropped=0,I}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(e,t,n,r,i){const a=e.inputTimeScale,s=a/(e.samplerate?e.samplerate:a),o=this.getSamplesPerFrame(e),l=o*s,c=this._initPTS,d="mp3"===e.segmentCodec&&this.typeSupported.mpeg,u=[],h=void 0!==i;let p=e.samples,m=d?0:8,f=this.nextAudioTs||-1;const g=c.baseTime*a/c.timescale,v=g+t*a;if(this.isAudioContiguous=n=n||p.length&&f>0&&(r&&Math.abs(v-(f+g))<9e3||Math.abs(QJ(p[0].pts,v)-(f+g))<20*l),p.forEach((function(e){e.pts=QJ(e.pts,v)})),!n||f<0){if(p=p.filter((e=>e.pts>=0)),!p.length)return;f=0===i?0:r&&!h?Math.max(0,v-g):p[0].pts-g}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,r=f+g;n<p.length;n++){const i=p[n],s=i.pts,o=s-r,c=Math.abs(1e3*o/a);if(o<=-t*l&&h)0===n&&(this.warn("Audio frame @ ".concat((s/a).toFixed(3),"s overlaps marker by ").concat(Math.round(1e3*o/a)," ms.")),this.nextAudioTs=f=s-g,r=s);else if(o>=t*l&&c<1e4&&h){let t=Math.round(o/l);for(r=s-t*l;r<0&&t&&l;)t--,r+=l;0===n&&(this.nextAudioTs=f=r-g),this.warn("Injecting ".concat(t," audio frames @ ").concat(((r-g)/a).toFixed(3),"s due to ").concat(Math.round(1e3*o/a)," ms gap."));for(let a=0;a<t;a++){let t=zJ.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);t||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),t=i.unit.subarray()),p.splice(n,0,{unit:t,pts:r}),r+=l,n++}}i.pts=r,r+=l}}let b,y=null,x=null,S=0,k=p.length;for(;k--;)S+=p[k].unit.byteLength;for(let N=0,P=p.length;N<P;N++){const t=p[N],r=t.unit;let i=t.pts;if(null!==x){u[N-1].duration=Math.round((i-x)/s)}else{if(n&&"aac"===e.segmentCodec&&(i=f+g),y=i,!(S>0))return;S+=m;try{b=new Uint8Array(S)}catch(K6){return void this.observer.emit(NV.ERROR,NV.ERROR,{type:jV.MUX_ERROR,details:AV.REMUX_ALLOC_ERROR,fatal:!1,error:K6,bytes:S,reason:"fail allocating audio mdat ".concat(S)})}if(!d){new DataView(b.buffer).setUint32(0,S),b.set(WJ.types.mdat,4)}}b.set(r,m);const a=r.byteLength;m+=a,u.push(XJ(!0,o,a,0)),x=i}const w=u.length;if(!w)return;const T=u[u.length-1];f=x-g,this.nextAudioTs=f+s*T.duration;const C=d?new Uint8Array(0):WJ.moof(e.sequenceNumber++,y/s,UV({},e,{samples:u}));e.samples=[];const E=(y-g)/a,j=f/a,A={data1:C,data2:b,startPTS:E,endPTS:j,startDTS:E,endDTS:j,type:"audio",hasAudio:!0,hasVideo:!1,nb:w};return this.isAudioContiguous=!0,A}}function QJ(e,t){let n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function ZJ(e,t,n,r){const i=e.samples.length;if(!i)return;const a=e.inputTimeScale;for(let o=0;o<i;o++){const i=e.samples[o];i.pts=QJ(i.pts-n.baseTime*a/n.timescale,t*a)/a,i.dts=QJ(i.dts-r.baseTime*a/r.timescale,t*a)/a}const s=e.samples;return e.samples=[],{samples:s}}function $J(e,t,n){const r=e.samples.length;if(!r)return;const i=e.inputTimeScale;for(let s=0;s<r;s++){const r=e.samples[s];r.pts=QJ(r.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort(((e,t)=>e.pts-t.pts));const a=e.samples;return e.samples=[],{samples:a}}function eQ(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function tQ(e,t,n){const r=null==e?void 0:e.codec;if(r&&r.length>4)return r;if(t===sK){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r){return YK(r,!1)}return n.warn('Unhandled audio codec "'.concat(r,'" in mp4 MAP')),r||"mp4a"}return n.warn('Unhandled video codec "'.concat(r,'" in mp4 MAP')),r||"avc1"}try{KJ=self.performance.now.bind(self.performance)}catch(K6){KJ=Date.now}const nQ=[{demux:class{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=dJ("video",1),a=this.audioTrack=dJ("audio",1),s=this.txtTrack=dJ("text",1);if(this.id3Track=dJ("id3",1),this.timeOffset=0,null==e||!e.byteLength)return;const o=TK(e);if(o.video){const{id:e,timescale:t,codec:n,supplemental:r}=o.video;i.id=e,i.timescale=s.timescale=t,i.codec=n,i.supplemental=r}if(o.audio){const{id:e,timescale:t,codec:n}=o.audio;a.id=e,a.timescale=t,a.codec=n}s.id=gK.text,i.sampleDuration=0,i.duration=a.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let n=0;n<t;){const r=yK(e,n);if(r>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=r>1?n+r:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=RK(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},n=kK(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}(n);this.remainderData=t.remainder,r.samples=t.valid||new Uint8Array}else r.samples=n;const a=this.extractID3Track(r,t);return i.samples=LK(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=LK(e,t),{videoTrack:t,audioTrack:dJ(),id3Track:r,textTrack:dJ()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=kK(e.samples,["emsg"]);r&&r.forEach((e=>{const r=function(e){const t=e[0];let n="",r="",i=0,a=0,s=0,o=0,l=0,c=0;if(0===t){for(;"\0"!==vK(e.subarray(c,c+1));)n+=vK(e.subarray(c,c+1)),c+=1;for(n+=vK(e.subarray(c,c+1)),c+=1;"\0"!==vK(e.subarray(c,c+1));)r+=vK(e.subarray(c,c+1)),c+=1;r+=vK(e.subarray(c,c+1)),c+=1,i=yK(e,12),a=yK(e,16),o=yK(e,20),l=yK(e,24),c=28}else if(1===t){c+=4,i=yK(e,c),c+=4;const t=yK(e,c);c+=4;const a=yK(e,c);
2for(c+=4,s=2**32*t+a,CV(s)||(s=Number.MAX_SAFE_INTEGER,XV.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=yK(e,c),c+=4,l=yK(e,c),c+=4;"\0"!==vK(e.subarray(c,c+1));)n+=vK(e.subarray(c,c+1)),c+=1;for(n+=vK(e.subarray(c,c+1)),c+=1;"\0"!==vK(e.subarray(c,c+1));)r+=vK(e.subarray(c,c+1)),c+=1;r+=vK(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:r,timeScale:i,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:e.subarray(c,e.byteLength)}}(e);if(EJ.test(r.schemeIdUri)){const e=jJ(r,t);let i=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;i<=.001&&(i=Number.POSITIVE_INFINITY);const a=r.payload;n.samples.push({data:a,len:a.byteLength,dts:e,pts:e,type:cJ.emsg,duration:i})}else if(this.config.enableEmsgKLVMetadata&&r.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=jJ(r,t);n.samples.push({data:r.payload,len:r.payload.byteLength,dts:e,pts:e,type:cJ.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class extends WV{constructor(e,t,n,r){super("passthrough-remuxer",r),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(PK(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const r=this.initData=TK(e);r.audio&&(t=tQ(r.audio,sK,this)),r.video&&(n=tQ(r.video,oK,this));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,a){var s,o;let{initPTS:l,lastEndTime:c}=this;const d={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};TV(c)||(c=this.lastEndTime=i||0);const u=t.samples;if(null==u||!u.length)return d;const h={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(s=p)&&s.length||(this.generateInitSegment(u),p=this.initData),null==(o=p)||!o.length)return this.warn("Failed to generate initSegment."),d;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1);const m=function(e,t,n){const r={},i=kK(e,["moof","traf"]);for(let a=0;a<i.length;a++){const e=i[a],s=kK(e,["tfhd"])[0],o=yK(s,4),l=t[o];if(!l)continue;const c=r[o]||(r[o]={start:NaN,duration:0,sampleCount:0,timescale:l.timescale,type:l.type}),d=kK(e,["tfdt"])[0];if(d){const e=d[0];let t=yK(d,4);1===e&&(t===mK?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(t*=mK+1,t+=yK(d,8))),TV(t)&&(!TV(c.start)||t<c.start)&&(c.start=t)}const u=l.default,h=yK(s,0)|(null==u?void 0:u.flags);let p=(null==u?void 0:u.duration)||0;8&h&&(p=yK(s,2&h?12:8));const m=kK(e,["trun"]);let f=c.start||0,g=0,v=p;for(let t=0;t<m.length;t++){const e=m[t],n=yK(e,4),r=c.sampleCount;c.sampleCount+=n;const i=1&e[3],a=4&e[3],s=1&e[2],o=2&e[2],l=4&e[2],d=8&e[2];let u=8,h=n;for(i&&(u+=4),a&&n&&(1&e[u+1]||void 0!==c.keyFrameIndex||(c.keyFrameIndex=r),u+=4,s?(v=yK(e,u),u+=4):v=p,o&&(u+=4),d&&(u+=4),f+=v,g+=v,h--);h--;)s?(v=yK(e,u),u+=4):v=p,o&&(u+=4),l&&(1&e[u+1]||void 0===c.keyFrameIndex&&(c.keyFrameIndex=c.sampleCount-(h+1),c.keyFrameStart=f),u+=4),d&&(u+=4),f+=v,g+=v;!g&&p&&(g+=p*n)}c.duration+=g}if(!Object.keys(r).some((e=>r[e].duration))){let t=1/0,n=0;const i=kK(e,["sidx"]);for(let e=0;e<i.length;e++){const r=wK(i[e]);if(null!=r&&r.references){t=Math.min(t,r.earliestPresentationTime/r.timescale);const e=r.references.reduce(((e,t)=>e+t.info.duration||0),0);n=Math.max(n,e+r.earliestPresentationTime/r.timescale)}}n&&TV(n)&&Object.keys(r).forEach((e=>{r[e].duration||(r[e].duration=n*r[e].timescale-r[e].start)}))}return r}(u,p,this),f=p.audio?m[p.audio.id]:null,g=p.video?m[p.video.id]:null,v=eQ(g,1/0),b=eQ(f,1/0),y=eQ(g,0,!0),x=eQ(f,0,!0);let S,k=i,w=0;if(f&&(!g||!l&&b<v||l&&l.trackId===p.audio.id)?(h.trackId=p.audio.id,S=f,w=x-b):g&&(h.trackId=p.video.id,S=g,w=y-v),S){const e=S.timescale;k=S.start/e,h.initPTS=S.start-i*e,h.timescale=e,l||(this.initPTS=l={baseTime:h.initPTS,timescale:e,trackId:h.trackId})}!a&&l||!function(e,t,n,r){if(null===e)return!0;const i=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>i}(l,k,i,w)&&h.timescale===l.timescale||(h.initPTS=k-i,h.timescale=1,l&&1===l.timescale&&this.warn("Adjusting initPTS @".concat(i," from ").concat(l.baseTime/l.timescale," to ").concat(h.initPTS)),this.initPTS=l={baseTime:h.initPTS,timescale:1});const T=e?k-l.baseTime/l.timescale:c,C=T+w;w>0?this.lastEndTime=C:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const E=!!p.audio,j=!!p.video;let A="";E&&(A+="audio"),j&&(A+="video");const N={data1:u,startPTS:T,startDTS:T,endPTS:C,endDTS:C,type:A,hasAudio:E,hasVideo:j,nb:1,dropped:0};d.audio=E&&!j?N:void 0,d.video=j?N:void 0;
vendor: 4,686 bytes, line 2
2const P=null==g?void 0:g.sampleCount;if(P){const e=g.keyFrameIndex,t=-1!==e;N.nb=P,N.dropped=0===e||this.isVideoContiguous?0:t?e:P,N.independent=t,N.firstKeyFrame=e,t&&g.keyFrameStart&&(N.firstKeyFramePTS=(g.keyFrameStart-l.baseTime)/l.timescale),this.isVideoContiguous||(d.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),N.dropped&&this.warn("fmp4 does not start with IDR: firstIDR ".concat(e,"/").concat(P," dropped: ").concat(N.dropped," start: ").concat(N.firstKeyFramePTS||"NA"))}return d.initSegment=h,d.id3=ZJ(n,i,l,l),r.samples.length&&(d.text=$J(r,i,l)),d}}},{demux:DJ,remux:JJ},{demux:class extends uJ{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=VX(e,0);let r=(null==n?void 0:n.length)||0;if(kJ(e,r))return!1;for(let i=e.length;r<i;r++)if(JX(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&KX(e,t)&&YX(e,t)<=e.length-t}(e,t)}appendFrame(e,t,n){QX(e,this.observer,t,n,e.manifestCodec);const r=$X(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r}},remux:JJ},{demux:class extends uJ{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=VX(e,0);let n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==lJ(t)&&wJ(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(kJ(e,n))return XV.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return xJ(e,t)&&4<=e.length-t}(e,t)}appendFrame(e,t,n){if(null!==this.basePTS)return bJ(e,t,n,this.basePTS,this.frameIndex)}},remux:JJ}];nQ.splice(2,0,{demux:TJ,remux:JJ});class rQ{constructor(e,t,n,r,i,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=KJ();let a=new Uint8Array(e);const{currentTransmuxState:s,transmuxConfig:o}=this;r&&(this.currentTransmuxState=r);const{contiguous:l,discontinuity:c,trackSwitch:d,accurateTimeOffset:u,timeOffset:h,initSegmentChange:p}=r||s,{audioCodec:m,videoCodec:f,defaultInitPts:g,duration:v,initSegmentData:b}=o,y=function(e,t){let n=null;e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t);return n}(a,t);if(y&&wY(y.method)){const e=this.getDecrypter(),t=TY(y.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(a,y.key.buffer,y.iv.buffer,t).then((e=>{const t=this.push(e,null,n);return this.decryptionPromise=null,t})),this.decryptionPromise;{let r=e.softwareDecrypt(a,y.key.buffer,y.iv.buffer,t);if(n.part>-1){const t=e.flush();r=t?t.buffer:t}if(!r)return i.executeEnd=KJ(),iQ(n);a=new Uint8Array(r)}}const x=this.needsProbing(c,d);if(x){const e=this.configureTransmuxer(a);if(e)return this.logger.warn("[transmuxer] ".concat(e.message)),this.observer.emit(NV.ERROR,NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),i.executeEnd=KJ(),iQ(n)}(c||d||p||x)&&this.resetInitSegment(b,m,f,v,t),(c||p||x)&&this.resetInitialTimestamp(g),l||this.resetContiguity();const S=this.transmux(a,y,h,u,n);this.asyncResult=aQ(S);const k=this.currentTransmuxState;return k.contiguous=!0,k.discontinuity=!1,k.trackSwitch=!1,i.executeEnd=KJ(),S}flush(e){const t=e.transmuxing;t.executeStart=KJ();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then((()=>this.flush(e)));const a=[],{timeOffset:s}=r;if(n){const t=n.flush();t&&a.push(this.push(t.buffer,null,e))}const{demuxer:o,remuxer:l}=this;if(!o||!l){t.executeEnd=KJ();const n=[iQ(e)];return this.asyncResult?Promise.resolve(n):n}const c=o.flush(s);return aQ(c)?(this.asyncResult=!0,c.then((t=>(this.flushRemux(a,t,e),a)))):(this.flushRemux(a,c,e),this.asyncResult?Promise.resolve(a):a)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:a,textTrack:s}
2=t,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log("[transmuxer.ts]: Flushed ".concat(this.id," sn: ").concat(n.sn).concat(n.part>-1?" part: "+n.part:""," of ").concat(this.id===DV?"level":"track"," ").concat(n.level));const c=this.remuxer.remux(r,i,a,s,l,o,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=KJ()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:a,remuxer:s}=this;a&&s&&(a.resetInitSegment(e,t,n,r),s.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let a;return a=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i),a}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:a,id3Track:s,textTrack:o}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,a,s,o,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,this.id),chunkMeta:i})))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let d=0,u=nQ.length;d<u;d++){var a;if(null!=(a=nQ[d].demux)&&a.probe(e,this.logger)){i=nQ[d];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const s=this.demuxer,o=this.remuxer,l=i.remux,c=i.demux;o&&o instanceof l||(this.remuxer=new l(n,t,r,this.logger)),s&&s instanceof c||(this.demuxer=new c(n,t,r,this.logger),this.probe=c.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new nY(this.config)),e}}const iQ=e=>({remuxResult:{},chunkMeta:e});function aQ(e){return"then"in e&&e.then instanceof Function}class sQ{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class oQ{constructor(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}}let lQ=0;class cQ{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=lQ++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{const t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var r;const e=null==(r=this.workerContext)?void 0:r.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error("".concat(e.message," (").concat(e.filename,":").concat(e.lineno,")"));this.hls.config.enableWorker=!1,this.hls.logger.warn('Error in "'.concat(this.id,'" Web Worker, fallback to inline')),this.hls.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const a=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===NV.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new BX,this.observer.on(NV.FRAG_DECRYPTED,a),this.observer.on(NV.ERROR,a);const s=ZK(i.preferManagedMediaSource);if(this.useWorker&&"undefined"!==typeof Worker){const n=this.hls.logger;if(i.workerPath||"function"===typeof __HLS_WORKER_BUNDLE__){try{i.workerPath?(n.log("loading Web Worker ".concat(i.workerPath,' for "').concat(t,'"')),this.workerContext=function(e){const t=zX[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,r={worker:new self.Worker(n),scriptURL:n,clientCount:1};return zX[e]=r,r}(i.workerPath)):(n.log('injecting Web Worker for "'.concat(t,'"')),this.workerContext=function(){const e=zX[UX];if(e)return e.clientCount++,e;const t=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}
vendor: 10,128 bytes, line 2
2),n=self.URL.createObjectURL(t),r={worker:new self.Worker(n),objectURL:n,clientCount:1};return zX[UX]=r,r}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:s,id:t,config:gq(i)})}catch(K6){n.warn('Error setting up "'.concat(t,'" Web Worker, fallback to inline'),K6),this.terminateWorker(),this.error=null,this.transmuxer=new rQ(this.observer,s,i,"",t,e.logger)}return}}this.transmuxer=new rQ(this.observer,s,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=lQ++;const t=this.hls.config,n=ZK(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:gq(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=zX[e||UX];if(t&&1===t.clientCount--){const{worker:n,objectURL:r}=t;delete zX[e||UX],r&&self.URL.revokeObjectURL(r),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,a,s,o,l,c){var d,u;l.transmuxing.start=self.performance.now();const{instanceNo:h,transmuxer:p}=this,m=a?a.start:i.start,f=i.decryptdata,g=this.frag,v=!(g&&i.cc===g.cc),b=!(g&&l.level===g.level),y=g?l.sn-g.sn:-1,x=this.part?l.part-this.part.index:-1,S=0===y&&l.id>1&&l.id===(null==g?void 0:g.stats.chunkCount),k=!b&&(1===y||0===y&&(1===x||S&&x<=0)),w=self.performance.now();(b||y||0===i.stats.parsing.start)&&(i.stats.parsing.start=w),!a||!x&&k||(a.stats.parsing.start=w);const T=!(g&&(null==(d=i.initSegment)?void 0:d.url)===(null==(u=g.initSegment)?void 0:u.url)),C=new oQ(v,k,o,b,m,T);if(!k||v||T){this.hls.logger.log("[transmuxer-interface]: Starting new transmux session for ".concat(i.type," sn: ").concat(l.sn).concat(l.part>-1?" part: "+l.part:""," ").concat(this.id===DV?"level":"track",": ").concat(l.level," id: ").concat(l.id,"\n discontinuity: ").concat(v,"\n trackSwitch: ").concat(b,"\n contiguous: ").concat(k,"\n accurateTimeOffset: ").concat(o,"\n timeOffset: ").concat(m,"\n initSegmentChange: ").concat(T));const e=new sQ(n,r,t,s,c);this.configureTransmuxer(e)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:e,decryptdata:f,chunkMeta:l,state:C},e instanceof ArrayBuffer?[e]:[]);else if(p){const t=p.push(e,f,l,C);aQ(t)?t.then((e=>{this.handleTransmuxComplete(e)})).catch((e=>{this.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const t=n.flush(e);aQ(t)?t.then((t=>{this.handleFlushResult(t,e)})).catch((t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")})):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach((e=>{this.handleTransmuxComplete(e)})),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class dQ extends WV{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=null==t?void 0:t.renditionReports;if(r){let a=-1;for(let n=0;n<r.length;n++){const s=r[n];let o;try{o=new self.URL(s.URI,t.url).href}catch(i){this.warn("Could not construct new URL for Rendition Report: ".concat(i)),o=s.URI||""}if(o===e){a=n;break}o===e.substring(0,o.length)&&(a=n)}if(-1!==a){const e=r[a],i=parseInt(e["LAST-MSN"])||(null==t?void 0:t.lastPartSn);let s=parseInt(e["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const e=Math.min(t.age-t.partTarget,t.targetduration);s>=0&&e>t.partTarget&&(s+=1)}const o=n&&uq(n);return new hq(i,s>=0?s:void 0,o)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(n))}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,a=self.performance.now(),s=i.loading.first?Math.max(0,a-i.loading.first):0;r.advancedDateTime=Date.now()-s;const o=this.hls.config.timelineOffset;if(o!==r.appliedTimelineOffset){const e=Math.max(o||0,0);r.appliedTimelineOffset=e,r.fragments.forEach((t=>{t.start=t.playlistOffset+e}))}if(r.live||null!=n&&n.live){const o="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){sX(n,r);const e=r.playlistParsingError;if(e){this.warn(e);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var l;const{networkDetails:a}=t;return void n.trigger(NV.ERROR,{type:jV.NETWORK_ERROR,details:AV.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(l=r.fragments[0])?void 0:l.type,networkDetails:a,stats:i})}r.playlistParsingError=null}}-1===r.requestScheduled&&(r.requestScheduled=i.loading.start);const c=this.hls.mainForwardBufferInfo,d=c?c.end-c.len:0,u=dX(r,1e3*(r.edge-d));if(r.requestScheduled+u<a?r.requestScheduled=a:r.requestScheduled+=u,this.log("live playlist ".concat(e," ").concat(r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED")),!this.canLoad||!r.live)return;let h,p,m;if(r.canBlockReload&&r.endSN&&r.advanced){const e=this.hls.config.lowLatencyMode,i=r.lastPartSn,s=r.endSN,l=r.lastPartIndex,c=i===s;-1!==l?c?(p=s+1,m=e?0:l):(p=i,m=e?l+1:r.maxPartIndex):p=s+1;const d=r.age,u=d+r.ageHeader;let f=Math.min(u-r.partTarget,1.5*r.targetduration);if(f>0){if(u>3*r.targetduration)this.log("Playlist last advanced ".concat(d.toFixed(2),"s ago. Omitting segment and part directives.")),p=void 0,m=void 0;else if(null!=n&&n.tuneInGoal&&u-r.partTarget>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(n.tuneInGoal," to: ").concat(f," with playlist age: ").concat(r.age)),f=0;else{const e=Math.floor(f/r.targetduration);if(p+=e,void 0!==m){m+=Math.round(f%r.targetduration/r.partTarget)}this.log("CDN Tune-in age: ".concat(r.ageHeader,"s last advanced ").concat(d.toFixed(2),"s goal: ").concat(f," skip sn ").concat(e," to part ").concat(m))}r.tuneInGoal=f}if(h=this.getDeliveryDirectives(r,t.deliveryDirectives,p,m),e||!c)return r.requestScheduled=a,void this.loadingPlaylist(o,h)}else(r.canBlockReload||r.canSkipUntil)&&(h=this.getDeliveryDirectives(r,t.deliveryDirectives,p,m));h&&void 0!==p&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(u-2*s,u/2)),this.scheduleLoading(o,h,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r)return void this.loadingPlaylist(e,t);const i=self.performance.now(),a=r.requestScheduled;if(i>=a)return void this.loadingPlaylist(e,t);const s=a-i;this.log("reload live playlist ".concat(e.name||e.bitrate+"bps"," in ").concat(Math.round(s)," ms")),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(e,t)),s)}getDeliveryDirectives(e,t,n,r){let i=uq(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=lq),new hq(n,r,i)}checkRetry(e){const t=e.details,n=Pq(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:s}=r||{},o=!!r&&!!s&&(i===Fq||!r.resolved&&i===Mq);if(o){var l;if(a>=s.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn("Retrying playlist loading ".concat(a+1,"/").concat(s.maxNumRetry,' after "').concat(t,'" without delivery-directives')),this.loadPlaylist();else{const e=Lq(s,a);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),e),this.warn("Retrying playlist loading ".concat(a+1,"/").concat(s.maxNumRetry,' after "').concat(t,'" in ').concat(e,"ms"))}e.levelRetry=!0,r.resolved=!0}return o}}function uQ(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!hQ(e[n].attrs,t[n].attrs))return!1;return!0}function hQ(e,t,n){const r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((n=>e[n]!==t[n]))}function pQ(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class mQ{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;const r=this.queues[t];r.push(e),1!==r.length||n||this.executeNext(t)}appendBlocker(e){return new Promise((t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)}))}prependBlocker(e){return new Promise((t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEac
vendor: 5,034 bytes, line 2
2h((e=>{var t;const n=null==(t=e[0])?void 0:t.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(e[0].execute(),e.splice(0,1))}))}unblockAudio(e){if(null===this.queues)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const i=t[0];try{i.execute()}catch(r){var n;if(i.onError(r),null===this.queues||null===this.tracks)return;const t=null==(n=this.tracks[e])?void 0:n.buffer;null!=t&&t.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":"\n".concat(this.list("video"),"\n").concat(this.list("audio"),"\n").concat(this.list("audiovideo"),"}")}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?"".concat(e,": (").concat(this.listSbInfo(e),") ").concat(this.listOps(e)):""}listSbInfo(e){var t;const n=null==(t=this.tracks)?void 0:t[e],r=null==n?void 0:n.buffer;return r?"SourceBuffer".concat(r.updating?" updating":"").concat(n.ended?" ended":"").concat(n.ending?" ending":""):"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map((e=>e.label)).join(", "))||""}}const fQ=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,gQ="HlsJsTrackRemovedError";class vQ extends Error{constructor(e){super(e),this.name=gQ}}function bQ(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach((t=>{e.removeChild(t)}))}function yQ(e){return"audio"===e?1:0}class xQ{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(NV.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(NV.BUFFER_CODECS,this.onBufferCodecs,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(NV.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(NV.BUFFER_CODECS,this.onBufferCodecs,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&TV(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log("Setting autoLevelCapping to ".concat(n,": ").concat(e[n].height,"p@").concat(e[n].bitrate," for media ").concat(this.mediaWidth,"x").concat(this.mediaHeight)),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter(((t,n)=>this.isLevelAllowed(t)&&n<=e));return this.clientRect=null,xQ.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.
2width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(Ps){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some((t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height))}static getMaxLevelByMediaSize(e,t,n){if(null==e||!e.length)return-1;let r=e.length-1;const i=Math.max(t,n);for(let o=0;o<e.length;o+=1){const t=e[o];if((t.width>=i||t.height>=i)&&(a=t,!(s=e[o+1])||a.width!==s.width||a.height!==s.height)){r=o;break}}var a,s;return r}}const SQ={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},kQ={HLS:"h"},wQ="CMCD-Object",TQ="CMCD-Request",CQ="CMCD-Session",EQ="CMCD-Status",jQ={[wQ]:["br","ab","d","ot","tb","tpb","lb","tab","lab","url"],[TQ]:["pb","bl","tbl","dl","ltc","mtp","nor","nrr","rc","sn","sta","su","ttfb","ttfbb","ttlb","cmsdd","cmsds","smrt","df","cs"],[CQ]:["cid","pr","sf","sid","st","v","msd"],[EQ]:["bs","bsd","cdn","rtp","bg","pt","ec","e"]};class AQ{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof AQ?e:new AQ(e)))),this.value=e,this.params=t}}function NQ(e,t,n,r){return new Error("failed to ".concat(e,' "').concat(function(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":"object"===typeof e?JSON.stringify(e):String(e)}(t),'" as ').concat(n),{cause:r})}function PQ(e,t,n){return NQ("serialize",e,t,n)}class RQ{constructor(e){this.description=e}}const LQ="Bare Item";function IQ(e){if(!1===ArrayBuffer.isView(e))throw PQ(e,"Byte Sequence");return":".concat((t=e,btoa(String.fromCharCode(...t))),":");var t}function DQ(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw PQ(e,"Integer");return e.toString()}function OQ(e,t){if(e<0)return-OQ(-e,t);const n=Math.pow(10,t);if(Math.abs(e*n%1-.5)<Number.EPSILON){const t=Math.floor(e*n);return(t%2===0?t:t+1)/n}return Math.round(e*n)/n}function MQ(e){const t=OQ(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw PQ(e,"Decimal");const n=t.toString();return n.includes(".")?n:"".concat(n,".0")}const _Q=/[\x00-\x1f\x7f]+/;function FQ(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw PQ(t,"Token");return t}function BQ(e){switch(typeof e){case"number":if(!TV(e))throw PQ(e,LQ);return Number.isInteger(e)?DQ(e):MQ(e);case"string":return function(e){if(_Q.test(e))throw PQ(e,"String");return'"'.concat(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),'"')}(e);case"symbol":return FQ(e);case"boolean":return function(e){if("boolean"!==typeof e)throw PQ(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return"@".concat(DQ(e.getTime()/1e3))}(e);if(e instanceof Uint8Array)return IQ(e);if(e instanceof RQ)return FQ(e);default:throw PQ(e,LQ)}}function UQ(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw PQ(e,"Key");return e}function zQ(e){return null==e?"":Object.entries(e).map((e=>{let[t,n]=e;return!0===n?";".concat(UQ(t)):";".concat(UQ(t),"=").concat(BQ(n))})).join("")}function GQ(e){return e instanceof AQ?"".concat(BQ(e.value)).concat(zQ(e.params)):BQ(e)}function WQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{whitespace:!0};if("object"!==typeof e)throw PQ(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),r=(null===t||void 0===t?void 0:t.whitespace)?" ":"";return Array.from(n).map((e=>{let[t,n]=e;n instanceof AQ===!1&&(n=new AQ(n));let r=UQ(t);return!0===n.value?r+=zQ(n.params):(r+="=",Array.isArray(n.value)?r+=function(e){return"(".concat(e.value.map(GQ).join(" "),")").concat(zQ(e.params))}(n):r+=GQ(n)),r})).join(",".concat(r))}const HQ=e=>Math.round(e),VQ=e=>100*HQ(e/100),KQ={br:HQ,d:HQ,bl:VQ,dl:VQ,mtp:VQ,nor:(e,t)=>((null===t||void 0===t?void 0:t.baseUrl)&&(e=function(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")}(e,t.baseUrl)),encodeURIComponent(e)),rtp:VQ,tb:HQ};function qQ(e,t){const n={};if(null==e||"object"!==typeof e)return n;const r=Object.keys(e).sort(),i=UV({},KQ,null===t||void 0===t?void 0:t.formatters),a=null===t||void 0===t?void 0:t.filter;return r.forEach((r=>{if(!1===(null===a||void 0===a?void 0:a(r)))return;let s=e[r];const o=i[r];o&&(s=o(s,t)),"v"===r&&1===s||"pr"==r&&1===s||function(e){return"number"===typeof e?TV(e):null!=e&&""!==e&&!1!==e}(s)&&(function(e){return["ot","sf","st","e","sta"].includes(e)}(r)&&"string"===typeof s&&(s=new RQ(s)),n[r]=s)})),n}function YQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?function(e,t){return WQ(e,t)}(qQ(e,t),UV({whitespace:!1},t)):""}
2function XQ(e,t,n){return UV(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};if(!e)return n;const r=Object.entries(e),i=Object.entries(jQ).concat(Object.entries((null===t||void 0===t?void 0:t.customHeaderMap)||{})),a=r.reduce(((e,t)=>{var n,r;const[a,s]=t,o=(null===(n=i.find((e=>e[1].includes(a))))||void 0===n?void 0:n[0])||TQ;return null!==(r=e[o])&&void 0!==r||(e[o]={}),e[o][a]=s,e}),{});return Object.entries(a).reduce(((e,n)=>{let[r,i]=n;return e[r]=YQ(i,t),e}),n)}(t,n))}const JQ=/CMCD=[^&#]+/;function QQ(e,t,n){const r=function(e){if(!e)return"";const t=YQ(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"".concat("CMCD","=").concat(encodeURIComponent(t))}(t,n);if(!r)return e;if(JQ.test(e))return e.replace(JQ,r);const i=e.includes("?")?"&":"?";return"".concat(e).concat(i).concat(r)}function ZQ(e,t,n,r){e&&Object.keys(t).forEach((i=>{const a=e.filter((e=>e.groupId===i)).map((e=>{const a=UV({},e);return a.details=void 0,a.attrs=new yY(a.attrs),a.url=a.attrs.URI=$Q(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=r,a}));e.push(...a)}))}function $Q(e,t,n,r){const{HOST:i,PARAMS:a,[n]:s}=r;let o;t&&(o=null==s?void 0:s[t],o&&(e=o));const l=new self.URL(e);return i&&!o&&(l.host=i),a&&Object.keys(a).sort().forEach((e=>{e&&l.searchParams.set(e,a[e])})),l.href}function eZ(e,t,n){tZ(e,t,n),e.addEventListener(t,n)}function tZ(e,t,n){e.removeEventListener(t,n)}class nZ extends WV{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=nZ.CDMCleanupPromise?[nZ.CDMCleanupPromise]:[],this.onWaitingForKey=e=>{this.log('"'.concat(e.type,'" event'))},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onWaitingForKey=null}registerListeners(){this.hls.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(NV.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(NV.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(NV.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(NV.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(NV.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(NV.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];return r?r.licenseUrl:e===NY.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error('no license server URL configured for key-system "'.concat(e,'"'));return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(e,'"]'))}attemptKeySystemAccess(e){const t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,r=t.map((e=>e.audioCodec)).filter(n),i=t.map((e=>e.videoCodec)).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise(((t,n)=>{const a=e=>{const s=e.shift();this.getMediaKeysPromise(s,r,i).then((e=>t({keySystem:s,mediaKeys:e}))).catch((t=>{e.length?a(e):n(t instanceof rZ?t:new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};a(e)}))}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!==typeof n){let e="Configured requestMediaKeySystemAccess is not a function ".concat(n);return null===_Y&&"http:"===self.location.protocol&&(e="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=function(e,t,n,r){let i;switch(e){case NY.FAIRPLAY:i=["cenc","sinf"];break;case NY.WIDEVINE:case NY.PLAYREADY:i=["cenc"];break;case NY.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(e))}return function(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:"audio/mp4; codecs=".concat(e),robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null}))),videoCapabilities:n.map((e=>({contentType:"video/mp4; codecs=".concat(e),robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null})))}]}(i,t,n,r)}(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let a=null==i?void 0:i.keySystemAccess;if(!a){this.log('Requesting encrypted media "'.concat(e,'" key-system access with config: ').concat(gq(r))),a=this.requestMediaKeySystemAccess(e,r);const t=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch((t=>{this.log('Failed to obtain access to key-system "'.concat(e,'": ').concat(t))})),a.then((n=>
2{this.log('Access for key-system "'.concat(n.keySystem,'" obtained'));const r=this.fetchServerCertificate(e);return this.log('Create media-keys for "'.concat(e,'"')),t.mediaKeys=n.createMediaKeys().then((n=>(this.log('Media-keys created for "'.concat(e,'"')),t.hasMediaKeys=!0,r.then((t=>t?this.setMediaKeysServerCertificate(n,e,t):n))))),t.mediaKeys.catch((t=>{this.error('Failed to create media-keys for "'.concat(e,'"}: ').concat(t))})),t.mediaKeys}))}return a.then((()=>i.mediaKeys))}createMediaKeySessionContext(e){let{decryptdata:t,keySystem:n,mediaKeys:r}=e;this.log('Creating key-system session "'.concat(n,'" keyId: ').concat($V(t.keyId||[])));const i=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return $V(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log('Updating key-session "'.concat(r.sessionId,'" for keyID ').concat($V((null==(n=e.decryptdata)?void 0:n.keyId)||[]),"\n } (data length: ").concat(t?t.byteLength:t,")")),r.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map((e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys}))).filter((e=>{let{hasMediaKeys:t}=e;return!!t})).map((e=>{let{keySystem:t}=e;return OY(t)})).filter((e=>!!e))}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then((e=>{let{keySystem:t,mediaKeys:n}=e;return this.attemptSetMediaKeys(t,n)}))}selectKeySystem(e){return new Promise(((t,n)=>this.getKeySystemSelectionPromise(e).then((e=>{let{keySystem:r}=e;const i=OY(r);i?t(i):n(new Error('Unable to find format for key-system "'.concat(r,'"')))})).catch(n)))}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(e.sn," ").concat(e.type,": ").concat(e.level,") key formats ").concat(t.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=MY(this.config),n=e.map(DY).filter((e=>!!e&&-1!==t.indexOf(e)));return this.selectKeySystem(n)}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r="(keyId: ".concat(n,' format: "').concat(t.keyFormat,'" method: ').concat(t.method," uri: ").concat(t.uri,")");this.log("Starting session for key ".concat(r));let i=this.keyIdToKeySessionPromise[n];if(!i){i=this.getKeySystemForKeyPromise(t).then((n=>{let{keySystem:i,mediaKeys:a}=n;return this.throwIfDestroyed(),this.log("Handle encrypted media sn: ".concat(e.frag.sn," ").concat(e.frag.type,": ").concat(e.frag.level," using key ").concat(r)),this.attemptSetMediaKeys(i,a).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:i,mediaKeys:a,decryptdata:t}))))}));(this.keyIdToKeySessionPromise[n]=i.then((e=>{const n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")}))).catch((e=>this.handleError(e)))}return i}throwIfDestroyed(){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof rZ?this.hls.trigger(NV.ERROR,e.data):this.hls.trigger(NV.ERROR,{type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const t=DY(e.keyFormat),n=t?[t]:MY(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=MY(this.config)),0===e.length)throw new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(gq({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(e,'"'));const r=Promise.all(n).then((()=>
2{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)}));return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then((()=>{this.log('Media-keys set for "'.concat(e,'"')),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===n.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,n,r){var i,a;const s=null==(i=this.config.drmSystems)||null==(a=i[e.keySystem])?void 0:a.generateRequest;if(s)try{const r=s.call(this.hls,t,n,e);if(!r)throw new Error("Invalid response from configured generateRequest filter");t=r.initDataType,n=r.initData?r.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(p){var o;if(this.warn(p.message),null!=(o=this.hls)&&o.config.debug)throw p}if(null===n)return this.log('Skipping key-session request for "'.concat(r,'" (no initData)')),Promise.resolve(e);const l=this.getKeyIdString(e.decryptdata);this.log('Generating key-session request for "'.concat(r,'": ').concat(l," (init data type: ").concat(t," length: ").concat(n?n.byteLength:null,")"));const c=new BX,d=e._onmessage=t=>{const n=e.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:r,message:i}=t;this.log('"'.concat(r,'" message event for session "').concat(n.sessionId,'" message size: ').concat(i.byteLength)),"license-request"===r||"license-renewal"===r?this.renewLicense(e,i).catch((e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)})):"license-release"===r?e.keySystem===NY.FAIRPLAY&&(this.updateKeySession(e,EY("acknowledged")),this.removeSession(e)):this.warn('unhandled media key message type "'.concat(r,'"'))},u=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession)return void c.emit("error",new Error("invalid state"));this.onKeyStatusChange(e);const n=e.keyStatus;c.emit("keyStatus",n),"expired"===n&&(this.warn("".concat(e.keySystem," expired for key ").concat(l)),this.renewKeySession(e))};eZ(e.mediaKeysSession,"message",d),eZ(e.mediaKeysSession,"keystatuseschange",u);const h=new Promise(((e,t)=>{c.on("error",t),c.on("keyStatus",(n=>{n.startsWith("usable")?e():"output-restricted"===n?t(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(n,'"'))):"expired"===n?t(new Error("key expired while generating request")):this.warn('unhandled key status change "'.concat(n,'"'))}))}));return e.mediaKeysSession.generateRequest(t,n).then((()=>{var t;this.log('Request generated for key-session "'.concat(null==(t=e.mediaKeysSession)?void 0:t.sessionId,'" keyId: ').concat(l))})).catch((e=>{throw new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},"Error generating key-session request: ".concat(e))})).then((()=>h)).catch((t=>{throw c.removeAllListeners(),this.removeSession(e),t})).then((()=>(c.removeAllListeners(),e)))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach(((t,n)=>{if("string"===typeof n&&"object"===typeof t){const e=n;n=t,t=e}this.log('key status change "'.concat(t,'" for keyStatuses keyId: ').concat($V("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))," session keyId: ").concat($V(new Uint8Array(e.decryptdata.keyId||[]))," uri: ").concat(e.decryptdata.uri)),e.keyStatus=t}))}fetchServerCertificate(e){const t=this.config,n=new(0,t.loader)(t),r=this.getServerCertificateUrl(e);return r?(this.log('Fetching server certificate for "'.concat(e,'"')),new Promise(((i,a)=>{const s={responseType:"arraybuffer",url:r},o=t.certLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,r)=>{i(e.data)},onError:(t,n,i,o)=>{a(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:GV({url:s.url,data:void 0},t)},'"'.concat(e,'" certificate request failed (').concat(r,"). Status: ").concat(t.code," (").concat(t.text,")")))},onTimeout:(t,n,i)=>{a(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:s.url,data:void 0}},'"'.concat(e,'" certificate request timed out (').concat(r,")")))},onAbort:(e,t,n)=>{a(new Error("aborted"))}};n.load(s,l,c)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise(((r,i)=>{e.setServerCertificate(n).then((i=>{this.log("setServerCertificate ".concat(i?"success":"not supported by CDM"," (").concat(null==n?void 0:n.byteLength,') on "').concat(t,'"')),r(e)})).catch((e=>{i(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then((t=>this.updateKeySession(e,new Uint8Array(t)).catch((e=>{throw new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=(new DOMParser).parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let t;for(let n=0,r=i.length;n<r;n++){var a,s;t=i[n];const r=null==(a=t.querySelector("name"))?void 0:a.textContent,o=null==(s=t.querySelector("value"))?void 0:s.textContent;r&&o&&e.setRequestHeader(r,o)}}const o=r.querySelector("Challenge"),l=null==o?void 0:o.textContent;
2if(!l)throw new Error("Cannot find <Challenge> in key message");return EY(atob(l))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)})).catch((a=>{if(!n.decryptdata)throw a;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)})).then((n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||r}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise(((r,i)=>{const a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log("Sending license request to URL: ".concat(a));const s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(4===s.readyState)if(200===s.status){this._requestLicenseFailureCount=0;let t=s.response;this.log("License received ".concat(t instanceof ArrayBuffer?t.byteLength:t));const n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,s,a,e)}catch(o){this.error(o)}r(t)}else{const o=n.errorRetry,l=o?o.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||s.status>=400&&s.status<500)i(new rZ({type:jV.KEY_SYSTEM_ERROR,details:AV.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:s,response:{url:a,data:void 0,code:s.status,text:s.statusText}},"License Request XHR failed (".concat(a,"). Status: ").concat(s.status," (").concat(s.statusText,")")));else{const n=l-this._requestLicenseFailureCount+1;this.warn("Retrying license request, ".concat(n," attempts left")),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=s,this.setupLicenseXHR(s,a,e,t).then((t=>{let{xhr:n,licenseChallenge:r}=t;e.keySystem==NY.PLAYREADY&&(r=this.unpackPlayReadyKeyMessage(n,r)),n.send(r)}))}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,eZ(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(tZ(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,UY.clearKeyUriToKeyIdMap();const r=n.length;nZ.CDMCleanupPromise=Promise.all(n.map((e=>this.removeSession(e))).concat(null==t||null==(e=t.setMediaKeys(null))?void 0:e.catch((e=>{var t;this.log("Could not clear media keys: ".concat(e)),null==(t=this.hls)||t.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error("Could not clear media keys: ".concat(e))})})))).catch((e=>{var t;this.log("Could not close sessions and clear media keys: ".concat(e)),null==(t=this.hls)||t.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error("Could not close sessions and clear media keys: ".concat(e))})})).then((()=>{r&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,t){let{sessionKeys:n}=t;if(n&&this.config.emeEnabled&&!this.keyFormatPromise){const e=n.reduce(((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e)),[]);this.log("Selecting key-system from session-keys ".concat(e.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log("Remove licenses and keys and close session ".concat(t.sessionId)),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config,a=function(e){var t;return"persistent-license"===e.sessionType||!(null==(t=e.sessionTypes)||!t.some((e=>"persistent-license"===e)))}(i)?new Promise(((e,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),t.remove().then(e)})):Promise.resolve();return a.catch((e=>{var t;this.log("Could not remove session: ".concat(e)),null==(t=this.hls)||t.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error("Could not remove session: ".concat(e))})})).then((()=>t.close())).catch((e=>{var t;this.log("Could not close session: ".concat(e)),null==(t=this.hls)||t.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error("Could not close session: ".concat(e))})}))}}}nZ.CDMCleanupPromise=void 0;
2class rZ extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}function iZ(e,t){let n;try{n=new Event("addtrack")}catch(K6){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function aZ(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: ".concat(t))}catch(K6){XV.debug("[texttrack-utils]: ".concat(K6));try{const n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(r){XV.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(r))}}"disabled"===n&&(e.mode=n)}function sZ(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);"disabled"===n&&(e.mode=n)}function oZ(e,t,n,r){const i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0){const i=function(e,t,n){const r=[],i=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let r,i=0,a=n;for(;i<=a;)if(r=Math.floor((a+i)/2),t<e[r].startTime)a=r-1;else{if(!(t>e[r].startTime&&i<n))return r;i=r+1}return e[i].startTime-t<t-e[a].startTime?i:a}(e,t);if(i>-1)for(let a=i,s=e.length;a<s;a++){const i=e[a];if(i.startTime>=t&&i.endTime<=n)r.push(i);else if(i.startTime>n)return r}return r}(e.cues,t,n);for(let t=0;t<i.length;t++)r&&!r(i[t])||e.removeCue(i[t])}"disabled"===i&&(e.mode=i)}function lZ(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];"subtitles"!==r.kind&&"captions"!==r.kind||!r.label||t.push(e[n])}return t}function cZ(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}const dZ=.025;let uZ=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function hZ(e,t,n){return"".concat(e.identifier,"-").concat(n+1,"-").concat(cZ(t))}class pZ{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;if(e<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(t=this.assetList[e])?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return mZ(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-mZ(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=TV(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return mZ(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<dZ))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?uZ.Range:uZ.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||null!==this.assetListResponse}toString(){return'["'.concat((e=this).identifier,'" ').concat(e.cue.pre?"<pre>":e.cue.post?"<post>":"").concat(e.timelineStart.toFixed(2),"-").concat(e.resumeTime.toFixed(2),"]");var e}}function mZ(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<dZ)?t.start:t.start+t.duration}function fZ(e,t,n){const r=new self.URL(e,n);return"data:"!==r.protocol&&r.searchParams.set("_HLS_primary_id",t),r}function gZ(e,t){for(;null!=(n=e.assetList[++t])&&n.error;)var n;return t}function vZ(e){const t=e.timelineStart,n=e.duration||0;return'["'.concat(e.identifier,'" ').concat(t.toFixed(2),"-").concat((t+n).toFixed(2),"]")}class bZ{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
2s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls.trigger(NV.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let a=r.uri;try{a=fZ(a,t.primarySessionId).href}catch(o){}i.loadSource(a);const s=()=>{this.hasDetails=!0};i.once(NV.LEVEL_LOADED,s),i.once(NV.AUDIO_TRACK_LOADED,s),i.once(NV.SUBTITLE_TRACK_LOADED,s),i.on(NV.MEDIA_ATTACHING,((e,t)=>{let{media:n}=t;this.removeMediaListeners(),this.mediaAttached=n;this.interstitial.playoutLimit&&(n.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(NV.BUFFER_APPENDED,(()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,i.trigger(NV.BUFFERED_TO_END,void 0))})))}))}get appendInPlace(){var e;return(null==(e=this.interstitial)?void 0:e.appendInPlace)||!1}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=uY.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}reachedPlayout(e){const t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=uY.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const e=this.hls;if(this.hasDetails){e.stopLoad();const t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e;return"HlsAssetPlayer: ".concat(vZ(this.assetItem)," ").concat(null==(e=this.hls)?void 0:e.sessionId," ").concat(this.appendInPlace?"append-in-place":"")}}class yZ extends WV{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((e=>e.reset())),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce(((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n),0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.i
2dentifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(i=r[n])&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&"primary"!==t&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const e=n[r].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if((null==(n=t[r].event)?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const e=n[i];if(!e.error){const n=e.timelineStart;if(t===n||t>n&&t<n+(e.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=null==(e=this.items)||null==(t=e[this.length-1])?void 0:t.event;if(n){const e=n.assetList,t=e[e.length-1];if(t)return t.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,a=this.parseDateRanges(r,{url:n.url},t),s=Object.keys(r),o=i?i.filter((e=>!s.includes(e.identifier))):[];a.length&&a.sort(((e,t)=>{const n=e.cue.pre,r=e.cue.post,i=t.cue.pre,a=t.cue.post;if(n&&!i)return-1;if(i&&!n)return 1;if(r&&!a)return 1;if(a&&!r)return-1;if(!n&&!i&&!r&&!a){const n=e.startTime,r=t.startTime;if(n!==r)return n-r}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=a,o.forEach((e=>{this.removeEvent(e)})),this.updateSchedule(e,o)}updateSchedule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=this.events||[];
2if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e),a=t.length||(null==r?void 0:r.length)!==i.length||i.some(((e,t)=>Math.abs(e.playout.start-r[t].playout.start)>.005||Math.abs(e.playout.end-r[t].playout.end)>.005));a&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let a=0;a<i.length;a++){const s=i[a],o=e[s];if(o.isInterstitial){let e=this.eventMap[s];e?e.setDateRange(o):(e=new pZ(o,t),this.eventMap[s]=e,!1===n&&(e.appendInPlace=n)),r.push(e)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let a=0;if((e=e.filter((e=>!e.error&&!(e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let r=0,o=0;if(e.forEach(((t,s)=>{const l=t.cue.pre,c=t.cue.post,d=e[s-1]||null,u=t.appendInPlace,h=c?i:t.startOffset,p=t.duration,m=t.timelineOccupancy===uZ.Range?p:0,f=t.resumptionOffset,g=(null==d?void 0:d.startTime)===h,v=h+t.cumulativeDuration;let b=u?v+p:h+f;if(l||!c&&h<=0){const e=o;o+=m,t.timelineStart=v;const r=a;a+=p,n.push({event:t,start:v,end:b,playout:{start:r,end:a},integrated:{start:e,end:o}})}else{if(!(h<=i))return;{if(!g){const i=h-r;if(i>.033){const l=r,c=o;o+=i;const d=a;a+=i;const u={previousEvent:e[s-1]||null,nextEvent:t,start:l,end:l+i,playout:{start:d,end:a},integrated:{start:c,end:o}};n.push(u)}else i>0&&d&&(d.cumulativeDuration+=i,n[n.length-1].end=h)}c&&(b=v),t.timelineStart=v;const i=o;o+=m;const l=a;a+=p,n.push({event:t,start:v,end:b,playout:{start:l,end:a},integrated:{start:i,end:o}})}}const y=t.resumeTime;r=c||y>i?i:y})),r<i){var s;const e=r,t=o,l=i-r;o+=l;const c=a;a+=l,n.push({previousEvent:(null==(s=n[n.length-1])?void 0:s.event)||null,nextEvent:null,start:r,end:e+l,playout:{start:c,end:a},integrated:{start:t,end:o}})}this.setDurations(i,a,o)}else{const e=0;n.push({previousEvent:null,nextEvent:null,start:e,end:i,playout:{start:e,end:i},integrated:{start:e,end:i}}),this.setDurations(i,i,i)}return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,a=-1;e.forEach(((s,o)=>{const l=s.cue.pre,c=s.cue.post,d=l?0:c?r:s.startTime;this.updateAssetDurations(s);if(a===d?s.cumulativeDuration=i:(i=0,a=d),!c&&s.snapOptions.in&&(s.resumeAnchor=Eq(null,n.fragments,s.startOffset+s.resumptionOffset,0,0)||void 0),s.appendInPlace&&!s.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(s,t)||(s.appendInPlace=!1)}if(!s.appendInPlace&&o+1<e.length){e[o+1].startTime-e[o].resumeTime<.033&&(e[o+1].appendInPlace=!1,e[o+1].appendInPlace&&this.warn("Could not change append strategy for abutting event ".concat(s)))}const u=TV(s.resumeOffset)?s.resumeOffset:s.duration;i+=u}))}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;if(Math.abs(n-r)>dZ)return this.log('"'.concat(e.identifier,'" resumption ').concat(n," not aligned with estimated timeline end ").concat(r)),!1;if(!t)return this.log('"'.concat(e.identifier,'" resumption ').concat(n," can not be aligned with media (none selected)")),!1;return!Object.keys(t).some((r=>{const i=t[r].details,a=i.edge;if(n>=a)return this.log('"'.concat(e.identifier,'" resumption ').concat(n," past ").concat(r," playlist end ").concat(a)),!1;const s=Eq(null,i.fragments,n);if(!s)return this.log('"'.concat(e.identifier,'" resumption ').concat(n," does not align with any fragments in ").concat(r," playlist (").concat(i.fragStart,"-").concat(i.fragmentEnd,")")),!0;const o="audio"===r?.175:0;return!(Math.abs(s.start-n)<dZ+o||Math.abs(s.end-n)<dZ+o)&&(this.log('"'.concat(e.identifier,'" resumption ').concat(n," not aligned with ").concat(r," fragment bounds (").concat(s.start,"-").concat(s.end," sn: ").concat(s.sn," cc: ").concat(s.cc,")")),!0)}))}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach(((e,a)=>{const s=t+n;e.startOffset=n,e.timelineStart=s,r||(r=null===e.duration),i||(i=!!e.error);const o=e.error?0:e.duration||0;n+=o})),e.duration=r&&!i?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}
2function xZ(e){return"[".concat(e.event?'"'+e.event.identifier+'"':"primary",": ").concat(e.start.toFixed(2),"-").concat(e.end.toFixed(2),"]")}class SZ{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=fZ(n,this.hls.sessionId,e.baseUrl)}catch(d){const t=this.assignAssetListError(e,AV.ASSET_LIST_LOAD_ERROR,d,n);return void this.hls.trigger(NV.ERROR,t)}t&&"data:"!==r.protocol&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,a=new(0,i.loader)(i),s={responseType:"json",url:r.href},o=i.interstitialAssetListLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(t,n,r,i)=>{const a=t.data,s=null==a?void 0:a.ASSETS;if(Array.isArray(s))e.assetListResponse=a,this.hls.trigger(NV.ASSET_LIST_LOADED,{event:e,assetListResponse:a,networkDetails:i});else{const t=this.assignAssetListError(e,AV.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),r.url,n,i);this.hls.trigger(NV.ERROR,t)}},onError:(t,n,r,i)=>{const a=this.assignAssetListError(e,AV.ASSET_LIST_LOAD_ERROR,new Error("Error loading X-ASSET-LIST: HTTP status ".concat(t.code," ").concat(t.text," (").concat(n.url,")")),n.url,i,r);this.hls.trigger(NV.ERROR,a)},onTimeout:(t,n,r)=>{const i=this.assignAssetListError(e,AV.ASSET_LIST_LOAD_TIMEOUT,new Error("Timeout loading X-ASSET-LIST (".concat(n.url,")")),n.url,t,r);this.hls.trigger(NV.ERROR,i)}};return a.load(s,l,c),this.hls.trigger(NV.ASSET_LIST_LOADING,{event:e}),a}assignAssetListError(e,t,n,r,i,a){return e.error=n,{type:jV.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:a,stats:i}}}function kZ(e){null==e||e.play().catch((()=>{}))}class wZ{constructor(e){this.buffered=void 0;const t=(t,n,r)=>{if((n>>>=0)>r-1)throw new DOMException("Failed to execute '".concat(t,"' on 'TimeRanges': The index provided (").concat(n,") is greater than the maximum bound (").concat(r,")"));return e[n][t]};this.buffered={get length(){return e.length},end:n=>t("end",n,e.length),start:n=>t("start",n,e.length)}}}const TZ={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},CZ=e=>String.fromCharCode(TZ[e]||e),EZ=15,jZ=100,AZ={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},NZ={17:2,18:4,21:6,22:8,23:10,19:13,20:15},PZ={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},RZ={25:2,26:4,29:6,30:8,31:10,27:13,28:15},LZ=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class IZ{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"===typeof t?t():t;XV.log("".concat(this.time," [").concat(e,"] ").concat(n))}}}const DZ=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class OZ{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class MZ{constructor(){this.uchar=" ",this.penState=new OZ}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class _Z{constructor(e){this.chars=[],this.pos=0,this.currPenState=new OZ,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<jZ;t++)this.chars.push(new MZ);this.logger=e}equals(e){for(let t=0;t<jZ;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<jZ;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<jZ;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}
vendor: 10,311 bytes, line 2
2setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>jZ&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=jZ)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=CZ(e);this.pos>=jZ?this.logger.log(0,(()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t<jZ;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<jZ;n++){const r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e);this.chars[this.pos].setPenState(this.currPenState)}}class FZ{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<EZ;t++)this.rows.push(new _Z(e));this.logger=e}reset(){for(let e=0;e<EZ;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let n=0;n<EZ;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<EZ;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<EZ;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e);this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,(()=>"pacData = "+gq(e)));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let t=0;t<EZ;t++)this.rows[t].clear();const e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){const r=n.rows[e].cueStartTime,i=this.logger.time;if(null!==r&&null!==i&&r<i)for(let a=0;a<this.nrRollUpRows;a++)this.rows[t-this.nrRollUpRows+a+1].copy(n.rows[e+a])}}this.currRow=t;const n=this.rows[this.currRow];if(null!==e.indent){const t=e.indent,r=Math.max(t-1,0);n.setCursor(e.indent),e.color=n.chars[r].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,(()=>"bkgData = "+gq(e))),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<EZ;i++){const n=this.rows[i].getTextString();n&&(r=i+1,e?t.push("Row "+r+": '"+n+"'"):t.push(n.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class BZ{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new FZ(n),this.nonDisplayedMemory=new FZ(n),this.lastOutputScreen=new FZ(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(()=>"MODE="+e)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>t+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+gq(t)),this.writeScreen.setPen(t)}outputDataUpdate(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class UZ{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const r=this.logger=new IZ;this.channels=[null,new BZ(e,t,r),new BZ(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const e=127&t[n],r=127&t[n+1];let i=!1,a=null;if(0===e&&0===r)continue;this.logger.log(3,(()=>"["+DZ([t[n],t[n+1]])+"] -> ("+DZ([e,r])+")"));const s=this.cmdHistory;if(e>=16&&e<=31){if(GZ(e,r,s)){zZ(null,null,s),this.logger.log(3,(()=>"Repeated command ("+DZ([e,r])+") is dropped"));continue}zZ(e,r,this.cmdHistory),i=this.parseCmd(e,r),i||(i=this.parseMidrow(e,r)),i||(i=this.parsePAC(e,r)),i||(i=this.parseBackgroundAttributes(e,r))}else zZ(null,null,s);if(!i&&(a=this.parseChars(e,r),a)){const e=this.currentChannel;if(e&&e>0){this.channels[e].insertChars(a)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}i||a||this.logger.log(2,(()=>"Couldn't parse cleaned data "+DZ([e,r])+" orig: "+DZ([t[n],t[n+1]])))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const n=20===e||21===e||23===e?1:2,r=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?r.ccRCL():33===t?r.ccBS():34===t?r.ccAOF():35===t?r.ccAON():36===t?r.ccDER():37===t?r.ccRU(2):38===t?r.ccRU(3):39===t?r.ccRU(4):40===t?r.ccFON():41===t?r.ccRDC():42===t?r.ccTR():43===t?r.ccRTD():44===t?r.ccEDM():45===t?r.ccCR():46===t?r.ccENM():47===t&&r.ccEOC():r.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+DZ([e,t])+")")),!0)}return!1}parsePAC(e,t){let n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const r=e<=23?1:2;n=t>=64&&t<=95?1===r?AZ[e]:PZ[e]:1===r?NZ[e]:RZ[e];const i=this.channels[r];return!!i&&(i.setPAC(this.interpretPAC(n,t)),this.currentChannel=r,!0)}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1===(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let e;e=17===i?t+80:18===i?t+112:t+144,this.logger.log(2,(()=>"Special char '"+CZ(e)+"' in channel "+n)),r=[e]}else e>=32&&e<=127&&(r=0===t?[e]:[e,t]);return r&&this.logger.log(3,(()=>"Char codes = "+DZ(r).join(","))),r}
vendor: 13,507 bytes, line 2
2parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let n;const r={};16===e||24===e?(n=Math.floor((t-32)/2),r.background=LZ[n],t%2===1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0));const i=e<=23?1:2;return this.channels[i].setBkgData(r),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}zZ(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function zZ(e,t,n){n.a=e,n.b=t}function GZ(e,t,n){return n.a===e&&n.b===t}var WZ=function(){if(null!=AY&&AY.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!==typeof t)return!1;if(!Array.isArray(e))return!1;const n=t.toLowerCase();return!!~e.indexOf(n)&&n}function r(e){return n(t,e)}function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=1;for(;i<arguments.length;i++){const t=arguments[i];for(const n in t)e[n]=t[n]}return e}function a(t,a,s){const o=this,l={enumerable:!0};o.hasBeenReset=!1;let c="",d=!1,u=t,h=a,p=s,m=null,f="",g=!0,v="auto",b="start",y=50,x="middle",S=50,k="middle";Object.defineProperty(o,"id",i({},l,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(o,"pauseOnExit",i({},l,{get:function(){return d},set:function(e){d=!!e}})),Object.defineProperty(o,"startTime",i({},l,{get:function(){return u},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");u=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",i({},l,{get:function(){return h},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",i({},l,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},l,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},l,{get:function(){return f},set:function(t){const r=function(t){return n(e,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");f=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},l,{get:function(){return v},set:function(e){if("number"!==typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",i({},l,{get:function(){return b},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},l,{get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",i({},l,{get:function(){return x},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");x=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},l,{get:function(){return S},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");S=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},l,{get:function(){return k},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");k=t,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();class HZ{decode(e,t){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function VZ(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(r||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class KZ{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function qZ(e,t,n,r){const i=r?e.split(r):[e];for(const a in i){if("string"!==typeof i[a])continue;const e=i[a].split(n);if(2!==e.length)continue;t(e[0],e[1])}}const YZ=new WZ(0,0,""),XZ="middle"===YZ.align?"middle":"center";function JZ(e,t,n){const r=e;function i(){const t=VZ(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.slice(3),a(),t.endTime=i(),a(),function(e,t){const r=new KZ;qZ(e,(function(e,t){let i;switch(e){case"region":for(let i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",XZ,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",XZ,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",XZ,"end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");let i=r.get("line","auto");"auto"===i&&-1===YZ.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",XZ);let a=r.get("position","auto");"auto"===a&&50===YZ.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function QZ(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class ZZ{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new HZ,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function n(){let e=t.buffer,n=0;for(e=QZ(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;const r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}function r(e){qZ(e,(function(e,t){}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;e=n();const r=e.match(/^(\xef\xbb\xbf)?WEBVTT([ \t].*)?$/);if(null==r||!r[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let i=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(i?i=!1:e=n(),t.state){case"HEADER":/:/.test(e)?r(e):e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new WZ(0,0,""),t.state="CUE",-1===e.indexOf("--\x3e")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{JZ(e,t.cue,t.regionList)}catch(Ps){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const n=-1!==e.indexOf("--\x3e");if(!e||n&&(i=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}}catch(Ps){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(Ps){e.onparsingerror&&e.onparsingerror(Ps)}return e.onflush&&e.onflush(),this}}const $Z=/\r\n|\n\r|\n|\r/g,e$=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.slice(n,n+t.length)===t};function t$(e,t,n){return cZ(e.toString())+cZ(t.toString())+cZ(n)}function n$(e,t,n,r,i,a,s){const o=new ZZ,l=ZV(new Uint8Array(e)).trim().replace($Z,"\n").split("\n"),c=[],d=t?function(e){return HJ(e,9e4,1/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}(t.baseTime,t.timescale):0;let u,h="00:00.000",p=0,m=0,f=!0;o.oncue=function(e){const a=n[r];let s=n.ccOffset;const o=(p-d)/9e4;if(null!=a&&a.new&&(void 0!==m?s=n.ccOffset=a.start:function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new)return e.ccOffset=e.presentationOffset=r.start,void(r.new=!1);for(;null!=(a=i)&&a.new;){var a;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n}(n,r,o)),o){if(!t)return void(u=new Error("Missing initPTS for VTT MPEGTS"));s=o-n.presentationOffset}const l=e.endTime-e.startTime,h=QJ(9e4*(e.startTime+s-m),9e4*i)/9e4;e.startTime=Math.max(h,0),e.endTime=Math.max(h+l,0);const f=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(f)),e.id||(e.id=t$(e.startTime,e.endTime,f)),e.endTime>0&&c.push(e)},o.onparsingerror=function(e){u=e},o.onflush=function(){u?s(u):a(c)},l.forEach((e=>{if(f){if(e$(e,"X-TIMESTAMP-MAP=")){f=!1,e.slice(16).split(",").forEach((e=>{e$(e,"LOCAL:")?h=e.slice(6):e$(e,"MPEGTS:")&&(p=parseInt(e.slice(7)))}));try{m=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!TV(t)||!TV(n)||!TV(r)||!TV(i))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(e));return t+=1e3*n,t+=6e4*r,t+=36e5*i,t}(h)/1e3}catch(t){u=t}return}""===e&&(f=!1)}o.parse(e+"\n")})),o.flush()}const r$="stpp.ttml.im1t",i$=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,a$=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,s$={left:"start",center:"center",right:"end",start:"start",end:"end"};function o$(e,t,n,r){const i=kK(new Uint8Array(e),["mdat"]);if(0===i.length)return void r(new Error("Could not parse IMSC1 mdat"));const a=i.map((e=>ZV(e))),s=function(e,t){return HJ(e,t,1/(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1),arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(t.baseTime,1,t.timescale);try{a.forEach((e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(i).reduce(((e,t)=>(e[t]=r.getAttribute("ttp:".concat(t))||i[t],e)),{}),s="preserve"!==r.getAttribute("xml:space"),o=c$(l$(r,"styling","style")),l=c$(l$(r,"layout","region")),c=l$(r,"body","[begin]");return[].map.call(c,(e=>{const n=d$(e,s);if(!n||!e.hasAttribute("begin"))return null;const r=p$(e.getAttribute("begin"),a),i=p$(e.getAttribute("dur"),a);let c=p$(e.getAttribute("end"),a);if(null===r)throw h$(e);if(null===c){if(null===i)throw h$(e);c=r+i}const d=new WZ(r-t,c-t,n);d.id=t$(d.startTime,d.endTime,d.text);const u=function(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;s&&n.hasOwnProperty(s)&&(i=n[s]);return a.reduce(((n,a)=>{const s=u$(t,r,a)||u$(e,r,a)||u$(i,r,a);return s&&(n[a]=s),n}),{})}(l[e.getAttribute("region")],o[e.getAttribute("style")],o),{textAlign:h}=u;if(h){const e=s$[h];e&&(d.lineAlign=e),d.align=h}return UV(d,u),d})).filter((e=>null!==e))}(e,s))))}catch(o){r(o)}}function l$(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function c$(e){return e.reduce(((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function d$(e,t){return[].slice.call(e.childNodes).reduce(((e,n,r)=>{var i;return"br"===n.nodeName&&r?e+"\n":null!=(i=n.childNodes)&&i.length?d$(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}function u$(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function h$(e){return new Error("Could not parse ttml timestamp ".concat(e))}function p$(e,t){if(!e)return null;let n=VZ(e);return null===n&&(i$.test(e)?n=function(e,t){const n=i$.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+r/t.frameRate}(e,t):a$.test(e)&&(n=function(e,t){const n=a$.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return 1e3*r;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}class m${constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function f$(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function g$(e,t){return!!e&&e.kind===f$(t)&&pQ(t,e)}
2const v$=/\s/,b$={newCue(e,t,n,r){const i=[];let a,s,o,l,c;const d=self.VTTCue||self.TextTrackCue;for(let h=0;h<r.rows.length;h++)if(a=r.rows[h],o=!0,l=0,c="",!a.isEmpty()){var u;for(let e=0;e<a.chars.length;e++)v$.test(a.chars[e].uchar)&&o?l++:(c+=a.chars[e].uchar,o=!1);a.cueStartTime=t,t===n&&(n+=1e-4),l>=16?l--:l++;const r=QZ(c.trim()),p=t$(t,n,r);null!=e&&null!=(u=e.cues)&&u.getCueById(p)||(s=new d(t,n,r),s.id=p,s.line=h+1,s.align="left",s.position=10+Math.min(80,10*Math.floor(8*l/32)),i.push(s))}return e&&i.length&&(i.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),i.forEach((t=>aZ(e,t)))),i}};const y$=/(\d+)-(\d+)\/(\d+)/;class x${constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||S$,this.controller=new self.AbortController,this.stats=new aK}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=function(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(UV({},e.headers))};e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return n}(e,this.controller.signal),a="arraybuffer"===e.responseType,s=a?"byteLength":"length",{maxTimeToFirstByteMs:o,maxLoadTimeMs:l}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=o&&TV(o)?o:l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))}),t.timeout);(aQ(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var i;this.response=this.loader=n;const s=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))}),l-(s-r.loading.start)),!n.ok){const{status:e,statusText:t}=n;throw new k$(t||"fetch, bad network response",e,n)}r.loading.first=s,r.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=y$.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(TV(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||r.total;const o=null==(i=this.callbacks)?void 0:i.onProgress;return o&&TV(t.highWaterMark)?this.loadProgressively(n,r,e,t.highWaterMark,o):a?n.arrayBuffer():"json"===e.responseType?n.json():n.text()})).then((n=>{var i,a;const o=this.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const l=n[s];l&&(r.loaded=r.total=l);const c={url:o.url,data:n,code:o.status},d=null==(i=this.callbacks)?void 0:i.onProgress;d&&!TV(t.highWaterMark)&&d(r,e,n,o),null==(a=this.callbacks)||a.onSuccess(c,r,e,o)})).catch((t=>{var n;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const i=t&&t.code||0,a=t?t.message:null;null==(n=this.callbacks)||n.onError({code:i,text:a},e,t?t.details:null,r)}))}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0;const a=new OX,s=e.body.getReader(),o=()=>s.read().then((s=>{if(s.done)return a.dataLength&&i(t,n,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=s.value,c=l.length;return t.loaded+=c,c<r||a.dataLength?(a.push(l),a.dataLength>=r&&i(t,n,a.flush().buffer,e)):i(t,n,l.buffer,e),o()})).catch((()=>Promise.reject()));return o()}}
vendor: 16,507 bytes, line 2
2function S$(e,t){return new self.Request(e.url,t)}class k$ extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const w$=/^age:\s*[\d.]+\s*$/im;class T${constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new aK,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return i(n,t.url)})).catch((e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),i(n,t.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)})).catch((e=>{var i;null==(i=this.callbacks)||i.onError({code:n.status,text:e.message},t,n,r)})):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const s in r)e.setRequestHeader(s,r[s]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&TV(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const r=t.status,l="text"===t.responseType?t.responseText:null;if(r>=200&&r<300){const i=null!=l?l:t.response;if(null!=i){var a,s;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===t.responseType?i.byteLength:i.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(a=this.callbacks)?void 0:a.onProgress;l&&l(n,e,i,t);const c={url:t.responseURL,data:i,code:r};return void(null==(s=this.callbacks)||s.onSuccess(c,n,e,t))}}const c=i.loadPolicy.errorRetry;var o;if(Dq(c,n.retry,!1,{url:e.url,data:void 0,code:r}))this.retry(c);else XV.error("".concat(r," while loading ").concat(e.url)),null==(o=this.callbacks)||o.onError({code:r,text:t.statusText},e,t,n)}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(Dq(e,this.stats.retry,!0))this.retry(e);else{var t;XV.warn("timeout while loading ".concat(null==(t=this.context)?void 0:t.url));const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=Lq(e,n.retry),n.retry++,XV.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(null==t?void 0:t.url,", retrying ").concat(n.retry,"/").concat(e.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&w$.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp("^".concat(e,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const C$=GV(GV({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:T$,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends WV{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;const{fragCurrent:n,partCurrent:r,hls:i}=this,{autoLevelEnabled:a,media:s}=i;if(!n||!s)return;const o=performance.now(),l=r?r.stats:n.stats,c=r?r.duration:n.duration,d=o-l.loading.start,u=i.minAutoLevel,h=n.level,p=this._nextAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||h<=u)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const m=p>-1&&p!==h,f=!!e||m;if(!f&&(s.paused||!s.playbackRate||!s.readyState))return;const g=i.mainForwardBufferInfo;if(!f&&null===g)return;const v=this.bwEstimator.getEstimateTTFB(),b=Math.abs(s.playbackRate);if(d<=Math.max(v,c/(2*b)*1e3))return;const y=g?g.len/b:0,x=l.loading.first?l.loading.first-l.loading.start:-1,S=l.loaded&&x>-1,k=this.getBwEstimate(),w=i.levels,T=w[h],C=Math.max(l.loaded,Math.round(c*(n.bitrate||T.averageBitrate)/8));let E=S?d-x:d;E<1&&S&&(E=Math.min(d,8*l.loaded/k));const j=S?1e3*l.loaded/E:0,A=v/1e3,N=j?(C-l.loaded)/j:8*C/k+A;if(N<=y)return;const P=j?8*j:k,R=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),L=this.hls.config.abrBandWidthUpFactor;let I,D=Number.POSITIVE_INFINITY;for(I=h-1;I>u;I--){const e=w[I].maxBitrate,t=!w[I].details||R;if(D=this.getTimeToLoadFrag(A,P,c*e,t),D<Math.min(y,c+A))break}if(D>=N)return;if(D>10*c)return;S?this.bwEstimator.sample(d-Math.min(v,x),l.loaded):this.bwEstimator.sampleTTFB(d);const O=w[I].maxBitrate;this.getBwEstimate()*L>O&&this.resetEstimator(O);const M=this.findBestLevel(O,u,I,0,y,1,1);M>-1&&(I=M),this.warn("Fragment ".concat(n.sn).concat(r?" part "+r.index:""," of level ").concat(h," is loading too slowly;\n Fragment duration: ").concat(n.duration.toFixed(3),"\n Time to underbuffer: ").concat(y.toFixed(3)," s\n Estimated load time for current fragment: ").concat(N.toFixed(3)," s\n Estimated load time for down switch fragment: ").concat(D.toFixed(3)," s\n TTFB estimate: ").concat(0|x," ms\n Current BW estimate: ").concat(TV(k)?0|k:"Unknown"," bps\n New BW estimate: ").concat(0|this.getBwEstimate()," bps\n Switching to level ").concat(I," @ ").concat(0|O," bps")),i.nextLoadLevel=i.nextAutoLevel=I,this.clearTimer();const _=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===I&&I>0){const e=this.getStarvationDelay();if(this.warn("Aborting inflight request ".concat(I>0?"and switching down":"","\n Fragment duration: ").concat(n.duration.toFixed(3)," s\n Time to underbuffer: ").concat(e.toFixed(3)," s")),n.abortRequests(),this.fragCurrent=this.partCurrent=null,I>u){let t=this.findBestLevel(this.hls.levels[u].bitrate,u,I,0,e,1,1);-1===t&&(t=u),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};m||N>2*D?_():this.timer=self.setInterval(_,1e3*D),i.trigger(NV.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log("setting initial bwe to ".concat(e)),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new FV(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.FRAG_LOADING,this.onFragLoading,this),e.on(NV.FRAG_LOADED,this.onFragLoaded,this),e.on(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.on(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.on(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(NV.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.FRAG_LOADING,this.onFragLoading,this),e.off(NV.FRAG_LOADED,this.onFragLoaded,this),e.off(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.off(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.off(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(NV.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(NV.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){var r;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(r=t.part)?r:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case AV.BUFFER_ADD_CODEC_ERROR:case AV.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case AV.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:r}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){const t=performance.now(),n=r?r.stats:e.stats,i=t-n.loading.start,a=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&a>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(i-Math.min(e,a),n.loaded)}else this.bwEstimator.sampleTTFB(i)}break}}}getTimeToLoadFrag(e,t,n,r){return e+n/t+(r?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;TV(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,t){let{frag:n,part:r}=t;const i=r?r.stats:n.stats;if(n.type===DV&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=r?r.duration:n.duration,t=this.hls.levels[n.level],a=(t.loaded?t.loaded.bytes:0)+i.loaded,s=(t.loaded?t.loaded.duration:0)+e;t.loaded={bytes:a,duration:s},t.realBitrate=Math.round(8*a/s)}if(n.bitrateTest){const e={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(NV.FRAG_BUFFERED,e),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(i.aborted)return;if(this.ignoreFragment(n))return;const a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==DV||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const a=this.hls.firstLevel,s=Math.min(Math.max(a,t),e);return this.warn("Could not find best starting auto level. Defaulting to first in playlist ".concat(a," clamped to ").concat(s)),s}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(-1!==e&&(!t||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const r=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,r)&&t[e].loadError<=t[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r}getAutoLevelKey(){return"".concat(this.getBwEstimate(),"_").concat(this.getStarvationDelay().toFixed(2))}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:a}=n,s=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let c=i.abrBandWidthFactor,d=i.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(o,a,r,l,0,c,d);if(e>=0)return this.rebufferNotice=-1,e}let u=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){u=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-e,this.info("bitrate test took ".concat(Math.round(1e3*e),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*u)," ms")),c=d=1}}const h=this.findBestLevel(o,a,r,l,u,c,d);if(this.rebufferNotice!==h&&(this.rebufferNotice=h,this.info("".concat(l?"rebuffering expected":"buffer is empty",", optimal quality level ").concat(h))),h>-1)return h;const p=n.levels[a],m=n.loadLevelObj;return m&&(null==p?void 0:p.bitrate)<m.bitrate?a:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,a,s){var o;const l=r+i,c=this.lastLoadedFragLevel,d=-1===c?this.hls.firstLevel:c,{fragCurrent:u,partCurrent:h}=this,{levels:p,allAudioTracks:m,loadLevel:f,config:g}=this.hls;if(1===p.length)return 0;const v=p[d],b=!(null==(o=this.hls.latestLevelDetails)||!o.live),y=-1===f||-1===c;let x,S="SDR",k=(null==v?void 0:v.frameRate)||0;const{audioPreference:w,videoPreference:T}=g,C=this.audioTracksByGroup||(this.audioTracksByGroup=bq(m));let E=-1;if(y){if(-1!==this.firstSelection)return this.firstSelection;const r=this.codecTiers||(this.codecTiers=function(e,t,n,r){return e.slice(n,r+1).reduce(((e,n,r)=>{if(!n.codecSet)return e;const i=n.audioGroups;let a=e[n.codecSet];a||(e[n.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:r,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}
2),a.minBitrate=Math.min(a.minBitrate,n.bitrate);const s=Math.min(n.height,n.width);return a.minHeight=Math.min(a.minHeight,s),a.minFramerate=Math.min(a.minFramerate,n.frameRate),a.minIndex=Math.min(a.minIndex,r),a.maxScore=Math.max(a.maxScore,n.score),a.fragmentError+=n.fragmentError,a.videoRanges[n.videoRange]=(a.videoRanges[n.videoRange]||0)+1,i&&i.forEach((e=>{if(!e)return;const n=t.groups[e];n&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach((e=>{a.channels[e]=(a.channels[e]||0)+n.channels[e]})))})),e}),{})}(p,C,t,n)),i=function(e,t,n,r,i){const a=Object.keys(e),s=null==r?void 0:r.channels,o=null==r?void 0:r.audioCodec,l=null==i?void 0:i.videoCodec,c=s&&2===parseInt(s);let d=!1,u=!1,h=1/0,p=1/0,m=1/0,f=1/0,g=0,v=[];const{preferHDR:b,allowedVideoRanges:y}=fq(t,i);for(let w=a.length;w--;){const t=e[a[w]];d||(d=t.channels[2]>0),h=Math.min(h,t.minHeight),p=Math.min(p,t.minFramerate),m=Math.min(m,t.minBitrate),y.filter((e=>t.videoRanges[e]>0)).length>0&&(u=!0)}h=TV(h)?h:0,p=TV(p)?p:0;const x=Math.max(1080,h),S=Math.max(30,p);m=TV(m)?m:n,n=Math.max(m,n),u||(t=void 0);const k=a.length>1;return{codecSet:a.reduce(((t,r)=>{const i=e[r];if(r===t)return t;if(v=u?y.filter((e=>i.videoRanges[e]>0)):[],k){if(i.minBitrate>n)return vq(r,"min bitrate of ".concat(i.minBitrate," > current estimate of ").concat(n)),t;if(!i.hasDefaultAudio)return vq(r,"no renditions with default or auto-select sound found"),t;if(o&&r.indexOf(o.substring(0,4))%5!==0)return vq(r,'audio codec preference "'.concat(o,'" not found')),t;if(s&&!c){if(!i.channels[s])return vq(r,"no renditions with ".concat(s," channel sound found (channels options: ").concat(Object.keys(i.channels),")")),t}else if((!o||c)&&d&&0===i.channels[2])return vq(r,"no renditions with stereo sound found"),t;if(i.minHeight>x)return vq(r,"min resolution of ".concat(i.minHeight," > maximum of ").concat(x)),t;if(i.minFramerate>S)return vq(r,"min framerate of ".concat(i.minFramerate," > maximum of ").concat(S)),t;if(!v.some((e=>i.videoRanges[e]>0)))return vq(r,"no variants with VIDEO-RANGE of ".concat(gq(v)," found")),t;if(l&&r.indexOf(l.substring(0,4))%5!==0)return vq(r,'video codec preference "'.concat(l,'" not found')),t;if(i.maxScore<g)return vq(r,"max score of ".concat(i.maxScore," < selected max of ").concat(g)),t}return t&&(VK(r)>=VK(t)||i.fragmentError>e[t].fragmentError)?t:(f=i.minIndex,g=i.maxScore,r)}),void 0),videoRanges:v,preferHDR:b,minFramerate:p,minBitrate:m,minIndex:f}}(r,S,e,w,T),{codecSet:a,videoRanges:s,minFramerate:o,minBitrate:l,minIndex:c,preferHDR:d}=i;E=c,x=a,S=d?s[s.length-1]:s[0],k=o,e=Math.max(e,l),this.log("picked start tier ".concat(gq(i)))}else x=null==v?void 0:v.codecSet,S=null==v?void 0:v.videoRange;const j=h?h.duration:u?u.duration:0,A=this.bwEstimator.getEstimateTTFB()/1e3,N=[];for(let L=n;L>=t;L--){var P,R;const t=p[L],o=L>d;if(!t)continue;if(g.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const n=navigator.mediaCapabilities;"function"===typeof(null==n?void 0:n.decodingInfo)&&nq(t,C,S,k,e,w)?(t.supportedPromise=rq(t,C,n,this.supportedCache),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,r=n.indexOf(t);e.error?this.warn('MediaCapabilities decodingInfo error: "'.concat(e.error,'" for level ').concat(r," ").concat(gq(e))):e.supported?e.decodingInfoResults.some((e=>!1===e.smooth||!1===e.powerEfficient))&&this.log("MediaCapabilities decodingInfo for level ".concat(r," not smooth or powerEfficient: ").concat(gq(e))):(this.warn("Unsupported MediaCapabilities decodingInfo result for level ".concat(r," ").concat(gq(e))),r>-1&&n.length>1&&(this.log("Removing unsupported level ".concat(r)),this.hls.removeLevel(r),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):t.supportedResult=eq}if((x&&t.codecSet!==x||S&&t.videoRange!==S||o&&k>t.frameRate||!o&&k>0&&k<t.frameRate||null!=(P=t.supportedResult)&&null!=(R=P.decodingInfoResults)&&R.some((e=>!1===e.smooth)))&&(!y||L!==E)){N.push(L);continue}const u=t.details,m=(h?null==u?void 0:u.partTarget:null==u?void 0:u.averagetargetduration)||j;let v;v=o?s*e:a*e;const T=j&&r>=2*j&&0===i?t.averageBitrate:t.maxBitrate,I=this.getTimeToLoadFrag(A,v,T*m,void 0===u);if(v>=T&&(L===c||0===t.loadError&&0===t.fragmentError)&&(I<=A||!TV(I)||b&&!this.bitrateTestDelay||I<l)){const e=this.forcedAutoLevel;return L===f||-1!==e&&e===f||(N.length&&this.trace("Skipped level(s) ".concat(N.join(",")," of ").concat(n,' max with CODECS and VIDEO-RANGE:"').concat(p[N[0]].codecs,'" ').concat(p[N[0]].videoRange,'; not compatible with "').concat(x,'" ').concat(S)),this.info("switch candidate:".concat(d,"->").concat(L," adjustedbw(").concat(Math.round(v),")-bitrate=").concat(Math.round(v-T)," ttfb:").concat(A.toFixed(1)," avgDuration:").concat(m.toFixed(1)," maxFetchDuration:").concat(l.toFixed(1)," fetchDuration:").concat(I.toFixed(1)," firstSelection:").concat(y," codecSet:").concat(t.codecSet," videoRange:").concat(t.videoRange," hls.loadLevel:").concat(f))),y&&(this.firstSelection=L),L}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}},bufferController:class extends WV{constructor(e,t){var n;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.hls.pauseBuffer
vendor: 4,317 bytes, line 2
2ing()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(NV.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error("Media element src was set while attaching MediaSource (".concat(t," > ").concat(e,")"))},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=JV(e.config.preferManagedMediaSource),"undefined"!==typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.BUFFER_RESET,this.onBufferReset,this),e.on(NV.BUFFER_APPENDING,this.onBufferAppending,this),e.on(NV.BUFFER_CODECS,this.onBufferCodecs,this),e.on(NV.BUFFER_EOS,this.onBufferEos,this),e.on(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(NV.FRAG_PARSED,this.onFragParsed,this),e.on(NV.FRAG_CHANGED,this.onFragChanged,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.BUFFER_RESET,this.onBufferReset,this),e.off(NV.BUFFER_APPENDING,this.onBufferAppending,this),e.off(NV.BUFFER_CODECS,this.onBufferCodecs,this),e.off(NV.BUFFER_EOS,this.onBufferEos,this),e.off(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(NV.FRAG_PARSED,this.onFragParsed,this),e.off(NV.FRAG_CHANGED,this.onFragChanged,this),e.off(NV.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn("Transfering MediaSource with".concat(t?" operations in queue":"").concat(e?" updating SourceBuffer(s)":""," ").concat(this.operationQueue)),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?UV(n,r.tracks):this.sourceBuffers.forEach((e=>{const[t]=e;t&&(n[t]=UV({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null})),{media:e,mediaSource:t,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log("".concat(r," bufferCodec event(s) expected.")),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=JV(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const a=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(a),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;
2n.disableRemotePlayback=n.disableRemotePlayback||t&&a instanceof t,bQ(n),function(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(i){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log("".concat((null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"," media source: ").concat(null==(n=e.constructor)?void 0:n.name)),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,a=i?i.length:0,s=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&a){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log("attachTransferred: (bufferCodecEventsTotal ".concat(this.bufferCodecEventsTotal,")\nrequired tracks: ").concat(gq(n,((e,t)=>"initSegment"===e?void 0:t)),";\ntransfer tracks: ").concat(gq(r,((e,t)=>"initSegment"===e?void 0:t)),"}")),!QV(r,n)){t.mediaSource=null,t.tracks=void 0;const i=e.currentTime,a=this.details,s=Math.max(i,(null==a?void 0:a.fragments[0].start)||0);return s-i>1?void this.log("attachTransferred: waiting for playback to reach new tracks start time ".concat(i," -> ").concat(s)):(this.warn('attachTransferred: resetting MediaSource for incompatible tracks ("'.concat(Object.keys(r),'"->"').concat(Object.keys(n),'") start time: ').concat(s," currentTime: ").concat(i)),this.onMediaDetaching(NV.MEDIA_DETACHING,{}),this.onMediaAttaching(NV.MEDIA_ATTACHING,t),void(e.currentTime=s))}this.transferData=void 0,i.forEach((e=>{const t=e,n=r[t];if(n){const e=n.buffer;if(e){const r=this.fragmentTracker,i=n.id;if(r.hasFragments(i)||r.hasParts(i)){const n=uY.getBuffered(e);r.detectEvictedFragments(t,n,i,null,!0)}const a=yQ(t),s=[t,e];this.sourceBuffers[a]=s,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}})),s(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),s()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:a}=this;if(i){if(this.log("media source ".concat(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((e=>{let[t]=e;t&&this.removeBuffer(t)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===i.readyState;try{const t=i.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),i.removeSourceBuffer(t[n]);e&&i.endOfStream()}catch(K6){this.warn("onMediaDetaching: ".concat(K6.message," while calling endOfStream"))}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(r.removeAttribute("src"),this.appendSource&&bQ(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(NV.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach((e=>{let[t]=e;t&&this.resetBuffer(t)})),this.initTracks()}resetBuffer(e){var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(K6){this.warn("onBufferReset ".concat(e),K6)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[yQ(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new mQ(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log('BUFFER_CODECS: "'.concat(r,'" (current SB count ').concat(this.sourceBufferCount,")"));const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),a=!i&&this.sourceBufferCount&&this.media&&r.some((e=>!n[e]));i||a?this.warn('Unsupported transition between "'.concat(Object.keys(n),'" and "').concat(r,'" SourceBuffers')):(r.forEach((e=>{var r,i,a;const s=t[e],{id:o,codec:l,levelCodec:c,container:d,metadata:u,supplemental:h}=s;let p=n[e];const m=null==(r=this.transferData)||null==(i=r.tracks)?void 0:i[e],f=null!=m&&m.buffer?m:p,g=(null==f?void 0:f.pendingCodec)||
vendor: 5,028 bytes, line 2
2(null==f?void 0:f.codec),v=null==f?void 0:f.levelCodec;p||(p=n[e]={buffer:void 0,listeners:[],codec:l,supplemental:h,container:d,levelCodec:c,metadata:u,id:o});const b=XK(g,v),y=null==b?void 0:b.replace(fQ,"$1");let x=XK(l,c);const S=null==(a=x)?void 0:a.replace(fQ,"$1");x&&b&&y!==S&&("audio"===e.slice(0,5)&&(x=YK(x,this.appendSource)),this.log("switching codec ".concat(g," to ").concat(x)),x!==(p.pendingCodec||p.codec)&&(p.pendingCodec=x),p.container=d,this.appendChangeType(e,d,x))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e}),{})}appendChangeType(e,t,n){const r="".concat(t,";codecs=").concat(n),i={label:"change-type=".concat(r),execute:()=>{const i=this.tracks[e];if(i){const a=i.buffer;null!=a&&a.changeType&&(this.log("changing ".concat(e," sourceBuffer type to ").concat(r)),a.changeType(r),i.codec=n,i.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn("Failed to change ".concat(e," SourceBuffer type"),t)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,DV))?void 0:t.gap))return;const i={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>r||null!=t&&t.buffer&&uY.isBuffered(t.buffer,r)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(r,DV))?void 0:e.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:i,frag:e},this.append(i,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:a,frag:s,part:o,chunkMeta:l,offset:c}=t,d=l.buffering[i],{sn:u,cc:h}=s,p=self.performance.now();d.start=p;const m=s.stats.buffering,f=o?o.stats.buffering:null;0===m.start&&(m.start=p),f&&0===f.start&&(f.start=p);const g=n.audio;let v=!1;"audio"===i&&"audio/mpeg"===(null==g?void 0:g.container)&&(v=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);const b=n.video,y=null==b?void 0:b.buffer;if(y&&"initSegment"!==u){const e=o||s,t=this.blockedAudioAppend;if("audio"!==i||"main"===a||this.blockedAudioAppend){if("video"===i){const n=e.end;if(t){const e=t.frag.start;(n>e||n<this.lastVideoAppendEnd||uY.isBuffered(y,e))&&this.unblockAudio()}this.lastVideoAppendEnd=n}}else{const t=e.start+.05*e.duration,n=y.buffered,r=this.currentOp("video");n.length||r?!r&&!uY.isBuffered(y,t)&&this.lastVideoAppendEnd<t&&this.blockAudio(e):this.blockAudio(e)}}const x=(o||s).start,S={label:"append-".concat(i),execute:()=>{var e;d.executeStart=self.performance.now();const t=null==(e=this.tracks[i])?void 0:e.buffer;t&&(v?this.updateTimestampOffset(t,x,.1,i,u,h):void 0!==c&&TV(c)&&this.updateTimestampOffset(t,c,1e-6,i,u,h)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();d.executeEnd=d.end=e,0===m.first&&(m.first=e),f&&0===f.first&&(f.first=e);const t={};this.sourceBuffers.forEach((e=>{let[n,r]=e;n&&(t[n]=uY.getBuffered(r))})),this.appendErrors[i]=0,"audio"===i||"video"===i?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(NV.BUFFER_APPENDED,{type:i,frag:s,part:o,chunkMeta:l,parent:s.type,timeRanges:t})},onError:e=>{var t;const n={type:jV.MEDIA_ERROR,parent:s.type,details:AV.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:s,part:o,chunkMeta:l,error:e,err:e,fatal:!1},r=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR||"QuotaExceededError"==e.name||"quota"in e)n.details=AV.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!r)n.errorAction=Gq(!0);else if(e.name===gQ&&0===this.sourceBufferCount)n.errorAction=Gq(!0);else{const e=++this.appendErrors[i];this.warn("Failed ".concat(e,"/").concat(this.hls.config.appendErrorMaxRetry,' times to append segment in "').concat(i,'" sourceBuffer (').concat(r||"no media error",")")),(e>=this.hls.config.appendErrorMaxRetry||r)&&(n.fatal=!0)}this.hls.trigger(NV.ERROR,n)}};this.append(S,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log('queuing "'.concat(e,'" remove ').concat(t,"-").concat(n)),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(NV.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn("Failed to remove ".concat(t,"-").concat(n,' from "').concat(e,'" SourceBuffer'),r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEac
2h((e=>{let[t]=e;t&&this.append(this.getFlushOp(t,r,i),t)}))}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],a=r?r.elementaryStreams:n.elementaryStreams;a[lK]?i.push("audiovideo"):(a[sK]&&i.push("audio"),a[oK]&&i.push("video"));0===i.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(n.type," level: ").concat(n.level," sn: ").concat(n.sn)),this.blockBuffers((()=>{const e=self.performance.now();n.stats.buffering.end=e,r&&(r.stats.buffering.end=e);const t=r?r.stats:n.stats;this.hls.trigger(NV.FRAG_BUFFERED,{frag:n,part:r,stats:t,id:n.type})}),i).catch((e=>{this.warn("Fragment buffered callback ".concat(e)),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((e=>{let[t]=e;var n,r;return t&&(!(null!=(n=this.tracks[t])&&n.ended)||(null==(r=this.tracks[t])?void 0:r.ending))}))}onBufferEos(e,t){var n;this.sourceBuffers.forEach((e=>{let[n]=e;if(n){const e=this.tracks[n];t.type&&t.type!==n||(e.ending=!0,e.ended||(e.ended=!0,this.log("".concat(n," buffer reached EOS"))))}}));const r=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((e=>{let[t]=e;var n;return t&&!(null!=(n=this.tracks[t])&&n.ended)}))&&(r?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:e}=this;e&&"open"===e.readyState?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(NV.BUFFERED_TO_END,void 0)):e&&this.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(e.readyState))}))):(this.tracksEnded(),this.hls.trigger(NV.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((e=>{let[t]=e;if(null!==t){const e=this.tracks[t];e&&(e.ending=!1)}}))}onLevelUpdated(e,t){let{details:n}=t;n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen((()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)}))}onError(e,t){if(t.details===AV.BUFFER_APPEND_ERROR&&t.frag){var n;const e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;TV(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||null===t)return;if(!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,a=t.levelTargetDuration,s=t.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(TV(s)&&s>=0){const e=Math.max(s,a),t=Math.floor(i/a)*a-e;this.flushBackBuffer(i,a,t)}if(TV(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const e=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),t=Math.max(e,a),n=Math.floor(i/a)*a+t;this.flushFrontBuffer(i,a,n)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach((e=>{let[t,r]=e;if(r){const e=uY.getBuffered(r);if(e.length>0&&n>e.start(0)){var i;this.hls.trigger(NV.BACK_BUFFER_REACHED,{bufferEnd:n});const e=this.tracks[t];if(null!=(i=this.details)&&i.live)this.hls.trigger(NV.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=e&&e.ended)return void this.log("Cannot flush ".concat(t," back buffer while SourceBuffer is in ended state"));this.hls.trigger(NV.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:t})}}}))}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach((t=>{let[r,i]=t;if(i){const t=uY.getBuffered(i),a=t.length;if(a<2)return;const s=t.start(a-1),o=t.end(a-1);if(n>s||e>=s&&e<=o)return;this.hls.trigger(NV.BUFFER_FLUSHING,{startOffset:s,endOffset:1/0,type:r})}}))}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,r)}}return{duration:1/0}}const i=null==(e=this.overrides)?void 0:e.duration;if(i)return TV(i)?{duration:i}:null;const a=this.media.duration;return r>(TV(n.duration)?n.duration:0)&&r>a||!TV(a)?{duration:r}:null}updateMediaSource(e){let{duration:t,start:n,end:r}=e;const i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==t&&(TV(t)&&this.log("Updating MediaSource duration to ".concat(t.toFixed(3))),i.duration=t),void 0!==n&&void 0!==r&&(this.log("MediaSource duration is set to ".concat(i.duration,". Setting seekable range to ").concat(n,"-").concat(r,".")),i.setLiveSeekableRange(n,r)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log("checkPendingTracks (pending: ".concat(t," codec events expected: ").concat(e,") ").concat(gq(n))),this.tracksReady){var r;const e=null==(r=this.transferData)?void 0:r.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};
2this.sourceBuffers.forEach((t=>{let[n,r]=t;if(n){const t=this.tracks[n];e[n]={buffer:r,container:t.container,codec:t.codec,supplemental:t.supplemental,levelCodec:t.levelCodec,id:t.id,metadata:t.metadata}}})),this.hls.trigger(NV.BUFFER_CREATED,{tracks:e}),this.log("SourceBuffers created. Running queue: ".concat(this.operationQueue)),this.sourceBuffers.forEach((e=>{let[t]=e;this.executeNext(t)}))}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in e){const s=a,o=e[s];if(this.isPending(o)){const e=this.getTrackCodec(o,s),a="".concat(o.container,";codecs=").concat(e);o.codec=e,this.log("creating sourceBuffer(".concat(a,")").concat(this.currentOp(s)?" Queued":""," ").concat(gq(o)));try{const e=n.addSourceBuffer(a),r=yQ(s),i=[s,e];t[r]=i,o.buffer=e}catch(i){var r;return this.error("error while trying to add sourceBuffer: ".concat(i.message)),this.shiftAndExecuteNext(s),null==(r=this.operationQueue)||r.removeBlockers(),delete this.tracks[s],void this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:i,sourceBufferName:s,mimeType:a,parent:o.id})}this.trackSourceBuffer(s,o)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&("video"===t||"audiovideo"===t)&&zK(n,"video")&&(r=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e<t.length;e++)UK(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}(r,n));const i=XK(r,e.levelCodec);return i?"audio"===t.slice(0,5)?YK(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",((e,t)=>{const n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(NV.BUFFER_FLUSHED,{type:e})}))}get mediaSrc(){var e,t;const n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error("".concat(e," SourceBuffer error. MediaSource readyState: ").concat(null==(n=this.mediaSource)?void 0:n.readyState));this.error("".concat(r),t),this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,a){const s=t-e.timestampOffset;Math.abs(s)>=n&&(this.log("Updating ".concat(r," SourceBuffer timestampOffset to ").concat(t," (sn: ").concat(i," cc: ").concat(a,")")),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,a=this.tracks[e],s=null==a?void 0:a.buffer;if(!r||!i||!s)return this.warn("Attempting to remove from the ".concat(e," SourceBuffer, but it does not exist")),void this.shiftAndExecuteNext(e);const o=TV(r.duration)?r.duration:1/0,l=TV(i.duration)?i.duration:1/0,c=Math.max(0,t),d=Math.min(n,o,l);d>c&&(!a.ending||a.ended)?(a.ended=!1,this.log("Removing [".concat(c,",").concat(d,"] from the ").concat(e," SourceBuffer")),s.remove(c,d)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=null==n?void 0:n.buffer;if(!r)throw new vQ("Attempting to append to the ".concat(t," SourceBuffer, but it does not exist"));n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((e=>{this.warn("SourceBuffer blocked callback ".concat(e)),this.stepOperation
2Queue(this.sourceBufferTypes)}));else try{e()}catch(t){this.warn("Callback run without blocking ".concat(this.operationQueue," ").concat(t))}}isUpdating(){return this.sourceBuffers.some((e=>{let[t,n]=e;return t&&n.updating}))}isQueued(){return this.sourceBuffers.some((e=>{let[t]=e;return t&&!!this.currentOp(t)}))}isPending(e){return!!e&&!e.buffer}blockBuffers(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.sourceBufferTypes;if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then((t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(e){e.forEach((e=>{var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)}))}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((e,t)=>e+(this.isPending(this.tracks[t])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((e,t)=>{let[n]=t;return e+(n?1:0)}),0)}get sourceBufferTypes(){return this.sourceBuffers.map((e=>{let[t]=e;return t})).filter((e=>!!e))}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const a=n.bind(this,e);r.listeners.push({event:t,listener:a}),i.addEventListener(t,a)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach((e=>{n.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},capLevelController:xQ,errorController:class extends WV{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(NV.ERROR,this.onError,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(NV.ERROR,this.onError,this),e.off(NV.ERROR,this.onErrorOut,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===DV?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case AV.FRAG_LOAD_ERROR:case AV.FRAG_LOAD_TIMEOUT:case AV.KEY_LOAD_ERROR:case AV.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case AV.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction=Gq());case AV.FRAG_GAP:case AV.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=Mq);case AV.LEVEL_EMPTY_ERROR:case AV.LEVEL_PARSING_ERROR:{var a,s;const e=t.parent===DV?t.level:r.loadLevel;t.details===AV.LEVEL_EMPTY_ERROR&&null!=(a=t.context)&&null!=(s=a.levelDetails)&&s.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case AV.LEVEL_LOAD_ERROR:case AV.LEVEL_LOAD_TIMEOUT:return void("number"===typeof(null==i?void 0:i.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level)));case AV.AUDIO_TRACK_LOAD_ERROR:case AV.AUDIO_TRACK_LOAD_TIMEOUT:case AV.SUBTITLE_LOAD_ERROR:case AV.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const e=r.loadLevelObj;if(e&&(i.type===LV&&e.hasAudioGroup(i.groupId)||i.type===IV&&e.hasSubtitleGroup(i.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Mq,void(t.errorAction.flags=Uq)}return;case AV.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const e=r.loadLevelObj,n=null==e?void 0:e.attrs["HDCP-LEVEL"];n?t.errorAction={action:Mq,flags:zq,hdcpLevel:n}:this.keySystemError(t)}return;
2case AV.BUFFER_ADD_CODEC_ERROR:case AV.REMUX_ALLOC_ERROR:case AV.BUFFER_APPEND_ERROR:var o;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(o=t.level)?o:r.loadLevel);return;case AV.INTERNAL_EXCEPTION:case AV.BUFFER_APPENDING_ERROR:case AV.BUFFER_FULL_ERROR:case AV.LEVEL_SWITCH_ERROR:case AV.BUFFER_STALLED_ERROR:case AV.BUFFER_SEEK_OVER_HOLE:case AV.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=Gq())}t.type===jV.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=Rq(this.hls.config.playlistLoadPolicy,e),r=this.playlistError++;if(Dq(n,r,Pq(e),e.response))return{action:Fq,flags:Bq,retryConfig:n,retryCount:r};const i=this.getLevelSwitchAction(e,t);return n&&(i.retryConfig=n,i.retryCount=r),i}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,s=Rq(e.details.startsWith("key")?a:i,e),o=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(r){e.details!==AV.FRAG_GAP&&r.fragmentError++;if(Dq(s,o,Pq(e),e.response))return{action:Fq,flags:Bq,retryConfig:s,retryCount:o}}const l=this.getLevelSwitchAction(e,n);return s&&(l.retryConfig=s,l.retryCount=o),l}getLevelSwitchAction(e,t){const n=this.hls;null!==t&&void 0!==t||(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,a;const t=e.details;r.loadError++,t===AV.BUFFER_APPEND_ERROR&&r.fragmentError++;let l=-1;const{levels:c,loadLevel:d,minAutoLevel:u,maxAutoLevel:h}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const p=null==(i=e.frag)?void 0:i.type,m=(p===OV&&t===AV.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===AV.BUFFER_ADD_CODEC_ERROR||t===AV.BUFFER_APPEND_ERROR))&&c.some((e=>{let{audioCodec:t}=e;return r.audioCodec!==t})),f="video"===e.sourceBufferName&&(t===AV.BUFFER_ADD_CODEC_ERROR||t===AV.BUFFER_APPEND_ERROR)&&c.some((e=>{let{codecSet:t,audioCodec:n}=e;return r.codecSet!==t&&r.audioCodec===n})),{type:g,groupId:v}=null!=(a=e.context)?a:{};for(let n=c.length;n--;){const i=(n+d)%c.length;if(i!==d&&i>=u&&i<=h&&0===c[i].loadError){var s,o;const n=c[i];if(t===AV.FRAG_GAP&&p===DV&&e.frag){const t=c[i].details;if(t){const n=Eq(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else{if(g===LV&&n.hasAudioGroup(v)||g===IV&&n.hasSubtitleGroup(v))continue;if(p===OV&&null!=(s=r.audioGroups)&&s.some((e=>n.hasAudioGroup(e)))||p===MV&&null!=(o=r.subtitleGroups)&&o.some((e=>n.hasSubtitleGroup(e)))||m&&r.audioCodec===n.audioCodec||!m&&r.audioCodec!==n.audioCodec||f&&r.codecSet===n.codecSet)continue}l=i;break}}if(l>-1&&n.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:Mq,flags:Bq,nextAutoLevel:l}}return{action:Mq,flags:Uq}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case Oq:break;case Mq:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===AV.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn('MediaSource ended after "'.concat(t.sourceBufferName,'" sourceBuffer append error. Attempting to recover from media error.')),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:a}=n;switch(r){case Bq:this.switchLevel(e,a);break;case zq:i&&(t.maxHdcpLevel=sq[sq.indexOf(i)-1],n.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(t.maxHdcpLevel,'" or lower'))}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn("switching to level ".concat(t," after ").concat(e.details)),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===AV.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=$K(e.mimeType),n=this.hls.levels;for(let r=n.length;r--;)n[r]["".concat(e.sourceBufferName,"Codec")]===t&&this.hls.removeLevel(r)}}},fpsController:class{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}
vendor: 4,664 bytes, line 2
2registerListeners(){this.hls.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"===typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const e=r-this.lastTime,i=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*i/e,o=this.hls;if(o.trigger(NV.FPS_DROP,{currentDropped:i,currentDecoded:a,totalDroppedFrames:n}),s>0&&i>o.config.fpsDroppedMonitoringThreshold*a){let e=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=e)&&(e-=1,o.trigger(NV.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:o.currentLevel}),o.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_Y,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:b$,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends IX{constructor(e,t,n){super(e,t,n,"subt
2itle-stream-controller",MV),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.on(NV.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(NV.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(NV.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(NV.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(NV.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.off(NV.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(NV.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(NV.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(NV.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(NV.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=kX,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragContextChanged(n)||(dK(n)&&(this.fragPrevious=n),this.state=kX),!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let a;const s=n.start;for(let l=0;l<i.length;l++)if(s>=i[l].start&&s<=i[l].end){a=i[l];break}const o=n.start+n.duration;a?a.end=o:(a={start:s,end:o},i.push(a)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(0===n&&r!==Number.POSITIVE_INFINITY){const e=r-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach((t=>{for(let n=0;n<t.length;)if(t[n].end<=e)t.shift();else{if(!(t[n].start<e))break;t[n].start=e,n++}})),this.fragmentTracker.removeFragmentsInRange(n,e,MV)}}onError(e,t){const n=t.frag;(null==n?void 0:n.type)===MV&&(t.details===AV.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==SX&&(this.state=kX))}onSubtitleTracksUpdated(e,t){let{subtitleTracks:n}=t;this.levels&&uQ(this.levels,n)?this.levels=n.map((e=>new pq(e))):(this.tracksBuffered=[],this.levels=n.map((e=>{const t=new pq(e);return this.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,MV),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==SX&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:a,id:s}=t;if(!i)return void this.warn("Subtitle tracks were reset while loading level ".concat(s));const o=i[s];if(s>=i.length||!o)return;this.log("Subtitle track ".concat(s," loaded [").concat(a.startSN,",").concat(a.endSN,"]").concat(a.lastPartSn?"[part-".concat(a.lastPartSn,"-").concat(a.lastPartIndex,"]"):"",",duration:").concat(a.totalduration)),this.mediaBuffer=this.mediaBufferTimeRanges;let l=0;if(a.live||null!=(n=o.details)&&n.live){if(a.deltaUpdateFailed)return;const e=this.mainDetails;if(!e)return void(this.startFragRequested=!1);const t=e.fragments[0];var c;if(o.details)l=this.alignPlaylists(a,o.details,null==(c=this.levelLastLoaded)?void 0:c.details),0===l&&t&&(l=t.start,cX(a,l));else a.hasProgramDateTime&&e.hasProgramDateTime?(yX(a,e),l=a.fragmentStart):t&&(l=t.start,cX(a,l));e&&!this.startFragRequested&&this.setStartPosition(e,l)}if(o.details=a,this.levelLastLoaded=o,s===r&&(this.hls.trigger(NV.SUBTITLE_TRACK_UPDATED,{details:a,id:s,groupId:t.groupId}),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===kX)){Eq(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>
20&&null!=r&&r.key&&r.iv&&wY(r.method)){const e=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,TY(r.method)).catch((e=>{throw i.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((n=>{const r=performance.now();i.trigger(NV.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:r}})})).catch((e=>{this.warn("".concat(e.name,": ").concat(e.message)),this.state=kX}))}}doTick(){if(this.media){if(this.state===kX){const{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details)return;if(this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),a=uY.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:s,len:o}=a,l=n.details;if(o>this.hls.maxBufferLength+l.levelTargetDuration)return;const c=l.fragments,d=c.length,u=l.edge;let h=null;const p=this.fragPrevious;if(s<u){const e=r.maxFragLookUpTolerance,t=s>u-e?0:e;h=Eq(p,c,Math.max(c[0].start,s),t),!h&&p&&p.start<c[0].start&&(h=c[0])}else h=c[d-1];if(h=this.filterReplacedPrimary(h,n.details),!h)return;const m=c[h.sn-l.startSN-1];if(m&&m.cc===h.cc&&this.fragmentTracker.getState(m)===Wq&&(h=m),this.fragmentTracker.getState(h)===Wq){const e=this.mapToInitFragWhenRequired(h);e&&this.loadFragment(e,n,s)}}}else this.state=kX}loadFragment(e,t,n){dK(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new wZ(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends dQ{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null;const t=lZ(this.media.textTracks);for(let r=0;r<t.length;r++)if("hidden"===t[r].mode)e=t[r];else if("showing"===t[r].mode){e=t[r];break}const n=this.findTrackForTextTrack(e);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.LEVEL_LOADING,this.onLevelLoading,this),e.on(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(NV.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.LEVEL_LOADING,this.onLevelLoading,this),e.off(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(NV.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(NV.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;
2lZ(n.textTracks).forEach((e=>{sZ(e)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r)return void this.warn("Subtitle track with id:".concat(n," and group:").concat(r," not found in active group ").concat(null==a?void 0:a.groupId));const s=a.details;a.details=t.details,this.log("Subtitle track ".concat(n,' "').concat(a.name,'" lang:').concat(a.lang," group:").concat(r," loaded [").concat(i.startSN,"-").concat(i.endSN,"]")),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==r?void 0:r.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!i&&t){this.selectDefaultTrack=!1;const n=xq(t,e);if(n>-1)i=e[n];else{const e=xq(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null));const a={subtitleTracks:e};this.log("Updating subtitle tracks, ".concat(e.length,' track(s) found in "').concat(null==n?void 0:n.join(","),'" group-id')),this.hls.trigger(NV.SUBTITLE_TRACKS_UPDATED,a),-1!==r&&-1===this.trackId&&this.setSubtitleTrack(r)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if((!n||i.default)&&(n||e)&&(!e||Sq(i,e)))return r}if(e){for(let n=0;n<t.length;n++){const r=t[n];if(hQ(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const r=t[n];if(hQ(e.attrs,r.attrs,["LANGUAGE"]))return n}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){if(pQ(t[n],e))return n}}return-1}onError(e,t){!t.fatal&&t.context&&(t.context.type!==IV||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Sq(e,n))return n;const r=xq(e,this.tracksInGroup);if(r>-1){const e=this.tracksInGroup[r];return this.setSubtitleTrack(r),e}if(n)return null;{const n=xq(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log("Loading subtitle ".concat(n,' "').concat(e.name,'" lang:').concat(e.lang," group:").concat(r).concat(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"").concat(s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""," ").concat(i)),this.hls.trigger(NV.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=lZ(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter((e=>pQ(n,e)))[0],r||this.warn('Unable to find subtitle TextTrack with name "'.concat(n.name,'" and language "').concat(n.lang,'"'))),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==r&&(e.mode="disabled")})),r){const e=this.subtitleDisplay?"showing":"hidden";r.mode!==e&&(r.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!TV(e))return void this.warn("Invalid subtitle track id: ".concat(e));this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r)return void this.hls.trigger(NV.SUBTITLE_TRACK_SWITCH,{id:e});const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log("Switching to subtitle-track ".concat(e)+(r?' "'.concat(r.name,'" lang:').concat(r.lang," group:").concat(r.groupId):""));const{id:a,groupId:s="",name:o,type:l,url:c}=r;this.hls.trigger(NV.SUBTITLE_TRACK_SWITCH,{id:a,groupId:s,name:o,type:l,url:c});const d=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(d)}},timelineController:class{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
2,e.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(NV.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(NV.FRAG_LOADING,this.onFragLoading,this),e.on(NV.FRAG_LOADED,this.onFragLoaded,this),e.on(NV.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(NV.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(NV.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(NV.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(NV.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(NV.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(NV.FRAG_LOADING,this.onFragLoading,this),e.off(NV.FRAG_LOADED,this.onFragLoaded,this),e.off(NV.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(NV.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(NV.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(NV.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new m$(this,"textTrack1"),t=new m$(this,"textTrack2"),n=new m$(this,"textTrack3"),r=new m$(this,"textTrack4");this.cea608Parser1=new UZ(1,e,t),this.cea608Parser2=new UZ(3,n,r)}addCues(e,t,n,r,i){let a=!1;for(let d=i.length;d--;){const e=i[d],r=(s=e[0],o=e[1],l=t,c=n,Math.min(o,c)-Math.max(s,l));if(r>=0&&(e[0]=Math.min(e[0],t),e[1]=Math.max(e[1],n),a=!0,r/(n-t)>.5))return}var s,o,l,c;if(a||i.push([t,n]),this.config.renderTextTracksNatively){const i=this.captionsTracks[e];this.Cues.newCue(i,t,n,r)}else{const i=this.Cues.newCue(null,t,n,r);this.hls.trigger(NV.CUES_PARSED,{type:"captions",cues:i,track:e})}}onInitPtsFound(e,t){let{frag:n,id:r,initPTS:i,timescale:a}=t;const{unparsedVttFrags:s}=this;r===DV&&(this.initPTS[n.cc]={baseTime:i,timescale:a}),s.length&&(this.unparsedVttFrags=[],s.forEach((e=>{this.initPTS[e.frag.cc]?this.onFragLoaded(NV.FRAG_LOADED,e):this.hls.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e.frag,error:new Error("Subtitle discontinuity domain does not match main")})})))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(g$(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:a}=t[e],s=this.getExistingTrack(i,a);if(s)n[e]=s,sZ(n[e]),iZ(n[e],r);else{const t=this.createTextTrack("captions",i,a);t&&(t[e]=!0,n[e]=t)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(NV.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach((e=>{sZ(r[e]),delete r[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;
2if(t)for(let n=0;n<t.length;n++)sZ(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some((e=>e.textCodec===r$));if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(uQ(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const e=this.media,t=e?lZ(e.textTracks):null;if(this.tracks.forEach(((e,n)=>{let r;if(t){let n=null;for(let r=0;r<t.length;r++)if(t[r]&&g$(t[r],e)){n=t[r],t[r]=null;break}n&&(r=n)}if(r)sZ(r);else{const t=f$(e);r=this.createTextTrack(t,e.name,e.lang),r&&(r.mode="disabled")}r&&this.textTracks.push(r)})),null!=t&&t.length){const e=t.filter((e=>null!==e)).map((e=>e.label));e.length&&this.hls.logger.warn("Media element contains unused subtitle tracks: ".concat(e.join(", "),". Replace media element for each source to clear TextTracks and captions menu."))}}else if(this.tracks.length){const e=this.tracks.map((e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e})));this.hls.trigger(NV.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const n="textTrack".concat(t[1]),r=this.captionsProperties[n];r&&(r.label=e.name,e.lang&&(r.languageCode=e.lang),r.media=e)}))}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===DV){var n,r;const{cea608Parser1:e,cea608Parser2:i,lastSn:a}=this,{cc:s,sn:o}=t.frag,l=null!=(n=null==(r=t.part)?void 0:r.index)?n:-1;e&&i&&(o!==a+1||o===a&&l!==this.lastPartIndex+1||s!==this.lastCc)&&(e.reset(),i.reset()),this.lastCc=s,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===MV)if(r.byteLength){const e=n.decryptdata,i="stats"in t;if(null==e||!e.encrypted||i){const e=this.tracks[n.level],i=this.vttCCs;i[n.cc]||(i[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===r$?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;o$(t,this.initPTS[e.cc],(t=>{this._appendCues(t,e.level),n.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(t=>{n.logger.log("Failed to parse IMSC1: ".concat(t)),n.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:a}=this,s=i.length-1;if(!i[n.cc]&&-1===s)return void a.push(e);const o=this.hls;n$(null!=(t=n.initSegment)&&t.data?RK(n.initSegment.data,new Uint8Array(r)).buffer:r,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(e=>{this._appendCues(e,n.level),o.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(t=>{const i="Missing initPTS for VTT MPEGTS"===t.message;i?a.push(e):this._fallbackToIMSC1(n,r),o.logger.log("Failed to parse VTT cue: ".concat(t)),i&&s>n.cc||o.trigger(NV.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})}))}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||o$(t,this.initPTS[e.cc],(()=>{n.textCodec=r$,this._parseIMSC1(e,t)}),(()=>{n.textCodec="wvtt"}))}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((e=>aZ(n,e)))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(NV.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===MV&&this.onFragLoaded(NV.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(n.type!==DV||"NONE"!==this.closedCaptionsForLevel(n))for(let i=0;i<r.length;i++){const e=r[i].bytes;if(e){this.cea608Parser1||this.initCea608Parsers();const t=this.extractCea608Data(e);this.cea608Parser1.addData(r[i].pts,t[0]),this.cea608Parser2.addData(r[i].pts,t[1])}}}onBufferFlushing(e,t){let{startOffset:n,endOffset:r,endOffsetSubtitles:i,type:a}=t;const{media:s}=this;if(s&&!(s.currentTime<r)){if(!a||"video"===a){const{captionsTracks:e}=this;Object.keys(e).forEach((t=>oZ(e[t],n,r)))}if(this.config.renderTextTracksNatively&&0===n&&void 0!==i){const{textTracks:e}=this;Object.keys(e).forEach((t=>oZ(e[t],n,i)))}}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let r=2;for(let i=0;i<n;i++){const n=e[r++],i=127&e[r++],a=127&e[r++];if(0===i&&0===a)continue;if(0!==(4&n)){const e=3&n;0!==e&&1!==e||(t[e].push(i),t[e].push(a))}}return t}},audioStreamController:class extends IX{constructor(e,t,n){super(e,t,n,"audio-stream-controller",OV),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;
2e.on(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.on(NV.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(NV.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(NV.BUFFER_RESET,this.onBufferReset,this),e.on(NV.BUFFER_CREATED,this.onBufferCreated,this),e.on(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(NV.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(NV.FRAG_LOADING,this.onFragLoading,this),e.on(NV.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.off(NV.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(NV.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(NV.BUFFER_RESET,this.onBufferReset,this),e.off(NV.BUFFER_CREATED,this.onBufferCreated,this),e.off(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(NV.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(NV.FRAG_LOADING,this.onFragLoading,this),e.off(NV.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,t){let{frag:n,id:r,initPTS:i,timescale:a}=t;if(r===DV){const e=n.cc,t=this.fragCurrent;if(this.initPTS[e]={baseTime:i,timescale:a},this.log("InitPTS for cc: ".concat(e," found from main: ").concat(i,"/").concat(a)),this.mainAnchor=n,this.state===RX){const t=this.waitingData;(!t&&!this.loadingParts||t&&t.frag.cc!==e)&&this.syncWithAnchor(n,null==t?void 0:t.frag)}else!this.hls.hasEnoughToStart&&t&&t.cc!==e?(t.abortRequests(),this.syncWithAnchor(n,t)):this.state===kX&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==r?void 0:r.cc)===t.cc)return;const i=(r||e).cc,a=Nq(this.getLevelDetails(),i,this.getLoadPosition());a&&(this.log("Syncing with main frag at ".concat(a.start," cc ").concat(a.cc)),this.startFragRequested=!1,this.nextLoadPosition=a.start,this.resetLoadingState(),this.state===kX&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=SX);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @".concat(n.toFixed(3))),e=n,this.state=kX):this.state=EX,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case kX:this.doTickIdle();break;case EX:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=RX}break}case CX:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=kX}break}case RX:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,a=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=TX;const e={frag:t,part:n,payload:r.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),i&&super._handleFragmentLoadComplete(e)}else a&&a.cc!==e.frag.cc&&this.syncWithAnchor(a,e.frag)}else this.state=kX}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,a=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||null==n||!n[i])return;const s=n[i],o=s.details;if(!o||this.waitForLive(s)||this.waitForCdnTuneIn(o))return this.state=EX,void(this.startFragRequested=!1);const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,sK,OV));const c=this.getFwdBufferInfo(l,OV);if(null===c)return;if(!this.switchingTrack&&this._streamEnded(c,o))return t.trigger(NV.BUFFER_EOS,{type:"audio"}),void(this.state=NX);const d=c.len,u=t.maxBufferLength,h=o.fragments,p=h[0].start,m=this.getLoadPosition(),f=this.flushing?m:c.end;if(this.switchingTrack&&r){const e=m;o.PTSKnown&&e<p&&(c.end>p||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=p+.05)}if(d>=u&&!this.switchingTrack&&f<h[h.length-1].start)return;let g=this.getNextFragment(f,o);if(g&&this.isLoopLoading(g,f)&&(g=this.getNextFragmentLoopLoading(g,o,c,DV,u)),!g)return void(this.bufferFlushed=!0);let v=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&v&&dK(g)&&!g.endList&&(!o.live||!this.loadingParts&&f<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(v)===Kq&&(this.mainFragLoading=v=null),v&&dK(v))){if(g.start>v.end){const e=this.fragmentTracker.getFragAtPos(f,DV);e&&e.end>v.end&&(v=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(g.start>v.end)return}this.loadFragment(g,s,f)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,t){let{audioTracks:n}=t;this.resetTransmuxer(),this.levels=n.map((e=>new pq(e)))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==SX&&(this.setInterval(100),this.state=kX,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(NV.AU
2DIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:a,groupId:s,track:o}=t;if(!r)return void this.warn("Audio tracks reset while loading track ".concat(a,' "').concat(o.name,'" of "').concat(s,'"'));const l=this.mainDetails;if(!l||i.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==SX&&(this.state=EX));this.cachedTrackLoadedData=null,this.log("Audio track ".concat(a,' "').concat(o.name,'" of "').concat(s,'" loaded [').concat(i.startSN,",").concat(i.endSN,"]").concat(i.lastPartSn?"[part-".concat(i.lastPartSn,"-").concat(i.lastPartIndex,"]"):"",",duration:").concat(i.totalduration));const c=r[a];let d=0;if(i.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;var u;if(c.details)d=this.alignPlaylists(i,c.details,null==(u=this.levelLastLoaded)?void 0:u.details);i.alignedSliding||(bX(i,l),i.alignedSliding||yX(i,l),d=i.fragmentStart)}c.details=i,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(l,d),this.hls.trigger(NV.AUDIO_TRACK_UPDATED,{details:i,id:a,groupId:t.groupId}),this.state!==EX||this.waitForCdnTuneIn(i)||(this.state=kX),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:a,trackId:s,levels:o}=this;if(!o)return void this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(n.sn," of level ").concat(n.level," will not be buffered"));const l=o[s];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const c=l.details;if(!c)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const d=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let u=this.transmuxer;u||(u=this.transmuxer=new cQ(this.hls,OV,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const h=this.initPTS[n.cc],p=null==(t=n.initSegment)?void 0:t.data;if(void 0!==h){const e=!1,t=r?r.index:-1,a=-1!==t,s=new cY(n.level,n.sn,n.stats.chunkCount,i.byteLength,t,a);u.push(i,p,d,"",n,r,c.totalduration,e,s,h)}else{this.log("Unknown video PTS for cc ".concat(n.cc,", waiting for video PTS before demuxing audio frag ").concat(n.sn," of [").concat(c.startSN," ,").concat(c.endSN,"],track ").concat(s));const{cache:e}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new OX,complete:!1};e.push(new Uint8Array(i)),this.state!==SX&&(this.state=RX)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===DV&&dK(t.frag)&&(this.mainFragLoading=t,this.state===kX&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type===OV)if(this.fragContextChanged(n))this.warn("Fragment ".concat(n.sn).concat(r?" p: "+r.index:""," of level ").concat(n.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));else{if(dK(n)){this.fragPrevious=n;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(NV.AUDIO_TRACK_SWITCHED,GV({},e)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}else this.audioOnly||n.type!==DV||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(e,t){var n;if(t.fatal)this.state=PX;else switch(t.details){case AV.FRAG_GAP:case AV.FRAG_PARSING_ERROR:case AV.FRAG_DECRYPT_ERROR:case AV.FRAG_LOAD_ERROR:case AV.FRAG_LOAD_TIMEOUT:case AV.KEY_LOAD_ERROR:case AV.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(OV,t);break;case AV.AUDIO_TRACK_LOAD_ERROR:case AV.AUDIO_TRACK_LOAD_TIMEOUT:case AV.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==EX||(null==(n=t.context)?void 0:n.type)!==LV||(this.state=kX);break;case AV.BUFFER_ADD_CODEC_ERROR:case AV.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case AV.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case AV.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,t){let{type:n}=t;n!==oK&&(this.flushing=!0)}onBufferFlushed(e,t){let{type:n}=t;if(n!==oK){this.flushing=!1,this.bufferFlushed=!0,this.state===NX&&(this.state=kX);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,n,OV),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s)return void this.resetWhenMissingContext(a);const{frag:o,part:l,level:c}=s,{details:d}=c,{audio:u,text:h,id3:p,initSegment:m}=i;if(!this.fragContextChanged(o)&&d){if(this.state=jX,this.switchingTrack&&u&&this.completeAudioSwitch(this.switchingTrack),null!=m&&m.tracks){const e=o.initSegment||o;this._bufferInitSegment(c,m.tracks,e,a),r.trigger(NV.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:m.tracks})}if(u){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=u;l&&(l.elementaryStreams[sK]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),o.setElementaryStreamInfo(sK,e,t,n,r),this.bufferFragmentData(u,o,l,a)}if(null!=p&&null!=(t=p.samples)&&t.length){const e=UV({id:n,frag:o,details:d},p);r.trigger(NV.FRAG_PARSING_METADATA,e)}if(h){const e=UV({id:n,frag:o,details:d},h);r.trigger(NV.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(e,t,n,r){if(this.state!==jX)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const i=t.audio;i.id=OV;const a=e.audioCodec;this.log("Init audio buffer, container:".concat(i.container,", codecs[level/parsed]=[").concat(a,"/").concat(i.codec,"]")),a&&1===a.split(",").length&&(i.levelCodec=a),this.hls.trigger(NV.BUFFER_CODECS,t);const s=i.initSegment;if(null!=s&&s.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:s};this.hls.trigger(NV.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);var i;if(this.switchingTrack||r===Wq||r===Vq)if(dK(e))if(null!=(i=t.details)&&i.live&&!this.initPTS[e.cc]){this.log("Waiting for video PTS in continuity counter ".concat(e.cc," of live stream before loading audio fragment ").concat(e.sn," of level ").concat(this.trackId)),this.state=RX;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&yX(t.details,n)}else super.loadFragment(e,t,n);else this._loadInitSegment(e,t);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:s}=this.bufferedTrack;Sq({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:s},e,kq)||(Tq(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(NV.AUDIO_TRACK_SWITCHED,GV({},e))}},audioTrackController:class extends dQ{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.LEVEL_LOADING,this.onLevelLoading,this),e.on(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(NV.AU
2DIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.LEVEL_LOADING,this.onLevelLoading,this),e.off(NV.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(NV.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(NV.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r)return void this.warn("Audio track with id:".concat(n," and group:").concat(r," not found in active group ").concat(null==a?void 0:a.groupId));const s=a.details;a.details=t.details,this.log("Audio track ".concat(n,' "').concat(a.name,'" lang:').concat(a.lang," group:").concat(r," loaded [").concat(i.startSN,"-").concat(i.endSN,"]")),n===this.trackId&&this.playlistLoaded(n,t,s)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==r?void 0:r.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!i&&t){const n=xq(t,e,kq);if(n>-1)i=e[n];else{const e=xq(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null));const s={audioTracks:e};this.log("Updating audio tracks, ".concat(e.length," track(s) found in group(s): ").concat(null==n?void 0:n.join(","))),this.hls.trigger(NV.AUDIO_TRACKS_UPDATED,s);const o=this.trackId;if(-1!==r&&-1===o)this.setAudioTrack(r);else if(e.length&&-1===o){var a;const t=new Error("No audio track selected for current audio group-ID(s): ".concat(null==(a=this.groupIds)?void 0:a.join(",")," track count: ").concat(e.length));this.warn(t.message),this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==LV||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;
2if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Sq(e,r,kq))return r;const i=xq(e,this.tracksInGroup,kq);if(i>-1){const e=this.tracksInGroup[i];return this.setAudioTrack(i),e}if(r){let r=t.loadLevel;-1===r&&(r=t.firstAutoLevel);const i=function(e,t,n,r,i){const a=t[r],s=t.reduce(((e,t,n)=>{const r=t.uri;return(e[r]||(e[r]=[])).push(n),e}),{})[a.uri];s.length>1&&(r=Math.max.apply(Math,s));const o=a.videoRange,l=a.frameRate,c=a.codecSet.substring(0,4),d=wq(t,r,(t=>{if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==c)return!1;const r=t.audioGroups,a=n.filter((e=>!r||-1!==r.indexOf(e.groupId)));return xq(e,a,i)>-1}));return d>-1?d:wq(t,r,(t=>{const r=t.audioGroups,a=n.filter((e=>!r||-1!==r.indexOf(e.groupId)));return xq(e,a,i)>-1}))}(e,t.levels,n,r,kq);if(-1===i)return null;t.nextLoadLevel=i}if(e.channels||e.audioCodec){const t=xq(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length)return void this.warn("Invalid audio track id: ".concat(e));this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;if(this.log("Switching to audio-track ".concat(e,' "').concat(r.name,'" lang:').concat(r.lang," group:").concat(r.groupId," channels:").concat(r.channels)),this.trackId=e,this.currentTrack=r,this.hls.trigger(NV.AUDIO_TRACK_SWITCHING,GV({},r)),i)return;const a=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(a)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||Sq(e,r,kq)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:o}=e;for(let e=0;e<t.length;e++){if(Sq({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:o},t[e],kq))return e}for(let l=0;l<t.length;l++){const n=t[l];if(hQ(e.attrs,n.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return l}for(let l=0;l<t.length;l++){const n=t[l];if(hQ(e.attrs,n.attrs,["LANGUAGE"]))return l}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Tq(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,s=null==a?void 0:a.age;this.log("Loading audio-track ".concat(n,' "').concat(e.name,'" lang:').concat(e.lang," group:").concat(r).concat(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"").concat(s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""," ").concat(i)),this.hls.trigger(NV.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}},emeController:nZ,cmcdController:class{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:SQ.MANIFEST,su:!this.initialized})}catch(t){this.hls.logger.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=e=>{try{const{frag:t,part:n}=e,r=this.hls.levels[t.level],i=this.getObjectType(t),a={d:1e3*(n||t).duration,ot:i};i!==SQ.VIDEO&&i!==SQ.AUDIO&&i!=SQ.MUXED||(a.br=r.bitrate/1e3,a.tb=this.getTopBandwidth(i)/1e3,a.bl=this.getBufferLength(i));const s=n?this.getNextPart(n):this.getNextFrag(t);null!=s&&s.url&&s.url!==t.url&&(a.nor=s.url),this.apply(e,a)}catch(t){this.hls.logger.warn("Could not generate segment CMCD data.",t)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;
2e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHED,this.onMediaDetached,this),e.on(NV.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHED,this.onMediaDetached,this),e.off(NV.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(r=t.tracks.video)?void 0:r.buffer}createData(){var e;return{v:1,sf:kQ.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};UV(t,this.createData());const n=t.ot===SQ.INIT||t.ot===SQ.VIDEO||t.ot===SQ.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce(((e,n)=>(r.includes(n)&&(e[n]=t[n]),e)),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),XQ(e.headers,t,i)):e.url=QQ(e.url,t,i)}getNextFrag(e){var t;const n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){const t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,a=null==(t=this.hls.levels[i.level])||null==(n=t.details)?void 0:n.partList;if(a){const{sn:e}=i;for(let t=a.length-1;t>=0;t--){const n=a[t];if(n.index===r&&n.fragment.sn===e)return a[t+1]}}}getObjectType(e){const{type:t}=e;return"subtitle"===t?SQ.TIMED_TEXT:"initSegment"===e.sn?SQ.INIT:"audio"===t?SQ.AUDIO:"main"===t?this.hls.audioTracks.length?SQ.VIDEO:SQ.MUXED:void 0}getTopBandwidth(e){let t,n=0;const r=this.hls;if(e===SQ.AUDIO)t=r.audioTracks;else{const e=r.maxAutoLevel,n=e>-1?e+1:r.levels.length;t=r.levels.slice(0,n)}return t.forEach((e=>{e.bitrate>n&&(n=e.bitrate)})),n>0?n:NaN}getBufferLength(e){const t=this.media,n=e===SQ.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!t)return NaN;return 1e3*uY.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,r){t(e),this.loader.load(e,n,r)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,r){t(e),this.loader.load(e,n,r)}}}},contentSteeringController:class extends WV{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}
2startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter((t=>t!==e)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((null==n?void 0:n.action)===Mq&&n.flags===Uq){const e=this.levels;let r=this._pathwayPriority,i=this.pathwayId;if(t.context){const{groupId:n,pathwayId:r,type:a}=t.context;n&&e?i=this.getPathwayForGroupId(n,a,i):r&&(i=r)}i in this.penalizedPathways||(this.penalizedPathways[i]=performance.now()),!r&&e&&(r=this.pathways()),r&&r.length>1&&(this.updatePathwayPriority(r),n.resolved=this.pathwayId!==i),t.details!==AV.BUFFER_APPEND_ERROR||t.fatal?n.resolved||this.warn("Could not resolve ".concat(t.details,' ("').concat(t.error.message,'") with content-steering for Pathway: ').concat(i," levels: ").concat(e?e.length:e," priorities: ").concat(gq(r)," penalized: ").concat(gq(this.penalizedPathways))):n.resolved=!0}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){const n=e[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(n,'"')),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log("Found ".concat(t.length,"/").concat(e.length,' levels in Pathway "').concat(this.pathwayId,'"')),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter((t=>e===t.pathwayId))}updatePathwayPriority(e){let t;this._pathwayPriority=e;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach((e=>{r-n[e]>3e5&&delete n[e]}));for(let i=0;i<e.length;i++){const r=e[i];if(r in n)continue;if(r===this.pathwayId)return;const a=this.hls.nextLoadLevel,s=this.hls.levels[a];if(t=this.getLevelsForPathway(r),t.length>0){this.log('Setting Pathway to "'.concat(r,'"')),this.pathwayId=r,mX(t),this.hls.trigger(NV.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[a];s&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==s.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==s.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(s.bitrate," to ").concat(e.bitrate)),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===LV&&r[i].hasAudioGroup(e)||t===IV&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach((e=>{const{ID:i,"BASE-ID":a,"URI-REPLACEMENT":s}=e;if(t.some((e=>e.pathwayId===i)))return;const o=this.getLevelsForPathway(a).map((e=>{const t=new yY(e.attrs);t["PATHWAY-ID"]=i;const a=t.AUDIO&&"".concat(t.AUDIO,"_clone_").concat(i),o=t.SUBTITLES&&"".concat(t.SUBTITLES,"_clone_").concat(i);a&&(n[t.AUDIO]=a,t.AUDIO=a),o&&(r[t.SUBTITLES]=o,t.SUBTITLES=o);const l=$Q(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",s),c=new pq({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let n=1;n<e.audioGroups.length;n++)c.addGroupId("audio","".concat(e.audioGroups[n],"_clone_").concat(i));if(e.subtitleGroups)for(let n=1;n<e.subtitleGroups.length;n++)c.addGroupId("text","".concat(e.subtitleGroups[n],"_clone_").concat(i));return c}));t.push(...o),ZQ(this.audioTracks,n,s,i),ZQ(this.subtitleTracks,r,s,i)}))}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;let r;this.loader&&this.loader.destroy(),this.loader=new n(t);try{r=new self.URL(e)}catch(c){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: ".concat(e))}if("data:"!==r.protocol){const e=0|(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate);r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+e)}const i={responseType:"json",url:r.href},a=t.steeringManifestLoadPolicy.default,s=a.errorRetry||a.timeoutRetry||{},o={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(e,t,n,i)=>{this.log('Loaded steering manifest: "'.concat(r,'"'));const a=e.data;if(1!==(null==a?void 0:a.VERSION))return void this.log("Steering VERSION ".concat(a.VERSION," not supported!"));this.updated=performance.now(),this.timeToLoad=a.TTL;const{"RELOAD-URI":s,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":l}=a;if(s)try{this.uri=new self.URL(s,r).href}catch(c){return this.enabled=!1,void this.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(s))}this.scheduleRefresh(this.uri||n.url),o&&this.clonePathways(o);const d={steeringManifest:a,url:r.toString()};this.hls.trigger(NV.STEERING_MANIFEST_LOADED,d),l&&this.updatePathwayPriority(l)},onError:(e,t,n,r)=>{if(this.log("Error loading steering manifest: ".concat(e.code," ").concat(e.text," (").concat(t.url,")")),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log("Steering manifest ".concat(t.url," no longer available"));let i=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,i);else{const e=this.loader;if("function"===typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(i=1e3*parseFloat(t))}this.log("Steering manifest ".concat(t.url," rate limited"))}},onTimeout:(e,t,n)=>{this.log("Timeout loading steering manifest (".concat(t.url,")")),this.scheduleRefresh(this.uri||t.url)}};this.log("Requesting steering manifest: ".concat(r)),this.loader.load(i,o,l)}scheduleRefresh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3*this.timeToLoad;this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var t;const n=null==(t=this.hls)?void 0:t.media;!n||n.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)}),t)}},interstitialsController:class extends WV{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1}
2,this.onSeeking=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const n=t<=-.01;this.timelinePos=e,this.bufferedPos=e;const r=this.playingItem;if(!r)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule()}if(this.checkBuffer(),n&&e<r.start||e>=r.end){var i;const e=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(r)&&null!=(i=this.media)&&i.paused&&(this.shouldPlay=!1),!n){const t=this.findItemIndex(r);if(e>t){const n=this.schedule.findJumpRestrictedIndex(t+1,e);if(n>t)return void this.setSchedulePosition(n)}}return void this.setSchedulePosition(e)}const a=this.playingAsset;if(!a){if(this.playingLastItem&&this.isInterstitial(r)){const t=r.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const s=a.timelineStart,o=a.duration||0;(n&&e<s||e>=s+o)&&this.setScheduleToAssetAtTime(e,a)},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const n=this.playingAsset;if(!n)return;e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{const n=this.schedule,r=this.playingItem,i=n.events||[],a=n.items||[],s=n.durations,o=e.map((e=>e.identifier)),l=!(!i.length&&!o.length);(l||t)&&this.log("INTERSTITIALS_UPDATED (".concat(i.length,"): ").concat(i,"\nSchedule: ").concat(a.map((e=>xZ(e)))," pos: ").concat(this.timelinePos)),o.length&&this.log("Removed events ".concat(o)),this.playerQueue.forEach((e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(Ps){Math.abs(n)>dZ&&this.warn("".concat(Ps,' ("').concat(e.assetId,'" ').concat(e.timelineOffset,"->").concat(t,")"))}}}));let c=null;if(r){const e=this.updateItem(r,this.timelinePos);this.itemsMatch(r,e)&&(this.playingItem=e,this.waitingItem=this.endedItem=null,c=()=>this.trimInPlace(e,r))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const d=this.bufferingItem;if(d){const e=this.updateItem(d,this.bufferedPos);this.itemsMatch(d,e)?(this.bufferingItem=e,c||(c=()=>this.trimInPlace(e,d))):d.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(d.event,null))}if(e.forEach((e=>{e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,null)}))})),l||t){if(this.hls.trigger(NV.INTERSTITIALS_UPDATED,{events:i.slice(0),schedule:a.slice(0),durations:s,removedIds:o}),this.isInterstitial(r)&&o.includes(r.event.identifier))return this.warn('Interstitial "'.concat(r.event.identifier,'" removed while playing')),void this.primaryFallback(r.event);c&&c(),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new SZ(e),this.schedule=new yZ(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(NV.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(NV.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(NV.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(NV.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(NV.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(NV.BUFFER_APPENDED,this.onBufferAppended,this),e.on(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(NV.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(NV.MEDIA_ENDED,this.onMediaEnded,this),e.on(NV.ERROR,this.onError,this),e.on(NV.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;
2e&&(e.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(NV.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(NV.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(NV.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(NV.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(NV.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(NV.BUFFER_CODECS,this.onBufferCodecs,this),e.off(NV.BUFFER_APPENDED,this.onBufferAppended,this),e.off(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(NV.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(NV.MEDIA_ENDED,this.onMediaEnded,this),e.off(NV.ERROR,this.onError,this),e.off(NV.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){tZ(e,"play",this.onPlay),tZ(e,"pause",this.onPause),tZ(e,"seeking",this.onSeeking),tZ(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;eZ(n,"seeking",this.onSeeking),eZ(n,"timeupdate",this.onTimeupdate),eZ(n,"play",this.onPlay),eZ(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!r){this.clearScheduleState();const e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=t=>t?e.getAssetPlayer(t.identifier):t,r=(t,r,i,s,o)=>{if(t){let l=t[r].start;const c=t.event;if(c){if("playout"===r||c.timelineOccupancy!==uZ.Point){const e=n(i);(null==e?void 0:e.interstitial)===c&&(l+=e.assetItem.startOffset+e[o])}}else{l+=("bufferedPos"===s?a():e[s])-t.start}return l}return 0},i=(t,n)=>{if(0!==t&&"primary"!==n&&e.schedule.length){var r;const i=e.schedule.findItemIndexAtTime(t),a=null==(r=e.schedule.items)?void 0:r[i];if(a){return t+(a[n].start-a.start)}}return t},a=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?s("primary"):Math.max(t,0)},s=t=>{var n;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:e.schedule.durations[t]},o=(t,i)=>{var a,s;const o=e.effectivePlayingItem;if(null!=o&&null!=(a=o.event)&&a.restrictions.skip)return;e.log("seek to ".concat(t,' "').concat(i,'"'));const l=e.effectivePlayingItem,c=e.schedule.findItemIndexAtTime(t,i),d=null==(s=e.schedule.items)?void 0:s[c],u=e.getBufferingPlayer(),h=null==u?void 0:u.interstitial,p=null==h?void 0:h.appendInPlace,m=l&&e.itemsMatch(l,d);if(l&&(p||m)){const a=n(e.playingAsset),s=(null==a?void 0:a.media)||e.primaryMedia;if(s){const n="primary"===i?s.currentTime:r(l,i,e.playingAsset,"timelinePos","currentTime"),o=t-n,c=(p?n:s.currentTime)+o;if(c>=0&&(!a||p||c<=a.duration))return void(s.currentTime=c)}}if(d){let n=t;if("primary"!==i){const e=t-d[i].start;n=d.start+e}const r=!e.isInterstitial(d);if(e.isInterstitial(l)&&!l.event.appendInPlace||!r&&!d.event.appendInPlace){if(l){const a=e.findItemIndex(l);if(c>a){const t=e.schedule.findJumpRestrictedIndex(a+1,c);if(t>a)return void e.setSchedulePosition(t)}let s=0;if(r)e.timelinePos=n,e.checkBuffer();else{var f;const e=null==d||null==(f=d.event)?void 0:f.assetList;if(e){const n=t-(d[i]||d).start;for(let t=e.length;t--;){const r=e[t];if(r.duration&&n>=r.startOffset&&n<r.startOffset+r.duration){s=t;break}}}}e.setSchedulePosition(c,s)}}else{const t=e.media||(p?null==u?void 0:u.media:null);t&&(t.currentTime=n)}}},l=()=>{const n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;const r=t();return e.isInterstitial(r)?r:null},c={get currentTime(){const t=l(),n=e.effectivePlayingItem;return n&&n===t?r(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=l(),r=e.effectivePlayingItem;r&&r===n&&o(t+r.playout.start,"playout")},get duration(){const e=l();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const n=null==(t=l())?void 0:t.event.assetList;return n?n.map((t=>e.getAssetPlayer(t.identifier))):[]},get playingIndex(){var t;const n=null==(t=l())?void 0:t.event;return n&&e.effectivePlayingAsset?n.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var t,n;return(null==(t=e.schedule)||null==(n=t.events)?void 0:n.slice(0))||[]},get schedule(){var t,n;return(null==(t=e.schedule)||null==(n=t.items)?void 0:n.slice(0))||[]},get interstitialPlayer(){return l()?c:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return a()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){o(e,"primary")},get duration(){return s("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){o(e,"integrated")},get duration(){return s("integrated")},get seekableStart(){var t;return i((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){const r=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;o(e+.001,"playout")}else e.advanceAfterAssetEnded(n,r,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&n)&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t,n;if(null===this.mediaSelection)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&null!=(e=this.bufferingItem)&&null!=(t=e.event)&&t.appendInPlace&&(i=this.primaryMedia);const a=null==(n=i)?void 0:n.currentTime;return void 0!==a&&TV(a)?a:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r)return void(this.detachedData={media:r});const n=e.transferMedia();this.log("transfer MediaSource from ".concat(e," ").concat(gq(n))),this.detachedData=n}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const a=this.hls,s=e!==a,o=s&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let c;if(a.media)o&&(i=a.transferMedia(),this.detachedData=i),c="Primary";
2else if(l){const e=this.getBufferingPlayer();e?(i=e.transferMedia(),c="".concat(e)):c="detached MediaSource"}else c="detached media";if(!i)if(l)i=this.detachedData,this.log("using detachedData: MediaSource ".concat(gq(i)));else if(!this.detachedData||a.media===t){const e=this.playerQueue;e.length>1&&e.forEach((e=>{if(s&&e.interstitial.appendInPlace!==o){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn("Could not change append strategy for queued assets ".concat(t))}})),this.hls.detachMedia(),this.detachedData={media:t}}const d=i&&"mediaSource"in i&&"closed"!==(null==(r=i.mediaSource)?void 0:r.readyState),u=d&&i?i:t;if(this.log("".concat(d?"transfering MediaSource":"attaching media"," to ").concat(s?e:"Primary"," from ").concat(c)),u===i){const t=s&&e.assetId===this.schedule.assetIdAtEnd;u.overrides={duration:this.schedule.duration,endOfStream:!s||t,cueRemoval:!s}}e.attachMedia(u)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.timelinePos=n,t.length&&t[0].cue.pre){const n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const t=this.timelinePos=n>0?n:0,r=e.findItemIndexAtTime(t);this.setSchedulePosition(r)}}else if(r&&!this.playingItem){const t=e.findItemIndex(r);this.setSchedulePosition(t)}}advanceAfterAssetEnded(e,t,n){const r=gZ(e,n);if(e.isAssetPastPlayoutLimit(r)){const n=this.schedule.items;if(n){const r=t+1;if(r>=n.length)return void this.setSchedulePosition(-1);const i=e.resumeTime;this.timelinePos<i&&(this.timelinePos=i,this.checkBuffer()),this.setSchedulePosition(r)}}else this.setSchedulePosition(t,r)}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const t=n.findEventIndex(r),a=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,t,a-1)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log("setSchedulePosition ".concat(e,", ").concat(t));const r=e>=0?n[e]:null,i=this.playingItem,a=this.playingLastItem;if(this.isInterstitial(i)){var s;const l=i.event,c=this.playingAsset,d=null==c?void 0:c.identifier,u=d?this.getAssetPlayer(d):null;if(u&&d&&(!this.eventItemsMatch(i,r)||void 0!==t&&d!==(null==(s=l.assetList)?void 0:s[t].identifier))){var o;const t=l.findAssetIndex(c);if(this.log("INTERSTITIAL_ASSET_ENDED ".concat(t+1,"/").concat(l.assetList.length," ").concat(vZ(c))),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(NV.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:l,sc
2hedule:n.slice(0),scheduleIndex:e,player:u}),i!==this.playingItem)return void(this.itemsMatch(i,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(l,this.findItemIndex(this.playingItem),t));this.retreiveMediaSource(d,r),!u.media||null!=(o=this.detachedData)&&o.mediaSource||u.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log("INTERSTITIAL_ENDED ".concat(l," ").concat(xZ(i))),l.hasPlayed=!0,this.hls.trigger(NV.INTERSTITIAL_ENDED,{event:l,schedule:n.slice(0),scheduleIndex:e}),l.cue.once)){this.updateSchedule();const e=this.schedule.items;if(r&&e){const n=this.findItemIndex(r);this.advanceSchedule(n,e,t,i,a)}return}}this.advanceSchedule(e,n,t,i,a)}advanceSchedule(e,t,n,r,i){const a=e>=0?t[e]:null,s=this.primaryMedia,o=this.playerQueue;if(o.length&&o.forEach((t=>{const n=t.interstitial,r=this.schedule.findEventIndex(n.identifier);(r<e||r>e+1)&&this.clearInterstitial(n,a)})),this.isInterstitial(a)){this.timelinePos=Math.min(Math.max(this.timelinePos,a.start),a.end);const i=a.event;if(void 0===n){const t=gZ(i,(n=this.schedule.findAssetIndex(i,this.timelinePos))-1);if(i.isAssetPastPlayoutLimit(t))return void this.advanceAfterAssetEnded(i,e,n);n=t}const o=this.waitingItem;this.assetsBuffered(a,s)||this.setBufferingItem(a);let l=this.preloadAssets(i,n);if(this.eventItemsMatch(a,o||r)||(this.waitingItem=a,this.log("INTERSTITIAL_STARTED ".concat(xZ(a)," ").concat(i.appendInPlace?"append in place":"")),this.hls.trigger(NV.INTERSTITIAL_STARTED,{event:i,schedule:t.slice(0),scheduleIndex:e})),!i.assetListLoaded)return void this.log("Waiting for ASSET-LIST to complete loading ".concat(i));if(i.assetListLoader&&(i.assetListLoader.destroy(),i.assetListLoader=void 0),!s)return void this.log("Waiting for attachMedia to start Interstitial ".concat(i));this.waitingItem=this.endedItem=null,this.playingItem=a;const c=i.assetList[n];if(!c){const r=t[e+1],a=this.media;return r&&a&&!this.isInterstitial(r)&&a.currentTime<r.start&&(a.currentTime=this.timelinePos=r.start),void this.advanceAfterAssetEnded(i,e,n||0)}if(l||(l=this.getAssetPlayer(c.identifier)),null===l||l.destroyed){const e=i.assetList.length;this.warn("asset ".concat(n+1,"/").concat(e," player destroyed ").concat(i)),l=this.createAssetPlayer(i,c,n)}if(!this.eventItemsMatch(a,this.bufferingItem)&&i.appendInPlace&&this.isAssetBuffered(c))return;this.startAssetPlayer(l,n,t,e,s),this.shouldPlay&&kZ(l.media)}else null!==a?(this.resumePrimary(a,e,r),this.shouldPlay&&kZ(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e,t;return null==(e=this.mediaSelection)||null==(t=e.main)?void 0:t.details}get primaryLive(){var e;return!(null==(e=this.primaryDetails)||!e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log("resuming ".concat(xZ(e))),null==(r=this.detachedData)||!r.mediaSource){let n=this.timelinePos;(n<e.start||n>=e.end)&&(n=this.getPrimaryResumption(e,t),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;const i=this.schedule.items;i&&(this.log("INTERSTITIALS_PRIMARY_RESUMED ".concat(xZ(e))),this.hls.trigger(NV.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(n<e.fragmentStart||n>e.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return uY.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}
2startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs(((null==(n=r.mainForwardBufferInfo)?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(NV.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(NV.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level)return;const n=this.hls.levels[t.level],r=GV(GV({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=GV(GV({},this.altSelection),{},{audio:n}));const i=GV(GV({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=GV(GV({},this.altSelection),{},{subtitles:n}));const i=GV(GV({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=yq(t);this.playerQueue.forEach((e=>e.hls.setAudioOption(t)||e.hls.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=yq(t);this.playerQueue.forEach((e=>e.hls.setSubtitleOption(t)||-1!==t.id&&e.hls.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){const r=t[e];if(r.cue.post){var n;const e=this.schedule.findEventIndex(r.identifier),t=null==(n=this.schedule.items)?void 0:n[e];this.isInterstitial(t)&&this.eventItemsMatch(t,this.bufferingItem)&&this.bufferedToItem(t,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){return n[this.findItemIndex(e,t)]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach(((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)}));const t=e.end+.25,n=uY.bufferInfo(this.primaryMedia,t,0);(n.end>t||(n.nextStart||0)>t)&&(this.attachPrimary(t,null),this.flushFrontBuffer(t))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=uY.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(1===t.length&&this.itemsMatch(t[0],i))return void(this.bufferedPos=e);const a=this.playingItem,s=this.findItemIndex(a);let o=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var l,c;const n=this.findItemIndex(i),r=Math.min(n+1,t.length-1),a=t[r];if((-1===o&&i&&e>=i.end||null!=(l=a.event)&&l.appendInPlace&&e+.01>=a.start)&&(o=r),r-s>1&&!1===(null==i||null==(c=i.event)?void 0:c.appendInPlace))return;if(this.bufferedPos=e,o>n&&o>s)this.bufferedToItem(a);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&a.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(a)&&this.preloadAssets(a.event,0)}}else n&&a&&!this.itemsMatch(a,i)&&(o===s?this.bufferedToItem(a):o===s+1&&this.bufferedToItem(t[o]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some((e=>{const n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))}))}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;
2const a=this.isInterstitial(e),s=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const o=s?s.remaining:t?t.end-this.timelinePos:0;this.log("INTERSTITIALS_BUFFERED_TO_BOUNDARY ".concat(xZ(e))+(t?" (".concat(o.toFixed(2)," remaining)"):"")),this.playbackDisabled||(a?e.event.assetList.forEach((e=>{const t=this.getAssetPlayer(e.identifier);t&&t.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering())))),this.hls.trigger(NV.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;const t=this.detachedData;if(t)if(t.mediaSource){const t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e);else this.preloadPrimary(e)}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=0===n.assetList.length&&!n.assetListLoader,i=n.cue.once;if(r||!i){const e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){const r=n.assetList[t],i=this.primaryMedia;r&&i&&this.bufferAssetPlayer(e,i)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=0===r&&!e.assetListLoader,a=e.cue.once;if(i){const i=e.timelineStart;if(e.appendInPlace){var s;const t=this.playingItem;this.isInterstitial(t)||(null==t||null==(s=t.nextEvent)?void 0:s.identifier)!==e.identifier||this.flushFrontBuffer(i+.25)}let a,o=0;if(!this.playingItem&&this.primaryLive&&(o=this.hls.startPosition,-1===o&&(o=this.hls.liveSyncPosition||0)),o&&!e.cue.pre&&!e.cue.post){const e=o-i;e>0&&(a=Math.round(1e3*e)/1e3)}if(this.log("Load interstitial asset ".concat(t+1,"/").concat(n?1:r," ").concat(e).concat(a?" live-start: ".concat(o," start-offset: ").concat(a):"")),n)return this.createAsset(e,0,0,i,e.duration,n);const l=this.assetListLoader.loadAssetList(e,a);l&&(e.assetListLoader=l)}else if(!a&&r){for(let n=t;n<r;n++){const t=e.assetList[n],r=this.getAssetPlayerQueueIndex(t.identifier);-1!==r&&!this.playerQueue[r].destroyed||t.error||this.createAssetPlayer(e,t,n)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log("Removing front buffer starting at ".concat(e));Object.keys(t).forEach((t=>{this.hls.trigger(NV.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t)for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n];return null}createAsset(e,t,n,r,i,a){const s={parentIdentifier:e.identifier,identifier:hZ(e,a,t),duration:i,startOffset:n,timelineStart:r,uri:a};return this.createAssetPlayer(e,s,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let a=i.videoPreference;const s=r.loadLevelObj||r.levels[r.currentLevel];(a||s)&&(a=UV({},a),s.videoCodec&&(a.videoCodec=s.videoCodec),s.videoRange&&(a.allowedVideoRanges=[s.videoRange]));const o=r.audioTracks[r.audioTrack],l=r.subtitleTracks[r.subtitleTrack];let c=0;if(this.primaryLive||e.appendInPlace){const e=this.timelinePos-t.timelineStart;if(e>1){const n=t.duration;n&&e<n&&(c=e)}}const d=t.identifier,u=GV(GV({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:d,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:c,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:a,audioPreference:o||i.audioPreference,subtitlePreference:l||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(u.timelineOffset=t.timelineStart));const h=u.cmcd;
2null!=h&&h.sessionId&&h.contentId&&(u.cmcd=UV({},h,{contentId:cZ(t.uri)})),this.getAssetPlayer(d)&&this.warn("Duplicate date range identifier ".concat(e," and asset ").concat(d));const p=new bZ(this.HlsPlayerClass,u,e,t);this.playerQueue.push(p),e.assetList[n]=t;const m=r=>{if(r.live){const t=new Error("Interstitials MUST be VOD assets ".concat(e)),r={fatal:!0,type:jV.OTHER_ERROR,details:AV.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};return void this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,t.message)}const i=r.edge-r.fragmentStart,a=t.duration;(null===a||i>a)&&(this.log('Interstitial asset "'.concat(d,'" duration change ').concat(a," > ").concat(i)),t.duration=i,this.updateSchedule())};p.on(NV.LEVEL_UPDATED,((e,t)=>{let{details:n}=t;return m(n)})),p.on(NV.LEVEL_PTS_UPDATED,((e,t)=>{let{details:n}=t;return m(n)}));const f=(e,t)=>{const n=this.getAssetPlayer(d);if(n&&t.tracks){n.off(NV.BUFFER_CODECS,f),n.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};p.on(NV.BUFFER_CODECS,f);const g=()=>{var n;const r=this.getAssetPlayer(d);if(this.log("buffered to end of asset ".concat(r)),!r)return;const i=this.schedule.findEventIndex(e.identifier),a=null==(n=this.schedule.items)?void 0:n[i];if(this.isInterstitial(a)){const n=e.findAssetIndex(t),r=gZ(e,n);if(e.isAssetPastPlayoutLimit(r)){var s;const e=null==(s=this.schedule.items)?void 0:s[i+1];e&&this.bufferedToItem(e)}else this.bufferedToItem(a,r)}};p.on(NV.BUFFERED_TO_END,g);const v=t=>()=>{if(!this.getAssetPlayer(d))return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return p.once(NV.MEDIA_ENDED,v(n)),p.once(NV.PLAYOUT_LIMIT_REACHED,v(1/0)),p.on(NV.ERROR,((t,r)=>{const i=this.getAssetPlayer(d);if(r.details!==AV.BUFFER_STALLED_ERROR)this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,"Asset player error ".concat(r.error," ").concat(e));else if(null!=i&&i.media){const t=i.currentTime,n=i.duration-t;t&&e.appendInPlace&&n/i.media.playbackRate<.5?(this.log("Advancing buffer past end of asset ".concat(d," ").concat(e," at ").concat(i.media.currentTime)),g()):(this.warn("Stalled at ".concat(t," of ").concat(t+n," in asset ").concat(d," ").concat(e)),this.onTimeupdate(),this.checkBuffer(!0))}})),p.on(NV.DESTROYING,(()=>{if(!this.getAssetPlayer(d))return;const t=new Error("Asset player destroyed unexpectedly ".concat(d)),r={fatal:!0,type:jV.OTHER_ERROR,details:AV.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,t.message)})),this.log("INTERSTITIAL_ASSET_PLAYER_CREATED ".concat(vZ(t))),this.hls.trigger(NV.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:p}),p}clearInterstitial(e,t){e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,t)})),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(-1!==t){this.log('reset asset player "'.concat(e,'" after error'));const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(-1!==n){this.log('clear asset player "'.concat(e,'" toSegment: ').concat(t?xZ(t):t));const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:a,assetItem:s,assetId:o}=e,l=a.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=s,c&&c.identifier===o||(c&&(this.clearAssetPlayer(c.identifier,n[r]),delete c.error),this.log("INTERSTITIAL_ASSET_STARTED ".concat(t+1,"/").concat(l," ").concat(vZ(s))),this.hls.trigger(NV.INTERSTITIAL_ASSET_STARTED,{asset:s,assetListIndex:t,event:a,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:a}=e,s=this.schedule.findEventIndex(i.identifier),o=null==(n=this.schedule.items)?void 0:n[s];if(!o)return;this.setBufferingItem(o),this.bufferingAsset=a;
2const l=this.getBufferingPlayer();if(l===e)return;const c=i.appendInPlace;if(c&&!1===(null==l?void 0:l.interstitial.appendInPlace))return;const d=(null==l?void 0:l.tracks)||(null==(r=this.detachedData)?void 0:r.tracks)||this.requiredTracks;if(c&&a!==this.playingAsset){if(!e.tracks)return;if(d&&!QV(d,e.tracks)){const t=new Error("Asset ".concat(vZ(a)," SourceBuffer tracks ('").concat(Object.keys(e.tracks),"') are not compatible with primary content tracks ('").concat(Object.keys(d),"')")),n={fatal:!0,type:jV.OTHER_ERROR,details:AV.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},r=i.findAssetIndex(a);return void this.handleAssetItemError(n,i,s,r,t.message)}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===AV.BUFFER_STALLED_ERROR)return;const a=t.assetList[r];this.warn("INTERSTITIAL_ASSET_ERROR ".concat(a?vZ(a):a," ").concat(e.error));const s=null==a?void 0:a.identifier,o=this.getAssetPlayerQueueIndex(s),l=this.playerQueue[o]||null,c=this.schedule.items,d=UV({},e,{fatal:!1,errorAction:Gq(!0),asset:a,assetListIndex:r,event:t,schedule:c,scheduleIndex:n,player:l});if(this.hls.trigger(NV.INTERSTITIAL_ASSET_ERROR,d),!e.fatal)return;const u=this.playingAsset,h=new Error(i);if(a&&(this.clearAssetPlayer(s,null),a.error=h),t.assetList.some((e=>!e.error))){for(let e=r;e<t.assetList.length;e++)this.resetAssetPlayer(t.assetList[e].identifier);this.updateSchedule()}else t.error=h;t.error?this.primaryFallback(t):u&&u.identifier===s&&this.advanceAfterAssetEnded(t,n,r)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log('Fallback to primary from event "'.concat(e.identifier,'" start: ').concat(t," pos: ").concat(this.timelinePos," playing: ").concat(n?xZ(n):"<none>"," error: ").concat(e.error));let r=this.timelinePos;-1===r&&(r=this.hls.startPosition);const i=this.updateItem(n,r);this.itemsMatch(n,i)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));const a=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(a)}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,a=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const s=r.timelineStart,o=r.duration;let l=0;a.forEach(((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(r,t,l,s+l,n,e.URI),l+=n})),r.duration=l,this.log("Loaded asset-list with duration: ".concat(l," (was: ").concat(o,") ").concat(r));const c=this.waitingItem,d=(null==c?void 0:c.event.identifier)===i;this.updateSchedule();const u=null==(n=this.bufferingItem)?void 0:n.event;if(d){var h;const e=this.schedule.findEventIndex(i),t=null==(h=this.schedule.items)?void 0:h[e];if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return r.error=new Error("Interstitial no longer within playback range ".concat(this.timelinePos," ").concat(r)),void this.primaryFallback(r)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==u?void 0:u.identifier)===i&&u.appendInPlace){const e=r.assetList[0],t=this.getAssetPlayer(e.identifier),n=this.primaryMedia;e&&t&&n&&this.bufferAssetPlayer(t,n)}}onError(e,t){switch(t.details){case AV.ASSET_LIST_PARSING_ERROR:case AV.ASSET_LIST_LOAD_ERROR:case AV.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&this.primaryFallback(e);break}case AV.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function E$(e){return e&&"object"===typeof e?Array.isArray(e)?e.map(E$):Object.keys(e).reduce(((t,n)=>(t[n]=E$(e[n]),t)),{}):e}function j$(e,t){const n=e.loader;if(n!==x$&&n!==T$)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ps){}return!1})()&&(e.loader=x$,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class A$ extends lY{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(NV.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;
vendor: 15,366 bytes, line 2
2e&&(e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;const n=this.media=t.media;eZ(n,"playing",this.onMediaPlaying),eZ(n,"waiting",this.onMediaWaiting),eZ(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(tZ(n,"playing",this.onMediaPlaying),tZ(n,"waiting",this.onMediaWaiting),tZ(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=null==(n=this.hls)?void 0:n.config;if(!i)return;const a=this.media;if(!a)return;const{seeking:s}=a,o=this.seeking&&!s,l=!this.seeking&&s,c=a.paused&&!s||a.ended||0===a.playbackRate;if(this.seeking=s,e!==t)return t&&(this.ended=0),this.moved=!0,s||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!c&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(l||o)return void(o&&this.stallResolved(e));if(c)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&a.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(NV.MEDIA_ENDED,{stalled:!1})));if(!uY.getBuffered(a).length)return void(this.nudgeRetry=0);const d=uY.bufferInfo(a,e,0),u=d.nextStart||0,h=this.fragmentTracker;if(s&&h&&this.hls){const t=N$(this.hls.inFlightFragments,e),n=d.len>2,r=!u||t||u-e>2&&!h.getPartialFragment(e);if(n||r)return;this.moved=!1}const p=null==(r=this.hls)?void 0:r.latestLevelDetails;if(!this.moved&&null!==this.stalled&&h){if(!(d.len>0)&&!u)return;const t=Math.max(u,d.start||0)-e,n=!(null==p||!p.live)?2*p.targetduration:2,r=h.getPartialFragment(e);if(t>0&&(t<=n||r))return void(a.paused||this._trySkipBufferHole(r))}const m=i.detectStallWithCurrentTimeMs,f=self.performance.now(),g=this.waiting;let v=this.stalled;if(null===v){if(!(g>0&&f-g<m))return void(this.stalled=f);v=this.stalled=g}const b=f-v;if(!s&&(b>=m||g)&&this.hls){var y;if("ended"===(null==(y=this.mediaSource)?void 0:y.readyState)&&(null==p||!p.live)&&Math.abs(e-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(NV.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(d),!this.media||!this.hls)return}const x=uY.bufferInfo(a,e,i.maxBufferHole);this._tryFixBufferStall(x,b,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log("playback not stuck anymore @".concat(e,", after ").concat(Math.round(n),"ms")),this.stallReported=!1,this.waiting=0,this.hls.trigger(NV.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&r&&r.length>1&&e>r.end(0)){const n=uY.bufferedInfo(uY.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=uY.timeRangesToArray(r),i=uY.bufferedInfo(n,t,0).bufferedIndex;if(i>-1&&i<n.length-1){const t=uY.bufferedInfo(n,e,0).bufferedIndex,r=n[i].end,a=n[i+1].start;if((-1===t||t>i)&&a-r<1&&e-r<2){const n=new Error("nudging playhead to flush pipeline after video hole. currentTime: ".concat(e," hole: ").concat(r," -> ").concat(a," buffered index: ").concat(t));this.warn(n.message),this.media.currentTime+=1e-6;const i=this.fragmentTracker.getPartialFragment(e)||void 0,s=uY.bufferInfo(this.media,e,0);this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:i,buffer:s.len,bufferInfo:s})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:a,media:s}=this,o=null==(r=this.hls)?void 0:r.config;if(!s||!a||!o)return;const l=null==(i=this.hls)?void 0:i.latestLevelDetails,c=a.getPartialFragment(n);if(c||null!=l&&l.live&&n<l.fragmentStart){if(this._trySkipBufferHole(c)||!this.media)return}const d=e.buffered,u=this.adjacentTraversal(e,n);(d&&d.length>1&&e.len>o.maxBufferHole||e.nextStart&&(e.nextStart-n<o.maxBufferHole||u))&&(t>1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const e=n.getFragAtPos(t,DV),i=n.getFragAtPos(r,DV);if(e&&i)return i.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&null!==i&&n&&t){this.stallReported=!0;const r=new Error("Playback stalling at @".concat(n.currentTime," due to low buffer (").concat(gq(e),")"));this.warn(r.message),t.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=null==(t=this.hls)?void 0:t.config;if(!r||!n||!i)return 0;const a=r.currentTime,s=uY.bufferInfo(r,a,0),o=a<s.start?s.start:s.nextStart;if(o&&this.hls){const t=s.len<=i.maxBufferHole,c=s.len>0&&s.len<1&&r.readyState<3,d=o-a;if(d>0&&(t||c)){if(d>i.maxBufferHole){let t=!1;if(0===a){const e=n.getAppendedFrag(0,DV);e&&o<e.end&&(t=!0)}if(!t){const t=e||n.getAppendedFrag(a,DV);if(t){var l;if(null==(l=this.hls.loadLevelObj)||!l.details)return 0;if(N$(this.hls.inFlightFragments,o))return 0;let e=!1,r=t.end;for(;r<o;){const t=n.getAppendedFrag(r,DV)||n.getPartialFragment(r);if(!t){e=!0;break}r+=t.duration}if(e)return 0}}}const t=Math.max(o+.05,a+.1);if(this.warn("skipping hole, adjusting currentTime from ".concat(a," to ").concat(t)),this.moved=!0,r.currentTime=t,null==e||!e.gap){const n=new Error("fragment loaded with buffer holes, seeking from ".concat(a," to ").concat(t));this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:e||void 0,buffer:s.len,bufferInfo:s})}return t}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=null==t?void 0:t.config;if(!n||!i)return 0;const a=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const s=a+(r+1)*i.nudgeOffset,o=new Error("Nudging 'currentTime' from ".concat(a," to ").concat(s));this.warn(o.message),n.currentTime=s,t.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1,buffer:e.len,bufferInfo:e})}else{const n=new Error("Playhead still not moving while enough data buffered @".concat(a," after ").concat(i.nudgeMaxRetry," nudges"));this.error(n.message),t.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.BUFFER_STALLED_ERROR,error:n,fatal:!0,buffer:e.len,bufferInfo:e})}}}function N$(e,t){const n=P$(e.main);if(n&&n.start<=t)return n;const r=P$(e.audio);return r&&r.start<=t?r:null}function P$(e){if(!e)return null;switch(e.state){case kX:case SX:case NX:case PX:return null}return e.frag}function R$(){if("undefined"!==typeof self)return self.VTTCue||self.TextTrackCue}function L$(e,t,n,r,i){let a=new e(t,n,"");try{a.value=r,i&&(a.type=i)}catch(Ps){a=new e(t,n,gq(i?GV({type:i},r):r))}return a}const I$=(()=>{const e=R$();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(Ps){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class D${constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(NV.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(NV.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(NV.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(NV.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(NV.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,!1===(null==(n=t.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.removeCues&&sZ(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if("metadata"===n.kind&&"id3"===n.label)return iZ(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=R$();if(a)for(let s=0;s<i.length;s++){const e=i[s].type;if(e===cJ.emsg&&!n||!r)continue;const t=aJ(i[s].data);if(t){const n=i[s].pts;let r=n+i[s].duration;r>I$&&(r=I$);r-n<=0&&(r=n+.25);for(let i=0;i<t.length;i++){const s=t[i];if(!sJ(s)){this.updateId3CueEnds(n,e);const t=L$(a,n,r,s,e);t&&this.id3Track.addCue(t)}}}}}updateId3CueEnds(e,t){var n;const r=null==(n=this.id3Track)?void 0:n.cues;if(r)for(let i=r.length;i--;){const n=r[i];n.type===t&&n.startTime<e&&n.endTime===I$&&(n.endTime=e)}}onBufferFlushing(e,t){let{startOffset:n,endOffset:r,type:i}=t;const{id3Track:a,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:l}}=s;if(a&&(o||l)){let e;e="audio"===i?e=>e.type===cJ.audioId3&&l:"video"===i?e=>e.type===cJ.emsg&&o:e=>e.type===cJ.audioId3&&l||e.type===cJ.emsg&&o,oZ(a,n,r,e)}}onLevelUpdated(e,t){let{details:n}=t;this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let a=this.dateRangeCuesAppended;var s;if(n&&t)if(null!=(s=n.cues)&&s.length){const e=Object.keys(a).filter((e=>!i.includes(e)));for(let t=e.length;t--;){const r=e[t],i=a[r].cues;delete a[r],Object.keys(i).forEach((e=>{try{const t=i[e];t.removeEventListener("enter",this.onEventCueEnter),n.removeCue(t)}catch(Ps){}}))}}else a=this.dateRangeCuesAppended={};const o=e.fragments[e.fragments.length-1];if(0===i.length||!TV(null==o?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=R$();for(let d=0;d<i.length;d++){const e=i[d],t=r[e],n=t.startTime,s=a[e],o=(null==s?void 0:s.cues)||{};let u=(null==s?void 0:s.durationKnown)||!1,h=I$;const{duration:p,endDate:m}=t;if(m&&null!==p)h=n+p,u=!0;else if(t.endOnNext&&!u){const e=i.reduce(((e,n)=>{if(n!==t.id){const i=r[n];if(i.class===t.class&&i.startDate>t.startDate&&(!e||t.startDate<e.startDate))return i}return e}),null);e&&(h=e.startTime,u=!0)}const f=Object.keys(t.attr);for(let r=0;r<f.length;r++){const i=f[r];if("ID"===(c=i)||"CLASS"===c||"CUE"===c||"START-DATE"===c||"DURATION"===c||"END-DATE"===c||"END-ON-NEXT"===c)continue;const a=o[i];if(a)u&&!s.durationKnown?a.endTime=h:Math.abs(a.startTime-n)>.01&&(a.startTime=n,a.endTime=h);else if(l){let r=t.attr[i];xY(i)&&(r=eK(r));const a=L$(l,n,h,{key:i,data:r},cJ.dateRange);a&&(a.id=e,this.id3Track.addCue(a),o[i]=a,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==i&&"X-ASSET-URL"!==i||a.addEventListener("enter",this.onEventCueEnter)))}}a[e]={cues:o,dateRange:t,durationKnown:u}}var c}}class O${constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||1===i||!t.live)return;const a=this.targetLatency;if(null===a)return;const s=n-a;if(s<Math.min(this.maxLatency,a+t.targetduration)&&s>.05&&this.forwardBufferLength>1){const t=Math.min(2,Math.max(1,i)),n=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20,r=Math.min(t,Math.max(1,n));this.changeMediaPlaybackRate(e,r)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||null===this.hls)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:a,lowLatencyMode:s}=this.config,o=this.hls.userConfig;let l=s&&n||t;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==i?i:a*r);const c=r;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,c)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;const n=this.levelDetails;if(null===n)return null;const r=n.edge,i=e-t-this.edgeStalled,a=r-n.totalduration,s=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(a,i),s)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e)return 0;const t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(NV.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;
2e&&(e.off(NV.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(NV.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(NV.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,t){let{details:n}=t;n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===AV.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug("[latency-controller]: latency=".concat(this.latency.toFixed(3),", targetLatency=").concat(null==(r=this.targetLatency)?void 0:r.toFixed(3),", forwardBufferLength=").concat(this.forwardBufferLength.toFixed(3),": adjusting playback rate from ").concat(e.playbackRate," to ").concat(t)),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class M$ extends dQ{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.on(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.on(NV.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.off(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(NV.FRAG_BUFFERED,this.onFragBuffered,this),e.off(NV.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((e=>{e.loadError=0,e.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},a={};let s=!1,o=!1,l=!1;t.levels.forEach((e=>{const t=e.attrs;let{audioCodec:c,videoCodec:d}=e;c&&(e.audioCodec=c=YK(c,n)||void 0),d&&(d=e.videoCodec=function(e){const t=e.split(",");for(let n=0;n<t.length;n++){const e=t[n].split(".");e.length>2&&"avc1"===e[0]&&(t[n]="avc1.".concat(parseInt(e[1]).toString(16)).concat(("000"+parseInt(e[2]).toString(16)).slice(-4)))}return t.join(",")}(d));const{width:u,height:h,unknownCodecs:p}=e;let m=p?p.length:0;if(p)for(let n=m;n--;){const t=p[n];this.isAudioSupported(t)?(e.audioCodec=c=c?"".concat(c,",").concat(t):t,m--,BK.audio[c.substring(0,4)]=2):this.isVideoSupported(t)&&(e.videoCodec=d=d?"".concat(d,",").concat(t):t,m--,BK.video[d.substring(0,4)]=2)}if(s||(s=!(!u||!h)),o||(o=!!d),l||(l=!!c),m||c&&!this.isAudioSupported(c)||d&&!this.isVideoSupported(d))return void this.log('Some or all CODECS not supported "'.concat(t.CODECS,'"'));const{CODECS:f,"FRAME-RATE":g,"HDCP-LEVEL":v,"PATHWAY-ID":b,RESOLUTION:y,"VIDEO-RANGE":x}=t,S="".concat(b||".","-"),k="".concat(S).concat(e.bitrate,"-").concat(y,"-").concat(g,"-").concat(f,"-").concat(x,"-").concat(v);if(i[k])if(i[k].uri===e.url||e.attrs["PATHWAY-ID"])i[k].addGroupId("audio",t.AUDIO),i[k].addGroupId("text",t.SUBTITLES);else{const t=a[k]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);i[k]=n,r.push(n)}else{const t=this.createLevel(e);i[k]=t,a[k]=1,r.push(t)}})),this.filterAndSortMediaOptions(r,t,s,o,l)}createLevel(e){const t=new pq(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const e=new Error('SUPPLEMENTAL-CODECS not supported "'.concat(n.videoCodec,'"'));this.log(e.message),t.supportedResult=tq(e,[])}return t}isAudioSupported(e){return zK(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return zK(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let a=[],s=[],o=e;if((n||r)&&i&&(o=o.filter((e=>{let{videoCodec:t,videoRange:n,width:r,height:i}=e;return(!!t||!(!r||!i))&&function(e){return!!e&&oq.indexOf(e)>-1}(n)}))),0===o.length)return void Promise.resolve().then((()=>
2{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n="one or more CODECS in variant not supported: ".concat(gq(t.levels.map((e=>e.attrs.CODECS)).filter(((e,t,n)=>n.indexOf(e)===t)))),this.warn(n),e+=" (".concat(n,")"));const r=new Error(e);this.hls.trigger(NV.ERROR,{type:jV.MEDIA_ERROR,details:AV.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:r,reason:n})}}));t.audioTracks&&(a=t.audioTracks.filter((e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),_$(a)),t.subtitles&&(s=t.subtitles,_$(s));const l=o.slice(0);o.sort(((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return oq.indexOf(e.videoRange)-oq.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const n=HK(e.videoCodec),r=HK(t.videoCodec);if(n!==r)return r-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=VK(e.codecSet),r=VK(t.codecSet);if(n!==r)return r-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));let c=l[0];if(this.steering&&(o=this.steering.filterParsedLevels(o),o.length!==l.length))for(let f=0;f<l.length;f++)if(l[f].pathwayId===o[0].pathwayId){c=l[f];break}this._levels=o;for(let f=0;f<o.length;f++)if(o[f]===c){var d;this._firstLevel=f;const e=c.bitrate,t=this.hls.bandwidthEstimate;if(this.log("manifest loaded, ".concat(o.length," level(s) found, first bitrate: ").concat(e)),void 0===(null==(d=this.hls.userConfig)?void 0:d.abrEwmaDefaultEstimate)){const n=Math.min(e,this.hls.config.abrEwmaDefaultEstimateMax);n>t&&t===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=n)}break}const u=i&&!r,h=this.hls.config,p=!(!h.audioStreamController||!h.audioTrackController),m={levels:o,audioTracks:a,subtitleTracks:s,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:p&&!u&&a.some((e=>!!e.url))};this.hls.trigger(NV.MANIFEST_PARSED,m)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const n=new Error("invalid level idx"),r=e<0;if(this.hls.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,a=t[e],s=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&r&&i===s)return;this.log("Switching to level ".concat(e," (").concat(a.height?a.height+"p ":"").concat(a.videoRange?a.videoRange+" ":"").concat(a.codecSet?a.codecSet+" ":"","@").concat(a.bitrate,")").concat(s?" with Pathway "+s:""," from level ").concat(n).concat(i?" with Pathway "+i:""));const o={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(NV.LEVEL_SWITCHING,o);const l=a.details;if(!l||l.live){const e=this.switchParams(a.uri,null==r?void 0:r.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter((e=>-1!==t.indexOf(e)));if(e.length<1)return void this.warn("pathwayPriority ".concat(e," should contain at least one pathway from list: ").concat(t));this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===RV&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,t){let{frag:n}=t;if(void 0!==n&&n.type===DV){const e=n.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return;const t=this._levels[n.level];null!=t&&t.loadError&&(this.log("Resetting level error count of ".concat(t.loadError," on frag buffered")),t.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,a=t.levelInfo;var s;if(!a)return this.warn("Invalid level index ".concat(r)),void(null!=(s=t.deliveryDirectives)&&s.skip&&(i.deltaUpdateFailed=!0));if(a===this.currentLevel||t.withoutMultiVariant){0===a.fragmentError&&(a.loadError=0);let e=a.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(r,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLo
2ading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],a=e.details,s=null==a?void 0:a.age;this.log("Loading level index ".concat(r).concat(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"").concat(i?" Pathway "+i:"").concat(s&&a.live?" age "+s.toFixed(1)+(a.type?" "+a.type||0:""):""," ").concat(n)),this.hls.trigger(NV.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;const n=this._levels.filter(((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((e=>e.level=-1))),!1)));mX(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(NV.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,t){let{levels:n}=t;this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(NV.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function _$(e){const t={};e.forEach((e=>{const n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}function F$(){return self.SourceBuffer||self.WebKitSourceBuffer}function B$(){if(!JV())return!1;const e=F$();return!e||e.prototype&&"function"===typeof e.prototype.appendBuffer&&"function"===typeof e.prototype.remove}class U$ extends IX{constructor(e,t,n){super(e,t,n,"stream-controller",DV),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const e=this.media,t=e?e.currentTime:null;if(null===t||!TV(t))return;if(this.log("Media seeked to ".concat(t.toFixed(3))),!this.getBufferedFrag(t))return;const n=this.getFwdBufferInfoAtPos(e,t,DV,0);null!==n&&0!==n.len?this.tick():this.warn("Main forward buffer length at ".concat(t,' on "seeked" event ').concat(n?n.len:"empty",")"))},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.on(NV.LEVEL_LOADING,this.onLevelLoading,this),e.on(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.on(NV.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(NV.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(NV.BUFFER_CREATED,this.onBufferCreated,this),e.on(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(NV.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(NV.MANIFEST_PARSED,this.onManifestParsed,this),e.off(NV.LEVEL_LOADED,this.onLevelLoaded,this),e.off(NV.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(NV.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(NV.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(NV.BUFFER_CREATED,this.onBufferCreated,this),e.off(NV.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(NV.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(NV.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}
vendor: 5,484 bytes, line 2
2startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=r.startLevel;-1===e&&(r.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=r.firstAutoLevel),r.nextLoadLevel=e,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log("Override startPosition with lastCurrentTime @".concat(n.toFixed(3))),e=n),this.state=kX,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=SX}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case LX:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=kX;break}if(this.hls.nextLoadLevel!==this.level){this.state=kX;break}break}case CX:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){const{levels:e,level:t}=this,n=null==e?void 0:e[t];this.resetStartWhenNotLoaded(n||null),this.state=kX}}}this.state===kX&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(null===t||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[i])return;const a=n[i],s=this.getMainFwdBufferInfo();if(null===s)return;const o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){const e={};return 2===this.altAudio&&(e.type="video"),this.hls.trigger(NV.BUFFER_EOS,e),void(this.state=NX)}if(!this.buffering)return;e.loadLevel!==i&&-1===e.manualLevel&&this.log("Adapting to level ".concat(i," from level ").concat(this.level)),this.level=e.nextLoadLevel=i;const l=a.details;if(!l||this.state===LX||this.waitForLive(a))return this.level=i,this.state=LX,void(this.startFragRequested=!1);const c=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(c>=d)return;this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);const u=this.backtrackFragment?this.backtrackFragment.start:s.end;let h=this.getNextFragment(u,l);if(this.couldBacktrack&&!this.fragPrevious&&h&&dK(h)&&this.fragmentTracker.getState(h)!==Kq){var p;const e=(null!=(p=this.backtrackFragment)?p:h).sn-l.startSN,t=l.fragments[e-1];t&&h.cc===t.cc&&(h=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,u)){if(!h.gap){const e=this.audioOnly&&!this.altAudio?sK:oK,t=(e===oK?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,DV)}h=this.getNextFragmentLoopLoading(h,l,s,DV,d)}h&&(!h.initSegment||h.initSegment.data||this.bitrateTest||(h=h.initSegment),this.loadFragment(h,a,u))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Wq||r===Vq?dK(e)?this.bitrateTest?(this.log("Fragment ".concat(e.sn," of level ").concat(e.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,DV)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(null!=t&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(null!=i&&i.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*i.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],r=this.fragLastKbps;n=r&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*r)+1:0}else n=0;const a=this.getBufferedFrag(t.currentTime+n);if(a){const e=this.followingBufferedFrag(a);if(e){this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,r=Math.max(a.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(r,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case wX:case TX:case CX:case jX:case AX:this.state=kX}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;eZ(n,"playing",this.onMediaPlaying),eZ(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(tZ(n,"playing",this.onMediaPlaying),tZ(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t);!!t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(NV.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;
2t.levels.forEach((e=>{const t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),r=r||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&r&&!function(){var e;const t=F$();return"function"===typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==kX)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=LX)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,a=t.level,s=t.details,o=s.totalduration;if(!r)return void this.warn("Levels were reset while loading level ".concat(a));this.log("Level ".concat(a," loaded [").concat(s.startSN,",").concat(s.endSN,"]").concat(s.lastPartSn?"[part-".concat(s.lastPartSn,"-").concat(s.lastPartIndex,"]"):"",", cc [").concat(s.startCC,", ").concat(s.endCC,"] duration:").concat(o));const l=t.levelInfo,c=this.fragCurrent;!c||this.state!==TX&&this.state!==CX||c.level!==t.level&&c.loader&&this.abortCurrentFrag();let d=0;if(s.live||null!=(n=l.details)&&n.live){var u;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;d=this.alignPlaylists(s,l.details,null==(u=this.levelLastLoaded)?void 0:u.details)}if(l.details=s,this.levelLastLoaded=l,i||this.setStartPosition(s,d),this.hls.trigger(NV.LEVEL_UPDATED,{details:s,level:a}),this.state===LX){if(this.waitForCdnTuneIn(s))return;this.state=kX}i&&s.live&&this.synchronizeToLiveEdge(s),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),a=e.fragmentStart,s=e.edge,o=i>=a-t.maxFragLookUpTolerance&&i<=s;if(null!==r&&n.duration>r&&(i<r||!o)){const a=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!o&&n.readyState<4||i<s-a)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn("Playback: ".concat(i.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(s,", reset currentTime to : ").concat(r.toFixed(3))),"buffered"===this.config.liveSyncMode){var l;const e=uY.bufferInfo(n,r,0);if(null==e||null==(l=e.buffered)||!l.length)return void(n.currentTime=r);if(e.start<=i)return void(n.currentTime=r);const{nextStart:t}=uY.bufferedInfo(e.buffered,i,0);t&&(n.currentTime=t)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:a}=this;if(!a)return void this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(n.sn," of level ").concat(n.level," will not be buffered"));const s=a[n.level];if(!s)return void this.warn("Level ".concat(n.level," not found on progress"));const o=s.details;if(!o)return this.warn("Dropping fragment ".concat(n.sn," of level ").concat(n.level," after level details were reset")),void this.fragmentTracker.removeFragment(n);const l=s.videoCodec,c=o.PTSKnown||!o.live,d=null==(t=n.initSegment)?void 0:t.data,u=this._getAudioCodec(s),h=this.transmuxer=this.transmuxer||new cQ(this.hls,DV,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=r?r.index:-1,m=-1!==p,f=new cY(n.level,n.sn,n.stats.chunkCount,i.byteLength,p,m),g=this.initPTS[n.cc];h.push(i,d,u,l,n,r,o.totalduration,c,f,g)}onAudioTrackSwitching(e,t){const n=this.hls,r=2===this.altAudio;if(Tq(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r)return this.fragmentTracker.removeAllFragments(),n.once(NV.BUFFER_FLUSHED,(()=>{var e;null==(e=this.hls)||e.trigger(NV.AUDIO_TRACK_SWITCHED,t)})),void n.trigger(NV.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(NV.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Tq(t.url,this.hls);if(n){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,a=!1;for(const s in n){const e=n[s];if("main"===e.id){if(i=s,r=e,"video"===s){const e=n[s];e&&(this.videoBuffer=e.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use ".concat(i,".buffered to schedule main fragment loading")),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===DV;if(i){if(this.fragContextChanged(n))return this.warn("Fragment ".concat(n.sn).concat(r?" p: "+r.index:""," of level ").concat(n.level," finished buffering, but was aborted. state: ").concat(this.state)),void(this.state===AX&&(this.state=kX));const e=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),dK(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const a=this.media;a&&(!this._hasEnoughToStart&&uY.getBuffered(a).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=PX;else switch(t.details){case AV.FRAG_GAP:case AV.FRAG_PARSING_ERROR:case AV.FRAG_DECRYPT_ERROR:case AV.FRAG_LOAD_ERROR:case AV.FRAG_LOAD_TIMEOUT:case AV.KEY_LOAD_ERROR:case AV.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(DV,t);break;case AV.LEVEL_LOAD_ERROR:case AV.LEVEL_LOAD_TIMEOUT:case AV.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==LX||(null==(n=t.context)?void 0:n.type)!==RV||(this.state=kX);break;case AV.BUFFER_ADD_CODEC_ERROR:case AV.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case AV.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case AV.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=kX,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,t){let{type:n}=t;if(n!==sK||!this.altAudio){const e=(n===oK?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,n,DV),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking)return void this.log("could not seek to ".concat(n,", already seeking at ").concat(t));const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),a=uY.getBuffered(e),s=a.length?a.start(0):0,o=s-n,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||o>0&&(o<l||this.loadingParts&&o<2*((null==i?void 0:i.partTarget)||0)))&&(this.log("adjusting start position by ".concat(o," to match buffer start")),n+=o,this.startPosition=n),t<n&&(this.log("seek to target start position ".concat(n," from current time ").concat(t," buffer start ").concat(s)),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then((e=>{const{hls:n}=this,r=null==e?void 0:e.frag;if(!r||this.fragContextChanged(r))return;t.fragmentError=0,this.state=kX,this.startFragRequested=!1,this.bitrateTest=!1;const i=r.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(NV.FRAG_LOADED,e),r.bitrateTest=!1}))}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,s=this.getCurrentContext(a);if(!s)return void this.resetWhenMissingContext(a);const{frag:o,part:l,level:c}=s,{video:d,text:u,id3:h,initSegment:p}=i,{details:m}=c,f=this.altAudio?void 0:i.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=jX,p){if(null!=p&&p.tracks){const e=o.initSegment||o;this._bufferInitSegment(c,p.tracks,e,a),r.trigger(NV.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:p.tracks})}const e=p.initPTS,t=p.timescale,i=this.initPTS[o.cc];!TV(e)||i&&i.baseTime===e&&i.timescale===t||(this.initPTS[o.cc]={baseTime:e,timescale:t},r.trigger(NV.INIT_PTS_FOUND,{frag:o,id:n,initPTS:e,timescale:t}))}
vendor: 5,861 bytes, line 2
2if(d&&m){f&&"audiovideo"===d.type&&this.logMuxedErr(o);const e=m.fragments[o.sn-1-m.startSN],t=o.sn===m.startSN,n=!e||o.cc>e.cc;if(!1!==i.independent){const{startPTS:e,endPTS:r,startDTS:i,endDTS:s}=d;if(l)l.elementaryStreams[d.type]={startPTS:e,endPTS:r,startDTS:i,endDTS:s};else if(d.firstKeyFrame&&d.independent&&1===a.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){const i=this.getMainFwdBufferInfo(),a=(i?i.end:this.getLoadPosition())+this.config.maxBufferHole,l=d.firstKeyFramePTS?d.firstKeyFramePTS:e;if(!t&&a<l-this.config.maxBufferHole&&!n)return void this.backtrack(o);n&&(o.gap=!0),o.setElementaryStreamInfo(d.type,o.start,r,o.start,s,!0)}else t&&e-(m.appliedTimelineOffset||0)>2&&(o.gap=!0);o.setElementaryStreamInfo(d.type,e,r,i,s),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(d,o,l,a,t||n)}else{if(!t&&!n)return void this.backtrack(o);o.gap=!0}}if(f){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=f;l&&(l.elementaryStreams[sK]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),o.setElementaryStreamInfo(sK,e,t,n,r),this.bufferFragmentData(f,o,l,a)}if(m&&null!=h&&null!=(t=h.samples)&&t.length){const e={id:n,frag:o,details:m,samples:h.samples};r.trigger(NV.FRAG_PARSING_METADATA,e)}if(m&&u){const e={id:n,frag:o,details:m,samples:u.samples};r.trigger(NV.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn("".concat(dK(e)?"Media":"Init"," segment with muxed audiovideo where only video expected: ").concat(e.url))}_bufferInitSegment(e,t,n,r){if(this.state!==jX)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:a,audiovideo:s}=t;if(i){const n=e.audioCodec;let r=XK(i.codec,n);"mp4a"===r&&(r="mp4a.40.5");const a=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){r&&(r=-1!==r.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=i.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===a.indexOf("firefox")&&(r="mp4a.40.5")}r&&-1!==r.indexOf("mp4a.40.5")&&-1!==a.indexOf("android")&&"audio/mpeg"!==i.container&&(r="mp4a.40.2",this.log("Android: force audio codec to ".concat(r))),n&&n!==r&&this.log('Swapping manifest audio codec "'.concat(n,'" for "').concat(r,'"')),i.levelCodec=r,i.id=DV,this.log("Init audio buffer, container:".concat(i.container,", codecs[selected/level/parsed]=[").concat(r||"","/").concat(n||"","/").concat(i.codec,"]")),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=DV;const n=a.codec;if(4===(null==n?void 0:n.length))switch(n){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e"}this.log("Init video buffer, container:".concat(a.container,", codecs[level/parsed]=[").concat(e.videoCodec||"","/").concat(n,"]").concat(a.codec!==n?" parsed-corrected="+a.codec:"").concat(a.supplemental?" supplemental="+a.supplemental:"")),delete t.audiovideo}s&&(this.log("Init audiovideo buffer, container:".concat(s.container,", codecs[level/parsed]=[").concat(e.codecs,"/").concat(s.codec,"]")),delete t.video,delete t.audio);const o=Object.keys(t);if(o.length){if(this.hls.trigger(NV.BUFFER_CODECS,t),!this.hls)return;o.forEach((e=>{const i=t[e].initSegment;null!=i&&i.byteLength&&this.hls.trigger(NV.BUFFER_APPENDING,{type:e,data:i,frag:n,part:null,chunkMeta:r,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,DV)}get maxBufferLength(){const{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=kX}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const n=e.currentTime;if(uY.isBuffered(e,n)?t=this.getAppendedFrag(n):uY.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(NV.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(NV.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return TV(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(TV(t)){const e=this.getLevelDetails(),n=this.currentFrag||(e?Eq(null,e.fragments,t):null);if(n){const e=n.programDateTime;if(null!==e){const r=e+1e3*(t-n.start);return new Date(r)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class z${constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==(null==(t=r.context)?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:AV.KEY_LOAD_ERROR,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;
2return new oY({type:jV.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const a=t[r];if(e.cc<=a.cc&&(!dK(e)||!dK(a)||e.sn<a.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(a).then((e=>{if(!this.emeController)return;a.setKeyFormat(e);const t=DY(e);return t?this.emeController.getKeySystemAccess([t]):void 0}))}if(this.config.requireKeySystemAccessOnStart){const e=MY(this.config);if(e.length)return this.emeController.getKeySystemAccess(e)}}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then((t=>this.loadInternal(e,t))):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const n=new Error(t?"Expected frag.decryptdata to be defined after setting format ".concat(t):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,AV.KEY_LOAD_ERROR,n))}const a=i.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,AV.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(a,'"'))));let s=this.keyUriToKeyInfo[a];if(null!=(n=s)&&n.decryptdata.key)return i.key=s.decryptdata.key,Promise.resolve({frag:e,keyInfo:s});var o;if(null!=(r=s)&&r.keyLoadPromise)switch(null==(o=s.mediaKeySessionContext)?void 0:o.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return s.keyLoadPromise.then((t=>(i.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:s})))}switch(s=this.keyUriToKeyInfo[a]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(s,e):this.loadKeyEME(s,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(s,e);default:return Promise.reject(this.createKeyLoadError(e,AV.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(i.method,'"'))))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const t=this.emeController.loadKey(n);if(t)return(e.keyLoadPromise=t.then((t=>(e.mediaKeySessionContext=t,n)))).catch((t=>{throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=new(0,n.loader)(n);return t.keyLoader=e.loader=r,e.keyLoadPromise=new Promise(((i,a)=>{const s={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},o=n.keyLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,r)=>{const{frag:s,keyInfo:o,url:l}=n;if(!s.decryptdata||o!==this.keyUriToKeyInfo[l])return a(this.createKeyLoadError(s,AV.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),r));o.decryptdata.key=s.decryptdata.key=new Uint8Array(e.data),s.keyLoader=null,o.loader=null,i({frag:s,keyInfo:o})},onError:(e,n,r,i)=>{this.resetLoader(n),a(this.createKeyLoadError(t,AV.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(e.code," loading key ").concat(e.text)),r,GV({url:s.url,data:void 0},e)))},onTimeout:(e,n,r)=>{this.resetLoader(n),a(this.createKeyLoadError(t,AV.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),r))},onAbort:(e,n,r)=>{this.resetLoader(n),a(this.createKeyLoadError(t,AV.INTERNAL_ABORTED,new Error("key loading aborted"),r))}};r.load(s,l,c)}))}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function G$(e){const{type:t}=e;switch(t){case LV:return OV;case IV:return MV;default:return DV}}function W$(e,t){let n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}class H${constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.on(NV.LEVEL_LOADING,this.onLevelLoading,this),e.on(NV.AU
vendor: 5,401 bytes, line 2
2DIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(NV.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(NV.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(NV.MANIFEST_LOADING,this.onManifestLoading,this),e.off(NV.LEVEL_LOADING,this.onLevelLoading,this),e.off(NV.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(NV.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(NV.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:PV,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:s,levelInfo:o}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:RV,url:a,deliveryDirectives:s,levelOrTrack:o})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:LV,url:i,deliveryDirectives:a,levelOrTrack:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:a,track:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:IV,url:i,deliveryDirectives:a,levelOrTrack:s})}onLevelsUpdated(e,t){const n=this.loaders[RV];if(n){const e=n.context;e&&!t.levels.some((t=>t===e.levelOrTrack))&&(n.abort(),delete this.loaders[RV])}}load(e){var t;const n=this.hls.config;let r,i=this.getInternalLoader(e);if(i){const t=this.hls.logger,n=i.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives))return void(n.url===e.url?t.log("[playlist-loader]: ignore ".concat(e.url," ongoing request")):t.log("[playlist-loader]: ignore ".concat(e.url," in favor of ").concat(n.url)));t.log("[playlist-loader]: aborting previous loader for type: ".concat(e.type)),i.abort()}if(r=e.type===PV?n.manifestLoadPolicy.default:UV({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),TV(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===RV&&null!==e.level?t=this.hls.levels[e.level].details:e.type===LV&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===IV&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,n=t.targetduration;if(e&&n){const t=1e3*Math.max(3*e,.8*n);r=UV({},r,{maxTimeToFirstByteMs:Math.min(t,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,r.maxTimeToFirstByteMs)})}}}const a=r.errorRetry||r.timeoutRetry||{},s={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},o={onSuccess:(e,t,n,r)=>{const i=this.getInternalLoader(n);this.resetInternalLoader(n.type);const a=e.data;0===a.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),KY.isMediaPlaylist(a)||n.type!==PV?this.handleTrackOrLevelPlaylist(e,t,n,r||null,i):this.handleMasterPlaylist(e,t,n,r)):this.handleManifestParsingError(e,n,new Error("no EXTM3U delimiter"),r||null,t)},onError:(e,t,n,r)=>{this.handleNetworkError(t,n,!1,e,r)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};i.load(e,s,o)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log("".concat(e?"auto":"force"," startLoad with configured startPosition ").concat(t)),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,a=e.data,s=W$(e,n),o=KY.parseMasterPlaylist(a,s);if(o.playlistParsingError)return void this.handleManifestParsingError(e,n,o.playlistParsingError,r,t);const{contentSteering:l,levels:c,sessionData:d,sessionKeys:u,startTimeOffset:h,variableList:p}=o;this.variableList=p;const{AUDIO:m=[],SUBTITLES:f,"CLOSED-CAPTIONS":g}=KY.parseMasterPlaylistMedia(a,s,o);if(m.length){m.some((e=>!e.url))||!c[0].audioCodec||c[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new yY({}),bitrate:0,url:""}))}i.trigger(NV.MANIFEST_LOADED,{levels:c,audioTracks:m,subtitles:f,captions:g,contentSteering:l,url:s,stats:t,networkDetails:r,sessionData:d,sessionKeys:u,startTimeOffset:h,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,r,i){const a=this.hls,{id:s,level:o,type:l}=n,c=W$(e,n),d=TV(o)?o:TV(s)?s:0,u=G$(n),h=KY.parseLevelPlaylist(e.data,c,d,u,0,this.variableList);if(l===PV){const e={attrs:new yY({}),bitrate:0,details:h,name:"",url:c};h.requestScheduled=t.loading.start+dX(h,0),a.trigger(NV.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:c,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=h,this.handlePlaylistLoaded(h,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(NV.ERROR,{type:jV.NETWORK_E
2RROR,details:AV.MANIFEST_PARSING_ERROR,fatal:t.type===PV,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a="A network ".concat(n?"timeout":"error"+(r?" (status "+r.code+")":"")," occurred while loading ").concat(e.type);e.type===RV?a+=": ".concat(e.level," id: ").concat(e.id):e.type!==LV&&e.type!==IV||(a+=" id: ".concat(e.id,' group-id: "').concat(e.groupId,'"'));const s=new Error(a);this.hls.logger.warn("[playlist-loader]: ".concat(a));let o=AV.UNKNOWN,l=!1;const c=this.getInternalLoader(e);switch(e.type){case PV:o=n?AV.MANIFEST_LOAD_TIMEOUT:AV.MANIFEST_LOAD_ERROR,l=!0;break;case RV:o=n?AV.LEVEL_LOAD_TIMEOUT:AV.LEVEL_LOAD_ERROR,l=!1;break;case LV:o=n?AV.AUDIO_TRACK_LOAD_TIMEOUT:AV.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case IV:o=n?AV.SUBTITLE_TRACK_LOAD_TIMEOUT:AV.SUBTITLE_LOAD_ERROR,l=!1}c&&this.resetInternalLoader(e.type);const d={type:jV.NETWORK_ERROR,details:o,fatal:l,url:e.url,loader:c,context:e,error:s,networkDetails:t,stats:i};if(r){const n=(null==t?void 0:t.url)||e.url;d.response=GV({url:n,data:void 0},r)}this.hls.trigger(NV.ERROR,d)}handlePlaylistLoaded(e,t,n,r,i,a){const s=this.hls,{type:o,level:l,id:c,groupId:d,deliveryDirectives:u}=r,h=W$(t,r),p=G$(r),m="number"===typeof r.level&&p===DV?l:void 0;if(!e.fragments.length){const a=e.playlistParsingError=new Error("No Segments found in Playlist");return void s.trigger(NV.ERROR,{type:jV.NETWORK_ERROR,details:AV.LEVEL_EMPTY_ERROR,fatal:!1,url:h,error:a,reason:a.message,response:t,context:r,level:m,parent:p,networkDetails:i,stats:n})}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const f=e.playlistParsingError;if(f){if(this.hls.logger.warn(f),!s.config.ignorePlaylistParsingErrors)return void s.trigger(NV.ERROR,{type:jV.NETWORK_ERROR,details:AV.LEVEL_PARSING_ERROR,fatal:!1,url:h,error:f,reason:f.message,response:t,context:r,level:m,parent:p,networkDetails:i,stats:n});e.playlistParsingError=null}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),o){case PV:case RV:s.trigger(NV.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||s.levels[0],level:m||0,id:c||0,stats:n,networkDetails:i,deliveryDirectives:u,withoutMultiVariant:o===PV});break;case LV:s.trigger(NV.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:c||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:u});break;case IV:s.trigger(NV.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:c||0,groupId:d||"",stats:n,networkDetails:i,deliveryDirectives:u})}}}class V${static get version(){return UX}static isMSESupported(){return B$()}static isSupported(){return function(){if(!B$())return!1;const e=JV();return"function"===typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((t=>e.isTypeSupported(WK(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(WK(t,"audio")))))}()}static getMediaSource(){return JV()}static get Events(){return NV}static get MetadataSchema(){return cJ}static get ErrorTypes(){return jV}static get ErrorDetails(){return AV}static get DefaultConfig(){return V$.defaultConfig?V$.defaultConfig:C$}static set DefaultConfig(e){V$.defaultConfig=e}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new BX,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=function(e,t,n){const r=KV();if("object"===typeof console&&!0===e||"object"===typeof e){const i=["debug","log","info","warn","error"];
vendor: 11,342 bytes, line 2
2i.forEach((t=>{r[t]=qV(t,e,n)}));try{r.log('Debug logs enabled for "'.concat(t,'" in hls.js version ',"1.6.7"))}catch(Ps){return KV()}i.forEach((t=>{YV[t]=qV(t,e)}))}else UV(YV,r);return r}(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=function(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=E$(e),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const a="".concat("level"===e?"playlist":e,"LoadPolicy"),s=void 0===t[a],o=[];i.forEach((n=>{const i="".concat(e,"Loading").concat(n),l=t[i];if(void 0!==l&&s){o.push(i);const e=r[a].default;switch(t[a]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&n.warn('hls.js config: "'.concat(o.join('", "'),'" setting(s) are deprecated, use "').concat(a,'": ').concat(gq(t[a])))})),GV(GV({},r),t)}(V$.DefaultConfig,e,t);this.userConfig=e,n.progressive&&j$(n,t);const{abrController:r,bufferController:i,capLevelController:a,errorController:s,fpsController:o}=n,l=new s(this),c=this.abrController=new r(this),d=new qq(this),u=n.interstitialsController,h=u?this.interstitialsController=new u(this,V$):null,p=this.bufferController=new i(this,d),m=this.capLevelController=new a(this),f=new o(this),g=new H$(this),v=n.contentSteeringController,b=v?new v(this):null,y=this.levelController=new M$(this,b),x=new D$(this),S=new z$(this.config),k=this.streamController=new U$(this,d,S),w=this.gapController=new A$(this,d);m.setStreamController(k),f.setStreamController(k);const T=[g,y,k];h&&T.splice(1,0,h),b&&T.splice(1,0,b),this.networkControllers=T;const C=[c,p,w,m,f,x,d];this.audioTrackController=this.createController(n.audioTrackController,T);const E=n.audioStreamController;E&&T.push(this.audioStreamController=new E(this,d,S)),this.subtitleTrackController=this.createController(n.subtitleTrackController,T);const j=n.subtitleStreamController;j&&T.push(this.subtititleStreamController=new j(this,d,S)),this.createController(n.timelineController,C),S.emeController=this.emeController=this.createController(n.emeController,C),this.cmcdController=this.createController(n.cmcdController,C),this.latencyController=this.createController(O$,C),this.coreComponents=C,T.push(l);const A=l.onErrorOut;"function"===typeof A&&this.on(NV.ERROR,A,l),this.on(NV.MANIFEST_LOADED,g.onManifestLoaded,g)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._emitter.on(e,t,n)}once(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=arguments.length>3?arguments[3]:void 0;this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const t=e===NV.ERROR;this.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.INTERNAL_EXCEPTION,fatal:t,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(NV.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((e=>e.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((e=>e.destroy())),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const t=new Error("attachMedia failed: invalid argument (".concat(e,")"));return void this.trigger(NV.ERROR,{type:jV.OTHER_ERROR,details:AV.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(NV.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(NV.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(NV.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=iK.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log("loadSource:".concat(r)),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(NV.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1?arguments[1]:void 0;this.logger.log("startLoad(".concat(e+(t?", <skip seek to start>":""),")")),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),this.started&&this.networkControllers);n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach((e=>{e.resumeBuffering&&e.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((e=>{e.pauseBuffering&&e.pauseBuffering()})))}get inFlightFragments(){const e={[DV]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[OV]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[MV]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(e){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=(new Date).getTime();const n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}));return n}}}()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log("set currentLevel:".concat(e)),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log("set nextLevel:".concat(e)),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log("set loadLevel:".concat(e)),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log("set firstLevel:".concat(e)),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log("set startLevel:".concat(e)),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log("set autoLevelCapping:".concat(e)),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){(function(e){return sq.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(r=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let i=r;i--;){const t=e[i].attrs["HDCP-LEVEL"];if(t&&t<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}
2setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e){return rq(e,bq(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.allAudioTracks),navigator.mediaCapabilities)}}V$.defaultConfig=void 0;function K$(e,t){if("undefined"===typeof document)return;let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent.includes(t.trim())||(n.textContent+=t)}function q$(e){let{src:t,poster:n,autoPlay:r=!0,loop:i=!0,muted:a=!0,controls:s=!1,fit:l="cover",visibilityThreshold:c=.6}=e;const d=(0,$.useRef)(Math.random().toString(36).slice(2)),u=(0,$.useRef)(null),h=(0,$.useRef)(null),p=(0,$.useRef)(null),[m,f]=(0,$.useState)(!1),[g,v]=(0,$.useState)(!1),b=(0,$.useRef)(!1),[y,x]=(0,$.useState)(!1),[S,k]=(0,$.useState)(!!a),[w,T]=(0,$.useState)(1),[C,E]=(0,$.useState)(0),[j,A]=(0,$.useState)(0),[N,P]=(0,$.useState)(0),[R,L]=(0,$.useState)(!1),I=(0,$.useRef)(0),D=(0,$.useRef)(null),[O,M]=(0,$.useState)(!1),[_,F]=(0,$.useState)(1),B=[.5,1,1.25,1.5,2],U=(0,$.useMemo)((()=>t||""),[t]),z="undefined"===typeof window?null:(window.__YZY_AUDIO_BUS__||(window.__YZY_AUDIO_BUS__=new EventTarget),window.__YZY_AUDIO_BUS__),G="undefined"===typeof window?null:(window.__YZY_PLAY_BUS__||(window.__YZY_PLAY_BUS__=new EventTarget),window.__YZY_PLAY_BUS__);(0,$.useEffect)((()=>{const e=u.current;if(!e||!U)return;try{var t;null===(t=p.current)||void 0===t||t.destroy()}catch(j){}p.current=null,e.loop=i,e.playsInline=!0,e.preload="metadata",e.muted=S,e.volume=w,f(!1);const n=()=>{clearTimeout(D.current),D.current=setTimeout((()=>{const t=performance.now()-(I.current||0);!e.paused&&t>400&&L(!0)}),250)},a=()=>{r&&b.current&&e.muted&&n()},s=()=>{E(e.duration||0),f(!0)},o=()=>{I.current=performance.now(),A(e.currentTime||0),R&&e.readyState>=3&&L(!1)},l=()=>{try{if(e.buffered.length>0&&e.duration>0){const t=e.buffered.end(e.buffered.length-1);P(Math.max(0,Math.min(1,t/e.duration)))}}catch(t){}},c=()=>{L(!1),x(!0)},d=()=>{x(!1),L(!1)},h=()=>{e.paused||n()},m=()=>{e.paused||n()},g=()=>{e.paused||n()},v=()=>L(!1),y=()=>{e.paused||n()},k=()=>(t=>{const n=e.error;n&&console.warn("[Video] ".concat(t),n,null===n||void 0===n?void 0:n.message,null===n||void 0===n?void 0:n.code)})("HTMLMediaElement error");e.addEventListener("loadstart",a),e.addEventListener("loadedmetadata",s),e.addEventListener("timeupdate",o),e.addEventListener("progress",l),e.addEventListener("playing",c),e.addEventListener("pause",d),e.addEventListener("waiting",h),e.addEventListener("stalled",m),e.addEventListener("seeking",g),e.addEventListener("canplay",v),e.addEventListener("emptied",y),e.addEventListener("error",k);const T=()=>{},C=()=>{};if(e.addEventListener("webkitbeginfullscreen",T),e.addEventListener("webkitendfullscreen",C),e.canPlayType("application/vnd.apple.mpegurl"))e.src=U,e.load();else if(V$.isSupported()){const t=new V$({enableWorker:!0,lowLatencyMode:!1,capLevelToPlayerSize:!0,startLevel:-1,maxBufferLength:30,maxMaxBufferLength:60,fragLoadingRetryDelay:500,manifestLoadingRetryDelay:800});
2p.current=t,t.attachMedia(e),t.on(V$.Events.MEDIA_ATTACHED,(()=>t.loadSource(U))),t.on(V$.Events.ERROR,((e,r)=>{if(console.warn("[hls.js] error",r),(null===r||void 0===r?void 0:r.type)!==V$.ErrorTypes.NETWORK_ERROR||null!==r&&void 0!==r&&r.fatal){if(null!==r&&void 0!==r&&r.fatal)try{t.destroy()}catch(i){}}else n(),t.startLoad()}))}else console.warn("HLS not supported in this browser.");return r&&b.current&&e.muted&&(n(),e.play().catch((e=>{console.warn("Autoplay blocked",e),L(!1)}))),()=>{clearTimeout(D.current),e.removeEventListener("loadstart",a),e.removeEventListener("loadedmetadata",s),e.removeEventListener("timeupdate",o),e.removeEventListener("progress",l),e.removeEventListener("playing",c),e.removeEventListener("pause",d),e.removeEventListener("waiting",h),e.removeEventListener("stalled",m),e.removeEventListener("seeking",g),e.removeEventListener("canplay",v),e.removeEventListener("emptied",y),e.removeEventListener("error",k),e.removeEventListener("webkitbeginfullscreen",T),e.removeEventListener("webkitendfullscreen",C);try{var t;null===(t=p.current)||void 0===t||t.destroy()}catch(n){}p.current=null,e.removeAttribute("src");try{e.load()}catch(r){}}}),[U,i]),(0,$.useEffect)((()=>{const e=u.current;e&&(e.muted=S)}),[S]),(0,$.useEffect)((()=>{const e=u.current;e&&(e.volume=w)}),[w]),(0,$.useEffect)((()=>{const e=h.current;if(!e)return;const t=Math.min(1,c+.1),n=Math.max(0,c-.15);let r=null;const i=new IntersectionObserver((e=>{const i=Math.max(...e.map((e=>e.intersectionRatio||0))),a=b.current;let s=a;!a&&i>=t?s=!0:a&&i<=n&&(s=!1),s!==a&&(r&&clearTimeout(r),r=setTimeout((()=>(e=>{b.current=e,v(e)})(s)),150))}),{root:null,threshold:[c],rootMargin:"-".concat(64,"px 0px -").concat(100,"px 0px")});return i.observe(e),()=>{r&&clearTimeout(r),i.disconnect()}}),[c]),(0,$.useEffect)((()=>{const e=u.current;e&&m&&(g?r&&e.muted&&(null===G||void 0===G||G.dispatchEvent(new CustomEvent("request-play",{detail:{id:d.current}})),e.play().catch((()=>{}))):(e.pause(),L(!1)))}),[g,m,r,G]),(0,$.useEffect)((()=>{const e=e=>{const{id:t}=e&&e.detail||{};t!==d.current&&V()};return null===z||void 0===z||z.addEventListener("request-audio",e),()=>null===z||void 0===z?void 0:z.removeEventListener("request-audio",e)}),[z]),(0,$.useEffect)((()=>{const e=e=>{const{id:t}=e&&e.detail||{};if(t!==d.current){const e=u.current;e&&!e.paused&&e.pause()}};return null===G||void 0===G||G.addEventListener("request-play",e),()=>null===G||void 0===G?void 0:G.removeEventListener("request-play",e)}),[G]),(0,$.useEffect)((()=>{const e=u.current;e&&(e.playbackRate=B[_])}),[_]);const W=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Number.isFinite(e))return t?"0:00:00":"0:00";const n=Math.max(0,Math.floor(e)),r=Math.floor(n/3600),i=Math.floor(n%3600/60),a=n%60;return t||r>0?"".concat(r,":").concat(String(i).padStart(2,"0"),":").concat(String(a).padStart(2,"0")):"".concat(i,":").concat(String(a).padStart(2,"0"))},H=async()=>{const e=u.current;if(e)if(e.paused){null===G||void 0===G||G.dispatchEvent(new CustomEvent("request-play",{detail:{id:d.current}}));try{await e.play(),x(!0)}catch(Ps){console.warn("play() blocked",Ps)}}else e.pause(),x(!1),L(!1)},V=()=>{const e=u.current;e&&(e.muted=!0,k(!0))},K=()=>{M(!0)},q=()=>{M(!1)},Y=()=>{const e=h.current,t=u.current;if(!t||!e)return;if((()=>{if("undefined"===typeof navigator)return!1;const e=navigator.userAgent||"";return/iPad|iPhone|iPod/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1})()&&t.webkitEnterFullscreen){try{t.webkitEnterFullscreen()}catch(m){}return}var n,r,i,a,s,o,l,c,d,p;document.fullscreenElement||document.webkitFullscreenElement?null===(n=(r=(null===(i=(a=document).exitFullscreen)||void 0===i?void 0:i.call(a))||(null===(s=(o=document).webkitExitFullscreen)||void 0===s?void 0:s.call(o))).catch)||void 0===n||n.call(r,(()=>{})):null===(l=(c=((null===(d=e.requestFullscreen)||void 0===d?void 0:d.call(e))||(null===(p=e.webkitRequestFullscreen)||void 0===p?void 0:p.call(e))).call(e)).catch)||void 0===l||l.call(c,(()=>{}))},X=C?j/C*100:0,J=100*(N||0),Q=(null!==C&&void 0!==C?C:0)>=3600||(null!==j&&void 0!==j?j:0)>=3600;return(0,Xo.jsxs)("div",{ref:h,className:"twv-wrap",style:{position:"relative",width:"100%",height:"100%",background:"#000",borderRadius:12,overflow:"hidden",userSelect:"none",transform:"translateZ(0)"},children:[(0,Xo.jsx)("video",{ref:u,poster:n,muted:!0,autoPlay:!0,playsInl
2ine:!0,preload:"metadata",style:{width:"100%",height:"100%",objectFit:l,display:"block",background:"#000"},onClick:H,onDoubleClick:Y},U),!y&&m&&(0,Xo.jsx)("button",{type:"button",onClick:H,className:"twv-center-btn","aria-label":"Play",style:i0,children:(0,Xo.jsx)(Y$,{size:28})}),R&&(0,Xo.jsx)("div",{style:n0,"aria-hidden":"true",children:(0,Xo.jsx)("div",{className:"twv-spinner",style:r0})}),(0,Xo.jsxs)("div",{className:"twv-controls",style:Z$,children:[(0,Xo.jsx)("input",{type:"range",min:"0",max:"1",step:"0.001",value:C?j/C:0,onChange:e=>{const t=u.current;if(!t)return;const n=Number(e.target.value);t.currentTime=n*C,A(t.currentTime)},onMouseDown:K,onMouseUp:q,onTouchStart:K,onTouchEnd:q,"aria-label":"Seek",style:o(o({},$$),{},{background:"linear-gradient(\n to right,\n #fff ".concat(X,"%,\n #888 ").concat(X,"%,\n #888 ").concat(J,"%,\n rgba(255,255,255,.35) ").concat(J,"%\n )")})}),(0,Xo.jsxs)("div",{style:e0,children:[(0,Xo.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Xo.jsx)("button",{onClick:H,"aria-label":y?"Pause":"Play",style:t0,title:y?"Pause":"Play",children:y?(0,Xo.jsx)(X$,{}):(0,Xo.jsx)(Y$,{})}),(0,Xo.jsx)("button",{onClick:()=>{const e=u.current;if(!e)return;const t=!S;k(t),t||(null===z||void 0===z||z.dispatchEvent(new CustomEvent("request-audio",{detail:{id:d.current}})),0===e.volume&&(e.volume=.5,T(.5)))},"aria-label":S?"Unmute":"Mute",title:S?"Unmute":"Mute",style:t0,children:(0,Xo.jsx)(Q$,{muted:S||0===w,level:w})}),(0,Xo.jsxs)("span",{style:{fontSize:12,opacity:.9,minWidth:Q?96:76,textAlign:"right"},children:[W(j,Q)," / ",W(C,Q)]}),(0,Xo.jsxs)("button",{onClick:()=>{F((e=>(e+1)%B.length))},"aria-label":"Playback speed",title:"Playback speed",style:t0,children:[B[_],"\xd7"]})]}),(0,Xo.jsx)("div",{style:{flex:1}}),(0,Xo.jsx)("button",{onClick:Y,"aria-label":"Fullscreen",style:t0,title:"Fullscreen",children:(0,Xo.jsx)(J$,{})})]})]})]})}function Y$(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M8 5v14l11-7z"})})}function X$(){return(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M6 5h4v14H6zM14 5h4v14h-4z"})})}function J$(){return(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M8 3H3v5M21 8V3h-5M3 16v5h5M16 21h5v-5"})})}function Q$(e){let{muted:t,level:n=1}=e;if(t||0===n)return(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block"},children:[(0,Xo.jsx)("path",{d:"M11 5v14l-5-4H2V9h4l5-4z"}),(0,Xo.jsx)("line",{x1:"19",y1:"9",x2:"23",y2:"13"}),(0,Xo.jsx)("line",{x1:"23",y1:"9",x2:"19",y2:"13"})]});const r=n<.34,i=n<.67;return(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{display:"block"},children:[(0,Xo.jsx)("path",{d:"M11 5v14l-5-4H2V9h4l5-4z"}),!r&&(0,Xo.jsx)("path",{d:"M15 10a3 3 0 0 1 0 4"}),!i&&(0,Xo.jsx)("path",{d:"M17.5 7.5a6.5 6.5 0 0 1 0 9"}),r&&(0,Xo.jsx)("path",{d:"M13 12h.01"})]})}const Z$={position:"absolute",left:0,right:0,bottom:0,padding:"8px 10px 10px",background:"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.7) 100%)",color:"#fff",willChange:"transform"}
2,$$={width:"100%",appearance:"none",height:4,borderRadius:999,outline:"none",marginBottom:6};Object.assign($$,{WebkitAppearance:"none"});const e0={display:"flex",alignItems:"center",justifyContent:"space-between"},t0={background:"transparent",color:"#fff",border:"none",borderRadius:8,padding:6,fontSize:14,cursor:"pointer",lineHeight:0,display:"grid",placeItems:"center"},n0={position:"absolute",inset:0,display:"grid",placeItems:"center",pointerEvents:"none",zIndex:4},r0={width:36,height:36,borderRadius:"50%",border:"3px solid rgba(255,255,255,.25)",borderTopColor:"#fff",animation:"twv-spin 0.8s linear infinite",willChange:"transform",filter:"drop-shadow(0 0 6px rgba(0,0,0,.35))"},i0={position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:64,height:64,borderRadius:"50%",background:"rgba(0,0,0,.6)",color:"#fff",border:"none",fontSize:28,textAlign:"center",cursor:"pointer",backdropFilter:"blur(3px)",zIndex:3};K$("twv-shared-css",'\n.twv-wrap input[type="range"]::-webkit-slider-thumb{\n -webkit-appearance:none; appearance:none; width:12px;height:12px;border-radius:50%;\n background:#fff;border:0;box-shadow:0 0 0 2px rgba(0,0,0,.2); margin-top:-4px;\n}\n.twv-wrap input[type="range"]::-moz-range-thumb{ width:12px;height:12px;border-radius:50%; background:#fff;border:0;box-shadow:0 0 0 2px rgba(0,0,0,.2); }\n.twv-wrap input[type="range"]::-ms-thumb{ width:12px;height:12px;border-radius:50%; background:#fff;border:0;box-shadow:0 0 0 2px rgba(0,0,0,.2); }\n'),K$("twv-shared-css","@keyframes twv-spin { to { transform: rotate(360deg); } }");const a0={ye:{displayName:"YE",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/Ye-profilepic.jpg",items:[]},digitalnas:{displayName:"DIGITAL NAS",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/digitalnas.jpg",items:[{vodId:"ep1-replay",type:"vod",title:"Hassan Khaffaf x Digital Nas Full Interview",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/digital-nas-hassan-full-interview/master.m3u8",thumbnail:"/thumbs/ep1_replay.jpg"}]},hassan:{displayName:"HASSAN KHAFFAF",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/hassan.jpg",items:[{vodId:"hassan-ep2",type:"vod",title:"Hassan & Choir (Rehearsal)",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/hassanandchoir2/master.m3u8",thumbnail:"/thumbs/hassan_ep1.jpg"}]},sneako:{displayName:"SNEAKO",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/sneako.jpg",items:[{vodId:"sneako-live",type:"live"},{vodId:"hassan-ep1",type:"vod",title:"Hassan X Sneako Anything is Possible Premiere",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/hassan-sneako/master.m3u8",thumbnail:"/thumbs/hassan_ep1.jpg"}]},spirit:{displayName:"SPIRIT",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/spiritp.jpg",items:[{vodId:"ep1-live",type:"live"},{vodId:"tnr1",type:"vod",title:"THIS IS SERIOUS NOW - TNR1",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/NR.EP1/master.m3u8",thumbnail:"/thumbs/ep1_replay.jpg"},{vodId:"ep1-replay",type:"vod",title:"Yeezy Stream Event 2025 - The First Yeezy Stream",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/spirit-first-stream/master.m3u8",thumbnail:"/thumbs/ep1_replay.jpg"}]},yefanatics:{displayName:"YEFANATICS",avatar:"https://yeezy-avatars.s3.us-east-1.amazonaws.com/yefanatics.jpg",items:[{vodId:"ep1-live",type:"live"},{vodId:"ep1-replay",type:"vod",title:"YE IN KOREA HQ (NO FULL LIVE) 2025 BY CHANNEL CANDY",playbackUrlVod:"https://d2hfvzg128c2og.cloudfront.net/yefanatics-yekorea/master.m3u8",thumbnail:"/thumbs/ep1_replay.jpg"}]}},s0=(()=>{const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e?"http://localhost:8800":e.match(/^(192\.168|10\.|172\.)\d+\.\d+/)?"http://".concat(e,":8800"):"https://clipbait-app.onrender.com"})(),o0="".concat(s0,"/api/clips"),l0="".concat(s0,"/api/comments");function c0(e){return encodeURIComponent(e)}function d0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};for(const n of Object.keys(e||{}))t[n.toLowerCase()]=e[n];return t}function u0(){const e=function(){try{const e=localStorage.getItem("user")||localStorage.getItem("currentUser")||localStorage.getItem("profile");return e?JSON.parse(e):null}catch(e){return null}}();if(!e)return{};const t=e._id||e.id||e.userId||e.user&&(e.user._id||e.user.id);if(!t)return{};const n=function(e){let t=String(e||"").trim();t=t.replace(/^@+/,"").replace(/[ :,\-\u2013\u2014\u2022]+$/,""),t=t.replace(/\s+/g," ");const n=t.match(/^\s*(.+?)\s*,\s*\1\s*$/i);n&&(t=n[1]);const r=t.match(/^\s*(.+?)\s+\1\s*$/i);return r&&(t=r[1]),t.slice(0,60)||"Anon"}(e.username||e.name||e.displayName||e.email||e.user&&(e.user.username||e.user.name||e.user.email)||"Anon");return{"x-user-id":String(t),"x-username":n}}function h0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=function(){try{return localStorage.getItem("authToken")||localStorage.getItem("token")||localStorage.getItem("accessToken")||localStorage.getItem("jwt")||null}catch(e){return null}}(),r=d0(e),i=d0(o(o({},u0()),function(e){return e?{"x-user-id":String(e)}:{}}(t))),a=o(o({},i),r);return n&&!("authorization"in a)&&(a.authorization="Bearer ".concat(n)),a}async function p0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=h0(t.headers||{},n),i=await fetch(e,o(o({credentials:"include"},t),{},{headers:r})),a=await i.text();let s=null;try{s=a?JSON.parse(a):null}catch(l){}if(!i.ok){const e=s&&(s.error||s.message)||"".concat(i.status," ").concat(i.statusText),t=new Error(e);throw t.status=i.status,t.data=s,t}return s}async function m0(e){let{limit:t=20,cursor:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{userId:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new URLSearchParams;"number"===typeof t&&i.set("limit",String(t)),n&&i.set("cursor",n);try{const t=await p0("".concat(l0,"/").concat(c0(e),"?").concat(i.toString()),{},r),n=Array.isArray(t)?t:t.comments||t.items||t.data||[];return{comments:n,count:"number"===typeof t.count?t.count:n.length,nextCursor:t.nextCursor}}catch(a){const n=await p0("".concat(o0,"/").concat(c0(e),"/comments?limit=").concat(t),{},r),i=Array.isArray(n)?n:n.comments||n.items||n.data||[];return{comments:i,count:"number"===typeof n.count?n.count:i.length,nextCursor:n.nextCursor}}}async function f0(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{userId:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=JSON.stringify({text:t,parentId:n});try{return await p0("".concat(l0,"/").concat(c0(e)),{method:"POST",headers:{"content-type":"application/json"},body:i},r)}catch(a){return await p0("".concat(o0,"/").concat(c0(e),"/comments"),{method:"POST",headers:{"content-type":"application/json"},body:i},r)}}const g0=(()=>{const e=new Set,t=new Set;for(const[n,r]of Object.entries(a0))n&&t.add(String(n).toLowerCase()),null!==r&&void 0!==r&&r.displayName&&e.add(String(r.displayName).toLowerCase()),null!==r&&void 0!==r&&r.name&&e.add(String(r.name).toLowerCase());return{nameSet:e,slugSet:t}})();function v0(e,t){var n,r,i,a;const{nameSet:s,slugSet:o}=g0,l=[null===e||void 0===e||null===(n=e.user)||void 0===n?void 0:n.slug,null===e||void 0===e||null===(r=e.author)||void 0===r?void 0:r.slug,null===e||void 0===e||null===(i=e.user)||void 0===i?void 0:i.username,null===e||void 0===e||null===(a=e.author)||void 0===a?void 0:a.username,null===e||void 0===e?void 0:e.username,null===e||void 0===e?void 0:e.displayName,null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.authorName,t].filter(
2Boolean).map((e=>String(e).trim())).flatMap((e=>[e,e.replace(/^@/,"")])).map((e=>e.toLowerCase()));for(const c of l)if(o.has(c)||s.has(c))return!0;return!1}function b0(){var e,t,n;const r=Vt(),i=Wt(),{streamerKey:a,vodId:s}=qt(),l=a0[a]||{},c=l.avatar||"/nullprofile.png",d=l.displayName||a,u=(0,$.useMemo)((()=>(l.items||[]).find((e=>String(e.vodId||"")===String(s||"")))||{}),[l,s]);(0,$.useEffect)((()=>{null!==u&&void 0!==u&&u.playbackUrlVod||r("/")}),[u,r]);const[h,p]=(0,$.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 900px)").matches);(0,$.useEffect)((()=>{var e;const t=window.matchMedia("(max-width: 900px)"),n=e=>p(e.matches);return null===(e=t.addEventListener)||void 0===e||e.call(t,"change",n),()=>{var e;return null===(e=t.removeEventListener)||void 0===e?void 0:e.call(t,"change",n)}}),[]);const m="".concat(a,":").concat(s),[f,g]=(0,$.useState)({likesCount:0,commentsCount:0,liked:!1}),[v,b]=(0,$.useState)([]),[y,x]=(0,$.useState)(""),[S,k]=(0,$.useState)(!0),[w,T]=(0,$.useState)(null),[C,E]=(0,$.useState)({}),j=(e,t)=>E((n=>o(o({},n),{},{[e]:t}))),A=(()=>{try{const e=localStorage.getItem("user")||localStorage.getItem("currentUser")||localStorage.getItem("profile");return e?JSON.parse(e):null}catch(e){return null}})(),N=(null===A||void 0===A?void 0:A.userId)||(null===A||void 0===A?void 0:A._id)||(null===A||void 0===A?void 0:A.id)||(null===A||void 0===A||null===(e=A.user)||void 0===e?void 0:e._id)||(null===A||void 0===A||null===(t=A.user)||void 0===t?void 0:t.id)||null,P=!(!A||!(A._id||A.id||A.userId||A.username||A.email)),R="/login?next=".concat(encodeURIComponent(i.pathname+i.search)),L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Anon";const n=(null!==e&&void 0!==e?e:"").toString().trim();if(!n)return t;const r=n.split(",").map((e=>e.trim())).filter(Boolean);return r.length>=2&&r[0].toLowerCase()===r[1].toLowerCase()?r[0]:r[0]||n||t},I=function(){var e,t,n,r,i,a,s,o,l,c,d,u,h,p,m,f,g,v,b,y,x;let S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const k=null!==(e=null!==(t=null!==(n=null!==(r=null!==(i=null!==(a=null!==(s=null!==(o=null!==(l=S.authorName)&&void 0!==l?l:S.username)&&void 0!==o?o:S.displayName)&&void 0!==s?s:S.name)&&void 0!==a?a:null===(c=S.user)||void 0===c?void 0:c.username)&&void 0!==i?i:null===(d=S.user)||void 0===d?void 0:d.name)&&void 0!==r?r:null===(u=S.author)||void 0===u?void 0:u.username)&&void 0!==n?n:null===(h=S.author)||void 0===h?void 0:h.name)&&void 0!==t?t:S.isLocal&&((null===A||void 0===A?void 0:A.username)||(null===A||void 0===A?void 0:A.name)||(null===A||void 0===A?void 0:A.displayName)))&&void 0!==e?e:"Anon",w=L(k,"Anon"),T=null!==(p=null!==(m=null!==(f=null!==(g=S.body)&&void 0!==g?g:S.text)&&void 0!==f?f:S.content)&&void 0!==m?m:S.message)&&void 0!==p?p:"",C=S.userId||S.authorId||(null===S||void 0===S||null===(v=S.user)||void 0===v?void 0:v._id)||(null===S||void 0===S||null===(b=S.user)||void 0===b?void 0:b.id)||(null===S||void 0===S||null===(y=S.author)||void 0===y?void 0:y._id)||(null===S||void 0===S||null===(x=S.author)||void 0===x?void 0:x.id)||null;return{_id:S._id||S.id||Math.random().toString(36).slice(2),authorId:C,authorName:w,body:T,parentId:S.parentId||null,likesCount:"number"===typeof S.likesCount?S.likesCount:0,liked:!!S.liked,createdAt:S.createdAt||(new Date).toISOString(),isVerified:v0(S,w)}},D=e=>{var t,n;if(!A)return!1;if(N&&e.authorId)return String(N)===String(e.authorId);const r=[null===A||void 0===A?void 0:A.username,null===A||void 0===A?void 0:A.name,null===A||void 0===A?void 0:A.displayName,null===A||void 0===A?void 0:A.email,null===A||void 0===A||null===(t=A.user)||void 0===t?void 0:t.username,null===A||void 0===A||null===(n=A.user)||void 0===n?void 0:n.name].filter(Boolean).map((e=>L(e))).map((e=>e.toLowerCase()));return r.includes((e.authorName||"").toLowerCase())},O=(0,$.useMemo)((()=>{const e=new Map;v.forEach((t=>e.set(String(t._id),o(o({},t),{},{replies:[]}))));const t=[];for(const n of e.values())n.parentId&&e.has(String(n.parentId))?e.get(String(n.parentId)).replies.push(n):t.push(n);return t}),[v]);(0,$.useEffect)((()=>{(async()=>{try{const{clip:e,liked:t}=await async function(e){let{userId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p0("".concat(o0,"/upsert"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)},t)}({clipKey:m,streamerKey:a,vodId:s,title:u.title,playbackUrlVod:u.playbackUrlVod,thumbnail:u.thumbnail});g({likesCount:(null===e||void 0===e?void 0:e.likesCount)||0,commentsCount:(null===e||void 0===e?void 0:e.commentsCount)||0,liked:!!t})}catch(e){}try{k(!0);const{comments:e,count:t}=await m0(m),n=Array.isArray(e)?e.map(I):[];b(n),g((e=>o(o({},e),{},{commentsCount:"number"===typeof t?t:n.length})))}catch(t){}finally{k(!1)}})()}),[m,a,s,u.title,u.playbackUrlVod,u.thumbnail]);const M=async()=>{g((e=>o(o({},e),{},{liked:!e.liked,likesCount:Math.max(0,e.likesCount+(e.liked?-1:1))})));try{const{likesCount:e,liked:t}=await async function(e){let{userId:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return await p0("".concat(o0,"/toggle-like"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({clipKey:e})},t)}catch(n){return p0("".concat(o0,"/").concat(c0(e),"/like"),{method:"POST"},t)}}(m);g((n=>o(o({},n),{},{likesCount:e,liked:t})))}catch(e){}},_=async e=>{if(e.preventDefault(),!P)return r(R);const t=y.trim();if(t)try{var n,i;const e=await f0(m,t),r=null!==(n=null!==(i=null===e||void 0===e?void 0:e.comment)&&void 0!==i?i:e)&&void 0!==n?n:{text:t},a=I(o(o({},r),{},{isLocal:!0}));b((e=>[a,...e])),g((e=>o(o({},e),{},{commentsCount:e.commentsCount+1}))),x("")}catch(a){}},F=e=>{if(!P)return r(R);T(e),setTimeout((()=>{const t=document.getElementById("reply-input-".concat(e));null===t||void 0===t||t.focus()}),0)},B=async(e,t)=>{if(e.preventDefault(),!P)return r(R);const n=(C[t]||"").trim();if(n)try{var i,a;const e=await f0(m,n,t),r=null!==(i=null!==(a=null===e||void 0===e?void 0:e.comment)&&void 0!==a?a:e)&&void 0!==i?i:{text:n,parentId:t},s=I(o(o({},r),{},{isLocal:!0,parentId:t}));b((e=>[s,...e])),g((e=>o(o({},e),{},{commentsCount:e.commentsCount+1}))),j((e=>o(o({},e),{},{[t]:""}))),T(null)}catch(s){}},U=async e=>{if(!P)return r(R);b((t=>t.map((t=>t._id===e?o(o({},t),{},{liked:!t.liked,likesCount:Math.max(0,t.likesCount+(t.liked?-1:1))}):t))));try{const{liked:t,likesCount:n}=await async function(e,t){let{userId:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return await p0("".concat(l0,"/by-id/").concat(c0(t),"/toggle-like"),{method:"POST"},n)}catch(r){try{return await p0("".concat(l0,"/").concat(c0(e),"/").concat(c0(t),"/toggle-like"),{method:"POST"},n)}catch(i){return await p0("".concat(o0,"/").concat(c0(e),"/comments/").concat(c0(t),"/like"),{method:"POST"},n)}}}(m,e);b((r=>r.map((r=>r._id===e?o(o({},r),{},{liked:t,likesCount:n}):r))))}catch(t){}},[z,G]=(0,$.useState)(null),W=async e=>{if(!P)return r(R);if(e){G(e._id);try{await async function(e,t){let{userId:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return await p0("".concat(l0,"/by-id/").concat(c0(t)),{method:"DELETE"},n)}catch(r){try{return await p0("".concat(l0,"/").concat(c0(e),"/").concat(c0(t)),{method:"DELETE"},n)}catch(i){return await p0("".concat(o0,"/").concat(c0(e),"/comments/").concat(c0(t)),{method:"DELETE"},n)}}}(m,e._id),b((t=>{const{nextList:n,removedCount:r}=((e,t)=>{const n=String(t),r=new Map;e.forEach((e=>{const t=e.parentId?String(e.parentId):null;t&&(r.has(t)||r.set(t,[]),r.get(t).push(String(e._id)))}
2));const i=new Set([n]),a=[n];for(;a.length;){const e=a.shift(),t=r.get(e)||[];for(const n of t)i.has(n)||(i.add(n),a.push(n))}return{nextList:e.filter((e=>!i.has(String(e._id)))),removedCount:i.size}})(t,e._id);return g((e=>o(o({},e),{},{commentsCount:Math.max(0,e.commentsCount-r)}))),n}))}catch(Ps){alert((null===Ps||void 0===Ps?void 0:Ps.message)||"Failed to delete comment.")}finally{G(null)}}},H="".concat(window.location.origin,"/").concat(a,"/").concat(s),V=(null===u||void 0===u?void 0:u.title)||"",K=(0,$.useRef)(null),q=[Number(null===(n=i.state)||void 0===n?void 0:n.startAt),Number(new URLSearchParams(i.search).get("t")),Number(localStorage.getItem("yzy_seek_".concat(m)))].find((e=>Number.isFinite(e)&&e>0))||0;return(0,$.useEffect)((()=>{var e;if(!q)return;const t=null===(e=K.current)||void 0===e?void 0:e.querySelector("video");if(!t)return;const n=()=>{try{t.currentTime=q}catch(e){}try{localStorage.removeItem("yzy_seek_".concat(m))}catch(n){}};if(t.readyState>=1)n();else{const e=()=>{n(),t.removeEventListener("loadedmetadata",e)};t.addEventListener("loadedmetadata",e)}}),[q,m,u.playbackUrlVod]),(0,Xo.jsxs)("div",{style:T0,children:[(0,Xo.jsx)("style",{children:'\n .clip-video [class*="spinner"],\n .clip-video [class*="Spinner"],\n .clip-video [class*="loading"],\n .clip-video [class*="Loading"],\n .clip-video [class*="loader"],\n .clip-video [class*="Loader"],\n .clip-video [data-role="spinner"],\n .clip-video [aria-busy="true"],\n .clip-video .video-spinner,\n .clip-video .loading-overlay,\n .clip-video .buffering,\n .clip-video .plyr__spinner {\n display: none !important;\n animation: none !important;\n opacity: 0 !important;\n visibility: hidden !important;\n pointer-events: none !important;\n }\n '}),(0,Xo.jsx)("header",{style:C0,children:(0,Xo.jsx)("button",{onClick:()=>{var e;const t=null===(e=i.state)||void 0===e?void 0:e.backTo;return t?r(t,{replace:!0}):window.history.length>1?r(-1):void r("/".concat(a,"?tab=Lives"),{replace:!0})},"aria-label":"Back",style:E0,children:(0,Xo.jsx)(S0,{})})}),h?(0,Xo.jsxs)("div",{style:P0,children:[(0,Xo.jsx)("div",{className:"clip-video",style:R0,ref:K,children:(0,Xo.jsx)(q$,{src:u.playbackUrlVod,poster:u.thumbnail,autoPlay:!0,loop:!0,fit:"cover",showSpinner:!1,spinner:!1,hideSpinner:!0,loadingIndicator:null,preload:"auto"})}),(0,Xo.jsxs)("div",{style:{background:"#fff"},children:[(0,Xo.jsxs)("div",{style:L0,children:[(0,Xo.jsx)("a",{href:"/".concat(a),style:{display:"inline-block"},"aria-label":"Go to ".concat(d),title:"Go to ".concat(d),children:(0,Xo.jsx)("img",{src:c,alt:"",style:I0})}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Xo.jsx)("a",{href:"/".concat(a),style:o(o({},D0),{},{textDecoration:"none",color:"#111",fontWeight:600}),"aria-label":"Go to ".concat(d),title:"Go to ".concat(d),children:d}),(0,Xo.jsx)(w0,{size:13,ml:6})]}),(null===u||void 0===u?void 0:u.title)&&(0,Xo.jsx)("h2",{style:O0,children:u.title})]})]}),(0,Xo.jsxs)("div",{style:M0,children:[(0,Xo.jsxs)("button",{onClick:M,style:B0,"aria-label":f.liked?"Unlike":"Like",children:[(0,Xo.jsx)("span",{style:{lineHeight:0,display:"grid",placeItems:"center"},children:f.liked?"\u2665":"\u2661"}),(0,Xo.jsx)("span",{children:f.likesCount})]}),(0,Xo.jsxs)("div",{style:F0,children:[(0,Xo.jsx)("span",{children:f.commentsCount}),(0,Xo.jsx)("span",{children:"comments"})]}),(0,Xo.jsx)(y0,{title:null===u||void 0===u?void 0:u.title,text:V,url:H,style:U0,children:"SHARE THIS STREAM"})]})]}),(0,Xo.jsxs)("aside",{style:W0,children:[(0,Xo.jsxs)("form",{onSubmit:_,style:V0,children:[(0,Xo.jsx)("input",{value:y,onChange:e=>x(e.target.value),placeholder:P?"ADD A COMMENT\u2026":"SIGN IN TO COMMENT",style:q0,readOnly:!P,onFocus:()=>{P||r(R)}}),(0,Xo.jsx)("button",{type:P?"submit":"button",onClick:()=>{P||r(R)},style:Y0,"aria-disabled":!P,children:P?"Send":"Sign in"})]}),S?(0,Xo.jsx)("div",{style:s1,children:(0,Xo.jsx)("div",{className:"clippage-spinner",style:o1})}):0===O.length?(0,Xo.jsx)("div",{style:a1,children:"BE THE FIRST TO COMMENT."}):(0,Xo.jsx)("ul",{style:X0,children:O.map((e=>(0,Xo.jsx)(x0,{c:e,isOwn:D,replyOpenId:w,replyDrafts:C,setReplyDraft:j,openReply:F,submitReply:B,onToggleCommentLike:U,onDeleteNow:W,deletingId:z},e._id)))})]})]}):(0,Xo.jsxs)("div",{style:j0,children:[(0,Xo.jsx)("aside",{style:A0,children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsxs)("div",{style:N0,children:[(0,Xo.jsx)("div",{className:"clip-video",style:R0,ref:K,children:(0,Xo.jsx)(q$,{src:u.playbackUrlVod,poster:u.thumbnail,autoPlay:!0,loop:!0,fit:"cover",showSpinner:!1,spinner:!1,hideSpinner:!0,loadingIndicator:null,preload:"auto"})}),(0,Xo.jsxs)("div",{style:{background:"#fff"},children:[(0,Xo.jsxs)("div",{style:L0,children:[(0,Xo.jsx)("a",{href:"/".concat(a),style:{display:"inline-block"},"aria-label":"Go to ".concat(d),title:"Go to ".concat(d),children:(0,Xo.jsx)("img",{src:c,alt:"",style:I0})}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Xo.jsx)("a",{href:"/".concat(a),style:o(o({},D0),{},{textDecoration:"none",color:"#111",fontWeight:600}),"aria-label":"Go to ".concat(d),title:"Go to ".concat(d),children:d}),(0,Xo.jsx)(w0,{size:13,ml:6})]}),(null===u||void 0===u?void 0:u.title)&&(0,Xo.jsx)("h2",{style:O0,children:u.title})]})]}),(0,Xo.jsxs)("div",{style:M0,children:[(0,Xo.jsxs)("button",{onClick:M,style:B0,"aria-label":f.liked?"Unlike":"Like",children:[(0,Xo.jsx)("span",{style:{lineHeight:0,display:"grid",placeItems:"center"},children:f.liked?"\u2665":"\u2661"}),(0,Xo.jsx)("span",{children:f.likesCount})]}),(0,Xo.jsxs)("div",{style:F0,children:[(0,Xo.jsx)("span",{children:f.commentsCount}),(0,Xo.jsx)("span",{children:"comments"})]}),(0,Xo.jsx)(y0,{title:null===u||void 0===u?void 0:u.title,text:V,url:H,style:U0,children:"SHARE THIS STREAM"})]})]})]}),(0,Xo.jsx)("aside",{style:z0,children:(0,Xo.jsxs)("div",{style:G0,children:[(0,Xo.jsxs)("form",{onSubmit:_,style:K0,children:[(0,Xo.jsx)("input",{value:y,onChange:e=>x(e.target.value),placeholder:P?"ADD A COMMENT\u2026":"SIGN IN TO COMMENT",style:q0,readOnly:!P,onFocus:()=>{P||r(R)}}),(0,Xo.jsx)("button",{type:P?"submit":"button",onClick:()=>{P||r(R)},style:Y0,"aria-disabled":!P,children:P?"Send":"Sign in"})]}),S?(0,Xo.jsx)("div",{style:s1,children:(0,Xo.jsx)("div",{className:"clippage-spinner",style:o1})}):0===O.length?(0,Xo.jsx)("div",{style:a1,children:"BE THE FIRST TO COMMENT."}):(0,Xo.jsx)("ul",{style:X0,children:O.map((e=>(0,Xo.jsx)(x0,{c:e,isOwn:D,replyOpenId:w,replyDrafts:C,setReplyDraft:j,openReply:F,submitReply:B,onToggleCommentLike:U,onDeleteNow:W,deletingId:z},e._id)))})]})})]})]})}function y0(e){let{title:t,text:n,url:r,style:i,children:a}=e;const[s,o]=(0,$.useState)(!1),l=(0,$.useRef)(null);(0,$.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&o(!1)};return s&&document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[s]);const c="https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(r),"&text=").concat(encodeURIComponent(n||t||"")),d="https://wa.me/?text=".concat(encodeURIComponent("".concat(n||t||""," ").concat(r))),u="https://t.me/share/url?url=".concat(encodeURIComponent(r),"&text=").concat(encodeURIComponent(n||t||"")),h="https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(r)),p="https://www.reddit.com/submit?url=".concat(encodeURIComponent(r),"&title=").concat(encodeURIComponent(t||"")),m="sms:&body=".concat(encodeURIComponent("".concat(n||t||""," ").concat(r))),f="mailto:?subject=".concat(encodeURIComponent(t||""),"&body=").concat(encodeURIComponent("".concat(n||"","\n\n").concat(r)));return(0,Xo.jsxs)("div",{ref:l,style:{position:"relative",flex:1},children:[(0,Xo.jsxs)("button",{onClick:async()=>{const e=await(async()=>{try{var e;
2if(null!==(e=navigator)&&void 0!==e&&e.share){const e={title:t,text:n,url:r};if(!navigator.canShare||navigator.canShare(e))return await navigator.share(e),!0}}catch(i){}return!1})();e||o((e=>!e))},style:i||B0,"aria-haspopup":"menu","aria-expanded":s?"true":"false","aria-label":"SHARE THIS STREAM",children:[(0,Xo.jsx)("span",{style:{lineHeight:0,display:"grid",placeItems:"center"}}),(0,Xo.jsx)("span",{children:a||"Share"})]}),s&&(0,Xo.jsxs)("div",{role:"menu",style:l1,children:[(0,Xo.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",style:c1,children:"Twitter / X"}),(0,Xo.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",style:c1,children:"WhatsApp"}),(0,Xo.jsx)("a",{href:u,target:"_blank",rel:"noopener noreferrer",style:c1,children:"Telegram"}),(0,Xo.jsx)("a",{href:h,target:"_blank",rel:"noopener noreferrer",style:c1,children:"Facebook"}),(0,Xo.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",style:c1,children:"Reddit"}),(0,Xo.jsx)("a",{href:m,style:c1,children:"Messages"}),(0,Xo.jsx)("a",{href:f,style:c1,children:"Email"}),(0,Xo.jsx)("button",{type:"button",style:d1,onClick:async()=>{try{await navigator.clipboard.writeText(r)}catch(e){}o(!1)},children:"Copy link"})]})]})}function x0(e){var t;let{c:n,isOwn:r,replyOpenId:i,replyDrafts:a,setReplyDraft:s,openReply:o,submitReply:l,onToggleCommentLike:c,onDeleteNow:d,deletingId:u}=e;const h=r(n),[p,m]=(0,$.useState)(!1),f=(0,$.useRef)(null);(0,$.useEffect)((()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&m(!1)};return p&&document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[p]);const g=u===n._id;return(0,Xo.jsxs)("li",{style:J0,children:[(0,Xo.jsxs)("div",{style:Q0,children:[(0,Xo.jsxs)("div",{style:Z0,children:[n.authorName,n.isVerified&&(0,Xo.jsx)(w0,{size:12,ml:6})]}),(0,Xo.jsxs)("div",{style:$0,children:[(0,Xo.jsxs)("button",{type:"button",onClick:()=>c(n._id),style:e1,"aria-label":n.liked?"Unlike":"Like",disabled:g,children:[(0,Xo.jsx)("span",{style:{marginRight:6},children:n.liked?"\u2665":"\u2661"}),(0,Xo.jsx)("span",{children:n.likesCount})]}),(0,Xo.jsx)("button",{type:"button",onClick:()=>o(n._id),style:e1,disabled:g,children:"Reply"}),h&&(0,Xo.jsxs)("div",{style:{position:"relative"},ref:f,children:[(0,Xo.jsx)("button",{type:"button",style:e1,"aria-haspopup":"menu","aria-expanded":p?"true":"false",onClick:()=>m((e=>!e)),title:"More",disabled:g,children:(0,Xo.jsx)(k0,{})}),p&&(0,Xo.jsxs)("div",{role:"menu",style:u1,children:[(0,Xo.jsx)("button",{type:"button",style:p1,onClick:async()=>{m(!1),await d(n)},disabled:g,"aria-busy":g?"true":"false",children:g?"Deleting\u2026":"Delete"}),(0,Xo.jsx)("button",{type:"button",style:h1,onClick:()=>m(!1),children:"Cancel"})]})]})]})]}),(0,Xo.jsx)("div",{children:n.body}),i===n._id&&(0,Xo.jsxs)("form",{onSubmit:e=>l(e,n._id),style:t1,children:[(0,Xo.jsx)("input",{id:"reply-input-".concat(n._id),value:a[n._id]||"",onChange:e=>s(n._id,e.target.value),placeholder:"Write a reply\u2026",style:n1,autoComplete:"off",autoCorrect:"on",autoCapitalize:"sentences",disabled:g}),(0,Xo.jsx)("button",{type:"submit",style:r1,disabled:g,children:"Reply"})]}),(null===(t=n.replies)||void 0===t?void 0:t.length)>0&&(0,Xo.jsx)("ul",{style:i1,children:n.replies.map((e=>(0,Xo.jsx)(x0,{c:e,isOwn:r,replyOpenId:i,replyDrafts:a,setReplyDraft:s,openReply:o,submitReply:l,onToggleCommentLike:c,onDeleteNow:d,deletingId:u},e._id)))})]})}function S0(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M15 18l-6-6 6-6"})})}function k0(e){let{size:t=18}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[(0,Xo.jsx)("circle",{cx:"5",cy:"12",r:"2"}),(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"2"}),(0,Xo.jsx)("circle",{cx:"19",cy:"12",r:"2"})]})}function w0(e){let{size:t=13,ml:n=6}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"inline-block",marginLeft:n,flex:"0 0 auto"},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1DA1F2"}),(0,Xo.jsx)("path",{d:"M17 9l-6.2 6L7 11.5",stroke:"#fff",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})}!function(e,t){if("undefined"===typeof document)return;let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent.includes(t.trim())||(n.textContent+=t)}("clippage-spinner-css","\n@keyframes clip-spin { to { transform: rotate(360deg); } }\n");const T0={height:"100vh",overflowY:"auto",WebkitOverflowScrolling:"touch",background:"#fff",paddingBottom:"env(safe-area-inset-bottom, 0px)"},C0={position:"sticky",top:0,zIndex:20,height:39,display:"flex",alignItems:"center",background:"#fff",borderBottom:"1px solid #eee",padding:"0 8px"},E0={width:40,height:40,borderRadius:20,backgroundColor:"transparent",display:"grid",color:"black",placeItems:"center",cursor:"pointer",border:"1px solid transparent"},j0={display:"grid",gridTemplateColumns:"200px minmax(0,1fr) 420px",gap:16,padding:12},A0={minWidth:0,borderRight:"1px solid #eee",paddingRight:12,overflow:"hidden"},N0={minWidth:0,minHeight:0,display:"flex",flexDirection:"column"},P0={display:"block",paddingBottom:24},R0={width:"100%",aspectRatio:"16 / 9",background:"#000",position:"relative"},L0={display:"flex",alignItems:"center",gap:10,padding:"10px 12px 0",backgroundColor:"#fff"},I0={width:36,height:36,borderRadius:"50%",objectFit:"cover"},D0={fontSize:12,color:"#666",marginBottom:2},O0={margin:0,fontSize:18,lineHeight:1.25,fontWeight:600},M0={display:"flex",gap:12,padding:"10px 12px",alignItems:"center",background:"#fff"}
2,_0={display:"inline-flex",alignItems:"center",gap:8,padding:"8px 12px",borderRadius:999,border:"none",boxShadow:"none",background:"transparent",fontSize:14,color:"#111"},F0=o({},_0),B0=o(o({},_0),{},{cursor:"pointer"}),U0=o(o({},_0),{},{flex:1,justifyContent:"center",gap:10,padding:"12px 16px",border:"1px solid #111",background:"#111",color:"#fff",borderRadius:14,fontWeight:600,letterSpacing:"0.2px"}),z0={minWidth:0,minHeight:0,borderLeft:"1px solid #eee",padding:0,background:"#fff"},G0={background:"#fff"},W0={background:"#fff",borderTop:"1px solid #eee"},H0={position:"sticky",zIndex:2,background:"#fff",padding:"8px 12px",display:"flex",gap:8,borderBottom:"1px solid #eee"},V0=o(o({},H0),{},{top:39}),K0=o(o({},H0),{},{top:39}),q0={flex:1,border:"1px solid #ddd",borderRadius:12,padding:"10px 12px",fontSize:16},Y0={border:"1px solid #111",background:"#111",color:"#fff",borderRadius:12,padding:"10px 12px",fontSize:14,cursor:"pointer"},X0={listStyle:"none",margin:0,padding:12,display:"grid",gap:12},J0={borderBottom:"1px solid #f1f1f1",paddingBottom:12},Q0={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},Z0={fontWeight:600,fontSize:14},$0={display:"flex",gap:8,alignItems:"center"},e1={border:"none",background:"transparent",cursor:"pointer",fontSize:13,color:"#333"},t1={display:"flex",gap:8,marginTop:8},n1={flex:1,border:"1px solid #ddd",borderRadius:12,padding:"8px 10px",fontSize:14},r1={border:"1px solid #111",background:"#111",color:"#fff",borderRadius:12,padding:"8px 10px",fontSize:13,cursor:"pointer"},i1={listStyle:"none",margin:"8px 0 0 12px",padding:0,display:"grid",gap:10},a1={color:"#777",padding:"16px 12px"},s1={display:"grid",placeItems:"center",padding:"16px 0"},o1={width:28,height:28,borderRadius:"50%",border:"2px solid rgba(0,0,0,.15)",borderTopColor:"#111",animation:"clip-spin 0.8s linear infinite",willChange:"transform"},l1={position:"absolute",top:"110%",right:0,background:"#fff",border:"1px solid #eee",borderRadius:12,boxShadow:"0 6px 18px rgba(0,0,0,.08)",padding:8,display:"grid",gap:4,zIndex:50,minWidth:190},c1={textDecoration:"none",fontSize:14,color:"#111",padding:"8px 10px",borderRadius:8,display:"block",lineHeight:1.2},d1={fontSize:14,color:"#111",padding:"8px 10px",borderRadius:8,width:"100%",textAlign:"left",background:"transparent",border:"none",cursor:"pointer",lineHeight:1.2},u1={position:"absolute",top:"120%",right:0,background:"#fff",border:"1px solid #eee",borderRadius:10,boxShadow:"0 8px 20px rgba(0,0,0,.08)",padding:6,display:"grid",gap:4,zIndex:60,minWidth:130},h1={background:"transparent",border:"none",padding:"8px 10px",textAlign:"left",borderRadius:8,cursor:"pointer"},p1=o(o({},h1),{},{color:"#d30"});function m1(e){let{size:t=12,ml:n=6}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"inline-block",marginLeft:n,verticalAlign:"middle",flex:"0 0 auto"},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1DA1F2"}),(0,Xo.jsx)("path",{d:"M17 9l-6.2 6L7 11.5",stroke:"#fff",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})}function f1(){const[e,t]=(0,$.useState)(""),n=(0,$.useMemo)((()=>{const t=Object.entries(a0).map((e=>{let[t,n]=e;return{slug:t,name:n.displayName||t,avatar:n.avatar||"/nullprofile.png"}}));if(!e.trim())return t;const n=e.trim().toLowerCase();return t.filter((e=>e.name.toLowerCase().includes(n)||e.slug.includes(n)))}),[e]);return(0,Xo.jsxs)("div",{style:g1,children:[(0,Xo.jsx)("header",{style:v1,children:(0,Xo.jsx)("h1",{style:b1,children:"SEARCH"})}),(0,Xo.jsx)("div",{style:y1,children:(0,Xo.jsx)("input",{value:e,onChange:e=>t(e.target.value),placeholder:"SEARCH STREAMERS\u2026",style:x1,autoFocus:!0})}),(0,Xo.jsx)("div",{style:S1,children:e?"RESULTS":"SUGGESTED STREAMERS"}),(0,Xo.jsx)("ul",{style:k1,children:n.map((e=>(0,Xo.jsx)("li",{style:w1,children:(0,Xo.jsxs)(wn,{to:"/".concat(e.slug),style:T1,children:[(0,Xo.jsx)("img",{src:e.avatar,alt:"",style:C1}),(0,Xo.jsxs)("div",{style:E1,children:[(0,Xo.jsxs)("div",{style:j1,children:[(0,Xo.jsx)("span",{style:A1,children:e.name}),(0,Xo.jsx)(m1,{size:12,ml:6})]}),(0,Xo.jsxs)("div",{style:N1,children:["/",e.slug]})]}),(0,Xo.jsx)("span",{style:P1,children:"\u2192"})]})},e.slug)))}),(0,Xo.jsx)("div",{style:{height:72}})," "]})}const g1={padding:"10px 12px 0",background:"#fff",minHeight:"100vh"},v1={padding:"6px 2px 8px",borderBottom:"1px solid #eee"},b1={margin:0,fontSize:16,letterSpacing:".5px"},y1={padding:"12px 0"},x1={width:"100%",border:"1px solid #ddd",borderRadius:12,padding:"12px 14px",fontSize:14,textTransform:"uppercase"},S1={fontSize:12,color:"#666",margin:"4px 2px 8px"},k1={listStyle:"none",margin:0,padding:0,display:"grid",gap:8},w1={border:"1px solid #eee",borderRadius:12}
2,T1={display:"grid",gridTemplateColumns:"42px 1fr auto",gap:10,alignItems:"center",padding:"10px 12px",textDecoration:"none",color:"#111"},C1={width:42,height:42,borderRadius:"50%",objectFit:"cover",border:"1px solid #e5e7eb"},E1={display:"grid",gap:2},j1={display:"flex",alignItems:"center",minWidth:0},A1={fontWeight:700,fontSize:14,lineHeight:1.2,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},N1={fontSize:12,color:"#666"},P1={fontSize:16},R1=(()=>{const e=new Set,t=new Set;for(const[n,r]of Object.entries(a0||{}))n&&t.add(String(n).toLowerCase()),null!==r&&void 0!==r&&r.displayName&&e.add(String(r.displayName).toLowerCase()),null!==r&&void 0!==r&&r.name&&e.add(String(r.name).toLowerCase());return{nameSet:e,slugSet:t}})();function L1(e){var t,n,r,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"reply"!==e.type&&"like"!==e.type)return!1;const{nameSet:s,slugSet:o}=R1,l=[e.actorSlug,e.actorUsername,e.actorDisplayName,e.actorName,e.who,a,null===e||void 0===e||null===(t=e.actor)||void 0===t?void 0:t.slug,null===e||void 0===e||null===(n=e.actor)||void 0===n?void 0:n.username,null===e||void 0===e||null===(r=e.actor)||void 0===r?void 0:r.displayName,null===e||void 0===e||null===(i=e.actor)||void 0===i?void 0:i.name].filter(Boolean),c=e=>String(e).trim().replace(/^@/,"").toLowerCase();for(const d of l){const e=c(d);if(o.has(e)||s.has(e))return!0}return!1}function I1(e){let{size:t=12,ml:n=6}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"inline-block",marginLeft:n,verticalAlign:"middle",flex:"0 0 auto"},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1DA1F2"}),(0,Xo.jsx)("path",{d:"M17 9l-6.2 6L7 11.5",stroke:"#fff",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]})}function D1(e){let{size:t=18}=e;return(0,Xo.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Xo.jsx)("path",{d:"M15 18l-6-6 6-6"})})}function O1(e){switch(e.type){case"live":return"is live now";case"replay":return"posted a replay";case"reply":return"replied to your comment";
2case"like":return"liked your comment";default:return"activity"}}function M1(e){const t=Math.max(1,Math.floor((Date.now()-e)/1e3));if(t<60)return"".concat(t,"s");const n=Math.floor(t/60);if(n<60)return"".concat(n,"m");const r=Math.floor(n/60);if(r<24)return"".concat(r,"h");const i=Math.floor(r/24);return"".concat(i,"d")}function _1(e){let{type:t}=e;const n={width:20,height:20,stroke:"currentColor",strokeWidth:2,fill:"none"};return"live"===t?(0,Xo.jsxs)("svg",o(o({},n),{},{viewBox:"0 0 24 24",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,Xo.jsx)("path",{d:"M2 12a10 10 0 0 1 20 0"})]})):"replay"===t?(0,Xo.jsxs)("svg",o(o({},n),{},{viewBox:"0 0 24 24",children:[(0,Xo.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9"}),(0,Xo.jsx)("polyline",{points:"3 3 3 9 9 9"})]})):"reply"===t?(0,Xo.jsxs)("svg",o(o({},n),{},{viewBox:"0 0 24 24",children:[(0,Xo.jsx)("path",{d:"M10 19l-7-7 7-7"}),(0,Xo.jsx)("path",{d:"M4 12h11a5 5 0 1 1 0 10H9"})]})):(0,Xo.jsx)("svg",o(o({},n),{},{viewBox:"0 0 24 24",children:(0,Xo.jsx)("path",{d:"M20.8 8a5.4 5.4 0 0 0-9.6-3.6L11 5l-.2-.6A5.4 5.4 0 1 0 3.2 14L11 21l7.8-7a5.4 5.4 0 0 0 2-6z"})}))}const F1={background:"#fff",minHeight:"100vh"},B1={position:"sticky",top:0,zIndex:10,background:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 14px",borderBottom:"1px solid #eee"},U1={margin:0,fontSize:18,fontWeight:800,letterSpacing:.2},z1={background:"#111",color:"#fff",borderRadius:999,padding:"2px 8px",fontSize:12,fontWeight:700},G1={display:"flex",gap:8,padding:"8px 12px",borderBottom:"1px solid #eee",position:"sticky",background:"#fff",zIndex:9},W1={border:"1px solid #e6e6e6",background:"#fafafa",color:"#111",borderRadius:999,padding:"6px 10px",fontSize:13,fontWeight:600},H1=o(o({},W1),{},{background:"#111",color:"#fff",borderColor:"#111"}),V1={padding:12,color:"#666"},K1={padding:12,color:"#b91c1c",fontSize:13},q1={padding:12,color:"#666"},Y1={listStyle:"none",margin:0,padding:0,display:"grid",gap:1},X1={borderBottom:"1px solid #f0f0f0"},J1={width:"100%",display:"grid",gridTemplateColumns:"44px 1fr 28px",gap:10,alignItems:"center",padding:"10px 14px",background:"transparent",border:"none",textAlign:"left",cursor:"pointer"},Q1={display:"grid",placeItems:"center"},Z1=e=>({width:36,height:36,borderRadius:18,display:"grid",placeItems:"center",border:e?"1px solid #eee":"1px solid #111",color:e?"#555":"#111",background:"#fff"}),$1={minWidth:0},e2=e=>({fontSize:14,lineHeight:1.25,color:"#111",fontWeight:e?500:800}),t2=e=>({fontWeight:e?600:800}),n2=e=>({color:"#111",opacity:e?.85:1}),r2={marginTop:4,fontSize:13,color:"#333"},i2={display:"flex",alignItems:"center",gap:10,marginTop:6},a2={width:28,height:28,borderRadius:"50%",overflow:"hidden",background:"#eee",display:"grid",placeItems:"center"},s2={width:"100%",height:"100%",objectFit:"cover"},o2={fontSize:12,color:"#666"},l2={display:"grid",placeItems:"center"},c2={width:8,height:8,background:"#111",borderRadius:"50%"};function d2(){const{user:e}=(0,$.useContext)(Qo),{pathname:t}=Wt(),n=Vt(),[r,i]=(0,$.useState)("undefined"!==typeof window&&window.matchMedia("(min-width:1024px)").matches);(0,$.useEffect)((()=>{var e;const t=window.matchMedia("(min-width:1024px)"),n=()=>i(t.matches);return null===(e=t.addEventListener)||void 0===e||e.call(t,"change",n),()=>{var e;return null===(e=t.removeEventListener)||void 0===e?void 0:e.call(t,"change",n)}}),[]);const[a,s]=(0,$.useState)([]),[l,c]=(0,$.useState)("loading"),[d,u]=(0,$.useState)(""),[h,p]=(0,$.useState)("all"),m=(0,$.useMemo)((()=>a.filter((e=>!e.read)).length),[a]),f=(0,$.useMemo)((()=>"unread"===h?a.filter((e=>!e.read)):a),[a,h]);(0,$.useEffect)((()=>{try{localStorage.setItem("yzy_unread_count",String(m)),window.dispatchEvent(new Event("yzy_unread_update"))}catch(e){}}),[m]),(0,$.useEffect)((()=>{let t,n,r=!0;if(!e){s([]),c("anon");try{localStorage.setItem("yzy_unread_count","0"),window.dispatchEvent(new Event("yzy_unread_update"))}catch(a){}return()=>{}}const i=async()=>{if(r){c((e=>"ready"===e?"ready":"loading")),u("");try{const e=await(0,$W.fetchNotifications)({limit:50}),t=Array.isArray(null===e||void 0===e?void 0:e.items)?e.items:[];if(!r)return;s(t),c("ready")}catch(Ps){if(!r)return;s([]),u(String((null===Ps||void 0===Ps?void 0:Ps.message)||Ps)),c("error")}}};i();try{t=(0,$W.openNotifStream)(),t.onmessage=e=>{if(r)try{const t=JSON.parse(e.data||"{}");Array.isArray(t.items)&&s(t.items);const n=t.item||t.notification;n&&s((e=>[n,...e])),"number"===typeof t.unreadCount&&(localStorage.setItem("yzy_unread_count",String(t.unreadCount)),window.dispatchEvent(new Event("yzy_unread_update")))}catch(t){}},t.onerror=()=>{}}catch(o){}return n=setInterval(i,3e4),()=>{r=!1,t&&t.close(),clearInterval(n)}}),[e]);const g=async e=>{const t=e._id||e.id,r=e.url||(e.clipKey?"/".concat(String(e.clipKey).replace(":","/")):"/");e.read||(async(e,t)=>{s((n=>n.map((n=>n._id===e||n.id===e?o(o({},n),{},{read:t}):n))));try{await(0,$W.markRead)({ids:[e],read:t})}catch(n){}})(t,!0),n(r)},v=o(o({},G1),{},{top:r?112:48});return(0,Xo.jsxs)("div",{style:F1,children:[(0,Xo.jsx)("style",{children:"\n@media (min-width:1024px){\n .desk-topbar {\n position: sticky;\n top: 56px; /* sits under the global Topbar */\n z-index: 60;\n height: 56px;\n display: flex;
2\n align-items: center;\n gap: 12px;\n padding: 0 14px;\n background: #fff;\n border-bottom: 1px solid #eee;\n }\n .desk-back {\n appearance: none;\n border: none;\n outline: none;\n padding: 8px;\n width: 36px;\n height: 36px;\n border-radius: 999px;\n display: grid;\n place-items: center;\n color: #111;\n background: transparent;\n cursor: pointer;\n transition: background .15s ease, transform .06s ease;\n }\n .desk-back:hover { background: #f2f2f2; }\n .desk-back:active { transform: translateY(1px) scale(0.98); }\n .desk-title {\n color: #111;\n font-weight: 800;\n letter-spacing: 0.02em;\n font-size: 15px;\n text-transform: uppercase;\n line-height: 1;\n }\n .mobile-head { display: none !important; }\n}\n\n@media (min-width:1024px){\n .desk-shell {\n display: grid;\n grid-template-columns: 256px 1fr; /* leftbar width + content */\n min-height: 100vh;\n background: #fff;\n }\n .desk-left {\n border-right: 1px solid #eee;\n background: #fff;\n position: sticky;\n top: 0;\n height: 100vh;\n overflow: auto; /* scroll if left list is long */\n }\n .desk-main {\n min-width: 0; /* allow content to shrink */\n }\n}\n\n@media (min-width:1024px){\n .desk-global-topbar {\n position: sticky;\n top: 0;\n z-index: 70; /* above desk-topbar */\n background: #fff; /* always white */\n border-bottom: 1px solid #eee;\n }\n}\n"}),r?(0,Xo.jsxs)("div",{className:"desk-shell",children:[(0,Xo.jsx)("aside",{className:"desk-left",children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsxs)("main",{className:"desk-main",children:[(0,Xo.jsx)("div",{className:"desk-global-topbar",children:(0,Xo.jsx)(gT,{})}),(0,Xo.jsxs)("header",{className:"desk-topbar",children:[(0,Xo.jsx)("button",{type:"button",className:"desk-back","aria-label":"Back",onClick:()=>{if(window.history.state&&window.history.length>1)return n(-1);n("/",{replace:!0})},children:(0,Xo.jsx)(D1,{size:20})}),(0,Xo.jsx)("div",{className:"desk-title",children:"Notifications"})]}),(0,Xo.jsxs)("div",{style:v,children:[(0,Xo.jsx)("button",{onClick:()=>p("all"),style:"all"===h?H1:W1,"aria-current":"all"===h?"page":void 0,children:"All"}),(0,Xo.jsxs)("button",{onClick:()=>p("unread"),style:"unread"===h?H1:W1,"aria-current":"unread"===h?"page":void 0,children:["Unread",m?" (".concat(m,")"):""]})]}),"loading"===l&&(0,Xo.jsx)("div",{style:V1,children:"Loading\u2026"}),"error"===l&&(0,Xo.jsxs)("div",{style:K1,children:["Couldn\u2019t load notifications from server (",d,")."]}),"ready"===l&&0===f.length&&(0,Xo.jsx)("div",{style:q1,children:"unread"===h?"No unread notifications.":"No notifications yet."}),(0,Xo.jsx)("ul",{style:Y1,children:f.map((e=>{const t=e._id||e.id,n=!!e.read,r=e.type||"reply",i=e.actorDisplayName||e.actorName||e.who||"Someone",a=e.createdAt?Date.parse(e.createdAt):e.ts||Date.now(),s=e.actorAvatar||e.avatar||e.profilePicture||e.actorProfilePicture||e.actor&&e.actor.profilePicture||e.user&&e.user.profilePicture||"",l=L1(e,i);return(0,Xo.jsx)("li",{style:o(o({},X1),{},{background:n?"#fff":"#f7f9fb"}),children:(0,Xo.jsxs)("button",{onClick:()=>g(e),style:J1,"aria-label":"".concat(i," ").concat(O1(e)),children:[(0,Xo.jsx)("div",{style:Q1,children:(0,Xo.jsx)("div",{style:Z1(n),children:(0,Xo.jsx)(_1,{type:r})})}),(0,Xo.jsxs)("div",{style:$1,children:[(0,Xo.jsxs)("div",{style:e2(n),children:[(0,Xo.jsx)("strong",{style:t2(n),children:i}),l&&(0,Xo.jsx)(I1,{size:12,ml:6}),(0,Xo.jsxs)("span",{style:n2(n),children:["\xa0",O1(e)]})]}),e.preview&&(0,Xo.jsx)("div",{style:r2,children:e.preview}),(0,Xo.jsxs)("div",{style:i2,children:[s&&(0,Xo.jsx)("div",{style:a2,children:(0,Xo.jsx)("img",{src:s,alt:"",style:s2})}),(0,Xo.jsx)("span",{style:o2,children:M1(a)})]})]}),(0,Xo.jsx)("div",{style:l2,children:!n&&(0,Xo.jsx)("span",{style:c2,"aria-hidden":"true"})})]})},t)}))}),(0,Xo.jsx)("div",{style:{height:72}})]})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("header",{className:"mobile-head",style:B1,children:(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,Xo.jsx)("h1",{style:U1,children:"NOTIFICATIONS"}),m>0&&(0,Xo.jsx)("span",{style:z1,children:m})]})}),(0,Xo.jsxs)("div",{style:v,children:[(0,Xo.jsx)("button",{onClick:()=>p("all"),style:"all"===h?H1:W1,"aria-current":"all"===h?"page":void 0,children:"All"}),(0,Xo.jsxs)("button",{onClick:()=>p("unread"),style:"unread"===h?H1:W1,"aria-current":"unread"===h?"page":void 0,children:["Unread",m?" (".concat(m,")"):""]})]}),"loading"===l&&(0,Xo.jsx)("div",{style:V1,children:"Loading\u2026"}),"error"===l&&(0,Xo.jsxs)("div",{style:K1,children:["Couldn\u2019t load notifications from server (",d,")."]}),"ready"===l&&0===f.length&&(0,Xo.jsx)("div",{style:q1,children:"unread"===h?"No unread notifications.":"No notifications yet."}),(0,Xo.jsx)("ul",{style:Y1,children:f.map((e=>{const t=e._id||e.id,n=!!e.read,r=e.type||"reply",i=e.actorDisplayName||e.actorName||e.who||"Someone",a=e.createdAt?Date.parse(e.createdAt):e.ts||Date.now(),s=e.actorAvatar||e.avatar||e.profilePicture||e.actorProfilePicture||e.actor&&e.actor.profilePicture||e.user&&e.user.profilePicture||"",l=L1(e,i);return(0,Xo.jsx)("li",{style:o(o({},X1),{},{background:n?"#fff":"#f7f9fb"}),children:(0,Xo.jsxs)("button",{onClick:()=>g(e),style:J1,"aria-label":"".concat(i," ").concat(O1(e)),children:[(0,Xo.jsx)("div",{style:Q1,children:(0,Xo.jsx)("div",{style:Z1(n),children:(0,Xo.jsx)(_1,{type:r})})}),(0,Xo.jsxs)("div",{style:$1,children:[(0,Xo.jsxs)("div",{style:e2(n),children:[(0,Xo.jsx)("strong",{style:t2(n),children:i}),l&&(0,Xo.jsx)(I1,{size:12,ml:6}),(0,Xo.jsxs)("span",{style:n2(n),children:["\xa0",O1(e)]})]}),e.preview&&(0,Xo.jsx)("div",{style:r2,children:e.preview}),(0,Xo.jsxs)("div",{style:i2,children:[s&&(0,Xo.jsx)("div",{style:a2,children:(0,Xo.jsx)("img",{src:s,alt:"",style:s2})}),(0,Xo.jsx)("span",{style:o2,children:M1(a)})]})]}),(0,Xo.jsx)("div",{style:l2,children:!n&&(0,Xo.jsx)("span",{style:c2,"aria-hidden":"true"})})]})},t)}))}),(0,Xo.jsx)("div",{style:{height:72}})]})]})}function u2(){const{t:e}=Ae("common"),t=Wt(),n=Vt(),{user:r}=(0,$.useContext)(Qo),[i,a]=(0,$.useState)(null),[s,o]=(0,$.useState)((()=>{const e=Number(localStorage.getItem("cb_new_clips")||"0");return Number.isFinite(e)?e:0}));(0,$.useEffect)((()=>{const e=()=>{const e=Number(localStorage.getItem("cb_new_clips")||"0");o(Number.isFinite(e)?e:0)};return window.addEventListener("cb_new_clips",e),window.addEventListener("storage",e),()=>{window.removeEventListener("cb_new_clips",e),window.removeEventListener("storage",e)}}),[]),(0,$.useEffect)((()=>{(async()=>
2{if(r)try{const e=await ks.get("/users/me/creator-settings");a(e.data.profilePicture||null)}catch(K6){}})()}),[r]),(0,$.useEffect)((()=>{const e=e=>{var t;null!==(t=e.detail)&&void 0!==t&&t.profilePicture&&a(e.detail.profilePicture)};return window.addEventListener("profile_picture_updated",e),()=>window.removeEventListener("profile_picture_updated",e)}),[]);const l=new URLSearchParams(t.search).get("tab"),c="/home"===t.pathname,d=c&&"library"===l,u=c&&!d,h=()=>i?i.includes("amazonaws.com")?null:i.startsWith("http")?i:"https://clipbait-app.onrender.com/Images/"+i:null;return(0,Xo.jsxs)("nav",{className:"mobile-bottom-bar",role:"navigation","aria-label":"Bottom",children:[(0,Xo.jsx)("div",{className:"mb-tab"+(u?" is-active":""),onClick:()=>n("/home"),role:"button",tabIndex:0,"aria-label":e("home","Home"),children:(0,Xo.jsx)(h2,{})}),(0,Xo.jsxs)("div",{className:"mb-tab"+(d?" is-active":""),onClick:()=>n("/home?tab=library"),role:"button",tabIndex:0,"aria-label":"Library",children:[(0,Xo.jsx)(p2,{}),s>0&&(0,Xo.jsx)("span",{className:"mb-clip-badge",children:s>99?"99+":s})]}),(0,Xo.jsx)(Tn,{to:"/me",className:e=>{let{isActive:t}=e;return"mb-tab"+(t?" is-active":"")},children:h()?(0,Xo.jsx)("img",{src:h(),alt:e("profile"),className:"mb-profile-picture"}):(0,Xo.jsx)(m2,{})})]})}function h2(e){let{size:t=24}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Xo.jsx)("path",{d:"M3 10.5 12 3l9 7.5"}),(0,Xo.jsx)("path",{d:"M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5"})]})}function p2(e){let{size:t=24}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Xo.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,Xo.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]})}function m2(e){let{size:t=22}=e;return(0,Xo.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Xo.jsx)("path",{d:"M20 21a8 8 0 10-16 0"}),(0,Xo.jsx)("circle",{cx:"12",cy:"7",r:"4"})]})}const f2="initial",g2="verify_code",v2=()=>{const{t:e}=Ae("auth"),[t,n]=(0,$.useState)(f2),[r,i]=(0,$.useState)(""),[a,s]=(0,$.useState)(["","","","","",""]),[o,l]=(0,$.useState)(!1),[c,d]=(0,$.useState)(""),[u,h]=(0,$.useState)(0),p=(0,$.useRef)([]),m=Vt(),f=Wt(),{dispatch:g}=(0,$.useContext)(Qo),v=(b=new URLSearchParams(f.search).get("returnUrl"))?"string"!==typeof b||!b.startsWith("/")||b.startsWith("//")?"/home":b:"/home";var b;(0,$.useEffect)((()=>{if(u>0){const e=setTimeout((()=>h(u-1)),1e3);return()=>clearTimeout(e)}}),[u]),(0,$.useEffect)((()=>{t===g2&&p.current[0]&&p.current[0].focus()}),[t]);return(0,Xo.jsxs)("div",{className:"auth-page",children:[(0,Xo.jsx)("div",{className:"auth-overlay"}),(0,Xo.jsx)("a",{href:"https://clipbait.ai",className:"auth-page-logo","aria-label":"Clipbait home",children:"CLIPBAIT"}),(0,Xo.jsxs)("div",{className:"auth-modal",children:[(0,Xo.jsx)(wn,{to:"/",className:"auth-logo",children:e("common:clipbait")}),t===f2&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h1",{className:"auth-title",children:e("welcomeBack")}),(0,Xo.jsx)("p",{className:"auth-subtitle",children:e("signInToContinue")}),!1,(0,Xo.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),r&&r.includes("@")){l(!0),d("");try{if("[email protected]"===r.trim().toLowerCase())return await(async e=>{e({type:"LOGIN_START"}),Es(!1);try{const t=await ks.post("/auth/demo-login");t.data.token&&localStorage.setItem("token",t.data.token),e({type:"LOGIN_SUCCESS",payload:t.data})}catch(K6){var t,n;throw e({type:"LOGIN_FAILURE",payload:(null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message)||"Demo login failed"}),K6}})(g),void m(v);await ks.post("/auth/send-code",{email:r.toLowerCase()}),n(g2),h(60)}catch(K6){var i,a,s,o;d((null===(i=K6.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.error)||(null===(s=K6.response)||void 0===s||null===(o=s.data)||void 0===o?void 0:o.message)||e("failedToSendCode"))}finally{l(!1)}}else d(e("invalidEmail"))},children:[(0,Xo.jsx)("div",{className:"auth-input-group",children:(0,Xo.jsx)("input",{type:"email",className:"auth-input",placeholder:e("enterYourEmail"),value:r,onChange:e=>i(e.target.value),disabled:o})}),c&&(0,Xo.jsx)("div",{className:"auth-error",children:c}),(0,Xo.jsx)("button",{type:"submit",className:"auth-continue-btn",disabled:o||!r,children:o?(0,Xo.jsx)("div",{className:"auth-spinner"}):e("common:continue")})]}),(0,Xo.jsxs)("p",{style:{textAlign:"center",marginTop:18,fontSize:14,color:"rgba(255,255,255,0.6)"},children:["Don't have an account?"," ",(0,Xo.jsx)("a",{href:"https://clipbait.ai/join",style:{color:"#ff8a33",fontWeight:600,textDecoration:"none"},children:"Join here \u2192"})]})]}),t===g2&&(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h1",{className:"auth-title",children:e("checkYourEmail")}),(0,Xo.jsxs)("p",{className:"auth-subtitle",children:[e("weSentCodeTo")," ",(0,Xo.jsx)("strong",{children:r})]}),(0,Xo.jsxs)("div",{className:"auth-email-display",children:[(0,Xo.jsx)("span",{children:r}),(0,Xo.jsx)("button",{className:"auth-edit-btn",onClick:()=>{n(f2),s(["","","","","",""]),d("")},children:e("common:edit")})]}),(0,Xo.jsxs)("form",{onSubmit:async t=>{t.preventDefault();const n=a.join("");if(6===n.length){l(!0),d("");try{const e=await ks.post("/auth/verify-code",{email:r.toLowerCase(),code:n}),{token:t,user:i}=e.data;localStorage.setItem("token",t),localStorage.setItem("user",JSON.stringify(i)),g({type:"LOGIN_SUCCESS",payload:i}),m(v)}catch(K6){var i,o;d((null===(i=K6.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.error)||e("invalidCode")),s(["","","","","",""]),p.current[0]&&p.current[0].focus()}finally{l(!1)}}else d(e("pleaseEnter6DigitCode"))},children:[(0,Xo.jsx)("div",{className:"auth-code-inputs",children:a.map(((e,t)=>(0,Xo.jsx)("input",{ref:e=>{p.current[t]=e},type:"text",inputMode:"numeric",maxLength:6,className:"auth-code-input",value:e,onCh
2ange:e=>((e,t)=>{if(t.length>1){const n=t.slice(0,6).split(""),r=[...a];n.forEach(((t,n)=>{e+n<6&&(r[e+n]=t)})),s(r);const i=Math.min(e+n.length,5);p.current[i]&&p.current[i].focus()}else{const n=[...a];n[e]=t,s(n),t&&e<5&&p.current[e+1]&&p.current[e+1].focus()}})(t,e.target.value.replace(/\D/g,"")),onKeyDown:e=>((e,t)=>{"Backspace"===t.key&&!a[e]&&e>0&&p.current[e-1]&&p.current[e-1].focus()})(t,e),disabled:o},t)))}),c&&(0,Xo.jsx)("div",{className:"auth-error",children:c}),(0,Xo.jsx)("button",{type:"submit",className:"auth-continue-btn",disabled:o||6!==a.join("").length,children:o?(0,Xo.jsx)("div",{className:"auth-spinner"}):e("verifyAndContinue")})]}),(0,Xo.jsx)("div",{className:"auth-resend",children:u>0?(0,Xo.jsx)("span",{className:"auth-countdown",children:e("resendCodeIn",{countdown:u})}):(0,Xo.jsx)("button",{className:"auth-resend-btn",onClick:async()=>{if(!(u>0)){l(!0),d("");try{await ks.post("/auth/send-code",{email:r.toLowerCase()}),h(60),s(["","","","","",""])}catch(K6){var t,n;d((null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||e("failedToSendCode"))}finally{l(!1)}}},disabled:o,children:e("resendCode")})})]}),(0,Xo.jsxs)("p",{className:"auth-terms",children:[e("byContinuingYouAgree")," ",(0,Xo.jsx)("a",{href:"https://clipbait.ai/terms-and-conditions/tos#hero",target:"_blank",rel:"noopener noreferrer",children:e("termsOfService")})," ",e("common:and")," ",(0,Xo.jsx)("a",{href:"https://clipbait.ai/privacy-policy/privacypolicy#hero",target:"_blank",rel:"noopener noreferrer",children:e("privacyPolicy")})]})]})]})};var b2,y2="basil",x2="https://js.stripe.com",S2="".concat(x2,"/").concat(y2,"/stripe.js"),k2=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,w2=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,T2="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",C2=function(e){return k2.test(e)||w2.test(e)},E2=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(S2).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},j2=null,A2=null,N2=null,P2=function(e){return null!==j2?j2:(j2=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(T2),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(x2,'"]')),t=0;t<e.length;t++){var n=e[t];if(C2(n.src))return n}return null}();if(r&&e)console.warn(T2);else if(r){if(r&&null!==N2&&null!==A2){var i;r.removeEventListener("load",N2),r.removeEventListener("error",A2),null===(i=r.parentNode)||void 0===i||i.removeChild(r),r=E2(e)}}else r=E2(e);N2=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),A2=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(n),r.addEventListener("load",N2),r.addEventListener("error",A2)}catch(a){return void n(a)}else t(null)})),j2.catch((function(e){return j2=null,Promise.reject(e)})))},R2=!1,L2=function(){return b2||(b2=P2(null).catch((function(e){return b2=null,Promise.reject(e)})),b2)};Promise.resolve().then((function(){return L2()})).catch((function(e){R2||console.warn(e)}));var I2=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R2=!0;var r=Date.now();return L2().then((function(e){return function(e,t,n){if(null===e)return null;var r=t[0].match(/^pk_test/),i=function(e){return 3===e?"v3":e}(e.version),a=y2;r&&i!==a&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("7.6.1"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.6.1",startTime:t})}(s,n),s}(e,t,r)}))};const D2={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_X_REDIRECT_URI:"http://localhost:8800/api/auth/x/callback",REACT_APP_NEW_PRICING_LIVE:"true",REACT_APP_X_CLIENT_ID:"WGI1TWE2VFVYN01HLVBuOFhGQkw6MTpjaQ",REACT_APP_PUBLIC_FOLDER:"https://clipbait-app.onrender.com/Images/",REACT_APP_API_BASE:"https://clipbait-app.onrender.com",REACT_APP_API_BASE_URL:"https://clipbait-app.onrender.com",REACT_APP_X_CLIENT_SECRET:"eEJlLNQcX_4T4IT3LMmhFqLGaDMelMsMdQLgmEPAwAhZfqQtgB"}.REACT_APP_STRIPE_PUBLIC_KEY||"pk_live_51QeM0rK7YkTpCa7EeGn4uCXI0y2CwBwVmsjEFUsS7EkCWhoE16pbCHpmib3lZfydIT3PWp5tPXjmjompm9J54Tbm00UwkDGwjV";function O2(e){let{open:t,onClose:n}=e;const{user:r}=(0,$.useContext)(Qo),i=(0,$.useRef)(null),a=(0,$.useRef)(null),s=(0,$.useRef)(null),[o,l]=(0,$.useState)(!1),[c,d]=(0,$.useState)(!1),[u,h]=(0,$.useState)("");if((0,$.useEffect)((()=>
2{if(!t)return;let e=!1;return(async()=>{if(!D2)return void h("Payments are not configured. Please try again later.");const t=await I2(D2);if(e||!i.current)return;a.current=t;const n=t.elements().create("card",{style:{base:{color:"#fff",fontSize:"16px",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace","::placeholder":{color:"rgba(255,255,255,0.4)"}},invalid:{color:"#ff6b6b"}}});n.mount(i.current),n.on("change",(e=>{var t;return h((null===(t=e.error)||void 0===t?void 0:t.message)||"")})),s.current=n,l(!0)})(),()=>{e=!0;try{var t;null===(t=s.current)||void 0===t||t.unmount()}catch(n){}s.current=null,l(!1)}}),[t]),!t)return null;return(0,Xo.jsx)("div",{className:"tcm-overlay",onClick:n,children:(0,Xo.jsxs)("div",{className:"tcm-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("button",{className:"tcm-close",onClick:n,"aria-label":"Close",children:"\xd7"}),(0,Xo.jsx)("div",{className:"tcm-badge",children:"$1 TRIAL"}),(0,Xo.jsx)("h2",{className:"tcm-title",children:"Start clipping for $1"}),(0,Xo.jsxs)("p",{className:"tcm-sub",children:["$1 gets you ",(0,Xo.jsx)("strong",{children:"12 credits"})," right now and a ",(0,Xo.jsx)("strong",{children:"3-day trial"}),". After that it's $24/mo (Pro). Cancel anytime."]}),(0,Xo.jsx)("div",{className:"tcm-card-label",children:"Card details"}),(0,Xo.jsx)("div",{className:"tcm-card".concat(u?" tcm-card--err":""),ref:i}
2),u&&(0,Xo.jsx)("div",{className:"tcm-err",children:u}),(0,Xo.jsx)("button",{className:"tcm-pay",onClick:async()=>{if(c||!o)return;const e=a.current,t=s.current;if(e&&t){d(!0);try{const{error:n,paymentMethod:i}=await e.createPaymentMethod({type:"card",card:t});if(n)return h(n.message||"Card error"),void d(!1);const{data:a}=await ks.post("/checkout",{plan:"trial",stripePaymentMethodId:i.id,email:null===r||void 0===r?void 0:r.email,fullName:(null===r||void 0===r?void 0:r.streamerName)||(null===r||void 0===r?void 0:r.username)});if(null!==a&&void 0!==a&&a.requiresAction&&null!==a&&void 0!==a&&a.clientSecret){const{error:t}=await e.confirmCardPayment(a.clientSecret);if(t)return Vo.error(t.message||"Card authentication failed."),void d(!1)}Vo.success("You're on the Pro trial! 12 credits added."),setTimeout((()=>window.location.reload()),900)}catch(K6){var n,i,l,u;const t=(null===(n=K6.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.message)||(null===(l=K6.response)||void 0===l||null===(u=l.data)||void 0===u?void 0:u.error)||"Couldn't start your trial. Please try again.";Vo.error(t),d(!1)}}},disabled:c||!o,children:c?"Starting your trial\u2026":"Start for $1"}),(0,Xo.jsx)("p",{className:"tcm-fine",children:"You won't be charged $24 if you cancel before the trial ends."})]})})}Object.fromEntries([{id:"white",bg:"rgba(255,255,255,0.92)",text:"#111",dot:"#fff",border:"#bbb"},{id:"black",bg:"rgba(0,0,0,0.85)",text:"#fff",dot:"#222",border:"#555"},{id:"yellow",bg:"rgba(255,235,59,0.95)",text:"#111",dot:"#FFEB3B",border:"#FDD835"},{id:"red",bg:"rgba(239,68,68,0.92)",text:"#fff",dot:"#EF4444",border:"#DC2626"},{id:"blue",bg:"rgba(59,130,246,0.92)",text:"#fff",dot:"#3B82F6",border:"#2563EB"},{id:"green",bg:"rgba(34,197,94,0.92)",text:"#fff",dot:"#22C55E",border:"#16A34A"}].map((e=>[e.id,{bg:e.bg,text:e.text}]))),Object.fromEntries([{id:"montserrat",label:"Montserrat",family:"'Montserrat', sans-serif"},{id:"bebas",label:"Bebas Neue",family:"'Bebas Neue', sans-serif"},{id:"oswald",label:"Oswald",family:"'Oswald', sans-serif"},{id:"bangers",label:"Bangers",family:"'Bangers', cursive"},{id:"marker",label:"Marker",family:"'Permanent Marker', cursive"},{id:"anton",label:"Anton",family:"'Anton', sans-serif"},{id:"poppins",label:"Poppins",family:"'Poppins', sans-serif"}].map((e=>[e.id,e.family])));const M2="https://app.clipbait.ai",_2="#ff6a00",F2="#ff8a33",B2="rgba(255,255,255,0.10)",U2="rgba(255,255,255,0.07)",z2="rgba(255,255,255,0.035)",G2="rgba(255,255,255,0.95)",W2="rgba(255,255,255,0.78)",H2="rgba(255,255,255,0.62)",V2="#3ddc97",K2="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",q2={background:"rgba(255,255,255,0.06)",border:"1px solid ".concat(B2),color:G2,padding:"8px 14px",fontSize:13,fontWeight:600,borderRadius:9,cursor:"pointer",whiteSpace:"nowrap",transition:"background .15s, border-color .15s"},Y2={background:"linear-gradient(135deg, ".concat(_2,", ").concat(F2,")"),color:"#fff",border:"none",borderRadius:999,padding:"12px 22px",fontSize:14,fontWeight:700,cursor:"pointer"},X2=[{id:"connector",icon:"\ud83d\udd17",title:"Claude or ChatGPT",subtitle:"Easiest. Just paste a link, no install.",cmd:e=>"".concat(M2,"/api/mcp/").concat(e),hint:"In Claude: Settings \u2192 Connectors \u2192 Add custom connector \u2192 paste this link. In ChatGPT: Settings \u2192 Connectors \u2192 add an MCP server with this link."},{id:"claude-code",icon:"\u25c8",title:"Claude Code",subtitle:"One command in your terminal",cmd:e=>"npx clipbait@latest ".concat(e)},{id:"cli",icon:"\u276f",title:"Command line",subtitle:"Make clips from your terminal",cmd:e=>"npx clipbait@latest login ".concat(e)},{id:"api",icon:"{ }",title:"Direct API",subtitle:"curl or any HTTP client",cmd:e=>'curl -H "X-API-Key: '.concat(e,'" ').concat(M2,"/api/clips/jobs")}];function J2(e){let{icon:t}=e;return(0,Xo.jsx)("span",{style:{display:"grid",placeItems:"center",width:30,height:30,borderRadius:8,background:"rgba(255,106,0,0.14)",color:F2,fontFamily:K2,fontSize:14,fontWeight:700,flexShrink:0},children:t})}function Q2(){const[e,t]=(0,$.useState)(null),[n,r]=(0,$.useState)(!1),[i,a]=(0,$.useState)(!1),[s,l]=(0,$.useState)(!1);(0,$.useEffect)((()=>{ks.get("/users/me/api-key").then((e=>{var n;return t((null===(n=e.data)||void 0===n?void 0:n.apiKey)||"")})).catch((()=>t("")))}),[]);const c=async e=>{if(!e||window.confirm("Make a new key? Anything connected with the old key will stop working until you paste in the new one.")){a(!0);try{const n=await ks.post("/users/me/api-key");t(n.data.apiKey),r(!0),Vo.success(e?"New API key generated":"API key created")}catch(Ps){var n,i;Vo.error((null===(n=Ps.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error)||"Couldn't create key")}finally{a(!1)}}},d=(e,t)=>
2{try{navigator.clipboard.writeText(e),Vo.success("".concat(t," copied"))}catch(n){Vo.error("Copy failed, select it manually")}},u=e?"".concat(e.slice(0,12)).concat("\u2022".repeat(14)).concat(e.slice(-4)):"",h="".concat(M2,"/api/mcp"),p=X2.filter((e=>"connector"!==e.id));return(0,Xo.jsxs)("div",{className:"me-section",children:[(0,Xo.jsxs)("h3",{className:"me-section-title",children:["Use Clipbait with AI",(0,Xo.jsx)("span",{style:{marginLeft:8,fontSize:11,fontWeight:700,letterSpacing:.3,color:F2,border:"1px solid rgba(255,106,0,0.5)",borderRadius:999,padding:"2px 9px",verticalAlign:"middle"},children:"NEW"})]}),(0,Xo.jsxs)("p",{className:"me-section-desc",style:{color:W2},children:["Ask Claude or ChatGPT to make clips for you."," ",(0,Xo.jsx)("a",{href:"".concat(M2,"/docs"),target:"_blank",rel:"noopener noreferrer",style:{color:F2,fontWeight:700,whiteSpace:"nowrap"},children:"Developer docs \u2192"})]}),(0,Xo.jsx)("div",{style:{fontSize:15,fontWeight:700,color:G2,marginBottom:6},children:"Connect to Claude or ChatGPT"}),(0,Xo.jsxs)("div",{style:{fontSize:13.5,color:G2,marginBottom:14,lineHeight:1.55},children:["Copy the link, then in Claude: ",(0,Xo.jsx)("b",{children:"Settings \u2192 Connectors \u2192 Add custom connector"})," \u2192 paste. You'll sign in to Clipbait once to approve it. Done."]}),(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,Xo.jsx)("button",{onClick:()=>d(h,"MCP link"),style:{display:"inline-flex",alignItems:"center",gap:8,background:"linear-gradient(135deg, ".concat(_2,", ").concat(F2,")"),color:"#fff",border:"none",borderRadius:999,padding:"13px 24px",fontSize:15,fontWeight:700,cursor:"pointer"},children:"\ud83d\udccb Copy MCP link"}),(0,Xo.jsx)("span",{style:{fontSize:12,color:H2,maxWidth:300},children:"No key needed. Nothing secret in the link, so it's safe to share or screen record."})]}),(0,Xo.jsxs)("button",{onClick:()=>l((e=>!e)),style:{marginTop:18,background:"none",border:"none",color:W2,fontSize:12.5,fontWeight:600,cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",gap:6},children:[(0,Xo.jsx)("span",{style:{display:"inline-block",transform:s?"rotate(90deg)":"none",transition:"transform .15s"},children:"\u25b8"}),"For developers: API key, CLI, direct API"]}),s&&(0,Xo.jsxs)("div",{style:{marginTop:12},children:[null===e?(0,Xo.jsx)("p",{style:{color:W2},children:"Loading\u2026"}):e?(0,Xo.jsxs)("div",{style:{background:"linear-gradient(180deg, rgba(255,106,0,0.05), rgba(255,255,255,0.02))",border:"1px solid ".concat(B2),borderRadius:14,padding:18},children:[(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10},children:[(0,Xo.jsx)("span",{style:{width:8,height:8,borderRadius:999,background:V2,boxShadow:"0 0 8px ".concat(V2)}}),(0,Xo.jsx)("span",{style:{fontSize:12.5,fontWeight:600,color:W2,textTransform:"uppercase",letterSpacing:.6},children:"API key (for CLI / direct API)"})]}),(0,Xo.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,Xo.jsx)("code",{style:{flex:"1 1 260px",minWidth:0,background:"rgba(0,0,0,0.4)",border:"1px solid ".concat(U2),borderRadius:10,padding:"12px 14px",fontFamily:K2,fontSize:14,letterSpacing:n?0:1,color:"#fff",overflowX:"auto",whiteSpace:"nowrap"},children:n?e:u}),(0,Xo.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,Xo.jsx)("button",{style:q2,onClick:()=>r((e=>!e)),children:n?"Hide":"Reveal"}),(0,Xo.jsx)("button",{style:q2,onClick:()=>d(e,"API key"),children:"Copy"}),(0,Xo.jsx)("button",{style:o(o({},q2),{},{color:W2}),onClick:()=>c(!0),disabled:i,title:"Make a new key. The old one stops working.",children:"New key"})]})]}),(0,Xo.jsx)("p",{style:{margin:"12px 0 0",fontSize:12,color:H2},children:"\ud83d\udd12 Keep this private, like a password. You can make a new one anytime."})]}):(0,Xo.jsxs)("div",{style:{background:z2,border:"1px solid ".concat(B2),borderRadius:14,padding:18},children:[(0,Xo.jsx)("div",{style:{fontSize:13.5,color:W2,marginBottom:12},children:"An API key is only needed for the CLI or direct API calls (not for the Claude/ChatGPT connector above)."}),(0,Xo.jsx)("button",{style:o(o({},Y2),{},{opacity:i?.7:1}),onClick:()=>c(!1),disabled:i,children:i?"Generating\u2026":"Generate API key"})]}),e&&(0,Xo.jsx)("div",{style:{marginTop:10,display:"flex",flexDirection:"column",gap:8},children:p.map((t=>(0,Xo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,background:z2,border:"1px solid ".concat(B2),borderRadius:10,padding:"10px 12px"},children:[(0,Xo.jsx)(J2,{icon:t.icon}),(0,Xo.jsxs)("div",{style:{minWidth:0,flex:1},children:[(0,Xo.jsx)("div",{style:{fontSize:13.5,fontWeight:700,color:G2},children:t.title}),(0,Xo.jsx)("div",{style:{fontSize:12,color:H2},children:t.subtitle})]}),(0,Xo.jsx)("button",{onClick:()=>d(t.cmd(e),t.title),style:{background:"linear-gradient(135deg, ".concat(_2,", ").concat(F2,")"),color:"#fff",border:"none",borderRadius:999,padding:"8px 18px",fontSize:13,fontWeight:700,cursor:"pointer",whiteSpace:"nowrap"},children:"Copy"})]},t.id)))})]})]})}const Z2=[{value:"",labelKey:"selectPlatform"},{value:"twitch",labelKey:"platformTwitch"},{value:"youtube",labelKey:"platformYouTube"},{value:"kick",labelKey:"platformKick"},{value:"rumble",labelKey:"platformRumble"},{value:"x",labelKey:"platformXTwitter"},{value:"ganjing",labelKey:"platformGanjing"},{value:"own",labelKey:"platformOwn"}],$2=[{value:"gaming",labelKey:"streamTypeGaming",descKey:"streamTypeGamingDesc"},{value:"talking_head",labelKey:"streamTypeTalkingHead",descKey:"streamTypeTalkingHeadDesc"},{value:"irl",labelKey:"streamTypeIRL",descKey:"streamTypeIRLDesc"},{value:"music",labelKey:"streamTypeMusic",descKey:"streamTypeMusicDesc"},{value:"documentary",labelKey:"streamTypeDocumentary",descKey:"streamTypeDocumentaryDesc"}
2],e4={gaming:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("rect",{x:"2",y:"6",width:"20",height:"12",rx:"4"}),(0,Xo.jsx)("line",{x1:"6",y1:"10",x2:"10",y2:"10"}),(0,Xo.jsx)("line",{x1:"8",y1:"8",x2:"8",y2:"12"}),(0,Xo.jsx)("circle",{cx:"15",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),(0,Xo.jsx)("circle",{cx:"18",cy:"11",r:"1",fill:"currentColor",stroke:"none"})]}),talking_head:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"}),(0,Xo.jsx)("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}),(0,Xo.jsx)("line",{x1:"12",y1:"19",x2:"12",y2:"22"})]}),irl:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Xo.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),(0,Xo.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),music:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("path",{d:"M9 18V5l12-2v13"}),(0,Xo.jsx)("circle",{cx:"6",cy:"18",r:"3"}),(0,Xo.jsx)("circle",{cx:"18",cy:"16",r:"3"})]}),documentary:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),(0,Xo.jsx)("path",{d:"M8 21h8M12 17v4"}),(0,Xo.jsx)("circle",{cx:"12",cy:"10",r:"3"}),(0,Xo.jsx)("path",{d:"M12 7v1M12 12v1M9 10h1M14 10h1"})]})},t4=[{key:"x",nameKey:"socialXTwitter",icon:"\ud835\udd4f",color:"#000"},{key:"youtube",nameKey:"socialYouTubeShorts",icon:"\u25b6",color:"#FF0000"}];function n4(){var e;const{t:t}=Ae(["settings","common"]),n=Vt(),r=Wt(),{user:i,dispatch:a}=(0,$.useContext)(Qo),s=(0,$.useRef)(null),[l,c]=(0,$.useState)(""),[d,u]=(0,$.useState)(""),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)(""),[g,v]=(0,$.useState)({}),[b,y]=(0,$.useState)(!1),[x,S]=(0,$.useState)(null),[k,w]=(0,$.useState)(!1),[T,C]=(0,$.useState)([]),[E,j]=(0,$.useState)(null),[A,N]=(0,$.useState)(!1),[P,R]=(0,$.useState)(null),[L,I]=(0,$.useState)(0),[D,O]=(0,$.useState)(!1),[M,_]=(0,$.useState)(!1),[F,B]=(0,$.useState)(!1),[U,z]=(0,$.useState)(""),[G,W]=(0,$.useState)(!1),[H,V]=(0,$.useState)(0),[K,q]=(0,$.useState)(null),[Y,X]=(0,$.useState)(""),[J,Q]=(0,$.useState)(""),[Z,ee]=(0,$.useState)(""),[te,ne]=(0,$.useState)([]),[re,ie]=(0,$.useState)(null),[ae,se]=(0,$.useState)(!1),[oe,le]=(0,$.useState)(null),[ce,de]=(0,$.useState)({name:"",hookFont:"montserrat",hookColor:"white",hookY:33,hookWidth:92}),[ue,he]=(0,$.useState)(!1),[pe,me]=(0,$.useState)(!1),[fe,ge]=(0,$.useState)(""),[ve,be]=(0,$.useState)(!1),[ye,xe]=(0,$.useState)(null),[Se,ke]=(0,$.useState)(null),[we,Te]=(0,$.useState)(!1),[Ce,Ee]=(0,$.useState)(!1),[je,Ne]=(0,$.useState)(""),[Pe,Re]=(0,$.useState)(!1),[Le,Ie]=(0,$.useState)(!1),[De,Oe]=(0,$.useState)(!1),[Me,_e]=(0,$.useState)(!1),[Fe,Be]=(0,$.useState)(!1),Ue=(0,$.useRef)(null),ze=async()=>{try{const r=await ks.get("/users/me/creator-settings");var e,t,n;if(r.data)c((null===(e=r.data.creatorSettings)||void 0===e?void 0:e.channelUsername)||""),u((null===(t=r.data.creatorSettings)||void 0===t?void 0:t.platform)||""),p(r.data.streamerName||""),f((null===(n=r.data.creatorSettings)||void 0===n?void 0:n.streamType)||""),v(r.data.socialConnections||{}),S(r.data.profilePicture||null)}catch(K6){console.error("Failed to fetch settings:",K6)}},Ge=async()=>{try{const e=await ks.get("/users/me/brands");C(e.data.brands||[]),j(e.data.activeBrandId||null)}catch(K6){console.error("Failed to fetch brands:",K6)}},We=async()=>{try{const e=await ks.get("/users/me/caption-presets");ne(e.data.presets||[]),ie(e.data.activePresetId||null)}catch(K6){console.error("Failed to fetch caption presets:",K6)}},He=async(e,n)=>{var r;const i=null===(r=e.target.files)||void 0===r?void 0:r[0];if(!i)return;if(!i.type.startsWith("image/"))return void Vo.error(t("pleaseSelectImageFile"));if(i.size>20971520)return void Vo.error("Image must be under 20MB");w(!0);const a=new FormData,s=null!==n&&void 0!==n?n:E;try{let e;if(s){a.append("avatar",i);const t=await ks.post("/users/me/brands/".concat(s,"/profile-picture"),a,{headers:{"Content-Type":"multipart/form-data"}});e=t.data.avatar,C((t=>t.map((t=>t._id===s?o(o({},t),{},{avatar:e}):t))))}else{a.append("profilePicture",i);const t=await ks.post("/users/me/profile-picture",a,{headers:{"Content-Type":"multipart/form-data"}});e=t.data.profilePicture}S(e),window.dispatchEvent(new CustomEvent("profile_picture_updated",{detail:{profilePicture:e}})),Vo.success(t("profilePictureUpdated"))}catch(K6){Vo.error(t("failedToUploadPicture"))}finally{w(!1)}},Ve=()=>x?x.startsWith("http")?x:"https://clipbait-app.onrender.com/Images/"+x:null,Ke=()=>{Ee(!1),Ne(""),Re(!1)},qe=async()=>
2{if(je.trim())if(Pe){Ie(!0);try{const e=await ks.post("/sms/phone",{phoneNumber:je,smsConsent:!0,consentLanguage:yV});xe(e.data.phoneNumber),ke(!1),Vo.success("Phone saved \u2014 we'll text you when clips are ready"),Ke()}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Couldn't save phone")}finally{Ie(!1)}}else Vo.error("Please check the consent box to receive texts");else Vo.error("Enter a phone number")};(0,$.useEffect)((()=>{ze(),Ge(),We(),(async()=>{try{var e,t,n,r,i,a;const s=await ks.get("/billing/plan/status");xe(null!==(e=null===(t=s.data)||void 0===t?void 0:t.phoneNumber)&&void 0!==e?e:null),ke(!(null===(n=s.data)||void 0===n||!n.smsOptedOut)),R((null===(r=s.data)||void 0===r?void 0:r.plan)||"none"),I("number"===typeof(null===(i=s.data)||void 0===i?void 0:i.credits)?s.data.credits:0),O(!(null===(a=s.data)||void 0===a||!a.stripeSubscriptionId))}catch(K6){console.error("Failed to fetch SMS preferences:",K6)}})();const e=new URLSearchParams(r.search),i=e.get("connected");i&&(Vo.success(t("common:connectedTo",{platform:i})),n("/me",{replace:!0}),ze(),Ge()),"true"===e.get("newBrand")&&(N(!0),n("/me",{replace:!0}))}),[r.search,r.key,n]),(0,$.useEffect)((()=>{const e=()=>{ze(),Ge(),We()};return window.addEventListener("refetch_me",e),()=>window.removeEventListener("refetch_me",e)}),[]),(0,$.useEffect)((()=>{const e=e=>{Ue.current&&!Ue.current.contains(e.target)&&Be(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const Ye=async()=>{if(U.trim()){W(!0);try{const e=await ks.post("/users/me/brands",{name:U.trim()}),t={_id:e.data._id,name:U.trim(),avatar:null};C((e=>[...e,t])),q(e.data._id),W(!1),V(1)}catch(K6){var e,n;Vo.error((null===(e=K6.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t("failedToCreateBrand")),W(!1)}}},Xe=T.find((e=>e._id===E));return(0,Xo.jsxs)("div",{className:"me-page",children:[(0,Xo.jsx)(gT,{onUpgrade:()=>_(!0)}),(0,Xo.jsx)("div",{className:"me-leftbar-wrapper",children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsxs)("div",{className:"me-content",children:["none"===P&&!D&&(0,Xo.jsxs)("button",{className:"me-upgrade-banner",onClick:()=>B(!0),children:[(0,Xo.jsxs)("div",{className:"me-upgrade-banner-left",children:[(0,Xo.jsx)("span",{className:"me-upgrade-banner-spark",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xo.jsx)("path",{d:"M13 2 3 14h7l-1 8 10-12h-7l1-8z"})})}),(0,Xo.jsxs)("div",{className:"me-upgrade-banner-text",children:[(0,Xo.jsx)("strong",{children:"Start clipping for $1"}),(0,Xo.jsx)("span",{children:"3-day trial on any plan. Cancel anytime."})]})]}),(0,Xo.jsx)("span",{className:"me-upgrade-banner-cta",children:"Upgrade \u2192"})]}),(0,Xo.jsx)(oA,{isOpen:M||A&&null!==P&&"none"===P,onClose:()=>{_(!1),N(!1)},message:"Subscribe to add more brands.",currentPlan:P}),(0,Xo.jsx)(O2,{open:F,onClose:()=>B(!1)}),A&&null!==P&&"none"!==P&&(0,Xo.jsx)("div",{className:"brand-wizard-overlay",children:(0,Xo.jsxs)("div",{className:"brand-wizard",children:[(0,Xo.jsx)("div",{className:"brand-wizard-dots",children:[0,1,2,3,4].map((e=>(0,Xo.jsx)("div",{className:"brand-wizard-dot ".concat(H>=e?"active":""," ").concat(H>e?"done":"")},e)))}),0===H&&(0,Xo.jsxs)("div",{className:"brand-wizard-step",children:[(0,Xo.jsx)("div",{className:"brand-wizard-icon",children:(0,Xo.jsx)(VA,{})}),(0,Xo.jsx)("h2",{className:"brand-wizard-title",children:"Name your brand"}),(0,Xo.jsx)("p",{className:"brand-wizard-desc",children:"What's the name of this brand or channel?"}),(0,Xo.jsx)("input",{className:"brand-wizard-input",type:"text",placeholder:"e.g. Spirit, Russell Brand",value:U,onChange:e=>z(e.target.value),onKeyDown:e=>"Enter"===e.key&&U.trim()&&Ye(),autoFocus:!0}),(0,Xo.jsx)("button",{className:"brand-wizard-next",onClick:Ye,disabled:G||!U.trim(),children:G?"Creating...":"Continue \u2192"}),(0,Xo.jsx)("button",{className:"brand-wizard-skip",onClick:()=>{N(!1),z(""),V(0),q(null),X(""),Q(""),ee("")},children:"Cancel"})]}),1===H&&(e=>{const t=(null===(e=T.find((e=>e._id===K)))||void 0===e?void 0:e.avatar)||null;return(0,Xo.jsxs)("div",{className:"brand-wizard-step",children:[(0,Xo.jsx)("div",{className:"brand-wizard-icon",children:(0,Xo.jsx)(TA,{})}),(0,Xo.jsx)("h2",{className:"brand-wizard-title",children:"Add a brand photo"}),(0,Xo.jsxs)("p",{className:"brand-wizard-desc",children:["Upload a clear, well-lit photo of the creator's ",(0,Xo.jsx)("strong",{children:"face"})," for ",(0,Xo.jsx)("strong",{children:U}),". Our AI uses it to detect them in the video and keep them in frame \u2014 a logo or icon won't work."]}),(0,Xo.jsxs)("label",{className:"brand-wizard-avatar",children:[(0,Xo.jsx)("input",{type:"file",accept:"image/*",style:{display:"none"},onChange:e=>He(e,K)}),t?(0,Xo.jsx)("img",{src:t,alt:"Brand avatar"}):(0,Xo.jsx)("div",{className:"brand-wizard-avatar-placeholder",children:k?(0,Xo.jsx)("span",{className:"brand-wizard-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Xo.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Xo.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),(0,Xo.jsx)("span",{children:"Tap to upload photo"})]})}),t&&(0,Xo.jsx)("div",{className:"brand-wizard-avatar-edit",children:"Change"})]}),(0,Xo.jsx)("button",{className:"brand-wizard-next",onClick:()=>V(2),disabled:!t||k,children:k?"Uploading\u2026":"Continue \u2192"})]})})(),2===H&&(0,Xo.jsxs)("div",{className:"brand-wizard-step",children:[(0,Xo.jsx)("div",{className:"brand-wizard-icon",children:"\ud83d\udce1"}),(0,Xo.jsx)("h2",{className:"brand-wizard-title",children:"Where do you stream?"}),(0,Xo.jsxs)("p",{className:"brand-wizard-desc",children:["Pick the platform for ",(0,Xo.jsx)("strong",{children:U})]}
2),(0,Xo.jsx)("div",{className:"brand-wizard-platform-grid",children:Z2.filter((e=>e.value)).map((e=>(0,Xo.jsx)("button",{className:"brand-wizard-platform-btn ".concat(Y===e.value?"active":""),onClick:()=>X(e.value),children:t(e.labelKey)},e.value)))}),(0,Xo.jsx)("button",{className:"brand-wizard-next",onClick:()=>V(3),disabled:!Y,children:"Continue \u2192"}),(0,Xo.jsx)("button",{className:"brand-wizard-skip",onClick:()=>V(3),children:"Skip"})]}),3===H&&(0,Xo.jsxs)("div",{className:"brand-wizard-step",children:[(0,Xo.jsx)("div",{className:"brand-wizard-icon",children:"\ud83d\udd17"}),(0,Xo.jsx)("h2",{className:"brand-wizard-title",children:"Your channel username"}),(0,Xo.jsx)("p",{className:"brand-wizard-desc",children:Y?"Your ".concat(t((null===(e=Z2.find((e=>e.value===Y)))||void 0===e?void 0:e.labelKey)||"")," username"):"Your channel username"}),(0,Xo.jsx)("input",{className:"brand-wizard-input",type:"text",placeholder:"e.g. Spirit, Russell Brand",value:J,onChange:e=>Q(e.target.value),onKeyDown:e=>"Enter"===e.key&&V(4),autoFocus:!0}),(0,Xo.jsx)("button",{className:"brand-wizard-next",onClick:()=>V(4),children:J.trim()?"Continue \u2192":"Skip for now \u2192"})]}),4===H&&(0,Xo.jsxs)("div",{className:"brand-wizard-step",children:[(0,Xo.jsx)("div",{className:"brand-wizard-icon",children:(0,Xo.jsx)(_A,{})}),(0,Xo.jsx)("h2",{className:"brand-wizard-title",children:"What type of content?"}),(0,Xo.jsx)("p",{className:"brand-wizard-desc",children:"This helps the AI pick the best clips"}),(0,Xo.jsx)("div",{className:"brand-wizard-type-grid",children:$2.map((e=>(0,Xo.jsxs)("button",{className:"brand-wizard-type-btn ".concat(Z===e.value?"active":""),onClick:()=>ee(e.value),children:[(0,Xo.jsx)("span",{className:"brand-wizard-type-icon",children:e4[e.value]}),(0,Xo.jsx)("span",{children:t(e.labelKey)})]},e.value)))}),(0,Xo.jsx)("button",{className:"brand-wizard-next",onClick:async()=>{if(K){W(!0);try{await ks.put("/users/me/brands/".concat(K),{platform:Y,channelUsername:J,streamType:Z}),await ks.put("/users/me/brands/".concat(K,"/activate")),Vo.success(t("brandCreated")),window.location.replace("/me")}catch(K6){Vo.error(t("failedToCreateBrand")),W(!1)}}},disabled:G||!Z,children:G?"Setting up...":"\ud83c\udf89 Create Brand"})]})]})}),!A&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"me-section me-profile-section",children:(0,Xo.jsxs)("div",{className:"me-profile-picture-container",children:[(0,Xo.jsxs)("div",{className:"me-profile-picture ".concat(k?"uploading":""),onClick:()=>{var e;null===(e=s.current)||void 0===e||e.click()},children:[Ve()?(0,Xo.jsx)(mT,{src:Ve(),name:h||(null===i||void 0===i?void 0:i.username)||"?"}):(0,Xo.jsx)("div",{className:"me-profile-picture-placeholder",children:(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("path",{d:"M20 21a8 8 0 10-16 0"}),(0,Xo.jsx)("circle",{cx:"12",cy:"7",r:"4"})]})}),(0,Xo.jsx)("div",{className:"me-profile-picture-overlay",children:k?(0,Xo.jsx)("span",{className:"me-profile-picture-spinner"}):(0,Xo.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),(0,Xo.jsx)("circle",{cx:"12",cy:"13",r:"4"})]})})]}),(0,Xo.jsx)("input",{ref:s,type:"file",accept:"image/*",onChange:He,style:{display:"none"}}),(0,Xo.jsxs)("div",{className:"me-profile-name-row",children:[(0,Xo.jsx)("span",{className:"me-profile-picture-name",children:null!==Xe&&void 0!==Xe&&Xe.name||l?"@".concat(l):(0,Xo.jsx)("span",{className:"me-profile-picture-spinner-inline"})}),T.length>1&&(0,Xo.jsxs)("div",{className:"me-brand-menu-wrapper",ref:Ue,children:[(0,Xo.jsx)("button",{className:"me-brand-menu-btn",onClick:()=>Be((e=>!e)),children:(0,Xo.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Xo.jsx)("circle",{cx:"12",cy:"5",r:"2"}),(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"2"}),(0,Xo.jsx)("circle",{cx:"12",cy:"19",r:"2"})]})}),Fe&&(0,Xo.jsx)("div",{className:"me-brand-menu-dropdown",children:(0,Xo.jsx)("button",{className:"me-brand-menu-item me-brand-menu-delete",onClick:()=>{Be(!1),Oe(!0)},children:t("deleteBrand")})})]})]}),(0,Xo.jsx)("span",{className:"me-profile-picture-hint",children:t("watermarkDescription")})]})}),(0,Xo.jsxs)("div",{className:"me-section",children:[(0,Xo.jsxs)("h3",{className:"me-section-title",children:[t("connectedAccounts"),Xe&&(0,Xo.jsx)("span",{className:"me-section-brand-tag",children:Xe.name})]}),(0,Xo.jsx)("p",{className:"me-section-desc",children:t("linkSocialsToPost")}),(0,Xo.jsx)("div",{className:"me-social-list",children:t4.map((e=>{const n=g[e.key],r=null===n||void 0===n?void 0:n.connected;return(0,Xo.jsxs)("div",{className:"me-social-item",children:[(0,Xo.jsxs)("div",{className:"me-social-info",children:[(0,Xo.jsx)("span",{className:"me-social-icon",style:{backgroundColor:e.color},children:e.iconImg?(0,Xo.jsx)("img",{src:e.iconImg,alt:"",style:{width:18,height:18}}):e.icon}
2),(0,Xo.jsxs)("div",{className:"me-social-details",children:[(0,Xo.jsx)("span",{className:"me-social-name",children:t(e.nameKey)}),r&&(0,Xo.jsxs)("span",{className:"me-social-username",children:["@",n.username||n.channelName||n.pageName]})]})]}),e.comingSoon?(0,Xo.jsx)("span",{className:"me-social-coming-soon",children:t("common:comingSoon")}):r?(0,Xo.jsx)("button",{className:"me-social-btn me-social-disconnect",onClick:()=>(async e=>{try{await ks.delete("/users/me/social/".concat(e)),v((t=>o(o({},t),{},{[e]:{connected:!1}}))),Vo.success(t("disconnectedFrom",{platform:e})),Ge()}catch(K6){Vo.error(t("failedToDisconnect"))}})(e.key),children:t("common:disconnect")}):(0,Xo.jsx)("button",{className:"me-social-btn me-social-connect",onClick:()=>(e=>{const t=localStorage.getItem("token"),n="x"===e?"/auth/x":"/auth/social/".concat(e),r="".concat(ks.defaults.baseURL).concat(n).concat(t?"?token=".concat(t):"");window.location.href=r})(e.key),children:t("common:connect")})]},e.key)}))})]}),(0,Xo.jsxs)("div",{className:"me-section",children:[(0,Xo.jsx)("h3",{className:"me-section-title",children:t("yourChannel")}),(0,Xo.jsxs)("div",{className:"me-field",children:[(0,Xo.jsx)("label",{className:"me-label",children:t("streamerName")}),(0,Xo.jsx)("input",{type:"text",className:"me-input",placeholder:t("placeholderStreamerName"),value:h,onChange:e=>p(e.target.value)}),(0,Xo.jsx)("span",{className:"me-field-hint",children:t("streamerNameHint")})]}),(0,Xo.jsxs)("div",{className:"me-field",children:[(0,Xo.jsx)("label",{className:"me-label",children:t("channelUsername")}),(0,Xo.jsx)("input",{type:"text",className:"me-input",placeholder:t("placeholderChannelUsername"),value:l,onChange:e=>c(e.target.value)})]}),(0,Xo.jsxs)("div",{className:"me-field",children:[(0,Xo.jsx)("label",{className:"me-label",children:t("platform")}),(0,Xo.jsx)("select",{className:"me-select",value:d,onChange:e=>u(e.target.value),children:Z2.map((e=>(0,Xo.jsx)("option",{value:e.value,children:t(e.labelKey)},e.value)))})]}),(0,Xo.jsxs)("div",{className:"me-field",children:[(0,Xo.jsx)("label",{className:"me-label",children:t("streamType")}),(0,Xo.jsx)("p",{className:"me-field-hint",style:{marginBottom:8},children:t("streamTypeHint")}),(0,Xo.jsx)("div",{className:"me-stream-type-grid",children:$2.map((e=>(0,Xo.jsxs)("button",{className:"me-stream-type-card".concat(m===e.value?" active":""),onClick:()=>f(e.value),type:"button",children:[(0,Xo.jsx)("span",{className:"me-stream-type-icon",children:e4[e.value]}),(0,Xo.jsx)("span",{className:"me-stream-type-label",children:t(e.labelKey)}),(0,Xo.jsx)("span",{className:"me-stream-type-desc",children:t(e.descKey)})]},e.value)))})]}),(0,Xo.jsx)("button",{className:"me-save-btn",onClick:async()=>{y(!0);try{await ks.put("/users/me/creator-settings",{channelUsername:l,platform:d,streamerName:h,streamType:m}),Vo.success(t("common:saved")),Ge()}catch(K6){Vo.error(t("common:failedToSave"))}finally{y(!1)}},disabled:b,children:t(b?"common:saving":"common:save")})]}),!1,(0,Xo.jsx)(Q2,{}),(0,Xo.jsxs)("div",{className:"me-section",children:[(0,Xo.jsx)("h3",{className:"me-section-title",children:t("accountSettings")}),(0,Xo.jsxs)("div",{className:"me-account-actions",children:[(0,Xo.jsxs)("div",{className:"me-account-btn me-sms-card",children:[(0,Xo.jsxs)("div",{className:"me-account-btn-info",children:[(0,Xo.jsx)("span",{className:"me-account-btn-title",children:"SMS notifications"}),(0,Xo.jsx)("span",{className:"me-account-btn-desc",children:"Get a text when your clips are ready, plus the occasional feature update or offer from Clipbait. Reply STOP any time to opt out."}),ye&&!Ce&&(0,Xo.jsxs)("span",{className:"me-sms-current",children:["Texts go to ",(0,Xo.jsx)("strong",{children:ye})]})]}),ye&&!Ce&&(0,Xo.jsx)("button",{type:"button",role:"switch","aria-checked":!1===Se,"aria-label":"Toggle SMS notifications",className:"me-toggle-switch".concat(!1===Se?" me-toggle-switch--on":""),onClick:async()=>{if(we||null===Se)return;const e=!Se;Te(!0),ke(e);try{await ks.patch("/sms/preferences",{smsOptedOut:e}),Vo.success(e?"SMS notifications turned off":"SMS notifications turned on")}catch(K6){console.error("Failed to update SMS preferences:",K6),ke(!e),Vo.error("Couldn't update SMS preferences. Try again.")}finally{Te(!1)}},disabled:we||null===Se,children:(0,Xo.jsx)("span",{className:"me-toggle-switch-thumb"})})]}),!Ce&&(0,Xo.jsxs)("div",{className:"me-sms-buttons",children:[(0,Xo.jsx)("button",{type:"button",className:"me-sms-edit-btn",onClick:()=>{Ne(ye||""),Re(!1),Ee(!0)},children:ye?"Change number":"Add phone number"}),ye&&(0,Xo.jsx)("button",{type:"button",className:"me-sms-remove-btn",onClick:async()=>
2{if(window.confirm("Remove your phone number? You'll stop receiving SMS alerts.")){Ie(!0);try{await ks.delete("/sms/phone"),xe(null),ke(!1),Vo.success("Phone number removed"),Ke()}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Couldn't remove phone")}finally{Ie(!1)}}},disabled:Le,children:"Remove number"})]}),Ce&&(0,Xo.jsxs)("div",{className:"me-sms-editor",children:[(0,Xo.jsx)("label",{className:"me-sms-editor-label",htmlFor:"me-sms-phone-input",children:"Mobile number"}),(0,Xo.jsx)("input",{id:"me-sms-phone-input",type:"tel",className:"me-sms-editor-input",placeholder:"+1 555 867 5309",value:je,onChange:e=>Ne(e.target.value),onKeyDown:e=>"Enter"===e.key&&!Le&&Pe&&qe(),autoFocus:!0}),(0,Xo.jsxs)("label",{className:"me-sms-consent",children:[(0,Xo.jsx)("input",{type:"checkbox",className:"me-sms-consent-box",checked:Pe,onChange:e=>Re(e.target.checked)}),(0,Xo.jsx)("span",{className:"me-sms-consent-text",children:yV})]}),(0,Xo.jsxs)("div",{className:"me-sms-editor-actions",children:[(0,Xo.jsx)("button",{type:"button",className:"me-sms-save-btn",onClick:qe,disabled:Le||!je.trim()||!Pe,children:Le?"Saving\u2026":"Save number"}),(0,Xo.jsx)("button",{type:"button",className:"me-sms-cancel-btn",onClick:Ke,disabled:Le,children:"Cancel"})]})]}),(0,Xo.jsxs)("button",{className:"me-account-btn me-account-manage",onClick:async()=>{try{var e;const t=await ks.post("/billing/create-portal-session");null!==(e=t.data)&&void 0!==e&&e.url&&window.open(t.data.url,"_blank")}catch(K6){Vo.error(t("failedToOpenBilling"))}},children:[(0,Xo.jsxs)("div",{className:"me-account-btn-info",children:[(0,Xo.jsx)("span",{className:"me-account-btn-title",children:t("manageSubscription")}),(0,Xo.jsx)("span",{className:"me-account-btn-desc",children:t("manageSubscriptionDesc")})]}),(0,Xo.jsx)("span",{className:"me-account-btn-arrow",children:"\u2192"})]}),(0,Xo.jsx)("button",{className:"me-account-btn me-account-delete",onClick:()=>me(!0),children:(0,Xo.jsxs)("div",{className:"me-account-btn-info",children:[(0,Xo.jsx)("span",{className:"me-account-btn-title",children:t("deleteAccount")}),(0,Xo.jsx)("span",{className:"me-account-btn-desc",children:t("deleteAccountWarning")})]})})]}),De&&(0,Xo.jsx)("div",{className:"me-delete-modal-overlay",onClick:()=>Oe(!1),children:(0,Xo.jsxs)("div",{className:"me-delete-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("h4",{className:"me-delete-modal-title",children:t("deleteBrand")}),(0,Xo.jsx)("p",{className:"me-delete-modal-text",children:t("deleteBrandWarning",{brand:(null===Xe||void 0===Xe?void 0:Xe.name)||""})}),(0,Xo.jsxs)("div",{className:"me-delete-modal-actions",children:[(0,Xo.jsx)("button",{className:"me-cancel-btn",onClick:()=>Oe(!1),children:t("common:cancel")}),(0,Xo.jsx)("button",{className:"me-delete-confirm-btn",onClick:async()=>{if(T.length<=1)Vo.error(t("cannotDeleteLastBrand"));else{_e(!0);try{await ks.delete("/users/me/brands/".concat(E)),Vo.success(t("brandDeleted")),window.location.replace("/me")}catch(K6){var e,n;Vo.error((null===(e=K6.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)||t("failedToDeleteBrand")),_e(!1),Oe(!1)}}},disabled:Me,children:t(Me?"common:deleting":"deleteBrand")})]})]})}),pe&&(0,Xo.jsx)("div",{className:"me-delete-modal-overlay",onClick:()=>me(!1),children:(0,Xo.jsxs)("div",{className:"me-delete-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("h4",{className:"me-delete-modal-title",children:t("deleteAccount")}),(0,Xo.jsx)("p",{className:"me-delete-modal-text",children:t("deleteAccountWarning")}),(0,Xo.jsx)("p",{className:"me-delete-modal-confirm",children:t("typeDeleteToConfirm")}),(0,Xo.jsx)("input",{type:"text",className:"me-input",value:fe,onChange:e=>ge(e.target.value),placeholder:"DELETE",autoFocus:!0}),(0,Xo.jsxs)("div",{className:"me-delete-modal-actions",children:[(0,Xo.jsx)("button",{className:"me-cancel-btn",onClick:()=>{me(!1),ge("")},children:t("common:cancel")}),(0,Xo.jsx)("button",{className:"me-delete-confirm-btn",onClick:async()=>{if("DELETE"===fe){be(!0);try{await ks.delete("/users/".concat(i._id),{data:{userId:i._id}}),a({type:"LOGOUT"}),localStorage.removeItem("clipbait_token"),localStorage.removeItem("token"),Vo.success(t("accountDeleted")),n("/")}catch(K6){Vo.error(t("failedToDeleteAccount"))}finally{be(!1)}}},disabled:"DELETE"!==fe||ve,children:t(ve?"common:deleting":"deleteAccount")}
2)]})]})})]})]})]})]})}const r4=[{label:"Opener (personalize the bracket first)",text:"Hey [name], saw [specific detail: your agency runs a big Content Rewards campaign / you're managing a ton of creator submissions on Whop / etc.]. Most agencies I talk to have gotten burned at some point by a \"mod\" who needed access to the campaign to review clips, and that access is exactly how budgets end up misused or submissions get missed.\n\nI work with a Chrome extension that kills manual reviewing. It auto-reviews Content Rewards clip submissions against your own campaign brief, approving or rejecting with written reasons, so you can stop relying on mods and work faster and more efficiently.\n\nWorth a 2 minute look? Here's a demo: https://youtu.be/oPIEdIOhleA?si=GXN9RzCKwP9Waq6s. If that's not useful right now, all good, no need to reply."},{label:"If they reply with interest / watch the demo \u2192 SEND YOUR LINK HERE",text:"Glad it was useful.\n\nWorth mentioning too, the founder & CEO of Content Rewards has spoken positively about our clip review bot: https://x.com/spiritraps/status/2084726104879714392\n\n$299/mo, 3 team seats included, works across IG/TikTok/YouTube clips. First month's 50% off with code LAUNCH50 ($149.50).\n\nHere's where to grab it: https://whop.com/clipbait-ai/clipbait-review-ai?a=YOUR_USERNAME\n(^ swap YOUR_USERNAME for your Whop affiliate username \u2014 this is what credits the sale to you.)"},{label:"Follow-up (no reply after 3 to 4 days)",text:"No pressure if now's not the right time, but I wanted to reach out because we solve the headache of manual clip reviewing and the annoyance of mods constantly pitching you. This ends the need to hire mods to review clips and saves you money, so you can keep more for your clipping budget.\n\nWorth noting too, the founder & CEO of Content Rewards has spoken positively about our clip review bot: https://x.com/spiritraps/status/2084726104879714392\n\nDemo's still here if useful later: https://youtu.be/oPIEd
2IOhleA?si=GXN9RzCKwP9Waq6s. Either way, good luck with the campaigns. If that's not useful right now, all good, no need to reply."}],i4=[{label:'"We already have a mod/reviewer."',text:"Makes sense, but with this tool, you wouldn't need to hire more when scaling. Your existing mod can process clips much faster, freeing them up to engage with clippers and focus on tasks beyond mundane clip reviewing that doesn't really add much value to your agency."},{label:'"Is this another fake tool / another mod scam?"',text:"Totally fair to be skeptical. This is an official Chrome extension verified by the Google Web Store. Plus, the founder & CEO of Content Rewards has spoken positively about it: https://x.com/spiritraps/status/2084726104879714392"},{label:'"How much?"',text:"$299/mo, 3 seats included. We're currently offering 50% off the first month for the first 50 agencies with code LAUNCH50. There's no real downside to testing it."}],a4=["One good DM a day compounds into rent-money recurring. Show up.","You're not asking for a favor \u2014 you're saving agencies from mod scams.","Volume beats perfection. 50 decent DMs > 5 perfect ones.","Every reply is a maybe. Every follow-up turns maybes into money.","The founder of Content Rewards vouched for this. You're selling a winner.","10 signups = $747.50/mo \u2014 forever, while they stay. That's the game.","Consistency is the whole cheat code. Same time, every day."];const s4=[{t:"Personalize the first line",d:"Name their actual campaign or a recent submission. Generic openers get ignored; one specific detail earns the read."},{t:"Lead with the demo, not the pitch",d:"Cold prospects need proof before price. Send the 2-min demo first, hold your affiliate link until they're interested."},{t:"Always follow up once",d:"Most replies come on the follow-up, not the opener. The board flags who's due \u2014 clear that list daily."},{t:"Target agencies running Content Rewards",d:"Whop + Discord clipping campaigns are the sweet spot \u2014 they feel the mod-review pain the hardest."},{t:"Send your affiliate link the moment they're in",d:"That ?a= link is the only thing that credits the sale to you. No link, no commission."},{t:"Batch it",d:"Block 30\u201345 min, fire ~50 DMs, log them here. Momentum + tracking beats sporadic effort every time."}];function o4(e){return e.signedUp?{label:"Signed up",cls:"b-done"}:e.demoViewed?{label:"Demo viewed",cls:"b-active"}:e.replied?{label:"Replied, send demo",cls:"b-active"}:e.followupSent?{label:"Follow-up sent",cls:"b-waiting"}:function(e){const t=new Date(e);return Math.floor((Date.now()-t.getTime())/864e5)}(e.dateSent)>=3?{label:"Follow-up due",cls:"b-due"}:{label:"Awaiting reply",cls:"b-waiting"}}function l4(e){let{text:t}=e;const[n,r]=(0,$.useState)(!1);return(0,Xo.jsx)("button",{className:"ap-copy".concat(n?" copied":""),onClick:()=>{var e;return null===(e=navigator.clipboard)||void 0===e?void 0:e.writeText(t).then((()=>{r(!0),setTimeout((()=>r(!1)),1500)}))},children:n?"Copied":"Copy"})}function c4(e){let{title:t,children:n,open:r}=e;return(0,Xo.jsxs)("details",{className:"ap-panel",open:r,children:[(0,Xo.jsx)("summary",{children:t}),(0,Xo.jsx)("div",{className:"ap-panel-body",children:n})]})}function d4(){const{user:e}=(0,$.useContext)(Qo),[t,n]=(0,$.useState)(!0),[r,i]=(0,$.useState)(null),[a,s]=(0,$.useState)(!0),[l,c]=(0,$.useState)([]),[d,u]=(0,$.useState)(""),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)(!1),[g,v]=(0,$.useState)(""),[b,y]=(0,$.useState)(!1);(0,$.useEffect)((()=>{e?(n(!0),ks.get("/affiliates/me").then((e=>{i(e.data.affiliate),s(!1!==e.data.accessConfigured),e.data.affiliate&&c(e.data.affiliate.contacts||[])})).catch((()=>{})).finally((()=>n(!1)))):n(!1)}),[e]);const x=()=>{try{sessionStorage.setItem("cb_post_auth_return","/affiliates")}catch(e){}window.location.href=ks.defaults.baseURL+"/auth/google"},S=(0,$.useCallback)((e=>{ks.put("/affiliates/me/contacts",{contacts:e}).catch((()=>{}))}),[]),k=e=>{c(e),S(e)},w=async()=>{f(!0),v("");try{var e;const t=await ks.post("/affiliates/join",{password:h});i(t.data.affiliate),c((null===(e=t.data.affiliate)||void 0===e?void 0:e.contacts)||[])}catch(Ps){var t,n;v((null===(t=Ps.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message)||"Couldn't verify access.")}finally{f(!1)}},T=()=>{const e=d.trim();if(!e)return;const t=0===l.length;if(k([{cid:Date.now(),name:e,platform:"Whop",dateSent:(new Date).toISOString().slice(0,10),replied:!1,demoViewed:!1,followupSent:!1,signedUp:!1},...l]),u(""),t&&!localStorage.getItem("ap_bonus_seen")){try{localStorage.setItem("ap_bonus_seen","1")}catch(n){}y(!0)}},C=(e,t)=>k(l.map((n=>n.cid===e?o(o({},n),{},{[t]:!n[t]}):n)));if(t)return(0,Xo.jsx)("div",{className:"ap-page",children:(0,Xo.jsx)("div",{className:"ap-wrap",children:(0,Xo.jsx)("div",{className:"ap-empty",children:"Loading\u2026"})})});if(!e)return(0,Xo.jsx)("div",{className:"ap-page",children:(0,Xo.jsxs)("div",{className:"ap-wrap ap-gate",children:[(0,Xo.jsx)("h1",{children:"Clipbait affiliate portal"}),(0,Xo.jsx)("p",{className:"ap-sub",children:"Earn $74.75/mo recurring per referral. Sign in with Google, then enter your access code."}),(0,Xo.jsx)("button",{className:"ap-btn ap-google",onClick:x,children:"Continue with Google"})]})});if(!r)return(0,Xo.jsx)("div",{className:"ap-page",children:(0,Xo.jsxs)("div",{className:"ap-wrap ap-gate",children:[(0,Xo.jsx)("h1",{children:"Affiliate portal"}),(0,Xo.jsx)("p",{className:"ap-sub",children:"Enter the access password to join the affiliate program."}),a?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("input",{type:"password",className:"ap-input",placeholder:"Access password",value:h,onChange:e=>p(e.target.value),onKeyDown:e=>"Enter"===e.key&&w()}),g&&(0,Xo.jsx)("div",{className:"ap-err",children:g}),(0,Xo.jsx)("button",{className:"ap-btn",onClick:w,disabled:m||!h,children:m?"Checking\u2026":"Enter portal"})]}):(0,Xo.jsx)("div",{className:"ap-gate-closed",children:"The affiliate program isn't open yet. Check back soon."})]})});const E=l.length,j=l.filter((e=>e.replied)).length,A=l.filter((e=>e.signedUp)).length,N=E?Math.round(j/E*100):0,P=(new Date).toISOString().slice(0,10),R=l.filter((e=>e.dateSent===P)).length,L=100,I=74.75*A,D=0===E?"Every $74.75/mo starts with one DM. Log your first agency and go.":0===A?"".concat(E," DM").concat(1===E?"":"s"," logged. Replies become signups \u2014 stay consistent and follow up."):"".concat(A," signup").concat(1===A?"":"s"," = $").concat(I.toFixed(2),"/mo recurring. Next stop: 10 = $747.50/mo.");return(0,Xo.jsxs)("div",{className:"ap-page",children:[(0,Xo.jsxs)("div",{className:"ap-wrap",children:[(0,Xo.jsx)("h1",{children:"Outreach tracker"}),(0,Xo.jsx)("p",{className:"ap-sub",children:"Log who you've DMed and what's happened. Everything else updates on its own."}),(0,Xo.jsxs)("div",{className:"ap-driver",children:[(0,Xo.jsxs)("div",{className:"ap-driver-earn",children:["$",I.toFixed(2),(0,Xo.jsx)("span",{children:"/mo"})]}),(0,Xo.jsxs)("div",{className:"ap-driver-body",children:[(0,Xo.jsx)("div",{className:"ap-driver-label",children:"Your recurring earnings"}),(0,Xo.jsx)("div",{className:"ap-driver-msg",children:D})]})]}),(0,Xo.jsxs)("div",{className:"ap-motivation",children:["\u201c",a4[Math.floor(Date.now()/864e5)%a4.length],"\u201d"]}),(0,Xo.jsx)(c4,{title:"Scripts to send \u2014 copy, personalize, send",open:!0,children:r4.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ap-snippet",children:[(0,Xo.jsx)("div",{className:"ap-snippet-lbl",children:e.label}),(0,Xo.jsx)("div",{className:"ap-snippet-txt",children:e.text}),(0,Xo.jsx)(l4,{text:e.text})]},t)))}),(0,Xo.jsxs)(c4,{title:"How to earn \u2014 get your affiliate link",open:!0,children:[(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Commission"}),(0,Xo.jsx)("span",{className:"v",children:"$74.75/month per referral"})]}),(0,Xo.jsxs)("p",{className:"ap-para",children:[(0,Xo.jsx)("b",{children:"1."})," Sign up as an affiliate on Whop:"," ",(0,Xo.jsx)("a",{href:"https://whop.com/clipbait-ai/affiliates",target:"_blank",rel:"noreferrer",children:"whop.com/clipbait-ai/affiliates"})]}),(0,Xo.jsxs)("p",{className:"ap-para",children:[(0,Xo.jsx)("b",{children:"2."})," Once you're in, you get your ",(0,Xo.jsx)("b",{children:"unique affiliate link"}),". Share it with clipping agencies."]}),(0,Xo.jsxs)("p",{className:"ap-para",children:[(0,Xo.jsx)("b",{children:"3."})," Anyone who clicks your link and buys = you earn ",(0,Xo.jsx)("b",{children:"$74.75/month"})," for as long as they stay subscribed."]}),(0,Xo.jsxs)("div",{className:"ap-snippet",children:[(0,Xo.jsx)("div",{className:"ap-snippet-lbl",children:"Your affiliate link looks like"}),(0,Xo.jsx)("div",{className:"ap-snippet-txt ap-mono",children:"https://whop.com/clipbait-ai/clipbait-review-ai?a=YOUR_USERNAME"})]}),(0,Xo.jsxs)("p",{className:"ap-para ap-note",children:[(0,Xo.jsx)("b",{children:"When to
2send your link:"})," open with the ",(0,Xo.jsx)("b",{children:"demo video"}),', not your link \u2014 cold prospects need proof first. The moment they show interest or ask "how do I get it?", send ',(0,Xo.jsx)("b",{children:"your affiliate link"})," (it's the checkout page). That link is the only thing that credits the sale to you \u2014 if they buy any other way, you don't get paid."]})]}),(0,Xo.jsxs)(c4,{title:"The playbook \u2014 approach & tracking",children:[(0,Xo.jsxs)("p",{className:"ap-para",children:[(0,Xo.jsx)("b",{children:"The approach."})," These are cold DMs to people who've never heard of you. Lead with the risk agencies already carry from mod-based review, then let the demo video do the proving. Ask for nothing upfront beyond 2 minutes of their attention."]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Your cut"}),(0,Xo.jsx)("span",{className:"v",children:"$74.75/mo recurring per referral (of $299/mo)"})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"As long as they stay"}),(0,Xo.jsx)("span",{className:"v",children:"You keep earning every month they're subscribed"})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Do the math"}),(0,Xo.jsx)("span",{className:"v",children:"10 referrals = $747.50/mo passive"})]}),(0,Xo.jsxs)("p",{className:"ap-para",children:[(0,Xo.jsx)("b",{children:"Tracking."})," Log every DM below as you send it. Mark replies, demo views, and sign-ups \u2014 the board shows your reply rate and flags when a follow-up is due, no manual math. Your admin sees this too."]})]}),(0,Xo.jsxs)(c4,{title:"Quick reference",children:[(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Product"}),(0,Xo.jsx)("span",{className:"v",children:"Content Rewards Clip Reviewer (Chrome extension)"})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Price"}),(0,Xo.jsx)("span",{className:"v",children:"$299/mo \xb7 3 seats \xb7 IG / TikTok / YouTube"})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Launch code"}),(0,Xo.jsx)("span",{className:"v",children:"LAUNCH50 \u2014 50% off first month ($149.50), first 50 agencies"})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Social proof"}),(0,Xo.jsx)("span",{className:"v",children:(0,Xo.jsx)("a",{href:"https://x.com/spiritraps/status/2084726104879714392",target:"_blank",rel:"noreferrer",children:"Daniel Bitton (CEO, Content Rewards) tweet"})})]}),(0,Xo.jsxs)("div",{className:"ap-ref",children:[(0,Xo.jsx)("span",{className:"l",children:"Demo video"}),(0,Xo.jsx)("span",{className:"v",children:(0,Xo.jsx)("a",{href:"https://youtu.be/oPIEd
2IOhleA?si=GXN9RzCKwP9Waq6s",target:"_blank",rel:"noreferrer",children:"Watch"})})]})]}),(0,Xo.jsx)(c4,{title:"Objection handling",children:i4.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ap-snippet",children:[(0,Xo.jsx)("div",{className:"ap-snippet-lbl",children:e.label}),(0,Xo.jsx)("div",{className:"ap-snippet-txt",children:e.text}),(0,Xo.jsx)(l4,{text:e.text})]},t)))}),(0,Xo.jsx)(c4,{title:"Tips to close more",children:s4.map(((e,t)=>(0,Xo.jsxs)("div",{className:"ap-tip",children:[(0,Xo.jsx)("div",{className:"ap-tip-t",children:e.t}),(0,Xo.jsx)("div",{className:"ap-tip-d",children:e.d})]},t)))}),(0,Xo.jsxs)("div",{className:"ap-stats",children:[(0,Xo.jsxs)("div",{className:"ap-stat",children:[(0,Xo.jsx)("div",{className:"num",children:E}),(0,Xo.jsx)("div",{className:"lbl",children:"DMs sent"})]}),(0,Xo.jsxs)("div",{className:"ap-stat",children:[(0,Xo.jsx)("div",{className:"num",children:j}),(0,Xo.jsx)("div",{className:"lbl",children:"Replies"})]}),(0,Xo.jsxs)("div",{className:"ap-stat",children:[(0,Xo.jsxs)("div",{className:"num",children:[N,"%"]}),(0,Xo.jsx)("div",{className:"lbl",children:"Reply rate"})]}),(0,Xo.jsxs)("div",{className:"ap-stat",children:[(0,Xo.jsx)("div",{className:"num",children:A}),(0,Xo.jsx)("div",{className:"lbl",children:"Signed up"})]})]}),(0,Xo.jsxs)("div",{className:"ap-goals",children:[(0,Xo.jsxs)("div",{className:"ap-goal",children:[(0,Xo.jsxs)("div",{className:"ap-goal-head",children:[(0,Xo.jsxs)("span",{children:["$100 bonus \u2014 DM ",L," agencies"]}),(0,Xo.jsxs)("span",{className:"ap-goal-num",children:[Math.min(E,L),"/",L]})]}),(0,Xo.jsx)("div",{className:"ap-goal-bar",children:(0,Xo.jsx)("div",{className:"ap-goal-fill",style:{width:"".concat(Math.min(100,E/L*100),"%")}})}),E>=L&&(0,Xo.jsx)("div",{className:"ap-goal-done",children:"\ud83c\udf89 Bonus unlocked \u2014 your $100 is on the way."})]}),(0,Xo.jsxs)("div",{className:"ap-goal",children:[(0,Xo.jsxs)("div",{className:"ap-goal-head",children:[(0,Xo.jsxs)("span",{children:["Suggested pace \u2014 ~",50," DMs a day"]}),(0,Xo.jsxs)("span",{className:"ap-goal-num",children:[R," today"]})]}),(0,Xo.jsx)("div",{className:"ap-goal-bar",children:(0,Xo.jsx)("div",{className:"ap-goal-fill",style:{width:"".concat(Math.min(100,R/50*100),"%")}})}),R>=50?(0,Xo.jsxs)("div",{className:"ap-goal-done",children:["\ud83d\udd25 ",R," today \u2014 that's the pace. Every extra DM gets you to the bonus faster."]}):(0,Xo.jsxs)("div",{className:"ap-goal-hint",children:["No pressure \u2014 ~",50,"/day is the pace that lands the $100 bonus in about two days."]})]})]}),(0,Xo.jsxs)("div",{className:"ap-add",children:[(0,Xo.jsx)("input",{type:"text",className:"ap-input",placeholder:"Agency or contact name",value:d,onChange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&T()}),(0,Xo.jsx)("button",{className:"ap-btn",onClick:T,children:"Add"})]}),0===l.length?(0,Xo.jsx)("div",{className:"ap-empty",children:"No contacts yet. Add the first agency you DM above."}):l.map((e=>{const t=o4(e);return(0,Xo.jsxs)("div",{className:"ap-card",children:[(0,Xo.jsxs)("div",{className:"ap-card-top",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("div",{className:"ap-name",children:e.name}),(0,Xo.jsxs)("div",{className:"ap-meta",children:[e.platform," \xb7 sent ",e.dateSent]})]}),(0,Xo.jsx)("div",{className:"ap-badge ".concat(t.cls),children:t.label})]}),(0,Xo.jsxs)("div",{className:"ap-actions",children:[(0,Xo.jsx)("button",{className:e.replied?"on":"",onClick:()=>C(e.cid,"replied"),children:"Replied"}),(0,Xo.jsx)("button",{className:e.demoViewed?"on":"",onClick:()=>C(e.cid,"demoViewed"),children:"Demo viewed"}),(0,Xo.jsx)("button",{className:e.followupSent?"on":"",onClick:()=>C(e.cid,"followupSent"),children:"Follow-up sent"}),(0,Xo.jsx)("button",{className:e.signedUp?"on":"",onClick:()=>C(e.cid,"signedUp"),children:"Signed up"}),(0,Xo.jsx)("button",{className:"ap-del",onClick:()=>{return t=e.cid,k(l.filter((e=>e.cid!==t)));var t},children:"Remove"})]})]},e.cid)}))]}),b&&(0,Xo.jsx)("div",{className:"ap-modal-overlay",onClick:()=>y(!1),children:(0,Xo.jsxs)("div",{className:"ap-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsx)("div",{className:"ap-modal-emoji",children:"\ud83d\udcb8"}),(0,Xo.jsx)("h2",{className:"ap-modal-title",children:"$100 bonus"}),(0,Xo.jsxs)("p",{className:"ap-modal-sub",children:["First one logged \u2014 nice. DM ",(0,Xo.jsx)("b",{children:"100 agencies"})," and we'll send you ",(0,Xo.jsx)("b",{children:"$100"})," on top of your commissions. A pace of ~50 a day gets you there in about two days."]}),(0,Xo.jsx)("button",{className:"ap-btn",onClick:()=>y(!1),children:"Let's go"})]})})]})}const u4=[{id:"intro",type:"welcome"},{id:"email",type:"email",key:"email",n:1,required:!0,title:"What's your email?",hint:"So we can reach you about campaigns."},{id:"experience",type:"single",key:"experience",n:2,required:!0,title:"Do you have experience creating shorts for personal brands?",options:[{key:"Yes",label:"Yes"},{key:"No",label:"No"}]},{id:"portfolio",type:"shorttext",key:"portfolio",n:3,required:!0,title:"Link to some of your recent short-form edits",hint:"Drive, YouTube, IG, a portfolio \u2014 whatever shows your work."},{id:"software",type:"single",key:"software",n:4,required:!0,title:"What editing software do you primarily use?",options:[{key:"Adobe Premiere",label:"Adobe Premiere"},{key:"Capcut",label:"Capcut"},{key:"Other",label:"Other"}]}],h4=u4.length;function p4(){const[e,t]=(0,$.useState)(0),[n,r]=(0,$.useState)(1),[i,a]=(0,$.useState)({email:"",experience:"",portfolio:"",software:"",softwareOther:""}),[s,l]=(0,$.useState)(""),[c,d]=(0,$.useState)(!1),[u,h]=(0,$.useState)(!1),p=(0,$.useRef)(null),m=u4[e],f=e===h4-1;(0,$.useEffect)((()=>
2{l("");const e=setTimeout((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.focus()}),260);return()=>clearTimeout(e)}),[e]);const g=(e,t)=>a((n=>o(o({},n),{},{[e]:t}))),v=(0,$.useCallback)((e=>{var t;return"welcome"===e.type||("email"===e.type?/^\S+@\S+\.\S+$/.test(i.email.trim()):"single"===e.type?!!i[e.key]&&("software"!==e.key||"Other"!==i.software||i.softwareOther.trim().length>0):(null===(t=i[e.key])||void 0===t?void 0:t.trim().length)>0)}),[i]),b=(0,$.useCallback)((async()=>{if(!c){d(!0),l("");try{await ks.post("/clipper-apply",i),h(!0)}catch(K6){var e,t;l("email_required"===(null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)?"Please enter a valid email.":"Something went wrong. Please try again.")}finally{d(!1)}}}),[i,c]),y=(0,$.useCallback)((()=>{!m.required||v(m)?f?b():(r(1),t((e=>Math.min(h4-1,e+1)))):l("This one's required to continue.")}),[m,f,v,b]),x=(0,$.useCallback)((()=>{0!==e&&(r(-1),t((e=>Math.max(0,e-1))))}),[e]),S=e=>{"Enter"===e.key&&(e.preventDefault(),y())};return u?(0,Xo.jsx)("div",{className:"agon",children:(0,Xo.jsx)("div",{className:"agon-stage",children:(0,Xo.jsxs)("div",{className:"agon-screen agon-done",children:[(0,Xo.jsx)("div",{className:"agon-check",children:(0,Xo.jsx)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),(0,Xo.jsx)("h1",{className:"agon-q",children:"You're in \ud83c\udf89"}),(0,Xo.jsx)("p",{className:"agon-sub",children:"You've been accepted to the Clipbait editing team. Here's how to start earning:"}),(0,Xo.jsxs)("ol",{className:"cla-steps",children:[(0,Xo.jsx)("li",{children:"Join our Whop community below."}),(0,Xo.jsxs)("li",{children:["Open the ",(0,Xo.jsx)("b",{children:"Active Campaigns"})," tab."]}),(0,Xo.jsx)("li",{children:"Start clipping \u2014 get paid per campaign, uncapped."})]}),(0,Xo.jsx)("a",{className:"cla-cta",href:"https://whop.com/clipbait-ai",target:"_blank",rel:"noreferrer",children:"Join the Whop & start earning \u2192"}),(0,Xo.jsx)("p",{className:"agon-sub cla-support",children:"Any questions? DM the support chat inside the Whop."})]})})}):(0,Xo.jsxs)("div",{className:"agon",children:[(0,Xo.jsx)("div",{className:"agon-progress",children:(0,Xo.jsx)("div",{className:"agon-progress-fill",style:{width:"".concat(e/(h4-1)*100,"%")}})}),(0,Xo.jsx)("div",{className:"agon-stage",children:(0,Xo.jsxs)("div",{className:"agon-screen ".concat(n>=0?"agon-in-fwd":"agon-in-back"),children:["welcome"!==m.type&&(0,Xo.jsxs)("div",{className:"agon-num",children:[m.n,(0,Xo.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Xo.jsx)("polyline",{points:"5 12 19 12"}),(0,Xo.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]}),"welcome"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"cla-eyebrow",children:"CLIPBAIT \xb7 VIRAL SHORTS EDITOR"}),(0,Xo.jsx)("h1",{className:"agon-q",children:"Get hired to clip for our creators"}),(0,Xo.jsx)("p",{className:"agon-sub",children:"An exclusive spot on the Clipbait editing team. Produce 1\u20132 shorts a day for campaigns."}),(0,Xo.jsxs)("div",{className:"cla-perks",children:[(0,Xo.jsxs)("div",{className:"cla-perk",children:[(0,Xo.jsx)("b",{children:"Uncapped CPM"}),(0,Xo.jsx)("span",{children:"Get paid per view, no ceiling"})]}),(0,Xo.jsxs)("div",{className:"cla-perk",children:[(0,Xo.jsx)("b",{children:"$1K+/mo potential"}),(0,Xo.jsx)("span",{children:"Based on your performance"})]}),(0,Xo.jsxs)("div",{className:"cla-perk",children:[(0,Xo.jsx)("b",{children:"1\u20132 shorts / day"}),(0,Xo.jsx)("span",{children:"Steady, ongoing work"})]})]})]}),"email"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("h1",{className:"agon-q",children:[m.title,(0,Xo.jsx)("span",{className:"agon-star",children:"*"})]}),m.hint&&(0,Xo.jsx)("p",{className:"agon-hint",children:m.hint}),(0,Xo.jsx)("input",{ref:p,type:"email",className:"agon-input",placeholder:"[email protected]",value:i.email,onChange:e=>g("email",e.target.value),onKeyDown:S})]}),"shorttext"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("h1",{className:"agon-q",children:[m.title,(0,Xo.jsx)("span",{className:"agon-star",children:"*"})]}),m.hint&&(0,Xo.jsx)("p",{className:"agon-hint",children:m.hint}),(0,Xo.jsx)("input",{ref:p,type:"text",className:"agon-input",placeholder:"Paste a link\u2026",value:i[m.key],onChange:e=>g(m.key,e.target.value),onKeyDown:S})]}),"single"===m.type&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("h1",{className:"agon-q",children:[m.title,(0,Xo.jsx)("span",{className:"agon-star",children:"*"})]}),(0,Xo.jsx)("div",{className:"agon-options",children:m.options.map(((e,t)=>{const n=i[m.key]===e.key;return(0,Xo.jsxs)("button",{ref:0===t?p:null,className:"agon-opt ".concat(n?"on":""),onClick:()=>{return t=m.key,n=e.key,l(""),void g(t,n);var t,n},children:[(0,Xo.jsx)("span",{className:"agon-opt-key",children:String.fromCharCode(65+t)}),(0,Xo.jsx)("span",{className:"agon-opt-label",children:e.label}),n&&(0,Xo.jsx)("svg",{className:"agon-opt-check",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.key)}))}),"software"===m.key&&"Other"===i.software&&(0,Xo.jsx)("input",{className:"agon-input cla-other",placeholder:"Which software?",value:i.softw
2areOther,onChange:e=>g("softwareOther",e.target.value),onKeyDown:S})]}),s&&(0,Xo.jsx)("p",{className:"agon-error",children:s}),(0,Xo.jsxs)("div",{className:"agon-foot",children:[(0,Xo.jsxs)("button",{className:"agon-ok",onClick:y,disabled:c,children:[c?"Submitting\u2026":f?"Submit":"welcome"===m.type?"Apply now":"OK",!c&&(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]}),(0,Xo.jsx)("span",{className:"agon-enter",children:"press Enter \u21b5"})]})]},m.id)}),(0,Xo.jsxs)("div",{className:"agon-nav",children:[(0,Xo.jsx)("button",{className:"agon-arrow",onClick:x,disabled:0===e,"aria-label":"Previous",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"18 15 12 9 6 15"})})}),(0,Xo.jsx)("button",{className:"agon-arrow",onClick:y,disabled:c,"aria-label":"Next",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]})]})}function m4(){const{jobId:e,clipIndex:t}=qt(),[n,r]=(0,$.useState)(null);(0,$.useEffect)((()=>{let n=!1;return(async()=>{try{const r=await fetch("/editor/index.html",{cache:"no-store"});if(!r.ok)throw new Error("HTTP ".concat(r.status));if(!(await r.text()).includes("/editor/assets/"))throw new Error("Editor static bundle isn't deployed at /editor/. Check Render's build command runs `npm run editor:install && npm run editor:build`.");if(n)return;const i=encodeURIComponent(e||""),a=encodeURIComponent(t||"0");window.location.replace("/editor/?jobId=".concat(i,"&clipIndex=").concat(a))}catch(K6){n||r(K6.message||String(K6))}})(),()=>{n=!0}}),[e,t]);const i={minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#0a0a0a",color:"#fafafa",fontFamily:"system-ui, -apple-system, sans-serif",padding:24,boxSizing:"border-box"};return n?(0,Xo.jsx)("div",{style:i,children:(0,Xo.jsxs)("div",{style:{maxWidth:560,textAlign:"center"},children:[(0,Xo.jsx)("div",{style:{fontSize:18,fontWeight:700,color:"#ff8a3d",marginBottom:10},children:"Editor isn't deployed yet"}),(0,Xo.jsx)("div",{style:{fontSize:13.5,color:"#a1a1aa",lineHeight:1.55,marginBottom:16},children:n}),(0,Xo.jsx)(wn,{to:"/home",style:{display:"inline-block",padding:"10px 20px",background:"#ff6a00",color:"#fff",borderRadius:10,textDecoration:"none",fontWeight:700,fontSize:13},children:"Back to clips"})]})}):(0,Xo.jsx)("div",{style:o(o({},i),{},{fontSize:14}),children:"Loading editor\u2026"})}const f4="#FF6B00";function g4(e){let{value:t,onChange:n}=e;const r=(0,$.useRef)(null),i=(0,$.useRef)(!1),a=e=>{const t=r.current;if(!t)return;const i=t.getBoundingClientRect(),a=1+9*Math.max(0,Math.min(1,(e-i.left)/i.width));n(Math.round(a))},s=e=>{e.preventDefault(),i.current=!0;const t=e.touches?e.touches[0].clientX:e.clientX;a(t);const n=e=>{if(!i.current)return;e.touches&&e.preventDefault();const t=e.touches?e.touches[0].clientX:e.clientX;a(t)},r=()=>{i.current=!1,window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",r),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",r),window.addEventListener("touchmove",n,{passive:!1}),window.addEventListener("touchend",r)},o=(e=>(e-1)/9*100)(t);return(0,Xo.jsx)("div",{className:"upg-cs-wrap",children:(0,Xo.jsxs)("div",{className:"upg-cs-row",children:[(0,Xo.jsxs)("div",{className:"upg-cs-track",ref:r,onMouseDown:s,onTouchStart:s,children:[(0,Xo.jsx)("div",{className:"upg-cs-fill",style:{width:"".concat(o,"%"),background:f4}}),(0,Xo.jsx)("div",{className:"upg-cs-ticks",children:Array.from({length:10}).map(((e,t)=>(0,Xo.jsx)("span",{className:"upg-cs-tick"},t)))}),(0,Xo.jsx)("div",{className:"upg-cs-knob",style:{left:"".concat(o,"%"),borderColor:f4},onMouseDown:s,onTouchStart:s,children:(0,Xo.jsxs)("span",{children:[t,"x"]})})]}),(0,Xo.jsxs)("div",{className:"upg-cs-pack-stepper",children:[(0,Xo.jsxs)("span",{children:[t," ",1===t?"pack":"packs"]}),(0,Xo.jsxs)("div",{className:"upg-cs-pack-arrows",children:[(0,Xo.jsx)("button",{onClick:()=>n(Math.min(10,t+1)),"aria-label":"More packs",children:(0,Xo.jsx)("svg",{width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:(0,Xo.jsx)("path",{d:"M1 5l3.5-4L8 5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})})}),(0,Xo.jsx)("button",{onClick:()=>n(Math.max(1,t-1)),"aria-label":"Fewer packs",children:(0,Xo.jsx)("svg",{width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:(0,Xo.jsx)("path",{d:"M1 1l3.5 4L8 1",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})})})]})]})]})})}const v4="#FF6B00",b4=[{id:"pack_50",credits:50,price:5,note:null,desc:"+50 min of video processing"},{id:"pack_150",credits:150,price:14,note:"Save 7%",desc:"+150 min \xb7 Starter-equivalent"},{id:"pack_300",credits:300,price:27,note:"Save 10%",desc:"+300 min \xb7 Pro-equivalent"},{id:"pack_1500",credits:1500,price:90,note:"Best Value",desc:"+25 hours \xb7 Premium-equivalent"}],y4=e=>Number.isInteger(e)?String(e):e.toFixed(2),x4=()=>(0,Xo.jsx)("span",{className:"upg-price-check",style:{color:v4},children:(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,Xo.jsx)("path",{d:"M2.5 7.5l3 3 6-7",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}),S4=e=>(0,Xo.jsxs)("svg",o(o({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5"},e),{},{children:[(0,Xo.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,Xo.jsx)("polyline",{points:"12 5 19 12 12 19"})]})),k4=()=>{const e=Vt(),[t]=An(),[n,r]=(0,$.useState)(!0),[i,a]=(0,$.useState)(1),[s,l]=(0,$.useState)(null),[c,d]=(0,$.useState)("credits"===t.get("tab")?"credits":"plans"),u=n?6:12,h=n?40:81,p=(n?12:24)*i,m=300*i,f=300*i,g=
2async e=>{l(e);try{var t;const r=nA(),i=await ks.post("/billing/plan/checkout",o(o({planName:e,interval:n?"annual":"monthly"},"Pro"===e?{credits:m}:{}),r?{referral:r}:{}));null!==(t=i.data)&&void 0!==t&&t.url&&(window.location.href=i.data.url)}catch(K6){console.error("Checkout error:",K6),l(null)}},v="Get Plan";return(0,Xo.jsxs)("div",{className:"upg-page",children:[(0,Xo.jsxs)("button",{className:"upg-back",onClick:()=>e(-1),children:[(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,Xo.jsx)("polyline",{points:"15 18 9 12 15 6"})}),"Back"]}),(0,Xo.jsxs)("div",{className:"upg-inner",children:[(0,Xo.jsxs)("div",{className:"upg-section-head",children:[(0,Xo.jsx)("h2",{className:"upg-section-h2",children:"Explore plans"}),(0,Xo.jsxs)("div",{className:"upg-tabs",children:[(0,Xo.jsx)("button",{className:"upg-tab ".concat("plans"===c?"on":""),onClick:()=>d("plans"),children:"Plans"}),(0,Xo.jsx)("button",{className:"upg-tab ".concat("credits"===c?"on":""),onClick:()=>d("credits"),children:"Buy Credits"})]}),"plans"===c&&(0,Xo.jsxs)("div",{className:"upg-bill-toggle",children:[(0,Xo.jsx)("button",{className:"upg-bill-btn ".concat(n?"":"on"),onClick:()=>r(!1),children:"Monthly"}),(0,Xo.jsxs)("button",{className:"upg-bill-btn ".concat(n?"on":""),onClick:()=>r(!0),children:["Annual ",(0,Xo.jsx)("span",{className:"upg-bill-save",children:"20% off"})]})]})]}),"plans"===c&&(0,Xo.jsx)(Xo.Fragment,{children:(0,Xo.jsxs)("div",{className:"upg-price-grid",children:[(0,Xo.jsxs)("div",{className:"upg-price-card",children:[(0,Xo.jsx)("div",{className:"upg-price-name",children:"Starter"}),(0,Xo.jsx)("div",{className:"upg-price-pitch",children:"For solo clippers and streamers getting started."}),(0,Xo.jsxs)("div",{className:"upg-price-amount",children:[(0,Xo.jsx)("span",{className:"upg-price-currency",children:"$"}),(0,Xo.jsx)("span",{className:"upg-price-value",children:y4(u)}),(0,Xo.jsx)("span",{className:"upg-price-period",children:(0,Xo.jsx)("span",{className:"upg-price-period-sub",children:"/mo"})})]}),(0,Xo.jsx)("div",{className:"upg-price-credit-pill",children:"150 credits/mo \xb7 150 min of video"}),(0,Xo.jsx)("button",{className:"upg-btn-secondary upg-price-cta",onClick:()=>g("Starter"),disabled:"Starter"===s,children:"Starter"===s?(0,Xo.jsx)("span",{className:"upg-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:[v," ",(0,Xo.jsx)(S4,{})]})}),(0,Xo.jsx)("div",{className:"upg-price-fineprint",children:"Cancel anytime"}),(0,Xo.jsxs)("ul",{className:"upg-price-list",children:[(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"150 credits/mo (~150 min of video)"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"9:16 + 16:9 aspect ratios"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"HD rendered clips"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"AI animated captions"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Watermark-free exports"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"5 brand accounts"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Music recommendations for clips"]})]})]}),(0,Xo.jsxs)("div",{className:"upg-price-card upg-price-hl",children:[(0,Xo.jsx)("div",{className:"upg-price-tag",style:{background:v4},children:"Most Popular"}),(0,Xo.jsx)("div",{className:"upg-price-name",children:"Pro"}),(0,Xo.jsx)("div",{className:"upg-price-pitch",children:"For full-time clippers and serious streamers."}),(0,Xo.jsxs)("div",{className:"upg-price-amount",children:[(0,Xo.jsx)("span",{className:"upg-price-currency",children:"$"}),(0,Xo.jsx)("span",{className:"upg-price-value",children:y4(p)}),(0,Xo.jsx)("span",{className:"upg-price-period",children:(0,Xo.jsx)("span",{className:"upg-price-period-sub",children:"/mo"})})]}),(0,Xo.jsxs)("div",{className:"upg-price-credit-pill upg-price-credit-pill-on",children:[m.toLocaleString()," credits/mo \xb7 ",f.toLocaleString()," min of video"]}),(0,Xo.jsx)(g4,{value:i,onChange:a}),(0,Xo.jsx)("button",{className:"upg-btn-primary upg-price-cta",style:{background:v4},onClick:()=>g("Pro"),disabled:"Pro"===s,children:"Pro"===s?(0,Xo.jsx)("span",{className:"upg-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:[v," ",(0,Xo.jsx)(S4,{})]})}),(0,Xo.jsx)("div",{className:"upg-price-fineprint",children:"Cancel anytime"}),(0,Xo.jsxs)("ul",{className:"upg-price-list",children:[(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}
2),(0,Xo.jsxs)("b",{children:[m.toLocaleString()," credits/mo"]})," (~",f," min of video)"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"9:16 + 16:9 aspect ratios"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"HD rendered clips"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"AI animated captions"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Watermark-free exports"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),(0,Xo.jsx)("b",{children:"5 brand accounts"})]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Music recommendations for clips"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Hook-detection tuned for livestreams"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Auto-clip every stream you go live on"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Priority render queue"]})]})]}),(0,Xo.jsxs)("div",{className:"upg-price-card",children:[(0,Xo.jsx)("div",{className:"upg-price-tag upg-price-tag-outline",children:"Best Value"}),(0,Xo.jsx)("div",{className:"upg-price-name",children:"Premium"}),(0,Xo.jsx)("div",{className:"upg-price-pitch",children:"For agencies, networks, and serious clipping operations."}),(0,Xo.jsxs)("div",{className:"upg-price-amount",children:[(0,Xo.jsx)("span",{className:"upg-price-currency",children:"$"}),(0,Xo.jsx)("span",{className:"upg-price-value",children:y4(h)}),(0,Xo.jsx)("span",{className:"upg-price-period",children:(0,Xo.jsx)("span",{className:"upg-price-period-sub",children:"/mo"})})]}),(0,Xo.jsx)("div",{className:"upg-price-credit-pill",children:"1,500 credits/mo \xb7 25 hours of video"}),(0,Xo.jsx)("button",{className:"upg-btn-secondary upg-price-cta",onClick:()=>g("Premium"),disabled:"Premium"===s,children:"Premium"===s?(0,Xo.jsx)("span",{className:"upg-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:[v," ",(0,Xo.jsx)(S4,{})]})}),(0,Xo.jsx)("div",{className:"upg-price-fineprint",children:"Cancel anytime"}),(0,Xo.jsxs)("ul",{className:"upg-price-list",children:[(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"1,500 credits/mo (~25 hours of video)"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"9:16 + 16:9 aspect ratios"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"HD rendered clips"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"AI animated captions"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Watermark-free exports"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),(0,Xo.jsx)("b",{children:"5 brand accounts"})]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Music recommendations for clips"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),(0,Xo.jsx)("b",{children:"Best per-credit value"})]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Multi-creator workspace"]}),(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(x4,{}),"Dedicated support"]})]})]})]})}),"credits"===c&&(0,Xo.jsxs)("div",{className:"upg-credits-section",children:[(0,Xo.jsx)("p",{className:"upg-credits-intro",children:"Top up your account with one-time credits. Credits never expire and work on top of your plan."}),(0,Xo.jsx)("div",{className:"upg-credits-grid",children:b4.map((e=>(0,Xo.jsxs)("div",{className:"upg-credit-card",children:[(0,Xo.jsxs)("div",{className:"upg-credit-amount",children:[(0,Xo.jsx)("span",{className:"upg-credit-num",children:e.credits}),(0,Xo.jsx)("span",{className:"upg-credit-unit",children:"credits"})]}),(0,Xo.jsx)("div",{className:"upg-credit-desc",children:e.desc}),(0,Xo.jsxs)("div",{className:"upg-credit-price-row",children:[(0,Xo.jsxs)("span",{className:"upg-credit-price",children:["$",e.price]}),e.note&&(0,Xo.jsx)("span",{className:"upg-credit-note",children:e.note})]}),(0,Xo.jsx)("button",{className:"upg-btn-secondary upg-credit-cta",onClick:()=>(async e=>{l(e);try{var t;const n=await ks.post("/billing/credits/checkout",{packId:e});null!==(t=n.data)&&void 0!==t&&t.url&&(window.location.href=n.data.url)}catch(K6){console.error("Credits checkout error:",K6),l(null)}})(e.id),disabled:s===e.id,children:s===e.id?(0,Xo.jsx)("span",{className:"upg-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:["Buy ",(0,Xo.jsx)(S4,{})]})})]},e.id)))})]})]})]})};
2var w4,T4,C4,E4,j4,A4,N4,P4,R4=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},L4=(e,t,n)=>(R4(e,t,"read from private field"),n?n.call(e):t.get(e)),I4=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},D4=(e,t,n,r)=>(R4(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),O4=(e,t,n)=>(R4(e,t,"access private method"),n),M4=new Uint8Array(8),_4=new DataView(M4.buffer),F4=e=>[(e%256+256)%256],B4=e=>(_4.setUint16(0,e,!1),[M4[0],M4[1]]),U4=e=>(_4.setInt16(0,e,!1),[M4[0],M4[1]]),z4=e=>(_4.setUint32(0,e,!1),[M4[1],M4[2],M4[3]]),G4=e=>(_4.setUint32(0,e,!1),[M4[0],M4[1],M4[2],M4[3]]),W4=e=>(_4.setInt32(0,e,!1),[M4[0],M4[1],M4[2],M4[3]]),H4=e=>(_4.setUint32(0,Math.floor(e/2**32),!1),_4.setUint32(4,e,!1),[M4[0],M4[1],M4[2],M4[3],M4[4],M4[5],M4[6],M4[7]]),V4=e=>(_4.setInt16(0,256*e,!1),[M4[0],M4[1]]),K4=e=>(_4.setInt32(0,65536*e,!1),[M4[0],M4[1],M4[2],M4[3]]),q4=e=>(_4.setInt32(0,2**30*e,!1),[M4[0],M4[1],M4[2],M4[3]]),Y4=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Array(e.length).fill(null).map(((t,n)=>e.charCodeAt(n)));return t&&n.push(0),n},X4=e=>e&&e[e.length-1],J4=e=>{let t;for(let n of e)(!t||n.presentationTimestamp>t.presentationTimestamp)&&(t=n);return t},Q4=function(e,t){let n=e*t;return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?Math.round(n):n},Z4=e=>{let t=e*(Math.PI/180),n=Math.cos(t),r=Math.sin(t);return[n,r,0,-r,n,0,0,0,1]},$4=Z4(0),e5=e=>[K4(e[0]),K4(e[1]),q4(e[2]),K4(e[3]),K4(e[4]),q4(e[5]),K4(e[6]),K4(e[7]),q4(e[8])],t5=e=>e?"object"!==typeof e?e:Array.isArray(e)?e.map(t5):Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[t,t5(n)]}))):e,n5=e=>e>=0&&e<2**32,r5=(e,t,n)=>({type:e,contents:t&&new Uint8Array(t.flat(10)),children:n}),i5=(e,t,n,r,i)=>r5(e,[F4(t),z4(n),null!==r&&void 0!==r?r:[]],i),a5=e=>({type:"mdat",largeSize:e}),s5=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r5("moov",null,[o5(t,e),...e.map((e=>l5(e,t))),n?I5(e):null])},o5=(e,t)=>{let n=Q4(Math.max(0,...t.filter((e=>e.samples.length>0)).map((e=>{const t=J4(e.samples);return t.presentationTimestamp+t.duration}))),Q3),r=Math.max(...t.map((e=>e.id)))+1,i=!n5(e)||!n5(n),a=i?H4:G4;return i5("mvhd",+i,0,[a(e),a(e),G4(Q3),a(n),K4(1),V4(1),Array(10).fill(0),e5($4),Array(24).fill(0),G4(r)])},l5=(e,t)=>r5("trak",null,[c5(e,t),d5(e,t)]),c5=(e,t)=>{let n,r=J4(e.samples),i=Q4(r?r.presentationTimestamp+r.duration:0,Q3),a=!n5(t)||!n5(i),s=a?H4:G4;return n="video"===e.info.type?"number"===typeof e.info.rotation?Z4(e.info.rotation):e.info.rotation:$4,i5("tkhd",+a,3,[s(t),s(t),G4(e.id),G4(0),s(i),Array(8).fill(0),B4(0),B4(0),V4("audio"===e.info.type?1:0),B4(0),e5(n),K4("video"===e.info.type?e.info.width:0),K4("video"===e.info.type?e.info.height:0)])},d5=(e,t)=>r5("mdia",null,[u5(e,t),h5("video"===e.info.type?"vide":"soun"),p5(e)]),u5=(e,t)=>{let n=J4(e.samples),r=Q4(n?n.presentationTimestamp+n.duration:0,e.timescale),i=!n5(t)||!n5(r),a=i?H4:G4;return i5("mdhd",+i,0,[a(t),a(t),G4(e.timescale),a(r),B4(21956),B4(0)])},h5=e=>i5("hdlr",0,0,[Y4("mhlr"),Y4(e),G4(0),G4(0),G4(0),Y4("mp4-muxer-hdlr",!0)]),p5=e=>r5("minf",null,["video"===e.info.type?m5():f5(),g5(),y5(e)]),m5=()=>i5("vmhd",0,1,[B4(0),B4(0),B4(0),B4(0)]),f5=()=>i5("smhd",0,0,[B4(0),B4(0)]),g5=()=>r5("dinf",null,[v5()]),v5=()=>i5("dref",0,0,[G4(1)],[b5()]),b5=()=>i5("url ",0,1),y5=e=>{const t=e.compositionTimeOffsetTable.length>1||e.compositionTimeOffsetTable.some((e=>0!==e.sampleCompositionTimeOffset));return r5("stbl",null,[x5(e),j5(e),A5(e),N5(e),P5(e),R5(e),t?L5(e):null])},x5=e=>i5("stsd",0,0,[G4(1)],["video"===e.info.type?S5(H5[e.info.codec],e):E5(K5[e.info.codec],e)]),S5=(e,t)=>r5(e,[Array(6).fill(0),B4(1),B4(0),B4(0),Array(12).fill(0),B4(t.info.width),B4(t.info.height),G4(4718592),G4(4718592),G4(0),B4(1),Array(32).fill(0),B4(24),U4(65535)],[V5[t.info.codec](t),t.info.decoderConfig.colorSpace?C5(t):null]),k5={bt709:1,bt470bg:5,smpte170m:6},w5={bt709:1,smpte170m:6,"iec61966-2-1":13},T5={rgb:0,bt709:1,bt470bg:5,smpte170m:6},C5=e=>r5("colr",[Y4("nclx"),B4(k5[e.info.decoderConfig.colorSpace.primaries]),B4(w5[e.info.decoderConfig.colorSpace.transfer]),B4(T5[e.info.decoderConfig.colorSpace.matrix]),F4((e.info.decoderConfig.colorSpace.fullRange?1:0)<<7)]),E5=(e,t)=>r5(e,[Array(6).fill(0),B4(1),B4(0),B4(0),G4(0),B4(t.info.numberOfChannels),B4(16),B4(0),B4(0),K4(t.info.sampleRate)],[q5[t.info.codec](t)]),j5=e=>i5("stts",0,0,[G4(e.timeToSampleTable.length),e.timeToSampleTable.map((e=>
2[G4(e.sampleCount),G4(e.sampleDelta)]))]),A5=e=>{if(e.samples.every((e=>"key"===e.type)))return null;let t=[...e.samples.entries()].filter((e=>{let[,t]=e;return"key"===t.type}));return i5("stss",0,0,[G4(t.length),t.map((e=>{let[t]=e;return G4(t+1)}))])},N5=e=>i5("stsc",0,0,[G4(e.compactlyCodedChunkTable.length),e.compactlyCodedChunkTable.map((e=>[G4(e.firstChunk),G4(e.samplesPerChunk),G4(1)]))]),P5=e=>i5("stsz",0,0,[G4(0),G4(e.samples.length),e.samples.map((e=>G4(e.size)))]),R5=e=>e.finalizedChunks.length>0&&X4(e.finalizedChunks).offset>=2**32?i5("co64",0,0,[G4(e.finalizedChunks.length),e.finalizedChunks.map((e=>H4(e.offset)))]):i5("stco",0,0,[G4(e.finalizedChunks.length),e.finalizedChunks.map((e=>G4(e.offset)))]),L5=e=>i5("ctts",0,0,[G4(e.compositionTimeOffsetTable.length),e.compositionTimeOffsetTable.map((e=>[G4(e.sampleCount),G4(e.sampleCompositionTimeOffset)]))]),I5=e=>r5("mvex",null,e.map(D5)),D5=e=>i5("trex",0,0,[G4(e.id),G4(1),G4(0),G4(0),G4(0)]),O5=(e,t)=>r5("moof",null,[M5(e),...t.map(F5)]),M5=e=>i5("mfhd",0,0,[G4(e)]),_5=e=>{let t=0,n=0,r="delta"===e.type;return n|=+r,t|=r?1:2,t<<24|n<<16},F5=e=>r5("traf",null,[B5(e),U5(e),z5(e)]),B5=e=>{var t;let n=0;n|=8,n|=16,n|=32,n|=131072;let r=null!==(t=e.currentChunk.samples[1])&&void 0!==t?t:e.currentChunk.samples[0],i={duration:r.timescaleUnitsToNextSample,size:r.size,flags:_5(r)};return i5("tfhd",0,131128,[G4(e.id),G4(i.duration),G4(i.size),G4(i.flags)])},U5=e=>i5("tfdt",1,0,[H4(Q4(e.currentChunk.startTimestamp,e.timescale))]),z5=e=>{let t=e.currentChunk.samples.map((e=>e.timescaleUnitsToNextSample)),n=e.currentChunk.samples.map((e=>e.size)),r=e.currentChunk.samples.map(_5),i=e.currentChunk.samples.map((t=>Q4(t.presentationTimestamp-t.decodeTimestamp,e.timescale))),a=new Set(t),s=new Set(n),o=new Set(r),l=new Set(i),c=2===o.size&&r[0]!==r[1],d=a.size>1,u=s.size>1,h=!c&&o.size>1,p=l.size>1||[...l].some((e=>0!==e)),m=0;return m|=1,m|=4*+c,m|=256*+d,m|=512*+u,m|=1024*+h,m|=2048*+p,i5("trun",1,m,[G4(e.currentChunk.samples.length),G4(e.currentChunk.offset-e.currentChunk.moofOffset||0),c?G4(r[0]):[],e.currentChunk.samples.map(((e,a)=>[d?G4(t[a]):[],u?G4(n[a]):[],h?G4(r[a]):[],p?W4(i[a]):[]]))])},G5=(e,t)=>i5("tfra",1,0,[G4(e.id),G4(63),G4(e.finalizedChunks.length),e.finalizedChunks.map((n=>[H4(Q4(n.startTimestamp,e.timescale)),H4(n.moofOffset),G4(t+1),G4(1),G4(1)]))]),W5=()=>i5("mfro",0,0,[G4(0)]),H5={avc:"avc1",hevc:"hvc1",vp9:"vp09",av1:"av01"},V5={avc:e=>e.info.decoderConfig&&r5("avcC",[...new Uint8Array(e.info.decoderConfig.description)]),hevc:e=>e.info.decoderConfig&&r5("hvcC",[...new Uint8Array(e.info.decoderConfig.description)]),vp9:e=>{if(!e.info.decoderConfig)return null;let t=e.info.decoderConfig;if(!t.colorSpace)throw new Error("'colorSpace' is required in the decoder config for VP9.");let n=t.codec.split("."),r=Number(n[1]),i=Number(n[2]),a=0+(Number(n[3])<<4)+Number(t.colorSpace.fullRange);return i5("vpcC",1,0,[F4(r),F4(i),F4(a),F4(2),F4(2),F4(2),B4(0)])},av1:()=>r5("av1C",[129,0,0,0])},K5={aac:"mp4a",opus:"Opus"},q5={aac:e=>{let t=new Uint8Array(e.info.decoderConfig.description);return i5("esds",0,0,[G4(58753152),F4(32+t.byteLength),B4(1),F4(0),G4(75530368),F4(18+t.byteLength),F4(64),F4(21),z4(0),G4(130071),G4(130071),G4(92307584),F4(t.byteLength),...t,G4(109084800),F4(1),F4(2)])},opus:e=>{var t;let n=3840,r=0;const i=null===(t=e.info.decoderConfig)||void 0===t?void 0:t.description;if(i){if(i.byteLength<18)throw new TypeError("Invalid decoder description provided for Opus; must be at least 18 bytes long.");const e=ArrayBuffer.isView(i)?new DataView(i.buffer,i.byteOffset,i.byteLength):new DataView(i);n=e.getUint16(10,!0),r=e.getInt16(14,!0)}return r5("dOps",[F4(0),F4(e.info.numberOfChannels),B4(n),G4(e.info.sampleRate),V4(r),F4(0)])}},Y5=(Symbol("isTarget"),class{}),X5=class extends Y5{constructor(){super(...arguments),this.buffer=null}},J5=class extends Y5{constructor(e){if(super(),this.options=e,"object"!==typeof e)throw new TypeError("StreamTarget requires an options object to be passed to its constructor.");if(e.onData){if("function"!==typeof e.onData)throw new TypeError("options.onData, when provided, must be a function.");
2if(e.onData.length<2)throw new TypeError("options.onData, when provided, must be a function that takes in at least two arguments (data and position). Ignoring the position argument, which specifies the byte offset at which the data is to be written, can lead to broken outputs.")}if(void 0!==e.chunked&&"boolean"!==typeof e.chunked)throw new TypeError("options.chunked, when provided, must be a boolean.");if(void 0!==e.chunkSize&&(!Number.isInteger(e.chunkSize)||e.chunkSize<1024))throw new TypeError("options.chunkSize, when provided, must be an integer and not smaller than 1024.")}},Q5=class extends Y5{constructor(e,t){if(super(),this.stream=e,this.options=t,!(e instanceof FileSystemWritableFileStream))throw new TypeError("FileSystemWritableFileStreamTarget requires a FileSystemWritableFileStream instance.");if(void 0!==t&&"object"!==typeof t)throw new TypeError("FileSystemWritableFileStreamTarget's options, when provided, must be an object.");if(t&&void 0!==t.chunkSize&&(!Number.isInteger(t.chunkSize)||t.chunkSize<=0))throw new TypeError("options.chunkSize, when provided, must be a positive integer")}},Z5=class{constructor(){this.pos=0,I4(this,w4,new Uint8Array(8)),I4(this,T4,new DataView(L4(this,w4).buffer)),this.offsets=new WeakMap}seek(e){this.pos=e}writeU32(e){L4(this,T4).setUint32(0,e,!1),this.write(L4(this,w4).subarray(0,4))}writeU64(e){L4(this,T4).setUint32(0,Math.floor(e/2**32),!1),L4(this,T4).setUint32(4,e,!1),this.write(L4(this,w4).subarray(0,8))}writeAscii(e){for(let t=0;t<e.length;t++)L4(this,T4).setUint8(t%8,e.charCodeAt(t)),t%8===7&&this.write(L4(this,w4));e.length%8!==0&&this.write(L4(this,w4).subarray(0,e.length%8))}writeBox(e){if(this.offsets.set(e,this.pos),e.contents&&!e.children){var t;this.writeBoxHeader(e,null!==(t=e.size)&&void 0!==t?t:e.contents.byteLength+8),this.write(e.contents)}else{var n;let t=this.pos;if(this.writeBoxHeader(e,0),e.contents&&this.write(e.contents),e.children)for(let n of e.children)n&&this.writeBox(n);let r=this.pos,i=null!==(n=e.size)&&void 0!==n?n:r-t;this.seek(t),this.writeBoxHeader(e,i),this.seek(r)}}writeBoxHeader(e,t){this.writeU32(e.largeSize?1:t),this.writeAscii(e.type),e.largeSize&&this.writeU64(t)}measureBoxHeader(e){return 8+(e.largeSize?8:0)}patchBox(e){let t=this.pos;this.seek(this.offsets.get(e)),this.writeBox(e),this.seek(t)}measureBox(e){if(e.contents&&!e.children){return this.measureBoxHeader(e)+e.contents.byteLength}{let t=this.measureBoxHeader(e);if(e.contents&&(t+=e.contents.byteLength),e.children)for(let n of e.children)n&&(t+=this.measureBox(n));return t}}};w4=new WeakMap,T4=new WeakMap;var $5=class extends Z5{constructor(e){super(),I4(this,N4),I4(this,C4,void 0),I4(this,E4,new ArrayBuffer(65536)),I4(this,j4,new Uint8Array(L4(this,E4))),I4(this,A4,0),D4(this,C4,e)}write(e){O4(this,N4,P4).call(this,this.pos+e.byteLength),L4(this,j4).set(e,this.pos),this.pos+=e.byteLength,D4(this,A4,Math.max(L4(this,A4),this.pos))}finalize(){O4(this,N4,P4).call(this,this.pos),L4(this,C4).buffer=L4(this,E4).slice(0,Math.max(L4(this,A4),this.pos))}};C4=new WeakMap,E4=new WeakMap,j4=new WeakMap,A4=new WeakMap,N4=new WeakSet,P4=function(e){let t=L4(this,E4).byteLength;for(;t<e;)t*=2;if(t===L4(this,E4).byteLength)return;let n=new ArrayBuffer(t),r=new Uint8Array(n);r.set(L4(this,j4),0),D4(this,E4,n),D4(this,j4,r)};var e3,t3,n3,r3,i3,a3,s3,o3,l3,c3,d3,u3,h3,p3=class extends Z5{constructor(e){var t,n,r,i;super(),I4(this,a3),I4(this,o3),I4(this,c3),I4(this,u3),I4(this,e3,void 0),I4(this,t3,[]),I4(this,n3,void 0),I4(this,r3,void 0),I4(this,i3,[]),D4(this,e3,e),D4(this,n3,null!==(t=null===(n=e.options)||void 0===n?void 0:n.chunked)&&void 0!==t&&t),D4(this,r3,null!==(r=null===(i=e.options)||void 0===i?void 0:i.chunkSize)&&void 0!==r?r:16777216)}write(e){L4(this,t3).push({data:e.slice(),start:this.pos}),this.pos+=e.byteLength}flush(){if(0===L4(this,t3).length)return;let e=[],t=[...L4(this,t3)].sort(((e,t)=>e.start-t.start));e.push({start:t[0].start,size:t[0].data.byteLength});for(let i=1;i<t.length;i++){let n=e[e.length-1],r=t[i];r.start<=n.start+n.size?n.size=Math.max(n.size,r.start+r.data.byteLength-n.start):e.push({start:r.start,size:r.data.byteLength})}for(let i of e){i.data=new Uint8Array(i.size);for(let e of L4(this,t3))i.start<=e.start&&e.start<i.start+i.size&&i.data.set(e.data,e.start-i.start);var n,r;if(L4(this,n3))O4(this,a3,s3).call(this,i.data,i.start),O4(this,u3,h3).call(this);else null===(n=(r=L4(this,e3).options).onData)||void 0===n||n.call(r,i.data,i.start)}L4(this,t3).length=0}finalize(){L4(this,n3)&&O4(this,u3,h3).call(this,!0)}};e3=new WeakMap,t3=new WeakMap,n3=new WeakMap,r3=new WeakMap,i3=new WeakMap,a3=new WeakSet,s3=function(e,t){let n=L4(this,i3).findIndex((e=>e.start<=t&&t<e.start+L4(this,r3)));-1===n&&(n=O4(this,c3,d3).call(this,t));let r=L4(this,i3)[n],i=t-r.start,a=e.subarray(0,Math.min(L4(this,r3)-i,e.byteLength));r.data.set(a,i);let s={start:i,end:i+a.byteLength};if(O4(this,o3,l3).call(this,r,s),0===r.written[0].start&&r.written[0].end===L4(this,r3)&&(r.shouldFlush=!0),L4(this,i3).length>2){for(let e=0;e<L4(this,i3).length-1;e++)L4(this,i3)[e].shouldFlush=!0;O4(this,u3,h3).call(this)}a.byteLength<e.byteLength&&O4(this,a3,s3).call(this,e.subarray(a.byteLength),t+a.byteLength)},o3=new WeakSet,l3=function(e,t){let n=0,r=e.written.length-1,i=-1;for(;n<=r;){let a=Math.floor(n+(r-n+1)/2);e.written[a].start<=t.start?(n=a+1,i=a):r=a-1}for(e.written.splice(i+1,0,t),(-1===i||e.written[i].end<t.start)&&i++;i<e.written.length-1&&e.written[i].end>=e.written[i+1].start;)e.written[i].end=Math.max(e.written[i].end,e.written[i+1].end),e.written.splice(i+1,1)},c3=new WeakSet,d3=function(e){let t={start:Math.floor(e/L4(this,r3))*L4(this,r3),data:new Uint8Array(L4(this,r3)),written:[],shouldFlush:!1};return L4(this,i3).push(t),L4(this,i3).sort(((e,t)=>e.start-t.start)),L4(this,i3).indexOf(t)},u3=new WeakSet,h3=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(let r=0;r<L4(this,i3).length;r++){let i=L4(this,i3)[r];if(i.shouldFlush||e){for(let e of i.written){var t,n;null===(t=(n=L4(this,e3).options).onData)||void 0===t||t.call(n,i.data.subarray(e.start,e.end),i.start+e.start)}L4(this,i3).splice(r--,1)}}};var m3,f3,g3,v3,b3,y3,x3,S3,k3,w3,T3,C3,E3,j3,A3,N3,P3,R3,L3,I3,D3,O3,M3,_3,F3,B3,U3,z3,G3,W3,H3,V3,K3,q3,Y3,X3,J3=class extends p3{constructor(e){var t;super(new J5({onData:(t,n)=>e.stream.write({type:"write",data:t,position:n}),chunked:!0,chunkSize:null===(t=e.options)||void 0===t?void 0:t.chunkSize}))}},Q3=1e3,Z3=["avc","hevc","vp9","av1"],$3=["aac","opus"],e6=["strict","offset","cross-track-offset"],t6=class{constructor(e){if(I4(this,E3),I4(this,A3),I4(this,P3),I4(this,L3),I4(this,D3),I4(this,M3),I4(this,F3),I4(this,U3),I4(this,G3),I4(this,H3),I4
2(this,K3),I4(this,Y3),I4(this,m3,void 0),I4(this,f3,void 0),I4(this,g3,void 0),I4(this,v3,void 0),I4(this,b3,null),I4(this,y3,null),I4(this,x3,Math.floor(Date.now()/1e3)+2082844800),I4(this,S3,[]),I4(this,k3,1),I4(this,w3,[]),I4(this,T3,[]),I4(this,C3,!1),O4(this,E3,j3).call(this,e),e.video=t5(e.video),e.audio=t5(e.audio),e.fastStart=t5(e.fastStart),this.target=e.target,D4(this,m3,o({firstTimestampBehavior:"strict"},e)),e.target instanceof X5)D4(this,f3,new $5(e.target));else if(e.target instanceof J5)D4(this,f3,new p3(e.target));else{if(!(e.target instanceof Q5))throw new Error("Invalid target: ".concat(e.target));D4(this,f3,new J3(e.target))}O4(this,L3,I3).call(this),O4(this,A3,N3).call(this)}addVideoChunk(e,t,n,r){if(!(e instanceof EncodedVideoChunk))throw new TypeError("addVideoChunk's first argument (sample) must be of type EncodedVideoChunk.");if(t&&"object"!==typeof t)throw new TypeError("addVideoChunk's second argument (meta), when provided, must be an object.");if(void 0!==n&&(!Number.isFinite(n)||n<0))throw new TypeError("addVideoChunk's third argument (timestamp), when provided, must be a non-negative real number.");if(void 0!==r&&!Number.isFinite(r))throw new TypeError("addVideoChunk's fourth argument (compositionTimeOffset), when provided, must be a real number.");let i=new Uint8Array(e.byteLength);e.copyTo(i),this.addVideoChunkRaw(i,e.type,null!==n&&void 0!==n?n:e.timestamp,e.duration,t,r)}addVideoChunkRaw(e,t,n,r,i,a){if(!(e instanceof Uint8Array))throw new TypeError("addVideoChunkRaw's first argument (data) must be an instance of Uint8Array.");if("key"!==t&&"delta"!==t)throw new TypeError("addVideoChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(n)||n<0)throw new TypeError("addVideoChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(r)||r<0)throw new TypeError("addVideoChunkRaw's fourth argument (duration) must be a non-negative real number.");if(i&&"object"!==typeof i)throw new TypeError("addVideoChunkRaw's fifth argument (meta), when provided, must be an object.");if(void 0!==a&&!Number.isFinite(a))throw new TypeError("addVideoChunkRaw's sixth argument (compositionTimeOffset), when provided, must be a real number.");if(O4(this,Y3,X3).call(this),!L4(this,m3).video)throw new Error("No video track declared.");if("object"===typeof L4(this,m3).fastStart&&L4(this,b3).samples.length===L4(this,m3).fastStart.expectedVideoChunks)throw new Error("Cannot add more video chunks than specified in 'fastStart' (".concat(L4(this,m3).fastStart.expectedVideoChunks,")."));let s=O4(this,M3,_3).call(this,L4(this,b3),e,t,n,r,i,a);if("fragmented"===L4(this,m3).fastStart&&L4(this,y3)){for(;L4(this,T3).length>0&&L4(this,T3)[0].decodeTimestamp<=s.decodeTimestamp;){let e=L4(this,T3).shift();O4(this,F3,B3).call(this,L4(this,y3),e)}s.decodeTimestamp<=L4(this,y3).lastDecodeTimestamp?O4(this,F3,B3).call(this,L4(this,b3),s):L4(this,w3).push(s)}else O4(this,F3,B3).call(this,L4(this,b3),s)}addAudioChunk(e,t,n){if(!(e instanceof EncodedAudioChunk))throw new TypeError("addAudioChunk's first argument (sample) must be of type EncodedAudioChunk.");if(t&&"object"!==typeof t)throw new TypeError("addAudioChunk's second argument (meta), when provided, must be an object.");if(void 0!==n&&(!Number.isFinite(n)||n<0))throw new TypeError("addAudioChunk's third argument (timestamp), when provided, must be a non-negative real number.");let r=new Uint8Array(e.byteLength);e.copyTo(r),this.addAudioChunkRaw(r,e.type,null!==n&&void 0!==n?n:e.timestamp,e.duration,t)}addAudioChunkRaw(e,t,n,r,i){if(!(e instanceof Uint8Array))throw new TypeError("addAudioChunkRaw's first argument (data) must be an instance of Uint8Array.");if("key"!==t&&"delta"!==t)throw new TypeError("addAudioChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(n)||n<0)throw new TypeError("addAudioChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(r)||r<0)throw new TypeError("addAudioChunkRaw's fourth argument (duration) must be a non-negative real number.");if(i&&"object"!==typeof i)throw new TypeError("addAudioChunkRaw's fifth argument (meta), when provided, must be an object.");if(O4(this,Y3,X3).call(this),!L4(this,m3).audio)throw new Error("No audio track declared.");
2if("object"===typeof L4(this,m3).fastStart&&L4(this,y3).samples.length===L4(this,m3).fastStart.expectedAudioChunks)throw new Error("Cannot add more audio chunks than specified in 'fastStart' (".concat(L4(this,m3).fastStart.expectedAudioChunks,")."));let a=O4(this,M3,_3).call(this,L4(this,y3),e,t,n,r,i);if("fragmented"===L4(this,m3).fastStart&&L4(this,b3)){for(;L4(this,w3).length>0&&L4(this,w3)[0].decodeTimestamp<=a.decodeTimestamp;){let e=L4(this,w3).shift();O4(this,F3,B3).call(this,L4(this,b3),e)}a.decodeTimestamp<=L4(this,b3).lastDecodeTimestamp?O4(this,F3,B3).call(this,L4(this,y3),a):L4(this,T3).push(a)}else O4(this,F3,B3).call(this,L4(this,y3),a)}finalize(){if(L4(this,C3))throw new Error("Cannot finalize a muxer more than once.");if("fragmented"===L4(this,m3).fastStart){for(let e of L4(this,w3))O4(this,F3,B3).call(this,L4(this,b3),e);for(let e of L4(this,T3))O4(this,F3,B3).call(this,L4(this,y3),e);O4(this,H3,V3).call(this,!1)}else L4(this,b3)&&O4(this,G3,W3).call(this,L4(this,b3)),L4(this,y3)&&O4(this,G3,W3).call(this,L4(this,y3));let e=[L4(this,b3),L4(this,y3)].filter(Boolean);if("in-memory"===L4(this,m3).fastStart){let t;for(let r=0;r<2;r++){let n=s5(e,L4(this,x3)),r=L4(this,f3).measureBox(n);t=L4(this,f3).measureBox(L4(this,v3));let i=L4(this,f3).pos+r+t;for(let e of L4(this,S3)){e.offset=i;for(let{data:n}of e.samples)i+=n.byteLength,t+=n.byteLength}if(i<2**32)break;t>=2**32&&(L4(this,v3).largeSize=!0)}let n=s5(e,L4(this,x3));L4(this,f3).writeBox(n),L4(this,v3).size=t,L4(this,f3).writeBox(L4(this,v3));for(let e of L4(this,S3))for(let t of e.samples)L4(this,f3).write(t.data),t.data=null}else if("fragmented"===L4(this,m3).fastStart){let t=L4(this,f3).pos,n=(e=>r5("mfra",null,[...e.map(G5),W5()]))(e);L4(this,f3).writeBox(n);let r=L4(this,f3).pos-t;L4(this,f3).seek(L4(this,f3).pos-4),L4(this,f3).writeU32(r)}else{let t=L4(this,f3).offsets.get(L4(this,v3)),n=L4(this,f3).pos-t;L4(this,v3).size=n,L4(this,v3).largeSize=n>=2**32,L4(this,f3).patchBox(L4(this,v3));let r=s5(e,L4(this,x3));if("object"===typeof L4(this,m3).fastStart){L4(this,f3).seek(L4(this,g3)),L4(this,f3).writeBox(r);let e=t-L4(this,f3).pos;L4(this,f3).writeBox({type:"free",size:e})}else L4(this,f3).writeBox(r)}O4(this,K3,q3).call(this),L4(this,f3).finalize(),D4(this,C3,!0)}};m3=new WeakMap,f3=new WeakMap,g3=new WeakMap,v3=new WeakMap,b3=new WeakMap,y3=new WeakMap,x3=new WeakMap,S3=new WeakMap,k3=new WeakMap,w3=new WeakMap,T3=new WeakMap,C3=new WeakMap,E3=new WeakSet,j3=function(e){if("object"!==typeof e)throw new TypeError("The muxer requires an options object to be passed to its constructor.");if(!(e.target instanceof Y5))throw new TypeError("The target must be provided and an instance of Target.");if(e.video){if(!Z3.includes(e.video.codec))throw new TypeError("Unsupported video codec: ".concat(e.video.codec));if(!Number.isInteger(e.video.width)||e.video.width<=0)throw new TypeError("Invalid video width: ".concat(e.video.width,". Must be a positive integer."));if(!Number.isInteger(e.video.height)||e.video.height<=0)throw new TypeError("Invalid video height: ".concat(e.video.height,". Must be a positive integer."));const t=e.video.rotation;if("number"===typeof t&&![0,90,180,270].includes(t))throw new TypeError("Invalid video rotation: ".concat(t,". Has to be 0, 90, 180 or 270."));if(Array.isArray(t)&&(9!==t.length||t.some((e=>"number"!==typeof e))))throw new TypeError("Invalid video transformation matrix: ".concat(t.join()));if(void 0!==e.video.frameRate&&(!Number.isInteger(e.video.frameRate)||e.video.frameRate<=0))throw new TypeError("Invalid video frame rate: ".concat(e.video.frameRate,". Must be a positive integer."))}if(e.audio){if(!$3.includes(e.audio.codec))throw new TypeError("Unsupported audio codec: ".concat(e.audio.codec));if(!Number.isInteger(e.audio.numberOfChannels)||e.audio.numberOfChannels<=0)throw new TypeError("Invalid number of audio channels: ".concat(e.audio.numberOfChannels,". Must be a positive integer."));if(!Number.isInteger(e.audio.sampleRate)||e.audio.sampleRate<=0)throw new TypeError("Invalid audio sample rate: ".concat(e.audio.sampleRate,". Must be a positive integer."))}if(e.firstTimestampBehavior&&!e6.includes(e.firstTimestampBehavior))throw new TypeError("Invalid first timestamp behavior: ".concat(e.firstTimestampBehavior));if("object"===typeof e.fastStart){if(e.video){if(void 0===e.fastStart.expectedVideoChunks)throw new TypeError("'fastStart' is an object but is missing property 'expectedVideoChunks'.");if(!Number.isInteger(e.fastStart.expectedVideoChunks)||e.fastStart.expectedVideoChunks<0)throw new TypeError("'expectedVideoChunks' must be a non-negative integer.")}if(e.audio){if(void 0===e.fastStart.expectedAudioChunks)throw new TypeError("'fastStart' is an object but is missing property 'expectedAudioChunks'.");if(!Number.isInteger(e.fastStart.expectedAudioChunks)||e.fastStart.expectedAudioChunks<0)throw new TypeError("'expectedAudioChunks' must be a non-negative integer.")}}else if(![!1,"in-memory","fragmented"].includes(e.fastStart))throw new TypeError("'fastStart' option must be false, 'in-memory', 'fragmented' or an object.");if(void 0!==e.minFragmentDuration&&(!Number.isFinite(e.minFragmentDuration)||e.minFragmentDuration<0))throw new TypeError("'minFragmentDuration' must be a non-negative number.")},A3=new WeakSet,N3=function(){var e,t;if(L4(this,f3).writeBox((t={holdsAvc:"avc"===(null===(e=L4(this,m3).video)||void 0===e?void 0:e.codec),fragmented:"fragmented"===L4(this,m3).fastStart}).fragmented?r5("ftyp",[Y4("iso5"),G4(512),Y4("iso5"),Y4("iso6"),Y4("mp41")]):r5("ftyp",[Y4("isom"),G4(512),Y4("isom"),t.holdsAvc?Y4("avc1"):[],Y4("mp41")])),D4(this,g3,L4(this,f3).pos),"in-memory"===L4(this,m3).fastStart)D4(this,v3,a5(!1));else if("fragmented"===L4(this,m3).fastStart);else{if("object"===typeof L4(this,m3).fastStart){let e=O4(this,P3,R3).call(this);L4(this,f3).seek(L4(this,f3).pos+e)}D4(this,v3,a5(!0)),L4(this,f3).writeBox(L4(this,v3))}O4(this,K3,q3).call(this)},P3=new WeakSet,R3=function(){if("object"!==typeof L4(this,m3).fastStart)return;let e=0,t=[L4(this,m3).fastStart.expectedVideoChunks,L4(this,m3).fastStart.expectedAudioChunks];for(let n of t)n&&(e+=8*Math.ceil(2/3*n),e+=4*n,e+=12*Math.ceil(2/3*n),e+=4*n,e+=8*n);return e+=4096,e},L3=new WeakSet,I3=function(){var e,t;L4(this,m3).video&&D4(this,b3,{id:1,info:{type:"video",codec:L4(this,m3).video.codec,width:L4(this,m3).video.width,height:L4(this,m3).video.height,rotation:null!==(e=L4(this,m3).video.rotation)&&void 0!==e?e:0,decoderConfig:null},timescale:null!==(t=L4(this,m3).video.frameRate)&&void 0!==t?t:57600,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]});if(L4(this,m3).audio&&(D4(this,y3,{id:L4(this,m3).video?2:1,info:{type:"audio",codec:L4(this,m3).audio.codec,numberOfChannels:L4(this,m3).audio.numberOfChannels,sampleRate:L4(this,m3).audio.sampleRate,decoderConfig:null},timescale:L4(this,m3).audio.sampleRate,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),"aac"===L4(this,m3).audio.codec)){let e=O4(this,D3,O3).call(this,2,L4(this,m3).audio.sampleRate,L4(this,m3).audio.numberOfChannels);L4(this,y3).info.decoderConfig={codec:L4(this,m3).audio.codec,description:e,numberOfChannels:L4(this,m3).audio.numberOfChannels,sampleRate:L4(this,m3).audio.sampleRate}}},D3=new WeakSet,O3=function(e,t,n){let r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350].indexOf(t),i=n,a="";a+=e.toString(2).padStart(5,"0"),a+=r.toString(2).padStart(4,"0"),15===r&&(a+=t.toString(2).padStart(24,"0")),a+=i.toString(2).padStart(4,"0");let s=8*Math.ceil(a.length/8);a=a.padEnd(s,"0");let o=new Uint8Array(a.length/8);for(let l=0;l<a.length;l+=8)o[l/8]=parseInt(a.slice(l,l+8),2);return o},M3=new WeakSet,_3=function(e,t,n,r,i,a,s){let o=r/1e6,l=(r-(null!==s&&void 0!==s?s:0))/1e6,c=i/1e6,d=O4(this,U3,z3).call(this,o,l,e);return o=d.presentationTimestamp,l=d.decodeTimestamp,null!==a&&void 0!==a&&a.decoderConfig&&(null===e.info.decoderConfig?e.info.decoderConfig=a.decoderConfig:Object.assign(e.info.decoderConfig,a.decoderConfig)),{presentationTimestamp:o,decodeTimestamp:l,duration:c,data:t,size:t.byteLength,type:n,timescaleUnitsToNextSample:Q4(c,e.timescale)}},F3=new WeakSet,B3=function(e,t){"fragmented"!==L4(this,m3).fastStart&&e.samples.push(t);const n=Q4(t.presentationTimestamp-t.decodeTimestamp,e.timescale);if(null!==e.lastTimescaleUnits){let r=Q4(t.decodeTimestamp,e.timescale,!1),i=Math.round(r-e.lastTimescaleUnits);if(e.lastTimescaleUnits+=i,e.lastSample.timescaleUnitsToNextSample=i,"fragmented"!==L4(this,m3).fastStart){let t=X4(e.timeToSampleTable);
21===t.sampleCount?(t.sampleDelta=i,t.sampleCount++):t.sampleDelta===i?t.sampleCount++:(t.sampleCount--,e.timeToSampleTable.push({sampleCount:2,sampleDelta:i}));const r=X4(e.compositionTimeOffsetTable);r.sampleCompositionTimeOffset===n?r.sampleCount++:e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:n})}}else e.lastTimescaleUnits=0,"fragmented"!==L4(this,m3).fastStart&&(e.timeToSampleTable.push({sampleCount:1,sampleDelta:Q4(t.duration,e.timescale)}),e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:n}));e.lastSample=t;let r=!1;if(e.currentChunk){let n=t.presentationTimestamp-e.currentChunk.startTimestamp;if("fragmented"===L4(this,m3).fastStart){var i,a;let s=null!==(i=L4(this,b3))&&void 0!==i?i:L4(this,y3);const o=null!==(a=L4(this,m3).minFragmentDuration)&&void 0!==a?a:1;e===s&&"key"===t.type&&n>=o&&(r=!0,O4(this,H3,V3).call(this))}else r=n>=.5}else r=!0;r&&(e.currentChunk&&O4(this,G3,W3).call(this,e),e.currentChunk={startTimestamp:t.presentationTimestamp,samples:[]}),e.currentChunk.samples.push(t)},U3=new WeakSet,z3=function(e,t,n){const r="strict"===L4(this,m3).firstTimestampBehavior,i=-1===n.lastDecodeTimestamp;if(r&&i&&0!==t)throw new Error("The first chunk for your media track must have a timestamp of 0 (received DTS=".concat(t,").Non-zero first timestamps are often caused by directly piping frames or audio data from a MediaStreamTrack into the encoder. Their timestamps are typically relative to the age of thedocument, which is probably what you want.\n\nIf you want to offset all timestamps of a track such that the first one is zero, set firstTimestampBehavior: 'offset' in the options.\n"));if("offset"===L4(this,m3).firstTimestampBehavior||"cross-track-offset"===L4(this,m3).firstTimestampBehavior){let r;var a,s,o,l;if(void 0===n.firstDecodeTimestamp&&(n.firstDecodeTimestamp=t),"offset"===L4(this,m3).firstTimestampBehavior)r=n.firstDecodeTimestamp;else r=Math.min(null!==(a=null===(s=L4(this,b3))||void 0===s?void 0:s.firstDecodeTimestamp)&&void 0!==a?a:1/0,null!==(o=null===(l=L4(this,y3))||void 0===l?void 0:l.firstDecodeTimestamp)&&void 0!==o?o:1/0);t-=r,e-=r}if(t<n.lastDecodeTimestamp)throw new Error("Timestamps must be monotonically increasing (DTS went from ".concat(1e6*n.lastDecodeTimestamp," to ").concat(1e6*t,")."));return n.lastDecodeTimestamp=t,{presentationTimestamp:e,decodeTimestamp:t}},G3=new WeakSet,W3=function(e){if("fragmented"===L4(this,m3).fastStart)throw new Error("Can't finalize individual chunks if 'fastStart' is set to 'fragmented'.");if(e.currentChunk)if(e.finalizedChunks.push(e.currentChunk),L4(this,S3).push(e.currentChunk),0!==e.compactlyCodedChunkTable.length&&X4(e.compactlyCodedChunkTable).samplesPerChunk===e.currentChunk.samples.length||e.compactlyCodedChunkTable.push({firstChunk:e.finalizedChunks.length,samplesPerChunk:e.currentChunk.samples.length}),"in-memory"!==L4(this,m3).fastStart){e.currentChunk.offset=L4(this,f3).pos;for(let t of e.currentChunk.samples)L4(this,f3).write(t.data),t.data=null;O4(this,K3,q3).call(this)}else e.currentChunk.offset=0},H3=new WeakSet,V3=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("fragmented"!==L4(this,m3).fastStart)throw new Error("Can't finalize a fragment unless 'fastStart' is set to 'fragmented'.");let t=[L4(this,b3),L4(this,y3)].filter((e=>e&&e.currentChunk));if(0===t.length)return;let n=(r=this,i=k3,{set _(e){D4(r,i,e,a)},get _(){return L4(r,i,s)}})._++;var r,i,a,s;if(1===n){let e=s5(t,L4(this,x3),!0);L4(this,f3).writeBox(e)}let o=L4(this,f3).pos,l=O5(n,t);L4(this,f3).writeBox(l);{let e=a5(!1),n=0;for(let i of t)for(let e of i.currentChunk.samples)n+=e.size;let r=L4(this,f3).measureBox(e)+n;r>=2**32&&(e.largeSize=!0,r=L4(this,f3).measureBox(e)+n),e.size=r,L4(this,f3).writeBox(e)}for(let u of t){u.currentChunk.offset=L4(this,f3).pos,u.currentChunk.moofOffset=o;for(let e of u.currentChunk.samples)L4(this,f3).write(e.data),e.data=null}let c=L4(this,f3).pos;L4(this,f3).seek(L4(this,f3).offsets.get(l));let d=O5(n,t);L4(this,f3).writeBox(d),L4(this,f3).seek(c);for(let u of t)u.finalizedChunks.push(u.currentChunk),L4(this,S3).push(u.currentChunk),u.currentChunk=null;e&&O4(this,K3,q3).call(this)},K3=new WeakSet,q3=function(){L4(this,f3)instanceof p3&&L4(this,f3).flush()},Y3=new WeakSet,X3=function(){if(L4(this,C3))throw new Error("Cannot add new video or audio chunks after the file has been finalized.")};const n6=1080,r6=1920,i6=88;function a6(e,t,n){const r=t.split("\n"),i=[];for(const a of r){if(!a.trim()){i.push("");continue}const t=a.split(" ");let r="";for(const a of t){const t=r?"".concat(r," ").concat(a):a;e.measureText(t).width>n&&r?(i.push(r),r=a):r=t}r&&i.push(r)}return i}function s6(e,t,n){if(e.measureText(t).width<=n)return t;let r=0,i=t.length;for(;r<i-1;){const a=Math.floor((r+i)/2);e.measureText(t.slice(0,a)+"\u2026").width<=n?r=a:i=a}return t.slice(0,r)+"\u2026"}function o6(e,t,n,r){const{authorName:i,authorHandle:a,tweetText:s,verified:o}=t;e.fillStyle="#ffffff",e.fillRect(0,0,n6,r6);let l=120;const c=132,d=l+66;e.save(),e.beginPath(),e.arc(154,d,66,0,2*Math.PI),e.clip(),n?e.drawImage(n,i6,l,c,c):(e.fillStyle="#ff6a00",e.fill(),e.font="700 58px Arial",e.fillStyle="#fff",e.textAlign="center",e.fillText((i||"?")[0].toUpperCase(),154,d+20)),e.restore(
2);const u=252,h="700 38px -apple-system, 'Segoe UI', Arial, sans-serif";e.font=h;const p="X.com",m=740-e.measureText(p).width-52;e.font="700 46px -apple-system, 'Segoe UI', Arial, sans-serif",e.fillStyle="#0f1419",e.textAlign="left";const f=function(e,t,n){if(e.measureText(t).width<=n)return[t];const r=t.split(" ");for(let i=r.length-1;i>=1;i--){const t=r.slice(0,i).join(" ");if(e.measureText(t).width<=n)return[t,r.slice(i).join(" ")]}return[s6(e,t,n)]}(e,i||"Unknown",m);f.forEach(((t,n)=>{e.fillText(t,u,l+50+54*n)}));{const t=e.measureText(f[0]).width,n=u+t+16,r=l+38,i=16;e.fillStyle="#1d9bf0",e.beginPath(),e.arc(n+i,r,i,0,2*Math.PI),e.fill(),e.strokeStyle="#fff",e.lineWidth=4,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(n+6,r),e.lineTo(n+14,r+8),e.lineTo(n+26,r-8),e.stroke()}const g=l+50+54*(f.length-1)+52;e.font="400 38px -apple-system, 'Segoe UI', Arial, sans-serif",e.fillStyle="#536471",e.fillText("@".concat(a||"user"),u,g),e.textAlign="right",e.font=h,e.fillStyle="#000000",e.fillText(p,992,l+50);const v=Math.max(l+c,g+12);l=v+72;const b=!!r?12:20,{size:y,lines:x}=function(e,t,n,r){for(const i of[62,54,46,40,34]){e.font="400 ".concat(i,"px -apple-system, 'Segoe UI', Arial, sans-serif");const a=a6(e,t,n);if(a.length<=r)return{size:i,lines:a}}return e.font="400 34px -apple-system, 'Segoe UI', Arial, sans-serif",{size:34,lines:a6(e,t,n)}}(e,s,904,b),S=1.58*y;e.font="400 ".concat(y,"px -apple-system, 'Segoe UI', Arial, sans-serif"),e.fillStyle="#0f1419",e.textAlign="left";for(const k of x)""===k?l+=.5*S:(e.fillText(k,i6,l),l+=S);if(l+=52,r){const t="VIDEO"===r.tagName,n=t?r.videoWidth:r.naturalWidth,i=t?r.videoHeight:r.naturalHeight;if(n>0&&i>0){const a=n/i;let s=n6,o=s/a;const c=r6-l-80;o>c&&(o=c,s=o*a);const d=(n6-s)/2,u=!t||r.readyState>=2;e.save(),function(e,t,n,r,i,a){e.beginPath(),e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()}(e,d,l,s,o,20),e.clip(),u?e.drawImage(r,d,l,s,o):(e.fillStyle="#e7e9ea",e.fillRect(d,l,s,o)),e.restore()}}}function l6(){const[e,t]=(0,$.useState)(""),[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(""),[s,o]=(0,$.useState)(""),[l,c]=(0,$.useState)(""),[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(!1),[m,f]=(0,$.useState)([]),[g,v]=(0,$.useState)(12),[b,y]=(0,$.useState)(!1),[x,S]=(0,$.useState)(!1),[k,w]=(0,$.useState)(0),[T,C]=(0,$.useState)(0),[E,j]=(0,$.useState)(null),[A,N]=(0,$.useState)(null),[P,R]=(0,$.useState)(""),[L,I]=(0,$.useState)(0),[D,O]=(0,$.useState)(null),[M,_]=(0,$.useState)("mp4"),[F,B]=(0,$.useState)(""),[U,z]=(0,$.useState)(!1),G=(0,$.useRef)(null),W=(0,$.useRef)(null),H=(0,$.useRef)(null),V=(0,$.useRef)(null),K=(0,$.useCallback)((()=>{const e=G.current;if(!e)return;o6(e.getContext("2d"),{authorName:n||"Display Name",authorHandle:i||"handle",tweetText:l||"Paste a tweet URL above to auto-fill the content here.",metrics:d,verified:h},W.current,H.current),V.current=requestAnimationFrame(K)}),[n,i,l,d,h]);(0,$.useEffect)((()=>(V.current=requestAnimationFrame(K),()=>{V.current&&cancelAnimationFrame(V.current)})),[K]),(0,$.useEffect)((()=>{if(!s)return void(W.current=null);const e=new Image;e.crossOrigin="anonymous",e.src="/api/tweet-to-reel/proxy-image?url=".concat(encodeURIComponent(s)),e.onload=()=>{W.current=e},e.onerror=()=>{W.current=null}}),[s]),(0,$.useEffect)((()=>{const e=m[0];if(e){if("photo"===e.type){const t=new Image;t.crossOrigin="anonymous",t.src="/api/tweet-to-reel/proxy-image?url=".concat(encodeURIComponent(e.url)),t.onload=()=>{H.current=t},t.onerror=()=>{H.current=null}}else if("video"===e.type){const t=document.createElement("video");t.crossOrigin="anonymous",t.muted=!0,t.loop=!0,t.playsInline=!0,t.src="/api/tweet-to-reel/proxy-video?url=".concat(encodeURIComponent(e.url)),t.load(),t.play().catch((()=>{})),H.current=t}}else H.current=null}),[m]),(0,$.useEffect)((()=>{if(!E)return;const e=setInterval((async()=>{try{const{data:t}=await ks.get("/tweet-to-reel/job/".concat(E));R(t.status),"number"===typeof t.progress&&I(t.progress),"completed"===t.status?(clearInterval(e),N(E),j(null),S(!1),O(t.reelUrl),_("mp4"),Vo.success("Reel ready!")):"failed"===t.status&&(clearInterval(e),j(null),S(!1),Vo.error("Generation failed: "+(t.error||"unknown error")))}catch(t){}}),3e3);return()=>clearInterval(e)}),[E]),(0,$.useEffect)((()=>
2{if(!x)return void C(0);const e=setInterval((()=>C((e=>e+1))),1e3);return()=>clearInterval(e)}),[x]);const q=async e=>{if(e.trim()){y(!0),B("");try{var t,n,i,s,l,d;const{data:h}=await ks.get("/tweet-to-reel/fetch?url=".concat(encodeURIComponent(e.trim())));r((null===(t=h.author)||void 0===t?void 0:t.name)||""),a((null===(n=h.author)||void 0===n?void 0:n.username)||""),o((null===(i=h.author)||void 0===i?void 0:i.profile_image_url)||""),c((null===(s=h.tweet)||void 0===s?void 0:s.text)||""),u((null===(l=h.tweet)||void 0===l?void 0:l.public_metrics)||null),p((null===(d=h.author)||void 0===d?void 0:d.verified)||!1);const m=h.media||[];f(m);const g=m.find((e=>"video"===e.type));v(null!==g&&void 0!==g&&g.duration?Math.ceil(g.duration):12),O(null)}catch(K6){var h,m;const t=(null===(h=K6.response)||void 0===h||null===(m=h.data)||void 0===m?void 0:m.error)||"Failed to fetch tweet.";B(t),z(!0)}finally{y(!1)}}},Y=async()=>{if(!l.trim())return void Vo.error("Add tweet text first");S(!0),w(0),O(null),j(null),N(null),R(""),I(0);const e=m.some((e=>"video"===e.type)),t=m.find((e=>"video"===e.type));if(e&&t){try{const{data:e}=await ks.post("/tweet-to-reel/generate-job",{authorName:n,authorHandle:i,avatarUrl:s,tweetText:l,videoUrl:t.url,verified:h,videoDuration:g});j(e.jobId),R("queued")}catch(K6){var r;const t=null===(r=K6.response)||void 0===r?void 0:r.data;"out_of_credits"===(null===t||void 0===t?void 0:t.error)?Vo.error("No credits remaining. Buy a credit pack to continue."):Vo.error("Could not start job: "+((null===t||void 0===t?void 0:t.message)||K6.message)),S(!1)}return}try{await ks.post("/tweet-to-reel/use-credit")}catch(K6){var a;const t=null===(a=K6.response)||void 0===a?void 0:a.data;return"out_of_credits"===(null===t||void 0===t?void 0:t.error)?Vo.error("No credits remaining. Buy a credit pack to continue."):Vo.error("Could not use credit: "+((null===t||void 0===t?void 0:t.message)||K6.message)),void S(!1)}const o={authorName:n,authorHandle:i,tweetText:l,metrics:d,verified:h};try{const e=H.current;let t,n;if(e){let r=e;const i=await async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:12;const a=document.createElement("canvas");a.width=n6,a.height=r6;const s=a.getContext("2d"),o=[...a.captureStream(30).getVideoTracks()];let l=null;if(n&&"VIDEO"===n.tagName)try{l=new(window.AudioContext||window.webkitAudioContext);const e=l.createMediaElementSource(n),t=l.createMediaStreamDestination();e.connect(t);const r=t.stream.getAudioTracks()[0];r&&o.push(r)}catch(Ps){console.warn("Audio capture not available:",Ps.message)}const c=MediaRecorder.isTypeSupported("video/mp4;codecs=avc1,mp4a.40.2")?"video/mp4;codecs=avc1,mp4a.40.2":MediaRecorder.isTypeSupported("video/webm;codecs=vp9,opus")?"video/webm;codecs=vp9,opus":"video/webm",d=c.startsWith("video/mp4")?"mp4":"webm",u=new MediaRecorder(new MediaStream(o),{mimeType:c,videoBitsPerSecond:4e6}),h=[];u.ondataavailable=e=>{e.data.size>0&&h.push(e.data)},n&&"VIDEO"===n.tagName&&(n.currentTime=0,n.loop=!1,n.play().catch((()=>{}))),u.start(200);const p=performance.now();return await new Promise((a=>{requestAnimationFrame((function o(){const l=(performance.now()-p)/1e3;r(Math.min(l/i*.95,.95)),o6(s,e,t,n),l<i?requestAnimationFrame(o):a()}))})),u.stop(),n&&"VIDEO"===n.tagName&&n.pause(),l&&l.close(),r(1),new Promise((e=>{u.onstop=()=>e({blob:new Blob(h,{type:c}),ext:d})}))}(o,W.current,r,w,g);t=URL.createObjectURL(i.blob),n=i.ext}else{const e=await async function(e,t,n){const r=new OffscreenCanvas(n6,r6),i=r.getContext("2d"),a=new X5,s=new t6({target:a,video:{codec:"avc",width:n6,height:r6},fastStart:"in-memory",firstTimestampBehavior:"offset"}),o=new VideoEncoder({output:(e,t)=>s.addVideoChunk(e,t),error:e=>{throw e}});o.configure({codec:"avc1.42003d",width:n6,height:r6,bitrate:4e6,hardwareAcceleration:"prefer-hardware"});for(let l=0;l<360;l++){o6(i,e,t,null);const a=Math.round(l/30*1e6),s=Math.round(1e6/30),c=new VideoFrame(r,{timestamp:a,duration:s});for(o.encode(c,{keyFrame:l%60===0}),c.close(),l%30===0&&(n(l/360*.95),await new Promise((e=>setTimeout(e,0))));o.encodeQueueSize>10;)await new Promise((e=>setTimeout(e,1)))}return await o.flush(),o.close(),s.finalize(),n(1),new Blob([a.buffer],{type:"video/mp4"})}(o,W.current,w);t=URL.createObjectURL(e),n="mp4"}O(t),_(n),Vo.success("Reel ready!")}catch(K6){console.error("Generation error:",K6),Vo.error("Failed to generate: "+(K6.message||"Unknown error"))}finally{S(!1)}};return(0,Xo.jsxs)("div",{className:"ttr-page",children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsx)("div",{className:"ttr-leftbar-wrapper",children:(0,Xo.jsx)(iH,{})}),(0,Xo.jsxs)("div",{className:"ttr-header",children:[(0,Xo.jsx)("h1",{className:"ttr-title",children:"X Clipper"}),(0,Xo.jsx)("p",{className:"ttr-subtitle",children:"Turn any X post into a 9:16 reel in seconds"})]}),(0,Xo.jsxs)("div",{className:"ttr-body",children:[(0,Xo.jsxs)("div",{className:"ttr-control
2s",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("p",{className:"ttr-section-label",children:"Paste tweet URL"}),(0,Xo.jsxs)("div",{className:"ttr-url-row",children:[(0,Xo.jsx)("input",{className:"ttr-input",placeholder:"https://x.com/user/status/123...",value:e,onChange:e=>{return n=e.target.value,t(n),B(""),void(/(?:twitter|x)\.com\/\w+\/status(?:es)?\/\d+/.test(n)&&q(n));var n},onPaste:e=>{const n=e.clipboardData.getData("text");/(?:twitter|x)\.com\/\w+\/status(?:es)?\/\d+/.test(n)&&(t(n),q(n),e.preventDefault())},onKeyDown:t=>"Enter"===t.key&&q(e)}),(0,Xo.jsx)("button",{className:"ttr-fetch-btn",onClick:()=>q(e),disabled:b||!e.trim(),children:b?"...":"Fetch"})]}),F&&(0,Xo.jsx)("p",{className:"ttr-error",children:F})]}),(0,Xo.jsx)("button",{className:"ttr-manual-toggle",onClick:()=>z((e=>!e)),children:U?"\u25b2 Hide manual fields":"\u25bc Fill manually instead"}),U&&(0,Xo.jsxs)("div",{className:"ttr-manual",children:[(0,Xo.jsxs)("div",{className:"ttr-row-2",children:[(0,Xo.jsx)("input",{className:"ttr-input",placeholder:"Display name",value:n,onChange:e=>r(e.target.value)}),(0,Xo.jsx)("input",{className:"ttr-input",placeholder:"@handle",value:i,onChange:e=>a(e.target.value.replace(/^@/,""))})]}),(0,Xo.jsx)("textarea",{className:"ttr-input ttr-textarea",placeholder:"Tweet text...",value:l,onChange:e=>c(e.target.value)})]}),!U&&n&&(0,Xo.jsxs)("div",{className:"ttr-author-pill",children:[(0,Xo.jsx)("span",{className:"ttr-author-name",children:n}),(0,Xo.jsxs)("span",{className:"ttr-author-handle",children:["@",i]}),m.length>0&&(0,Xo.jsx)("span",{className:"ttr-media-badge",children:"video"===m[0].type?"\ud83c\udfac video":"\ud83d\uddbc photo"}),(0,Xo.jsxs)("label",{className:"ttr-verified-toggle",title:"Toggle verified badge",children:[(0,Xo.jsx)("input",{type:"checkbox",checked:h,onChange:e=>p(e.target.checked)}),(0,Xo.jsx)("span",{children:"\u2713 verified"})]}),(0,Xo.jsx)("button",{className:"ttr-edit-link",onClick:()=>z(!0),children:"edit"})]}),D?(0,Xo.jsxs)("div",{className:"ttr-done-row",children:[(0,Xo.jsxs)("button",{className:"ttr-download-btn",onClick:async()=>{try{if(A){const e=await ks.get("/tweet-to-reel/download/".concat(A),{responseType:"blob"}),t=URL.createObjectURL(e.data),n=document.createElement("a");n.href=t,n.download="reel.mp4",n.click(),URL.revokeObjectURL(t)}else{const e=document.createElement("a");e.href=D,e.download="reel.".concat(M),e.click()}}catch(e){Vo.error("Download failed \u2014 try again")}},children:["\u2193 Download Reel (.",M,")"]}),(0,Xo.jsx)("button",{className:"ttr-new-btn",onClick:()=>{O(null),t(""),r(""),a(""),o(""),c(""),u(null),p(!1),f([]),v(12),j(null),N(null),R(""),I(0),B(""),z(!1)},children:"New reel"})]}):(0,Xo.jsx)(Xo.Fragment,{children:(()=>{const e=E?L:k,t=Math.round(100*e),n=E?"queued"===P?"Queued on server\u2026":"Converting\u2026 ".concat(t,"%"):"Encoding\u2026 ".concat(t,"%");return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("button",{className:"ttr-generate-btn".concat(x?" ttr-generate-btn--loading":""),onClick:Y,disabled:x||!l.trim(),children:x?(0,Xo.jsxs)("span",{className:"ttr-btn-inner",children:[(0,Xo.jsx)("span",{className:"ttr-spinner"}),(0,Xo.jsx)("span",{className:"ttr-btn-label",children:n})]}):"\u2726 Create Reel \u2014 1 credit"}),x&&(0,Xo.jsx)("div",{className:"ttr-progress",children:(0,Xo.jsx)("div",{className:"ttr-progress-bar",style:{width:"".concat(t,"%"),transition:"width 1s linear"}})}),x&&E&&(0,Xo.jsx)("p",{className:"ttr-encoding-note",children:"\u26a1 Rendering on server \u2014 safe to switch tabs"}),x&&!E&&m.some((e=>"photo"===e.type))&&(0,Xo.jsx)("p",{className:"ttr-encoding-note",children:"Keep this tab open \u2014 encoding in real time."})]})})()})]}),(0,Xo.jsxs)("div",{className:"ttr-preview-wrap",children:[(0,Xo.jsx)("p",{className:"ttr-preview-label",children:"Preview"}),(0,Xo.jsx)("canvas",{ref:G,className:"ttr-canvas",width:1080,height:1920})]})]})]})}const c6=["All","Music","Gaming","Entertainment","Sports","Education","Lifestyle","Technology"],d6=[{value:"featured",label:"Featured"},{value:"newest",label:"Newest"},{value:"budget",label:"Highest Budget"},{value:"cpm",label:"Highest CPM"},{value:"spent",label:"Most Paid Out"},{value:"creators",label:"Most Creators"}],u6={youtube:{label:"YouTube",color:"#ff0000",bg:"#ff0000",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return(0,Xo.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"#ff0000",children:(0,Xo.jsx)("path",{d:"M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1C24 15.9 24
212 24 12s0-3.9-.5-5.8zM9.75 15.5v-7l6.5 3.5-6.5 3.5z"})})}},tiktok:{label:"TikTok",color:"#fff",bg:"#010101",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return(0,Xo.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"#fff",children:(0,Xo.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 0 0-.79-.05 6.34 6.34 0 0 0-6.34 6.34 6.34 6.34 0 0 0 6.34 6.34 6.34 6.34 0 0 0 6.33-6.34V8.69a8.18 8.18 0 0 0 4.78 1.52V6.77a4.85 4.85 0 0 1-1.01-.08z"})})}},instagram:{label:"Instagram",color:"#e1306c",bg:"linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return(0,Xo.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"#e1306c",strokeWidth:"2",children:[(0,Xo.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5"}),(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"4.5"}),(0,Xo.jsx)("circle",{cx:"17.5",cy:"6.5",r:"1.2",fill:"#e1306c",stroke:"none"})]})}},x:{label:"X",color:"#fff",bg:"#000",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:14;return(0,Xo.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"#fff",children:(0,Xo.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.261 5.632zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}},facebook:{label:"Facebook",color:"#1877f2",bg:"#1877f2",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return(0,Xo.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"#1877f2",children:(0,Xo.jsx)("path",{d:"M24 12.07C24 5.41 18.63 0 12 0S0 5.41 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.04V9.41c0-3.02 1.8-4.7 4.54-4.7 1.31 0 2.68.24 2.68.24v2.97h-1.51c-1.49 0-1.95.93-1.95 1.88v2.27h3.32l-.53 3.49h-2.79V24C19.61 23.1 24 18.1 24 12.07z"})})}},rumble:{label:"Rumble",color:"#85c742",bg:"#1c2b0e",icon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return(0,Xo.jsx)("img",{src:"https://rumble.com/apple-touch-icon.png",width:e,height:e,style:{borderRadius:e>14?"4px":"3px",display:"block"},alt:"Rumble"})}}},h6=Object.entries(u6).map((e=>{let[t,n]=e;return{value:t,icon:n.icon(16)}})),p6={Gaming:"https://images.unsplash.com/photo-1542751371-adc38448a05e?w=800&q=80&fit=crop&h=450",IRL:"https://images.unsplash.com/photo-1493612276216-ee3925520721?w=800&q=80&fit=crop&h=450",Sports:"https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=800&q=80&fit=crop&h=450",Music:"https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=800&q=80&fit=crop&h=450",Esports:"https://images.unsplash.com/photo-1560253023-3ec5d502959f?w=800&q=80&fit=crop&h=450",Creative:"https://images.unsplash.com/photo-1561070791-2526d30994b5?w=800&q=80&fit=crop&h=450","Just Chatting":"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=800&q=80&fit=crop&h=450",Variety:"https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=800&q=80&fit=crop&h=450",Tech:"https://images.unsplash.com/photo-1518770660439-4636190af475?w=800&q=80&fit=crop&h=450",Media:"https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=800&q=80&fit=crop&h=450","AI/ML":"https://images.unsplash.com/photo-1677442135703-1787eea5ce01?w=800&q=80&fit=crop&h=450",Finance:"https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=800&q=80&fit=crop&h=450",Startup:"https://images.unsplash.com/photo-1559136555-9303baea8ebd?w=800&q=80&fit=crop&h=450",Design:"https://images.unsplash.com/photo-1561070791-2526d30994b5?w=800&q=80&fit=crop&h=450",Developer:"https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=800&q=80&fit=crop&h=450",Productivity:"https://images.unsplash.com/photo-1484480974693-6ca0a78fb36b?w=800&q=80&fit=crop&h=450"};function m6(e){let{type:t,size:n=14}=e;
2return t&&"none"!==t?"gold"===t?(0,Xo.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",style:{flexShrink:0,display:"inline-block"},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"#f59e0b"}),(0,Xo.jsx)("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"#fff",strokeWidth:"2.2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,Xo.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",style:{flexShrink:0,display:"inline-block"},children:[(0,Xo.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"#3b82f6"}),(0,Xo.jsx)("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"#fff",strokeWidth:"2.2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})]}):null}function f6(e){const t=(Date.now()-new Date(e))/1e3;return t<3600?"".concat(Math.floor(t/60),"m"):t<86400?"".concat(Math.floor(t/3600),"h"):"".concat(Math.floor(t/86400),"d")}function g6(e){var t,n,r;let{campaign:i,appliedIds:a,onApply:s,onManage:o,isOwner:l,onViewDetail:c}=e;const d=a.has(i._id),u=(i.category,i.bannerImage||p6[i.category]||p6.Variety),h=i.totalBudget>0?Math.min((i.totalBudget-(i.spentBudget||0))/i.totalBudget*100,100):100;return(0,Xo.jsxs)("div",{className:"cp-card",onClick:()=>c(i),children:[(0,Xo.jsxs)("div",{className:"cp-card-img-wrap",style:{backgroundImage:"url(".concat(u,")")},children:[(0,Xo.jsx)("div",{className:"cp-card-img-gradient"}),(0,Xo.jsx)("div",{className:"cp-card-img-overlay-text",children:(0,Xo.jsx)("div",{className:"cp-card-img-title",children:i.title})})]}),(0,Xo.jsxs)("div",{className:"cp-card-body",children:[(0,Xo.jsx)("div",{className:"cp-card-meta",children:(0,Xo.jsxs)("div",{className:"cp-card-brand",children:[i.brandLogo?(0,Xo.jsx)("img",{src:i.brandLogo,alt:i.brandName,className:"cp-card-brand-logo",onError:e=>{e.target.style.display="none",e.target.nextSibling.style.display="flex"}}):null,(0,Xo.jsx)("div",{className:"cp-card-brand-initial",style:i.brandLogo?{display:"none"}:{},children:null===(t=i.brandName)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.toUpperCase()}),(0,Xo.jsxs)("div",{className:"cp-card-brand-info",children:[(0,Xo.jsxs)("div",{className:"cp-card-brand-name-row",children:[(0,Xo.jsx)("span",{className:"cp-card-brand-name",children:i.brandName}),(0,Xo.jsx)(m6,{type:i.brandVerified,size:13})]}),i.brandUsername&&(0,Xo.jsx)("span",{className:"cp-card-brand-username",children:i.brandUsername})]}),(0,Xo.jsx)("span",{className:"cp-card-dot",children:"\xb7"}),(0,Xo.jsx)("span",{className:"cp-card-time",children:f6(i.createdAt)})]})}),(0,Xo.jsx)("p",{className:"cp-card-desc",children:i.description}),l?(0,Xo.jsxs)("button",{className:"cp-card-join-btn manage",onClick:e=>{e.stopPropagation(),o(i)},children:["Manage \xb7 ",i.applicationCount," applied"]}):(0,Xo.jsx)("button",{className:"cp-card-join-btn".concat(d?" applied":""),onClick:e=>{e.stopPropagation(),c(i)},disabled:d,children:d?"\u2713 Applied":"Join Campaign"}),(null===(r=i.platforms)||void 0===r?void 0:r.length)>0&&(0,Xo.jsx)("div",{className:"cp-card-platforms",children:i.platforms.map((e=>{var t,n;return(0,Xo.jsx)("span",{className:"cp-card-platform-icon",title:(null===(t=u6[e])||void 0===t?void 0:t.label)||e,children:(null===(n=u6[e])||void 0===n?void 0:n.icon(12))||null},e)}))}),(0,Xo.jsxs)("div",{className:"cp-card-footer",children:[(0,Xo.jsxs)("span",{className:"cp-budget-text",children:["$",(i.spentBudget||0).toLocaleString(),"/$",i.totalBudget.toLocaleString()]}),(0,Xo.jsxs)("div",{className:"cp-card-footer-right",children:[i.applicationCount>0&&(0,Xo.jsxs)("span",{className:"cp-card-applicants",children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Xo.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,Xo.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,Xo.jsx)("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"})]}),i.applicationCount]}),(0,Xo.jsxs)("span",{className:"cp-card-rate",children:["$",i.payoutPer1K,"/1K"]})]})]})]}),(0,Xo.jsx)("div",{className:"cp-card-progress-bar",children:(0,Xo.jsx)("div",{className:"cp-card-progress-fill",style:{width:"".concat(h,"%")}})})]})}function v6(e){let{onClose:t,onCreated:n}=e;const[r,i]=(0,$.useState)({brandName:"",title:"",description:"",category:"Entertainment",payoutPer1K:"",totalBudget:"",requirements:"",campaignBrief:"",status:"active"}),[a,s]=(0,$.useState)(null),[l,c]=(0,$.useState)(null),[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(null),[m,f]=(0,$.useState)(!1),g=(0,$.useRef)(),v=(0,$.useRef)(),b=(e,t)=>i((n=>o(o({},n),{},{[e]:t})));return(0,Xo.jsx)("div",{className:"cp-modal-overlay",onClick:t,children:(0,Xo.jsxs)("div",{className:"cp-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"cp-modal-header",children:[(0,Xo.jsx)("h2",{children:"Create Campaign"}),(0,Xo.jsx)("button",{className:"cp-modal-close",onClick:t,children:(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Xo.jsxs)("form",{className:"cp-modal-form",onSubmit:async e=>{if(e.preventDefault(),r.brandName&&r.title&&r.description&&r.payoutPer1K&&r.totalBudget){f(!0);try{const e=new FormData;Object.entries(r).forEach((t=>{let[n,r]=t;return e.append(n,r)})),a&&e.append("brandLogo",a),l&&e.append("bannerImage",l);const i=await ks.post("/campaigns",e,{headers:{"Content-Type":"multipart/form-data"}});Vo.success("Campaign created!"),n(i.data),t()}catch(K6){var i,s;Vo.error((null===(i=K6.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.error)||"Failed to create campaign")}finally{f(!1)}}else Vo.error("Please fill in all required fields")},children:[(0,Xo.jsxs)("div",{className:"cp-form-banner-upload",onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.click()},style:d?{backgroundImage:"url(".concat(d,")")}:{},children:[!d&&(0,Xo.jsxs)("div",{className:"cp-form-banner-placeholder",children:[(0,Xo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xo.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Xo.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,Xo.jsx)("polyline",{points:"21 15 16 10 5 21"})]}),(0,Xo.jsx)("span",{children:"Upload banner image"})]}),(0,Xo.jsx)("input",{ref:g,type:"file",accept:"image/*",onChange:e=>{const t=e.target.files[0];t&&(c(t),u(URL.createObjectURL(t)))},style:{display:"none"}})]}),(0,Xo.jsxs)("div",{className:"cp-form-row",children:[(0,Xo.jsxs)("div",{className:"cp-form-logo-upload",onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.click()},children:[h?(0,Xo.jsx)("img",{src:h,alt:"logo",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:8}}):(0,Xo.jsx)("span",{style:{fontSize:22},children:"+"}),(0,Xo.jsx)("input",{ref:v,type:"file",accept:"image/*",onChange:e=>{const t=e.target.files[0];t&&(s(t),p(URL.createObjectURL(t)))},style:{display:"none"}})]}),(0,Xo.jsxs)("div",{className:"cp-form-col",children:[(0,Xo.jsx)("input",{className:"cp-form-input",placeholder:"Brand name *",value:r.brandName,onChange:e=>b("brandName",e.target.value)}),(0,Xo.jsx)("select",{className:"cp-form-input",value:r.category,onChange:e=>b("category",e.target.value),children:c6.filter((e=>"All"!==e)).map((e=>(0,Xo.jsx)("option",{value:e,children:e},e)))})]})]}),(0,Xo.jsx)("input",{className:"cp-form-input",placeholder:"Campaign title *",value:r.title,onChange:e=>b("title",e.target.value)}),(0,Xo.jsx)("textarea",{className:"cp-form-input cp-form-textarea",placeholder:"Description *",value:r.description,onChange:e=>b("description",e.target.value),rows:3}),(0,Xo.jsx)("textarea",{className:"cp-form-input cp-form-textarea",placeholder:"Requirements (what you're looking for in a clip)",value:r.requirements,onChange:e=>b("requirements",e.target.value),rows:2}),(0,Xo.jsx)("textarea",{className:"cp-form-input cp-form-textarea",placeholder:"Full campaign brief / guide -- paste your whole doc here. Public, shown to clippers, and what the review bot checks submissions against.",value:r.campaignBrief,onChange:e=>b("campaignBrief",e.target.value),rows:6}),(0,Xo.jsxs)("div",{className:"cp-form-row",children:[(0,Xo.jsxs)("div",{className:"cp-form-field",children:[(0,Xo.jsx)("label",{className:"cp-form-label",children:"Payout per 1K views ($) *"}),(0,Xo.jsx)("input",{className:"cp-form-input",type:"number",min:"0.01",step:"0.01",placeholder:"e.g. 3.00",value:r.payoutPer1K,onChange:e=>b("payoutPer1K",e.target.value)})]}),(0,Xo.jsxs)("div",{className:"cp-form-field",children:[(0,Xo.jsx)("label",{className:"cp-form-label",children:"Total budget ($) *"}),(0,Xo.jsx)("input",{className:"cp-form-input",type:"number",min:"1",placeholder:"e.g. 1000",value:r.totalBudget,onChange:e=>b("totalBudget",e.target.value)})]})]}),(0,Xo.jsxs)("select",{className:"cp-form-input",value:r.status,onChange:e=>b("status",e.target.value),children:[(0,Xo.jsx)("option",{value:"active",children:"Active (visible now)"}),(0,Xo.jsx)("option",{value:"draft",children:"Draft (hidden)"})]}),(0,Xo.jsx)("button",{className:"cp-form-submit",type:"submit",disabled:m,children:m?"Creating...":"Create Campaign"})]})]})})}Object.fromEntries(Object.entries(u6).map((e=>{let[t,n]=e;return[t,n.icon(20)]})));const b6=Object.fromEntries(Object.entries(u6).map((e=>{let[t,n]=e;return[t,n.label]}))),y6=["instagram","tiktok","youtube"],x6={pending:"Reviewing\u2026",approved:"Approved",flagged:"In review",rejected:"Rejected"};function S6(e){var t,n,r,i,a,s,o;let{campaign:l,applied:c,application:d,onClose:u,onApplied:h}=e;const[p,m]=(0,$.useState)(c),[f,g]=(0,$.useState)(!1),v=l.bannerImage,b
2="approved"===(null===d||void 0===d?void 0:d.status),[y,x]=(0,$.useState)([]),[S,k]=(0,$.useState)(!1),[w,T]=(0,$.useState)(""),C=(l.platforms||[]).filter((e=>y6.includes(e))),[E,j]=(0,$.useState)(C[0]||y6[0]),[A,N]=(0,$.useState)(!1);(0,$.useEffect)((()=>{b&&(k(!0),ks.get("/clip-submissions/mine").then((e=>{const t=(e.data.submissions||[]).filter((e=>{var t;return((null===(t=e.campaign)||void 0===t?void 0:t._id)||e.campaign)===l._id}));x(t)})).catch((()=>{})).finally((()=>k(!1))))}),[b,l._id]);const P=Math.max(0,l.totalBudget-(l.spentBudget||0)),R=l.totalBudget>0?Math.min((l.totalBudget-(l.spentBudget||0))/l.totalBudget*100,100):100,L=l.requirements?l.requirements.split(/\.\s+|\n/).map((e=>e.trim().replace(/\.$/,""))).filter(Boolean):[],I=1===(null===(t=l.platforms)||void 0===t?void 0:t.length)?(b6[l.platforms[0]]||l.platforms[0])+" only":null===(n=l.platforms)||void 0===n?void 0:n.map((e=>b6[e]||e)).join(", ");return(0,Xo.jsx)("div",{className:"cp-modal-overlay",onClick:u,children:(0,Xo.jsxs)("div",{className:"cp-detail-modal",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"cp-detail-hero",style:v?{backgroundImage:"url(".concat(v,")")}:{},children:[!v&&(0,Xo.jsx)("div",{className:"cp-detail-hero-icon",children:l.brandLogo?(0,Xo.jsx)("img",{src:l.brandLogo,alt:l.brandName}):(0,Xo.jsx)("span",{children:null===(r=l.brandName)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.toUpperCase()})}),v&&(0,Xo.jsx)("div",{className:"cp-detail-hero-fade"}),(0,Xo.jsx)("button",{className:"cp-detail-close",onClick:u,children:(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Xo.jsxs)("div",{className:"cp-detail-body",children:[(0,Xo.jsxs)("div",{className:"cp-detail-brand-row",children:[l.brandLogo?(0,Xo.jsx)("img",{src:l.brandLogo,alt:"",className:"cp-detail-brand-logo",onError:e=>e.target.style.display="none"}):(0,Xo.jsx)("div",{className:"cp-detail-brand-initial",children:null===(a=l.brandName)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.toUpperCase()}),(0,Xo.jsx)("span",{className:"cp-detail-brand-name",children:l.brandName}),(0,Xo.jsx)(m6,{type:l.brandVerified,size:14}),I&&(0,Xo.jsxs)("span",{className:"cp-detail-platform-label",children:["\xb7 ",I]})]}),(0,Xo.jsx)("h2",{className:"cp-detail-title",children:l.title}),(0,Xo.jsxs)("div",{className:"cp-detail-budget-row",children:[(0,Xo.jsxs)("span",{className:"cp-detail-spent",children:["$",(l.spentBudget||0).toLocaleString()]}),(0,Xo.jsxs)("span",{className:"cp-detail-total",children:["/$",l.totalBudget.toLocaleString()]}),(0,Xo.jsx)("div",{className:"cp-detail-progress",children:(0,Xo.jsx)("div",{className:"cp-detail-progress-fill",style:{width:"".concat(R,"%")}})}),(0,Xo.jsx)("span",{className:"cp-detail-cat-tag",children:l.category}),(0,Xo.jsxs)("span",{className:"cp-detail-rate-tag",children:["$",l.payoutPer1K,"/1K"]})]}),(0,Xo.jsx)("p",{className:"cp-detail-desc",children:l.description}),(0,Xo.jsxs)("div",{className:"cp-detail-apply-row",children:[(0,Xo.jsx)("button",{className:"cp-detail-apply-btn".concat(p?" applied":""),onClick:()=>!p&&(async()=>{g(!0);try{await ks.post("/campaigns/".concat(l._id,"/apply"),{}),Vo.success("Application submitted!"),m(!0),h(l._id)}catch(K6){var e,t,n;409===(null===(e=K6.response)||void 0===e?void 0:e.status)?(m(!0),h(l._id)):Vo.error((null===(t=K6.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)||"Failed to apply")}finally{g(!1)}})(),disabled:p||f,children:p?"\u2713 Applied":f?"Submitting\u2026":"Apply"}),P>0&&(0,Xo.jsxs)("span",{className:"cp-detail-remaining",children:["$",P.toLocaleString()," left"]})]}),b&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"cp-detail-divider"}),(0,Xo.jsxs)("div",{className:"cp-detail-section",children:[(0,Xo.jsx)("div",{className:"cp-detail-section-label",children:"Submit a clip"}),(0,Xo.jsxs)("div",{className:"cp-detail-submit-row",children:[(0,Xo.jsx)("select",{className:"cp-detail-submit-platform",value:E,onChange:e=>j(e.target.value),children:(C.length?C:y6).map((e=>(0,Xo.jsx)("option",{value:e,children:b6[e]||e},e)))}),(0,Xo.jsx)("input",{className:"cp-detail-submit-input",placeholder:"Paste your posted clip's link",value:w,onChange:e=>T(e.target.value)}),(0,Xo.jsx)("button",{className:"cp-detail-submit-btn",onClick:async()=>
2{if(!w.trim())return Vo.error("Paste your posted clip's link first");N(!0);try{const e=await ks.post("/clip-submissions",{campaignId:l._id,platform:E,url:w.trim()});x((t=>[e.data.submission,...t])),T(""),Vo.success("Clip submitted \u2014 reviewing now")}catch(K6){var e,t;Vo.error((null===(e=K6.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.error)||"Failed to submit clip")}finally{N(!1)}},disabled:A,children:A?"Submitting\u2026":"Submit"})]}),!S&&y.length>0&&(0,Xo.jsx)("div",{className:"cp-detail-submissions-list",children:y.map((e=>(0,Xo.jsxs)("div",{className:"cp-detail-submission-row",children:[(0,Xo.jsx)("span",{className:"cp-detail-submission-platform",children:b6[e.platform]||e.platform}),(0,Xo.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"cp-detail-submission-url",children:e.url}),(0,Xo.jsx)("span",{className:"cp-detail-submission-status ".concat(e.status),children:x6[e.status]||e.status})]},e._id)))})]})]}),L.length>0&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"cp-detail-divider"}),(0,Xo.jsxs)("div",{className:"cp-detail-section",children:[(0,Xo.jsx)("div",{className:"cp-detail-section-label",children:"Requirements"}),L.map(((e,t)=>(0,Xo.jsx)("div",{className:"cp-detail-req-line",children:e},t)))]})]}),l.campaignBrief&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"cp-detail-divider"}),(0,Xo.jsx)("div",{className:"cp-detail-section",children:(0,Xo.jsxs)("details",{className:"cp-detail-full-brief",children:[(0,Xo.jsx)("summary",{className:"cp-detail-section-label",children:"Full campaign brief"}),(0,Xo.jsx)("pre",{className:"cp-detail-brief-text",children:l.campaignBrief})]})})]}),(null===(o=l.platforms)||void 0===o?void 0:o.length)>0&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{className:"cp-detail-divider"}),(0,Xo.jsxs)("div",{className:"cp-detail-section",children:[(0,Xo.jsx)("div",{className:"cp-detail-section-label",children:"Earnings"}),(0,Xo.jsxs)("div",{className:"cp-detail-earn-bar",children:[(0,Xo.jsx)("div",{className:"cp-detail-earn-logos",children:l.platforms.map((e=>{var t,n,r;return(0,Xo.jsx)("div",{className:"cp-detail-earn-logo",style:{background:(null===(t=u6[e])||void 0===t?void 0:t.bg)||"#1a1a1a"},title:(null===(n=u6[e])||void 0===n?void 0:n.label)||e,children:(null===(r=u6[e])||void 0===r?void 0:r.icon(18))||null},e)}))}),(0,Xo.jsxs)("div",{className:"cp-detail-earn-mid",children:[(0,Xo.jsxs)("div",{className:"cp-detail-earn-rate",children:["$",l.payoutPer1K,"/1K views"]}),(0,Xo.jsxs)("div",{className:"cp-detail-earn-min",children:["$",l.payoutPer1K," Min payout"]})]}),(0,Xo.jsxs)("div",{className:"cp-detail-earn-budget",children:[(0,Xo.jsx)("div",{className:"cp-detail-earn-budget-label",children:"Budget left"}),(0,Xo.jsxs)("div",{className:"cp-detail-earn-budget-val",children:["$",P.toLocaleString()]})]})]})]})]})]})]})})}function k6(e){let{campaign:t,onClose:n}=e;const[r,i]=(0,$.useState)([]),[a,s]=(0,$.useState)(!0),[l,c]=(0,$.useState)(null),[d,u]=(0,$.useState)([]),[h,p]=(0,$.useState)(!0);(0,$.useEffect)((()=>{ks.get("/campaigns/".concat(t._id,"/applications")).then((e=>i(e.data.applications||[]))).catch((()=>Vo.error("Failed to load applications"))).finally((()=>s(!1))),ks.get("/clip-submissions/campaign/".concat(t._id)).then((e=>u(e.data.submissions||[]))).catch((()=>{})).finally((()=>p(!1)))}),[t._id]);const m=async(e,n)=>{c(e);try{await ks.post("/campaigns/".concat(t._id,"/applications/").concat(e,"/status"),{status:n}),i((t=>t.map((t=>t._id===e?o(o({},t),{},{status:n}):t))))}catch(K6){var r,a;Vo.error((null===(r=K6.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.error)||"Failed to update application")}finally{c(null)}};return(0,Xo.jsx)("div",{className:"cp-modal-overlay",onClick:n,children:(0,Xo.jsxs)("div",{className:"cp-modal cp-modal--manage",onClick:e=>e.stopPropagation(),children:[(0,Xo.jsxs)("div",{className:"cp-modal-header",children:[(0,Xo.jsxs)("div",{children:[(0,Xo.jsx)("h2",{children:t.title}),(0,Xo.jsx)("span",{className:"cp-manage-brand",children:t.brandName})]}),(0,Xo.jsx)("button",{className:"cp-modal-close",onClick:n,children:(0,Xo.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,Xo.jsxs)("div",{className:"cp-manage-stats",children:[(0,Xo.jsxs)("div",{className:"cp-manage-stat",children:[(0,Xo.jsx)("span",{className:"cp-manage-stat-val",children:t.applicationCount}),(0,Xo.jsx)("span",{className:"cp-manage-stat-label",children:"Applications"})]}),(0,Xo.jsxs)("div",{className:"cp-manage-stat",children:[(0,Xo.jsxs)("span",{className:"cp-manage-stat-val",children:["$",t.payoutPer1K,"/1K"]}),(0,Xo.jsx)("span",{className:"cp-manage-stat-label",children:"Payout rate"})]}),(0,Xo.jsxs)("div",{className:"cp-manage-stat",children:[(0,Xo.jsxs)("span",{className:"cp-manage-stat-val",children:["$",t.totalBudget.toLocaleStr
2ing()]}),(0,Xo.jsx)("span",{className:"cp-manage-stat-label",children:"Total budget"})]})]}),(0,Xo.jsx)("div",{className:"cp-manage-apps-title",children:"Applicants"}),a?(0,Xo.jsx)("div",{className:"cp-manage-loading",children:"Loading..."}):0===r.length?(0,Xo.jsx)("div",{className:"cp-manage-empty",children:"No applications yet. Share your campaign!"}):(0,Xo.jsx)("div",{className:"cp-manage-apps-list",children:r.map((e=>{var t,n,r,i,a;return(0,Xo.jsxs)("div",{className:"cp-manage-app-row",children:[(0,Xo.jsxs)("div",{className:"cp-manage-app-user",children:[null!==(t=e.user)&&void 0!==t&&t.profilePicture?(0,Xo.jsx)("img",{src:e.user.profilePicture,alt:"",className:"cp-manage-app-avatar"}):(0,Xo.jsx)("div",{className:"cp-manage-app-avatar-fallback",children:null===(n=e.user)||void 0===n||null===(r=n.username)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.toUpperCase()}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"cp-manage-app-username",children:["@",null===(a=e.user)||void 0===a?void 0:a.username]}
2),e.message&&(0,Xo.jsxs)("div",{className:"cp-manage-app-msg",children:['"',e.message,'"']})]})]}),"pending"===e.status?(0,Xo.jsxs)("div",{className:"cp-manage-app-actions",children:[(0,Xo.jsx)("button",{className:"cp-manage-app-btn approve",disabled:l===e._id,onClick:()=>m(e._id,"approved"),children:"Approve"}),(0,Xo.jsx)("button",{className:"cp-manage-app-btn reject",disabled:l===e._id,onClick:()=>m(e._id,"rejected"),children:"Reject"})]}):(0,Xo.jsx)("span",{className:"cp-manage-app-status ".concat(e.status),children:e.status})]},e._id)}))}),(0,Xo.jsx)("div",{className:"cp-manage-apps-title",children:"Submitted clips"}),h?(0,Xo.jsx)("div",{className:"cp-manage-loading",children:"Loading..."}):0===d.length?(0,Xo.jsx)("div",{className:"cp-manage-empty",children:"No clips submitted yet."}):(0,Xo.jsx)("div",{className:"cp-manage-subs-list",children:d.map((e=>{var t,n,r,i,a,s,o;return(0,Xo.jsxs)("div",{className:"cp-manage-sub-row",children:[(0,Xo.jsxs)("div",{className:"cp-manage-sub-top",children:[(0,Xo.jsxs)("span",{className:"cp-manage-sub-user",children:["@",null===(t=e.user)||void 0===t?void 0:t.username]}),(0,Xo.jsx)("span",{className:"cp-manage-sub-platform",children:b6[e.platform]||e.platform}),(0,Xo.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"cp-manage-sub-url",children:e.url}),(0,Xo.jsx)("span",{className:"cp-manage-app-status ".concat(e.status),children:e.status})]}),((null===(n=e.compliance)||void 0===n?void 0:n.notes)||(null===(r=e.fraudSignal)||void 0===r||null===(i=r.reasons)||void 0===i?void 0:i.length)>0||e.reviewError)&&(0,Xo.jsxs)("div",{className:"cp-manage-sub-notes",children:[(null===(a=e.compliance)||void 0===a?void 0:a.notes)&&(0,Xo.jsxs)("div",{children:["Compliance: ",e.compliance.notes]}),(null===(s=e.fraudSignal)||void 0===s||null===(o=s.reasons)||void 0===o?void 0:o.length)>0&&(0,Xo.jsxs)("div",{children:["Fraud signal (",e.fraudSignal.score,"/100): ",e.fraudSignal.reasons.join("; ")]}),e.reviewError&&(0,Xo.jsxs)("div",{children:["Review error: ",e.reviewError]})]})]},e._id)}))})]})})}function w6(e){var t,n;let{campaigns:r,appliedIds:i,onApply:a,myIds:s,onManage:o}=e;const[l,c]=(0,$.useState)(0),d=r.slice(0,4);if(!d.length)return null;const u=d[l],h=(u.category,u.bannerImage||p6[u.category]||p6.Variety),p=i.has(u._id),m=s.has(u._id);return(0,Xo.jsxs)("div",{className:"cp-hero",style:{backgroundImage:"url(".concat(h,")")},children:[(0,Xo.jsx)("div",{className:"cp-hero-overlay"}),(0,Xo.jsxs)("div",{className:"cp-hero-content",children:[(0,Xo.jsxs)("div",{className:"cp-hero-brand",children:[(0,Xo.jsxs)("div",{className:"cp-hero-logo",children:[u.brandLogo?(0,Xo.jsx)("img",{src:u.brandLogo,alt:u.brandName,onError:e=>{e.target.style.display="none",e.target.parentElement.querySelector(".cp-hero-logo-fallback").style.display="flex"}}):null,(0,Xo.jsx)("span",{className:"cp-hero-logo-fallback",style:u.brandLogo?{display:"none"}:{},children:null===(t=u.brandName)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.toUpperCase()})]}),(0,Xo.jsxs)("div",{children:[(0,Xo.jsxs)("div",{className:"cp-hero-brand-name-row",children:[(0,Xo.jsx)("span",{className:"cp-hero-brand-name",children:u.brandName}),(0,Xo.jsx)(m6,{type:u.brandVerified,size:15})]}),u.brandUsername&&(0,Xo.jsx)("div",{className:"cp-hero-brand-username",children:u.brandUsername})]})]}),(0,Xo.jsx)("h2",{className:"cp-hero-title",children:u.title}),(0,Xo.jsxs)("div",{className:"cp-hero-payout",children:[(0,Xo.jsxs)("span",{className:"cp-hero-payout-num",children:["$",u.payoutPer1K]}),(0,Xo.jsx)("span",{className:"cp-hero-payout-label",children:" per 1,000 views"})]}),m?(0,Xo.jsx)("button",{className:"cp-hero-apply-btn manage",onClick:()=>o(u),children:"Manage Campaign"}):(0,Xo.jsx)("button",{className:"cp-hero-apply-btn".concat(p?" applied":""),onClick:()=>!p&&a(u),disabled:p,children:p?"\u2713 Applied":"Apply Now"})]}),d.length>1&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("button",{className:"cp-hero-arrow cp-hero-arrow--left",onClick:()=>c((e=>(e-1+d.length)%d.length)),children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,Xo.jsx)("button",{className:"cp-hero-arrow cp-hero-arrow--right",onClick:()=>c((e=>(e+1)%d.length)),children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("polyline",{points:"9 18 15 12 9 6"})})}),(0,Xo.jsx)("div",{className:"cp-hero-dots",children:d.map(((e,t)=>(0,Xo.jsx)("button",{className:"cp-hero-dot".concat(t===l?" active":""),onClick:()=>c(t)},t)))})]})]})}function T6(){var e;const{user:t}=(0,$.useContext)(Qo),[n,r]=(0,$.useState)([]),[i,a]=(0,$.useState)(!0),[s,o]=(0,$.useState)("All"),[l,c]=(0,$.useState)("featured"),[d,u]=(0,$.useState)(null),[h,p]=(0,$.useState)(""),[m,f]=(0,$.useState)(new Set),[g,v]=(0,$.useState)(new Map),[b,y]=(0,$.useState)(!1),[x,S]=(0,$.useState)(null),[k,w]=(0,$.useState)(null),[T,C]=(0,$.useState)(new Set),[E,j]=(0,$.useState)(!1),[A,N]=(0,$.useState)(!1),P=(0,$.useRef)(null),R=(0,$.useRef)(null),L=(0,$.useRef)(null);(0,$.useEffect)((()=>{function e(e){R.current&&!R.current.contains(e.target)&&j(!1),L.current&&!L.current.contains(e.target)&&N(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const I=async(e,t,n,i)=>{a(!0);try{const a={};e&&"All"!==e&&(a.category=e),t&&(a.search=t),n&&"featured"!==n&&(a.sort=n),i&&(a.platform=i);const s=await ks.get("/campaigns",{params:a});r(s.data.campaigns||[])}catch(s){Vo.error("Failed to load campaigns")}finally{a(!1)}};(0,$.useEffect)((()=>{t&&(ks.get("/campaigns/applied").then((e=>{const t=e.data.applications||[],n=new Set(t.map((e=>{var t;return(null===(t=e.campaign)||void 0===t?void 0:t._id)||e.campaign})));f(n),v(new Map(t.map((e=>{var t;return[(null===(t=e.campaign)||void 0===t?void 0:t._id)||e.campaign,e]}))))})).catch((()=>{})),ks.get("/campaigns/mine").then((e=>{const t=new Set((e.data.campaigns||[]).map((e=>e._id)));C(t)})).catch((()=>{})))}),[t]),(0,$.useEffect)((()=>{I(s,h,l,d)}),[s,l,d]);const D=e=>{S(e)},O="All"!==s||"featured"!==l||null!==d;return(0,Xo.jsxs)("div",{className:"cp-layout",children:[(0,Xo.jsx)(gT,{}),(0,Xo.jsxs)("div",{className:"cp-main",children:[(0,Xo.jsx)(iH,{}),(0,Xo.jsxs)("div",{className:"cp-content",children:[!i&&n.length>0&&(0,Xo.jsx)(w6,{campaigns:n,appliedIds:m,onApply:D,myIds:T,onManage:w}),(0,Xo.jsxs)("div",{className:"cp-search-wrap",children:[(0,Xo.jsxs)("svg",{className:"cp-search-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,Xo.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Xo.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Xo.jsx)("input",{className:"cp-search-input",placeholder:"Campaigns and creators",value:h,onChange:e=>{const t=e.target.value;p(t),clearTimeout(P.current),P.current=setTimeout((()=>I(s,t,l,d)),400)}}),t&&(0,Xo.jsxs)("button",{className:"cp-search-create-btn",onClick:()=>y(!0),children:[(0,Xo.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,Xo.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Create"]})]}),(0,Xo.jsxs)("div",{className:"cp-filter-bar",children:[(0,Xo.jsxs)("div",{className:"cp-dropdown-wrap",ref:R,children:[(0,Xo.jsxs)("button",{className:"cp-dropdown-btn".concat("All"!==s?" active":""),onClick:()=>{j((e=>!e)),N(!1)},children:["All"===s?"Category":s,(0,Xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{marginLeft:4},children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),E&&(0,Xo.jsx)("div",{className:"cp-dropdown-menu",children:c6.map((e=>(0,Xo.jsxs)("button",{className:"cp-dropdown-item".concat(s===e?" active":""),onClick:()=>{o(e),j(!1)},children:["All"===e?"All Categories":e,s===e&&(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e)))})]}),(0,Xo.jsxs)("div",{className:"cp-dropdown-wrap",ref:L,children:[(0,Xo.jsxs)("button",{className:"cp-dropdown-btn".concat("featured"!==l?" active":""),onClick:()=>{N((e=>!e)),j(!1)},children:[(null===(e=d6.find((e=>e.value===l)))||void 0===e?void 0:e.label)||"Sort",(0,Xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{marginLeft:4},children:(0,Xo.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),A&&(0,Xo.jsxs)("div",{className:"cp-dropdown-menu",children:[(0,Xo.jsx)("div",{className:"cp-dropdown-label",children:"Sort by"}),d6.map((e=>(0,Xo.jsxs)("button",{className:"cp-dropdown-item".concat(l===e.value?" active":""),onClick:()=>{c(e.value),N(!1)},children:[e.label,l===e.value&&(0,Xo.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.value)))]})]}),h6.map((e=>(0,Xo.jsx)("button",{className:"cp-platform-btn".concat(d===e.value?" active":""),onClick:()=>u((t=>t===e.value?null:e.value)),title:e.value,children:e.icon},e.value))),O&&(0,Xo.jsxs)("button",{className:"cp-filter-clear",onClick:()=>{o("All"),c("featured"),u(null)},children:[(0,Xo.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,Xo.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,Xo.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Clear"]})]}),i?(0,Xo.jsx)("div",{className:"cp-loading",children:[...Array(8)].map(((e,t)=>(0,Xo.jsx)("div",{className:"cp-card-skeleton"},t)))}):0===n.length?(0,Xo.jsxs)("div",{className:"cp-empty",children:[(0,Xo.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255,255,255,0.2)",strokeWidth:"1.5",children:[(0,Xo.jsx)("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2"}),(0,Xo.jsx)("path",{d:"M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2"})]}),(0,Xo.jsx)("p",{children:"No campaigns found"}),t&&(0,Xo.jsx)("button",{className:"cp-create-btn",onClick:()=>y(!0),children:"Create the first one"})]}):(0,Xo.jsx)("div",{className:"cp-grid",children:n.map((e=>
2(0,Xo.jsx)(g6,{campaign:e,appliedIds:m,onApply:D,onManage:w,isOwner:T.has(e._id),onViewDetail:D},e._id)))})]})]}),b&&(0,Xo.jsx)(v6,{onClose:()=>y(!1),onCreated:e=>{r((t=>[e,...t])),C((t=>new Set([...t,e._id])))}}),x&&(0,Xo.jsx)(S6,{campaign:x,applied:m.has(x._id),application:g.get(x._id),onClose:()=>S(null),onApplied:e=>{f((t=>new Set([...t,e])))}}),k&&(0,Xo.jsx)(k6,{campaign:k,onClose:()=>w(null)})]})}const C6="pitch_rumble_session";function E6(e){let{onAccess:t}=e;const[n,r]=(0,$.useState)(""),[i,a]=(0,$.useState)(""),[s,o]=(0,$.useState)(!1);return(0,Xo.jsxs)("div",{className:"rp-gate",children:[(0,Xo.jsx)("div",{className:"rp-gate-bg"}),(0,Xo.jsxs)("div",{className:"rp-gate-card",children:[(0,Xo.jsxs)("div",{className:"rp-gate-logo",children:[(0,Xo.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,Xo.jsx)("circle",{cx:"16",cy:"16",r:"15",stroke:"#FF6A00",strokeWidth:"2"}),(0,Xo.jsx)("path",{d:"M11 10 L11 22 L23 16 Z",fill:"#FF6A00"})]}),(0,Xo.jsx)("span",{className:"rp-gate-logo-text",children:"CLIPBAIT"}),(0,Xo.jsx)("span",{className:"rp-gate-logo-x",children:"\xd7"}),(0,Xo.jsx)("span",{className:"rp-gate-logo-rumble",children:"RUMBLE"})]}),(0,Xo.jsx)("h1",{className:"rp-gate-title",children:"Strategic Acquisition Pitch"}),(0,Xo.jsx)("p",{className:"rp-gate-sub",children:"This presentation is confidential and intended for authorised recipients only."}),(0,Xo.jsxs)("form",{className:"rp-gate-form",onSubmit:async e=>{if(e.preventDefault(),a(""),/^\S+@\S+\.\S+$/.test(n.trim())){o(!0);try{const e=await ks.post("/pitch/access",{email:n});localStorage.setItem(C6,JSON.stringify({sessionId:e.data.sessionId,leadId:e.data.leadId,email:n})),t(e.data.sessionId)}catch(K6){var r,i;a((null===(r=K6.response)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.error)||"Something went wrong. Try again.")}finally{o(!1)}}else a("Please enter a valid email.")},children:[(0,Xo.jsxs)("div",{className:"rp-gate-field",children:[(0,Xo.jsx)("label",{children:"Email Address"}),(0,Xo.jsx)("input",{type:"email",placeholder:"[email protected]",value:n,onChange:e=>r(e.target.value),autoComplete:"email",autoFocus:!0,disabled:s})]}),i&&(0,Xo.jsx)("div",{className:"rp-gate-error",children:i}),(0,Xo.jsx)("button",{className:"rp-gate-btn",type:"submit",disabled:s,children:s?(0,Xo.jsx)("span",{className:"rp-gate-spinner"}):(0,Xo.jsxs)(Xo.Fragment,{children:["View Presentation",(0,Xo.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Xo.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})})]}),(0,Xo.jsx)("p",{className:"rp-gate-footer",children:"By accessing this deck you agree to keep its contents strictly confidential."})]})]})}function j6(e){let{sessionId:t}=e;const n=(0,$.useRef)(null);!function(e,t){const n=(0,$.useRef)([]),r=(0,$.useRef)(0),i=(0,$.useRef)(Date.now()),a=(0,$.useRef)({x:0,y:0}),s=(0,$.useRef)(null),l=(0,$.useRef)(null),c=(0,$.useCallback)((e=>{n.current.push(o(o({},e),{},{timestamp:Date.now()}))}),[]),d=(0,$.useCallback)((async()=>{if(!e||0===n.current.length)return;const t=n.current.splice(0);try{await ks.post("/pitch/event",{sessionId:e,events:t})}catch(vo){}}),[e]);(0,$.useEffect)((()=>{if(!e)return;c({type:"session_start",slideIndex:0}),l.current=setInterval(d,4e3);const t=()=>{if(document.hidden){const e=Date.now();c({type:"slide_leave",slideIndex:r.current,durationMs:e-i.current}),d()}else i.current=Date.now(),c({type:"slide_view",slideIndex:r.current})};document.addEventListener("visibilitychange",t);const a=()=>{var t,a;c({type:"slide_leave",slideIndex:r.current,durationMs:Date.now()-i.current}),c({type:"session_end"});const s=JSON.stringify({sessionId:e,events:n.current.splice(0)});null===(t=(a=navigator).sendBeacon)||void 0===t||t.call(a,"/api/pitch/event",new Blob([s],{type:"application/json"}))};return window.addEventListener("beforeunload",a),()=>{clearInterval(l.current),document.removeEventListener("visibilitychange",t),window.removeEventListener("beforeunload",a),d()}}),[e,d,c]),(0,$.useEffect)((()=>{if(!e||!t.current)return;const n=t.current,l=()=>{try{var e;const t=n.contentWindow,l=n.contentDocument;if(!t||!l)return;const d=e=>{var n,r;null===(n=(r=l.documentElement||l.body).getBoundingClientRect)||void 0===n||n.call(r);
2const i=t.innerWidth||1,s=t.innerHeight||1;a.current={x:Math.round(e.clientX/i*100),y:Math.round(e.clientY/s*100)}};s.current=setInterval((()=>{c(o({type:"heatmap",slideIndex:r.current},a.current))}),300);const u=e=>{const n=t.innerWidth||1,i=t.innerHeight||1;c({type:"click",slideIndex:r.current,x:Math.round(e.clientX/n*100),y:Math.round(e.clientY/i*100)})},h=e=>{["ArrowRight","ArrowLeft","ArrowDown","ArrowUp","Space","PageDown","PageUp"].includes(e.code)&&c({type:"key_press",key:e.code,slideIndex:r.current})};let p=t.location.hash;const m=()=>{var e,n;const i=t.location.hash;if(i!==p){p=i;const e=parseInt(i.replace(/\D/g,""))||0;e!==r.current&&f(e)}const a=(null===(e=l.querySelector)||void 0===e?void 0:e.call(l,".present:not(.stack), [aria-roledescription='slide']:not([aria-hidden='true']), .swiper-slide-active"))||(null===(n=l.querySelector)||void 0===n?void 0:n.call(l,"[data-index]"));if(a){var s,o,c,d;const e=parseInt(null!==(s=null!==(o=null===(c=a.dataset)||void 0===c?void 0:c.index)&&void 0!==o?o:null===(d=a.dataset)||void 0===d?void 0:d.slidesIndex)&&void 0!==s?s:a.getAttribute("data-index"))||0;isNaN(e)||e===r.current||f(e)}},f=e=>{const t=Date.now();c({type:"slide_leave",slideIndex:r.current,durationMs:t-i.current}),c({type:"slide_view",slideIndex:e}),r.current=e,i.current=t},g=setInterval(m,800),v=l.createElement("style");v.textContent=".confidential{display:none!important}",null===(e=l.head)||void 0===e||e.appendChild(v),t.addEventListener("mousemove",d,{passive:!0}),t.addEventListener("click",u,{passive:!0}),t.addEventListener("keydown",h,{passive:!0}),n._trackingCleanup=()=>{clearInterval(g),clearInterval(s.current);try{t.removeEventListener("mousemove",d),t.removeEventListener("click",u),t.removeEventListener("keydown",h)}catch(vo){}}}catch(K6){}};return n.addEventListener("load",l),()=>{var e;n.removeEventListener("load",l),null===(e=n._trackingCleanup)||void 0===e||e.call(n)}}),[e,t,c])}(t,n);const r=e=>{try{var t,r;const i=null===(t=n.current)||void 0===t?void 0:t.contentDocument;if(i){const t=i.getElementById("next"===e?"next":"prev");if(t)return void t.click()}const a=null===(r=n.current)||void 0===r?void 0:r.contentWindow;if(!a)return;const s="next"===e?"ArrowRight":"ArrowLeft",o={key:s,code:s,bubbles:!0,cancelable:!0};a.dispatchEvent(new KeyboardEvent("keydown",o))}catch(vo){}};return(0,Xo.jsxs)("div",{className:"rp-viewer",children:[(0,Xo.jsx)("iframe",{ref:n,className:"rp-iframe",src:"/pitch-deck.html",title:"Clipbait \xd7 Rumble Strategic Pitch",allowFullScreen:!0}),(0,Xo.jsx)("button",{className:"rp-nav-btn rp-nav-prev",onClick:()=>r("prev"),"aria-label":"Previous slide",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,Xo.jsx)("button",{className:"rp-nav-btn rp-nav-next",onClick:()=>r("next"),"aria-label":"Next slide",children:(0,Xo.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Xo.jsx)("path",{d:"M9 18l6-6-6-6"})})})]})}function A6(){const[e,t]=(0,$.useState)((()=>{try{const e=JSON.parse(localStorage.getItem(C6));return(null===e||void 0===e?void 0:e.sessionId)||null}catch(e){return null}}));return e?(0,Xo.jsx)(j6,{sessionId:e}):(0,Xo.jsx)(E6,{onAccess:t})}function N6(e){if(!e||e<1e3)return"<1s";const t=Math.round(e/1e3);if(t<60)return"".concat(t,"s");const n=Math.floor(t/60),r=t%60;return"".concat(n,"m ").concat(r,"s")}function P6(e){let{points:t,width:n=600,height:r=400}=e;const i=(0,$.useRef)(null);return(0,$.useEffect)((()=>{const e=i.current;if(!e||!t.length)return;const n=e.getContext("2d");n.clearRect(0,0,e.width,e.height);const r=document.createElement("canvas");r.width=e.width,r.height=e.height;const a=r.getContext("2d");for(const i of t){const t=i.x/100*e.width,n=i.y/100*e.height,r=a.createRadialGradient(t,n,0,t,n,28);r.addColorStop(0,"rgba(255,106,0,0.08)"),r.addColorStop(1,"rgba(255,106,0,0)"),a.fillStyle=r,a.fillRect(t-30,n-30,60,60)}const s=a.getImageData(0,0,r.width,r.height),o=n.createImageData(s.width,s.height);for(let t=0;t<s.data.length;t+=4){const e=s.data[t+3]/255;o.data[t]=Math.round(255*Math.min(1,3*e)),o.data[t+1]=Math.round(100*Math.max(0,1-2*e)),o.data[t+2]=0,o.data[t+3]=Math.round(220*e)}n.putImageData(o,0,0)}),[t]),(0,Xo.jsxs)("div",{className:"pa-heatmap-wrap",children:[(0,Xo.jsx)("div",{className:"pa-heatmap-bg",style:{width:n,height:r}}),(0,Xo.jsx)("canvas",{ref:i,width:n,height:r,className:"pa-heatmap-canvas"}),(0,Xo.jsx)("div",{className:"pa-heatmap-label",children:"Mouse heatmap (all sessions combined)"})]})}function R6(){const[e,t]=(0,$.useState)((()=>new URLSearchParams(window.location.search).get("token")||"")),[n,r]=(0,$.useState)(null),[i,a]=(0,$.useState)(!1),[s,o]=(0,$.useState)(""),l=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;a(!0),o("");
2try{const e=await ks.get("/pitch/analytics?token=".concat(encodeURIComponent(t)));r(e.data)}catch(K6){var n,i;o((null===(n=K6.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error)||"Failed to load analytics")}finally{a(!1)}};(0,$.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get("token");e&&(t(e),l(e))}),[]);const c=(()=>{if(!n)return{};const e={};for(let n=0;n<11;n++)e[n]={total:0,count:0};for(const r of n.slides){var t;const n=null!==(t=r.slideIndex)&&void 0!==t?t:0;e[n]||(e[n]={total:0,count:0}),e[n].total+=r.durationMs||0,e[n].count+=1}return e})(),d=Math.max(1,...Object.values(c).map((e=>e.count?e.total/e.count:0))),u=["Cover","The Moment","The Opportunity","What Clipbait Is","Two Creator Types","Campaigns Engine","Revenue Model","Why Rumble / Why Now","Competitive Map","The Ask","Vision"];return(0,Xo.jsxs)("div",{className:"pa-page",children:[(0,Xo.jsxs)("div",{className:"pa-header",children:[(0,Xo.jsxs)("div",{className:"rp-gate-logo",style:{marginBottom:0},children:[(0,Xo.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[(0,Xo.jsx)("circle",{cx:"16",cy:"16",r:"15",stroke:"#FF6A00",strokeWidth:"2"}),(0,Xo.jsx)("path",{d:"M11 10 L11 22 L23 16 Z",fill:"#FF6A00"})]}),(0,Xo.jsx)("span",{className:"rp-gate-logo-text",style:{fontSize:14},children:"CLIPBAIT \xd7 RUMBLE"})]}),(0,Xo.jsx)("h2",{className:"pa-title",children:"Pitch Analytics Dashboard"})]}),!n&&(0,Xo.jsxs)("div",{className:"pa-auth-wrap",children:[(0,Xo.jsx)("input",{className:"pa-token-input",type:"password",placeholder:"Analytics token",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&l()}),(0,Xo.jsx)("button",{className:"rp-gate-btn",style:{marginTop:12},onClick:()=>l(),disabled:i,children:i?(0,Xo.jsx)("span",{className:"rp-gate-spinner"}):"Load Analytics"}),s&&(0,Xo.jsx)("div",{className:"rp-gate-error",children:s})]}),n&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsxs)("div",{className:"pa-summary-row",children:[(0,Xo.jsxs)("div",{className:"pa-stat-card",children:[(0,Xo.jsx)("div",{className:"pa-stat-val",children:n.leads.length}),(0,Xo.jsx)("div",{className:"pa-stat-label",children:"Total Viewers"})]}),(0,Xo.jsxs)("div",{className:"pa-stat-card",children:[(0,Xo.jsx)("div",{className:"pa-stat-val",children:n.clicks.length}),(0,Xo.jsx)("div",{className:"pa-stat-label",children:"Total Clicks"})]}),(0,Xo.jsxs)("div",{className:"pa-stat-card",children:[(0,Xo.jsx)("div",{className:"pa-stat-val",children:n.leads.length?N6(Math.round(n.leads.reduce(((e,t)=>e+(t.totalTimeMs||0)),0)/n.leads.length)):"\u2014"}),(0,Xo.jsx)("div",{className:"pa-stat-label",children:"Avg Session Time"})]}),(0,Xo.jsxs)("div",{className:"pa-stat-card",children:[(0,Xo.jsx)("div",{className:"pa-stat-val",children:n.leads.length?Math.round(n.leads.reduce(((e,t)=>{var n;return e+((null===(n=t.slidesViewed)||void 0===n?void 0:n.length)||0)}),0)/n.leads.length):"\u2014"}),(0,Xo.jsx)("div",{className:"pa-stat-label",children:"Avg Slides Viewed"})]})]}),(0,Xo.jsxs)("div",{className:"pa-section",children:[(0,Xo.jsx)("h3",{className:"pa-section-title",children:"Viewers"}),(0,Xo.jsx)("div",{className:"pa-table-wrap",children:(0,Xo.jsxs)("table",{className:"pa-table",children:[(0,Xo.jsx)("thead",{children:(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("th",{children:"Name"}),(0,Xo.jsx)("th",{children:"Email"}),(0,Xo.jsx)("th",{children:"First Accessed"}),(0,Xo.jsx)("th",{children:"Last Active"}),(0,Xo.jsx)("th",{children:"Total Time"}),(0,Xo.jsx)("th",{children:"Slides Seen"}),(0,Xo.jsx)("th",{children:"Last Slide"})]})}),(0,Xo.jsx)("tbody",{children:n.leads.map((e=>{var t,n,r,i;return(0,Xo.jsxs)("tr",{children:[(0,Xo.jsx)("td",{children:e.name}),(0,Xo.jsx)("td",{children:e.email}),(0,Xo.jsx)("td",{children:new Date(e.createdAt).toLocaleString()}),(0,Xo.jsx)("td",{children:new Date(e.lastActiveAt).toLocaleString()}),(0,Xo.jsx)("td",{className:"pa-mono",children:N6(e.totalTimeMs)}),(0,Xo.jsxs)("td",{className:"pa-mono",children:[null!==(t=null===(n=e.slidesViewed)||void 0===n?void 0:n.length)&&void 0!==t?t:0," / ",11]}),(0,Xo.jsx)("td",{className:"pa-mono",children:null!==(r=u[null!==(i=e.lastSlide)&&void 0!==i?i:0])&&void 0!==r?r:e.lastSlide})]},e._id)}))})]})})]}),(0,Xo.jsxs)("div",{className:"pa-section",children:[(0,Xo.jsx)("h3",{className:"pa-section-title",children:"Slide Engagement (avg time per slide)"}),(0,Xo.jsx)("div",{className:"pa-slide-chart",children:u.map(((e,t)=>{const n=c[t]||{total:0,count:0},r=n.count?n.total/n.count:0,i=r/d*100;return(0,Xo.jsxs)("div",{className:"pa-slide-row",children:[(0,Xo.jsx)("div",{className:"pa-slide-num",children:t+1}),(0,Xo.jsx)("div",{className:"pa-slide-name",children:e}),(0,Xo.jsx)("div",{className:"pa-slide-bar-bg",children:(0,Xo.jsx)("div",{className:"pa-slide-bar-fill",style:{width:"".concat(i,"%")}})}),(0,Xo.jsx)("div",{className:"pa-slide-time pa-mono",children:N6(r)}),(0,Xo.jsxs)("div",{className:"pa-slide-views pa-mono",children:[n.count," views"]})]},t)}))})]}),n.heatmap.length>0&&(0,Xo.jsxs)("div",{className:"pa-section",children:[(0,Xo.jsx)("h3",{className:"pa-section-title",children:"Mouse Heatmap"}),(0,Xo.jsx)(P6,{points:n.heatmap,width:700,height:440})]}),n.clicks.length>0&&(0,Xo.jsxs)("div",{className:"pa-section",children:[(0,Xo.jsxs)("h3",{className:"pa-section-title",children:["Click Map (",n.clicks.length," clicks)"]}),(0,Xo.jsx)(P6,{points:n.clicks,width:700,height:440})]})]})]})}const L6=new Set(["starter","pro","premium"]),I6=new Set(["monthly","annual"]);function D6(){const{user:e}=(0,$.useContext)(Qo),{search:t}=Wt(),[n,r]=(0,$.useState)(""),i=new URLSearchParams(t),a=(i.get("plan")||"").toLowerCase(),s=(i.get("period")||"monthly").toLowerCase(),o=i.get("credits"),l=o?
2Number(o):void 0,c=i.get("via")||("undefined"!==typeof window?localStorage.getItem("referral_via"):null),d=L6.has(a),u=I6.has(s);if((0,$.useEffect)((()=>{if(!e||!d||!u)return;let t=!1;return(async()=>{try{var e;const n=nA(),r=await ks.post("/billing/plan/checkout",{plan:a,period:s,credits:l,referral:n,via:c,success_url:"https://app.clipbait.ai/dashboard?welcome=1",cancel_url:"https://clipbait.ai/#pricing"});if(t)return;const i=null===(e=r.data)||void 0===e?void 0:e.url;if(!i)throw new Error("Stripe did not return a checkout URL");window.location.href=i}catch(K6){var n,i;if(t)return;console.error("Checkout handoff failed:",K6),r((null===(n=K6.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.error)||K6.message||"Could not start checkout. Please try again.")}})(),()=>{t=!0}}),[e,a,s,l,c,d,u]),!d||!u)return(0,Xo.jsx)(on,{to:"/pricing",replace:!0});if(!e){const e="/checkout".concat(t);return(0,Xo.jsx)(on,{to:"/login?returnUrl=".concat(encodeURIComponent(e)),replace:!0})}return(0,Xo.jsx)("div",{style:O6,children:(0,Xo.jsx)("div",{style:M6,children:n?(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("h2",{style:_6,children:"Checkout error"}),(0,Xo.jsx)("p",{style:F6,children:n}),(0,Xo.jsx)("a",{href:"/pricing",style:B6,children:"Back to pricing"})]}):(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)("div",{style:U6}
2),(0,Xo.jsx)("h2",{style:_6,children:"Taking you to checkout\u2026"}),(0,Xo.jsx)("p",{style:F6,children:"One sec while we set up your Clipbait plan."})]})})})}const O6={minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#0a0a0a",color:"#fff",padding:"24px"},M6={textAlign:"center",maxWidth:420},_6={fontSize:22,fontWeight:600,margin:"16px 0 8px"},F6={fontSize:14,color:"#aaa",margin:0},B6={display:"inline-block",marginTop:16,color:"#ff6a00",textDecoration:"none",fontWeight:500},U6={width:36,height:36,margin:"0 auto",border:"3px solid #333",borderTopColor:"#ff6a00",borderRadius:"50%",animation:"cb-spin 0.8s linear infinite"};if("undefined"!==typeof document&&!document.getElementById("cb-spin-kf")){const e=document.createElement("style");e.id="cb-spin-kf",e.textContent="@keyframes cb-spin { to { transform: rotate(360deg); } }",document.head.appendChild(e)}function z6(){const[e,t]=(0,$.useState)(!navigator.onLine);return(0,$.useEffect)((()=>{const e=()=>t(!1),n=()=>t(!0);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}),[]),e?(0,Xo.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,zIndex:9999,background:"#1a1a1a",color:"rgba(255,255,255,0.85)",borderBottom:"1px solid rgba(255,106,0,0.35)",padding:"10px 16px",textAlign:"center",fontSize:"13px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:[(0,Xo.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff6a00",strokeWidth:"2",strokeLinecap:"round",children:[(0,Xo.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),(0,Xo.jsx)("path",{d:"M16.72 11.06A10.94 10.94 0 0 1 19 12.55M5 12.55a10.94 10.94 0 0 1 5.17-2.39M10.71 5.05A16 16 0 0 1 22.56 9M1.42 9a15.91 15.91 0 0 1 4.7-2.88M8.53 16.11a6 6 0 0 1 6.95 0M12 20h.01"})]}),"No internet connection"]}):null}function G6(){const[e,t]=An(),{user:n}=(0,$.useContext)(Qo);return(0,$.useEffect)((()=>{const r=e.get("session_id"),i=e.get("verify");r&&"1"===i&&n&&ks.get("/billing/credits/success?session_id=".concat(r)).then((e=>{var t,n;null===(t=e.data)||void 0===t||!t.ok||null!==(n=e.data)&&void 0!==n&&n.already_applied||Vo.success("".concat(e.data.granted," credits added to your account!"))})).catch((()=>{})).finally((()=>{e.delete("session_id"),e.delete("verify"),e.delete("credits_success"),t(e,{replace:!0})}))}),[]),null}function W6(){const{pathname:e}=Wt(),t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:900;const t=()=>{if("undefined"===typeof window)return!1;const t=window.matchMedia("(max-width: "+e+"px)").matches,n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return t||n},[n,r]=(0,$.useState)(t);return(0,$.useEffect)((()=>{var n;if("undefined"===typeof window)return;const i=window.matchMedia("(max-width: "+e+"px)"),a=()=>r(t());return null===(n=i.addEventListener)||void 0===n||n.call(i,"change",a),window.addEventListener("orientationchange",a),window.addEventListener("resize",a),()=>{var e;null===(e=i.removeEventListener)||void 0===e||e.call(i,"change",a),window.removeEventListener("orientationchange",a),window.removeEventListener("resize",a)}}),[e]),n}(900),n=(0,$.useMemo)((()=>["/chatpopout","/login","/signup","/forgot-password","/emailsent","/auth/verify","/auth-success","/rumble-pitch","/checkout"]),[]),r=t&&!(e=>n.some((t=>e===t||e.startsWith(t+"/")||e.startsWith(t))))(e),i=r?"calc(68px + env(safe-area-inset-bottom, 0px))":0;return(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(z6,{}),(0,Xo.jsx)(G6,{}),(0,Xo.jsx)("div",{style:{minHeight:"100vh",paddingBottom:i},children:(0,Xo.jsx)(ln,{})}),r&&(0,Xo.jsx)(u2,{})]})}function H6(e){let{to:t}=e;const{search:n}=Wt();return(0,Xo.jsx)(on,{to:t+n,replace:!0})}!function(){const e=new URLSearchParams(window.location.search).get("via");if(e){try{localStorage.getItem("referral_via")||localStorage.setItem("referral_via",e)}catch(t){}try{const t=document.cookie.split("; ").some((e=>e.startsWith("cb_via=")));if(!t){const t=window.location.hostname||"",n="clipbait.ai"===t||t.endsWith(".clipbait.ai")?"; domain=.clipbait.ai":"",r="https:"===window.location.protocol?"; Secure":"",i=7776e3;document.cookie="cb_via=".concat(encodeURIComponent(e),"; path=/;
2 max-age=").concat(i).concat(n).concat(r,"; SameSite=Lax")}}catch(n){}}}();const V6=function(){const{user:e,dispatch:t}=(0,$.useContext)(Qo),n="undefined"!==typeof window&&window.innerWidth<=768;return(0,$.useEffect)((()=>{const e=()=>t({type:"LOGOUT"});return window.addEventListener("auth:sessionExpired",e),()=>window.removeEventListener("auth:sessionExpired",e)}),[t]),(0,Xo.jsxs)(xn,{children:[(0,Xo.jsxs)(un,{children:[(0,Xo.jsx)(cn,{path:"/auth-success",element:(0,Xo.jsx)(qP,{})}),(0,Xo.jsxs)(cn,{element:(0,Xo.jsx)(W6,{}),children:[(0,Xo.jsx)(cn,{path:"/:streamerKey/:vodId",element:(0,Xo.jsx)(b0,{})}),(0,Xo.jsx)(cn,{path:"/contact",element:(0,Xo.jsx)(wV,{})}),(0,Xo.jsx)(cn,{path:"/agency-onboarding",element:(0,Xo.jsx)(KF,{})}),(0,Xo.jsx)(cn,{path:"/forms",element:(0,Xo.jsx)(p4,{})}),(0,Xo.jsx)(cn,{path:"/home",element:e?(0,Xo.jsx)(kV,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/terms",element:(0,Xo.jsx)(JF,{})}),(0,Xo.jsx)(cn,{path:"/about",element:(0,Xo.jsx)(zF,{})}),(0,Xo.jsx)(cn,{path:"/about/cookie-notice",element:(0,Xo.jsx)(YF,{})}),(0,Xo.jsx)(cn,{path:"/press",element:(0,Xo.jsx)(WF,{})}),(0,Xo.jsx)(cn,{path:"/pricing",element:e?(0,Xo.jsx)(BF,{}):(0,Xo.jsx)(H6,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/checkout",element:(0,Xo.jsx)(D6,{})}),(0,Xo.jsx)(cn,{path:"/chatpopout",element:(0,Xo.jsx)(XW,{})}),(0,Xo.jsx)(cn,{path:"/search",element:(0,Xo.jsx)(f1,{})}),(0,Xo.jsx)(cn,{path:"/notificationspage",element:(0,Xo.jsx)(d2,{})}),(0,Xo.jsx)(cn,{path:"/user/plan",element:(0,Xo.jsx)(on,{to:"/pricing",replace:!0})}),(0,Xo.jsx)(cn,{path:"/subscriptions",element:e?(0,Xo.jsx)(YW,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/notifications",element:e?(0,Xo.jsx)(QW,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/superchats/:streamer?",element:(0,Xo.jsx)(ZW,{})}),(0,Xo.jsx)(cn,{path:"/admin",element:e?(0,Xo.jsx)(Jj,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/music",element:e?(0,Xo.jsx)(eA,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/dashboard",element:e?(0,Xo.jsx)(pP,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/users",element:e?(0,Xo.jsx)(EP,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/users/:id",element:e?(0,Xo.jsx)(PP,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/clip-review-sandbox",element:e?(0,Xo.jsx)(UP,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/whop-click-test",element:e?(0,Xo.jsx)(VP,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/admin/appearance",element:e?(0,Xo.jsx)(nF,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/login",element:e?(0,Xo.jsx)(on,{to:"/home"}):(0,Xo.jsx)(v2,{})}),(0,Xo.jsx)(cn,{path:"/signup",element:e?(0,Xo.jsx)(on,{to:"/home"}):(0,Xo.jsx)(v2,{})}),(0,Xo.jsx)(cn,{path:"/signup/starter",element:(0,Xo.jsx)(iF,{})}),(0,Xo.jsx)(cn,{path:"/signup/pro",element:(0,Xo.jsx)(aF,{})}),(0,Xo.jsx)(cn,{path:"/signup/premium",element:(0,Xo.jsx)(sF,{})}),(0,Xo.jsx)(cn,{path:"/forgot-password",element:(0,Xo.jsx)(OF,{})}),(0,Xo.jsx)(cn,{path:"/signup/user/:username",element:(0,Xo.jsx)(rF,{})}),(0,Xo.jsx)(cn,{path:"/emailsent/success",element:(0,Xo.jsx)(oF,{})}),(0,Xo.jsx)(cn,{path:"/auth/verify/:token",element:(0,Xo.jsx)(lF,{})}),(0,Xo.jsx)(cn,{path:"/profile",element:e?(0,Xo.jsx)(bm,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/me",element:e?(0,Xo.jsx)(n4,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/affiliates",element:(0,Xo.jsx)(d4,{})}),(0,Xo.jsx)(cn,{path:"/calendar",element:e?(0,Xo.jsx)(bV,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/tweet-to-reel",element:e?(0,Xo.jsx)(l6,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/edit/:jobId/:clipIndex",element:e?(0,Xo.jsx)(m4,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/upgrade",element:e?(0,Xo.jsx)(k4,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/campaigns",element:e?(0,Xo.jsx)(T6,{}):(0,Xo.jsx)(on,{to:"/login"})}),(0,Xo.jsx)(cn,{path:"/rumble-pitch",element:(0,Xo.jsx)(A6,{})}),(0,Xo.jsx)(cn,{path:"/rumble-pitch/analytics",element:(0,Xo.jsx)(R6,{})}),(0,Xo.jsx)(cn,{path:"/:username",element:(0,Xo.jsx)(bm,{})}),(0,Xo.jsx)(cn,{path:"/",element:e?(0,Xo.jsx)(on,{to:"/home"}):(0,Xo.jsx)(H6,{to:"/login"})})]})]}),(0,Xo.jsx)(Ho,{position:n?"bottom-center":"top-left",containerStyle:o({zIndex:2147483647},n&&{bottom:"calc(68px + env(safe-area-inset-bottom, 0px) + 170px)",top:"auto"}),toastOptions:{duration:3e3,style:{background:"#111",color:"#fff",borderRadius:"12px",padding:"10px 16px",fontSize:14,whiteSpace:"nowrap",maxWidth:"90vw"},error:{duration:4e3}}})]})};!function(){if("undefined"!==typeof window&&"function"===typeof window.rewardful)try{window.rewardful("ready",(()=>{try{const e=window.Rewardful&&window.Rewardful.referral;e&&localStorage.setItem(tA,e)}catch(e){}}))}catch(e){}}(),Ze.render((0,Xo.jsx)(Zo,{children:(0,Xo.jsx)(V6,{})}),document.getElementById("root")),window.requestAnimationFrame((()=>{const e=document.getElementById("splash");e&&e.classList.add("splash--hide")}))})()})(); 3//# sourceMappingURL=main.9f89f198.js.map
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.