HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: /wordpress/plugins/jetpack/16.0/jetpack_vendor/automattic/jetpack-videopress/build/admin/index.js
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e,t,r={6941(e,t,r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(3212)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3212(e,t,r){e.exports=function(e){function t(e){let r,o,i,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(o(e,r))return!1;for(const r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(7378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},4111(e,t,r){"use strict";r.d(t,{A:()=>n});const n={wrapper:"GqFcAwJvIrg1v7f6QUfw",header:"OENx8kmm62tkWGukzP2S",title:"KnqJLKwSceJTwFJrPGHq","close-button":"PJU0_yA9jNf7ao0jhHut",footer:"rrORM3zqHfGvqiPduEXY",steps:"Q7fUcDUGhteXEr18rZPC","action-button":"S5LAeskUiEQ0JlPhr0Ze"}},969(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj","without-bottom-border":"zWDcRnnZPA743KzSQdUg","admin-page-header":"iWGAhN9gOB48g0jEO1OQ","admin-page-footer":"N7JAnsuu_FtPrtDg8bVw","sandbox-domain-badge":"JOYmuxQjG4FArIIUxJfA"}},9282(e,t,r){"use strict";r.d(t,{A:()=>n});const n={section:"cAbGtJDGgLubucBnz7vM"}},6996(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"section-hero":"vMa4i_Dza2t5Zi_Bw9Nf"}},7934(e,t,r){"use strict";r.d(t,{A:()=>n});const n={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},7191(){},5250(){},6727(e,t,r){"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smcols:"4",mdcols:"8",lgcols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},4824(e,t,r){"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},7682(e,t,r){"use strict";r.d(t,{A:()=>n});const n={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},4762(e,t,r){"use strict";r.d(t,{A:()=>n});const n={container:"p4qz2tkq0p9hxucJ6Qk2",table:"lbNDyXioOwvyvbALtCBm","is-viewport-large":"s2Lsn4kbm6BrS3DSndRB",tableTitle:"VJyb3wsQ0cysvF74fQG1","header-logo":"r7RJ4UOpiZkuiPKQuuo4",card:"cLaNK_XcbTGlRQ4Tp43Q","is-primary":"CYt1X0eH1icRjhtJ28jx",headerContainer:"bTNnVDCpQYzMfdnvOc7o",header:"DAkZc1P9A3K12fjEliMg",title:"y0IFGyK3k8P84SCn0__G",item:"WUBuYABl8nymjs9NnCEL",empty:"XDAebwAybD2fCSAHBtD6",feature:"RuDAuMDAk36a8vufZpgT","last-feature":"ANtCFeb41NhA8PA3H7ZN",value:"Ql2gy_148yW8Vw5vhaKD",icon:"EAQrAnQEW1z1BfdY5gbC","icon-check":"JDSTlLoOC_4aUoH2oNM2","icon-cross":"zNdQRJ1w7BvaQOYyqzHK",popover:"lr7vbX95SKtoe7DarJcZ","popover-icon":"KRrGp2xdkeBOxLZeuQ6X",tos:"H_ZJiRVJg0LiMXPGOcmt","tos-container":"x21z_DixObRDsDaWotP1"}},3211(e,t,r){"use strict";r.d(t,{A:()=>n});const n={container:"dovianZYLKhnbnh9I06o","price-container":"lljtQMhW7lq5tE5SDJEf","promo-label":"NubApIV1vQCRUNprfm6b",price:"dhFQXpZfMwVI8vuYHnwC","is-not-off-price":"eD7hzxFmdtG_MgmBtl_k",footer:"C64ZjjUAqJC1T2Sa7apS",legend:"UpZDGew6Ay1hPoP6eI7b",symbol:"TDiiPbuW1Z0_05u_pvcK",simple:"XzciqDNeE4p0AQKpZFNs",currentPrice:"T18Wss3qoJne5HBFOp5Q",originalPrice:"m51fRupWPUTbhnGFMJ8A"}},9918(){},8763(e,t,r){"use strict";r.d(t,{A:()=>n});const n={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},8706(e,t,r){"use strict";r.d(t,{A:()=>n});const n={global:"_fUXxnSp5pagKBp9gSN7"}},9257(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"library-wrapper":"ngVehANvo95yL8SR3vCM","total-filter-wrapper":"u5Bm2lMdl_RF_PwsJFu3","total-sm":"tq4tsG0QhYtikiEyOjPd","filter-wrapper":"nQrPF6Z_QvFU70OoPfzr","search-input":"ysRC_YNbmBw3A8QXNwgV",small:"tpQusFkmJMjL7DDy8Sfh","filter-section":"A4BwZl_cA9ZSyyzrYVRF",pagination:"HK8MNR2nXOqy39lYbQce","hero-shrink-guard":"jZujv2Eko35WrKr74QAW","first-video-wrapper":"gCc0d1v6OLwLRMO2Q_Yg","upload-area":"zupVSeSUypdTZypfXAF7","upgrade-trigger":"CKlPOzBAXYHPGa4yptcw","storage-meter":"Yi3NM4F2ed0DsZdQPtAu","query-no-results":"gnESFSYJXvVJfa4rVUeQ","files-overlay":"D572veCt9epT8TLGAkLI","file-input":"xhfD9funJfBObVH1nuQ_","drop-text":"Ydu8V8fGJfNHNE6oqG1U",hover:"Ep7FMzH1uLJae7gMk2pW","jetpack-videopress-jitm-card":"Qh0kXwNK5UY0FloNd7Tr"}},1757(e,t,r){"use strict";r.d(t,{A:()=>n});const n={wrapper:"KuS14qLJxLxK5wN6vSKC","button-wrapper":"imdKI_xQT7pjFOh_ZDwf"}},6936(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"modal-actions":"NPsvl2MHUyhI4EKr8__a","modal-action-button":"HWIcFAu9FWNqkEFxTerT"}},90(e,t,r){"use strict";r.d(t,{A:()=>n});const n={breadcrumbs:"nCjO19ra0QNIgwD6qCkS","breadcrumb-current":"YFzSDO8zGQ67XhAMbarR","breadcrumb-link":"red7IbBVIQwOd_NsviGg",input:"SkJoFmh5ZtF0NPW5MVhd","side-fields":"PFSfTWhz3OHCeRoDTkyQ",field:"Im2xyb0iQS6hRHW86HA0","privacy-icon":"_p3jOiy2XnKofiPPbcrm",actions:"U7dj3zIRBebBwocympfv",rating:"GbfLzJi6zjrnQjQNa7hZ",checkboxTitle:"OaQIAT7wE4RxYgmX5xCV","chapters-help-container":"sBh98QDjL5Z0Hq1y6aHV","learn-more":"p2oUuL_36x5zb2QlgmZj","incomplete-chapters-notice":"_svkjLixYlAaWnbcC5sq","jetpack-videopress-jitm-card":"m_KL4QLkUZaisROpd7D8"}},1688(e,t,r){"use strict";r.d(t,{A:()=>n});const n={notice:"dJlDReKx7kLk8SlNRx9S","is-warning":"yIBA1ClKVZ8LzhL6fCcF",icon:"oMaxgfhG0zEOdy3QEsBx","is-info":"dI4NmXhDJRWR5S35LQzf","is-success":"Hlh96OxtSayBmWyKmqUg",message:"sUrXs7n0h85zG6glOmcC"}},2275(e,t,r){"use strict";r.d(t,{A:()=>n});const n={label:"UPMQl2lcMrIHVFqbO9k1","input-wrapper":"lxkk4eVTUu28RhmSBtbd",disabled:"vhy9tG9TVoL1kHuVbDFR",large:"BWkYz6YLixxwG6T3K6nA","is-textarea":"nbQEVqPlwegYvvvppkPj",input:"CPNtC1daS23cmYvgI2j6","with-icon":"aG0o7XvHhQHoxWiKWIYV","icon-wrapper":"kQkWlMcIUkMbI3EUetn0","clear-icon":"jvMupIZA8TRJzHnLtYqo",loader:"a59hNmaVOdJiRC9h7DCQ"}},5465(e,t,r){"use strict";r.d(t,{A:()=>n});const n={wrapper:"x1Tbu0P622OAKsVqM8r_",navigation:"kduXj2UYHfYPY2OWzDA5",button:"UUeY0t_E1boOuwrOosKA",selected:"GTeOAT8BJioiAcaoPLq8"}},3908(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"action-popover":"rAlHvmHvhThRpglwvWH4"}},3068(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"privacy-toggle":"_8UmFOxVUfsz1oHctA5Fw"}},5493(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"video-card__wrapper":"CmIhD5KlC34dY5elqkHt","is-blank":"iv8MHMl5EqDX4TdVdtGc","video-card__background":"C2tUqf95cgt6mGFwrEgw","video-card__quick-actions-section":"PRiNxpiEmTiaydAizI4Q","video-card__title-section":"pjN9m5JS8gKTbawlYvKE",disabled:"oaQ8fJmnujfHJ9aOsjbf","video-card__thumbnail":"XjRcYJK2E4Ygy8UBlbDT","video-card__title":"fl5NWyI0vT0C1iFLPcTU","video-card__video-plays-counter":"Iy6ctLwDonPHblHktl6g",small:"Ovu42BdFSE6hVQ7_C3pQ",chevron:"DW2zO1qn8P3F4tPfGrU6"}},153(e,t,r){"use strict";r.d(t,{A:()=>n});const n={dropdown:"EwhvbK4YjGyJUcAzpCM6",separator:"j9HLeLBpqn4E0yd1iw6E",delete:"ppbkVbfFx5ta7Pn63SYE"}},971(e,t,r){"use strict";r.d(t,{A:()=>n});const n={details:"oPqyKPaqt7IG2l6GCZOQ",filename:"pR2xpODRH2SI0rKbVoxv"}},2309(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"filter-button":"xOV0028X57DzKXWT1f4X","is-active":"yXNNgoFym1vCBROVVqWz","filters-section":"sMQIPPsbpU8JxRsPawaD","filter-checkbox":"CGg2sHuFTB2uBEgY1tYI"}},8863(e,t,r){"use strict";r.d(t,{A:()=>n});const n={wrapper:"HW4AqaoibTciaVbN9s8v"}},9243(e,t,r){"use strict";r.d(t,{A:()=>n});const n={list:"kUGHOcMJnACgVE341N6g",header:"GEBB90uPGpY_ehZQMjim","title-wrapper":"jKNO2YYZiIwBdZp9M0HB",row:"Oq1JxuR5Cr62vXgn6Mgg","title-adornment":"DQF_YYNIWAoXWO7JTkAk",error:"VI5HvRC93oGOX4Y7F4I2"}},2518(e,t,r){"use strict";r.d(t,{A:()=>n});const n={actions:"YNmnd00qmYMNP9wYvIK4",popover:"wjFKvEG47iknEU90iDq9",trash:"HFyA3ZR7LoTwT_UZ0LlO","dropdown-content":"Voun5vQOD5fVqz8YCPb5"}},6577(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"video-row":"azFrwCqBXcsFKzkEUwzW",disabled:"IFercqk6TQnGkD13ZfED",pressed:"fNy2aT5H1blTtbBv61rR",stats:"XmlxDm3JYE1kpeltGrhR","mobile-stats":"gD0CFomXUHpNq7zku2iw",actions:"s6sgQ5Mw5HiW2AAKIlIA","video-data-wrapper":"PoMJURXGuCh0iMK0XxyA",small:"wQakTXf3KoqgsnHbQORQ","info-wrapper":"k6ZZinbzyl2FbrjBHsSV",poster:"NfmyA6T82BR5NQtF8b8D","title-wrapper":"dr12n7MKBYGiJ1mIxUFw",title:"Nw6vQSQF5AEj2lyQk1BW",label:"To4eiepnWQxfy24AfQWE","meta-wrapper":"M1mY7AP3E1wcURRkvFJ7",upload:"yy8gb2USc3qp5hD4a_Mn","mobile-actions":"SNI76CTvLKNBSNVcHXXa","storybook-wrapper":"P7wAzijvMBzexy4_D2TF"}},4818(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"percentage-description":"nXXmYwqehVvKJSvOVsq0",meter:"NEcJd61i_Aa15jtoIjhw"}},6325(e,t,r){"use strict";r.d(t,{A:()=>n});const n={selector:"qTNpT0cIqk0mi29aoqKX","is-small":"aWCfvJbDbrXzDB9iMUgD",actions:"YQG0v1bY6ogTc1WEjsN8"}},3817(e,t,r){"use strict";r.d(t,{A:()=>n});const n={thumbnail:"HRtyHR7FwkF0z4v6iwoT","thumbnail-placeholder":"dLUHJkXbduCtupYel_tE","thumbnail-blank":"XxMuxhqo7_HXAJa8faua","thumbnail-error":"KnlSTZxk7Kk4A_SSNYx4","video-thumbnail-duration":"egaF3YQ5W_2m1Wu2YdkB","is-small":"BmdRfRYMGO0Ow6jS592k","video-thumbnail-edit":"nwG_0RVAw2qSSdaxnBwc","thumbnail__edit-button":"uGbLU3t2V9Lu1MZJC8eC","custom-thumbnail":"Yloc5OpF90Gv15yyCxXi",pulse:"pkDi4axzixXDF7EraLze","is-row":"CPsBhWjdAs58PRPecnXw","upload-text":"h4cm8AdnkM6qMJDmuOXZ",disabled:"FsV3eqT7w52MtiGic31w"}},1510(e,t,r){"use strict";r.d(t,{A:()=>n});const n={wrapper:"VBg9MDIwwjh9niPRLqHv",small:"eeomA8xgTxZBCvvaqHBf","file-input":"rUUpPeXFVXo383lEdV2g",icon:"IN92PVoVWZ70ZOQWEog2"}},3179(){"use strict"},8261(){},4156(e,t,r){"use strict";r.d(t,{A:()=>n});const n={container:"ianknO6MB_ng2EieMQdE","play-icon":"no33D8j7N4nzdafpETZy","video-player-wrapper":"VFzg5w6i04b05mkee2SA","video-player-spinner-wrapper":"PHuqvGT1Z0IVZgjAtUZw",spinner:"xwBn5mUH0mhSBqas1dog",video:"k5rpcKdHL3HKU39CrUhe",range:"sgykjydBL76DT5yDw_ka"}},7378(e){var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o,a=365.25*o;function s(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=o)return s(e,i,o,"day");if(i>=n)return s(e,i,n,"hour");if(i>=r)return s(e,i,r,"minute");if(i>=t)return s(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=n)return Math.round(e/n)+"h";if(i>=r)return Math.round(e/r)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4588(e,t){"use strict";var r=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(r.call(e,i)){if((n=e[i])||null!=n&&!isNaN(n)||(n=""),i=o(i),n=o(n),null===i||null===n)continue;a.push(i+"="+n)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,o={};t=r.exec(e);){var i=n(t[1]),a=n(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},6811(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},372(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(6941);const o=r.n(n)()("dops:analytics");let i,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const s={initialize:function(e,t,r){s.setUser(e,t),s.setSuperProps(r),s.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){i=e},assignSuperProps:function(e){i=Object.assign(i||{},e)},mc:{bumpStat:function(e,t){const r=function(e,t){let r="";if("object"==typeof e){for(const t in e)r+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else r="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return r}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+r+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const r=function(e,t){let r="";if("object"==typeof e){for(const t in e)r+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else r="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return r}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+r+"&t="+Math.random())}},pageView:{record:function(e,t){s.tracks.recordPageView(e),s.ga.recordPageView(e,t)}},purchase:{record:function(e,t,r,n,o,i,a){s.ga.recordPurchase(e,t,r,n,o,i,a)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(!t.blog_id&&"object"==typeof window.jpTracksContext&&window.jpTracksContext.blog_id&&(t.blog_id=window.jpTracksContext.blog_id),i&&(o("- Super Props: %o",i),t=Object.assign(t,i)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};s.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){s.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};s.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),s.ga.initialized=!0)},recordPageView:function(e,t){s.ga.initialize(),o("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,r,n){s.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==r&&(i+=" [Option Label: "+r+"]"),void 0!==n&&(i+=" [Option Value: "+n+"]"),o(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,r,n)},recordPurchase:function(e,t,r,n,o,i,a){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:n,currency:a}),window.ga("ecommerce:addItem",{id:e,name:t,sku:r,price:o,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=s},5932(e,t,r){"use strict";r.d(t,{Ay:()=>u});var n=r(6439),o=r(3832);function i(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const a=i("JsonParseError"),s=i("JsonParseAfterRedirectError"),c=i("Api404Error"),l=i("Api404AfterRedirectError"),d=i("FetchNetworkError");const u=new function(e,t){let r=e,i=e,a={"X-WP-Nonce":t},s={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),r=t.length>1?t[1]:"",n=r.length?r.split("&"):[];return n.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+n.join("&")};const d={setApiRoot(e){r=e},setWpcomOriginApiUrl(e){i=e},setApiNonce(e){a={"X-WP-Nonce":e},s={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,o)=>{const i={};return(0,n.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,n.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),o&&(i.from=o),f(`${r}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(p).then(h)},fetchAuthorizationUrl:e=>u((0,o.addQueryArgs)(`${r}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(p).then(h),fetchSiteConnectionData:()=>u(`${r}jetpack/v4/connection/data`,s).then(h),fetchSiteConnectionStatus:()=>u(`${r}jetpack/v4/connection`,s).then(h),fetchSiteConnectionTest:()=>u(`${r}jetpack/v4/connection/test`,s).then(p).then(h),fetchUserConnectionData:()=>u(`${r}jetpack/v4/connection/data`,s).then(h),fetchUserTrackingSettings:()=>u(`${r}jetpack/v4/tracking/settings`,s).then(p).then(h),updateUserTrackingSettings:e=>f(`${r}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),disconnectSite:()=>f(`${r}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(h),fetchConnectUrl:()=>u(`${r}jetpack/v4/connection/url`,s).then(p).then(h),unlinkUser:(e=!1,t={})=>{const n={linked:!1,force:!!e};return t.disconnectAllUsers&&(n["disconnect-all-users"]=!0),f(`${r}jetpack/v4/connection/user`,c,{body:JSON.stringify(n)}).then(p).then(h)},reconnect:()=>f(`${r}jetpack/v4/connection/reconnect`,c).then(p).then(h),fetchConnectedPlugins:()=>u(`${r}jetpack/v4/connection/plugins`,s).then(p).then(h),setHasSeenWCConnectionModal:()=>f(`${r}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(h),fetchModules:()=>u(`${r}jetpack/v4/module/all`,s).then(p).then(h),fetchModule:e=>u(`${r}jetpack/v4/module/${e}`,s).then(p).then(h),activateModule:e=>f(`${r}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(h),deactivateModule:e=>f(`${r}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>f(`${r}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(p).then(h),updateSettings:e=>f(`${r}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),getProtectCount:()=>u(`${r}jetpack/v4/module/protect/data`,s).then(p).then(h),resetOptions:e=>f(`${r}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(h),activateVaultPress:()=>f(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(h),getVaultPressData:()=>u(`${r}jetpack/v4/module/vaultpress/data`,s).then(p).then(h),installPlugin:(e,t)=>{const n={slug:e,status:"active"};return t&&(n.source=t),f(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify(n)}).then(p).then(h)},activateAkismet:()=>f(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(h),getAkismetData:()=>u(`${r}jetpack/v4/module/akismet/data`,s).then(p).then(h),checkAkismetKey:()=>u(`${r}jetpack/v4/module/akismet/key/check`,s).then(p).then(h),checkAkismetKeyTyped:e=>f(`${r}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(p).then(h),getFeatureTypeStatus:e=>u(`${r}jetpack/v4/feature/${e}`,s).then(p).then(h),fetchStatsData:e=>u(function(e){let t=`${r}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(p).then(h).then(g),getPluginUpdates:()=>u(`${r}jetpack/v4/updates/plugins`,s).then(p).then(h),getPlans:()=>u(`${r}jetpack/v4/plans`,s).then(p).then(h),fetchSettings:()=>u(`${r}jetpack/v4/settings`,s).then(p).then(h),updateSetting:e=>f(`${r}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchSiteData:()=>u(`${r}jetpack/v4/site`,s).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>u(`${r}jetpack/v4/site/features`,s).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>u(`${r}jetpack/v4/site/products`,s).then(p).then(h),fetchSitePurchases:()=>u(`${r}jetpack/v4/site/purchases`,s).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>u(`${r}jetpack/v4/site/benefits`,s).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>u(`${r}jetpack/v4/site/discount`,s).then(p).then(h).then(e=>e.data),fetchSetupQuestionnaire:()=>u(`${r}jetpack/v4/setup/questionnaire`,s).then(p).then(h),fetchRecommendationsData:()=>u(`${r}jetpack/v4/recommendations/data`,s).then(p).then(h),fetchRecommendationsProductSuggestions:()=>u(`${r}jetpack/v4/recommendations/product-suggestions`,s).then(p).then(h),fetchRecommendationsUpsell:()=>u(`${r}jetpack/v4/recommendations/upsell`,s).then(p).then(h),fetchRecommendationsConditional:()=>u(`${r}jetpack/v4/recommendations/conditional`,s).then(p).then(h),saveRecommendationsData:e=>f(`${r}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>u(`${r}jetpack/v4/products`,s).then(p).then(h),fetchRewindStatus:()=>u(`${r}jetpack/v4/rewind`,s).then(p).then(h).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>u(`${r}jetpack/v4/scan`,s).then(p).then(h).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>f(`${r}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(h),fetchPluginsData:()=>u(`${r}jetpack/v4/plugins`,s).then(p).then(h),fetchIntroOffers:()=>u(`${r}jetpack/v4/intro-offers`,s).then(p).then(h),fetchVerifySiteGoogleStatus:e=>u(null!==e?`${r}jetpack/v4/verify-site/google/${e}`:`${r}jetpack/v4/verify-site/google`,s).then(p).then(h),verifySiteGoogle:e=>f(`${r}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(p).then(h),submitSurvey:e=>f(`${r}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(p).then(h),saveSetupQuestionnaire:e=>f(`${r}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(p).then(h),updateLicensingError:e=>f(`${r}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(p).then(h),updateLicenseKey:e=>f(`${r}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(p).then(h),getUserLicensesCounts:()=>u(`${r}jetpack/v4/licensing/user/counts`,s).then(p).then(h),getUserLicenses:()=>u(`${r}jetpack/v4/licensing/user/licenses`,s).then(p).then(h),updateLicensingActivationNoticeDismiss:e=>f(`${r}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(p).then(h),updateRecommendationsStep:e=>f(`${r}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>f(`${r}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:e=>f(`${r}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(p).then(h),migrateIDC:()=>f(`${r}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:e=>f(`${r}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(p).then(h),fetchSearchPlanInfo:()=>u(`${i}jetpack/v4/search/plan`,s).then(p).then(h),fetchSearchSettings:()=>u(`${i}jetpack/v4/search/settings`,s).then(p).then(h),updateSearchSettings:e=>f(`${i}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchSearchStats:()=>u(`${i}jetpack/v4/search/stats`,s).then(p).then(h),fetchWafSettings:()=>u(`${r}jetpack/v4/waf`,s).then(p).then(h),updateWafSettings:e=>f(`${r}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchWordAdsSettings:()=>u(`${r}jetpack/v4/wordads/settings`,s).then(p).then(h),updateWordAdsSettings:e=>f(`${r}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>u(`${i}jetpack/v4/search/pricing`,s).then(p).then(h),fetchMigrationStatus:()=>u(`${r}jetpack/v4/migration/status`,s).then(p).then(h),fetchBackupUndoEvent:()=>u(`${r}jetpack/v4/site/backup/undo-event`,s).then(p).then(h),fetchBackupPreflightStatus:()=>u(`${r}jetpack/v4/site/backup/preflight`,s).then(p).then(h)};function u(e,t){return fetch(l(e),t)}function f(e,t,r){return fetch(e,Object.assign({},t,r)).catch(m)}function g(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new c}):e.json().catch(e=>f(e)).then(t=>{const r=new Error(`${t.message} (Status ${e.status})`);throw r.response=t,r.name="ApiError",r})}function h(e){return e.json().catch(t=>f(t,e.redirected,e.url))}function f(e,t,r){throw t?new s(r):new a}function m(){throw new d}},1330(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(6427),o=r(9491),i=r(7723),a=r(1489),s=r(1112),c=r(7425),l=r(723),d=r(4111),u=r(790);const __=i.__,p=({hideCloseButton:e=!1,title:t,children:r,step:p=null,totalSteps:h=null,buttonContent:f=null,buttonDisabled:m=!1,buttonHref:g=null,buttonExternalLink:v=!1,offset:b=32,onClose:y,onClick:w,..._})=>{const x=(0,o.useViewportMatch)("small","<");if(!t||!r||!f)return null;_.position||(_.position=x?"top center":"middle right");const k={..._,offset:b,onClose:y},j=Number.isFinite(p)&&Number.isFinite(h);let A=null;return j&&(A=(0,i.sprintf)(/* translators: 1 Current step, 2 Total steps */
__("%1$d of %2$d","jetpack-videopress-pkg"),p,h)),(0,u.jsx)(n.Popover,{...k,children:(0,u.jsx)(l.Ay,{children:(0,u.jsxs)("div",{className:d.A.wrapper,children:[(0,u.jsxs)("div",{className:d.A.header,children:[(0,u.jsx)(c.Ay,{variant:"title-small",className:d.A.title,children:t}),!e&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(s.A,{size:"small",variant:"tertiary","aria-label":"close",className:d.A["close-button"],icon:a.A,iconSize:16,onClick:y})})]}),r,(0,u.jsxs)("div",{className:d.A.footer,children:[j&&(0,u.jsx)(c.Ay,{variant:"body",className:d.A.steps,children:A}),(0,u.jsx)(s.A,{variant:"primary",className:d.A["action-button"],disabled:m,onClick:w,isExternalLink:v,href:g,children:f})]})]})})})}},2947(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(5932),o=r(1753),i=r(7723),a=r(3022),s=r(1609),c=r(8250),l=r(7142),d=r(8509),u=r(5918),p=r(969),h=r(790);const __=i.__,f=({children:e,className:t,showHeader:r=!0,showFooter:f=!0,showBackground:m=!0,sandboxedDomain:g="",apiRoot:v="",apiNonce:b="",optionalMenuItems:y,header:w,title:_,subTitle:x,logo:k,actions:j,breadcrumbs:A,tabs:S,showBottomBorder:C=!0,unwrapped:P=!1})=>{(0,s.useEffect)(()=>{n.Ay.setApiRoot(v),n.Ay.setApiNonce(b)},[v,b]);const E=(0,a.A)(p.A["admin-page"],"jp-admin-page",t,{[p.A.background]:m,[p.A["without-bottom-border"]]:S||!C}),N=(0,s.useCallback)(async()=>{try{const e=await n.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,i.sprintf)(/* translators: %s: an error message. */
__("There was an error testing Jetpack. Error: %s","jetpack-videopress-pkg"),e.message))}},[]);return r&&(_||A)?(0,h.jsx)("div",{className:E,children:(0,h.jsxs)(o.A,{className:"jp-admin-page__page",visual:k||(0,h.jsx)(l.A,{showText:!1,height:20}),breadcrumbs:A,title:_,subTitle:x,actions:j,showSidebarToggle:!1,children:[S,P?e:(0,h.jsx)(u.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(d.A,{children:e})}),f&&(0,h.jsx)(c.A,{menu:y})]})}):(0,h.jsxs)("div",{className:E,children:[r&&(0,h.jsx)(u.A,{horizontalSpacing:5,children:(0,h.jsxs)(d.A,{className:(0,a.A)(p.A["admin-page-header"],"jp-admin-page-header"),children:[w||(0,h.jsx)(l.A,{}),g&&(0,h.jsx)("code",{className:p.A["sandbox-domain-badge"],onClick:N,onKeyDown:N,role:"button",tabIndex:0,title:`Sandboxing via ${g}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,h.jsx)(u.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(d.A,{children:e})}),f&&(0,h.jsx)(c.A,{menu:y})]})}},5640(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9282),o=r(790);const i=({children:e})=>(0,o.jsx)("div",{className:n.A.section,children:e})},766(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6996),o=r(790);const i=({children:e})=>(0,o.jsx)("div",{className:n.A["section-hero"],children:e})},8907(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(7723),o=r(3022),i=r(790);const __=n.__,a=({title:e=__("An Automattic Airline","jetpack-videopress-pkg"),height:t=7,className:r,...n})=>(0,i.jsxs)("svg",{role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,o.A)("jp-automattic-byline-logo",r),...n,children:[(0,i.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,i.jsx)("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),(0,i.jsx)("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),(0,i.jsx)("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})]})},1112(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(6427),o=r(7723),i=r(3109),a=r(1866),s=r(3022),c=r(1609),l=r(7934),d=r(790);const __=o.__,u=(0,c.forwardRef)((e,t)=>{const{children:r,variant:o="primary",size:c="normal",weight:u="bold",icon:p,iconSize:h,disabled:f,isDestructive:m,isLoading:g,isExternalLink:v,className:b,text:y,fullWidth:w,..._}=e,x=(0,s.A)(l.A.button,b,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(p),[l.A.loading]:g,[l.A.regular]:"regular"===u,[l.A["full-width"]]:w,[l.A["is-icon-button"]]:Boolean(p)&&!r}),k="normal"===c?20:16,j=v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{size:k,icon:a.A,className:l.A["external-icon"]}),(0,d.jsx)(n.VisuallyHidden,{as:"span",children:/* translators: accessibility text */
__("(opens in a new tab)","jetpack-videopress-pkg")})]}),A=v?"_blank":void 0,S=r?.[0]&&null!==r[0]&&"components-tooltip"!==r?.[0]?.props?.className,C={ref:t,target:A,variant:o,className:(0,s.A)(x,{"has-text":!!p&&S}),icon:v?void 0:p,iconSize:h,disabled:f,"aria-disabled":f,isDestructive:m,text:y,..._};return(0,d.jsxs)(n.Button,{...C,children:[g&&(0,d.jsx)(n.Spinner,{}),(0,d.jsx)("span",{children:r}),j]})});u.displayName="Button";const p=u},597(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(6427),o=r(3109),i=r(8847),a=r(3022),s=r(1609),c=r(1112),l=(r(7191),r(790));const d=e=>({"top-end":"top left",top:"top center","top-start":"top right","bottom-end":"bottom left",bottom:"bottom center","bottom-start":"bottom right"}[e]),u=({className:e="",iconClassName:t="",placement:r="bottom-end",animate:u=!0,iconCode:p=i.A,iconSize:h=18,offset:f=10,title:m,children:g,popoverAnchorStyle:v="icon",forceShow:b=!1,hoverShow:y=!1,wide:w=!1,inline:_=!0,shift:x=!1})=>{const[k,j]=(0,s.useState)(!1),[A,S]=(0,s.useState)(null),C=(0,s.useCallback)(()=>j(!1),[j]),P=(0,s.useCallback)(e=>{e.preventDefault(),j(!k)},[k,j]),E={position:d(r),placement:r,animate:u,noArrow:!1,resize:!1,flip:!1,offset:f,focusOnMount:"firstElement",onClose:C,className:"icon-tooltip-container",inline:_,shift:x},N="wrapper"===v,T=(0,a.A)("icon-tooltip-wrapper",e),F={left:N?0:-(62-h/2)+"px"},R=N&&b,O=(0,s.useCallback)(()=>{y&&(A&&(clearTimeout(A),S(null)),j(!0))},[y,A]),U=(0,s.useCallback)(()=>{if(y){const e=setTimeout(()=>{j(!1),S(null)},100);S(e)}},[y]);return(0,l.jsxs)("div",{className:T,"data-testid":"icon-tooltip_wrapper",onMouseEnter:O,onMouseLeave:U,children:[!N&&(0,l.jsx)(c.A,{variant:"link",onMouseDown:P,children:(0,l.jsx)(o.A,{className:t,icon:p,size:h})}),(0,l.jsx)("div",{className:(0,a.A)("icon-tooltip-helper",{"is-wide":w}),style:F,children:(R||k)&&(0,l.jsx)(n.Popover,{...E,children:(0,l.jsxs)("div",{children:[m&&(0,l.jsx)("div",{className:"icon-tooltip-title",children:m}),(0,l.jsx)("div",{className:"icon-tooltip-content",children:g})]})})})]})}},8250(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(7999),o=r(7723),i=r(1220),a=r(9968),s=r(9654),c=r(3022),l=r(3924),d=r(8907),u=(r(5250),r(7142)),p=r(790);const __=o.__,h=({className:e,menu:t,...r})=>{let o=[];return(0,n.isWpcomPlatformSite)()||window?.JetpackNetworkAdminData||(o=[{label:__("Products","jetpack-videopress-pkg"),href:(0,n.getAdminUrl)("admin.php?page=my-jetpack#/products")},{label:__("Help","jetpack-videopress-pkg"),href:(0,n.getAdminUrl)("admin.php?page=my-jetpack#/help")},...o]),t&&(o=[...o,...t]),(0,p.jsxs)(i.B,{render:(0,p.jsx)("footer",{}),className:(0,c.A)("jetpack-footer",e),"aria-label":__("Jetpack","jetpack-videopress-pkg"),role:"contentinfo",direction:"row",justify:"flex-start",align:"center",wrap:"wrap",gap:"xl",...r,children:[(0,p.jsxs)(i.B,{className:"jetpack-footer__logo",direction:"row",gap:"sm",align:"center",children:[(0,p.jsx)(u.A,{showText:!1,height:16,"aria-hidden":"true"}),(0,p.jsx)(a.E,{variant:"body-md",children:"Jetpack"})]}),(0,p.jsx)(i.B,{render:(0,p.jsx)("ul",{}),direction:"row",gap:"lg",wrap:"wrap",children:o.map(e=>(0,p.jsx)("li",{children:(0,p.jsx)(a.E,{variant:"body-md",className:"jetpack-footer__menu-item",render:e.href?(0,p.jsx)(s.N,{href:e.href,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0}):(0,p.jsx)(s.N,{render:(0,p.jsx)("span",{}),tabIndex:0,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0,role:"button"}),children:e.label})},e.label))}),(0,p.jsx)("a",{className:"jetpack-footer__a8c",href:(0,l.A)("a8c-about"),rel:"noopener noreferrer",target:"_blank",children:(0,p.jsx)(d.A,{height:8})})]})}},7142(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(7723),o=r(3022),i=r(790);const __=n.__,a=({logoColor:e="#069e08",showText:t=!0,className:r,height:n=32,title:a,...s})=>{const c=t?"0 0 118 32":"0 0 32 32",l=a??__("Jetpack Logo","jetpack-videopress-pkg");return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,o.A)("jetpack-logo",r),"aria-labelledby":"jetpack-logo-title",height:n,...s,role:"img",children:[(0,i.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,i.jsx)("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),(0,i.jsx)("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),(0,i.jsx)("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),(0,i.jsx)("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),(0,i.jsx)("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),(0,i.jsx)("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),(0,i.jsx)("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})]})]})}},8509(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(3022),o=r(1609),i=r(6727);const a=Number(i.A.smcols),s=Number(i.A.mdcols),c=Number(i.A.lgcols),l=e=>{const{children:t,tagName:r="div",className:l}=e,d=Math.min(a,"number"==typeof e.sm?e.sm:a),u=Math.min(a,"object"==typeof e.sm?e.sm.start:0),p=Math.min(a,"object"==typeof e.sm?e.sm.end:0),h=Math.min(s,"number"==typeof e.md?e.md:s),f=Math.min(s,"object"==typeof e.md?e.md.start:0),m=Math.min(s,"object"==typeof e.md?e.md.end:0),g=Math.min(c,"number"==typeof e.lg?e.lg:c),v=Math.min(c,"object"==typeof e.lg?e.lg.start:0),b=Math.min(c,"object"==typeof e.lg?e.lg.end:0),y=(0,n.A)(l,{[i.A[`col-sm-${d}`]]:!(u&&p),[i.A[`col-sm-${u}-start`]]:u>0,[i.A[`col-sm-${p}-end`]]:p>0,[i.A[`col-md-${h}`]]:!(f&&m),[i.A[`col-md-${f}-start`]]:f>0,[i.A[`col-md-${m}-end`]]:m>0,[i.A[`col-lg-${g}`]]:!(v&&b),[i.A[`col-lg-${v}-start`]]:v>0,[i.A[`col-lg-${b}-end`]]:b>0});return(0,o.createElement)(r,{className:y},t)}},5918(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(3022),o=r(1609),i=r(4824);const a=({children:e,fluid:t=!1,tagName:r="div",className:a,horizontalGap:s=1,horizontalSpacing:c=1},l)=>{const d=(0,o.useMemo)(()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${s} )`}},[s,c]),u=(0,n.A)(a,i.A.container,{[i.A.fluid]:t});return(0,o.createElement)(r,{className:u,style:d,ref:l},e)},s=(0,o.forwardRef)(a)},1876(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(3022),o=r(7682),i=r(790);const a=({children:e=null,width:t=null,height:r=null,className:a=""})=>(0,i.jsx)("div",{className:(0,n.A)(o.A.placeholder,a),style:{width:t,height:r},children:e})},9245(e,t,r){"use strict";r.d(t,{Ay:()=>x,N0:()=>_,eY:()=>y,i7:()=>w});var n=r(9491),o=r(7723),i=r(3109),a=r(8901),s=r(5995),c=r(3022),l=r(1609),d=r(597),u=r(5879),p=r(7425),h=r(4762),f=r(790);const __=o.__,m=__("Included","jetpack-videopress-pkg"),g=__("Not included","jetpack-videopress-pkg"),v=__("Coming soon","jetpack-videopress-pkg"),b=(0,l.createContext)(void 0),y=({isIncluded:e=!1,isComingSoon:t=!1,index:r=0,label:u=null,tooltipInfo:y,tooltipTitle:w,tooltipClassName:_=""})=>{const x=(0,n.useViewportMatch)("large"),k=(0,l.useContext)(b)[r],j=""===u,A=t||e,S=k.name,C=k.tooltipInfo,P=k.tooltipTitle,E=y||!x&&C,N=((e,t,r)=>e?{lg:v,
// translators: %s: Name of the current feature
default:(0,o.sprintf)(__("%s coming soon","jetpack-videopress-pkg"),r)}:{lg:t?m:g,default:t?r:(0,o.sprintf)(/* translators: %s: Name of the current feature */
__("%s not included","jetpack-videopress-pkg"),r)})(t,e,S),T=x?N.lg:N.default;return j?(0,f.jsx)("div",{className:(0,c.A)(h.A.item,h.A.value,h.A.empty)}):(0,f.jsxs)("div",{className:(0,c.A)(h.A.item,h.A.value),children:[(0,f.jsx)(i.A,{className:(0,c.A)(h.A.icon,A?h.A["icon-check"]:h.A["icon-cross"]),size:32,icon:A?a.A:s.A}),(0,f.jsx)(p.Ay,{variant:"body-small",children:u||T}),E&&(0,f.jsx)(d.A,{title:w||P,iconClassName:h.A["popover-icon"],className:(0,c.A)(h.A.popover,_),placement:"bottom-end",iconSize:14,offset:4,wide:Boolean(w&&y),inline:!1,shift:!0,children:(0,f.jsx)(p.Ay,{variant:"body-small",component:"div",children:y||C})})]})},w=({title:e,children:t})=>(0,f.jsxs)("div",{className:h.A.headerContainer,children:[e&&(0,f.jsx)(p.Ay,{variant:"headline-small",className:h.A.title,children:e}),(0,f.jsx)("div",{className:h.A.header,children:t})]}),_=({primary:e=!1,children:t,className:r})=>{let n=0;return(0,f.jsx)("div",{className:(0,c.A)(h.A.card,{[h.A["is-primary"]]:e},r),children:l.Children.map(t,e=>{const t=e;return t.type===y?(n++,(0,l.cloneElement)(t,{index:n-1})):t})})},x=({title:e,headerLogo:t,items:r,children:o,showIntroOfferDisclaimer:i=!1})=>{const a=(0,n.useViewportMatch)("large");return(0,f.jsxs)(b.Provider,{value:r,children:[(0,f.jsx)("div",{className:(0,c.A)(h.A.container,{[h.A["is-viewport-large"]]:a}),style:{"--rows":r.length+1,"--columns":l.Children.toArray(o).length+1},children:(0,f.jsxs)("div",{className:h.A.table,children:[(0,f.jsxs)("div",{children:[t&&(0,f.jsx)("div",{className:h.A["header-logo"],children:t}),(0,f.jsx)(p.Ay,{variant:"headline-small",className:h.A.tableTitle,children:e})]}),a&&r.map((e,t)=>e.name?(0,f.jsxs)("div",{className:(0,c.A)(h.A.item,h.A.feature,{[h.A["last-feature"]]:t===r.length-1}),children:[(0,f.jsx)(p.Ay,{variant:"body-small",children:(0,f.jsx)("strong",{children:e.name})}),e.tooltipInfo&&(0,f.jsx)(d.A,{title:e.tooltipTitle,iconClassName:h.A["popover-icon"],className:h.A.popover,placement:e.tooltipPlacement?e.tooltipPlacement:"bottom-end",iconSize:14,offset:4,wide:Boolean(e.tooltipTitle&&e.tooltipInfo),inline:!1,shift:!0,children:(0,f.jsx)(p.Ay,{variant:"body-small",children:e.tooltipInfo})})]},t):(0,f.jsx)("div",{className:(0,c.A)(h.A.item,h.A.feature,h.A.empty)},t)),o]})}),(0,f.jsx)("div",{className:h.A["tos-container"],children:(0,f.jsxs)("div",{className:h.A.tos,children:[i&&(0,f.jsx)(p.Ay,{variant:"body-small",children:__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-videopress-pkg")}),(0,f.jsx)(u.A,{multipleButtons:!0})]})})]})}},489(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(7723),o=r(3022),i=r(7425),a=r(2746),s=r(3211),c=r(790);const __=n.__,l=({price:e,offPrice:t,currency:r="",showNotOffPrice:n=!0,hideDiscountLabel:l=!0,promoLabel:d="",legend:u=__("/month, paid yearly","jetpack-videopress-pkg"),isNotConvenientPrice:p=!1,hidePriceFraction:h=!1,children:f,variant:m="default"})=>{if(null==e&&null==t||!r)return null;n=n&&null!=t;const g="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,v=!l&&g&&g>0?g+__("% off","jetpack-videopress-pkg"):null;return"simple"===m?(0,c.jsxs)("div",{className:s.A.simple,children:[(0,c.jsxs)("div",{className:s.A.currentPrice,children:[(0,c.jsx)(a.g,{value:t??e,currency:r,isOff:!p,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:u})]}),n&&(0,c.jsxs)("div",{className:s.A.originalPrice,children:[(0,c.jsx)(a.g,{value:e,currency:r,isOff:!1,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:g&&g>0&&g+__("% off the first year","jetpack-videopress-pkg")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:s.A.container,children:(0,c.jsxs)("div",{className:(0,o.A)(s.A["price-container"],"product-price_container"),children:[(0,c.jsx)(a.g,{value:t??e,currency:r,isOff:!p,hidePriceFraction:h}),n&&(0,c.jsx)(a.g,{value:e,currency:r,isOff:!1,hidePriceFraction:h}),v&&(0,c.jsx)(i.Ay,{className:(0,o.A)(s.A["promo-label"],"product-price_promo_label"),children:v})]})}),(0,c.jsxs)("div",{className:s.A.footer,children:[f||(0,c.jsx)(i.Ay,{className:(0,o.A)(s.A.legend,"product-price_legend"),children:u}),d&&(0,c.jsx)(i.Ay,{className:(0,o.A)(s.A["promo-label"],"product-price_promo_label"),children:d})]})]})}},2746(e,t,r){"use strict";r.d(t,{g:()=>c});var n=r(4268),o=r(3022),i=r(7425),a=r(3211),s=r(790);const c=({value:e,currency:t,isOff:r,hidePriceFraction:c,inline:l=!1})=>{const d=(0,o.A)(a.A.price,"product-price_price",{[a.A["is-not-off-price"]]:!r,[a.A["price-inline"]]:l}),{symbol:u,integer:p,fraction:h}=(0,n.vA)(e,t),f=!c||!h.endsWith("00");return(0,s.jsxs)(i.Ay,{className:d,variant:"headline-medium",component:"p",children:[l?(0,s.jsxs)(s.Fragment,{children:[u,p]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Ay,{className:a.A.symbol,component:"sup",variant:"title-medium",children:u}),p]}),f&&(0,s.jsx)(i.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction",children:(0,s.jsx)("strong",{children:h})})]})}},5879(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(6087),o=r(7723),i=r(9654),a=r(3022),s=r(3924),c=r(7425),l=(r(9918),r(790));const __=o.__,d=({multipleButtonsLabels:e})=>Array.isArray(e)&&e.length>1?(0,n.createInterpolateElement)((0,o.sprintf)(/* translators: %1$s is button label 1 and %2$s is button label 2 */
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-videopress-pkg"),e[0],e[1]),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,n.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-videopress-pkg"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({agreeButtonLabel:e})=>(0,n.createInterpolateElement)((0,o.sprintf)(/* translators: %s is a button label */
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-videopress-pkg"),e),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=()=>(0,n.createInterpolateElement)(__("By continuing you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site’s data</shareDetailsLink> with us. We’ll check if that email is linked to an existing WordPress.com account or create a new one instantly.","jetpack-videopress-pkg"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),h=({slug:e,children:t})=>(0,l.jsx)(i.N,{openInNewTab:!0,className:"terms-of-service__link",href:(0,s.A)(e),children:t}),f=({className:e,multipleButtons:t,agreeButtonLabel:r,isTextOnly:n,...o})=>(0,l.jsx)(c.Ay,{className:(0,a.A)(e,"terms-of-service"),...o,children:n?(0,l.jsx)(p,{}):t?(0,l.jsx)(d,{multipleButtonsLabels:t}):(0,l.jsx)(u,{agreeButtonLabel:r})})},110(e,t,r){"use strict";r.d(t,{Q:()=>n,Z:()=>o});const n={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},o=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},7425(e,t,r){"use strict";r.d(t,{Ay:()=>l,hE:()=>d});var n=r(3022),o=r(1609),i=r(110),a=r(8763),s=r(790);const c=(0,o.forwardRef)(({variant:e="body",children:t,component:r,className:c,...l},d)=>{const u=r||i.Q[e]||"span",p=(0,o.useMemo)(()=>i.Z.reduce((e,t)=>(void 0!==l[t]&&(e+=a.A[`${t}-${l[t]}`]+" ",delete l[t]),e),""),[l]);return(0,s.jsx)(u,{className:(0,n.A)(a.A.reset,a.A[e],c,p),...l,ref:d,children:t})});c.displayName="Text";const l=c,d=({children:e,size:t="medium",...r})=>(0,s.jsx)(c,{variant:`title-${t}`,mb:1,...r,children:e})},723(e,t,r){"use strict";r.d(t,{Ay:()=>p});var n=r(1609),o=r(8706),i=r(790);const a={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},s={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},d={},u=(e,t,r)=>{const n={...a,...s,...c,...l};for(const t in n)e.style.setProperty(t,n[t]);r&&e.classList.add(o.A.global),t&&(d[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:r,withGlobalStyles:o=!0})=>{const a=(0,n.useRef)(),s=d?.[r]?.provided;return(0,n.useLayoutEffect)(()=>{if(!s)return t?u(t,r,o):void(a?.current&&u(a.current,r,o))},[t,a,s,r,o]),t?(0,i.jsx)(i.Fragment,{children:e}):(0,i.jsx)("div",{ref:a,children:e})}},3924(e,t,r){"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(r.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(r).map(e=>e+"="+r[e]).join("&")}r.d(t,{A:()=>n})},6439(e,t,r){let n={};try{n=r(3018)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),n={missingConfig:!0}}const o=e=>Object.hasOwn(n,e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return n[e]}}},3673(e,t,r){"use strict";r.d(t,{FALLBACK_CURRENCY:()=>o,FALLBACK_LOCALE:()=>n});r(8443);const n="en",o="USD"},1452(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(3673),o=r(9980),i=r(1167);const a=function(){let e,t,r;const a=()=>{const t="undefined"!=typeof window?window.wp?.date?.getSettings?.()?.l10n?.locale:void 0,r="undefined"!=typeof window?window?.navigator?.language:void 0;return(e??(t||r)??n.FALLBACK_LOCALE).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},setCurrencyOverrides:e=>{r=e},formatNumber:(e,{decimals:t=0,forceLatin:r=!0,numberFormatOptions:n={}}={})=>{try{return(0,i.j)({browserSafeLocale:a(),decimals:t,forceLatin:r,numberFormatOptions:n}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:r=!0,numberFormatOptions:n={}}={})=>{try{return(0,i.c)({browserSafeLocale:a(),decimals:t,forceLatin:r,numberFormatOptions:n}).format(e)}catch{return String(e)}},formatCurrency:(e,n,{stripZeros:i=!1,isSmallestUnit:s=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,o.u)({number:e,currency:n,browserSafeLocale:a(),stripZeros:i,isSmallestUnit:s,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:r}),getCurrencyObject:(e,n,{stripZeros:i=!1,isSmallestUnit:s=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,o.v)({number:e,currency:n,browserSafeLocale:a(),stripZeros:i,isSmallestUnit:s,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:r})}}},3328(e,t,r){"use strict";r.d(t,{J:()=>c});var n=r(6941),o=r.n(n),i=r(3673);const a=o()("number-formatters:get-cached-formatter"),s=new Map;function c({locale:e,fallbackLocale:t=i.FALLBACK_LOCALE,options:r,retries:n=1}){const o=JSON.stringify([e,r]);try{return s.get(o)??s.set(o,new Intl.NumberFormat(e,r)).get(o)}catch(o){if(a(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),n)return c({locale:t,options:r,retries:n-1});throw o}}},4268(e,t,r){"use strict";r.d(t,{ZV:()=>s,vA:()=>d});const n=(0,r(1452).A)(),{setLocale:o,setGeoLocation:i,setCurrencyOverrides:a,formatNumber:s,formatNumberCompact:c,formatCurrency:l,getCurrencyObject:d}=n},6673(e,t,r){"use strict";r.d(t,{a:()=>n});const n={AED:{symbol:"د.إ.‏"},AFN:{symbol:"؋"},ALL:{symbol:"Lek"},AMD:{symbol:"֏"},ANG:{symbol:"ƒ"},AOA:{symbol:"Kz"},ARS:{symbol:"$"},AUD:{symbol:"A$"},AWG:{symbol:"ƒ"},AZN:{symbol:"₼"},BAM:{symbol:"КМ"},BBD:{symbol:"Bds$"},BDT:{symbol:"৳"},BGN:{symbol:"лв."},BHD:{symbol:"د.ب.‏"},BIF:{symbol:"FBu"},BMD:{symbol:"$"},BND:{symbol:"$"},BOB:{symbol:"Bs"},BRL:{symbol:"R$"},BSD:{symbol:"$"},BTC:{symbol:"Ƀ"},BTN:{symbol:"Nu."},BWP:{symbol:"P"},BYR:{symbol:"р."},BZD:{symbol:"BZ$"},CAD:{symbol:"C$"},CDF:{symbol:"FC"},CHF:{symbol:"CHF"},CLP:{symbol:"$"},CNY:{symbol:"¥"},COP:{symbol:"$"},CRC:{symbol:"₡"},CUC:{symbol:"CUC"},CUP:{symbol:"$MN"},CVE:{symbol:"$"},CZK:{symbol:"Kč"},DJF:{symbol:"Fdj"},DKK:{symbol:"kr."},DOP:{symbol:"RD$"},DZD:{symbol:"د.ج.‏"},EGP:{symbol:"ج.م.‏"},ERN:{symbol:"Nfk"},ETB:{symbol:"ETB"},EUR:{symbol:"€"},FJD:{symbol:"FJ$"},FKP:{symbol:"£"},GBP:{symbol:"£"},GEL:{symbol:"Lari"},GHS:{symbol:"₵"},GIP:{symbol:"£"},GMD:{symbol:"D"},GNF:{symbol:"FG"},GTQ:{symbol:"Q"},GYD:{symbol:"G$"},HKD:{symbol:"HK$"},HNL:{symbol:"L."},HRK:{symbol:"kn"},HTG:{symbol:"G"},HUF:{symbol:"Ft"},IDR:{symbol:"Rp"},ILS:{symbol:"₪"},INR:{symbol:"₹"},IQD:{symbol:"د.ع.‏"},IRR:{symbol:"﷼"},ISK:{symbol:"kr."},JMD:{symbol:"J$"},JOD:{symbol:"د.ا.‏"},JPY:{symbol:"¥"},KES:{symbol:"S"},KGS:{symbol:"сом"},KHR:{symbol:"៛"},KMF:{symbol:"CF"},KPW:{symbol:"₩"},KRW:{symbol:"₩"},KWD:{symbol:"د.ك.‏"},KYD:{symbol:"$"},KZT:{symbol:"₸"},LAK:{symbol:"₭"},LBP:{symbol:"ل.ل.‏"},LKR:{symbol:"₨"},LRD:{symbol:"L$"},LSL:{symbol:"M"},LYD:{symbol:"د.ل.‏"},MAD:{symbol:"د.م.‏"},MDL:{symbol:"lei"},MGA:{symbol:"Ar"},MKD:{symbol:"ден."},MMK:{symbol:"K"},MNT:{symbol:"₮"},MOP:{symbol:"MOP$"},MRO:{symbol:"UM"},MTL:{symbol:"₤"},MUR:{symbol:"₨"},MVR:{symbol:"MVR"},MWK:{symbol:"MK"},MXN:{symbol:"MX$"},MYR:{symbol:"RM"},MZN:{symbol:"MT"},NAD:{symbol:"N$"},NGN:{symbol:"₦"},NIO:{symbol:"C$"},NOK:{symbol:"kr"},NPR:{symbol:"₨"},NZD:{symbol:"NZ$"},OMR:{symbol:"﷼"},PAB:{symbol:"B/."},PEN:{symbol:"S/."},PGK:{symbol:"K"},PHP:{symbol:"₱"},PKR:{symbol:"₨"},PLN:{symbol:"zł"},PYG:{symbol:"₲"},QAR:{symbol:"﷼"},RON:{symbol:"lei"},RSD:{symbol:"Дин."},RUB:{symbol:"₽"},RWF:{symbol:"RWF"},SAR:{symbol:"﷼"},SBD:{symbol:"S$"},SCR:{symbol:"₨"},SDD:{symbol:"LSd"},SDG:{symbol:"£‏"},SEK:{symbol:"kr"},SGD:{symbol:"S$"},SHP:{symbol:"£"},SLL:{symbol:"Le"},SOS:{symbol:"S"},SRD:{symbol:"$"},STD:{symbol:"Db"},SVC:{symbol:"₡"},SYP:{symbol:"£"},SZL:{symbol:"E"},THB:{symbol:"฿"},TJS:{symbol:"TJS"},TMT:{symbol:"m"},TND:{symbol:"د.ت.‏"},TOP:{symbol:"T$"},TRY:{symbol:"TL"},TTD:{symbol:"TT$"},TVD:{symbol:"$T"},TWD:{symbol:"NT$"},TZS:{symbol:"TSh"},UAH:{symbol:"₴"},UGX:{symbol:"USh"},USD:{},UYU:{symbol:"$U"},UZS:{symbol:"сўм"},VEB:{symbol:"Bs."},VEF:{symbol:"Bs. F."},VND:{symbol:"₫"},VUV:{symbol:"VT"},WST:{symbol:"WS$"},XAF:{symbol:"F"},XCD:{symbol:"$"},XOF:{symbol:"F"},XPF:{symbol:"F"},YER:{symbol:"﷼"},ZAR:{symbol:"R"},ZMW:{symbol:"ZK"},WON:{symbol:"₩"}}},9980(e,t,r){"use strict";r.d(t,{u:()=>g,v:()=>v});var n=r(6941),o=r.n(n),i=r(3673),a=r(3328),s=r(6673);const c=o()("number-formatters:number-format-currency");function l(e,t,r){if("USD"===e&&t&&""!==t&&"US"!==t)return{symbol:"US$",...r?.USD};const n=s.a[e],o=r?.[e];return n||o?{...n,...o}:void 0}function d(e,t,r){return l(e,t,r)?e:(c(`getValidCurrency was called with a non-existent currency "${e}"; falling back to ${i.FALLBACK_CURRENCY}`),i.FALLBACK_CURRENCY)}function u({number:e,currency:t,browserSafeLocale:r,forceLatin:n=!0,stripZeros:o,signForPositive:i}){const s=`${r}${n?"-u-nu-latn":""}`,c={style:"currency",currency:t,...o&&Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0},...i&&{signDisplay:"exceptZero"}};return(0,a.J)({locale:s,options:c})}const p={IDR:2,HUF:2};function h(e,t,r){return u({number:0,currency:t,browserSafeLocale:e,forceLatin:r}).resolvedOptions().maximumFractionDigits}function f(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}function m(e,t,r,n,o){if(isNaN(e))return c("formatCurrency was called with NaN"),0;if(n){Number.isInteger(e)||c("formatCurrency was called with isSmallestUnit and a float which will be rounded",e);const n=10**function(e,t,r){const n=r?.[e]?.decimal;return"number"==typeof n?n:p[e]??t}(r,t,o);return f(Math.round(e)/n,t)}return f(e,t)}const g=({number:e,browserSafeLocale:t,currency:r,stripZeros:n,isSmallestUnit:o,signForPositive:i,geoLocation:a,forceLatin:s,currencyOverrides:c})=>{const p=d(r,a,c),f=l(p,a,c),g=h(t,p,s);if(o&&void 0===g)throw new Error(`Could not determine currency precision for ${p} in ${t}`);const v=m(e,g??0,p,o,c);return u({number:v,currency:p,browserSafeLocale:t,forceLatin:s,stripZeros:n,signForPositive:i}).formatToParts(v).reduce((e,t)=>"currency"===t.type&&f?.symbol?e+f.symbol:e+t.value,"")},v=({number:e,browserSafeLocale:t,currency:r,stripZeros:n,isSmallestUnit:o,signForPositive:i,geoLocation:a,forceLatin:s,currencyOverrides:c})=>{const p=d(r,a,c),f=l(p,a,c),g=m(e,h(t,p,s)??0,p,o,c),v=u({number:g,currency:p,browserSafeLocale:t,forceLatin:s,stripZeros:n,signForPositive:i}).formatToParts(g);let b="",y="$",w="before",_=!1,x=!1,k="",j="";v.forEach(e=>{switch(e.type){case"currency":return y=f?.symbol??e.value,void(_&&(w="after"));case"group":case"integer":return k+=e.value,void(_=!0);case"decimal":case"fraction":return j+=e.value,_=!0,void(x=!0);case"minusSign":return void(b="-");case"plusSign":b="+"}});const A=!Number.isInteger(g)&&x;return{sign:b,symbol:y,symbolPosition:w,integer:k,fraction:j,hasNonZeroFraction:A,floatValue:g}}},1167(e,t,r){"use strict";r.d(t,{c:()=>i,j:()=>o});var n=r(3328);const o=({browserSafeLocale:e,decimals:t=0,forceLatin:r=!0,numberFormatOptions:o={}})=>{const i=`${e}${r?"-u-nu-latn":""}`,a={minimumFractionDigits:t,maximumFractionDigits:t,...o};return(0,n.J)({locale:i,options:a})},i=({numberFormatOptions:e={},...t})=>o({...t,numberFormatOptions:{notation:"compact",maximumFractionDigits:1,...e}})},3536(e,t,r){"use strict";r.d(t,{A:()=>U});var n=r(5640),o=r(766),i=r(2947),a=r(8509),s=r(5918),c=r(7425),l=r(1112),d=r(9384),u=r(6427),p=r(9491),h=r(7723),f=r(8050),m=r(2472),g=r(1868),v=r(1475),b=r(4905),y=r(3022),w=r(1609),_=r(7770),x=r(6764),k=r(5036),j=r(9072),A=r(7520),S=r(3463),C=r(8575),P=r(2301),E=r(3322),N=r(7812),T=r(9668),F=r(9525),R=r(9257),O=r(790);const __=h.__,U=()=>{const{videos:e,uploadedVideoCount:t,localVideos:r,uploadedLocalVideoCount:h,hasVideos:f,hasLocalVideos:m,handleFilesUpload:g,handleLocalVideoUpload:v,loading:b,uploading:A,hasVideoPressPurchase:U}=(0,k.c)(),{canPerformAction:V,isRegistered:D,hasConnectedOwner:L,isUserConnected:z}=(0,j.J)(),{hasConnectionError:M}=(0,d.useConnectionErrorNotice)(),[B,$]=(0,w.useState)(!D),H=(0,p.useViewportMatch)("small","<"),G=(U||!f)&&V,{isDraggingOver:q,inputRef:W,handleFileInputChangeEvent:J,filterVideoFiles:K}=(0,S.A)({canDrop:G&&!b,dropElement:document,onSelectFiles:g});return(0,x.A)({pageViewEventName:"jetpack_videopress_admin_page_view"}),(0,O.jsxs)(i.A,{title:"VideoPress",subTitle:__("Professional quality, ad-free video hosting.","jetpack-videopress-pkg"),children:[(0,O.jsxs)("div",{className:(0,y.A)(R.A["files-overlay"],{[R.A.hover]:q&&G&&!b}),children:[(0,O.jsx)(c.Ay,{className:R.A["drop-text"],variant:"headline-medium",children:__("Drop files to upload","jetpack-videopress-pkg")}),(0,O.jsx)("input",{ref:W,type:"file",accept:_.Zd,className:R.A["file-input"],onChange:J})]}),B?(0,O.jsx)("div",{className:R.A["hero-shrink-guard"],children:(0,O.jsx)(o.A,{children:(0,O.jsx)(s.A,{horizontalSpacing:3,horizontalGap:3,children:(0,O.jsx)(a.A,{sm:4,md:8,lg:12,children:(0,O.jsx)(P.A,{onRedirecting:()=>$(!0)})})})})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:R.A["hero-shrink-guard"],children:(0,O.jsxs)(o.A,{children:[(0,O.jsx)(s.A,{horizontalSpacing:0,children:(0,O.jsx)(a.A,{children:(0,O.jsx)("div",{id:"jp-admin-notices",className:R.A["jetpack-videopress-jitm-card"]})})}),(0,O.jsxs)(s.A,{horizontalSpacing:6,horizontalGap:3,children:[M&&(0,O.jsx)(a.A,{children:(0,O.jsx)(d.ConnectionError,{})}),(!L||!z)&&(0,O.jsx)(a.A,{sm:4,md:8,lg:12,children:(0,O.jsx)(C.X,{})}),(0,O.jsxs)(a.A,{sm:4,md:8,lg:8,children:[(0,O.jsx)(c.Ay,{variant:"headline-small",mb:3,children:__("High quality, ad-free video","jetpack-videopress-pkg")}),U&&(0,O.jsx)(N.i,{className:R.A["storage-meter"]}),f?(0,O.jsx)(u.FormFileUpload,{onChange:e=>g(K(e.currentTarget.files)),accept:_.Zd,multiple:U,render:({openFileDialog:e})=>(0,O.jsx)(l.A,{fullWidth:H,onClick:e,isLoading:b,disabled:!G,children:__("Add new video","jetpack-videopress-pkg")}),__next40pxDefaultSize:!0}):(0,O.jsx)(c.Ay,{variant:"title-medium",children:__("Let's add your first video below!","jetpack-videopress-pkg")}),!U&&(0,O.jsx)(I,{hasUsedVideo:f})]})]})]})}),(0,O.jsx)(n.A,{children:(0,O.jsxs)(s.A,{horizontalSpacing:6,horizontalGap:10,children:[f?(0,O.jsx)(a.A,{sm:4,md:6,lg:12,children:(0,O.jsx)(F.ad,{videos:e,totalVideos:t,loading:b})}):(0,O.jsx)(a.A,{sm:4,md:6,lg:12,className:R.A["first-video-wrapper"],children:(0,O.jsx)(T.A,{className:R.A["upload-area"],onSelectFiles:g})}),m&&(0,O.jsx)(a.A,{sm:4,md:6,lg:12,children:(0,O.jsx)(F.DI,{videos:r,totalVideos:h,onUploadClick:v,uploading:A})})]})}),(0,O.jsx)(n.A,{children:(0,O.jsx)(E.M,{})})]})]})},V=__("You have used your free video upload","jetpack-videopress-pkg"),D=__("The free plan includes one video upload.","jetpack-videopress-pkg"),L=__("Unlock unlimited videos, 1TB of storage, and more!","jetpack-videopress-pkg"),I=({hasUsedVideo:e=!1})=>{const{adminUri:t,siteSuffix:r}=window.jetpackVideoPressInitialState,{product:n,hasVideoPressPurchase:o,isFetchingFeatures:i}=(0,A.j)(),{run:a}=(0,d.useProductCheckoutWorkflow)({siteSuffix:r,productSlug:n.productSlug,redirectUrl:t,useBlogIdSuffix:!0,from:"jetpack-videopress"}),{recordEventHandler:s}=(0,x.A)({});if(o||i)return null;const c=s("jetpack_videopress_upgrade_trigger_link_click",a),l=e?V:D,u=__("Upgrade","jetpack-videopress-pkg");return(0,O.jsxs)(f.b,{intent:"info",className:R.A["upgrade-trigger"],children:[(0,O.jsx)(m.h,{children:l}),(0,O.jsx)(g.V,{children:L}),(0,O.jsx)(v.E,{children:(0,O.jsx)(b.r,{onClick:c,children:u})})]})}},9525(e,t,r){"use strict";r.d(t,{DI:()=>C,ad:()=>S});var n=r(7425),o=r(1112),i=r(9491),a=r(6087),s=r(7723),c=r(743),l=r(2711),d=r(3022),u=r(1609),p=r(6212),h=r(8728),f=r(957),m=r(5333),g=r(8175),v=r(1755),b=r(6145),y=r(3793),w=r(9257),_=r(790);const __=s.__,_n=s._n,x="videopress-library-type",k="list",j="grid",A=({children:e,totalVideos:t=0,libraryType:r=k,onChangeType:a,hideFilter:p=!1,title:g,disabled:b})=>{const{isFetching:y,search:x}=(0,f.Ay)(),j=(0,h.o)(),A=(e,t=!0)=>{t&&j.deleteParam("page"),e?j.setParam("q",e):j.deleteParam("q"),j.update()},[S,C]=(0,u.useState)(j.getParam("q",""));(0,u.useEffect)(()=>{x&&x!==S&&(A(x,!1),C(x))},[x]);const P=(0,i.useViewportMatch)("large"),[E,N]=(0,u.useState)(!1),T=(0,s.sprintf)(/* translators: %s: the number of videos */
_n("%s Video","%s Videos",t,"jetpack-videopress-pkg"),String(t));return(0,_.jsxs)("div",{className:w.A["library-wrapper"],children:[(0,_.jsx)(n.Ay,{variant:"headline-small",mb:1,children:g}),!P&&(0,_.jsx)(n.Ay,{className:w.A["total-sm"],children:T}),(0,_.jsxs)("div",{className:w.A["total-filter-wrapper"],children:[P&&(0,_.jsx)(n.Ay,{children:T}),p?null:(0,_.jsxs)("div",{className:w.A["filter-wrapper"],children:[(0,_.jsx)(m.DO,{className:(0,d.A)(w.A["search-input"],{[w.A.small]:!P}),onSearch:A,value:S,loading:y,onChange:C,disabled:b}),(0,_.jsx)(v.Fr,{onClick:()=>N(e=>!e),isActive:E,disabled:b}),(0,_.jsx)(o.A,{variant:"tertiary",size:"small",icon:r===k?l.A:c.A,onClick:a})]})]}),E&&(0,_.jsx)(v.M2,{className:w.A["filter-section"]}),e]})},S=({videos:e,totalVideos:t,loading:r})=>{const o=(0,p.Zp)(),{search:i}=(0,f.Ay)(),c=[...e.filter(e=>e.error),...e.filter(e=>e.uploading),...e.filter(e=>!e.uploading&&!e.error).slice(0,6)],l=localStorage.getItem(x),[d,h]=(0,u.useState)(l??j),m=e?.some?.(e=>e.uploading),v=e=>{o(`/video/${e?.id}/edit`)},S=d===j?(0,_.jsx)(b.A,{videos:c,onVideoDetailsClick:v,loading:r,count:m?c.length:6}):(0,_.jsx)(y.A,{videos:c,onVideoDetailsClick:v,hidePlays:!0,loading:r});return(0,_.jsxs)(A,{totalVideos:t,onChangeType:()=>{h(e=>{const t=e===j?k:j;return localStorage.setItem(x,t),t})},libraryType:d,title:__("Your VideoPress library","jetpack-videopress-pkg"),children:[c.length>0||r?S:(0,_.jsx)(n.Ay,{children:i.trim()?(0,a.createInterpolateElement)((0,s.sprintf)(/* translators: %s: the search term */
__("No videos match your search for <em>%s</em>.","jetpack-videopress-pkg"),i),{em:(0,_.jsx)("em",{className:w.A["query-no-results"]})}):__("No videos match your filtering criteria.","jetpack-videopress-pkg")}),(0,_.jsx)(g.XL,{className:w.A.pagination})]})},C=({videos:e,totalVideos:t,loading:r,uploading:n,onUploadClick:o})=>(0,_.jsxs)(A,{totalVideos:t,hideFilter:!0,title:__("Local videos","jetpack-videopress-pkg"),children:[(0,_.jsx)(y.R,{videos:e,loading:r,onActionClick:o,uploading:n}),(0,_.jsx)(g.O6,{className:w.A.pagination})]})},6955(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(1112),o=r(9491),i=r(7723),a=r(1609),s=r(1757),c=r(790);const __=i.__,l=({text:e,value:t,onCopy:r,resetTime:i=3e3})=>{const l=__("Copied!","jetpack-videopress-pkg"),d=__("Copy","jetpack-videopress-pkg"),[u,p]=(0,a.useState)(!1),h=t||e,f=(0,o.useCopyToClipboard)(h,()=>{const e=setTimeout(()=>{p(!1),clearTimeout(e)},i);p(!0),r?.()});return(0,c.jsxs)("div",{className:s.A.wrapper,children:[(0,c.jsx)("input",{type:"text",value:e||t,onClick:e=>{e.currentTarget.select()},readOnly:!0}),(0,c.jsx)(n.A,{weight:"regular",variant:"secondary",size:"small",ref:f,children:u?l:d})]})}},3378(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(723),o=r(7425),i=r(1112),a=r(6427),s=r(7723),c=r(6936),l=r(790);const __=s.__,d=({onClose:e,onDelete:t})=>(0,l.jsx)(a.Modal,{title:__("Delete video","jetpack-videopress-pkg"),onRequestClose:e,className:c.A["delete-video-modal"],children:(0,l.jsx)(n.Ay,{children:(0,l.jsxs)("div",{children:[(0,l.jsx)(o.Ay,{children:__("This action cannot be undone.","jetpack-videopress-pkg")}),(0,l.jsxs)("div",{className:c.A["modal-actions"],children:[(0,l.jsx)(i.A,{className:c.A["modal-action-button"],variant:"secondary",weight:"bold",onClick:e,children:__("Cancel","jetpack-videopress-pkg")}),(0,l.jsx)(i.A,{className:c.A["modal-action-button"],isDestructive:!0,variant:"primary",weight:"bold",onClick:t,children:__("Delete","jetpack-videopress-pkg")})]})]})})})},2784(e,t,r){"use strict";r.d(t,{A:()=>V});var n=r(5640),o=r(2947),i=r(8509),a=r(5918),s=r(7425),c=r(1876),l=r(6427),d=r(7723),u=r(3109),p=r(1490),h=r(3022),f=r(1609),m=r(6212),g=r(6151),v=r(7726),b=r(7121),y=r(2843),w=r(6720),_=r(2439),x=r(8962),k=r(9072),j=r(4951),A=r(957),S=r(5333),C=r(4565),P=r(3287),E=r(5419),N=r(4231),T=r(90),F=r(2267),R=r(790);const __=d.__,O=()=>{},U=({title:e,onChangeTitle:t,description:r,onChangeDescription:n,loading:o=!1,disabled:i=!1,actions:a})=>{const{hasIncompleteChapters:s}=(0,_.A)(r);return(0,R.jsxs)(R.Fragment,{children:[o?(0,R.jsx)(c.A,{height:88}):(0,R.jsx)(S.Ay,{value:e,label:__("Title","jetpack-videopress-pkg"),name:"title",onChange:t,onEnter:O,disabled:i,size:"large"}),o?(0,R.jsx)(c.A,{height:133,className:T.A.input}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(S.Ay,{value:r,className:T.A.input,label:__("Description","jetpack-videopress-pkg"),name:"description",onChange:n,onEnter:O,disabled:i,type:"textarea",size:"large",rows:8}),(0,R.jsx)("div",{className:T.A["chapters-help-container"],children:s?(0,R.jsx)(y.A,{className:T.A["incomplete-chapters-notice"]}):(0,R.jsx)("div",{className:T.A["learn-more"],children:(0,R.jsx)(g.A,{})})})]}),!o&&a&&(0,R.jsx)("div",{className:T.A.actions,children:a})]})},V=()=>{const{guid:e,id:t,duration:r,posterImage:d,filename:g,uploadDate:y,url:_,width:S,height:O,title:V,description:D,rating:L,privacySetting:I,allowDownload:z,displayEmbed:M,isPrivate:B,isFetchingPlaybackToken:$,hasChanges:H,updating:G,updated:q,deleted:W,isFetching:J,isDeleting:K,handleSaveChanges:Z,handleDelete:Q,setTitle:X,setDescription:Y,setRating:ee,setPrivacySetting:te,setAllowDownload:re,setDisplayEmbed:ne,processing:oe,useVideoAsThumbnail:ie,selectedTime:ae,handleConfirmFrame:se,handleCloseSelectFrame:ce,handleOpenSelectFrame:le,handleVideoFrameSelected:de,frameSelectorIsOpen:ue,selectPosterImageFromLibrary:pe,posterImageSource:he,libraryAttachment:fe,isUpdatingPoster:me}=(0,F.A)(),{canPerformAction:ge}=(0,k.J)(),ve=__("There are unsaved changes. Are you sure you want to exit?","jetpack-videopress-pkg"),be=H&&!q&&!W&&ge,ye=oe||me;(0,j.A)({shouldPrevent:be||ye,message:ve});const we=(0,m.Zp)(),{page:_e}=(0,A.mo)();(0,f.useEffect)(()=>{if(!0===W){const e=Number(_e)>1?`/?page=${_e}`:"/";we(e)}},[W]),ge||we("/");let xe=d;"video"===he&&ie?xe=(0,R.jsx)(w.L,{src:_,currentTime:ae,videoRef:null}):"upload"===he&&(xe=fe.url);const ke=J||$,je=K||G,Ae=`[videopress ${e}${S?` w=${S}`:""}${O?` h=${O}`:""}]`,Se=Number(_e)>1?`#/?page=${_e}`:"#/",Ce=(0,R.jsx)("nav",{"aria-label":__("Breadcrumbs","jetpack-videopress-pkg"),className:T.A.breadcrumbs,children:(0,R.jsxs)(l.__experimentalHStack,{as:"ul",className:"admin-ui-breadcrumbs__list",spacing:0,justify:"flex-start",alignment:"center",children:[(0,R.jsx)("li",{children:(0,R.jsx)("a",{href:Se,className:T.A["breadcrumb-link"],children:"VideoPress"})}),(0,R.jsx)("li",{children:(0,R.jsx)("h1",{className:T.A["breadcrumb-current"],children:__("Edit","jetpack-videopress-pkg")})})]})}),Pe=[(0,R.jsx)(P.A,{videoId:t,disabled:je||ke,onDelete:Q},"video-details-actions")];return(0,R.jsxs)(R.Fragment,{children:[ue&&(0,R.jsx)(N.A,{handleCloseSelectFrame:ce,url:_,handleVideoFrameSelected:de,selectedTime:ae,handleConfirmFrame:se}),(0,R.jsxs)(o.A,{breadcrumbs:Ce,subTitle:__("Professional quality, ad-free video hosting.","jetpack-videopress-pkg"),actions:Pe,children:[(0,R.jsx)(a.A,{horizontalSpacing:0,children:(0,R.jsx)(i.A,{children:(0,R.jsx)("div",{id:"jp-admin-notices",className:T.A["jetpack-videopress-jitm-card"]})})}),(0,R.jsx)(n.A,{children:(0,R.jsxs)(a.A,{horizontalSpacing:6,horizontalGap:10,children:[(0,R.jsx)(i.A,{sm:4,md:8,lg:7,children:(0,R.jsx)(U,{title:V??"",onChangeTitle:X,description:D??"",onChangeDescription:Y,loading:ke,disabled:je,actions:(0,R.jsx)(l.Button,{variant:"primary",disabled:!H||je||ke,onClick:Z,isBusy:je||ke,children:__("Save changes","jetpack-videopress-pkg")})})}),(0,R.jsxs)(i.A,{sm:4,md:8,lg:{start:9,end:12},children:[(0,R.jsx)(E.Ay,{thumbnail:xe,loading:ke,processing:oe||me,deleting:K,updating:G,duration:r,editable:!0,onSelectFromVideo:le,onUploadImage:pe}),(0,R.jsx)(C.A,{filename:g??"",uploadDate:y??"",shortcode:Ae??"",loading:ke,guid:e,isPrivate:B}),(0,R.jsxs)("div",{className:T.A["side-fields"],children:[ke?(0,R.jsx)(c.A,{height:40,className:(0,h.A)(T.A.field)}):(0,R.jsx)(l.SelectControl,{className:T.A.field,value:I,label:__("Privacy","jetpack-videopress-pkg"),onChange:e=>te(e),disabled:je,prefix:(0,R.jsx)("div",{className:T.A["privacy-icon"],children:(0,R.jsx)(u.A,{icon:I===x.az&&b.A||I===x.o0&&v.A||I===x.CR&&p.A})}),options:[{label:__("Site default","jetpack-videopress-pkg"),value:x.CR},{label:__("Public","jetpack-videopress-pkg"),value:x.az},{label:__("Private","jetpack-videopress-pkg"),value:x.o0}],__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),ke?(0,R.jsx)(c.A,{height:40,className:(0,h.A)(T.A.field)}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Ay,{className:(0,h.A)(T.A.field,T.A.checkboxTitle),children:__("Share","jetpack-videopress-pkg")}),(0,R.jsx)(l.CheckboxControl,{checked:M,disabled:je,label:__("Display share menu and allow viewers to copy a link or embed this video","jetpack-videopress-pkg"),onChange:e=>ne(e?1:0),__nextHasNoMarginBottom:!0})]}),ke?(0,R.jsx)(c.A,{height:40,className:(0,h.A)(T.A.field)}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Ay,{className:(0,h.A)(T.A.field,T.A.checkboxTitle),children:__("Download","jetpack-videopress-pkg")}),(0,R.jsx)(l.CheckboxControl,{checked:z,disabled:je,label:__("Display download option and allow viewers to download this video","jetpack-videopress-pkg"),onChange:e=>re(e?1:0),__nextHasNoMarginBottom:!0})]}),je||ke?(0,R.jsx)(c.A,{height:40,className:(0,h.A)(T.A.field)}):(0,R.jsx)(l.RadioControl,{className:(0,h.A)(T.A.field,T.A.rating),label:__("Rating","jetpack-videopress-pkg"),selected:L,options:[{label:__("G","jetpack-videopress-pkg"),value:x.ko},{label:__("PG-13","jetpack-videopress-pkg"),value:x.z7},{label:__("R","jetpack-videopress-pkg"),value:x.iL}],onChange:ee})]})]})]})})]})]})}},2267(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(9384),o=r(7143),i=r(7723),a=r(6941),s=r.n(a),c=r(1609),l=r(6212),d=r(2185),u=r(1370),p=r(8634),h=r(6287),f=r(8962),m=r(9799),g=r(6302),v=r(2066),b=r(8326),y=r(7750),w=r(7882);const __=i.__,_=s()("videopress:use-edit-details"),x=()=>{const e=(0,l.Zp)(),t=(0,o.useDispatch)(h.ax),{isRegistered:r}=(0,n.useConnection)();r||e("/");const{videoId:i}=(0,l.g)(),a=Number(i),{data:s,isFetching:x,processing:k,isDeleting:j,updateVideoPrivacy:A,isUpdatingPoster:S}=(0,w.A)(Number(a),!0),{playbackToken:C,isFetchingPlaybackToken:P}=(0,b.A)(s),[E,N]=(0,c.useState)(null),[T,F]=(0,c.useState)(null),[R,O]=(0,c.useState)(null),[U,V]=(0,c.useState)(!1),[D,L]=(0,c.useState)(!1),[I,z]=(0,c.useState)(!1),[M,B]=(0,c.useState)({title:s?.title,description:s?.description,privacySetting:f.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),{selectedTime:$,setVideoFrameMs:H,updatePosterImageFromFrame:G,selectAttachmentFromLibrary:q,updatePosterImageFromLibrary:W,...J}=(0,y.A)({video:s}),{metaChanged:K,handleMetaUpdate:Z,hasFieldChanged:Q,hasPrivacySettingChanged:X,...Y}=(({videoId:e,formData:t,video:r,updateData:n})=>{const o=(0,d.A)(e),i=e=>void 0===e||""===e,a=e=>{const n=t?.[e],o=r?.[e],a=n!==o;return!(i(n)&&i(o))&&a},s=["title","description","rating","allowDownload","displayEmbed"].some(e=>a(e));return{setTitle:e=>{n({title:e})},setDescription:e=>{n({description:e})},setPrivacySetting:e=>{n({privacySetting:e})},setRating:e=>{n({rating:e})},setAllowDownload:e=>{n({allowDownload:e})},setDisplayEmbed:e=>{n({displayEmbed:e})},handleMetaUpdate:()=>new Promise((e,r)=>{s?o(t).then(e).catch(r):e(null)}),metaChanged:s,hasFieldChanged:a,hasPrivacySettingChanged:()=>{const e=t?.privacySetting,n=r?.privacySetting,o=e!==f.zG[n];return!(i(e)&&i(n))&&o}}})({videoId:a,video:s,formData:M,updateData:e=>{B(t=>({...t,...e}))}});(0,c.useEffect)(()=>{null!=$&&O("video")},[$]);const ee=K||null!=$||E!==T||X(),te=async()=>{if(Q("description")){const e=(0,m.Ay)(M.description);if(M.description.length&&(0,v.A)(e)){_("Autogenerated chapters detected. Processing...");let e=!1;try{const t=await(0,u.X)({guid:s.guid,isPrivate:s.isPrivate}),r=t?.tracks?.chapters?.en?.src,n="string"==typeof r;if(n){const t=`https://videos.files.wordpress.com/${s.guid}/${r}`;e=await(0,p.Cr)(t,{guid:s.guid,isPrivate:s.isPrivate}),_("Chapter %o detected. Overwritable: %o",r,e?"yes":"no")}else _("Allow overwrite chapter: File does not exist");if(!n||e){const e={label:__("English (auto-generated)","jetpack-videopress-pkg"),srcLang:"en",kind:"chapters",tmpFile:(0,g.Ay)(M.description)};return _("Autogenerated track: %o",e),(0,p.n)(e,s.guid)}}catch(e){_("Error on chapters processing",e)}}}return null},re=x&&void 0===M?.title&&void 0===M?.description;return(0,c.useEffect)(()=>{let e=!0;return!re&&e&&B({title:s?.title,description:s?.description,privacySetting:f.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),()=>{e=!1}},[re]),{playbackToken:C,isFetchingPlaybackToken:P,...s,...M,hasChanges:ee,posterImageSource:R,libraryAttachment:E,selectPosterImageFromLibrary:async()=>{const e=await q();e&&(N(e),O("upload"))},handleSaveChanges:()=>{V(!0);const e=[Z(),te()];"video"===R?e.push(G()):"upload"===R&&e.push(W(E.id)),Q("privacySetting")&&e.push(A(M.privacySetting)),Promise.allSettled(e).then(()=>{const e={...s,...M};delete e.posterImage,delete e.privacySetting,H(null),F(E),V(!1),t?.setVideo(e),L(!0)})},handleDelete:()=>{z(!0)},isFetching:x,processing:k,isDeleting:j,updating:U,updated:D,deleted:I,selectedTime:$,...Y,...J,isUpdatingPoster:S}};r.dn(x)},8575(e,t,r){"use strict";r.d(t,{X:()=>m});var n=r(9384),o=r(6427),i=r(7723),a=r(3109),s=r(4699),c=r(8901),l=r(8847),d=r(3022),u=r(1688),p=r(790);const __=i.__,h=e=>{switch(e){case"error":case"warning":default:return s.A;case"info":return l.A;case"success":return c.A}};function f({status:e="error",isDismissible:t=!1,className:r,children:n,actions:i,onRemove:s}){const c=(0,d.A)(r,u.A.notice,u.A[`is-${e}`]);return(0,p.jsxs)(o.Notice,{status:e,isDismissible:t,onRemove:s,className:c,actions:i,children:[(0,p.jsx)(a.A,{icon:h(e),className:u.A.icon}),(0,p.jsx)("div",{className:u.A.message,children:n})]})}const m=()=>{const{adminUri:e,registrationNonce:t}=window.jetpackVideoPressInitialState,{hasConnectedOwner:r,handleRegisterSite:o}=(0,n.useConnection)({redirectUri:e,from:"jetpack-videopress",registrationNonce:t});return r?null:(0,p.jsx)(f,{addConnectUserLink:!0,actions:[{label:__("Connect your user account to fix this","jetpack-videopress-pkg"),onClick:o,variant:"link",noDefaultClasses:!0}],children:__("Some actions need a user connection to WordPress.com to be able to work","jetpack-videopress-pkg")})}},5333(e,t,r){"use strict";r.d(t,{Ay:()=>v,DO:()=>g});var n=r(7425),o=r(6427),i=r(9491),a=r(7723),s=r(3109),c=r(5995),l=r(907),d=r(3022),u=r(1609),p=r(2275),h=r(790);const __=a.__,f=({className:e,disabled:t=!1,loading:r=!1,icon:n=null,endAdornment:i=null,onChange:a,onEnter:s,size:c="small",...l})=>{const f=(0,u.useCallback)(e=>{null!=a&&a(e.currentTarget.value)},[a]),m=(0,u.useCallback)(e=>{null!=s&&["Enter","NumpadEnter"].includes(e.code)&&s(e.currentTarget.value)},[s]),g={className:(0,d.A)(p.A.input,{[p.A["with-icon"]]:null!=n}),onChange:f,onKeyUp:m,disabled:t,"aria-disabled":t},v="textarea"===l?.type;return(0,h.jsx)("div",{className:(0,d.A)(e,p.A["input-wrapper"],{[p.A.disabled]:t,[p.A.large]:"large"===c,[p.A["is-textarea"]]:v}),children:v?(0,h.jsx)("textarea",{...l,...g}):(0,h.jsxs)(h.Fragment,{children:[r||n?(0,h.jsx)("div",{className:(0,d.A)(p.A["icon-wrapper"],{[p.A.loader]:r}),children:r?(0,h.jsx)(o.Spinner,{}):n}):null,(0,h.jsx)("input",{...l,...g,value:l.value}),i]})})},m=({name:e,label:t,className:r,size:o="small",...i})=>t?(0,h.jsxs)("div",{className:r,children:[(0,h.jsx)(n.Ay,{component:"label",variant:"small"===o?"body-small":"body",mb:1,className:p.A.label,htmlFor:e,children:t}),(0,h.jsx)(f,{name:e,size:o,...i})]}):(0,h.jsx)(f,{className:r,size:o,...i}),g=({placeholder:e=__("Search your library","jetpack-videopress-pkg"),onSearch:t,wait:r=500,...n})=>{const o=(0,i.useDebounce)(t,r),a=(0,u.useCallback)(e=>{n.onEnter?.(e),t(e)},[n.onEnter,t]),f=(0,u.useCallback)(e=>{n.onChange?.(e),o(e)},[n.onChange]),g=(0,u.useCallback)(()=>{n.onChange?.(""),t("")},[n.onChange]);return(0,h.jsx)(m,{...n,icon:(0,h.jsx)(s.A,{icon:l.A,size:24}),placeholder:e,type:"text",onEnter:a,onChange:f,endAdornment:(0,h.jsx)(h.Fragment,{children:Boolean(n.value)&&(0,h.jsx)("div",{className:(0,d.A)(p.A["icon-wrapper"]),children:(0,h.jsx)(s.A,{icon:c.A,onClick:g,className:(0,d.A)(p.A["clear-icon"])})})})})},v=m},8175(e,t,r){"use strict";r.d(t,{O6:()=>b,XL:()=>v});var n=r(7425),o=r(1112),i=r(3109),a=r(9558),s=r(8329),c=r(3022),l=r(1609),d=r(8728),u=r(957),p=r(5465),h=r(790);const f=(e,t)=>[...Array(t)].map((t,r)=>r+e),m=()=>(0,h.jsx)(o.A,{size:"small",className:(0,c.A)(p.A.button),variant:"tertiary",disabled:!0,"aria-disabled":!0,children:(0,h.jsx)(n.Ay,{children:"..."})}),g=({className:e,currentPage:t=1,perPage:r,total:n,minColumns:l=7,disabled:d,onChangePage:u})=>{if(!n||!r)return null;const g=Math.ceil(n/r);if(t>g)return u(g),null;if(t<1)return u(1),null;const v=({page:e})=>{const r=e===t;return(0,h.jsx)(o.A,{size:"small",className:(0,c.A)(p.A.button,r?p.A.selected:null),variant:r?"primary":"tertiary",disabled:d,"aria-disabled":d,onClick:()=>u(e),children:e})};let b,y=Math.max(l,7);if(y=y%2==0?y+1:y,g<=y)b=f(1,g).map(e=>(0,h.jsx)(v,{page:e},e));else if(t<y-2)b=(0,h.jsxs)(h.Fragment,{children:[f(1,y-2).map(e=>(0,h.jsx)(v,{page:e},e)),(0,h.jsx)(m,{}),(0,h.jsx)(v,{page:g})]});else if(t>g-y+3)b=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(v,{page:1}),(0,h.jsx)(m,{}),f(g-y+3,y-2).map(e=>(0,h.jsx)(v,{page:e},e))]});else{const e=(y-5)/2;b=(0,h.jsxs)(h.Fragment,{children:[f(1,e).map(e=>(0,h.jsx)(v,{page:e},e)),(0,h.jsx)(m,{}),f(t-1,3).map(e=>(0,h.jsx)(v,{page:e},e)),(0,h.jsx)(m,{}),f(g-e+1,e).map(e=>(0,h.jsx)(v,{page:e},e))]})}return(0,h.jsxs)("div",{className:(0,c.A)(e,p.A.wrapper),children:[(0,h.jsx)(o.A,{size:"small",className:(0,c.A)(p.A.navigation,p.A.button),variant:"tertiary",disabled:d||1===t,"aria-disabled":d||1===t,onClick:()=>u(Math.max(1,t-1)),children:(0,h.jsx)(i.A,{icon:a.A})}),b,(0,h.jsx)(o.A,{size:"small",className:(0,c.A)(p.A.navigation,p.A.button),variant:"tertiary",disabled:d||t===g,"aria-disabled":d||t===g,onClick:()=>u(Math.min(g,t+1)),children:(0,h.jsx)(i.A,{icon:s.A})})]})},v=e=>{const t=(0,d.o)(),{page:r,itemsPerPage:n,total:o,isFetching:i}=(0,u.Ay)();return o<=n?null:(0,h.jsx)(g,{...e,perPage:n,onChangePage:e=>{e>1?t.setParam("page",e):t.deleteParam("page"),t.update()},currentPage:r,total:o,disabled:i||e.disabled})},b=e=>{const{setPage:t,page:r,itemsPerPage:n,total:o,isFetching:i}=(0,u.Ds)();return(0,l.useEffect)(()=>{o<=n&&r>1&&t(1)},[o,n,r,t]),o<=n?null:(0,h.jsx)(g,{...e,perPage:n,onChangePage:t,currentPage:r,total:o,disabled:i||e.disabled})}},2301(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(1112),o=r(9245),i=r(489),a=r(9384),s=r(7723),c=r(1609),l=r(7520),d=r(790);const __=s.__,u=({onRedirecting:e})=>{const{siteSuffix:t,adminUri:r,registrationNonce:u}=window.jetpackVideoPressInitialState,{siteProduct:p,productPrice:h}=(0,l.j)(),{yearly:f}=h,{handleRegisterSite:m,userIsConnecting:g}=(0,a.useConnection)({redirectUri:r,from:"jetpack-videopress",registrationNonce:u}),[v,b]=(0,c.useState)(!1),{run:y,hasCheckoutStarted:w}=(0,a.useProductCheckoutWorkflow)({siteSuffix:t,productSlug:f?.slug,redirectUrl:r,from:"jetpack-videopress"}),_=p.features.map(e=>({name:e}));return(0,d.jsxs)(o.Ay,{title:p.description,items:_,children:[(0,d.jsxs)(o.N0,{primary:!0,children:[(0,d.jsxs)(o.i7,{children:[(0,d.jsx)(i.A,{offPrice:f?.discount?f.salePriceByMonth:null,price:f.priceByMonth,promoLabel:f?.discount?(0,s.sprintf)(/* translators: %1$s: the discount amount */
__("%1$s%% off","jetpack-videopress-pkg"),String(f.discount)):null,legend:__("/month, billed yearly","jetpack-videopress-pkg"),currency:f.currency}),(0,d.jsx)(n.A,{onClick:()=>{e?.(),y()},isLoading:w,fullWidth:!0,disabled:v||w||g,children:__("Get VideoPress","jetpack-videopress-pkg")})]}),(0,d.jsx)(o.eY,{isIncluded:!0}),(0,d.jsx)(o.eY,{isIncluded:!0}),(0,d.jsx)(o.eY,{isIncluded:!0}),(0,d.jsx)(o.eY,{isIncluded:!0})]}),(0,d.jsxs)(o.N0,{children:[(0,d.jsxs)(o.i7,{children:[(0,d.jsx)(i.A,{price:0,legend:"",currency:f.currency,hidePriceFraction:!0}),(0,d.jsx)(n.A,{fullWidth:!0,variant:"secondary",onClick:()=>{b(!0),m(),e?.()},isLoading:g||v,disabled:g||v||w,children:__("Start for free","jetpack-videopress-pkg")})]}),(0,d.jsx)(o.eY,{isIncluded:!1,label:(0,d.jsx)("strong",{children:__("Upload one video","jetpack-videopress-pkg")})}),(0,d.jsx)(o.eY,{isIncluded:!0}),(0,d.jsx)(o.eY,{isIncluded:!1}),(0,d.jsx)(o.eY,{isIncluded:!1})]})]})}},7663(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(7425),o=r(1330),i=r(7143),a=r(7723),s=r(3832),c=r(6287),l=r(7882),d=r(957),u=r(3908),p=r(790);const __=a.__,h=({id:e,position:t=null,anchor:r=null})=>{const a=(0,i.useDispatch)(c.ax),{data:h}=(0,l.A)(Number(e)),{firstUploadedVideoId:f,firstVideoProcessed:m,dismissedFirstVideoPopover:g}=(0,d.Ay)(),v=Number(f)===Number(e)&&m&&!g,b=()=>a.dismissFirstVideoPopover(),y=window.jetpackVideoPressInitialState?.contentNonce??"",w=(0,s.addQueryArgs)("post-new.php",{videopress_guid:h.guid,_wpnonce:y});return v&&(0,p.jsx)(o.A,{title:__("Publish your new video","jetpack-videopress-pkg"),buttonContent:__("Add video to post","jetpack-videopress-pkg"),buttonHref:w,buttonExternalLink:!0,anchor:r,onClose:b,onClick:b,noArrow:!1,className:u.A["action-popover"],position:t,children:(0,p.jsx)(n.Ay,{children:__("Now that your video has been uploaded to VideoPress, it's time to show it to the world.","jetpack-videopress-pkg")})})}},8031(e,t,r){"use strict";r.d(t,{Aq:()=>o,Xb:()=>n});const n="atomic",o="jetpack"},3322(e,t,r){"use strict";r.d(t,{M:()=>f});var n=r(8509),o=r(5918),i=r(7425),a=r(6427),s=r(7723),c=r(9072),l=r(9177),d=r(8031),u=r(3068),p=r(790);const __=s.__,h=({videoPressVideosPrivateForSite:e,siteIsPrivate:t,siteType:r,onPrivacyChange:s})=>{const{canPerformAction:l}=(0,c.J)(),h=t&&r===d.Xb,f=!l||h,m=h?__("You cannot change this setting because your site is private. You can only choose the video privacy default on public sites.","jetpack-videopress-pkg"):null;return(0,p.jsxs)(o.A,{horizontalSpacing:6,horizontalGap:0,children:[(0,p.jsx)(n.A,{children:(0,p.jsx)(i.Ay,{variant:"headline-small",mb:1,children:__("Settings","jetpack-videopress-pkg")})}),(0,p.jsx)(n.A,{sm:12,md:12,lg:12,children:(0,p.jsx)(a.CheckboxControl,{label:__("Video Privacy: Restrict views to members of this site","jetpack-videopress-pkg"),className:u.A["privacy-toggle"],onChange:s,checked:e,disabled:f,help:m||void 0})})]})},f=()=>{const{settings:e,onUpdate:t}=(0,l.T)(),{videoPressVideosPrivateForSite:r,siteIsPrivate:n,siteType:o}=e;return(0,p.jsx)(h,{videoPressVideosPrivateForSite:r,siteIsPrivate:n,siteType:o,onPrivacyChange:e=>{t({videoPressVideosPrivateForSite:e})}})}},1497(e,t,r){"use strict";r.d(t,{A:()=>w});var n=r(3924),o=r(7425),i=r(1112),a=r(1330),s=r(9491),c=r(7143),l=r(7723),d=r(3109),u=r(5673),p=r(5462),h=r(7839),f=r(3022),m=r(1609),g=r(6287),v=r(5419),b=r(5493),y=r(790);const __=l.__,w=({title:e,id:t})=>{const{dismissErroredVideo:r}=(0,c.useDispatch)(g.ax),l=!e,[w,_]=(0,m.useState)(null),x=(0,s.useViewportMatch)("small","<"),[k,j]=(0,m.useState)(!1),[A,S]=(0,m.useState)(!1),C=()=>r(t),P=()=>S(!0),E=(0,n.A)("jetpack-videopress-dashboard-troubleshoot"),N=()=>S(!1);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:(0,f.A)(b.A["video-card__wrapper"],{[b.A["is-blank"]]:l,[b.A.disabled]:x}),...x&&{onClick:()=>j(e=>!e)},children:[!x&&(0,y.jsx)("div",{className:b.A["video-card__background"]}),(0,y.jsx)(v.Ay,{className:b.A["video-card__thumbnail"],ref:_,hasError:!0}),(0,y.jsxs)("div",{className:b.A["video-card__title-section"],children:[x&&(0,y.jsxs)("div",{className:b.A.chevron,children:[k&&(0,y.jsx)(d.A,{icon:p.A}),!k&&(0,y.jsx)(d.A,{icon:u.A})]}),(0,y.jsx)(o.hE,{className:b.A["video-card__title"],mb:0,size:"small",children:e})]}),A&&(0,y.jsx)(a.A,{title:__("Error","jetpack-videopress-pkg"),buttonContent:__("Visit the docs","jetpack-videopress-pkg"),buttonHref:E,buttonExternalLink:!0,anchor:w,onClose:N,onClick:N,noArrow:!1,className:b.A["action-popover"],children:(0,y.jsx)(o.Ay,{children:__("There's been an error uploading your video. Try uploading the video again, if the error persists, visit our documentation to troubleshoot the issue or contact support.","jetpack-videopress-pkg")})}),!x&&(0,y.jsxs)("div",{className:(0,f.A)(b.A["video-card__quick-actions-section"],b.A["is-blank"]),children:[(0,y.jsx)(i.A,{variant:"primary",size:"small",onClick:P,children:__("Upload Error!","jetpack-videopress-pkg")}),(0,y.jsx)(i.A,{size:"small",variant:"tertiary",icon:h.A,onClick:C})]})]}),x&&k&&(0,y.jsxs)("div",{className:(0,f.A)(b.A["video-card__quick-actions-section"],b.A.small),children:[(0,y.jsx)(i.A,{variant:"primary",size:"small",onClick:P,children:__("Upload Error!","jetpack-videopress-pkg")}),(0,y.jsx)(i.A,{size:"small",variant:"tertiary",icon:h.A,onClick:C})]})]})}},6411(e,t,r){"use strict";r.d(t,{Ay:()=>j});var n=r(7425),o=r(1112),i=r(1876),a=r(4268),s=r(9491),c=r(7723),l=r(3109),d=r(8861),u=r(5673),p=r(5462),h=r(3022),f=r(1609),m=r(9072),g=r(7882),v=r(7663),b=r(8596),y=r(5419),w=r(5493),_=r(790);const __=c.__,x=({id:e,onVideoDetailsClick:t,className:r})=>{const{canPerformAction:n}=(0,m.J)();return(0,_.jsxs)("div",{className:(0,h.A)(w.A["video-card__quick-actions-section"],r),children:[(0,_.jsx)(o.A,{variant:"primary",size:"small",onClick:t,className:w.A["video-card__quick-actions__edit-button"],disabled:!n,children:__("Edit video details","jetpack-videopress-pkg")}),e&&(0,_.jsx)(b.W,{videoId:e})]})},k=({title:e,id:t,duration:r,plays:o,thumbnail:m,editable:g,showQuickActions:b=!0,loading:k=!1,isUpdatingPoster:j=!1,uploading:A=!1,processing:S=!1,uploadProgress:C,onVideoDetailsClick:P})=>{const E=!(e||r||o||m||k),N=void 0!==o,T=N?(0,c.sprintf)(/* translators: %s: the number of plays */
__("%s plays","jetpack-videopress-pkg"),(0,a.ZV)(o)):"",[F,R]=(0,f.useState)(null),O=(0,s.useViewportMatch)("small","<"),[U,V]=(0,f.useState)(!1),D=k||A;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:(0,h.A)(w.A["video-card__wrapper"],{[w.A["is-blank"]]:E,[w.A.disabled]:O||D}),...O&&!D&&{onClick:()=>V(e=>!e)},children:[!O&&(0,_.jsx)("div",{className:w.A["video-card__background"]}),(0,_.jsx)(y.Ay,{className:w.A["video-card__thumbnail"],thumbnail:m,loading:k||j,uploading:A,processing:S,duration:k?null:r,editable:!k&&g,uploadProgress:C,ref:R}),(0,_.jsxs)("div",{className:w.A["video-card__title-section"],children:[O&&!D&&(0,_.jsxs)("div",{className:w.A.chevron,children:[U&&(0,_.jsx)(l.A,{icon:p.A}),!U&&(0,_.jsx)(l.A,{icon:u.A})]}),k?(0,_.jsx)(i.A,{width:"60%",height:30}):(0,_.jsx)(n.hE,{className:w.A["video-card__title"],mb:0,size:"small",children:e}),k?(0,_.jsx)(i.A,{width:96,height:24}):(0,_.jsx)(_.Fragment,{children:N&&(0,_.jsxs)(n.Ay,{component:"div",className:w.A["video-card__video-plays-counter"],children:[(0,_.jsx)(l.A,{icon:d.A}),T]})})]}),(0,_.jsx)(v.A,{id:t,anchor:F}),b&&!O&&(0,_.jsx)(x,{id:t,onVideoDetailsClick:P,className:(0,h.A)({[w.A["is-blank"]]:k})})]}),b&&O&&U&&(0,_.jsx)(x,{id:t,onVideoDetailsClick:P,className:w.A.small})]})},j=({id:e,...t})=>{const{isDeleting:r,uploading:n,processing:o,isUpdatingPoster:i,data:a,uploadProgress:s}=(0,g.A)(e),c=(r||t?.loading)&&!n&&!o,l=t?.editable&&!r&&!n&&!o;return(0,_.jsx)(k,{id:e,...t,loading:c,uploading:n,isUpdatingPoster:i,processing:o,editable:l,privacySetting:a.privacySetting,uploadProgress:s})}},3287(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(723),o=r(6427),i=r(7723),a=r(7823),s=r(6501),c=r(7855),l=r(7839),d=r(3832),u=r(1609),p=r(7882),h=r(3378),f=r(153),m=r(790);const __=i.__,g=({disabled:e=!1,videoId:t,onDelete:r})=>{const[i,g]=(0,u.useState)(!1),{data:{guid:v,url:b},deleteVideo:y}=(0,p.A)(t),w=window.jetpackVideoPressInitialState?.contentNonce??"",_=(0,d.addQueryArgs)("post-new.php",{videopress_guid:v,_wpnonce:w}),x=(0,u.useCallback)(async()=>{g(!1),await y(),r()},[y,r]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(o.Dropdown,{placement:"bottom center",renderToggle:({isOpen:t,onToggle:r})=>(0,m.jsx)(o.Button,{size:"compact",variant:"tertiary",disabled:e,icon:c.A,onClick:r,"aria-expanded":t}),renderContent:({onClose:t})=>(0,m.jsx)(n.Ay,{children:(0,m.jsxs)("div",{className:f.A.dropdown,children:[(0,m.jsx)(o.Button,{variant:"tertiary",icon:s.A,href:_,target:"_blank",disabled:e,onClick:t,children:__("Add to new post","jetpack-videopress-pkg")}),(0,m.jsx)(o.Button,{variant:"tertiary",icon:a.A,href:b,target:"_blank",disabled:e,onClick:t,children:__("Download file","jetpack-videopress-pkg")}),(0,m.jsx)("hr",{className:f.A.separator}),(0,m.jsx)(o.Button,{variant:"tertiary",icon:l.A,className:f.A.delete,disabled:e,onClick:()=>{g(!0),t()},children:__("Delete video","jetpack-videopress-pkg")})]})})}),i&&(0,m.jsx)(h.A,{onClose:()=>g(!1),onDelete:x})]})}},4565(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(7425),o=r(1876),i=r(8443),a=r(7723),s=r(9689),c=r(6955),l=r(971),d=r(790);const __=a.__,u=({filename:e,uploadDate:t,shortcode:r,loading:a=!1,guid:u,isPrivate:p})=>{const h=!!t?.length&&(0,i.gmdateI18n)("F j, Y",t),f=(0,s.rB)(u,p);return(0,d.jsxs)("div",{className:l.A.details,children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(n.Ay,{variant:"body-small",children:__("Link to video","jetpack-videopress-pkg")}),a?(0,d.jsx)(o.A,{height:36}):(0,d.jsx)(c.A,{value:f})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(n.Ay,{variant:"body-small",children:__("WordPress shortcode","jetpack-videopress-pkg")}),a?(0,d.jsx)(o.A,{height:36}):(0,d.jsx)(c.A,{value:r})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(n.Ay,{variant:"body-small",children:__("File name","jetpack-videopress-pkg")}),a?(0,d.jsx)(o.A,{height:24}):(0,d.jsx)(n.Ay,{className:l.A.filename,children:e})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(n.Ay,{variant:"body-small",children:__("Upload date","jetpack-videopress-pkg")}),a?(0,d.jsx)(o.A,{height:24}):(0,d.jsx)(n.Ay,{children:h})]})]})}},1755(e,t,r){"use strict";r.d(t,{Fr:()=>b,M2:()=>_});var n=r(8509),o=r(5918),i=r(7425),a=r(1112),s=r(6427),c=r(9491),l=r(7723),d=r(3022),u=r(6639),p=r(8962),h=r(8728),f=r(2807),m=r(957),g=r(2309),v=r(790);const __=l.__,b=e=>{const{isActive:t,...r}=e;return(0,v.jsx)(a.A,{variant:t?"primary":"secondary",className:(0,d.A)(g.A["filter-button"],{[g.A["is-active"]]:t}),icon:u.A,weight:"regular",...r,children:__("Filters","jetpack-videopress-pkg")})},y=e=>(0,v.jsx)(s.CheckboxControl,{className:g.A["filter-checkbox"],label:e.label,checked:e.checked,disabled:e.disabled,onChange:e.onChange}),w=e=>{const t=(0,c.useViewportMatch)("small","<"),r=(t,r)=>!0===e?.filter?.[t]?.[r];return(0,v.jsx)("div",{className:(0,d.A)(g.A["filters-section"],e.className),children:(0,v.jsxs)(o.A,{horizontalSpacing:t?2:4,horizontalGap:2,children:[(0,v.jsxs)(n.A,{sm:4,md:4,lg:4,children:[(0,v.jsx)(i.Ay,{variant:"body-extra-small-bold",children:__("Uploader","jetpack-videopress-pkg")}),e.uploaders.map(t=>(0,v.jsx)(y,{label:t.name,onChange:r=>e.onChange?.(p.uX,t.id,r),checked:r(p.uX,t.id)},t.id))]}),(0,v.jsxs)(n.A,{sm:4,md:4,lg:4,children:[(0,v.jsx)(i.Ay,{variant:"body-extra-small-bold",children:__("Privacy","jetpack-videopress-pkg")}),(0,v.jsx)(y,{label:__("Public","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(p.AV,p.zG.indexOf(p.az),t),checked:r(p.AV,p.zG.indexOf(p.az))}),(0,v.jsx)(y,{label:__("Private","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(p.AV,p.zG.indexOf(p.o0),t),checked:r(p.AV,p.zG.indexOf(p.o0))})]}),(0,v.jsxs)(n.A,{sm:4,md:4,lg:4,children:[(0,v.jsx)(i.Ay,{variant:"body-extra-small-bold",children:__("Rating","jetpack-videopress-pkg")}),(0,v.jsx)(y,{label:__("G","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(p.VI,p.ko,t),checked:r(p.VI,p.ko)}),(0,v.jsx)(y,{label:__("PG-13","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(p.VI,p.z7,t),checked:r(p.VI,p.z7)}),(0,v.jsx)(y,{label:__("R","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(p.VI,p.iL,t),checked:r(p.VI,p.iL)})]})]})})},_=e=>{const{setFilter:t,filter:r}=(0,m.Ay)(),n=(0,h.o)(),{items:o}=(0,f.A)();return(0,v.jsx)(w,{...e,onChange:(e,r,o)=>{n.deleteParam("page"),n.update(),t(e,r,o)},uploaders:o,filter:r})}},6145(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(8509),o=r(5918),i=r(6411),a=r(1497),s=r(8863),c=r(790);const l=({videos:e,count:t=6,onVideoDetailsClick:r,loading:l})=>{const d=e.slice(0,t),u=(t,r)=>()=>{r?.(e[t])};return(0,c.jsx)("div",{className:s.A.wrapper,children:(0,c.jsx)(o.A,{fluid:!0,horizontalSpacing:0,horizontalGap:0,children:d.map((e,t)=>(0,c.jsx)(n.A,{sm:4,md:4,lg:4,children:e.error?(0,c.jsx)(a.A,{id:e?.id,title:e.title}):(0,c.jsx)(i.Ay,{id:e?.id,title:e.title,thumbnail:e?.posterImage,duration:e.duration,plays:e.plays,onVideoDetailsClick:u(t,r),loading:l})},e?.guid??e?.id))})})}},3793(e,t,r){"use strict";r.d(t,{A:()=>y,R:()=>b});var n=r(7425),o=r(6427),i=r(9491),a=r(7723),s=r(3109),c=r(4699),l=r(8847),d=r(3022),u=r(8962),p=r(7520),h=r(957),f=r(9983),m=r(8533),g=r(9243),v=r(790);const __=a.__,b=({videos:e,showActionButton:t=!0,showQuickActions:r=!1,uploading:a=!1,onActionClick:m})=>{const b=(0,i.useViewportMatch)("small","<"),{hasVideoPressPurchase:y}=(0,p.j)(),{uploadedVideoCount:w,isFetching:_}=(0,h.Ay)(),x=w>0||_||a,k=t=>()=>{m?.(e[t])},j=e=>{if(e?.isUploadedToVideoPress)return(0,v.jsx)(o.Tooltip,{position:"top center",text:__("Video already uploaded to VideoPress","jetpack-videopress-pkg"),children:(0,v.jsx)("div",{className:g.A["title-adornment"],children:(0,v.jsx)(s.A,{icon:l.A})})});if(null!=e?.readError){const t=__("Video cannot be read","jetpack-videopress-pkg"),r=__("Video has an unsupported file type","jetpack-videopress-pkg");return(0,v.jsx)(o.Tooltip,{position:"top center",text:e?.readError===u.cl?r:t,children:(0,v.jsx)("div",{className:(0,d.A)(g.A["title-adornment"],g.A.error),children:(0,v.jsx)(s.A,{icon:c.A})})})}return null};return(0,v.jsxs)("div",{className:g.A.list,children:[(0,v.jsxs)("div",{className:g.A.header,children:[(0,v.jsx)("div",{className:g.A["title-wrapper"],children:(0,v.jsx)(n.Ay,{children:__("Title","jetpack-videopress-pkg")})}),!b&&(0,v.jsx)("div",{className:g.A["data-wrapper"],children:(0,v.jsx)(f.Uz,{privacy:"",duration:"",plays:"",upload:__("Upload date","jetpack-videopress-pkg")})})]}),e.map((e,n)=>e?.id?(0,v.jsx)(f.TX,{id:e.id,title:e.title,showActionButton:t,showQuickActions:r,uploadDate:e.uploadDate,onActionClick:k(n),actionButtonLabel:__("Upload to VideoPress","jetpack-videopress-pkg"),disabled:e?.isUploadedToVideoPress||null!=e?.readError,disableActionButton:x&&!y||a,titleAdornment:j(e)},`local-video-${e.id}`):null)]})},y=({videos:e,hidePrivacy:t=!1,hideDuration:r=!1,hidePlays:o=!1,showActionButton:a=!0,showQuickActions:s=!0,loading:c=!1,onVideoDetailsClick:l})=>{const d=(0,i.useViewportMatch)("small","<"),p=(t,r)=>()=>{r?.(e[t])};return(0,v.jsxs)("div",{className:g.A.list,children:[(0,v.jsxs)("div",{className:g.A.header,children:[(0,v.jsx)("div",{className:g.A["title-wrapper"],children:(0,v.jsx)(n.Ay,{children:__("Title","jetpack-videopress-pkg")})}),!d&&(0,v.jsx)("div",{className:g.A["data-wrapper"],children:(0,v.jsx)(f.Uz,{privacy:t?null:__("Privacy","jetpack-videopress-pkg"),duration:r?null:__("Duration","jetpack-videopress-pkg"),plays:o?null:__("Plays","jetpack-videopress-pkg"),upload:__("Upload date","jetpack-videopress-pkg")})})]}),e.map((e,n)=>{const i=u.zG[e.privacySetting]===u.o0;return e.error?(0,v.jsx)(m.A,{id:e?.id,title:e?.title},e?.guid??e?.id):(0,v.jsx)(f.Ay,{id:e?.id,title:e.title,thumbnail:e?.posterImage,duration:r?null:e.duration,plays:o?null:e.plays,isPrivate:t?null:i,uploadDate:e.uploadDate,showQuickActions:!e?.uploading&&s,showActionButton:!e?.uploading&&a,className:g.A.row,onActionClick:p(n,l),loading:c},e?.guid??e?.id)})]})}},8596(e,t,r){"use strict";r.d(t,{W:()=>T});var n=r(723),o=r(7425),i=r(1112),a=r(6427),s=r(7723),c=r(1490),l=r(1034),d=r(7839),u=r(3022),p=r(1609),h=r(7726),f=r(7121),m=r(8962),g=r(6791),v=r(9072),b=r(8326),y=r(7750),w=r(7882),_=r(3378),x=r(5419),k=r(4231),j=r(2518),A=r(790);const __=s.__,S=({showPopover:e=!1,isAnchorFocused:t=!1,anchor:r,children:i=null})=>{if((0,p.useEffect)(()=>{e&&!t&&r?.querySelector(".components-popover")?.focus()},[e]),!r||!e)return null;const s={anchor:r,offset:15};return(0,A.jsx)(a.Popover,{position:"top center",noArrow:!0,focusOnMount:!1,...s,children:(0,A.jsx)(n.Ay,{children:(0,A.jsx)(o.Ay,{variant:"body-small",className:j.A.popover,children:i})})})},C=({icon:e,children:t,className:r,...n})=>{const{setAnchor:o,setIsFocused:a,setIsHovering:s,anchor:c,isFocused:l,showPopover:d}=(0,g.V)();return(0,A.jsxs)("div",{ref:o,className:r,children:[(0,A.jsx)(i.A,{size:"small",variant:"tertiary",icon:e,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),disabled:n.disabled,...n}),(0,A.jsx)(S,{showPopover:d,anchor:c,isAnchorFocused:l,children:t})]})},P=({description:e,onUpdate:t,isUpdatingPoster:r,disabled:o})=>{const{setAnchor:s,setIsFocused:c,setIsHovering:d,setShowPopover:u,anchor:p,isFocused:h,showPopover:f}=(0,g.V)();return(0,A.jsx)(a.Dropdown,{placement:"bottom left",renderToggle:({isOpen:t,onToggle:r})=>(0,A.jsxs)("div",{ref:s,children:[(0,A.jsx)(i.A,{size:"small",variant:"tertiary",icon:l.A,onClick:()=>{u(!1),r()},"aria-expanded":t,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),disabled:o}),(0,A.jsx)(S,{showPopover:f&&!t,anchor:p,isAnchorFocused:h,children:e})]}),renderContent:({onClose:e})=>(0,A.jsx)(n.Ay,{children:(0,A.jsx)(x.sy,{isUpdatingPoster:r,onClose:e,onUseDefaultThumbnail:()=>t("default"),onSelectFromVideo:()=>t("select-from-video"),onUploadImage:()=>t("upload-image")})})})},E=({description:e,privacySetting:t,isUpdatingPrivacy:r,onUpdate:o,disabled:s})=>{const{setAnchor:l,setIsFocused:d,setIsHovering:u,setShowPopover:p,anchor:v,isFocused:b,showPopover:y}=(0,g.V)();let w=c.A;return m.zG[t]===m.o0?w=h.A:m.zG[t]===m.az&&(w=f.A),(0,A.jsx)(a.Dropdown,{placement:"bottom left",renderToggle:({isOpen:t,onToggle:n})=>(0,A.jsxs)("div",{ref:l,children:[(0,A.jsx)(i.A,{size:"small",variant:"tertiary",icon:w,onClick:()=>{p(!1),n()},"aria-expanded":t,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onFocus:()=>d(!0),onBlur:()=>d(!1),disabled:s||r}),(0,A.jsx)(S,{showPopover:y&&!t,anchor:v,isAnchorFocused:b,children:e})]}),renderContent:({onClose:e})=>(0,A.jsx)(n.Ay,{children:(0,A.jsxs)("div",{className:j.A["dropdown-content"],children:[(0,A.jsx)(i.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:c.A,onClick:()=>{e(),o("site-default")},disabled:m.zG[t]===m.CR,children:__("Site default","jetpack-videopress-pkg")}),(0,A.jsx)(i.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:f.A,onClick:()=>{e(),o("public")},disabled:m.zG[t]===m.az,children:__("Public","jetpack-videopress-pkg")}),(0,A.jsx)(i.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:h.A,onClick:()=>{e(),o("private")},disabled:m.zG[t]===m.o0,children:__("Private","jetpack-videopress-pkg")})]})})})},N=({className:e,privacySetting:t,isUpdatingPrivacy:r,isUpdatingPoster:n,onUpdateVideoThumbnail:o,onUpdateVideoPrivacy:i,onDeleteVideo:a})=>{const{canPerformAction:s}=(0,v.J)();return(0,A.jsxs)("div",{className:(0,u.A)(j.A.actions,e),children:[(0,A.jsx)(P,{onUpdate:o,description:__("Update thumbnail","jetpack-videopress-pkg"),isUpdatingPoster:n,disabled:!s}),(0,A.jsx)(E,{onUpdate:i,privacySetting:t,isUpdatingPrivacy:r,description:__("Update privacy","jetpack-videopress-pkg"),disabled:!s}),(0,A.jsx)(C,{icon:d.A,className:j.A.trash,onClick:a,disabled:!s,children:__("Delete video","jetpack-videopress-pkg")})]})},T=e=>{const{videoId:t}=e;if(!Number.isFinite(t))return null;const{data:r,updateVideoPrivacy:n,deleteVideo:o,isUpdatingPrivacy:i,isUpdatingPoster:a}=(0,w.A)(t),{isFetchingPlaybackToken:s}=(0,b.A)(r),[c,l]=(0,p.useState)(!1),{frameSelectorIsOpen:d,handleCloseSelectFrame:u,handleOpenSelectFrame:h,handleVideoFrameSelected:f,selectedTime:m,handleConfirmFrame:g,updatePosterImageFromFrame:v,selectAndUpdatePosterImageFromLibrary:x}=(0,y.A)({video:r});if((0,p.useEffect)(()=>{null!=m&&v()},[m]),c)return(0,A.jsx)(_.A,{onClose:()=>l(!1),onDelete:()=>{l(!1),o()}});if(d)return(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(k.A,{handleCloseSelectFrame:u,url:r.url,handleVideoFrameSelected:f,selectedTime:m,handleConfirmFrame:g})});const{privacySetting:j}=r;return(0,A.jsx)(N,{...e,onUpdateVideoPrivacy:n,onUpdateVideoThumbnail:async e=>{switch(e){case"select-from-video":return h();case"upload-image":return x()}},onDeleteVideo:()=>l(!0),privacySetting:j,isUpdatingPrivacy:i||s,isUpdatingPoster:a})}},8533(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(3924),o=r(7425),i=r(1112),a=r(1330),s=r(9491),c=r(7143),l=r(8443),d=r(7723),u=r(3109),p=r(5673),h=r(5462),f=r(7839),m=r(3022),g=r(1609),v=r(6287),b=r(5419),y=r(6577),w=r(790);const __=d.__,_=({id:e,className:t="",title:r})=>{const _=(0,g.useRef)(null),x=(0,g.useRef)(null),k=(0,s.useViewportMatch)("small","<"),[j,A]=(0,g.useState)(!1),[S,C]=(0,g.useState)(!1),[P,E]=(0,g.useState)(null),[N,T]=(0,g.useState)(!1),{dismissErroredVideo:F}=(0,c.useDispatch)(v.ax),R=(0,l.dateI18n)("M j, Y",new Date),O=!k&&_?.current?.offsetWidth<_?.current?.scrollWidth,U=!k||k&&S,V=(0,d.sprintf)(/* translators: 1 Video title, 2 Video duration, 3 Video upload date */
__("Video Upload Error: Video upload, titled %1$s, failed. Please try again or visit the troubleshooting docs at %2$s.","jetpack-videopress-pkg"),r,(0,n.A)("jetpack-videopress-dashboard-troubleshoot")),D=(0,n.A)("jetpack-videopress-dashboard-troubleshoot"),L=e=>"Space"===e||"Enter"===e,I=()=>{T(!0)},z=()=>{T(!1)},M=e=>t=>{t.stopPropagation(),e?.(t)},B=e=>{e.target!==x.current&&x?.current?.click()},$=()=>F(e);return(0,w.jsxs)("div",{role:"button",tabIndex:0,onKeyDown:k?null:e=>{L(e?.code)&&A(!0)},onKeyUp:k?null:e=>{L(e?.code)&&(A(!1),B(e))},onClick:k?null:B,"aria-label":V,className:(0,m.A)(y.A["video-row"],{[y.A.pressed]:j,[y.A["hover-disabled"]]:k},t),ref:E,children:[(0,w.jsxs)("div",{className:(0,m.A)(y.A["video-data-wrapper"],{[y.A.small]:k}),children:[(0,w.jsxs)("div",{className:(0,m.A)(y.A["info-wrapper"],{[y.A.small]:k}),onClick:k?e=>{k?C(e=>!e):B(e)}:null,role:"presentation",children:[(0,w.jsx)("div",{className:y.A.poster,children:(0,w.jsx)(b.Ay,{isRow:!0,hasError:!0})}),(0,w.jsxs)("div",{className:y.A["title-wrapper"],children:[O&&(0,w.jsx)(o.Ay,{variant:"body-extra-small",className:y.A.label,component:"span",children:r}),(0,w.jsx)(o.Ay,{variant:"title-small",className:(0,m.A)(y.A.title),ref:_,children:r}),k&&(0,w.jsx)(o.Ay,{component:"div",children:R})]}),k&&(0,w.jsx)(u.A,{icon:S?h.A:p.A,size:45})]}),U&&(0,w.jsxs)("div",{className:(0,m.A)(y.A["meta-wrapper"],{[y.A.small]:k}),children:[!k&&(0,w.jsxs)("div",{className:y.A.actions,children:[(0,w.jsx)(i.A,{size:"small",onClick:M(I),children:__("Upload Error!","jetpack-videopress-pkg")}),(0,w.jsx)(i.A,{size:"small",variant:"tertiary",icon:f.A,onClick:$})]}),k&&(0,w.jsxs)("div",{className:y.A["mobile-actions"],children:[(0,w.jsx)(i.A,{size:"small",onClick:M(I),children:__("Upload Error!","jetpack-videopress-pkg")}),(0,w.jsx)(i.A,{size:"small",variant:"tertiary",icon:f.A,onClick:$})]})]})]}),N&&(0,w.jsx)(a.A,{title:__("Error","jetpack-videopress-pkg"),buttonContent:__("Visit the docs","jetpack-videopress-pkg"),buttonHref:D,buttonExternalLink:!0,anchor:P,onClose:z,onClick:z,noArrow:!1,className:y.A["action-popover"],position:"top center",children:(0,w.jsx)(o.Ay,{children:__("There's been an error uploading your video. Try uploading the video again, if the error persists, visit our documentation to troubleshoot the issue or contact support.","jetpack-videopress-pkg")})})]})}},9983(e,t,r){"use strict";r.d(t,{Ay:()=>S,TX:()=>A,Uz:()=>w.A});var n=r(7425),o=r(1112),i=r(1876),a=r(9491),s=r(8443),c=r(7723),l=r(3109),d=r(5673),u=r(5462),p=r(3022),h=r(1609),f=r(7726),m=r(9072),g=r(7882),v=r(7663),b=r(8596),y=r(5419),w=r(822),_=r(6577),x=r(790);const __=c.__,k=({duration:e,uploadDate:t,plays:r,isPrivate:n,loading:o=!1})=>{const i=(0,a.useViewportMatch)("small","<"),s=__("Duration","jetpack-videopress-pkg"),c=__("Plays","jetpack-videopress-pkg"),d=__("Privacy","jetpack-videopress-pkg"),u=__("Private","jetpack-videopress-pkg"),h=__("Public","jetpack-videopress-pkg"),m=i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{children:d}),(0,x.jsx)("span",{children:n?u:h})]}):n&&(0,x.jsx)(l.A,{icon:f.A}),g=i&&e?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{children:s}),(0,x.jsx)("span",{children:e})]}):e,v=i&&Number.isFinite(r)?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{children:c}),(0,x.jsx)("span",{children:r})]}):r,b=i?null:t;return(0,x.jsx)(w.A,{privacy:"boolean"==typeof n?m:null,duration:g,plays:v,upload:b,loading:o,className:(0,p.A)({[_.A["mobile-stats"]]:i})})},j=({id:e,className:t="",title:r,titleAdornment:c=null,thumbnail:f,showThumbnail:g=!1,duration:w,uploadDate:j,plays:A,isPrivate:S,onActionClick:C,showActionButton:P=!0,showQuickActions:E=!0,loading:N=!1,uploading:T=!1,processing:F=!1,isUpdatingPoster:R=!1,actionButtonLabel:O=__("Edit video details","jetpack-videopress-pkg"),disableActionButton:U=!1,disabled:V=!1,uploadProgress:D,isLocalVideo:L=!1})=>{const I=(0,h.useRef)(null),{canPerformAction:z}=(0,m.J)(),M=(0,a.useViewportMatch)("small","<"),[B,$]=(0,h.useState)(!1),[H,G]=(0,h.useState)(null),q=(e=>{if(e){const t=Math.floor(e/6e4),r=Math.floor(e%6e4/1e3);return`${t}:${r<10?"0":""}${r}`}})(w),W=(0,s.dateI18n)("M j, Y",j),J=!M&&I?.current?.offsetWidth<I?.current?.scrollWidth,K=(P||E)&&!N&&!V,Z=!N&&(!M||M&&B),Q=M&&K&&!N&&(P||Boolean(w)||Number.isFinite(A)||"boolean"==typeof S),X=M||N||V,Y=(0,x.jsx)(o.A,{size:"small",onClick:(ee=C,e=>{e.stopPropagation(),ee?.(e)}),disabled:!z||U,children:O});var ee;return(0,h.useEffect)(()=>{V&&$(!1)},[V]),(0,x.jsxs)("div",{className:(0,p.A)(_.A["video-row"],{[_.A.disabled]:V,[_.A["hover-disabled"]]:X},t),ref:G,children:[(0,x.jsxs)("div",{className:(0,p.A)(_.A["video-data-wrapper"],{[_.A.small]:M}),children:[(0,x.jsxs)("div",{className:(0,p.A)(_.A["info-wrapper"],{[_.A.small]:M}),onClick:M&&!N?()=>{Q&&$(e=>!e)}:null,role:"presentation",children:[g&&(0,x.jsx)("div",{className:_.A.poster,children:(0,x.jsx)(y.Ay,{thumbnail:f,loading:N||R,uploading:T,processing:F,blankIconSize:28,uploadProgress:D,isRow:!0})}),(0,x.jsxs)("div",{className:_.A["title-wrapper"],children:[J&&(0,x.jsx)(n.Ay,{variant:"body-extra-small",className:_.A.label,component:"span",children:r}),N?(0,x.jsx)(i.A,{height:30}):(0,x.jsxs)(n.Ay,{variant:"title-small",className:(0,p.A)(_.A.title,{[_.A.disabled]:V}),ref:I,children:[r,c]}),M&&(0,x.jsx)(x.Fragment,{children:N?(0,x.jsx)(i.A,{height:20,width:"80%"}):(0,x.jsx)(n.Ay,{component:"div",children:W})})]}),Q&&(0,x.jsx)(l.A,{icon:B?u.A:d.A,size:45})]}),Z&&(0,x.jsxs)("div",{className:(0,p.A)(_.A["meta-wrapper"],{[_.A.small]:M}),children:[!M&&K&&(0,x.jsxs)("div",{className:_.A.actions,children:[P&&Y,E&&e&&(0,x.jsx)(b.W,{videoId:e})]}),(0,x.jsx)(k,{duration:q,uploadDate:W,plays:A,isPrivate:S,loading:N}),M&&K&&(0,x.jsxs)("div",{className:_.A["mobile-actions"],children:[P&&Y,E&&e&&(0,x.jsx)(b.W,{videoId:e})]})]})]}),!L&&(0,x.jsx)(v.A,{id:e,anchor:H,position:"top center"})]})},A=e=>(0,x.jsx)(j,{isLocalVideo:!0,...e}),S=({id:e,...t})=>{const{isDeleting:r,uploading:n,processing:o,isUpdatingPoster:i,data:a,uploadProgress:s}=(0,g.A)(e),c=(r||t?.loading)&&!n&&!o;return(0,x.jsx)(j,{id:e,...t,loading:c,uploading:n,isUpdatingPoster:i,processing:o,showThumbnail:!0,privacySetting:a.privacySetting,uploadProgress:s})}},822(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(7425),o=r(1876),i=r(9491),a=r(3022),s=r(6577),c=r(790);const l=({privacy:e,duration:t,plays:r,upload:l,loading:d=!1,className:u})=>{const p=(0,i.useViewportMatch)("small","<");return(0,c.jsx)("div",{className:(0,a.A)(u,s.A.stats,{[s.A.small]:p}),children:d?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.A,{height:24}),(0,c.jsx)(o.A,{height:24}),(0,c.jsx)(o.A,{height:24}),(0,c.jsx)(o.A,{height:24,className:s.A.upload})]}):(0,c.jsxs)(c.Fragment,{children:[Boolean(e)&&(0,c.jsx)(n.Ay,{"aria-disabled":p?"false":"true",component:"div",children:e}),null!=t&&(0,c.jsx)(n.Ay,{component:"div",children:t}),null!=r&&(0,c.jsx)(n.Ay,{component:"div",children:r}),Boolean(l)&&(0,c.jsx)(n.Ay,{className:s.A.upload,component:"div",children:l})]})})}},7812(e,t,r){"use strict";r.d(t,{i:()=>m});var n=r(7425),o=r(6427),i=r(7723),a=r(3022),s=r(7578),c=r(7520),l=r(9177),d=r(957),u=r(8031),p=r(4818),h=r(790);const __=i.__,f=({className:e,total:t,used:r})=>{if(!t||null==r)return null;const c=r/t,l=`${(100*c).toFixed()}%`,d=(0,s.O)(t,{base:10});return(0,h.jsxs)("div",{className:(0,a.A)(p.A.meter,e),children:[(0,h.jsx)(n.Ay,{className:p.A["percentage-description"],children:(0,i.sprintf)(/* translators: %1$s is the storage percentage, from 0% to 100%, %2$s is the total storage. */
__("%1$s of %2$s of cloud video storage","jetpack-videopress-pkg"),l,d)}),(0,h.jsx)(o.ProgressBar,{value:Math.min(100*c,100)})]})},m=e=>{const{storageUsed:t,uploadedVideoCount:r}=(0,d.Ay)(),{features:n}=(0,c.j)(),{settings:o}=(0,l.T)(),{siteType:i}=o;return i===u.Xb||n?.isVideoPressUnlimitedSupported?null:r?t?(0,h.jsx)(f,{...e,used:t,total:1e12}):(0,h.jsx)(f,{...e,used:0,total:1}):null}},4231(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(723),o=r(1112),i=r(6427),a=r(9491),s=r(7723),c=r(3022),l=r(1609),d=r(6720),u=r(6325),p=r(790);const __=s.__,h=({url:e,selectedTime:t,handleCloseSelectFrame:r,handleVideoFrameSelected:s,handleConfirmFrame:h})=>{const[f,m]=(0,l.useState)(null),g=(0,a.useViewportMatch)("small","<");return(0,p.jsx)(i.Modal,{title:__("Select thumbnail from video","jetpack-videopress-pkg"),onRequestClose:r,isDismissible:!1,children:(0,p.jsx)(n.Ay,{targetDom:f,children:(0,p.jsxs)("div",{ref:m,className:(0,c.A)(u.A.selector,{[u.A["is-small"]]:g}),children:[(0,p.jsx)(d.A,{src:e,onVideoFrameSelected:s,initialCurrentTime:t}),(0,p.jsxs)("div",{className:u.A.actions,children:[(0,p.jsx)(o.A,{variant:"secondary",onClick:r,children:__("Close","jetpack-videopress-pkg")}),(0,p.jsx)(o.A,{variant:"primary",onClick:h,children:__("Select this frame","jetpack-videopress-pkg")})]})]})})})}},5419(e,t,r){"use strict";r.d(t,{Ay:()=>P,sy:()=>x});var n=r(723),o=r(7425),i=r(1112),a=r(1876),s=r(6427),c=r(9491),l=r(8443),d=r(7723),u=r(3109),p=r(4699),h=r(8546),f=r(1034),m=r(6501),g=r(815),v=r(976),b=r(3022),y=r(1609),w=r(3817),_=r(790);const __=d.__,x=({onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:r,onClose:n,isUpdatingPoster:o=!1})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.A,{className:w.A.disabled,weight:"regular",fullWidth:!0,variant:"tertiary",icon:f.A,onClick:()=>{n(),e?.()},children:__("Use default thumbnail","jetpack-videopress-pkg")}),(0,_.jsx)(i.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:m.A,onClick:()=>{n(),t?.()},children:__("Select from video","jetpack-videopress-pkg")}),(0,_.jsx)(i.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:h.A,disabled:o,onClick:()=>{n(),r?.()},children:__("Upload image","jetpack-videopress-pkg")})]}),k=({onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:r,busy:o=!1})=>(0,_.jsx)("div",{className:w.A["video-thumbnail-edit"],children:(0,_.jsx)(s.Dropdown,{placement:"bottom left",renderToggle:({isOpen:e,onToggle:t})=>(0,_.jsx)(i.A,{variant:"secondary",className:w.A["thumbnail__edit-button"],icon:g.A,disabled:o,onClick:t,"aria-expanded":e}),renderContent:({onClose:o})=>(0,_.jsx)(n.Ay,{children:(0,_.jsx)(x,{onClose:o,onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:r})})})}),j=({uploadProgress:e=0,isRow:t=!1})=>{const r=__("Completing upload","jetpack-videopress-pkg"),n=__("Completing","jetpack-videopress-pkg"),i=t?n:r,a=`${Math.floor(100*e)}%`,c=(0,d.sprintf)(/* translators: %s: the upload percentage */
__("Uploading %s","jetpack-videopress-pkg"),a),l=1===e?i:c;return(0,_.jsxs)("div",{className:(0,b.A)(w.A["custom-thumbnail"],{[w.A["is-row"]]:t}),children:[(0,_.jsx)(s.ProgressBar,{value:Math.min(100*e,100)}),(0,_.jsx)(o.Ay,{variant:t?"body-extra-small":"body",className:w.A["upload-text"],children:l})]})},A=({isRow:e=!1})=>(0,_.jsx)("div",{className:w.A["custom-thumbnail"],children:(0,_.jsx)(o.Ay,{variant:e?"body-extra-small":"body",className:w.A.pulse,children:__("Processing","jetpack-videopress-pkg")})}),S=({isRow:e})=>(0,_.jsx)("div",{className:(0,b.A)(w.A["thumbnail-blank"],w.A["thumbnail-error"]),children:(0,_.jsx)(u.A,{icon:p.A,size:e?48:96})}),C=(0,y.forwardRef)(({className:e,thumbnail:t,duration:r,editable:n,blankIconSize:i=96,loading:s=!1,uploading:d=!1,processing:p=!1,deleting:h=!1,updating:f=!1,onUseDefaultThumbnail:m,onSelectFromVideo:g,onUploadImage:y,uploadProgress:x,isRow:C=!1,hasError:P=!1},E)=>{const N=(0,c.useViewportMatch)("small","<"),T=s||d||h||f;let F=t;return F=s?(0,_.jsx)(a.A,{}):F,F=d?(0,_.jsx)(j,{isRow:C,uploadProgress:x}):F,F=p?(0,_.jsx)(A,{isRow:C}):F,F=P?(0,_.jsx)(S,{isRow:C}):F,F="string"==typeof F&&""!==F?(0,_.jsx)("img",{src:F,alt:__("Video thumbnail","jetpack-videopress-pkg")}):F,F=F||(0,_.jsx)("div",{className:w.A["thumbnail-blank"],children:(0,_.jsx)(u.A,{icon:v.A,size:i})}),(0,_.jsxs)("div",{className:(0,b.A)(e,w.A.thumbnail,{[w.A["is-small"]]:N}),ref:E,children:[Boolean(F)&&n&&(0,_.jsx)(k,{onUseDefaultThumbnail:m,onSelectFromVideo:g,onUploadImage:y,busy:T}),Number.isFinite(r)&&(0,_.jsx)("div",{className:w.A["video-thumbnail-duration"],children:(0,_.jsx)(o.Ay,{variant:"body-small",component:"div",children:r>=36e5?(0,l.gmdateI18n)("H:i:s",new Date(r)):(0,l.gmdateI18n)("i:s",new Date(r))})}),(0,_.jsx)("div",{className:w.A["thumbnail-placeholder"],children:F})]})});C.displayName="VideoThumbnail";const P=C},9668(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(7425),o=r(1112),i=r(9491),a=r(7723),s=r(3109),c=r(3705),l=r(3022),d=r(7770),u=r(7520),p=r(3463),h=r(1510),f=r(790);const __=a.__,m=({className:e,onSelectFiles:t})=>{const r=(0,i.useViewportMatch)("small","<"),{inputRef:a,handleFileInputChangeEvent:m}=(0,p.A)({onSelectFiles:t}),{hasVideoPressPurchase:g}=(0,u.j)();return(0,f.jsxs)("div",{className:(0,l.A)(h.A.wrapper,e,{[h.A.small]:r}),children:[(0,f.jsx)("input",{ref:a,type:"file",accept:d.Zd,className:(0,l.A)(h.A["file-input"]),onChange:m,multiple:g}),(0,f.jsx)(s.A,{icon:c.A,size:32,className:(0,l.A)(h.A.icon)}),(0,f.jsx)(n.Ay,{variant:"title-small",children:__("Drag and drop your video here","jetpack-videopress-pkg")}),(0,f.jsx)(o.A,{size:"small",variant:"secondary",className:(0,l.A)(h.A.button),onClick:()=>{a.current.click()},children:__("Select file to upload","jetpack-videopress-pkg")})]})}},6791(e,t,r){"use strict";r.d(t,{V:()=>o});var n=r(1609);const o=()=>{const[e,t]=(0,n.useState)(null),[r,o]=(0,n.useState)(!1),[i,a]=(0,n.useState)(!1),[s,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{o(!(!i&&!s))},[i,s]),{setAnchor:t,setIsFocused:c,setIsHovering:a,setShowPopover:o,anchor:e,isFocused:s,isHovering:i,showPopover:r}}},6764(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(372),o=r(9384),i=r(1609);const a=({pageViewEventName:e,pageViewEventProperties:t={}})=>{const{isUserConnected:r,isRegistered:a,userConnectionData:s}=(0,o.useConnection)(),{blogId:c}=s?.currentUser||{},{login:l,ID:d}=s?.currentUser?.wpcomUser||{},{tracks:u}=n.A,{recordEvent:p}=u,h=(0,i.useCallback)(async(e,t)=>{p(e,t)},[p]),f=(0,i.useCallback)((e,t,r=()=>({}))=>(r="function"==typeof t?t:r,t="function"==typeof t?{}:t,c&&(t.blog_id=c),()=>h(e,t).then(r)),[h,c]);return(0,i.useEffect)(()=>{r&&d&&l&&n.A.initialize(d,l)},[r,d,l]),(0,i.useEffect)(()=>{a&&e&&(c&&(t.blog_id=c),p(e,t))},[c]),{recordEvent:h,recordEventHandler:f}}},5036(e,t,r){"use strict";r.d(t,{c:()=>l});var n=r(7143),o=r(1609),i=r(6287),a=r(7520),s=r(8728),c=r(957);const l=()=>{const{uploadVideo:e,uploadVideoFromLibrary:t,setVideosQuery:r}=(0,n.useDispatch)(i.ax),{items:l,uploadErrors:d,uploading:u,uploadedVideoCount:p,isFetching:h,search:f,page:m,itemsPerPage:g,total:v}=(0,c.Ay)(),{items:b,uploadedLocalVideoCount:y}=(0,c.Ds)(),{hasVideoPressPurchase:w}=(0,a.j)(),_=(0,o.useRef)(m),x=(0,s.o)(),k=parseInt(x.getParam("page","1"),10),j=Number.isNaN(k)?1:k,A=x.getParam("q",""),S=Math.ceil(v/g);(0,o.useEffect)(()=>0===v&&1!==j||v>0&&(j<1||j>S)?(x.deleteParam("page"),void x.update()):void(m===j?f!==A&&r({search:A}):m!==_.current?(_.current=m,x.setParam("page",String(m)),x.update()):(_.current=j,r({page:j}))),[S,m,j,f,A]);return{videos:(0,o.useMemo)(()=>{if(!h)return null;const e=Math.max(1,Math.min(g,p-g*(m-1)));return Array.from({length:e},(e,t)=>({id:`placeholder-${t}`}))},[h,g,p,m])??(m>1||Boolean(f)?l:[...d,...u,...l]),localVideos:b,uploadedVideoCount:p,uploadedLocalVideoCount:y,hasVideos:p>0||h||u?.length>0||d?.length>0,hasLocalVideos:y>0,handleFilesUpload:t=>{w?t.forEach(t=>{e(t)}):t.length>0&&e(t[0])},handleLocalVideoUpload:e=>{t(e)},loading:h,uploading:u?.length>0||d?.length>0,hasVideoPressPurchase:w}}},9072(e,t,r){"use strict";r.d(t,{J:()=>o});var n=r(9384);const o=()=>{const{isRegistered:e,hasConnectedOwner:t,isUserConnected:r}=(0,n.useConnection)();return{isRegistered:e,hasConnectedOwner:t,isUserConnected:r,canPerformAction:e&&t&&r}}},7520(e,t,r){"use strict";r.d(t,{j:()=>d});var n=r(7143),o=r(6287),i=r(4523);const{paidFeatures:a={},siteProductData:s={},productData:c={},productPrice:l={}}=window&&window.jetpackVideoPressInitialState?window.jetpackVideoPressInitialState:{},d=()=>{const e=(0,i.x)(s.pricing_for_ui,!0),t=(0,i.x)(c.introductory_offer,!0),r={...(0,i.x)(c,!0),introductoryOffer:t},{features:d,isFetchingFeatures:u}=(0,n.useSelect)(e=>({features:e(o.ax).getFeatures(),isFetchingFeatures:e(o.ax).isFetchingFeatures()}),[]),p=d??a;return{features:p,siteProduct:{...(0,i.x)({...s},!0),pricingForUi:e},product:r,productPrice:l,hasVideoPressPurchase:Boolean(p?.isVideoPress1TBSupported||p?.isVideoPressUnlimitedSupported),isFetchingFeatures:u}}},8326(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(7143),o=r(8962);function i(e){const t=e.needsPlaybackToken,r=(0,n.useSelect)(r=>t?r(o.ax).getPlaybackToken(e.guid):null,[e.guid]),i=(0,n.useSelect)(e=>!!t&&e(o.ax).isFetchingPlaybackToken(),[e.guid]);return{playbackToken:r?.token,isFetchingPlaybackToken:i}}},7750(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(7143),o=r(7723),i=r(1609),a=r(6287);const __=o.__,s=({video:e})=>{const[t,r]=(0,i.useState)(null),[o,s]=(0,i.useState)(null),[c,l]=(0,i.useState)(!1),d=(0,n.useDispatch)(a.ax),u=()=>new Promise(e=>{const t=window.wp.media({title:__("Select Thumbnail","jetpack-videopress-pkg"),multiple:!1,library:{type:"image"},button:{text:__("Use this image as thumbnail","jetpack-videopress-pkg")}});t.on("select",function(){const r=t?.state()?.get("selection")?.first()?.toJSON();e({id:r?.id,url:r?.url})}),t.on("close",function(){setTimeout(()=>{e(null)},0)}),t.open()}),p=async t=>{if(null!=t)return d?.updateVideoPoster(e.id,e.guid,{poster_attachment_id:t})};return{handleConfirmFrame:()=>{r(o),l(!1)},handleCloseSelectFrame:()=>l(!1),handleOpenSelectFrame:()=>l(!0),handleVideoFrameSelected:e=>{s(e)},useVideoAsThumbnail:null!==t,selectedTime:Number.isFinite(t)?t/1e3:null,frameSelectorIsOpen:c,updatePosterImageFromFrame:()=>{if(Number.isFinite(t))return d?.updateVideoPoster(e.id,e.guid,{at_time:t,is_millisec:!0})},selectAttachmentFromLibrary:u,updatePosterImageFromLibrary:p,selectAndUpdatePosterImageFromLibrary:async()=>{const e=await u();if(e)return p(e.id)},setVideoFrameMs:r}}},8728(e,t,r){"use strict";r.d(t,{o:()=>o});var n=r(6212);const o=()=>{const e=(0,n.zy)(),t=(0,n.Zp)(),r=new URLSearchParams(e.search);return{getParam:(e,t=null)=>r.has(e)?r.get(e):t,setParam:(e,t=null)=>{r.set(e,t)},deleteParam:e=>{r.delete(e)},update:()=>{const n="?"+r.toString();n!==e.search&&t({search:n})},reset:()=>{""!==e.search&&t({pathname:e.pathname,search:""},{replace:!0})}}}},3463(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(1609),o=r(7770);const i=({canDrop:e=!1,dropElement:t,onSelectFiles:r}={})=>{const[i,a]=(0,n.useState)(!1),s=(0,n.useRef)(null);let c=[];const l=e=>Array.from(e).filter(e=>o.SK.some(t=>e.name.toLocaleLowerCase().endsWith(t))),d=(0,n.useCallback)(e=>{const t=l(e.currentTarget.files);r(t)},[r]),u=e=>{e.preventDefault(),e.stopPropagation(),c.length>0&&(c.forEach(e=>clearTimeout(e)),c=[]),a(!0)},p=()=>{const e=setTimeout(()=>{a(!1);const t=c.findIndex(t=>t===e);t>-1&&c.splice(t,1)},100);c.push(e)},h=(0,n.useCallback)(t=>{if(a(!1),t.preventDefault(),t.stopPropagation(),c.forEach(e=>clearTimeout(e)),c=[],!e)return;const n=l(t.dataTransfer.files);r(n)},[e,r]);return(0,n.useEffect)(()=>{e||a(!1)},[e]),t&&(0,n.useEffect)(()=>(t.addEventListener("drop",h),t.addEventListener("dragover",u),t.addEventListener("dragleave",p),()=>{t.removeEventListener("drop",h),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",p)}),[h,u,p]),{isDraggingOver:i,inputRef:s,setIsDraggingOver:a,handleFileInputChangeEvent:d,handleDragOverEvent:u,handleDragLeaveEvent:p,handleDropEvent:h,filterVideoFiles:l}}},4951(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(1609);const o=({shouldPrevent:e=!1,message:t})=>{(0,n.useEffect)(()=>{if(!e)return;const r=e=>{e.preventDefault(),e.returnValue=t};return window.addEventListener("beforeunload",r),()=>{window.removeEventListener("beforeunload",r)}},[e])}},2807(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(7143),o=r(8962);function i(){return{items:(0,n.useSelect)(e=>e(o.ax).getUsers()),...(0,n.useSelect)(e=>e(o.ax).getUsersPagination())}}},7882(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(7143),o=r(6287),i=r(8962);function a(e,t=!1){const r=(0,n.useDispatch)(o.ax),a=(0,n.useSelect)(r=>r(o.ax).getVideo(e,t),[e]),s=(0,n.useSelect)(t=>t(o.ax).getVideoStateMetadata(e),[e]),c=(0,n.useSelect)(e=>e(o.ax).getIsFetching(),[e]),l=null===a?.posterImage&&!a?.finished;return{data:{privacySetting:i.zG.indexOf(i.az),...a},...s,processing:l,isFetching:c,setVideo:e=>r.setVideo(e),deleteVideo:()=>r.deleteVideo(e),updateVideoPrivacy:t=>r.updateVideoPrivacy(e,i.zG.findIndex(e=>e===t))}}},9177(e,t,r){"use strict";r.d(t,{T:()=>a});var n=r(7143),o=r(6287),i=r(8031);const a=()=>{const e=(0,n.useDispatch)(o.ax),t=(0,n.useSelect)(e=>e(o.ax).getVideoPressSettings(),[]);return{settings:{videoPressVideosPrivateForSite:t?.videoPressVideosPrivateForSite??!1,siteIsPrivate:t?.siteIsPrivate??!1,siteType:t?.siteType??i.Aq},onUpdate:t=>e.updateVideoPressSettings(t)}}},957(e,t,r){"use strict";r.d(t,{Ay:()=>i,Ds:()=>a,mo:()=>s});var n=r(7143),o=r(8962);function i(){const e=(0,n.useSelect)(e=>e(o.ax).getVideos()),t=(0,n.useSelect)(e=>e(o.ax).getUploadingVideos()),r=t.length>0,i=(0,n.useSelect)(e=>e(o.ax).getUploadedVideoCount()),a=(0,n.useSelect)(e=>e(o.ax).getIsFetching()),s=(0,n.useSelect)(e=>e(o.ax).getIsFetchingUploadedVideoCount()),c=(0,n.useSelect)(e=>e(o.ax).getFirstUploadedVideoId()),l=(0,n.useSelect)(e=>e(o.ax).getFirstVideoProcessed()),d=(0,n.useSelect)(e=>e(o.ax).getDismissedFirstVideoPopover()),u=(0,n.useSelect)(e=>e(o.ax).getVideosQuery()||{}),p=(0,n.useSelect)(e=>e(o.ax).getPagination()),h=(0,n.useSelect)(e=>e(o.ax).getStorageUsed(),[]);return{items:e,uploading:t,isUploading:r,search:"",filter:(0,n.useSelect)(e=>e(o.ax).getVideosFilter()),uploadedVideoCount:i,isFetching:a,isFetchingUploadedVideoCount:s,firstUploadedVideoId:c,firstVideoProcessed:l,dismissedFirstVideoPopover:d,...u,...p,...h,uploadErrors:(0,n.useSelect)(e=>e(o.ax).getUploadErrorVideos()),setPage:e=>(0,n.dispatch)(o.ax).setVideosQuery({page:e}),setSearch:e=>(0,n.dispatch)(o.ax).setVideosQuery({search:e}),setFilter:(0,n.dispatch)(o.ax).setVideosFilter}}const a=()=>({items:(0,n.useSelect)(e=>e(o.ax).getLocalVideos()),uploadedLocalVideoCount:(0,n.useSelect)(e=>e(o.ax).getUploadedLocalVideoCount()),isFetching:(0,n.useSelect)(e=>e(o.ax).getIsFetchingLocalVideos()),...(0,n.useSelect)(e=>e(o.ax).getLocalVideosQuery()||{}),...(0,n.useSelect)(e=>e(o.ax).getLocalPagination()),setPage:e=>(0,n.dispatch)(o.ax).setLocalVideosQuery({page:e})}),s=()=>(0,n.useSelect)(e=>e(o.ax).getVideosQuery()||{})},6592(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(6427),o=r(7723),i=(r(8261),r(790));const __=o.__;function a({isOpen:e,onClose:t}){return e?(0,i.jsxs)(n.Modal,{title:__("Chapters in VideoPress","jetpack-videopress-pkg"),isDismissible:!1,className:"learn-how-modal",onRequestClose:t,children:[(0,i.jsx)("p",{children:__("Chapters are a great way to split up longer videos and organize them into different sections.","jetpack-videopress-pkg")}),(0,i.jsx)("p",{children:__("They allow your visitors to see what each section is about and skip to their favorite parts.","jetpack-videopress-pkg")}),(0,i.jsx)("p",{className:"learn-how-modal__heading",children:__("How to add Chapters to your VideoPress videos","jetpack-videopress-pkg")}),(0,i.jsxs)("ol",{children:[(0,i.jsx)("li",{children:__("In the Description, add a list of timestamps and titles.","jetpack-videopress-pkg")}),(0,i.jsx)("li",{children:__("Make sure that the first timestamp starts with 00:00.","jetpack-videopress-pkg")}),(0,i.jsx)("li",{children:__("Add at least three chapters entries and as many as you need.","jetpack-videopress-pkg")}),(0,i.jsx)("li",{children:__("Add your chapters entries in consecutive order, with at least 10-second intervals between each.","jetpack-videopress-pkg")})]}),(0,i.jsx)("p",{className:"learn-how-modal__heading",children:__("Example","jetpack-videopress-pkg")}),(0,i.jsx)("p",{children:__("00:00 Intro","jetpack-videopress-pkg")}),(0,i.jsx)("p",{children:__("00:24 Mountains arise","jetpack-videopress-pkg")}),(0,i.jsx)("p",{children:__("02:38 Coming back home","jetpack-videopress-pkg")}),(0,i.jsx)("p",{children:__("03:04 Credits","jetpack-videopress-pkg")}),(0,i.jsx)("div",{className:"learn-how-modal__buttons",children:(0,i.jsx)(n.Button,{className:"learn-how-modal__button",onClick:t,variant:"primary",children:__("Got it, thanks","jetpack-videopress-pkg")})})]}):null}},6151(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(1112),o=r(6087),i=r(7723),a=r(1609),s=r(6592),c=r(790);const __=i.__,l=()=>{const[e,t]=(0,a.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,o.createInterpolateElement)(__("Did you know you can now add Chapters to your videos? <link>Learn how</link>","jetpack-videopress-pkg"),{link:(0,c.jsx)(n.A,{variant:"link",size:"small",onClick:()=>t(!0)})}),(0,c.jsx)(s.A,{onClose:()=>t(!1),isOpen:e})]})}},7726(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6427),o=r(790);const i=(0,o.jsxs)(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)(n.Path,{d:"M8.45414 21.2068L16.4541 3.70678L15.5446 3.29102L13.6676 7.39695C13.1429 7.3024 12.587 7.24988 11.9996 7.24988C9.00203 7.24988 6.82613 8.61747 5.41986 9.95678C4.71735 10.6259 4.19984 11.2937 3.85693 11.7955C3.6851 12.047 3.55604 12.2583 3.46859 12.4095C3.42483 12.4851 3.39141 12.5458 3.36817 12.5891C3.35655 12.6107 3.34747 12.6281 3.34091 12.6407L3.33296 12.6562L3.3304 12.6613L3.3291 12.6639C3.3291 12.6639 3.32878 12.6645 3.9996 12.9999C4.67042 13.3353 4.67016 13.3358 4.67016 13.3358L4.67297 13.3304C4.67621 13.3241 4.68183 13.3134 4.68987 13.2984C4.70594 13.2685 4.73159 13.2217 4.76694 13.1607C4.83769 13.0384 4.94691 12.8591 5.0954 12.6418C5.39312 12.2061 5.84435 11.6239 6.45434 11.043C7.67307 9.88229 9.49718 8.74988 11.9996 8.74988C12.353 8.74988 12.693 8.77247 13.0196 8.81455L12.8834 9.11243C12.6011 9.03897 12.3049 8.99988 11.9996 8.99988C10.0666 8.99988 8.49962 10.5669 8.49962 12.4999C8.49962 13.6966 9.1002 14.753 10.0163 15.3842L7.54467 20.791L8.45414 21.2068Z"}),(0,o.jsx)(n.Path,{d:"M15.7168 9.69537C16.4332 10.0877 17.041 10.563 17.5451 11.0431C18.1551 11.624 18.6064 12.2062 18.9041 12.6419C19.0526 12.8592 19.1618 13.0385 19.2325 13.1608C19.2679 13.2218 19.2935 13.2686 19.3096 13.2985L19.3211 13.3202L19.3265 13.3305L19.3293 13.3359C19.3293 13.3359 19.329 13.3354 19.9999 13C20.6707 12.6646 20.67 12.6632 20.67 12.6632L20.6691 12.6614L20.6665 12.6563L20.6586 12.6408C20.652 12.6282 20.6429 12.6108 20.6313 12.5892C20.6081 12.5459 20.5746 12.4852 20.5309 12.4096C20.4434 12.2584 20.3144 12.0471 20.1425 11.7956C19.7996 11.2938 19.2821 10.626 18.5796 9.95691C17.9765 9.38256 17.2319 8.803 16.3417 8.32834L15.7168 9.69537Z"}),(0,o.jsx)(n.Path,{d:"M12.8867 15.8868C14.3904 15.4942 15.5002 14.1267 15.5002 12.5C15.5002 11.9453 15.3711 11.4207 15.1414 10.9546L12.8867 15.8868Z"})]})},6639(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6427),o=r(790);const i=(0,o.jsxs)(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)(n.Rect,{x:"5",y:"7",width:"14",height:"1.5"}),(0,o.jsx)(n.Rect,{x:"7",y:"11.25",width:"10",height:"1.5"}),(0,o.jsx)(n.Rect,{x:"9",y:"15.5",width:"6",height:"1.5"})]})},7975(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6427),o=r(790);const i=(0,o.jsx)(n.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(n.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"})})},7121(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(6427),o=r(790);const i=(0,o.jsx)(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(n.Path,{d:"m3.999 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.07-.122.18-.302.328-.52a10.1 10.1 0 0 1 1.36-1.598c1.218-1.16 3.042-2.293 5.545-2.293 2.502 0 4.326 1.132 5.545 2.293.61.581 1.061 1.163 1.359 1.599a8.29 8.29 0 0 1 .405.657l.017.032.003.005.67-.336.671-.336-.001-.003-.003-.005-.008-.015a9.752 9.752 0 0 0-.516-.845c-.343-.502-.86-1.17-1.563-1.84-1.406-1.338-3.582-2.706-6.58-2.706-2.997 0-5.173 1.368-6.58 2.707-.702.669-1.22 1.337-1.562 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.003.005v.003l.67.336Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"})})},2843(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(1112),o=r(6427),i=r(6087),a=r(7723),s=r(1609),c=r(6592),l=r(790);const __=a.__,d=({className:e})=>{const[t,r]=(0,s.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.Notice,{status:"warning",className:e,isDismissible:!1,children:(0,i.createInterpolateElement)(__("It seems there are some chapters, but they are incomplete. Check out the <link>format</link> and try again.","jetpack-videopress-pkg"),{link:(0,l.jsx)(n.A,{variant:"link",size:"small",onClick:()=>r(!0)})})}),(0,l.jsx)(c.A,{onClose:()=>r(!1),isOpen:t})]})}},6720(e,t,r){"use strict";r.d(t,{A:()=>u,L:()=>d});var n=r(6427),o=r(6087),i=r(3109),a=r(3022),s=r(7975),c=r(4156),l=r(790);const d=({src:e,setMaxDuration:t=null,currentTime:r,videoRef:i})=>{const a=(0,o.useRef)(null),s=i||a,[d,u]=(0,o.useState)(!0);(0,o.useEffect)(()=>{s.current.src=e},[e]),(0,o.useEffect)(()=>{s.current&&Number.isFinite(r)&&(s.current.currentTime=r)},[r]);return(0,l.jsxs)("div",{className:c.A["video-player-wrapper"],children:[d&&(0,l.jsx)("div",{className:c.A["video-player-spinner-wrapper"],children:(0,l.jsx)(n.Spinner,{className:c.A.spinner})}),(0,l.jsx)("video",{onLoadedData:()=>u(!1),ref:s,muted:!0,className:c.A.video,onDurationChange:e=>{const n=e.target.duration;if(t?.(n),s.current){const e=Number.isFinite(r)?r:n/2;s.current.currentTime=e}}})]})},u=({src:e="",onVideoFrameSelected:t,className:r="",initialCurrentTime:u=null,videoRef:p=null})=>{const[h,f]=(0,o.useState)(0),[m,g]=(0,o.useState)(Number.isFinite(u)?u:null);return(0,l.jsxs)("div",{className:(0,a.A)(c.A.container,r),children:[(0,l.jsx)(i.A,{className:c.A["play-icon"],icon:s.A}),(0,l.jsx)(d,{src:e,setMaxDuration:f,currentTime:m,videoRef:p}),(0,l.jsx)(n.RangeControl,{className:c.A.range,min:0,step:.1,initialPosition:m,max:h,showTooltip:!1,withInputField:!1,onChange:e=>{g(e),t?.(1e3*e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})}},2439(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(9491),o=r(1609),i=r(9799),a=r(2066);const s=e=>{const[t,r]=(0,o.useState)(!1),s=(0,o.useCallback)(()=>{const t=(0,i.Ay)(e);0===t.length?r(!1):r(!(0,a.A)(t))},[e]),c=(0,n.useDebounce)(s,3e3);return(0,o.useEffect)(()=>{c()},[e]),(0,o.useEffect)(s,[]),{hasIncompleteChapters:t}}},2185(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(1455),o=r.n(n);const i=e=>{const t={allowDownload:"allow_download",displayEmbed:"display_embed"};return r=>new Promise((n,i)=>{const a=(s=Object.assign({id:e},r),Object.keys(s).reduce((e,r)=>(e[t[r]||r]=s[r],e),{}));var s;o()({path:"/wpcom/v2/videopress/meta",method:"POST",data:a}).then(e=>{"success"!==e?.code&&i()}).catch(e=>i(e)).finally(()=>{n()})})}},560(e,t,r){"use strict";r.d(t,{NP:()=>a});var n=r(1455),o=r.n(n),i=(r(6087),r(7723));r(781);const __=i.__,a=e=>{const t=`videopress/v1/upload/${e}`;return new Promise((r,n)=>{o()({path:t,method:"POST"}).then(t=>{"uploading"===t.status||"new"===t.status||"resume"===t.status?a(e).then(r).catch(n):"complete"===t.status?r({guid:t.uploaded_details.guid,id:t.uploaded_details.media_id,src:t.uploaded_details.upload_src}):"error"===t.status?n({data:{message:t.error}}):n({data:{message:__("Unexpected error uploading video.","jetpack-videopress-pkg")}})}).catch(e=>{n({data:{message:e?.message}})})})}},1370(e,t,r){"use strict";r.d(t,{X:()=>u});var n=r(1455),o=r.n(n),i=r(6087),a=r(6941),s=r.n(a),c=r(8025);const l=i.Platform.isNative,d=s()("videopress:lib:fetch-video-item");async function u({guid:e,isPrivate:t,token:r=null,skipRatingControl:n=!1,retries:i=0}){try{const i=n?{}:{birth_day:"1",birth_month:"1",birth_year:"2000"};let a;t&&!r&&(a=await(0,c.A)("playback",{guid:e})),(r||a?.token)&&(i.metadata_token=r||a.token);const s=Object.keys(i).length?`?${new URLSearchParams(i).toString()}`:"",d=l?{path:`/rest/v1.1/videos/${e}${s}`}:{url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}${s}`};return await o()({...d,credentials:"omit",global:!0})}catch(t){d("updating retry from",i,"to",i+1);const r=i+1;if(r>2)throw d("Too many attempts to get video. Aborting."),new Error(t?.message??t,{cause:t});if("auth"===t?.error)return d("Authentication error. Reattempt %o",r+"/3"),u({guid:e,isPrivate:!0,token:null,skipRatingControl:n,retries:r});if("Please supply the birthdate parameters."===t?.message)return d("Rating error. Reattempt %o",r+"/3"),u({guid:e,isPrivate:!0,token:null,skipRatingControl:!1,retries:r});throw new Error(t?.message??t,{cause:t})}}},8025(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(6941),o=r.n(n),i=r(5468);const a=o()("videopress:get-media-token");const s=async function(e,t={}){const{id:r=0,guid:n=0,flushToken:o}=t,s=`vpc-${e}-${r}-${n}`,c=window?.videopressAjax?.context||"main";let l;const d=localStorage.getItem(s);if(o)a("(%s) Flushing %o token",c,s),localStorage.removeItem(s);else try{if(d){if(l=await JSON.parse(d),l&&l.expire>Date.now())return a("(%s) Providing %o token from the store",c,s),l.data;a("(%s) Token %o expired. Clean.",c,s),localStorage.removeItem(s)}}catch{a("Invalid token in the localStore")}const u=await function(e,t={}){const{id:r=0,guid:n,subscriptionPlanId:o=0,adminAjaxAPI:s,filename:c}=t;return new Promise(function(t,l){const d=s||window.videopressAjax?.ajaxUrl||window?.ajaxurl||"/wp-admin/admin-ajax.php";if(!i.p.includes(e))return l("Invalid scope");const u={action:"videopress-get-playback-jwt"};switch(e){case"upload":u.action="videopress-get-upload-token",c&&(u.filename=c);break;case"upload-jwt":u.action="videopress-get-upload-jwt";break;case"playback":u.action="videopress-get-playback-jwt",u.guid=n,u.post_id=String(r),u.subscription_plan_id=o}const p=!!window?.GBKit&&"function"==typeof window.wp?.apiFetch,h=new URLSearchParams;for(const[e,t]of Object.entries(u))void 0!==t&&h.append(e,String(t));const f={method:"POST",credentials:"same-origin",body:h};(p?window.wp.apiFetch({url:d,...f,parse:!1}):fetch(d,f)).then(e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()}).then(r=>{if(!r.success)throw new Error("Token is not achievable");switch(e){case"upload":case"upload-jwt":t({token:r.data.upload_token,blogId:r.data.upload_blog_id,url:r.data.upload_action_url});break;case"playback":t({token:r.data.jwt})}}).catch(e=>{a("Token request failed: %o",e),t({token:null})})})}(e,t);return"playback"===e&&u?.token&&(a("(%s) Storing %o token",c,s),localStorage.setItem(s,JSON.stringify({data:u,expire:Date.now()+864e5}))),a("(%s) Providing %o token from request/response",c,s),u}},5468(e,t,r){"use strict";r.d(t,{p:()=>n});const n=["upload","playback","upload-jwt"]},5778(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(6941),o=r.n(n),i=r(781),a=r(8025);const s=o()("videopress:resumable-file-uploader"),c=[408,429,500,502,503,504],l={},d=({file:e,tokenData:t,onProgress:r,onSuccess:n,onError:o})=>{const d=new i._O(e,{onError:o,onProgress:r,endpoint:t.url,removeFingerprintOnSuccess:!0,overridePatchMethod:!1,chunkSize:1e7,metadata:{filename:e.name,filetype:e.type},retryDelays:[0,1e3,3e3,5e3,1e4],onShouldRetry:function(e){const t=e.originalResponse?e.originalResponse.getStatus():0;return!(t&&!c.includes(t))||(s("not retrying due to %d error",t),localStorage.removeItem(d._urlStorageKey),!1)},onBeforeRequest:async function(e){const r=e._method;if(["HEAD","OPTIONS"].indexOf(r)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",r)),["DELETE","PUT","PATCH"].indexOf(r)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",r)),e._xhr.open(e._method,e._url,!0),Object.keys(e._headers).forEach(function(t){e.setHeader(t,e._headers[t])}),"POST"===r){if(!!!t.token)throw"should never happen";e.setHeader("x-videopress-upload-token",t.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(r)>=0){const t=(n=e._url,new URL(n).pathname.split("/").pop());if(l[t])e.setHeader("x-videopress-upload-token",l[t]);else if("HEAD"===r){const r=await(0,a.A)("upload-jwt");r?.token&&(l[t]=r.token,e.setHeader("x-videopress-upload-token",r.token))}}var n},onAfterResponse:async function(t,r){if(r.getStatus()>=400)return void s("upload error");const o=r.getHeader("x-videopress-upload-guid"),i=r.getHeader("x-videopress-upload-media-id"),a=r.getHeader("x-videopress-upload-src-url");if(o&&i&&a)return void(n&&n({id:Number(i),guid:o,src:a},e));const c={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},d={};Object.keys(c).forEach(function(e){const t=r.getHeader(e);t&&(d[c[e]]=t)}),d.key&&d.token&&(l[d.key]=d.token)}});return d.findPreviousUploads().then(function(e){e.length&&d.resumeFromPreviousUpload(e[0]),d.start()}),d}},9689(e,t,r){"use strict";r.d(t,{rB:()=>n});r(1455),r(3832);function n(e,t){return t?`https://video.wordpress.com/v/${e}`:`https://videopress.com/v/${e}`}},8634(e,t,r){"use strict";r.d(t,{Cr:()=>u,n:()=>p});var n=r(1455),o=r.n(n),i=r(6941),a=r.n(i),s=r(8025);const{siteType:c=""}=window?.videoPressEditorState||{},l="simple"!==c,d=a()("videopress:tracks:lib:video-tracks");async function u(e,t){if(!e)return!1;let r,n="";t.isPrivate&&(r=await(0,s.A)("playback",{guid:t.guid}),n="?"+new URLSearchParams({metadata_token:r?.token}).toString());let o=await fetch(e+n);if(!o.ok&&403===o.status&&t.guid&&(r=await(0,s.A)("playback",{guid:t.guid}),n="?"+new URLSearchParams({metadata_token:r?.token}).toString(),o=await fetch(e+n)),!o.ok)return!1;const i=await o.text();return/videopress-chapters-auto-generated/.test(i)}const p=(e,t)=>{const{kind:r,srcLang:n,label:i,tmpFile:a}=e;return l?function(e,t){return d("using jetpack api fetch"),new Promise(function(r,n){const{kind:o,srcLang:i,label:a,tmpFile:c}=e;(0,s.A)("upload",{filename:c.name}).then(({token:e,blogId:s})=>{const l=new FormData;l.append("kind",o),l.append("srclang",i),l.append("label",a),l.append("vtt",c),fetch(`https://public-api.wordpress.com/rest/v1.1/videos/${t}/tracks`,{headers:{Authorization:`X_UPLOAD_TOKEN token="${e}" blog_id="${s}"`},method:"POST",body:l}).then(e=>{try{const t=e.json();return d("data",e),d("json",t),r(t)}catch(e){return d("error",e),n(e)}}).catch(n)})})}({kind:r,srcLang:n,label:i,tmpFile:a},t):(d("using wpcom api fetch"),new Promise(function(e,s){return o()({method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",r],["srclang",n],["label",i],["vtt",a]]}).then(t=>{try{const r=t.json();return d("data",t),d("json",r),e(r)}catch(e){return d("error",e),s(e)}}).catch(s)}))}},9596(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(1455),o=r.n(n),i=r(7723),a=r(3832),s=r(6941),c=r.n(s),l=r(560),d=r(8025),u=r(5778),p=r(3356),h=r(8962),f=r(8306),m=r(4603);const __=i.__,g=c()("videopress:actions"),v=async e=>{const t=await o()({path:(0,a.addQueryArgs)(`${h.$s}/${e?.id}`)}),r=(0,f.ac)(t);return null!==r?.posterImage&&""!==r?.posterImage?Promise.resolve(r):new Promise((t,r)=>{setTimeout(()=>{v(e).then(t).catch(r)},2e3)})},b={setIsFetchingVideos:e=>({type:h.QK,isFetching:e}),setFetchVideosError:e=>({type:h.Ms,error:e}),setVideosQuery:e=>({type:h.pz,query:e}),setVideosPagination:e=>({type:h.Ni,pagination:e}),setVideosFilter:(e,t,r)=>({type:h.B1,filter:e,value:t,isActive:r}),setVideos:e=>({type:h.c$,videos:e}),dismissFirstVideoPopover:()=>({type:h.IX}),setLocalVideos:e=>({type:h.UB,videos:e}),setIsFetchingLocalVideos:e=>({type:h.k8,isFetching:e}),setLocalVideosQuery:e=>({type:h.DE,query:e}),setLocalVideosPagination:e=>({type:h.DX,pagination:e}),setVideosStorageUsed:e=>({type:h.qd,used:e}),setVideo:(e,t=!1)=>({type:h.Rd,video:e,addAtEnd:t}),setIsFetchingUploadedVideoCount:e=>({type:h.u7,isFetchingUploadedVideoCount:e}),setUploadedVideoCount:e=>({type:h.E9,uploadedVideoCount:e}),setVideoPrivacy:({id:e,privacySetting:t})=>({type:h.wx,id:e,privacySetting:t}),updateVideoPrivacy:(e,t)=>async({dispatch:r,select:n,resolveSelect:i})=>{const a=Number(t);if(isNaN(a))throw new Error(`Invalid privacy level: '${t}'`);if(0>a||a>=h.zG.length)throw new Error(`Invalid privacy level: '${t}'`);if(1===t){const t=await n.getVideo(e);await i.getPlaybackToken(t?.guid)}r.setVideoPrivacy({id:e,privacySetting:a});try{const t=await o()({path:h.bT,method:"POST",data:{id:e,privacy_setting:a}});if(200!==t?.data)return;const{videoPressVideosPrivateForSite:i}=n.getVideoPressSettings();return r.updateVideoIsPrivate(e,(0,m.D)(a,i)),r({type:h.d$,id:e,privacySetting:a})}catch(e){console.error(e)}},removeVideo:e=>({type:h.H9,id:e}),deleteVideo:e=>async({dispatch:t,select:r})=>{t.removeVideo(e);let n={type:h.WX,id:e,hasBeenDeleted:!1,video:{}};try{const t=await o()({path:`${h.$s}/${e}`,method:"DELETE",data:{id:e,force:!0}});t?.deleted&&(n={...n,hasBeenDeleted:!0,video:t?.previous})}catch(e){console.error(e)}finally{t(n)}r.getProcessedAllVideosBeingRemoved()&&(t({type:h.Aq}),t({type:h.kb}))},uploadVideo:e=>async({dispatch:t})=>{const r=(0,p.A)();g("Uploading video"),t({type:h.NX,id:r,title:e?.name});const n=await(0,d.A)("upload-jwt");(0,u.A)({tokenData:n,file:e,onError:e=>{g("Upload error",e);const n=e?.originalResponse?.getHeader("x-videopress-upload-error")||__("Upload error","jetpack-videopress-pkg");t({type:h.SH,id:r,error:n})},onProgress:(e,n)=>{t({type:h.TZ,id:r,bytesSent:e,bytesTotal:n})},onSuccess:async e=>{g("Video uploaded",e),t({type:h.TI,id:r,data:e});const n=await v(e);t({type:h.Ko,video:n})}})},uploadVideoFromLibrary:e=>async({dispatch:t})=>{const r=(0,p.A)();t({type:h.NX,id:r,title:e?.title});const n=await(0,l.NP)(e?.id);t({type:h.K,id:e?.id}),t({type:h.TI,id:r,data:n});const o=await v(n);t({type:h.Ko,video:o})},setIsFetchingFeatures:e=>({type:h.DN,isFetching:e}),setFeatures:e=>({type:h.PO,features:e}),updateVideoPoster:(e,t,r)=>async({dispatch:n,select:i,resolveSelect:a})=>{const s=`${h.v2}/${t}/poster`,c=await i.getVideo(e),l=async()=>{if(!c.needsPlaybackToken)return null;const e=await a.getPlaybackToken(c.guid);return e?.token},d=(e,t)=>e&&t?`${e}?metadata_token=${t}`:e,u=()=>{setTimeout(async()=>{try{const t=await o()({path:s,method:"GET"});if(t?.data?.generating)u();else{const r=await l(),i=t?.data?.poster;n({type:h.OU,id:e,poster:d(i,r)}),o()({path:h.bT,method:"POST",data:{id:e,poster:i}})}}catch(e){console.error(e)}},2e3)};try{n({type:h.en,id:e});const t=c.duration-r.at_time;t<50&&(r.at_time-=t+50);const i=await o()({method:"POST",path:s,data:r});if(i?.data?.generating)return void u();const a=await l(),p=d(i?.data?.poster,a);return n({type:h.OU,id:e,poster:p})}catch(e){console.error(e)}},setUsers:e=>({type:h.q2,users:e}),setUsersPagination:e=>({type:h.NS,pagination:e}),setIsFetchingPlaybackToken:e=>({type:h.$N,isFetching:e}),setPlaybackToken:e=>({type:h.h7,playbackToken:e}),expirePlaybackToken:e=>({type:h.kp,guid:e}),setVideoPressSettings:e=>({type:h.Cj,videoPressSettings:e}),updateVideoPressSettings:e=>async({dispatch:t})=>{if(!e)return;const r={force:!0};"boolean"==typeof e.videoPressVideosPrivateForSite&&(r.videopress_videos_private_for_site=e.videoPressVideosPrivateForSite);try{t.setVideoPressSettings(e);return await o()({path:h.pC,method:"PUT",data:r})}catch(e){console.error(e)}},updateVideoIsPrivate:(e,t)=>({type:h.LF,id:e,isPrivate:t}),dismissErroredVideo:e=>({type:h.RZ,id:e})}},8962(e,t,r){"use strict";r.d(t,{$N:()=>M,$s:()=>i,AV:()=>se,Aq:()=>R,B1:()=>S,CR:()=>Y,Cj:()=>J,DE:()=>k,DN:()=>I,DX:()=>j,Dv:()=>d,E9:()=>b,H9:()=>T,IX:()=>w,K:()=>A,Ko:()=>D,LF:()=>K,Ms:()=>h,NS:()=>G,NX:()=>O,Ni:()=>m,OU:()=>W,PO:()=>z,QK:()=>p,RZ:()=>Z,Rd:()=>C,SH:()=>U,TC:()=>c,TI:()=>V,TZ:()=>L,UB:()=>_,VI:()=>ae,WX:()=>N,ax:()=>n,az:()=>Q,bT:()=>s,c$:()=>g,cl:()=>te,d$:()=>E,eB:()=>u,en:()=>q,h7:()=>B,iL:()=>oe,k8:()=>x,kb:()=>F,ko:()=>re,kp:()=>$,o0:()=>X,p9:()=>o,pC:()=>l,pz:()=>f,q2:()=>H,qd:()=>v,u7:()=>y,uX:()=>ie,v2:()=>a,wx:()=>P,z7:()=>ne,zG:()=>ee});const n="videopress/media",o="wp/v2/users",i="wp/v2/media",a="wpcom/v2/videopress",s="wpcom/v2/videopress/meta",c="wpcom/v2/videopress/playback-jwt",l="videopress/v1/settings",d="videopress/v1/site",u="videopress/v1/features",p="SET_IS_FETCHING_VIDEOS",h="SET_VIDEOS_FETCH_ERROR",f="SET_VIDEOS_QUERY",m="SET_VIDEOS_PAGINATION",g="SET_VIDEOS",v="SET_VIDEOS_STORAGE_USED",b="SET_UPLOADED_VIDEO_COUNT",y="SET_IS_FETCHING_UPLOADED_VIDEO_COUNT",w="DISMISS_FIRST_VIDEO_POPOVER",_="SET_LOCAL_VIDEOS",x="SET_IS_FETCHING_LOCAL_VIDEOS",k="SET_LOCAL_VIDEOS_QUERY",j="SET_LOCAL_VIDEOS_PAGINATION",A="SET_LOCAL_VIDEO_UPLOADED",S="SET_VIDEOS_FILTER",C="SET_VIDEO",P="SET_VIDEO_PRIVACY",E="UPDATE_VIDEO_PRIVACY",N="DELETE_VIDEO",T="REMOVE_VIDEO",F="FLUSH_DELETED_VIDEOS",R="UPDATE_PAGINATION_AFTER_DELETE",O="SET_VIDEO_UPLOADING",U="SET_VIDEO_UPLOADING_ERROR",V="SET_VIDEO_PROCESSING",D="SET_VIDEO_UPLOADED",L="SET_VIDEO_UPLOAD_PROGRESS",I="SET_IS_FETCHING_FEATURES",z="SET_FEATURES",M="SET_IS_FETCHING_PLAYBACK_TOKEN",B="SET_PLAYBACK_TOKEN",$="EXPIRE_PLAYBACK_TOKEN",H="SET_USERS",G="SET_USERS_PAGINATION",q="SET_UPDATING_VIDEO_POSTER",W="UPDATE_VIDEO_POSTER",J="SET_VIDEOPRESS_SETTINGS",K="UPDATE_VIDEO_IS_PRIVATE",Z="DISMISS_ERRORED_VIDEO",Q="public",X="private",Y="site-default",ee=[Q,X,Y],te=2,re="G",ne="PG-13",oe="R-17",ie="uploader",ae="rating",se="privacy"},6287(e,t,r){"use strict";r.d(t,{ax:()=>a.ax,k$:()=>f});var n=r(6941),o=r.n(n),i=r(9596),a=r(8962),s=r(2354),c=r(3132),l=r(6225),d=r(1105);const u=o()("videopress/media:state"),p=window.jetpackVideoPressInitialState?.initialState||{videos:{}},h=window.location.hash.split("?");function f(){u("Initializing %o store",a.ax),d.A.mayBeInit(a.ax,{__experimentalUseThunks:!0,reducer:s.A,actions:i.A,selectors:l.Ay,resolvers:c.A,initialState:p})}"#/"===h?.[0]&&h?.[1]&&"page=1"!==h?.[1]&&(p.videos.isFetching=!0)},2354(e,t,r){"use strict";r.d(t,{A:()=>s,S:()=>a});var n=r(7143),o=r(3832),i=r(8962);function a(){return{order:"desc",orderBy:"date",itemsPerPage:6,page:1,type:"video/videopress"}}const s=(0,n.combineReducers)({videos:(e,t)=>{switch(t.type){case i.QK:return{...e,isFetching:t.isFetching};case i.Ms:{const{error:r}=t;return{...e,isFetching:!1,error:r}}case i.pz:return{...e,query:{...e.query,...t.query},_meta:{...e._meta,relyOnInitialState:!1}};case i.Ni:return{...e,pagination:{...e.pagination,...t.pagination},_meta:{...e._meta,relyOnInitialState:!1}};case i.B1:{const{filter:r,value:n,isActive:o}=t;return{...e,filter:{...e.filter,[r]:{...e.filter?.[r]||{},[n]:o}},_meta:{...e._meta,relyOnInitialState:!1}}}case i.c$:{const{videos:r}=t;return{...e,items:r,isFetching:!1}}case i.Rd:{const{video:r,addAtEnd:n=!1}=t,o=[...e.items??[]],i=o.findIndex(e=>e.id===r.id);return-1===i?n?o.push(r):o.unshift(r):o[i]={...o[i],...r},{...e,isFetching:!1,items:o}}case i.wx:{const{id:r,privacySetting:n}=t,o=[...e.items??[]],i=o.findIndex(e=>e.id===r);if(i<0)return e;const a=o[i].privacySetting;o[i]={...o[i],privacySetting:n};const s={...e._meta?.items??[]},c=s[r]??{};return{...e,items:o,_meta:{...e._meta,items:{...s,[r]:{...c,isUpdatingPrivacy:!0,hasBeenUpdatedPrivacy:!1,prevPrivacySetting:a}}}}}case i.d$:{const{id:r}=t,n={...e._meta?.items??[]};if(!n?.[r])return e;const o=n[r]??{};return{...e,_meta:{...e._meta,items:{...n,[r]:{...o,isUpdatingPrivacy:!1,hasBeenUpdatedPrivacy:!0,prevPrivacySetting:null}}}}}case i.LF:{const{id:r,isPrivate:n}=t,o=[...e.items??[]],i=o.findIndex(e=>e.id===r);return i<0?e:(o[i]={...o[i],isPrivate:n},{...e,items:o})}case i.H9:{const{id:r}=t,{items:n=[]}=e;if(n.findIndex(e=>e.id===r)<0)return e;const o={...e._meta?.items??[]},i=o[r]??{};return{...e,_meta:{...e._meta,videosBeingRemoved:[{id:r,processed:!1,deleted:!1},...e._meta.videosBeingRemoved??[]],items:{...o,[r]:{...i,isDeleting:!0}}}}}case i.WX:{const{id:r,hasBeenDeleted:n,video:o}=t,i=e?._meta?.items||[],a=i[r]||{},s=[...e._meta.videosBeingRemoved??[]],c=s.findIndex(e=>e.id===r);if(!a||c<0)return e;s[c].processed=!0,s[c].deleted=n;const l=0===s.filter(e=>!e.processed).length;let d=e.uploadedVideoCount??0;if(l){d-=s.filter(e=>e.deleted).length}return{...e,uploadedVideoCount:d,_meta:{...e._meta,videosBeingRemoved:s,processedAllVideosBeingRemoved:l,items:{...i,[r]:{...a,isDeleting:!1,hasBeenDeleted:n,deletedVideo:o}}}}}case i.kb:return{...e,_meta:{...e._meta,videosBeingRemoved:[],relyOnInitialState:!1}};case i.Aq:{const{items:t=[],query:r={},pagination:n={},_meta:o={}}=e,{videosBeingRemoved:i=[]}=o,a=i.filter(e=>e.deleted).length,s=t?.length===a,c=r?.page??1,l=n?.totalPages??1,d=n?.total,u=s&&c>1?c-1:c,p=s&&l>1?l-1:l;return{...e,query:{...r,page:u},pagination:{...n,total:d-1,totalPages:p}}}case i.qd:return{...e,storageUsed:t.used};case i.u7:return{...e,isFetchingUploadedVideoCount:t.isFetchingUploadedVideoCount};case i.E9:return{...e,uploadedVideoCount:t.uploadedVideoCount,isFetchingUploadedVideoCount:!1};case i.NX:{const{id:r,title:n}=t,i=e?._meta||{},a=i?.items||{},s=(0,o.cleanForSlug)(n);return{...e,_meta:{...i,items:{...a,[r]:{title:s,uploading:!0}}}}}case i.SH:{const{id:r,error:n}=t,o=e?._meta||{},i=o?.items||{};return{...e,_meta:{...o,items:{...i,[r]:{...i[r],uploading:!1,error:n}}}}}case i.RZ:{const{id:r}=t,n=e?._meta||{},o=n?.items||{};return delete o[r],{...e,_meta:{...n,items:{...o}}}}case i.TI:{const{id:r,data:n}=t,i=e?.query??{order:"desc",orderBy:"date",itemsPerPage:6,page:1,type:"video/videopress"},a={...e.pagination},s=[...e?.items??[]],c=e?._meta||{},l=Object.assign({},c?.items||{}),d=n?.src?.split("/")?.slice(-1)?.[0]||l[r]?.title||"",u=(0,o.cleanForSlug)(d);let p=e?.uploadedVideoCount??0,h=e?.firstUploadedVideoId??null,f=e?.firstVideoProcessed??!1,m=e?.dismissedFirstVideoPopover??!1;return 0===p&&(h=n.id,f=!1,m=!1),1!==i?.page||i?.search||(p=(e?.uploadedVideoCount??0)+1,a.total=p,a.totalPages=Math.ceil(p/i?.itemsPerPage),s.unshift({id:n.id,guid:n.guid,url:n.src,title:u,posterImage:null,finished:!1})),delete l[r],{...e,items:s,uploadedVideoCount:p,firstUploadedVideoId:h,firstVideoProcessed:f,dismissedFirstVideoPopover:m,pagination:a,_meta:{...c,items:l}}}case i.Ko:{const{video:r}=t,n=[...e?.items??[]],o=n.findIndex(e=>e.id===r.id),i=e?.firstUploadedVideoId??null;let a=e?.firstVideoProcessed??null;return r.id===i&&(a=!0),-1===o?{...e,firstVideoProcessed:a}:(n[o]=r,{...e,firstVideoProcessed:a,items:n})}case i.en:{const{id:r}=t,n=e?._meta||{},o=n?.items||{},i=o[r]||{};return{...e,_meta:{...n,items:{...o,[r]:{...i,isUpdatingPoster:!0}}}}}case i.OU:{const{id:r,poster:n}=t,o=[...e.items??[]],i=e?._meta||{},a=i?.items||{},s=o.findIndex(e=>e.id===r);return s>=0&&(o[s]={...o[s],posterImage:n}),{...e,items:o,_meta:{...i,items:{...a,[r]:{isUpdatingPoster:!1}}}}}case i.TZ:{const{id:r,bytesSent:n,bytesTotal:o}=t,i=e?._meta||{},a=i?.items||{},s=a[r]||{},c=o>0?n/o:0;return{...e,_meta:{...i,items:{...a,[r]:{...s,uploadProgress:c}}}}}case i.IX:return{...e,dismissedFirstVideoPopover:!0,firstUploadedVideoId:null};default:return e}},localVideos:(e,t)=>{switch(t.type){case i.UB:{const{videos:r}=t;return{...e,items:r,isFetching:!1}}case i.k8:return{...e,isFetching:t.isFetching};case i.DE:return{...e,query:{...e.query,...t.query},_meta:{...e._meta,relyOnInitialState:!1}};case i.DX:return{...e,pagination:{...e.pagination,...t.pagination},_meta:{...e._meta,relyOnInitialState:!1}};case i.K:{const{id:r}=t,n=[...e?.items??[]],o=n.findIndex(e=>e.id===r);return-1===o?e:(n[o]={...n[o],isUploadedToVideoPress:!0},{...e,items:n,isFetching:!1})}}return e},features:(e,t)=>{switch(t.type){case i.DN:return{...e,isFetching:t.isFetching};case i.PO:return{...e,...t.features,isFetching:!1};default:return e}},users:(e,t)=>{switch(t.type){case i.q2:return{...e,items:t.users};case i.NS:return{...e,pagination:{...e?.pagination||{},...t.pagination}};default:return e}},playbackTokens:(e,t)=>{switch(t.type){case i.$N:return{...e,isFetching:t.isFetching};case i.h7:{const{playbackToken:r}=t,n=[...e.items??[]],o=n.findIndex(e=>e.guid===r.guid);return-1===o?n.unshift(r):n[o]={...n[o],...r},{...e,items:n,isFetching:!1}}case i.kp:{const{guid:r}=t,n=[...e.items??[]],o=n.findIndex(e=>e.guid===r);return o>-1&&n.splice(o,1),{...e,items:n,isFetching:!1}}default:return e}},siteSettings:(e,t)=>{if(t.type===i.Cj){const{videoPressSettings:r}=t;return{...e,...r}}return e}})},3132(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(1455),o=r.n(n),i=r(3832),a=r(8962),s=r(2354),c=r(8306);const{apiRoot:l}=window?.jetpackVideoPressInitialState||{};async function d(e,t,r){if(!e.needsPlaybackToken)return e;let n=await t.getPlaybackToken(e.guid);if(n){Number(n.issueTime)+864e5<Date.now()&&(await r.expirePlaybackToken(e.guid),n=await t.getPlaybackToken(e.guid))}return/metadata_token=/.test(e.posterImage)||(e.posterImage+=`?metadata_token=${n.token}`),/metadata_token=/.test(e.thumbnail)||(e.thumbnail+=`?metadata_token=${n.token}`),/metadata_token=/.test(e.url)||(e.url+=`?metadata_token=${n.token}`),e}const u={getStorageUsed:{isFulfilled:e=>e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{try{const t=await o()({path:a.Dv});if(!t?.options?.videopress_storage_used)return;const r=t.options.videopress_storage_used?Math.round(1e3*Number(t.options.videopress_storage_used)*1e3):0;e.setVideosStorageUsed(r)}catch(e){console.error(e)}}},getUploadedVideoCount:{isFulfilled:e=>e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{const t={per_page:1,mime_type:"video/videopress"};e.setIsFetchingUploadedVideoCount(!0);try{const r=await fetch((0,i.addQueryArgs)(`${l}${a.$s}`,t)),n=Number(r.headers.get("X-WP-Total"));return e.setUploadedVideoCount(n),n}catch(e){console.error(e)}},shouldInvalidate:e=>e.type===a.TI||e.type===a.kb},getVideos:{isFulfilled:e=>e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e,select:t,resolveSelect:r})=>{e.setIsFetchingVideos(!0);let n=t.getVideosQuery();n||(n=(0,s.S)(),e.setVideosQuery(n));const o={order:n.order,orderby:n.orderBy,page:n.page,per_page:n.itemsPerPage,mime_type:"video/videopress"};"string"==typeof n.search&&n.search.length>0&&(o.search=n.search);const u=t.getVideosFilter(),p=Object.keys(u?.rating||{}).filter(e=>u.rating[e]).join(",");p?.length&&(o.videopress_rating=p);const h=Object.keys(u?.privacy||{}).filter(e=>u.privacy[e]).join(",");h?.length&&(o.videopress_privacy_setting=h);const f=Object.keys(u?.uploader||{}).filter(e=>u.uploader[e]).join(",");f?.length&&(o.author=f);try{const t=await fetch((0,i.addQueryArgs)(`${l}${a.$s}`,o)),n=Number(t.headers.get("X-WP-Total")),s=Number(t.headers.get("X-WP-TotalPages"));e.setVideosPagination({total:n,totalPages:s});const u=await t.json(),p=await Promise.all((0,c.HO)(u).map(async t=>await d(t,r,e)));return e.setVideos(p),u}catch(e){console.error(e)}},shouldInvalidate:({type:e})=>e===a.pz||e===a.kb||e===a.B1},getVideo:{isFulfilled:(e,t)=>{if(!t||"string"==typeof t)return!0;const r=(e.videos.items??[]).find(({id:e})=>e===t);if(r&&r.needsPlaybackToken){return!!(e?.playbackTokens?.items||[]).find(e=>e?.guid===r.guid)}return r},fulfill:(e,t=!1)=>async({dispatch:r,resolveSelect:n})=>{r.setIsFetchingVideos(!0);try{const s=await o()({path:(0,i.addQueryArgs)(`${a.$s}/${e}`)}),l=await d((0,c.ac)(s),n,r);return r.setVideo(l,t),s}catch(e){console.error(e)}}},getLocalVideos:{isFulfilled:e=>e?.localVideos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e,select:t})=>{let r=t.getLocalVideosQuery();e.setIsFetchingLocalVideos(!0),r||(r=(0,s.S)(),e.setVideosQuery(r));const n={order:r.order,orderby:r.orderBy,page:r.page,per_page:r.itemsPerPage,media_type:"video",no_videopress:!0};"string"==typeof r.search&&r.search.length>0&&(n.search=r.search);try{const t=await fetch((0,i.addQueryArgs)(`${l}${a.$s}`,n)),r=Number(t.headers.get("X-WP-Total")),o=Number(t.headers.get("X-WP-TotalPages"));e.setLocalVideosPagination({total:r,totalPages:o});const s=await t.json();return e.setLocalVideos((0,c.Kk)(s)),s}catch(e){console.error(e)}},shouldInvalidate:e=>e.type===a.DE},getUsers:{isFulfilled:e=>e?.users?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{e.setIsFetchingLocalVideos(!0);try{const t=await fetch(`${l}${a.p9}`),r=Number(t.headers.get("X-WP-Total")),n=Number(t.headers.get("X-WP-TotalPages"));e.setUsersPagination({total:r,totalPages:n});const o=await t.json();if(!o?.length)return;return e.setUsers(o.map(e=>({id:e.id,name:e.name,slug:e.slug,description:e.description,link:e.link,avatar:e.avatar_urls}))),o}catch(e){console.error(e)}}},getPlaybackToken:{isFulfilled:(e,t)=>{const r=e?.playbackTokens?.items??[];return r?.some(e=>e?.guid===t)},fulfill:e=>async({dispatch:t})=>{t.setIsFetchingPlaybackToken(!0);try{const r=await o()({path:(0,i.addQueryArgs)(`${a.TC}/${e}`),method:"POST"}),n={guid:e,token:r.playback_token,issueTime:Date.now()};return t.setPlaybackToken(n),n}catch(e){console.error(e)}},shouldInvalidate:(e,t)=>e.type===a.kp&&e.guid===t},getVideoPressSettings:{isFulfilled:e=>void 0!==e?.siteSettings,fulfill:()=>async({dispatch:e})=>{try{const{videopress_videos_private_for_site:t}=await o()({path:(0,i.addQueryArgs)(`${a.pC}`),method:"GET"}),r={videoPressVideosPrivateForSite:t};return e.setVideoPressSettings(r),r}catch(e){console.error(e)}}},getFeatures:{isFulfilled:e=>void 0!==e?.features?.isVideoPressSupported,fulfill:()=>async({dispatch:e})=>{e.setIsFetchingFeatures(!0);try{const t=await o()({path:a.eB,method:"GET"});return e.setFeatures(t),t}catch(e){console.error(e)}finally{e.setIsFetchingFeatures(!1)}}}}},6225(e,t,r){"use strict";r.d(t,{Ay:()=>o});const n=e=>e?.videos?.items||[],o={getVideos:n,getUploadingVideos:e=>{const t=e?.videos?._meta?.items||{};return Object.keys(t||{}).map(e=>({...t[e],id:e})).filter(e=>e.uploading)},getVideosQuery:e=>e?.videos?.query,getPagination:e=>e?.videos?.pagination,getVideosFilter:e=>e?.videos?.filter,getUploadedVideoCount:e=>e?.videos?.uploadedVideoCount,getIsFetching:e=>e?.videos?.isFetching,getIsFetchingUploadedVideoCount:e=>e?.videos?.isFetchingUploadedVideoCount,getStorageUsed:e=>({storageUsed:e?.videos?.storageUsed}),getFirstUploadedVideoId:e=>e?.videos?.firstUploadedVideoId,getFirstVideoProcessed:e=>e?.videos?.firstVideoProcessed,getDismissedFirstVideoPopover:e=>e?.videos?.dismissedFirstVideoPopover,getProcessedAllVideosBeingRemoved:e=>e?.videos?._meta?.processedAllVideosBeingRemoved,getLocalVideos:e=>e?.localVideos?.items||[],getIsFetchingLocalVideos:e=>e?.localVideos?.isFetching,getLocalVideosQuery:e=>e?.localVideos?.query,getLocalPagination:e=>e?.localVideos?.pagination,getUploadedLocalVideoCount:e=>e?.localVideos?.uploadedVideoCount,getVideo:(e,t)=>n(e).find(({id:e})=>e===t),getVideoStateMetadata:(e,t)=>(e?.videos?._meta?.items||{})[t]||{},getUsers:e=>e?.users?.items||[],getUsersPagination:e=>e?.users?.pagination,getFeatures:e=>{const t=e?.features;if(void 0!==t?.isVideoPressSupported)return{isVideoPressSupported:t.isVideoPressSupported??!1,isVideoPress1TBSupported:t.isVideoPress1TBSupported??!1,isVideoPressUnlimitedSupported:t.isVideoPressUnlimitedSupported??!1}},isFetchingFeatures:e=>e?.features?.isFetching,getPlaybackToken:(e,t)=>(e?.playbackTokens?.items||[]).find(e=>e?.guid===t)||{},isFetchingPlaybackToken:e=>e?.playbackTokens?.isFetching,getVideoPressSettings:e=>e?.siteSettings,getUploadErrorVideos:e=>{const t=e?.videos?._meta?.items||{};return Object.keys(t||{}).map(e=>({...t[e],id:e})).filter(e=>!!e.error)}}},1105(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(7143);class o{static store=null;static mayBeInit(e,t){null===o.store&&(o.store=(0,n.createReduxStore)(e,t),(0,n.register)(o.store))}}const i=o},8306(e,t,r){"use strict";r.d(t,{HO:()=>o,Kk:()=>a,ac:()=>n});const n=e=>{const{media_details:t,id:r,jetpack_videopress:n,jetpack_videopress_guid:o}=e,{videopress:i,width:a,height:s}=t,{title:c,description:l,caption:d,rating:u,allow_download:p,display_embed:h,privacy_setting:f,needs_playback_token:m,is_private:g}=n,{original:v,poster:b,upload_date:y,duration:w,file_url_base:_,finished:x,files:k={dvd:{original_img:""}}}=i||{},{dvd:j}=k,A=j?.original_img?`${_.https}${j.original_img}`:void 0,S=v?.split("/").slice(-1)[0];return{id:r,guid:o,title:c,description:l,caption:d,url:v,uploadDate:y,duration:w,isPrivate:g,posterImage:b,allowDownload:p,displayEmbed:h,rating:u,privacySetting:f,needsPlaybackToken:m,width:a,height:s,poster:{src:b},thumbnail:A,finished:x,filename:S}},o=e=>e?.map?.(n),i=e=>{const{media_details:t,id:r,jetpack_videopress:n,source_url:o,date:i}=e,{width:a,height:s,length:c}=t,{title:l,description:d,caption:u}=n;return{id:r,title:l,description:d,caption:u,width:a,height:s,url:o,uploadDate:i,duration:c}},a=e=>e.map(i)},4603(e,t,r){"use strict";r.d(t,{D:()=>o});var n=r(8962);const o=(e,t)=>n.zG[e]!==n.az&&(n.zG[e]===n.o0||t)},4523(e,t,r){"use strict";function n(e){return e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("_",""))}function o(e){return-1!==e.indexOf("_")}function i(e,t=!1){const r=Object.assign({},e);for(const e in r)Object.hasOwn(r,e)&&o(e)&&(r[n(e)]=r[e],t&&delete r[e]);return r}r.d(t,{x:()=>i})},3356(e,t,r){"use strict";r.d(t,{A:()=>n});const n=()=>{const e=new Uint32Array(10);crypto.getRandomValues(e);return`${performance.now().toString(36)}-${Array.from(e).map(e=>e.toString(36)).join("")}`};r.dn(n)},9799(e,t,r){"use strict";function n(e){if(!e)return[];return e.split("\n").map(e=>function(e){const t=/(?<timeBlock>\(?(?<time>\d{1,2}:\d{2}:\d{2}|\d{1,2}:\d{2})\)?)/.exec(e);if(null==t||null==t.groups)return null;const{groups:{timeBlock:r,time:n}}=t,o=e.indexOf(r),i=(o<(e.length-r.length)/2?e.substring(o+r.length,e.length):e.substring(0,o)).trim().replace(/(\s-$)|(^-\s)/,""),a=n.split(":");return 1===a[0].length&&(a[0]=`0${a[0]}`),2===a.length&&a.unshift("00"),{startAt:a.join(":"),title:i}}(e)).filter(e=>null!==e).sort((e,t)=>e.startAt.localeCompare(t.startAt))}r.d(t,{$k:()=>n,Ay:()=>n})},6302(e,t,r){"use strict";r.d(t,{Ay:()=>i});var n=r(9799);function o(e){const t=Math.floor(e/36e5);let r=e-36e5*t;const n=Math.floor(r/6e4);r-=6e4*n;return[t,n,Math.floor(r/1e3)].map(e=>e<10?`0${e}`:e).join(":")}function i(e,t){const r=function(e,t=3599999e3){const r=(0,n.$k)(e);if(0===r.length)return null;let i="WEBVTT\n";i+="\n",i+="NOTE\n",i+="videopress-chapters-auto-generated\n",i+="This file was auto-generated based on Video description.\n",i+="For more information, see https://jetpack.com/support/jetpack-videopress/jetpack-videopress-customizing-your-videos/#adding-subtitles-captions-or-chapters-within-a-video\n";let a=1;for(const[e,n]of r.entries()){const s=0===e?"000":"001",c=e<r.length-1?r[e+1].startAt:o(t);i+=`\n${a++}\n${n.startAt}.${s} --\x3e ${c}.000\n${n.title}\n`}return i}(e,t);return r?new File([r],"chapters.vtt",{type:"text/vtt"}):null}},2066(e,t,r){"use strict";function n(e){const t=e.split(":");return 3600*parseInt(t[0])+60*parseInt(t[1])+parseInt(t[2])}function o(e){if(!e||0===e.length)return!1;if("00:00:00"!==e[0].startAt)return!1;if(e.length<3)return!1;if(e.some(e=>!e.title))return!1;for(let t=0;t<e.length-1;t++){const r=e[t];if(n(e[t+1].startAt)-n(r.startAt)<10)return!1}return!0}r.d(t,{A:()=>o})},7770(e,t,r){"use strict";r.d(t,{SK:()=>o,Zd:()=>i});const n=window.jetpackVideoPressInitialState?.allowedVideoExtensions||{},o=Object.keys(n).filter(e=>"videopress"!==e),i=o.map(e=>`.${e}`).join(",")},1016(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(4085),o=r(5217),i=r(3569),a=r(615);function s(e){return s="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},s(e)}function c(){c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new F(n||[]);return o(a,"_invoke",{value:P(e,r,s)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};u(x,a,function(){return this});var k=Object.getPrototypeOf,j=k&&k(k(R([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=_.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function r(o,i,a,c){var l=h(e[o],e,i);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==s(u)&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,a,c)},function(e){r("throw",e,a,c)}):t.resolve(u).then(function(e){d.value=e,a(d)},function(e){return r("throw",e,a,c)})}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=f;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?v:m,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(s(t)+" is not iterable")}return w.prototype=_,o(A,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,d,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},S(C.prototype),u(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(A),u(A,d,"Generator"),u(A,a,function(){return this}),u(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function l(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"openFile",value:(s=c().mark(function e(t,r){var s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,n.A)()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,(0,o.A)(t.uri);case 4:return s=e.sent,e.abrupt("return",new i.A(s));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new i.A(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(r=Number(r),Number.isFinite(r)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new a.A(t,r)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}},e,null,[[1,8]])}),u=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=s.apply(e,t);function i(e){l(o,r,n,i,a,"next",e)}function a(e){l(o,r,n,i,a,"throw",e)}i(void 0)})},function(_x,e){return u.apply(this,arguments)})}],t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,s,u}()},3765(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(4085);function o(e,t){return(0,n.A)()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}},5369(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{A:()=>c});var c=function(){return a(function e(){o(this,e)},[{key:"createRequest",value:function(e,t){return new l(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),l=function(){return a(function e(t,r){o(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}},[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(r,n){e._xhr.onload=function(){r(new d(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),d=function(){return a(function e(t){o(this,e),this._xhr=t},[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}()},781(e,t,r){"use strict";r.d(t,{_O:()=>w});var n=r(113),o=r(2701),i=r(1016),a=r(3765),s=r(5369),c=r(851);function l(e){return l="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},l(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function u(e,t,r){return t=h(t),function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var y=g(g({},o.A.defaultOptions),{},{httpStack:new s.A,fileReader:new i.A,urlStorage:c.o?new c.Y:new n.A,fingerprint:a.A}),w=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,[e,r=g(g({},y),r)])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,i=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=g(g({},y),t),o.A.terminate(e,t)}}],(n=null)&&d(r.prototype,n),i&&d(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(o.A);"function"==typeof XMLHttpRequest&&"function"==typeof Blob&&Blob.prototype.slice},4085(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},3569(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(3716),o=r(9427);function i(e){return i="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},i(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var c=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size},(t=[{key:"slice",value:function(e,t){if((0,n.A)())return(0,o.A)(this._file.slice(e,t));var r=this._file.slice(e,t),i=t>=this.size;return Promise.resolve({value:r,done:i})}},{key:"close",value:function(){}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},615(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e){return void 0===e?0:void 0!==e.size?e.size:e.length}r.d(t,{A:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1},(t=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+a(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then(function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(e,t)})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===a(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},3716(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},9427(e,t,r){"use strict";function n(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var e=new Uint8Array(n.result);t({value:e})},n.onerror=function(e){r(e)},n.readAsArrayBuffer(e)})}r.d(t,{A:()=>n})},5217(e,t,r){"use strict";function n(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()})}r.d(t,{A:()=>n})},851(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{Y:()=>d,o:()=>l});var a=!1;try{a="localStorage"in window;var s="tusSupport",c=localStorage.getItem(s);localStorage.setItem(s,c),null===c&&localStorage.removeItem(s)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var l=a,d=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,t.push(o)}catch(e){}}return t}}],t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},3004(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=d(t),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(c())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&l(o,r.prototype),o}(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},s(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}r.d(t,{A:()=>p});var u=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=a(this,t,[e])).originalRequest=o,r.originalResponse=i,r.causingError=n,null!=n&&(e+=", caused by ".concat(n.toString())),null!=o){var s=o.getHeader("X-Request-ID")||"n/a",c=o.getMethod(),l=o.getURL(),d=i?i.getStatus():"n/a",u=i?i.getBody()||"":"n/a";e+=", originated from request (method: ".concat(c,", url: ").concat(l,", response code: ").concat(d,", response text: ").concat(u,", request id: ").concat(s,")")}return r.message=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,n&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(s(Error));const p=u},2380(e,t,r){"use strict";r.d(t,{R:()=>o});var n=!1;function o(e){n&&console.log(e)}},113(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.d(t,{A:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},2701(e,t,r){"use strict";r.d(t,{A:()=>F});var n=r(9535),o=r(6580),i=r.n(o),a=r(3004),s=r(2380),c=r(7291);function l(){l=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new F(n||[]);return o(a,"_invoke",{value:P(e,r,s)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};d(x,a,function(){return this});var k=Object.getPrototypeOf,j=k&&k(k(R([])));j&&j!==r&&n.call(j,a)&&(x=j);var A=_.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function r(o,i,a,s){var c=h(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==p(d)&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):t.resolve(d).then(function(e){l.value=e,a(l)},function(e){return r("throw",e,a,s)})}s(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function P(t,r,n){var o=f;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?v:m,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(p(t)+" is not iterable")}return w.prototype=_,o(A,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,c,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},S(C.prototype),d(C.prototype,s,function(){return this}),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(A),d(A,c,"Generator"),d(A,a,function(){return this}),d(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function d(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||h(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 p(e){return p="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},p(e)}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var w="tus-v1",_="ietf-draft-03",x={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:N,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:w},k=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then(function(t){return e._urlStorage.findUploadsByFingerprint(t)})}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if([w,_].includes(this.options.protocol))if(this.options.endpoint||this.options.uploadUrl||this.url){var r=this.options.retryDelays;if(null==r||"[object Array]"===Object.prototype.toString.call(r)){if(this.options.parallelUploads>1)for(var n=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];n<o.length;n++){var i=o[n];if(this.options[i])return void this._emitError(new Error("tus: cannot use the ".concat(i," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then(function(r){return null==r?(0,s.R)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,s.R)("Calculated fingerprint: ".concat(r)),e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)}).then(function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()}).catch(function(t){e._emitError(t)})}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,o=0;this._parallelUploads=[];var i=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}(this._source.size,i);this._parallelUploadUrls&&a.forEach(function(e,t){e.uploadUrl=r._parallelUploadUrls[t]||null}),this._parallelUploadUrls=new Array(a.length);var c,l=a.map(function(t,i){var s=0;return r._source.slice(t.start,t.end).then(function(c){var l=c.value;return new Promise(function(c,d){var u=g(g({},r.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:g(g({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:c,onError:d,onProgress:function(e){o=o-s+e,s=e,r._emitProgress(o,n)},onUploadUrlAvailable:function(){r._parallelUploadUrls[i]=p.url,r._parallelUploadUrls.filter(function(e){return Boolean(e)}).length===a.length&&r._saveUploadInUrlStorage()}}),p=new e(l,u);p.start(),r._parallelUploads.push(p)})})});Promise.all(l).then(function(){(c=r._openRequest("POST",r.options.endpoint)).setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var e=j(r.options.metadata);return""!==e&&c.setHeader("Upload-Metadata",e),r._sendRequest(c,null)}).then(function(e){if(A(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(r.url=T(r.options.endpoint,t),(0,s.R)("Created upload at ".concat(r.url)),r._emitSuccess(e)):r._emitHttpError(c,e,"tus: invalid or missing Location header")}else r._emitHttpError(c,e,"tus: unexpected response while creating upload")}).catch(function(e){r._emitError(e)})}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?((0,s.R)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,s.R)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,s.R)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var r=this;if(null!=this._parallelUploads){var n,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(this._parallelUploads);try{for(o.s();!(n=o.n()).done;)n.value.abort(t)}catch(e){o.e(e)}finally{o.f()}}return null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new a.A(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),E(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){t.start()},r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(e){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess({lastResponse:e})}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length","1"):t.setHeader("Upload-Length","".concat(this._size));var r,n=j(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):(this.options.protocol===_&&t.setHeader("Upload-Complete","?0"),r=this._sendRequest(t,null)),r.then(function(r){if(A(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=T(e.options.endpoint,n),(0,s.R)("Created upload at ".concat(e.url)),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(r),void e._source.close();e._saveUploadInUrlStorage().then(function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())})}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")}).catch(function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then(function(r){var n=r.getStatus();if(!A(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(A(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var i=Number.parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(i)||e.options.uploadLengthDeferred||e.options.protocol!==w?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then(function(){if(o===i)return e._emitProgress(i,i),void e._emitSuccess(r);e._offset=o,e._performUpload()})):e._emitHttpError(t,r,"tus: invalid or missing length value")}}).catch(function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)})}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset","".concat(this._offset)),this._addChunkToRequest(e).then(function(r){A(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")}).catch(function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)}))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler(function(e){t._emitProgress(r+e,t._size)}),e.setHeader("Content-Type","application/offset+octet-stream"),(n===Number.POSITIVE_INFINITY||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then(function(r){var n=r.value,o=r.done,i=null!=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+i,e.setHeader("Upload-Length","".concat(t._size)));var a=t._offset+i;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t.options.protocol===_&&e.setHeader("Upload-Complete",o?"?1":"?0"),t._emitProgress(t._offset,t._size),t._sendRequest(e,n))})}},{key:"_handleUploadResponse",value:function(e,t){var r=Number.parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(t),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=S(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(t){e._emitError(t)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then(function(t){e._urlStorageKey=t})}},{key:"_sendRequest",value:function(e){return C(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=S("DELETE",t,r);return C(n,null,r).then(function(e){if(204!==e.getStatus())throw new a.A("tus: unexpected response while terminating upload",null,n,e)}).catch(function(o){if(o instanceof a.A||(o=new a.A("tus: failed to terminate upload",o,n,null)),!E(o,0,r))throw o;var i=r.retryDelays[0],s=r.retryDelays.slice(1),c=g(g({},r),{},{retryDelays:s});return new Promise(function(e){return setTimeout(e,i)}).then(function(){return e.terminate(t,c)})})}}],r&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function j(e){return Object.entries(e).map(function(e){var t=u(e,2),r=t[0],o=t[1];return"".concat(r," ").concat(n.o4.encode(String(o)))}).join(",")}function A(e,t){return e>=t&&e<t+100}function S(e,t,r){var n=r.httpStack.createRequest(e,t);r.protocol===_?n.setHeader("Upload-Draft-Interop-Version","5"):n.setHeader("Tus-Resumable","1.0.0");for(var o=r.headers||{},i=0,a=Object.entries(o);i<a.length;i++){var s=u(a[i],2),l=s[0],d=s[1];n.setHeader(l,d)}if(r.addRequestId){var p=(0,c.A)();n.setHeader("X-Request-ID",p)}return n}function C(_x,e,t){return P.apply(this,arguments)}function P(){var e;return e=l().mark(function e(t,r,n){var o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(r);case 5:if(o=e.sent,"function"!=typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}},e)}),P=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){d(i,n,o,a,s,"next",e)}function s(e){d(i,n,o,a,s,"throw",e)}a(void 0)})},P.apply(this,arguments)}function E(e,t,r){return!(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):N(e))}function N(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!A(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof navigator&&!1===navigator.onLine&&(t=!1),t)}function T(e,t){return new(i())(t,e).toString()}k.defaultOptions=x;const F=k},7291(e,t,r){"use strict";function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}r.d(t,{A:()=>n})},6580(e,t,r){"use strict";var n=r(6811),o=r(4588),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,d=/^[a-zA-Z]:/;function u(e){return(e||"").toString().replace(i,"")}var p=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function f(e){var t,r=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new v(unescape(e.pathname),{});else if("string"===o)for(t in n=new v(e,{}),h)delete n[t];else if("object"===o){for(t in e)t in h||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=s.test(e.href))}return n}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=u(e)).replace(a,""),t=t||{};var r,n=l.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],s=!!n[3],c=0;return i?s?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):s?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===o?c>=2&&(r=r.slice(2)):m(o)?r=n[4]:o?i&&(r=r.slice(2)):c>=2&&m(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||m(o),slashesCount:c,rest:r}}function v(e,t,r){if(e=(e=u(e)).replace(a,""),!(this instanceof v))return new v(e,t,r);var i,s,c,l,h,b,y=p.slice(),w=typeof t,_=this,x=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!=typeof r&&(r=o.parse),i=!(s=g(e||"",t=f(t))).protocol&&!s.slashes,_.slashes=s.slashes||i&&t.slashes,_.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||d.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(_.protocol)))&&(y[3]=[/(.*)/,"pathname"]);x<y.length;x++)"function"!=typeof(l=y[x])?(c=l[0],b=l[1],c!=c?_[b]=e:"string"==typeof c?~(h="@"===c?e.lastIndexOf(c):e.indexOf(c))&&("number"==typeof l[2]?(_[b]=e.slice(0,h),e=e.slice(h+l[2])):(_[b]=e.slice(h),e=e.slice(0,h))):(h=c.exec(e))&&(_[b]=h[1],e=e.slice(0,h.index)),_[b]=_[b]||i&&l[3]&&t[b]||"",l[4]&&(_[b]=_[b].toLowerCase())):e=l(e,_);r&&(_.query=r(_.query)),i&&t.slashes&&"/"!==_.pathname.charAt(0)&&(""!==_.pathname||""!==t.pathname)&&(_.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(_.pathname,t.pathname)),"/"!==_.pathname.charAt(0)&&m(_.protocol)&&(_.pathname="/"+_.pathname),n(_.port,_.protocol)||(_.host=_.hostname,_.port=""),_.username=_.password="",_.auth&&(~(h=_.auth.indexOf(":"))?(_.username=_.auth.slice(0,h),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=_.auth.slice(h+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent(_.auth)),_.auth=_.password?_.username+":"+_.password:_.username),_.origin="file:"!==_.protocol&&m(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString()}v.prototype={set:function(e,t,r){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,n(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,c.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!r;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(i.username=t.slice(0,s),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(s+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<p.length;l++){var d=p[l];d[4]&&(i[d[1]]=i[d[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&m(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,r=this,n=r.host,i=r.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(a+=r.username,r.password&&(a+=":"+r.password),a+="@"):r.password?(a+=":"+r.password,a+="@"):"file:"!==r.protocol&&m(r.protocol)&&!n&&"/"!==r.pathname&&(a+="@"),(":"===n[n.length-1]||c.test(r.hostname)&&!r.port)&&(n+=":"),a+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(a+=r.hash),a}},v.extractProtocol=g,v.location=f,v.trimLeft=u,v.qs=o,e.exports=v},3018(e){"use strict";e.exports={consumer_slug:"jetpack-videopress"}},9384(e){"use strict";e.exports=window.JetpackConnection},7999(e){"use strict";e.exports=window.JetpackScriptDataModule},1609(e){"use strict";e.exports=window.React},790(e){"use strict";e.exports=window.ReactJSXRuntime},195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},6427(e){"use strict";e.exports=window.wp.components},9491(e){"use strict";e.exports=window.wp.compose},7143(e){"use strict";e.exports=window.wp.data},8443(e){"use strict";e.exports=window.wp.date},6087(e){"use strict";e.exports=window.wp.element},7723(e){"use strict";e.exports=window.wp.i18n},5573(e){"use strict";e.exports=window.wp.primitives},3832(e){"use strict";e.exports=window.wp.url},733(e,t,r){"use strict";r.d(t,{$:()=>a});var n=r(1609),o=r(5683),i=r(9516);const a=n.forwardRef(function(e,t){const{render:r,className:n,disabled:a=!1,focusableWhenDisabled:s=!1,nativeButton:c=!0,style:l,...d}=e,{getButtonProps:u,buttonRef:p}=(0,o.s)({disabled:a,focusableWhenDisabled:s,native:c}),h={disabled:a};return(0,i.o)("button",e,{state:h,ref:[t,p],props:[d,u]})})},5486(e,t,r){"use strict";r.d(t,{G:()=>a});var n=r(334),o=r(1609);const i=o.createContext(void 0);function a(e=!1){const t=o.useContext(i);if(void 0===t&&!e)throw new Error((0,n.A)(16));return t}},8651(e,t,r){"use strict";function n(e,t){const r={};for(const n in e){const o=e[n];if(t?.hasOwnProperty(n)){const e=t[n](o);null!=e&&Object.assign(r,e);continue}!0===o?r[`data-${n.toLowerCase()}`]="":o&&(r[`data-${n.toLowerCase()}`]=o.toString())}return r}r.d(t,{v:()=>n})},5683(e,t,r){"use strict";r.d(t,{s:()=>d});var n=r(1609),o=r(1289),i=r(9829),a=r(3819),s=r(9300),c=r(5486),l=r(3298);function d(e={}){const{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:d=!0,composite:p}=e,h=n.useRef(null),f=(0,c.G)(!0),m=p??void 0!==f,{props:g}=(0,l.S)({focusableWhenDisabled:r,disabled:t,composite:m,tabIndex:o,isNativeButton:d});const v=n.useCallback(()=>{const e=h.current;u(e)&&m&&t&&void 0===g.disabled&&e.disabled&&(e.disabled=!1)},[t,g.disabled,m]);(0,a.g)(v,[v]);return{getButtonProps:n.useCallback((e={})=>{const{onClick:r,onMouseDown:n,onKeyUp:o,onKeyDown:i,onPointerDown:a,...c}=e;return(0,s.v6)({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){if(t)return;if((0,s.PT)(e),i?.(e),e.baseUIHandlerPrevented)return;const n=e.target===e.currentTarget,o=e.currentTarget,a=u(o),c=!d&&(l=o,Boolean("A"===l?.tagName&&l?.href));var l;const p=n&&(d?a:!c),h="Enter"===e.key,f=" "===e.key,g=o.getAttribute("role"),v=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(n&&m&&f){if(e.defaultPrevented&&v)return;return e.preventDefault(),void(c||d&&a?(o.click(),e.preventBaseUIHandler()):p&&(r?.(e),e.preventBaseUIHandler()))}p&&(d||!f&&!h||e.preventDefault(),!d&&h&&r?.(e))},onKeyUp(e){t||((0,s.PT)(e),o?.(e),e.target===e.currentTarget&&d&&m&&u(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||d||m||" "!==e.key||r?.(e))},onPointerDown(e){t?e.preventDefault():a?.(e)}},d?{type:"button"}:{role:"button"},g,c)},[t,g,m,d]),buttonRef:(0,i.K)(e=>{h.current=e,v()})}}function u(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},9516(e,t,r){"use strict";r.d(t,{o:()=>h});var n=r(334),o=r(1609),i=r(6211),a=r(9742),s=r(6504),c=r(2147),l=r(8651),d=r(1835),u=r(3057),p=r(9300);function h(e,t,r={}){const h=t.render,m=function(e,t={}){const{className:r,style:n,render:o}=e,{state:h=c.t0,ref:f,props:m,stateAttributesMapping:g,enabled:v=!0}=t,b=v?(0,d.S)(r,h):void 0,y=v?(0,u.m)(n,h):void 0,w=v?(0,l.v)(h,g):c.t0,_=v&&m?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(m):void 0,x=v?(0,s.r)(w,_)??{}:c.t0;"undefined"!=typeof document&&(v?Array.isArray(f)?x.ref=(0,i.U)([x.ref,(0,a.v)(o),...f]):x.ref=(0,i.a)(x.ref,(0,a.v)(o),f):(0,i.a)(null,null));if(!v)return c.t0;void 0!==b&&(x.className=(0,p.VN)(x.className,b));void 0!==y&&(x.style=(0,s.r)(x.style,y));return x}(t,r);if(!1===r.enabled)return null;return function(e,t,r,i){if(t){if("function"==typeof t)return t(r,i);const e=(0,p.v6)(r,t.props);e.ref=r.ref;let n=t;if(n?.$$typeof===f){n=o.Children.toArray(t)[0]}return o.cloneElement(n,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,o.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,o.createElement)("img",{alt:"",...t,key:t.key});return o.createElement(e,t)}(e,r);throw new Error((0,n.A)(8))}(e,h,m,r.state??c.t0)}const f=Symbol.for("react.lazy")},9300(e,t,r){"use strict";r.d(t,{PT:()=>f,VN:()=>m,lZ:()=>a,v6:()=>i});var n=r(6504);const o={};function i(e,t,r,n,o){if(!(r||n||o||e))return s(t);let i=s(e);return t&&(i=c(i,t)),r&&(i=c(i,r)),n&&(i=c(i,n)),o&&(i=c(i,o)),i}function a(e){if(0===e.length)return o;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let r=1;r<e.length;r+=1)t=c(t,e[r]);return t}function s(e){return d(e)?{...u(e,o)}:function(e){const t={...e};for(const e in t){const r=t[e];l(e,r)&&(t[e]=h(r))}return t}(e)}function c(e,t){return d(t)?u(t,e):function(e,t){if(!t)return e;for(const r in t){const o=t[r];switch(r){case"style":e[r]=(0,n.r)(e.style,o);break;case"className":e[r]=m(e.className,o);break;default:l(r,o)?e[r]=p(e[r],o):e[r]=o}}return e}(e,t)}function l(e,t){const r=e.charCodeAt(0),n=e.charCodeAt(1),o=e.charCodeAt(2);return 111===r&&110===n&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function u(e,t){return d(e)?e(t):e??o}function p(e,t){return t?e?(...r)=>{const n=r[0];if(g(n)){const o=n;f(o);const i=t(...r);return o.baseUIHandlerPrevented||e?.(...r),i}const o=t(...r);return e?.(...r),o}:h(t):e}function h(e){return e?(...t)=>{const r=t[0];return g(r)&&f(r),e(...t)}:e}function f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function m(e,t){return t?e?t+" "+e:t:e}function g(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},3196(e,t,r){"use strict";r.d(t,{C:()=>o});var n=r(9516);function o(e){return(0,n.o)(e.defaultTagName??"div",e,e)}},1835(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(t):e}r.d(t,{S:()=>n})},3057(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(t):e}r.d(t,{m:()=>n})},3298(e,t,r){"use strict";r.d(t,{S:()=>o});var n=r(1609);function o(e){const{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:a}=e,s=o&&!1!==t,c=o&&!1===t;return{props:n.useMemo(()=>{const e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!a&&r&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&r)&&(e["aria-disabled"]=r),!a||t&&!c||(e.disabled=r),e},[o,r,t,s,c,a,i])}}},2147(e,t,r){"use strict";r.d(t,{t0:()=>n});Object.freeze([]);const n=Object.freeze({})},334(e,t,r){"use strict";r.d(t,{A:()=>i});var n,o;const i=(n="https://base-ui.com/production-error",o="Base UI",function(e,...t){const r=new URL(n);return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`${o} error #${e}; visit ${r} for the full message.`})},9742(e,t,r){"use strict";r.d(t,{v:()=>i});var n=r(1609),o=r(8521);function i(e){if(!n.isValidElement(e))return null;const t=e,r=t.props;return((0,o._)(19)?r?.ref:t.ref)??null}},6504(e,t,r){"use strict";function n(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}r.d(t,{r:()=>n})},8521(e,t,r){"use strict";r.d(t,{_:()=>i});var n=r(1609);const o=parseInt(n.version,10);function i(e){return o>=e}},4910(e,t,r){"use strict";var n;r.d(t,{X:()=>i});var o=r(1609);const i={...n||(n=r.t(o,2))}},3819(e,t,r){"use strict";r.d(t,{g:()=>o});var n=r(1609);const o="undefined"!=typeof document?n.useLayoutEffect:()=>{}},6211(e,t,r){"use strict";r.d(t,{U:()=>i,a:()=>o});var n=r(3074);function o(e,t,r,o){const i=(0,n.j)(a).current;return function(e,t,r,n,o){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==n||e.refs[3]!==o}(i,e,t,r,o)&&s(i,[e,t,r,o]),i.callback}function i(e){const t=(0,n.j)(a).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,r)=>e!==t[r])}(t,e)&&s(t,e),t.callback}function a(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){const n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(r);"function"==typeof t&&(n[e]=t);break}case"object":o.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const r=t[e];if(null!=r)switch(typeof r){case"function":{const t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}},3074(e,t,r){"use strict";r.d(t,{j:()=>i});var n=r(1609);const o={};function i(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}},9829(e,t,r){"use strict";r.d(t,{K:()=>s});var n=r(4910),o=r(3074);const i=n.X.useInsertionEffect,a=i&&i!==n.X.useLayoutEffect?i:e=>e();function s(e){const t=(0,o.j)(c).current;return t.next=e,a(t.effect),t.trampoline}function c(){const e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){0}},1289(e,t,r){"use strict";function n(){return"undefined"!=typeof window}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){return!!n()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}r.d(t,{sb:()=>i})},6144(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(3022),o=r(6087),i=r(790),a=(0,o.forwardRef)(({children:e,className:t,ariaLabel:r,as:o="div",...a},s)=>(0,i.jsx)(o,{ref:s,className:(0,n.A)("admin-ui-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...a,children:e}));a.displayName="NavigableRegion";var s=a},1748(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(1220),o=r(9968),i=r(8503),a=r(790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)l(e,r,n)}(document)),e.__wpStyleRuntime}function l(e,t,r){if(!e.head)return;const n=c();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${s}]`))if(r.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=c();r.styles.set(e,t);for(const n of r.documents.keys())l(n,e,t)})("aa9c241ccc","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-bg-surface-neutral,#fcfcfc);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:calc(var(--wpds-dimension-base, 4px)*8)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:calc(var(--wpds-dimension-base, 4px)*6);width:calc(var(--wpds-dimension-base, 4px)*6);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var d="_0625b55e82a0d93d__header",u="a43c44d5ae28b2e8__header-content",p="b7cb5b9daf3a3b25__header-actions",h="_8113be94e7caf73c__header-title",f="_9a776c7f70996f61__header-visual",m="d5e0920cd15d35bc__sidebar-toggle-slot",g="_60fea2f6bf5319cd__header-subtitle";function v({headingLevel:e=1,breadcrumbs:t,badges:r,visual:s,title:c,subTitle:l,actions:v,showSidebarToggle:b=!0}){const y=`h${e}`;return(0,a.jsxs)(n.B,{direction:"column",className:d,children:[(0,a.jsxs)(n.B,{className:u,direction:"row",gap:"sm",justify:"space-between",children:[(0,a.jsxs)(n.B,{direction:"row",gap:"sm",align:"center",justify:"start",children:[b&&(0,a.jsx)(i.D,{bubblesVirtually:!0,className:m}),s&&(0,a.jsx)("div",{className:f,"aria-hidden":"true",children:s}),c&&(0,a.jsx)(o.E,{className:h,render:(0,a.jsx)(y,{}),variant:"heading-lg",children:c}),t,r]}),v&&(0,a.jsx)(n.B,{align:"center",className:p,direction:"row",gap:"sm",children:v})]}),l&&(0,a.jsx)(o.E,{render:(0,a.jsx)("p",{}),variant:"body-md",className:g,children:l})]})}},1753(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(3022),o=r(1748),i=r(6144),a=r(8503),s=r(790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)d(e,r,n)}(document)),e.__wpStyleRuntime}function d(e,t,r){if(!e.head)return;const n=l();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${c}]`))if(r.getAttribute(c)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(c,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=l();r.styles.set(e,t);for(const n of r.documents.keys())d(n,e,t)})("aa9c241ccc","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-bg-surface-neutral,#fcfcfc);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:calc(var(--wpds-dimension-base, 4px)*8)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:calc(var(--wpds-dimension-base, 4px)*6);width:calc(var(--wpds-dimension-base, 4px)*6);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var u="_956b6df0898efed0__page",p="be5e57d029ec4036__content",h="_128806d0b26e3a50__has-padding";function f({headingLevel:e,breadcrumbs:t,badges:r,visual:a,title:c,subTitle:l,children:d,className:f,actions:m,ariaLabel:g,hasPadding:v=!1,showSidebarToggle:b=!0}){const y=(0,n.A)(u,f),w=g??("string"==typeof c?c:"");return(0,s.jsxs)(i.A,{className:y,ariaLabel:w,children:[(c||t||r||m||a)&&(0,s.jsx)(o.A,{headingLevel:e,breadcrumbs:t,badges:r,visual:a,title:c,subTitle:l,actions:m,showSidebarToggle:b}),v?(0,s.jsx)("div",{className:(0,n.A)(p,h),children:d}):d]})}f.SidebarToggleFill=a.a;var m=f},8503(e,t,r){"use strict";r.d(t,{D:()=>i,a:()=>o});var n=r(6427),{Fill:o,Slot:i}=(0,n.createSlotFill)("SidebarToggle")},3109(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(6087),o=(0,n.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,n.cloneElement)(e,{width:t,height:t,...r,ref:o}))},3705(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M14 5H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v10zm2.5-7v4l5 3V7l-5 3zm3.5 4.4l-2-1.2v-2.3l2-1.2v4.7z"})})},4699(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM12.75 8V13H11.25V8H12.75ZM12.75 14.5V16H11.25V14.5H12.75Z"})})},3758(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},8861(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 5h1.5v15h-1.5V5zM6 10h1.5v10H6V10zm12 4h-1.5v6H18v-6z"})})},8901(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},5673(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},9558(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},8329(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},5462(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},5995(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},1489(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},8546(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})})},7823(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})})},9099(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},1866(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},743(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})},1490(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})})},2711(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z"})})},1034(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})})},8847(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},6501(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.jsx)(n.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]})},7855(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})})},815(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},2243(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},907(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},7839(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})})},976(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5573),o=r(790),i=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})})},3022(e,t,r){"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},7578(e,t,r){"use strict";r.d(t,{O:()=>d});const n="bits",o="bytes",i="",a="jedec",s="round",c="string",l={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function d(e,{bits:t=!1,pad:r=!1,base:d=-1,round:u=2,locale:p="",localeOptions:h={},separator:f="",spacer:m=" ",symbols:g={},standard:v="",output:b=c,fullform:y=!1,fullforms:w=[],exponent:_=-1,roundingMethod:x=s,precision:k=0}={}){let j=_,A=Number(e),S=[],C=0,P=i;"si"===v?(d=10,v=a):"iec"===v||v===a?d=2:2===d?v="iec":(d=10,v=a);const E=10===d?1e3:1024,N=!0===y,T=A<0,F=Math[x];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof F)throw new TypeError("Invalid rounding method");if(T&&(A=-A),(-1===j||isNaN(j))&&(j=Math.floor(Math.log(A)/Math.log(E)),j<0&&(j=0)),j>8&&(k>0&&(k+=8-j),j=8),"exponent"===b)return j;if(0===A)S[0]=0,P=S[1]=l.symbol[v][t?n:o][j];else{C=A/(2===d?Math.pow(2,10*j):Math.pow(1e3,j)),t&&(C*=8,C>=E&&j<8&&(C/=E,j++));const e=Math.pow(10,j>0?u:0);S[0]=F(C*e)/e,S[0]===E&&j<8&&-1===_&&(S[0]=1,j++),P=S[1]=10===d&&1===j?t?"kbit":"kB":l.symbol[v][t?n:o][j]}if(T&&(S[0]=-S[0]),k>0&&(S[0]=S[0].toPrecision(k)),S[1]=g[S[1]]||S[1],!0===p?S[0]=S[0].toLocaleString():p.length>0?S[0]=S[0].toLocaleString(p,h):f.length>0&&(S[0]=S[0].toString().replace(".",f)),r&&u>0){const e=S[0].toString(),t=f||(e.match(/(\D)/g)||[]).pop()||".",r=e.toString().split(t),n=r[1]||i,o=n.length,a=u-o;S[0]=`${r[0]}${t}${n.padEnd(o+a,"0")}`}return N&&(S[1]=w[j]?w[j]:l.fullform[v][j]+(t?"bit":"byte")+(1===S[0]?i:"s")),"array"===b?S:"object"===b?{value:S[0],symbol:S[1],exponent:j,unit:P}:S.join(m)}},9535(e,t,r){"use strict";r.d(t,{o4:()=>L});const n="3.7.8",o=n,i="function"==typeof Buffer,a="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),l=(e=>{let t={};return e.forEach((e,r)=>t[e]=r),t})(c),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),h=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),f=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),m=e=>{let t,r,n,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},g="function"==typeof btoa?e=>btoa(e):i?e=>Buffer.from(e,"binary").toString("base64"):m,v=i?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(u.apply(null,e.subarray(r,r+4096)));return g(t.join(""))},b=(e,t=!1)=>t?h(v(e)):v(e),y=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,_=e=>e.replace(w,y),x=i?e=>Buffer.from(e,"utf8").toString("base64"):s?e=>v(s.encode(e)):e=>g(_(e)),k=(e,t=!1)=>t?h(x(e)):x(e),j=e=>k(e,!0),A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=e=>e.replace(A,S),P=e=>{if(e=e.replace(/\s+/g,""),!d.test(e))throw new TypeError("malformed base64.");let t,r,n;e+="==".slice(2-(3&e.length));let o=[];for(let i=0;i<e.length;)t=l[e.charAt(i++)]<<18|l[e.charAt(i++)]<<12|(r=l[e.charAt(i++)])<<6|(n=l[e.charAt(i++)]),64===r?o.push(u(t>>16&255)):64===n?o.push(u(t>>16&255,t>>8&255)):o.push(u(t>>16&255,t>>8&255,255&t));return o.join("")},E="function"==typeof atob?e=>atob(f(e)):i?e=>Buffer.from(e,"base64").toString("binary"):P,N=i?e=>p(Buffer.from(e,"base64")):e=>p(E(e).split("").map(e=>e.charCodeAt(0))),T=e=>N(R(e)),F=i?e=>Buffer.from(e,"base64").toString("utf8"):a?e=>a.decode(N(e)):e=>C(E(e)),R=e=>f(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),O=e=>F(R(e)),U=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),V=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,U(t));e("fromBase64",function(){return O(this)}),e("toBase64",function(e){return k(this,e)}),e("toBase64URI",function(){return k(this,!0)}),e("toBase64URL",function(){return k(this,!0)}),e("toUint8Array",function(){return T(this)})},D=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,U(t));e("toBase64",function(e){return b(this,e)}),e("toBase64URI",function(){return b(this,!0)}),e("toBase64URL",function(){return b(this,!0)})},L={version:n,VERSION:o,atob:E,atobPolyfill:P,btoa:g,btoaPolyfill:m,fromBase64:O,toBase64:k,encode:k,encodeURI:j,encodeURL:j,utob:_,btou:C,decode:O,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:T,extendString:V,extendUint8Array:D,extendBuiltins:()=>{V(),D()}}},6212(e,t,r){"use strict";var n;r.d(t,{BV:()=>Re,I9:()=>ht,Zp:()=>de,g:()=>ue,qh:()=>Te,zy:()=>se});var o=r(1609),i="popstate";function a(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s(e={}){return f(function(e,t){let{pathname:r="/",search:n="",hash:o=""}=h(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),u("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:p(t))},function(e,t){l("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function c(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function u(e,t,r=null,n,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?h(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:o}}function p({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function h(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function f(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:s=!1}=n,c=o.history,l="POP",p=null,h=f();function f(){return(c.state||{idx:null}).idx}function g(){l="POP";let e=f(),t=null==e?null:e-h;h=e,p&&p({action:l,location:b.location,delta:t})}function v(e){return m(e)}null==h&&(h=0,c.replaceState({...c.state,idx:h},""));let b={get action(){return l},get location(){return e(o,c)},listen(e){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(i,g),p=e,()=>{o.removeEventListener(i,g),p=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let n=a(e)?e:u(b.location,e,t);r&&r(n,e),h=f()+1;let i=d(n,h),m=b.createHref(n.mask||n);try{c.pushState(i,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(m)}s&&p&&p({action:l,location:b.location,delta:1})},replace:function(e,t){l="REPLACE";let n=a(e)?e:u(b.location,e,t);r&&r(n,e),h=f();let o=d(n,h),i=b.createHref(n.mask||n);c.replaceState(o,"",i),s&&p&&p({action:l,location:b.location,delta:0})},go:e=>c.go(e)};return b}function m(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),c(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:p(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}new WeakMap;function g(e,t,r="/"){return v(e,t,r,!1)}function v(e,t,r,n,o){let i=P(("string"==typeof t?h(t):t).pathname||"/",r);if(null==i)return null;let a=o??b(e),s=null,c=C(i);for(let e=0;null==s&&e<a.length;++e)s=j(a[e],c,n);return s}function b(e){let t=y(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function y(e,t=[],r=[],n="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;c(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let d=V([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(c(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),y(e.children,t,u,d,a)),(null!=e.path||e.index)&&t.push({path:d,score:k(d,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of w(e.path))i(e,t,!0,r);else i(e,t)}),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=w(n.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var _=/^:[\w-]+$/,x=e=>"*"===e;function k(e,t){let r=e.split("/"),n=r.length;return r.some(x)&&(n+=-2),t&&(n+=2),r.filter(e=>!x(e)).reduce((e,t)=>e+(_.test(t)?3:""===t?1:10),n)}function j(e,t,r=!1){let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],c=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",d=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),u=s.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=A({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:V([i,d.pathname]),pathnameBase:L(V([i,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(i=V([i,d.pathnameBase]))}return a}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=S(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[n];return e[t]=r&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function S(e,t=!1,r=!0){l("*"===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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,o,i)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function C(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var E=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function N(e,t){let r=D(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function T(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function F(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function R(e){let t=F(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function O(e,t,r,n=!1){let o;"string"==typeof e?o=h(e):(o={...e},c(!o.pathname||!o.pathname.includes("?"),T("?","pathname","search",o)),c(!o.pathname||!o.pathname.includes("#"),T("#","pathname","hash",o)),c(!o.search||!o.search.includes("#"),T("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let r,{pathname:n,search:o="",hash:i=""}="string"==typeof e?h(e):e;return n?(n=U(n),r=n.startsWith("/")?N(n.substring(1),"/"):N(n,t)):r=t,{pathname:r,search:I(o),hash:z(i)}}(o,i),d=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!d&&!u||(l.pathname+="/"),l}var U=e=>e.replace(/\/\/+/g,"/"),V=e=>U(e.join("/")),D=e=>e.replace(/\/+$/,""),L=e=>D(e).replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var M=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function $(e){let t=e.map(e=>e.route.path).filter(Boolean);return V(t)||"/"}var H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function G(e,t){let r=e;if("string"!=typeof r||!E.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(H)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),i=P(n.pathname,t);n.origin===e.origin&&null!=i?r=i+n.search+n.hash:o=!0}catch(e){l(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var q=["POST","PUT","PATCH","DELETE"],W=(new Set(q),["GET",...q]);new Set(W),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var J=o.createContext(null);J.displayName="DataRouter";var K=o.createContext(null);K.displayName="DataRouterState";var Z=o.createContext(!1);function Q(){return o.useContext(Z)}var X=o.createContext({isTransitioning:!1});X.displayName="ViewTransition";var Y=o.createContext(new Map);Y.displayName="Fetchers";var ee=o.createContext(null);ee.displayName="Await";var te=o.createContext(null);te.displayName="Navigation";var re=o.createContext(null);re.displayName="Location";var ne=o.createContext({outlet:null,matches:[],isDataRoute:!1});ne.displayName="Route";var oe=o.createContext(null);oe.displayName="RouteError";var ie="REACT_ROUTER_ERROR";function ae(){return null!=o.useContext(re)}function se(){return c(ae(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(re).location}var ce="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function le(e){o.useContext(te).static||o.useLayoutEffect(e)}function de(){let{isDataRoute:e}=o.useContext(ne);return e?function(){let{router:e}=xe("useNavigate"),t=je("useNavigate"),r=o.useRef(!1);return le(()=>{r.current=!0}),o.useCallback(async(n,o={})=>{l(r.current,ce),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}():function(){c(ae(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(J),{basename:t,navigator:r}=o.useContext(te),{matches:n}=o.useContext(ne),{pathname:i}=se(),a=JSON.stringify(R(n)),s=o.useRef(!1);return le(()=>{s.current=!0}),o.useCallback((n,o={})=>{if(l(s.current,ce),!s.current)return;if("number"==typeof n)return void r.go(n);let c=O(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:V([t,c.pathname])),(o.replace?r.replace:r.push)(c,o.state,o)},[t,r,a,i,e])}()}o.createContext(null);function ue(){let{matches:e}=o.useContext(ne),t=e[e.length-1];return t?.params??{}}function pe(e,{relative:t}={}){let{matches:r}=o.useContext(ne),{pathname:n}=se(),i=JSON.stringify(R(r));return o.useMemo(()=>O(e,JSON.parse(i),n,"path"===t),[e,i,n,t])}function he(e,t,r){c(ae(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=o.useContext(te),{matches:i}=o.useContext(ne),a=i[i.length-1],s=a?a.params:{},d=a?a.pathname:"/",u=a?a.pathnameBase:"/",p=a&&a.route;{let e=p&&p.path||"";Ce(d,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,m=se();if(t){let e="string"==typeof t?h(t):t;c("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=m;let v=f.pathname||"/",b=v;if("/"!==u){let e=u.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):g(e,{pathname:b});l(p||null!=y,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),l(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=we(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:V([u,n.encodeLocation?n.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:V([u,n.encodeLocation?n.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,r);return t&&w?o.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},w):w}function fe(){let e=Ae(),t=B(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:i},r):null,s)}var me=o.createElement(fe,null),ge=class extends o.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:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ie}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new M(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(ne.Provider,{value:this.props.routeContext},o.createElement(oe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(be,{error:e},t):t}};ge.contextType=Z;var ve=new WeakMap;function be({children:e,error:t}){let{basename:r}=o.useContext(te);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ie}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=ve.get(t);if(n)throw n;let i=G(e.location,r);if(H&&!ve.get(t)){if(!i.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw ve.set(t,r),r}window.location.href=i.absoluteURL||i.to}return o.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ye({routeContext:e,match:t,children:r}){let n=o.useContext(J);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(ne.Provider,{value:e},r)}function we(e,t=[],r){let n=r?.state;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,a=n?.errors;if(null!=a){let e=i.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(r&&n){s=n.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:o}=n,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||a){r.isStatic&&(s=!0),i=l>=0?i.slice(0,l+1):[i[0]];break}}}}let d=r?.onError,u=n&&d?(e,t)=>{d(e,{location:n.location,params:n.matches?.[0]?.params??{},pattern:$(n.matches),errorInfo:t})}:void 0;return i.reduceRight((e,r,c)=>{let d,p=!1,h=null,f=null;n&&(d=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||me,s&&(l<0&&0===c?(Ce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,f=null):l===c&&(p=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=d?h:p?f:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(ye,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?o.createElement(ge,{location:n.location,revalidation:n.revalidation,component:h,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function _e(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xe(e){let t=o.useContext(J);return c(t,_e(e)),t}function ke(e){let t=o.useContext(K);return c(t,_e(e)),t}function je(e){let t=function(e){let t=o.useContext(ne);return c(t,_e(e)),t}(e),r=t.matches[t.matches.length-1];return c(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Ae(){let e=o.useContext(oe),t=ke("useRouteError"),r=je("useRouteError");return void 0!==e?e:t.errors?.[r]}var Se={};function Ce(e,t,r){t||Se[e]||(Se[e]=!0,l(!1,r))}var Pe={};function Ee(e,t){e||Pe[t]||(Pe[t]=!0,console.warn(t))}(n||(n=r.t(o,2))).useOptimistic;o.memo(Ne);function Ne({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:i}){return he(e,void 0,{manifest:t,state:n,isStatic:o,onError:i,future:r})}function Te(e){c(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Fe({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,useTransitions:s}){c(!ae(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),u=o.useMemo(()=>({basename:d,navigator:i,static:a,useTransitions:s,future:{}}),[d,i,a,s]);"string"==typeof r&&(r=h(r));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:v="default",mask:b}=r,y=o.useMemo(()=>{let e=P(p,d);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:v,mask:b},navigationType:n}},[d,p,f,m,g,v,n,b]);return l(null!=y,`<Router basename="${d}"> is not able to match the URL "${p}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:o.createElement(te.Provider,{value:u},o.createElement(re.Provider,{children:t,value:y}))}function Re({children:e,location:t}){return he(Oe(e),t)}o.Component;function Oe(e,t=[]){let r=[];return o.Children.forEach(e,(e,n)=>{if(!o.isValidElement(e))return;let i=[...t,n];if(e.type===o.Fragment)return void r.push.apply(r,Oe(e.props.children,i));c(e.type===Te,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),c(!e.props.index||!e.props.children,"An index route cannot have child routes.");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,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.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=Oe(e.props.children,i)),r.push(a)}),r}var Ue="get",Ve="application/x-www-form-urlencoded";function De(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Le=null;var Ie=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return null==e||Ie.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ve}"`),null)}function Me(e,t){let r,n,o,i,a;if(De(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?P(a,t):null,r=e.getAttribute("method")||Ue,o=ze(e.getAttribute("enctype"))||Ve,i=new FormData(e)}else if(function(e){return De(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return De(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?P(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Ue,o=ze(e.getAttribute("formenctype"))||ze(a.getAttribute("enctype"))||Ve,i=new FormData(a,e),!function(){if(null===Le)try{new FormData(document.createElement("form"),0),Le=!1}catch(e){Le=!0}return Le}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(De(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ue,n=null,o=Ve,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Be(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function $e(e,t,r,n){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:"/"===o.pathname?o.pathname=`_root.${n}`:t&&"/"===P(o.pathname,t)?o.pathname=`${D(t)}/_root.${n}`:o.pathname=`${D(o.pathname)}.${n}`,o}async function He(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ge(e){return null!=e&&"string"==typeof e.page}function qe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function We(e,t,r,n,o,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let c=n.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Je(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1),[...new Set(n)];var n}function Ke(e,t){let r=new Set,n=new Set(t);return e.reduce((e,o)=>{if(t&&!Ge(o)&&"script"===o.as&&o.href&&n.has(o.href))return e;let i=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(o));return r.has(i)||(r.add(i),e.push({key:i,link:o})),e},[])}function Ze(e,t){return"lazy"===e.mode&&!0===t}function Qe(){let e=o.useContext(J);return Be(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Xe(){let e=o.useContext(K);return Be(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ye=o.createContext(void 0);function et(){let e=o.useContext(Ye);return Be(e,"You must render this element inside a <HydratedRouter> element"),e}function tt(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function rt(e,t,r){if(r&&!st)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}Ye.displayName="FrameworkContext";function nt({page:e,...t}){let r=Q(),{router:n}=Qe(),i=o.useMemo(()=>g(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?r?o.createElement(it,{page:e,matches:i,...t}):o.createElement(at,{page:e,matches:i,...t}):null}function ot(e){let{manifest:t,routeModules:r}=et(),[n,i]=o.useState([]);return o.useEffect(()=>{let n=!1;return async function(e,t,r){return Ke((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await He(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(qe).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||i(e)}),()=>{n=!0}},[e,t,r]),n}function it({page:e,matches:t,...r}){let n=se(),{future:i}=et(),{basename:a}=Qe(),s=o.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=$e(e,a,i.unstable_trailingSlashAwareDataRequests,"rsc"),o=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?o=!0:s.push(e.route.id);return o&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,n,t]);return o.createElement(o.Fragment,null,s.map(e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function at({page:e,matches:t,...r}){let n=se(),{future:i,manifest:a,routeModules:s}=et(),{basename:c}=Qe(),{loaderData:l,matches:d}=Xe(),u=o.useMemo(()=>We(e,t,d,a,n,"data"),[e,t,d,a,n]),p=o.useMemo(()=>We(e,t,d,a,n,"assets"),[e,t,d,a,n]),h=o.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,o=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:r.add(e.route.id))}),0===r.size)return[];let d=$e(e,c,i.unstable_trailingSlashAwareDataRequests,"data");return o&&r.size>0&&d.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[c,i.unstable_trailingSlashAwareDataRequests,l,n,a,u,t,e,s]),f=o.useMemo(()=>Je(p,a),[p,a]),m=ot(p);return o.createElement(o.Fragment,null,h.map(e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),f.map(e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>o.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}var st=!1;function ct(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:i,routeDiscovery:a,ssr:s}=et(),{router:c,static:l,staticContext:d}=Qe(),{matches:u}=Xe(),p=Q(),h=Ze(a,s);i&&(i.didRenderScripts=!0);let f=rt(u,null,n);o.useEffect(()=>{st=!0},[]);let m=o.useMemo(()=>{if(p)return null;let n=d?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${h?"":`import ${JSON.stringify(t.url)}`};\n${f.map((e,r)=>{let n=`route${r}`,o=t.routes[e.route.id];Be(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=o,d=[...i?[{module:i,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...c?[{module:c,varName:`${n}_HydrateFallback`}]:[],{module:l,varName:`${n}_main`}];return 1===d.length?`import * as ${n} from ${JSON.stringify(l)};`:[d.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${d.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${h?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),o=r.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=v(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n  window.__reactRouterRouteModules = {${f.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))},[]),g=st||p?[]:[...new Set(t.entry.imports.concat(Je(f,t,{includeHydrateFallback:!0})))],b="object"==typeof t.sri?t.sri:{};return Ee(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),st||p?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,h?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function lt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}o.Component;function dt({error:e,isOutsideRemixApp:t}){console.error(e);let r,n=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(B(e))return o.createElement(ut,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return o.createElement(ut,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function ut({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:i}=et();return i.root?.Layout&&!r?n:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?o.createElement(ct,null):null)))}var pt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{pt&&(window.__reactRouterVersion="7.15.1")}catch(e){}function ht({basename:e,children:t,useTransitions:r,window:n}){let i=o.useRef();null==i.current&&(i.current=s({window:n,v5Compat:!0}));let a=i.current,[c,l]=o.useState({action:a.action,location:a.location}),d=o.useCallback(e=>{!1===r?l(e):o.startTransition(()=>l(e))},[r]);return o.useLayoutEffect(()=>a.listen(d),[a,d]),o.createElement(Fe,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:a,useTransitions:r})}var ft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mt=o.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:i,replace:a,mask:s,state:l,target:d,to:u,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:m,...g},v){let{basename:b,navigator:y,useTransitions:w}=o.useContext(te),_="string"==typeof u&&ft.test(u),x=G(u,b),k=function(e,{relative:t}={}){c(ae(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=o.useContext(te),{hash:i,pathname:a,search:s}=pe(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:V([r,a])),n.createHref({pathname:l,search:s,hash:i})}(u=x.to,{relative:n}),j=se(),A=null;if(s){let e=O(s,[],j.mask?j.mask.pathname:"/",!0);"/"!==b&&(e.pathname="/"===e.pathname?b:V([b,e.pathname])),A=y.createHref(e)}let[S,C,P]=function(e,t){let r=o.useContext(Ye),[n,i]=o.useState(!1),[a,s]=o.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:d,onMouseLeave:u,onTouchStart:p}=t,h=o.useRef(null);o.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let f=()=>{i(!0)},m=()=>{i(!1),s(!1)};return r?"intent"!==e?[a,h,{}]:[a,h,{onFocus:tt(c,f),onBlur:tt(l,m),onMouseEnter:tt(d,f),onMouseLeave:tt(u,m),onTouchStart:tt(p,f)}]:[!1,h,{}]}(r,g),E=function(e,{target:t,replace:r,mask:n,state:i,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:d}={}){let u=de(),h=se(),f=pe(e,{relative:s});return o.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==r?r:p(h)===p(f),g=()=>u(e,{replace:t,mask:n,state:i,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l});d?o.startTransition(()=>g()):g()}},[h,u,f,r,n,i,t,e,a,s,c,l,d])}(u,{replace:a,mask:s,state:l,target:d,preventScrollReset:h,relative:n,viewTransition:f,defaultShouldRevalidate:m,useTransitions:w});let N=!(x.isExternal||i),T=o.createElement("a",{...g,...P,href:(N?A:void 0)||x.absoluteURL||k,onClick:N?function(t){e&&e(t),t.defaultPrevented||E(t)}:e,ref:lt(v,C),target:d,"data-discover":_||"render"!==t?void 0:"true"});return S&&!_?o.createElement(o.Fragment,null,T,o.createElement(nt,{page:k})):T});mt.displayName="Link",o.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:i,to:a,viewTransition:s,children:l,...d},u){let p=pe(a,{relative:d.relative}),h=se(),f=o.useContext(K),{navigator:m,basename:g}=o.useContext(te),v=null!=f&&function(e,{relative:t}={}){let r=o.useContext(X);c(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=bt("useViewTransitionState"),i=pe(e,{relative:t});if(!r.isTransitioning)return!1;let a=P(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=P(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=A(i.pathname,s)||null!=A(i.pathname,a)}(p)&&!0===s,b=m.encodeLocation?m.encodeLocation(p).pathname:p.pathname,y=h.pathname,w=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(y=y.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&g&&(w=P(w,g)||w);const _="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,k=y===b||!n&&y.startsWith(b)&&"/"===y.charAt(_),j=null!=w&&(w===b||!n&&w.startsWith(b)&&"/"===w.charAt(b.length)),S={isActive:k,isPending:j,isTransitioning:v},C=k?e:void 0;x="function"==typeof r?r(S):[r,k?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(S):i;return o.createElement(mt,{...d,"aria-current":C,className:x,ref:u,style:E,to:a,viewTransition:s},"function"==typeof l?l(S):l)}).displayName="NavLink";var gt=o.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:s=Ue,action:l,onSubmit:d,relative:u,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:m,...g},v)=>{let{useTransitions:b}=o.useContext(te),y=wt(),w=function(e,{relative:t}={}){let{basename:r}=o.useContext(te),n=o.useContext(ne);c(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...pe(e||".",{relative:t})},s=se();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(a.pathname="/"===a.pathname?r:V([r,a.pathname]));return p(a)}(l,{relative:u}),_="get"===s.toLowerCase()?"get":"post",x="string"==typeof l&&ft.test(l);return o.createElement("form",{ref:v,method:_,action:w,onSubmit:n?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,c=n?.getAttribute("formmethod")||s,l=()=>y(n||e.currentTarget,{fetcherKey:t,method:c,navigate:r,replace:i,state:a,relative:u,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:m});b&&!1!==r?o.startTransition(()=>l()):l()},...g,"data-discover":x||"render"!==e?void 0:"true"})});function vt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bt(e){let t=o.useContext(J);return c(t,vt(e)),t}gt.displayName="Form";var yt=0;function wt(){let{router:e}=bt("useSubmit"),{basename:t}=o.useContext(te),r=je("useRouteId"),n=e.fetch,i=e.navigate;return o.useCallback(async(e,o={})=>{let{action:a,method:s,encType:c,formData:l,body:d}=Me(e,t);if(!1===o.navigate){let e=o.fetcherKey||`__${String(++yt)}__`;await n(e,r,o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:l,body:d,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:l,body:d,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,i,t,r])}},1526(e,t,r){"use strict";r.d(t,{$:()=>v});var n=r(733),o=r(3022),i=r(195),a=r(6087),s=r(7723),c=r(790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)u(e,r,n)}(document)),e.__wpStyleRuntime}function u(e,t,r){if(!e.head)return;const n=d();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${l}]`))if(r.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function p(e,t){const r=d();r.styles.set(e,t);for(const n of r.documents.keys())u(n,e,t)}p("26d90ece4e",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:499;--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-strong-disabled,#8d8d8d);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:40px;--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:padding-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);height:var(--wp-ui-button-height);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);min-width:var(--wp-ui-button-min-width);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-decoration:none;@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:#0000;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:#0000;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:24px}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-bg-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:32px}._914b42f315c0e580__is-loading{color:#0000;&:not([data-disabled]):is(:hover,:active,:focus){color:#0000}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}[aria-pressed=true].ad0619a3217c6a5b__is-minimal.e722a8f96726aa99__is-neutral{--wp-ui-button-background-color:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-bg-interactive-neutral-strong,#2d2d2d);--wp-ui-button-foreground-color:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-fg-interactive-neutral-strong,#f0f0f0)}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}');var h={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};p("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var f="_336cd3e4e743482f__box-sizing";p("2a5ab8f3a7","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");var m="e25b2bdd7aa21721__outset-ring--focus-except-active";p("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var g="_6defc79820e382c6__button",v=(0,a.forwardRef)(function({tone:e="brand",variant:t="solid",size:r="default",className:l,focusableWhenDisabled:d=!0,disabled:u,loading:p,loadingAnnouncement:v=(0,s.__)("Loading","jetpack-videopress-pkg"),children:b,...y},w){const _=(0,o.A)(g,f,m,"unstyled"!==t&&h.button,h[`is-${e}`],h[`is-${t}`],h[`is-${r}`],p&&h["is-loading"],l);return(0,a.useEffect)(()=>{p&&v&&(0,i.speak)(v)},[p,v]),(0,c.jsx)(n.$,{ref:w,className:_,focusableWhenDisabled:d,disabled:u??p,...y,children:b})})},6313(e,t,r){"use strict";r.d(t,{a:()=>a});var n=r(6087),o=r(1100),i=r(790),a=(0,n.forwardRef)(function({icon:e,...t},r){return(0,i.jsx)(o.I,{ref:r,icon:e,viewBox:"4 4 16 16",size:16,...t})})},2326(e,t,r){"use strict";r.d(t,{$:()=>i});var n=r(1526),o=r(6313);o.a.displayName="Button.Icon";var i=Object.assign(n.$,{Icon:o.a})},1100(e,t,r){"use strict";r.d(t,{I:()=>a});var n=r(6087),o=r(5573),i=r(790),a=(0,n.forwardRef)(function({icon:e,size:t=24,...r},n){return(0,i.jsx)(o.SVG,{ref:n,fill:"currentColor",...e.props,...r,width:t,height:t})})},9654(e,t,r){"use strict";r.d(t,{N:()=>v});var n=r(3196),o=r(9300),i=r(3022),a=r(6087),s=r(7723),c=r(790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)u(e,r,n)}(document)),e.__wpStyleRuntime}function u(e,t,r){if(!e.head)return;const n=d();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${l}]`))if(r.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(l,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function p(e,t){const r=d();r.styles.set(e,t);for(const n of r.documents.keys())u(n,e,t)}p("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var h="_336cd3e4e743482f__box-sizing";p("2a5ab8f3a7","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");var f="_08e8a2e44959f892__outset-ring--focus";p("90a23568f8",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-regular,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}');var m={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var g="_2c0831b0499dbd6e__a",v=(0,a.forwardRef)(function({children:e,variant:t="default",tone:r="brand",openInNewTab:a=!1,render:l,className:d,...u},p){return(0,n.C)({render:l,defaultTagName:"a",ref:p,props:(0,o.v6)(u,{className:(0,i.A)(g,h,f,"unstyled"!==t&&m.link,"unstyled"!==t&&m[`is-${r}`],"unstyled"===t&&m["is-unstyled"],d),target:a?"_blank":void 0,children:(0,c.jsxs)(c.Fragment,{children:[e,a&&(0,c.jsx)("span",{className:m["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,s.__)("(opens in a new tab)","jetpack-videopress-pkg")})]})})})})},4905(e,t,r){"use strict";r.d(t,{r:()=>u});var n=r(6087),o=r(3022),i=r(2326),a=r(790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)l(e,r,n)}(document)),e.__wpStyleRuntime}function l(e,t,r){if(!e.head)return;const n=c();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${s}]`))if(r.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=c();r.styles.set(e,t);for(const n of r.documents.keys())l(n,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer wp-ui-compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var d={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},u=(0,n.forwardRef)(function({className:e,loading:t,loadingAnnouncement:r,variant:n,...s},c){const l=void 0!==t?{loading:t,loadingAnnouncement:r??""}:{};return(0,a.jsx)(i.$,{...s,...l,ref:c,size:"compact",tone:"neutral",variant:n,className:(0,o.A)(d["action-button"],d[`is-action-button-${n}`],e)})})},1475(e,t,r){"use strict";r.d(t,{E:()=>d});var n=r(6087),o=r(3196),i=r(9300),a="data-wp-hash";function s(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=s();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)c(e,r,n)}(document)),e.__wpStyleRuntime}function c(e,t,r){if(!e.head)return;const n=s();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${a}]`))if(r.getAttribute(a)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=s();r.styles.set(e,t);for(const n of r.documents.keys())c(n,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer wp-ui-compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var l="_0a1270dcdd79c031__actions",d=(0,n.forwardRef)(function({render:e,...t},r){return(0,o.C)({defaultTagName:"div",render:e,ref:r,props:(0,i.v6)({className:l},t)})})},1868(e,t,r){"use strict";r.d(t,{V:()=>u});var n=r(6087),o=r(3022),i=r(9968),a=r(790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)l(e,r,n)}(document)),e.__wpStyleRuntime}function l(e,t,r){if(!e.head)return;const n=c();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${s}]`))if(r.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=c();r.styles.set(e,t);for(const n of r.documents.keys())l(n,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer wp-ui-compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var d="_1904b570a89bb815__description",u=(0,n.forwardRef)(function({className:e,...t},r){return(0,a.jsx)(i.E,{ref:r,variant:"body-md",className:(0,o.A)(d,e),...t})})},8050(e,t,r){"use strict";r.d(t,{b:()=>k});var n=r(195),o=r(6087),i=r(3758),a=r(9099),s=r(8847),c=r(2243),l=r(3196),d=r(9300),u=r(3022),p=r(1100),h=r(790),f="data-wp-hash";function m(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=m();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)g(e,r,n)}(document)),e.__wpStyleRuntime}function g(e,t,r){if(!e.head)return;const n=m();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${f}]`))if(r.getAttribute(f)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(f,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function v(e,t){const r=m();r.styles.set(e,t);for(const n of r.documents.keys())g(n,e,t)}v("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var b="_336cd3e4e743482f__box-sizing";v("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer wp-ui-compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var y={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},w={neutral:null,info:s.A,warning:i.A,success:c.A,error:a.A};function _(e){return"error"===e?"assertive":"polite"}function x(e,t){const r=function(e){if(e){if("string"==typeof e)return e;try{return(0,o.renderToString)(e)}catch{return}}}(e);(0,o.useEffect)(()=>{r&&(0,n.speak)(r,t)},[r,t])}var k=(0,o.forwardRef)(function({intent:e="neutral",children:t,icon:r,spokenMessage:n=t,politeness:o=_(e),render:i,...a},s){x(n,o);const c=null===r?null:r??w[e],f=(0,u.A)(y.notice,y[`is-${e}`],b);return(0,l.C)({defaultTagName:"div",render:i,ref:s,props:(0,d.v6)({className:f,children:(0,h.jsxs)(h.Fragment,{children:[t,c&&(0,h.jsx)(p.I,{className:y.icon,icon:c})]})},a)})})},2472(e,t,r){"use strict";r.d(t,{h:()=>u});var n=r(6087),o=r(3022),i=r(9968),a=r(790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)l(e,r,n)}(document)),e.__wpStyleRuntime}function l(e,t,r){if(!e.head)return;const n=c();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${s}]`))if(r.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=c();r.styles.set(e,t);for(const n of r.documents.keys())l(n,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer wp-ui-compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var d="b5397fb9d05389e3__title",u=(0,n.forwardRef)(function({className:e,...t},r){return(0,a.jsx)(i.E,{ref:r,variant:"heading-md",className:(0,o.A)(d,e),...t})})},1220(e,t,r){"use strict";r.d(t,{B:()=>u});var n=r(3196),o=r(9300),i=r(6087),a="data-wp-hash";function s(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=s();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)c(e,r,n)}(document)),e.__wpStyleRuntime}function c(e,t,r){if(!e.head)return;const n=s();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${a}]`))if(r.getAttribute(a)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(a,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}(function(e,t){const r=s();r.styles.set(e,t);for(const n of r.documents.keys())c(n,e,t)})("b51ff41489","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");var l="_19ce0419607e1896__stack",d={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},u=(0,i.forwardRef)(function({direction:e,gap:t,align:r,justify:i,wrap:a,render:s,...c},u){const p={gap:t&&d[t],alignItems:r,justifyContent:i,flexDirection:e,flexWrap:a};return(0,n.C)({render:s,ref:u,props:(0,o.v6)(c,{style:p,className:l})})})},9968(e,t,r){"use strict";r.d(t,{E:()=>f});var n=r(3196),o=r(9300),i=r(3022),a=r(6087),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[r,n]of t.styles)l(e,r,n)}(document)),e.__wpStyleRuntime}function l(e,t,r){if(!e.head)return;const n=c();let o=n.injectedStyles.get(e);if(o||(o=new Set,n.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const r of e.head.querySelectorAll(`style[${s}]`))if(r.getAttribute(s)===t)return!0;return!1}(e,t))return void o.add(t);const i=e.createElement("style");i.setAttribute(s,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),o.add(t)}function d(e,t){const r=c();r.styles.set(e,t);for(const n of r.documents.keys())l(n,e,t)}d("0c8601dd83",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');var u={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};d("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var p="_43cec3e1eec1066d__p",h="e97669c6d9a38497__heading",f=(0,a.forwardRef)(function({variant:e="body-md",render:t,className:r,...a},s){return(0,n.C)({render:t,defaultTagName:"span",ref:s,props:(0,o.v6)(a,{className:(0,i.A)(u.text,h,p,u[e],r)})})})}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=o(723),t=o(6087),r=o(7723),n=o(1609),i=o(6212),a=o(6287),s=o(3536),c=o(2784),l=o(4951),d=o(957),u=(o(3179),o(790));const __=r.__;function p(){const e=(0,i.zy)();return(0,n.useEffect)(()=>{setTimeout(()=>{window.scrollTo(0,0)},0)},[e]),null}(0,a.k$)();const h=()=>{const{isUploading:t}=(0,d.Ay)();return(0,l.A)({shouldPrevent:t,message:__("Leaving will cancel the upload. Are you sure you want to exit?","jetpack-videopress-pkg")}),(0,u.jsx)(e.Ay,{children:(0,u.jsxs)(i.I9,{children:[(0,u.jsx)(p,{}),(0,u.jsxs)(i.BV,{children:[(0,u.jsx)(i.qh,{path:"/",element:(0,u.jsx)(s.A,{})}),(0,u.jsx)(i.qh,{path:"/video/:videoId/edit",element:(0,u.jsx)(c.A,{})})]})]})})};!function(){const e=document.getElementById("jetpack-videopress-root");null!==e&&t.createRoot(e).render((0,u.jsx)(h,{}))}()})()})();