(()=>{var e={734:function(e,t,r){"use strict";// EXPORTS
r.d(t,{A:()=>/* binding */eT});// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
var n=false;/*

Based off glamor's StyleSheet, thanks Sunil ❤️

high performance StyleSheet for css-in-js systems

- uses multiple style tags behind the scenes for millions of rules
- uses `insertRule` for appending in production for *much* faster performance

// usage

import { StyleSheet } from '@emotion/sheet'

let styleSheet = new StyleSheet({ key: '', container: document.head })

styleSheet.insert('#box { border: 1px solid red; }')
- appends a css rule into the stylesheet

styleSheet.flush()
- empties the stylesheet of all its contents

*/function a(e){if(e.sheet){return e.sheet}// this weirdness brought to you by firefox
/* istanbul ignore next */for(var t=0;t<document.styleSheets.length;t++){if(document.styleSheets[t].ownerNode===e){return document.styleSheets[t]}}// this function should always return with a value
// TS can't understand it though so we make it stop complaining here
return undefined}function o(e){var t=document.createElement("style");t.setAttribute("data-emotion",e.key);if(e.nonce!==undefined){t.setAttribute("nonce",e.nonce)}t.appendChild(document.createTextNode(""));t.setAttribute("data-s","");return t}var i=/*#__PURE__*/function(){// Using Node instead of HTMLElement since container may be a ShadowRoot
function e(e){var t=this;this._insertTag=function(e){var r;if(t.tags.length===0){if(t.insertionPoint){r=t.insertionPoint.nextSibling}else if(t.prepend){r=t.container.firstChild}else{r=t.before}}else{r=t.tags[t.tags.length-1].nextSibling}t.container.insertBefore(e,r);t.tags.push(e)};this.isSpeedy=e.speedy===undefined?!n:e.speedy;this.tags=[];this.ctr=0;this.nonce=e.nonce;// key is the value of the data-emotion attribute, it's used to identify different sheets
this.key=e.key;this.container=e.container;this.prepend=e.prepend;this.insertionPoint=e.insertionPoint;this.before=null}var t=e.prototype;t.hydrate=function e(e){e.forEach(this._insertTag)};t.insert=function e(e){// the max length is how many rules we have per style tag, it's 65000 in speedy mode
// it's 1 in dev because we insert source maps that map a single rule to a location
// and you can only have one source map per style tag
if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(o(this))}var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=a(t);try{// this is the ultrafast version, works across browsers
// the big drawback is that the css won't be editable in devtools
r.insertRule(e,r.cssRules.length)}catch(e){}}else{t.appendChild(document.createTextNode(e))}this.ctr++};t.flush=function e(){this.tags.forEach(function(e){var t;return(t=e.parentNode)==null?void 0:t.removeChild(e)});this.tags=[];this.ctr=0};return e}();// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
/**
 * @param {number}
 * @return {number}
 */var s=Math.abs;/**
 * @param {number}
 * @return {string}
 */var c=String.fromCharCode;/**
 * @param {object}
 * @return {object}
 */var u=Object.assign;/**
 * @param {string} value
 * @param {number} length
 * @return {number}
 */function l(e,t){return v(e,0)^45?(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3):0}/**
 * @param {string} value
 * @return {string}
 */function f(e){return e.trim()}/**
 * @param {string} value
 * @param {RegExp} pattern
 * @return {string?}
 */function d(e,t){return(e=t.exec(e))?e[0]:e}/**
 * @param {string} value
 * @param {(string|RegExp)} pattern
 * @param {string} replacement
 * @return {string}
 */function p(e,t,r){return e.replace(t,r)}/**
 * @param {string} value
 * @param {string} search
 * @return {number}
 */function h(e,t){return e.indexOf(t)}/**
 * @param {string} value
 * @param {number} index
 * @return {number}
 */function v(e,t){return e.charCodeAt(t)|0}/**
 * @param {string} value
 * @param {number} begin
 * @param {number} end
 * @return {string}
 */function m(e,t,r){return e.slice(t,r)}/**
 * @param {string} value
 * @return {number}
 */function g(e){return e.length}/**
 * @param {any[]} value
 * @return {number}
 */function b(e){return e.length}/**
 * @param {any} value
 * @param {any[]} array
 * @return {any}
 */function y(e,t){return t.push(e),e}/**
 * @param {string[]} array
 * @param {function} callback
 * @return {string}
 */function _(e,t){return e.map(t).join("")};// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
var x=1;var w=1;var k=0;var A=0;var E=0;var O="";/**
 * @param {string} value
 * @param {object | null} root
 * @param {object | null} parent
 * @param {string} type
 * @param {string[] | string} props
 * @param {object[] | string} children
 * @param {number} length
 */function S(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:x,column:w,length:i,return:""}}/**
 * @param {object} root
 * @param {object} props
 * @return {object}
 */function I(e,t){return u(S("",null,null,"",null,null,0),e,{length:-e.length},t)}/**
 * @return {number}
 */function M(){return E}/**
 * @return {number}
 */function C(){E=A>0?v(O,--A):0;if(w--,E===10)w=1,x--;return E}/**
 * @return {number}
 */function T(){E=A<k?v(O,A++):0;if(w++,E===10)w=1,x++;return E}/**
 * @return {number}
 */function Y(){return v(O,A)}/**
 * @return {number}
 */function R(){return A}/**
 * @param {number} begin
 * @param {number} end
 * @return {string}
 */function D(e,t){return m(O,e,t)}/**
 * @param {number} type
 * @return {number}
 */function P(e){switch(e){// \0 \t \n \r \s whitespace token
case 0:case 9:case 10:case 13:case 32:return 5;// ! + , / > @ ~ isolate token
case 33:case 43:case 44:case 47:case 62:case 64:case 126:// ; { } breakpoint token
case 59:case 123:case 125:return 4;// : accompanied token
case 58:return 3;// " ' ( [ opening delimit token
case 34:case 39:case 40:case 91:return 2;// ) ] closing delimit token
case 41:case 93:return 1}return 0}/**
 * @param {string} value
 * @return {any[]}
 */function $(e){return x=w=1,k=g(O=e),A=0,[]}/**
 * @param {any} value
 * @return {any}
 */function F(e){return O="",e}/**
 * @param {number} type
 * @return {string}
 */function H(e){return f(D(A-1,U(e===91?e+2:e===40?e+1:e)))}/**
 * @param {string} value
 * @return {string[]}
 */function N(e){return F(j($(e)))}/**
 * @param {number} type
 * @return {string}
 */function z(e){while(E=Y())if(E<33)T();else break;return P(e)>2||P(E)>3?"":" "}/**
 * @param {string[]} children
 * @return {string[]}
 */function j(e){while(T())switch(P(E)){case 0:append(K(A-1),e);break;case 2:append(H(E),e);break;default:append(from(E),e)}return e}/**
 * @param {number} index
 * @param {number} count
 * @return {string}
 */function L(e,t){while(--t&&T())// not 0-9 A-F a-f
if(E<48||E>102||E>57&&E<65||E>70&&E<97)break;return D(e,R()+(t<6&&Y()==32&&T()==32))}/**
 * @param {number} type
 * @return {number}
 */function U(e){while(T())switch(E){// ] ) " '
case e:return A;// " '
case 34:case 39:if(e!==34&&e!==39)U(E);break;// (
case 40:if(e===41)U(e);break;// \
case 92:T();break}return A}/**
 * @param {number} type
 * @param {number} index
 * @return {number}
 */function B(e,t){while(T())// //
if(e+E===47+10)break;else if(e+E===42+42&&Y()===47)break;return"/*"+D(t,A-1)+"*"+c(e===47?e:T())}/**
 * @param {number} index
 * @return {string}
 */function K(e){while(!P(Y()))T();return D(e,A)};// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
var W="-ms-";var V="-moz-";var q="-webkit-";var G="comm";var Q="rule";var J="decl";var X="@page";var Z="@media";var ee="@import";var et="@charset";var er="@viewport";var en="@supports";var ea="@document";var eo="@namespace";var ei="@keyframes";var es="@font-face";var ec="@counter-style";var eu="@font-feature-values";var el="@layer";// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
/**
 * @param {object[]} children
 * @param {function} callback
 * @return {string}
 */function ef(e,t){var r="";var n=b(e);for(var a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 * @param {function} callback
 * @return {string}
 */function ed(e,t,r,n){switch(e.type){case el:if(e.children.length)break;case ee:case J:return e.return=e.return||e.value;case G:return"";case ei:return e.return=e.value+"{"+ef(e.children,n)+"}";case Q:e.value=e.props.join(",")}return g(r=ef(e.children,n))?e.return=e.value+"{"+r+"}":""};// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
/**
 * @param {function[]} collection
 * @return {function}
 */function ep(e){var t=b(e);return function(r,n,a,o){var i="";for(var s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}/**
 * @param {function} callback
 * @return {function}
 */function eh(e){return function(t){if(!t.root){if(t=t.return)e(t)}}}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 * @param {function} callback
 */function ev(e,t,r,n){if(e.length>-1){if(!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,r);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],n);case RULESET:if(e.length)return combine(e.props,function(t){switch(match(t,/(::plac\w+|:read-\w+)/)){// :read-(only|write)
case":read-only":case":read-write":return serialize([copy(e,{props:[replace(t,/:(read-\w+)/,":"+MOZ+"$1")]})],n);// :placeholder
case"::placeholder":return serialize([copy(e,{props:[replace(t,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,MS+"input-$1")]})],n)}return""})}}}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 */function em(e){switch(e.type){case RULESET:e.props=e.props.map(function(t){return combine(tokenize(t),function(t,r,n){switch(charat(t,0)){// \f
case 12:return substr(t,1,strlen(t));// \0 ( + > ~
case 0:case 40:case 43:case 62:case 126:return t;// :
case 58:if(n[++r]==="global")n[r]="",n[++r]="\f"+substr(n[r],r=1,-1);// \s
case 32:return r===1?"":t;default:switch(r){case 0:e=t;return sizeof(n)>1?"":t;case r=sizeof(n)-1:case 2:return r===2?t+e+e:t+e;default:return t}}})})}};// CONCATENATED MODULE: ./node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
/**
 * @param {string} value
 * @return {object[]}
 */function eg(e){return F(eb("",null,null,null,[""],e=$(e),0,[0],e))}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {string[]} rule
 * @param {string[]} rules
 * @param {string[]} rulesets
 * @param {number[]} pseudo
 * @param {number[]} points
 * @param {string[]} declarations
 * @return {object}
 */function eb(e,t,r,n,a,o,i,s,u){var l=0;var f=0;var d=i;var m=0;var b=0;var _=0;var x=1;var w=1;var k=1;var A=0;var E="";var O=a;var S=o;var I=n;var M=E;while(w)switch(_=A,A=T()){// (
case 40:if(_!=108&&v(M,d-1)==58){if(h(M+=p(H(A),"&","&\f"),"&\f")!=-1)k=-1;break}// " ' [
case 34:case 39:case 91:M+=H(A);break;// \t \n \r \s
case 9:case 10:case 13:case 32:M+=z(_);break;// \
case 92:M+=L(R()-1,7);continue;// /
case 47:switch(Y()){case 42:case 47:y(e_(B(T(),R()),t,r),u);break;default:M+="/"}break;// {
case 123*x:s[l++]=g(M)*k;// } ; \0
case 125*x:case 59:case 0:switch(A){// \0 }
case 0:case 125:w=0;// ;
case 59+f:if(k==-1)M=p(M,/\f/g,"");if(b>0&&g(M)-d)y(b>32?ex(M+";",n,r,d-1):ex(p(M," ","")+";",n,r,d-2),u);break;// @ ;
case 59:M+=";";// { rule/at-rule
default:y(I=ey(M,t,r,l,f,a,s,E,O=[],S=[],d),o);if(A===123)if(f===0)eb(M,t,I,I,O,o,d,s,S);else switch(m===99&&v(M,3)===110?100:m){// d l m s
case 100:case 108:case 109:case 115:eb(e,I,I,n&&y(ey(e,I,I,0,0,a,s,E,a,O=[],d),S),a,S,d,s,n?O:S);break;default:eb(M,I,I,I,[""],S,0,s,S)}}l=f=b=0,x=k=1,E=M="",d=i;break;// :
case 58:d=1+g(M),b=_;default:if(x<1){if(A==123)--x;else if(A==125&&x++==0&&C()==125)continue}switch(M+=c(A),A*x){// &
case 38:k=f>0?1:(M+="\f",-1);break;// ,
case 44:s[l++]=(g(M)-1)*k,k=1;break;// @
case 64:// -
if(Y()===45)M+=H(T());m=Y(),f=d=g(E=M+=K(R())),A++;break;// -
case 45:if(_===45&&g(M)==2)x=0}}return o}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {number} index
 * @param {number} offset
 * @param {string[]} rules
 * @param {number[]} points
 * @param {string} type
 * @param {string[]} props
 * @param {string[]} children
 * @param {number} length
 * @return {object}
 */function ey(e,t,r,n,a,o,i,c,u,l,d){var h=a-1;var v=a===0?o:[""];var g=b(v);for(var y=0,_=0,x=0;y<n;++y)for(var w=0,k=m(e,h+1,h=s(_=i[y])),A=e;w<g;++w)if(A=f(_>0?v[w]+" "+k:p(k,/&\f/g,v[w])))u[x++]=A;return S(e,t,r,a===0?Q:c,u,l,d)}/**
 * @param {number} value
 * @param {object} root
 * @param {object?} parent
 * @return {object}
 */function e_(e,t,r){return S(e,t,r,G,c(M()),m(e,2,-2),0)}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {number} length
 * @return {object}
 */function ex(e,t,r,n){return S(e,t,r,J,m(e,0,n),m(e,n+1,-1),n)};// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
var ew=function e(e,t,r){var n=0;var a=0;while(true){n=a;a=Y();// &\f
if(n===38&&a===12){t[r]=1}if(P(a)){break}T()}return D(e,A)};var ek=function e(e,t){// pretend we've started with a comma
var r=-1;var n=44;do{switch(P(n)){case 0:// &\f
if(n===38&&Y()===12){// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
// and when it should just concatenate the outer and inner selectors
// it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
t[r]=1}e[r]+=ew(A-1,t,r);break;case 2:e[r]+=H(n);break;case 4:// comma
if(n===44){// colon
e[++r]=Y()===58?"&\f":"";t[r]=e[r].length;break}// fallthrough
default:e[r]+=c(n)}}while(n=T())return e};var eA=function e(e,t){return F(ek($(e),t))};// WeakSet would be more appropriate, but only WeakMap is supported in IE11
var eE=/* #__PURE__ */new WeakMap;var eO=function e(e){if(e.type!=="rule"||!e.parent||// positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
e.length<1){return}var t=e.value;var r=e.parent;var n=e.column===r.column&&e.line===r.line;while(r.type!=="rule"){r=r.parent;if(!r)return}// short-circuit for the simplest case
if(e.props.length===1&&t.charCodeAt(0)!==58&&!eE.get(r)){return}// if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
// then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
if(n){return}eE.set(e,true);var a=[];var o=eA(t,a);var i=r.props;for(var s=0,c=0;s<o.length;s++){for(var u=0;u<i.length;u++,c++){e.props[c]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}};var eS=function e(e){if(e.type==="decl"){var t=e.value;if(t.charCodeAt(0)===108&&// charcode for b
t.charCodeAt(2)===98){// this ignores label
e["return"]="";e.value=""}}};/* eslint-disable no-fallthrough */function eI(e,t){switch(l(e,t)){// color-adjust
case 5103:return q+"print-"+e+e;// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+e+e;// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:case 4246:case 4810:case 6968:case 2756:return q+e+V+e+W+e+e;// flex, flex-direction
case 6828:case 4268:return q+e+W+e+e;// order
case 6165:return q+e+W+"flex-"+e+e;// align-items
case 5187:return q+e+p(e,/(\w+).+(:[^]+)/,q+"box-$1$2"+W+"flex-$1$2")+e;// align-self
case 5443:return q+e+W+"flex-item-"+p(e,/flex-|-self/,"")+e;// align-content
case 4675:return q+e+W+"flex-line-pack"+p(e,/align-content|flex-|-self/,"")+e;// flex-shrink
case 5548:return q+e+W+p(e,"shrink","negative")+e;// flex-basis
case 5292:return q+e+W+p(e,"basis","preferred-size")+e;// flex-grow
case 6060:return q+"box-"+p(e,"-grow","")+q+e+W+p(e,"grow","positive")+e;// transition
case 4554:return q+p(e,/([^-])(transform)/g,"$1"+q+"$2")+e;// cursor
case 6187:return p(p(p(e,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),e,"")+e;// background, background-image
case 5495:case 3959:return p(e,/(image-set\([^]*)/,q+"$1"+"$`$1");// justify-content
case 4968:return p(p(e,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+W+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+e+e;// (margin|padding)-inline-(start|end)
case 4095:case 3583:case 4068:case 2532:return p(e,/(.+)-inline(.+)/,q+"$1$2")+e;// (min|max)?(width|height|inline-size|block-size)
case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:// stretch, max-content, min-content, fill-available
if(g(e)-1-t>6)switch(v(e,t+1)){// (m)ax-content, (m)in-content
case 109:// -
if(v(e,t+4)!==45)break;// (f)ill-available, (f)it-content
case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3"+"$1"+V+(v(e,t+3)==108?"$3":"$2-$3"))+e;// (s)tretch
case 115:return~h(e,"stretch")?eI(p(e,"stretch","fill-available"),t)+e:e}break;// position: sticky
case 4949:// (s)ticky?
if(v(e,t+1)!==115)break;// display: (flex|inline-flex)
case 6444:switch(v(e,g(e)-3-(~h(e,"!important")&&10))){// stic(k)y
case 107:return p(e,":",":"+q)+e;// (inline-)?fl(e)x
case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(v(e,14)===45?"inline-":"")+"box$3"+"$1"+q+"$2$3"+"$1"+W+"$2box$3")+e}break;// writing-mode
case 5936:switch(v(e,t+11)){// vertical-l(r)
case 114:return q+e+W+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;// vertical-r(l)
case 108:return q+e+W+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;// horizontal(-)tb
case 45:return q+e+W+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return q+e+W+e+e}return e}var eM=function e(e,t,r,n){if(e.length>-1){if(!e["return"])switch(e.type){case J:e["return"]=eI(e.value,e.length);break;case ei:return ef([I(e,{value:p(e.value,"@","@"+q)})],n);case Q:if(e.length)return _(e.props,function(t){switch(d(t,/(::plac\w+|:read-\w+)/)){// :read-(only|write)
case":read-only":case":read-write":return ef([I(e,{props:[p(t,/:(read-\w+)/,":"+V+"$1")]})],n);// :placeholder
case"::placeholder":return ef([I(e,{props:[p(t,/:(plac\w+)/,":"+q+"input-$1")]}),I(e,{props:[p(t,/:(plac\w+)/,":"+V+"$1")]}),I(e,{props:[p(t,/:(plac\w+)/,W+"input-$1")]})],n)}return""})}}};var eC=[eM];var eT=function e(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");// get SSRed styles out of the way of React's hydration
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
// note this very very intentionally targets all style elements regardless of the key to ensure
// that creating a cache works inside of render of a React component
Array.prototype.forEach.call(r,function(e){// we want to only move elements which have a space in the data-emotion attribute value
// because that indicates that it is an Emotion 11 server-side rendered style elements
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
// will not result in the Emotion 10 styles being destroyed
var t=e.getAttribute("data-emotion");if(t.indexOf(" ")===-1){return}document.head.appendChild(e);e.setAttribute("data-s","")})}var n=e.stylisPlugins||eC;var a={};var o;var s=[];{o=e.container||document.head;Array.prototype.forEach.call(// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){var t=e.getAttribute("data-emotion").split(" ");for(var r=1;r<t.length;r++){a[t[r]]=true}s.push(e)})}var c;var u=[eO,eS];{var l;var f=[ed,eh(function(e){l.insert(e)})];var d=ep(u.concat(n,f));var p=function e(e){return ef(eg(e),d)};c=function e(e,t,r,n){l=r;p(e?e+"{"+t.styles+"}":t.styles);if(n){h.inserted[t.name]=true}}}var h={key:t,sheet:new i({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:c};h.sheet.hydrate(s);return h}},517:function(e,t,r){"use strict";r.d(t,{C:()=>d,E:()=>O,T:()=>v,c:()=>k,h:()=>x,i:()=>l,w:()=>h});/* import */var n=r(594);/* import */var a=/*#__PURE__*/r.n(n);/* import */var o=r(734);/* import */var i=r(595);/* import */var s=r(631);/* import */var c=r(35);var u=false;var l=typeof document!=="undefined";var f=/* #__PURE__ */n.createContext(// because this module is primarily intended for the browser and node
// but it's also required in react native and similar environments sometimes
// and we could have a special build just for that
// but this is much easier and the native packages
// might use a different theme context in the future anyway
typeof HTMLElement!=="undefined"?/* #__PURE__ */(0,o/* ["default"] */.A)({key:"css"}):null);var d=f.Provider;var p=function e(){return useContext(f)};var h=function e(e){return/*#__PURE__*/(0,n.forwardRef)(function(t,r){// the cache will never be null in the browser
var a=(0,n.useContext)(f);return e(t,a,r)})};if(!l){h=function e(e){return function(t){var r=(0,n.useContext)(f);if(r===null){// yes, we're potentially creating this on every render
// it doesn't actually matter though since it's only on the server
// so there will only every be a single render
// that could change in the future because of suspense and etc. but for now,
// this works and i don't want to optimise for a future thing that we aren't sure about
r=(0,o/* ["default"] */.A)({key:"css"});return /*#__PURE__*/n.createElement(f.Provider,{value:r},e(t,r))}else{return e(t,r)}}}}var v=/* #__PURE__ */n.createContext({});var m=function e(){return React.useContext(v)};var g=function e(e,t){if(typeof t==="function"){var r=t(e);return r}return _extends({},e,t)};var b=/* #__PURE__ *//* unused pure expression or super */null&&weakMemoize(function(e){return weakMemoize(function(t){return g(e,t)})});var y=function e(e){var t=React.useContext(v);if(e.theme!==t){t=b(t)(e.theme)}return /*#__PURE__*/React.createElement(v.Provider,{value:t},e.children)};function _(e){var t=e.displayName||e.name||"Component";var r=/*#__PURE__*/React.forwardRef(function t(t,r){var n=React.useContext(v);return /*#__PURE__*/React.createElement(e,_extends({theme:n,ref:r},t))});r.displayName="WithTheme("+t+")";return hoistNonReactStatics(r,e)}var x={}.hasOwnProperty;var w="__EMOTION_TYPE_PLEASE_DO_NOT_USE__";var k=function e(e,t){var r={};for(var n in t){if(x.call(t,n)){r[n]=t[n]}}r[w]=e;// Runtime labeling is an opt-in feature because:
return r};var A=function e(e){var t=e.cache,r=e.serialized,a=e.isStringTag;(0,i/* .registerStyles */.SF)(t,r,a);var o=(0,c/* .useInsertionEffectAlwaysWithSyncFallback */.s)(function(){return(0,i/* .insertStyles */.sk)(t,r,a)});if(!l&&o!==undefined){var s;var u=r.name;var f=r.next;while(f!==undefined){u+=" "+f.name;f=f.next}return /*#__PURE__*/n.createElement("style",(s={},s["data-emotion"]=t.key+" "+u,s.dangerouslySetInnerHTML={__html:o},s.nonce=t.sheet.nonce,s))}return null};var E=/* #__PURE__ */h(function(e,t,r){var a=e.css;// so that using `css` from `emotion` and passing the result to the css prop works
// not passing the registered cache to serializeStyles because it would
// make certain babel optimisations not possible
if(typeof a==="string"&&t.registered[a]!==undefined){a=t.registered[a]}var o=e[w];var c=[a];var l="";if(typeof e.className==="string"){l=(0,i/* .getRegisteredStyles */.Rk)(t.registered,c,e.className)}else if(e.className!=null){l=e.className+" "}var f=(0,s/* .serializeStyles */.J)(c,undefined,n.useContext(v));l+=t.key+"-"+f.name;var d={};for(var p in e){if(x.call(e,p)&&p!=="css"&&p!==w&&!u){d[p]=e[p]}}d.className=l;if(r){d.ref=r}return /*#__PURE__*/n.createElement(n.Fragment,null,/*#__PURE__*/n.createElement(A,{cache:t,serialized:f,isStringTag:typeof o==="string"}),/*#__PURE__*/n.createElement(o,d))});var O=E},757:function(e,t,r){"use strict";r.d(t,{AH:()=>h,i7:()=>v,mL:()=>p});/* import */var n=r(517);/* import */var a=r(594);/* import */var o=/*#__PURE__*/r.n(a);/* import */var i=r(595);/* import */var s=r(35);/* import */var c=r(631);/* import */var u=r(734);/* import */var l=r(416);/* import */var f=/*#__PURE__*/r.n(l);var d=function e(e,t){// eslint-disable-next-line prefer-rest-params
var r=arguments;if(t==null||!n.h.call(t,"css")){return a.createElement.apply(undefined,r)}var o=r.length;var i=new Array(o);i[0]=n.E;i[1]=(0,n.c)(e,t);for(var s=2;s<o;s++){i[s]=r[s]}return a.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||(t=e.JSX||(e.JSX={})))})(d||(d={}));// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
// initial client-side render from SSR, use place of hydrating tag
var p=/* #__PURE__ */(0,n.w)(function(e,t){var r=e.styles;var o=(0,c/* .serializeStyles */.J)([r],undefined,a.useContext(n.T));if(!n.i){var u;var l=o.name;var f=o.styles;var d=o.next;while(d!==undefined){l+=" "+d.name;f+=d.styles;d=d.next}var p=t.compat===true;var h=t.insert("",{name:l,styles:f},t.sheet,p);if(p){return null}return /*#__PURE__*/a.createElement("style",(u={},u["data-emotion"]=t.key+"-global "+l,u.dangerouslySetInnerHTML={__html:h},u.nonce=t.sheet.nonce,u))}// yes, i know these hooks are used conditionally
// but it is based on a constant that will never change at runtime
// it's effectively like having two implementations and switching them out
// so it's not actually breaking anything
var v=a.useRef();(0,s/* .useInsertionEffectWithLayoutFallback */.i)(function(){var e=t.key+"-global";// use case of https://github.com/emotion-js/emotion/issues/2675
var r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy});var n=false;var a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');if(t.sheet.tags.length){r.before=t.sheet.tags[0]}if(a!==null){n=true;// clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
a.setAttribute("data-emotion",e);r.hydrate([a])}v.current=[r,n];return function(){r.flush()}},[t]);(0,s/* .useInsertionEffectWithLayoutFallback */.i)(function(){var e=v.current;var r=e[0],n=e[1];if(n){e[1]=false;return}if(o.next!==undefined){// insert keyframes
(0,i/* .insertStyles */.sk)(t,o.next,true)}if(r.tags.length){// if this doesn't exist then it will be null so the style element will be appended
var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a;r.flush()}t.insert("",o,r,false)},[t,o.name]);return null});function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return(0,c/* .serializeStyles */.J)(t)}function v(){var e=h.apply(void 0,arguments);var t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function e(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var m=function e(t){var r=t.length;var n=0;var a="";for(;n<r;n++){var o=t[n];if(o==null)continue;var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o)){i=e(o)}else{i="";for(var s in o){if(o[s]&&s){i&&(i+=" ");i+=s}}}break}default:{i=o}}if(i){a&&(a+=" ");a+=i}}return a};function g(e,t,r){var n=[];var a=getRegisteredStyles(e,n,r);if(n.length<2){return r}return a+t(n)}var b=function e(e){var t=e.cache,r=e.serializedArr;var n=useInsertionEffectAlwaysWithSyncFallback(function(){var e="";for(var n=0;n<r.length;n++){var a=insertStyles(t,r[n],false);if(!isBrowser&&a!==undefined){e+=a}}if(!isBrowser){return e}});if(!isBrowser&&n.length!==0){var a;return /*#__PURE__*/React.createElement("style",(a={},a["data-emotion"]=t.key+" "+r.map(function(e){return e.name}).join(" "),a.dangerouslySetInnerHTML={__html:n},a.nonce=t.sheet.nonce,a))}return null};var y=/* #__PURE__ *//* unused pure expression or super */null&&withEmotionCache(function(e,t){var r=false;var n=[];var a=function e(){if(r&&isDevelopment){throw new Error("css can only be used during render")}for(var e=arguments.length,a=new Array(e),o=0;o<e;o++){a[o]=arguments[o]}var i=serializeStyles(a,t.registered);n.push(i);// registration has to happen here as the result of this might get consumed by `cx`
registerStyles(t,i,false);return t.key+"-"+i.name};var o=function e(){if(r&&isDevelopment){throw new Error("cx can only be used during render")}for(var e=arguments.length,n=new Array(e),o=0;o<e;o++){n[o]=arguments[o]}return g(t.registered,a,m(n))};var i={css:a,cx:o,theme:React.useContext(ThemeContext)};var s=e.children(i);r=true;return /*#__PURE__*/React.createElement(React.Fragment,null,/*#__PURE__*/React.createElement(b,{cache:t,serializedArr:n}),s)})},25:function(e,t,r){"use strict";r.d(t,{FD:()=>p,FK:()=>f,Y:()=>d});/* import */var n=r(70);/* import */var a=r(517);/* import */var o=r(594);/* import */var i=/*#__PURE__*/r.n(o);/* import */var s=r(734);/* import */var c=r(416);/* import */var u=/*#__PURE__*/r.n(c);/* import */var l=r(35);var f=n.Fragment;var d=function e(e,t,r){if(!a.h.call(t,"css")){return n.jsx(e,t,r)}return n.jsx(a.E,(0,a.c)(e,t),r)};var p=function e(e,t,r){if(!a.h.call(t,"css")){return n.jsxs(e,t,r)}return n.jsxs(a.E,(0,a.c)(e,t),r)}},631:function(e,t,r){"use strict";// EXPORTS
r.d(t,{J:()=>/* binding */b});// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js
/* eslint-disable */// Inspired by https://github.com/garycourt/murmurhash-js
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
function n(e){// 'm' and 'r' are mixing constants generated offline.
// They're not really 'magic', they just happen to work well.
// const m = 0x5bd1e995;
// const r = 24;
// Initialize the hash
var t=0;// Mix 4 bytes at a time into the hash
var r,n=0,a=e.length;for(;a>=4;++n,a-=4){r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24;r=/* Math.imul(k, m): */(r&65535)*0x5bd1e995+((r>>>16)*59797<<16);r^=/* k >>> r: */r>>>24;t=/* Math.imul(k, m): */(r&65535)*0x5bd1e995+((r>>>16)*59797<<16)^/* Math.imul(h, m): */(t&65535)*0x5bd1e995+((t>>>16)*59797<<16)}// Handle the last few bytes of the input array
switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255;t=/* Math.imul(h, m): */(t&65535)*0x5bd1e995+((t>>>16)*59797<<16)}// Do a few final mixes of the hash to ensure the last few
// bytes are well-incorporated.
t^=t>>>13;t=/* Math.imul(h, m): */(t&65535)*0x5bd1e995+((t>>>16)*59797<<16);return((t^t>>>15)>>>0).toString(36)};// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
var a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,// SVG-related properties
fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
function o(e){var t=Object.create(null);return function(r){if(t[r]===undefined)t[r]=e(r);return t[r]}};// CONCATENATED MODULE: ./node_modules/.pnpm/@emotion+serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
var i=false;var s=/[A-Z]|^ms/g;var c=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var u=function e(e){return e.charCodeAt(1)===45};var l=function e(e){return e!=null&&typeof e!=="boolean"};var f=/* #__PURE__ */o(function(e){return u(e)?e:e.replace(s,"-$&").toLowerCase()});var d=function e(e,t){switch(e){case"animation":case"animationName":{if(typeof t==="string"){return t.replace(c,function(e,t,r){g={name:t,styles:r,next:g};return t})}}}if(a[e]!==1&&!u(e)&&typeof t==="number"&&t!==0){return t+"px"}return t};var p="Component selectors can only be used in conjunction with "+"@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware "+"compiler transform.";function h(e,t,r){if(r==null){return""}var n=r;if(n.__emotion_styles!==undefined){return n}switch(typeof r){case"boolean":{return""}case"object":{var a=r;if(a.anim===1){g={name:a.name,styles:a.styles,next:g};return a.name}var o=r;if(o.styles!==undefined){var i=o.next;if(i!==undefined){// not the most efficient thing ever but this is a pretty rare case
// and there will be very few iterations of this generally
while(i!==undefined){g={name:i.name,styles:i.styles,next:g};i=i.next}}var s=o.styles+";";return s}return v(e,t,r)}case"function":{if(e!==undefined){var c=g;var u=r(e);g=c;return h(e,t,u)}break}}// finalize string values (regular strings and functions interpolated into css calls)
var l=r;if(t==null){return l}var f=t[l];return f!==undefined?f:l}function v(e,t,r){var n="";if(Array.isArray(r)){for(var a=0;a<r.length;a++){n+=h(e,t,r[a])+";"}}else{for(var o in r){var s=r[o];if(typeof s!=="object"){var c=s;if(t!=null&&t[c]!==undefined){n+=o+"{"+t[c]+"}"}else if(l(c)){n+=f(o)+":"+d(o,c)+";"}}else{if(o==="NO_COMPONENT_SELECTOR"&&i){throw new Error(p)}if(Array.isArray(s)&&typeof s[0]==="string"&&(t==null||t[s[0]]===undefined)){for(var u=0;u<s.length;u++){if(l(s[u])){n+=f(o)+":"+d(o,s[u])+";"}}}else{var v=h(e,t,s);switch(o){case"animation":case"animationName":{n+=f(o)+":"+v+";";break}default:{n+=o+"{"+v+"}"}}}}}}return n}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;// this is the cursor for keyframes
// keyframes are stored on the SerializedStyles object as a linked list
var g;function b(e,t,r){if(e.length===1&&typeof e[0]==="object"&&e[0]!==null&&e[0].styles!==undefined){return e[0]}var a=true;var o="";g=undefined;var i=e[0];if(i==null||i.raw===undefined){a=false;o+=h(r,t,i)}else{var s=i;o+=s[0]}// we start at 1 since we've already handled the first arg
for(var c=1;c<e.length;c++){o+=h(r,t,e[c]);if(a){var u=i;o+=u[c]}}// using a global regex with .exec is stateful so lastIndex has to be reset each time
m.lastIndex=0;var l="";var f;// https://esbench.com/bench/5b809c2cf2949800a0f61fb5
while((f=m.exec(o))!==null){l+="-"+f[1]}var d=n(o)+l;return{name:d,styles:o,next:g}}},35:function(e,t,r){"use strict";r.d(t,{i:()=>c,s:()=>s});/* import */var n=r(594);/* import */var a=/*#__PURE__*/r.n(n);var o=function e(e){return e()};var i=n["useInsertion"+"Effect"]?n["useInsertion"+"Effect"]:false;var s=i||o;var c=i||n.useLayoutEffect},595:function(e,t,r){"use strict";r.d(t,{Rk:()=>a,SF:()=>o,sk:()=>i});var n=true;function a(e,t,r){var n="";r.split(" ").forEach(function(r){if(e[r]!==undefined){t.push(e[r]+";")}else if(r){n+=r+" "}});return n}var o=function e(e,t,r){var a=e.key+"-"+t.name;if(// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(r===false||// we need to always store it if we're in compat mode and
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
n===false)&&e.registered[a]===undefined){e.registered[a]=t.styles}};var i=function e(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===undefined){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,true);a=a.next}while(a!==undefined)}}},287:function(e){!function(t,r){true?e.exports=r():0}(this,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",o="minute",i="hour",s="day",c="week",u="month",l="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},b={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,u),o=r-a<0,i=t.clone().add(n+(o?-1:1),u);return+(-(n+(r-a)/(o?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:u,y:f,w:c,d:s,D:d,h:i,m:o,s:a,ms:n,Q:l})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",_={};_[y]=m;var x="$isDayjsObject",w=function(e){return e instanceof O||!(!e||!e[x])},k=function e(t,r,n){var a;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(a=o),r&&(_[o]=r,a=o);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var s=t.name;_[s]=t,a=s}return!n&&a&&(y=a),a||!n&&y},A=function(e,t){if(w(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new O(r)},E=b;E.l=k,E.i=w,E.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var a=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var r=A(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return A(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<A(e)},g.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,n=!!E.u(t)||t,l=E.p(e),p=function(e,t){var a=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(s)},h=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},v=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case f:return n?p(1,0):p(31,11);case u:return n?p(1,m):p(0,m+1);case c:var y=this.$locale().weekStart||0,_=(v<y?v+7:v)-y;return p(n?g-_:g+(6-_),m);case s:case d:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case a:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var r,c=E.p(e),l="set"+(this.$u?"UTC":""),p=(r={},r[s]=l+"Date",r[d]=l+"Date",r[u]=l+"Month",r[f]=l+"FullYear",r[i]=l+"Hours",r[o]=l+"Minutes",r[a]=l+"Seconds",r[n]=l+"Milliseconds",r)[c],h=c===s?this.$D+(t-this.$W):t;if(c===u||c===f){var v=this.clone().set(d,1);v.$d[p](h),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(n,l){var d,p=this;n=Number(n);var h=E.p(l),v=function(e){var t=A(p);return E.w(t.date(t.date()+Math.round(e*n)),p)};if(h===u)return this.set(u,this.$M+n);if(h===f)return this.set(f,this.$y+n);if(h===s)return v(1);if(h===c)return v(7);var m=(d={},d[o]=t,d[i]=r,d[a]=e,d)[h]||1,g=this.$d.getTime()+n*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=E.z(this),o=this.$H,i=this.$m,s=this.$M,c=r.weekdays,u=r.months,l=r.meridiem,f=function(e,r,a,o){return e&&(e[r]||e(t,n))||a[r].slice(0,o)},d=function(e){return E.s(o%12||12,e,"0")},h=l||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(v,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,u,3);case"MMMM":return f(u,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,c,2);case"ddd":return f(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return h(o,i,!0);case"A":return h(o,i,!1);case"m":return String(i);case"mm":return E.s(i,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,p){var h,v=this,m=E.p(d),g=A(n),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,_=function(){return E.m(v,g)};switch(m){case f:h=_()/12;break;case u:h=_();break;case l:h=_()/3;break;case c:h=(y-b)/6048e5;break;case s:h=(y-b)/864e5;break;case i:h=y/r;break;case o:h=y/t;break;case a:h=y/e;break;default:h=y}return p?h:E.a(h)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=k(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=O.prototype;return A.prototype=S,[["$ms",n],["$s",a],["$m",o],["$H",i],["$W",s],["$M",u],["$y",f],["$D",d]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),A.extend=function(e,t){return e.$i||(e(t,O,A),e.$i=!0),A},A.locale=k,A.isDayjs=w,A.unix=function(e){return A(1e3*e)},A.en=_[y],A.Ls=_,A.p={},A})},416:function(e,t,r){"use strict";var n=r(959);/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */var a={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var o={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var i={"$$typeof":true,render:true,defaultProps:true,displayName:true,propTypes:true};var s={"$$typeof":true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var c={};c[n.ForwardRef]=i;c[n.Memo]=s;function u(e){// React v16.11 and below
if(n.isMemo(e)){return s}// React v16.12 and above
return c[e["$$typeof"]]||a}var l=Object.defineProperty;var f=Object.getOwnPropertyNames;var d=Object.getOwnPropertySymbols;var p=Object.getOwnPropertyDescriptor;var h=Object.getPrototypeOf;var v=Object.prototype;function m(e,t,r){if(typeof t!=="string"){// don't hoist over string (html) components
if(v){var n=h(t);if(n&&n!==v){m(e,n,r)}}var a=f(t);if(d){a=a.concat(d(t))}var i=u(e);var s=u(t);for(var c=0;c<a.length;++c){var g=a[c];if(!o[g]&&!(r&&r[g])&&!(s&&s[g])&&!(i&&i[g])){var b=p(t,g);try{// Avoid failures from read-only properties
l(e,g,b)}catch(e){}}}}return e}e.exports=m},576:function(e,t,r){"use strict";var n=r(206);if(true){t.createRoot=n.createRoot;t.hydrateRoot=n.hydrateRoot}else{var a}},843:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case f:case o:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof,e){case u:case d:case m:case v:case c:return e;default:return t}}case a:return t}}}function w(e){return x(e)===f}t.AsyncMode=l;t.ConcurrentMode=f;t.ContextConsumer=u;t.ContextProvider=c;t.Element=n;t.ForwardRef=d;t.Fragment=o;t.Lazy=m;t.Memo=v;t.Portal=a;t.Profiler=s;t.StrictMode=i;t.Suspense=p;t.isAsyncMode=function(e){return w(e)||x(e)===l};t.isConcurrentMode=w;t.isContextConsumer=function(e){return x(e)===u};t.isContextProvider=function(e){return x(e)===c};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n};t.isForwardRef=function(e){return x(e)===d};t.isFragment=function(e){return x(e)===o};t.isLazy=function(e){return x(e)===m};t.isMemo=function(e){return x(e)===v};t.isPortal=function(e){return x(e)===a};t.isProfiler=function(e){return x(e)===s};t.isStrictMode=function(e){return x(e)===i};t.isSuspense=function(e){return x(e)===p};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===i||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===g)};t.typeOf=x},959:function(e,t,r){"use strict";if(true){e.exports=r(843)}else{}},462:function(e,t,r){"use strict";/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(594),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,o={},u=null,l=null;void 0!==r&&(u=""+r);void 0!==t.key&&(u=""+t.key);void 0!==t.ref&&(l=t.ref);for(n in t)i.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:l,props:o,_owner:s.current}}t.Fragment=o;t.jsx=u;t.jsxs=u},70:function(e,t,r){"use strict";if(true){e.exports=r(462)}else{}},234:function(e,t){/*!
 * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
 *
 * Copyright 2014 Trevor Parscal
 * Copyright 2010 Roan Kattouw
 * Copyright 2008 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var r;/**
 * Create a tokenizer object.
 *
 * This utility class is used by CSSJanus to protect strings by replacing them temporarily with
 * tokens and later transforming them back.
 *
 * @class
 * @constructor
 * @param {RegExp} regex Regular expression whose matches to replace by a token
 * @param {string} token Placeholder text
 */function n(e,t){var r=[],n=0;/**
	 * Add a match.
	 *
	 * @private
	 * @param {string} match Matched string
	 * @return {string} Token to leave in the matched string's place
	 */function a(e){r.push(e);return t}/**
	 * Get a match.
	 *
	 * @private
	 * @return {string} Original matched string to restore
	 */function o(){return r[n++]}return{/**
		 * Replace matching strings with tokens.
		 *
		 * @param {string} str String to tokenize
		 * @return {string} Tokenized string
		 */tokenize:function(t){return t.replace(e,a)},/**
		 * Restores tokens to their original values.
		 *
		 * @param {string} str String previously run through tokenize()
		 * @return {string} Original string
		 */detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),o)}}}/**
 * Create a CSSJanus object.
 *
 * CSSJanus transforms CSS rules with horizontal relevance so that a left-to-right stylesheet can
 * become a right-to-left stylesheet automatically. Processing can be bypassed for an entire rule
 * or a single property by adding a / * @noflip * / comment above the rule or property.
 *
 * @class
 * @constructor
 */function a(){var // Tokens
e="`TMP`",t="`TMPLTR`",r="`TMPRTL`",a="`NOFLIP_SINGLE`",o="`NOFLIP_CLASS`",i="`COMMENT`",// Patterns
s="[^\\u0020-\\u007e]",c="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",u="(?:[0-9]*\\.[0-9]+|[0-9]+)",l="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",f="direction\\s*:\\s*",d="[!#$%&*-~]",p="['\"]?\\s*",h="(^|[^a-zA-Z])",v="[^\\}]*?",m="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",g="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",b="(?:"+c+"|\\\\[^\\r\\n\\f0-9a-f])",y="(?:[_a-z]|"+s+"|"+b+")",_="(?:[_a-z0-9-]|"+s+"|"+b+")",x="-?"+y+_+"*",w=u+"(?:\\s*"+l+"|"+x+")?",k="((?:-?"+w+")|(?:inherit|auto))",A="(?:-?"+u+"(?:\\s*"+l+")?)",E="(?:\\+|\\-|\\*|\\/)",O="(?:\\(|\\)|\\t| )",S="(?:"+O+"|"+A+"|"+E+"){3,}",I="(?:calc\\((?:"+S+")\\))",M="((?:-?"+w+")|(?:inherit|auto)|"+I+")",C="((?:margin|padding|border-width)\\s*:\\s*)",T="((?:-color|border-style)\\s*:\\s*)",Y="(#?"+_+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",// The use of a lazy match ("*?") may cause a backtrack limit to be exceeded before finding
// the intended match. This affects 'urlCharsPattern' and 'lookAheadNotOpenBracePattern'.
// We have not yet found this problem on Node.js, but we have on PHP 7, where it was
// mitigated by using a possessive quantifier ("*+"), which are not supported in JS.
// See <https://phabricator.wikimedia.org/T215746#4944830>.
R="(?:"+d+"|"+s+"|"+b+")*?",D="(?![a-zA-Z])",P="(?!("+_+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+i+")*?{)",$="(?!"+R+p+"\\))",F="(?="+R+p+"\\))",H="(\\s*(?:!important\\s*)?[;}])",// Regular expressions
N=/`TMP`/g,z=/`TMPLTR`/g,j=/`TMPRTL`/g,L=new RegExp(g,"gi"),U=new RegExp("("+m+P+"[^;}]+;?)","gi"),B=new RegExp("("+m+v+"})","gi"),K=new RegExp("("+f+")ltr","gi"),W=new RegExp("("+f+")rtl","gi"),V=new RegExp(h+"(left)"+D+$+P,"gi"),q=new RegExp(h+"(right)"+D+$+P,"gi"),G=new RegExp(h+"(left)"+F,"gi"),Q=new RegExp(h+"(right)"+F,"gi"),J=/(:dir\( *)ltr( *\))/g,X=/(:dir\( *)rtl( *\))/g,Z=new RegExp(h+"(ltr)"+F,"gi"),ee=new RegExp(h+"(rtl)"+F,"gi"),et=new RegExp(h+"([ns]?)e-resize","gi"),er=new RegExp(h+"([ns]?)w-resize","gi"),en=new RegExp(C+M+"(\\s+)"+M+"(\\s+)"+M+"(\\s+)"+M+H,"gi"),ea=new RegExp(T+Y+"(\\s+)"+Y+"(\\s+)"+Y+"(\\s+)"+Y+H,"gi"),eo=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+w+")","gi"),ei=new RegExp("(background-position-x\\s*:\\s*)(-?"+u+"%)","gi"),// border-radius: <length or percentage>{1,4} [optional: / <length or percentage>{1,4} ]
es=new RegExp("(border-radius\\s*:\\s*)"+k+"(?:(?:\\s+"+k+")(?:\\s+"+k+")?(?:\\s+"+k+")?)?"+"(?:(?:(?:\\s*\\/\\s*)"+k+")(?:\\s+"+k+")?(?:\\s+"+k+")?(?:\\s+"+k+")?)?"+H,"gi"),ec=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+k,"gi"),eu=new RegExp("(text-shadow\\s*:\\s*)"+k+"(\\s*)"+Y,"gi"),el=new RegExp("(text-shadow\\s*:\\s*)"+Y+"(\\s*)"+k,"gi"),ef=new RegExp("(text-shadow\\s*:\\s*)"+k,"gi"),ed=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+k+"(\\s*\\))","gi"),ep=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+k+"((?:\\s*,\\s*"+k+"){0,2}\\s*\\))","gi");/**
	 * Invert the horizontal value of a background position property.
	 *
	 * @private
	 * @param {string} match Matched property
	 * @param {string} pre Text before value
	 * @param {string} value Horizontal value
	 * @return {string} Inverted property
	 */function eh(e,t,r){var n,a;if(r.slice(-1)==="%"){n=r.indexOf(".");if(n!==-1){// Two off, one for the "%" at the end, one for the dot itself
a=r.length-n-2;r=100-parseFloat(r);r=r.toFixed(a)+"%"}else{r=100-parseFloat(r)+"%"}}return t+r}/**
	 * Invert a set of border radius values.
	 *
	 * @private
	 * @param {Array} values Matched values
	 * @return {string} Inverted values
	 */function ev(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]];break}return e.join(" ")}/**
	 * Invert a set of border radius values.
	 *
	 * @private
	 * @param {string} match Matched property
	 * @param {string} pre Text before value
	 * @param {string} [firstGroup1]
	 * @param {string} [firstGroup2]
	 * @param {string} [firstGroup3]
	 * @param {string} [firstGroup4]
	 * @param {string} [secondGroup1]
	 * @param {string} [secondGroup2]
	 * @param {string} [secondGroup3]
	 * @param {string} [secondGroup4]
	 * @param {string} [post] Text after value
	 * @return {string} Inverted property
	 */function em(e,t){var r,n=[].slice.call(arguments),a=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";if(o.length){r=ev(a)+" / "+ev(o)}else{r=ev(a)}return t+r+i}/**
	 * Flip the sign of a CSS value, possibly with a unit.
	 *
	 * We can't just negate the value with unary minus due to the units.
	 *
	 * @private
	 * @param {string} value
	 * @return {string}
	 */function eg(e){if(parseFloat(e)===0){// Don't mangle zeroes
return e}if(e[0]==="-"){return e.slice(1)}return"-"+e}/**
	 * @private
	 * @param {string} match
	 * @param {string} property
	 * @param {string} offset
	 * @return {string}
	 */function eb(e,t,r){return t+eg(r)}/**
	 * @private
	 * @param {string} match
	 * @param {string} property
	 * @param {string} prefix
	 * @param {string} offset
	 * @param {string} suffix
	 * @return {string}
	 */function ey(e,t,r,n,a){return t+r+eg(n)+a}/**
	 * @private
	 * @param {string} match
	 * @param {string} property
	 * @param {string} color
	 * @param {string} space
	 * @param {string} offset
	 * @return {string}
	 */function e_(e,t,r,n,a){return t+r+n+eg(a)}return{/**
		 * Transform a left-to-right stylesheet to right-to-left.
		 *
		 * @param {string} css Stylesheet to transform
		 * @param {Object} options Options
		 * @param {boolean} [options.transformDirInUrl=false] Transform directions in URLs
		 * (e.g. 'ltr', 'rtl')
		 * @param {boolean} [options.transformEdgeInUrl=false] Transform edges in URLs
		 * (e.g. 'left', 'right')
		 * @return {string} Transformed stylesheet
		 */"transform":function(s,c){// Use single quotes in this object literal key for closure compiler.
// Tokenizers
var u=new n(U,a),l=new n(B,o),f=new n(L,i);// Tokenize
s=f.tokenize(l.tokenize(u.tokenize(// We wrap tokens in ` , not ~ like the original implementation does.
// This was done because ` is not a legal character in CSS and can only
// occur in URLs, where we escape it to %60 before inserting our tokens.
s.replace("`","%60"))));// Transform URLs
if(c.transformDirInUrl){// Replace 'ltr' with 'rtl' and vice versa in background URLs
s=s.replace(J,"$1"+t+"$2").replace(X,"$1"+r+"$2").replace(Z,"$1"+e).replace(ee,"$1ltr").replace(N,"rtl").replace(z,"ltr").replace(j,"rtl")}if(c.transformEdgeInUrl){// Replace 'left' with 'right' and vice versa in background URLs
s=s.replace(G,"$1"+e).replace(Q,"$1left").replace(N,"right")}// Transform rules
s=s// Replace direction: ltr; with direction: rtl; and vice versa.
.replace(K,"$1"+e).replace(W,"$1ltr").replace(N,"rtl")// Flip rules like left: , padding-right: , etc.
.replace(V,"$1"+e).replace(q,"$1left").replace(N,"right")// Flip East and West in rules like cursor: nw-resize;
.replace(et,"$1$2"+e).replace(er,"$1$2e-resize").replace(N,"w-resize")// Border radius
.replace(es,em)// Shadows
.replace(ec,eb).replace(eu,e_).replace(el,e_).replace(ef,eb)// Translate
.replace(ed,ey).replace(ep,ey)// Swap the second and fourth parts in four-part notation rules
// like padding: 1px 2px 3px 4px;
.replace(en,"$1$2$3$8$5$6$7$4$9").replace(ea,"$1$2$3$8$5$6$7$4$9")// Flip horizontal background percentages
.replace(eo,eh).replace(ei,eh);// Detokenize
s=u.detokenize(l.detokenize(f.detokenize(s)));return s}}}/* Initialization */r=new a;/* Exports */if(true&&e.exports){/**
	 * Transform a left-to-right stylesheet to right-to-left.
	 *
	 * This function is a static wrapper around the transform method of an instance of CSSJanus.
	 *
	 * @param {string} css Stylesheet to transform
	 * @param {Object|boolean} [options] Options object, or transformDirInUrl option (back-compat)
	 * @param {boolean} [options.transformDirInUrl=false] Transform directions in URLs
	 * (e.g. 'ltr', 'rtl')
	 * @param {boolean} [options.transformEdgeInUrl=false] Transform edges in URLs
	 * (e.g. 'left', 'right')
	 * @param {boolean} [transformEdgeInUrl] Back-compat parameter
	 * @return {string} Transformed stylesheet
	 */t.transform=function(e,t,n){var a;if(typeof t==="object"){a=t}else{a={};if(typeof t==="boolean"){a.transformDirInUrl=t}if(typeof n==="boolean"){a.transformEdgeInUrl=n}}return r.transform(e,a)}}else if(typeof window!=="undefined"){/* global window */// Allow cssjanus to be used in a browser.
// eslint-disable-next-line dot-notation
window["cssjanus"]=r}},485:function(e,t,r){"use strict";r.d(t,{A:()=>g});/* import */var n=r(33);/* import */var a=r(303);/* import */var o=r(473);/* import */var i=r(690);/* import */var s=r(25);/* import */var c=r(594);/* import */var u=/*#__PURE__*/r.n(c);/* import */var l=r(757);/* import */var f=r(336);/* import */var d=r(612);function p(){var e=(0,i._)(["\n      filter: grayscale(100%);\n    "]);p=function t(){return e};return e}var h={};var v=e=>{var{name:t,width:r=16,height:i=16,style:u,isColorIcon:l=false,ignoreKids:f}=e,p=(0,o._)(e,["name","width","height","style","isColorIcon","ignoreKids"]);var v,g;var{supportKidsIcon:y}=(0,d/* .useSVGIconConfig */.J)();var _=f!==null&&f!==void 0?f:!y;var x=_?"".concat(t,"-ignoreKids"):t;var[w,k]=(0,c.useState)(((v=h[x])===null||v===void 0?void 0:v.icon)||null);var[A,E]=(0,c.useState)(!((g=h[x])===null||g===void 0?void 0:g.icon));(0,c.useEffect)(()=>{var e;if((e=h[x])===null||e===void 0?void 0:e.icon){k(h[x].icon);E(false);return}E(true);m(t,x,r,i,_).then(e=>{k(e)}).catch(()=>{k(null)}).finally(()=>{E(false)})},[t,r,i,_,x]);var O=(0,n._)({},l&&{"data-colorize":true},p);var S=w?w.viewBox:"0 0 ".concat(r," ").concat(i);var I=w?w.fill:"none";if(!w&&!A){return/*#__PURE__*/(0,s/* .jsx */.Y)("svg",{viewBox:S,children:/*#__PURE__*/(0,s/* .jsx */.Y)("rect",{width:r,height:i,fill:"transparent"})})}return/*#__PURE__*/(0,s/* .jsx */.Y)("svg",(0,a._)((0,n._)({css:[u,{width:r,height:i},b.svg({isColorIcon:l})],xmlns:"http://www.w3.org/2000/svg",viewBox:S,fill:I},O),{role:"presentation","aria-hidden":true,dangerouslySetInnerHTML:{__html:w?w.icon:""}}))};function m(e,t,r,n,a){var o,i,s;if((o=h[t])===null||o===void 0?void 0:o.icon){// Icon already loaded
return Promise.resolve(h[t].icon)}if((i=h[t])===null||i===void 0?void 0:i.promise){// Fetch already in progress, return existing promise
return h[t].promise}var c=e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([a-zA-Z])(\d+)/g,"$1-$2").toLowerCase();var u=!a&&f/* .tutorConfig.is_kids_mode */.P.is_kids_mode&&((s=f/* .tutorConfig.kids_icons_registry */.P.kids_icons_registry)===null||s===void 0?void 0:s.includes(c));var l=u?"assets/icons/kids/":"assets/icons/";var d="".concat(f/* .tutorConfig.tutor_url */.P.tutor_url).concat(l).concat(c,".svg");var p=fetch(d).then(t=>{if(!t.ok){throw new Error("Failed to load icon: ".concat(e))}return t.text()}).then(e=>{var a=new DOMParser;var o=a.parseFromString(e,"image/svg+xml");var i=o.querySelector("svg");var s=(i===null||i===void 0?void 0:i.getAttribute("viewBox"))||"0 0 ".concat(r," ").concat(n);var c=(i===null||i===void 0?void 0:i.getAttribute("fill"))||"none";var u=(i===null||i===void 0?void 0:i.innerHTML)||"";var l={viewBox:s,fill:c,icon:u};h[t]={icon:l};return l}).catch(e=>{h[t]={error:e};throw e});h[t]={loading:true,promise:p};return p}v.displayName="SVGIcon";/* export default */const g=/*#__PURE__*/(0,c.memo)(v,(e,t)=>{var r,n;return e.name===t.name&&e.height===t.height&&e.width===t.width&&e.isColorIcon===t.isColorIcon&&e.ignoreKids===t.ignoreKids&&((r=e.style)===null||r===void 0?void 0:r.name)===((n=t.style)===null||n===void 0?void 0:n.name)});var b={svg:e=>{var{isColorIcon:t=false}=e;return/*#__PURE__*/(0,l/* .css */.AH)("transition:filter 0.3s ease-in-out;",t&&(0,l/* .css */.AH)(p()),";")}}},735:function(e,t,r){"use strict";// EXPORTS
r.d(t,{A:()=>/* binding */D});// EXTERNAL MODULE: ./node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.1_react@18.3.1/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js
var n=r(25);// EXTERNAL MODULE: external "React"
var a=r(594);var o=/*#__PURE__*/r.n(a);// EXTERNAL MODULE: ./node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.1_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js
var i=r(757);// EXTERNAL MODULE: external "wp.i18n"
var s=r(470);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread.js + 1 modules
var c=r(33);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread_props.js
var u=r(303);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_without_properties.js + 1 modules
var l=r(473);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_tagged_template_literal.js
var f=r(690);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/atoms/SVGIcon.tsx
var d=r(485);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/styles.ts
var p=r(764);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/typography.ts
var h=r(983);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/types.ts
var v=r(638);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/util.ts + 4 modules
var m=r(927);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/utils/create-variation.ts
var g=(e,t)=>{return r=>{var{variants:n,defaultVariants:a}=e;var o=[];if((0,v/* .isDefined */.O9)(t)){o.push(t)}var i=(0,m/* .getObjectKeys */.Co)(n).map(e=>{var t=r[e];var o=a[e];if(t===null){return null}var i=t||o;return n[e][i]});o.push(...i.filter(v/* .isDefined */.O9));return o}};// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/style-utils.ts
var b=r(958);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/atoms/Button.tsx
function y(){var e=(0,f._)(["\n      color: transparent;\n    "]);y=function t(){return e};return e}function _(){var e=(0,f._)(["\n      margin-right: 0;\n      margin-left: ",";\n    "]);_=function t(){return e};return e}function x(){var e=(0,f._)(["\n      opacity: 0;\n    "]);x=function t(){return e};return e}function w(){var e=(0,f._)(["\n      margin-inline: 0;\n    "]);w=function t(){return e};return e}var k=/*#__PURE__*/o().forwardRef((e,t)=>{var{variant:r="primary",isOutlined:a=false,size:o="regular",loading:i=false,children:s,disabled:f=false,icon:p,iconPosition:h="left",buttonCss:v,buttonContentCss:m,as:g="button",tabIndex:b,isIconOnly:y=false}=e,_=(0,l._)(e,["variant","isOutlined","size","loading","children","disabled","icon","iconPosition","buttonCss","buttonContentCss","as","tabIndex","isIconOnly"]);var x=[I({variant:r,outlined:a?r:"none",size:o,isLoading:i?"true":"false",iconOnly:y?"true":"false"}),v];var w=/*#__PURE__*/(0,n/* .jsxs */.FD)(n/* .Fragment */.FK,{children:[i&&!f&&/*#__PURE__*/(0,n/* .jsx */.Y)("span",{css:S.spinner,children:/*#__PURE__*/(0,n/* .jsx */.Y)(d/* ["default"] */.A,{name:"spinner",width:18,height:18})}),/*#__PURE__*/(0,n/* .jsxs */.FD)("span",{css:[S.buttonContent({loading:i,disabled:f}),m],children:[p&&h==="left"&&/*#__PURE__*/(0,n/* .jsx */.Y)("span",{css:S.buttonIcon({iconPosition:h,loading:i,hasChildren:!!s}),children:p}),s,p&&h==="right"&&/*#__PURE__*/(0,n/* .jsx */.Y)("span",{css:S.buttonIcon({iconPosition:h,loading:i,hasChildren:!!s}),children:p})]})]});if(g==="a"){var{href:k,target:A,rel:E,download:O,onClick:M}=_,C=(0,l._)(_,["href","target","rel","download","onClick"]);// Auto-add security attributes for external links
var T=typeof k==="string"&&(k.startsWith("http")||k.startsWith("//"));var Y=A==="_blank"&&T?"".concat(E?"".concat(E," "):"","noopener noreferrer"):E;return/*#__PURE__*/(0,n/* .jsx */.Y)("a",(0,u._)((0,c._)({ref:t,css:x,href:f||i?undefined:k,target:f||i?undefined:A,rel:Y,download:f||i?undefined:O,tabIndex:f||i?-1:b,"aria-disabled":f||i,onClick:f||i?e=>e.preventDefault():M,role:"button","data-size":o},C),{children:w}))}var{type:R="button",onClick:D,form:P,name:$,value:F}=_,H=(0,l._)(_,["type","onClick","form","name","value"]);return/*#__PURE__*/(0,n/* .jsx */.Y)("button",(0,u._)((0,c._)({ref:t,type:R,css:x,disabled:f||i,tabIndex:b,onClick:D,form:P,name:$,value:F,"data-size":o},H),{children:w}))});k.displayName="Button";/* export default */const A=k;var E=/*#__PURE__*/(0,i/* .keyframes */.i7)("0%{transform:rotate(0);}100%{transform:rotate(360deg);}");var O={notOutlined:/*#__PURE__*/(0,i/* .css */.AH)("&:disabled,&[aria-disabled='true']{background-color:",p/* .colorTokens.action.primary.disable */.I6.action.primary.disable,";color:",p/* .colorTokens.text.disable */.I6.text.disable,";svg{color:",p/* .colorTokens.icon.disable["default"] */.I6.icon.disable["default"],";}}"),outlined:/*#__PURE__*/(0,i/* .css */.AH)("&:disabled,&[aria-disabled='true']{background-color:transparent;border:none;box-shadow:inset 0px 0px 0px 1px ",p/* .colorTokens.action.outline.disable */.I6.action.outline.disable,";color:",p/* .colorTokens.text.disable */.I6.text.disable,";svg{color:",p/* .colorTokens.icon.disable["default"] */.I6.icon.disable["default"],";}}"),text:/*#__PURE__*/(0,i/* .css */.AH)("&:disabled,&[aria-disabled='true']{color:",p/* .colorTokens.text.disable */.I6.text.disable,";svg{color:",p/* .colorTokens.icon.disable["default"] */.I6.icon.disable["default"],";}}")};var S={base:/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.resetButton */.x.resetButton,";",b/* .styleUtils.display.inlineFlex */.x.display.inlineFlex(),";justify-content:center;align-items:center;",h/* .typography.caption */.I.caption("medium"),";",b/* .styleUtils.text.align.center */.x.text.align.center,";color:",p/* .colorTokens.text.white */.I6.text.white,";text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:0;padding:",p/* .spacing["8"] */.YK["8"]," ",p/* .spacing["32"] */.YK["32"],";border-radius:",p/* .borderRadius["6"] */.Vq["6"],";z-index:",p/* .zIndex.level */.fE.level,";transition:all 150ms ease-in-out;position:relative;svg{color:",p/* .colorTokens.icon.white */.I6.icon.white,";}&:disabled,&[aria-disabled='true']{cursor:not-allowed;}&:not(:disabled):not([aria-disabled='true']){&:focus{box-shadow:",p/* .shadow.focus */.r7.focus,";}&:focus-visible{box-shadow:none;outline:2px solid ",p/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;}}"),variant:{primary:/*#__PURE__*/(0,i/* .css */.AH)("background-color:",p/* .colorTokens.action.primary["default"] */.I6.action.primary["default"],";",O.notOutlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{color:",p/* .colorTokens.text.white */.I6.text.white,";background-color:",p/* .colorTokens.action.primary.hover */.I6.action.primary.hover,";}&:active{background-color:",p/* .colorTokens.action.primary.active */.I6.action.primary.active,";color:",p/* .colorTokens.text.white */.I6.text.white,";svg{color:",p/* .colorTokens.icon.white */.I6.icon.white,";}}}"),secondary:/*#__PURE__*/(0,i/* .css */.AH)("background-color:",p/* .colorTokens.action.secondary["default"] */.I6.action.secondary["default"],";color:",p/* .colorTokens.text.brand */.I6.text.brand,";svg{color:",p/* .colorTokens.icon.brand */.I6.icon.brand,";}",O.notOutlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.action.secondary.hover */.I6.action.secondary.hover,";color:",p/* .colorTokens.text.brand */.I6.text.brand,";}&:active{background-color:",p/* .colorTokens.action.secondary.active */.I6.action.secondary.active,";color:",p/* .colorTokens.text.brand */.I6.text.brand,";}}"),tertiary:/*#__PURE__*/(0,i/* .css */.AH)("box-shadow:inset 0px 0px 0px 1px ",p/* .colorTokens.stroke["default"] */.I6.stroke["default"],";color:",p/* .colorTokens.text.subdued */.I6.text.subdued,";svg{color:",p/* .colorTokens.icon.hints */.I6.icon.hints,";}",O.outlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.background.hover */.I6.background.hover,";box-shadow:inset 0px 0px 0px 1px ",p/* .colorTokens.stroke.hover */.I6.stroke.hover,";color:",p/* .colorTokens.text.title */.I6.text.title,";svg{color:",p/* .colorTokens.icon.brand */.I6.icon.brand,";}}&:active{background-color:",p/* .colorTokens.background.active */.I6.background.active,";svg{color:",p/* .colorTokens.icon.hints */.I6.icon.hints,";}}}"),danger:/*#__PURE__*/(0,i/* .css */.AH)("background-color:",p/* .colorTokens.background.status.errorFail */.I6.background.status.errorFail,";color:",p/* .colorTokens.text.error */.I6.text.error,";svg{color:",p/* .colorTokens.icon.error */.I6.icon.error,";}",O.notOutlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus,&:active{background-color:",p/* .colorTokens.background.status.errorFail */.I6.background.status.errorFail,";color:",p/* .colorTokens.text.error */.I6.text.error,";}}"),WP:/*#__PURE__*/(0,i/* .css */.AH)("background-color:",p/* .colorTokens.action.primary.wp */.I6.action.primary.wp,";",O.notOutlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.action.primary.wp_hover */.I6.action.primary.wp_hover,";color:",p/* .colorTokens.text.white */.I6.text.white,";}&:active{background-color:",p/* .colorTokens.action.primary.wp */.I6.action.primary.wp,";}}"),text:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;color:",p/* .colorTokens.text.subdued */.I6.text.subdued,";padding:",p/* .spacing["8"] */.YK["8"],";svg{color:",p/* .colorTokens.icon.hints */.I6.icon.hints,";}",O.text,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:transparent;color:",p/* .colorTokens.text.brand */.I6.text.brand,";svg{color:",p/* .colorTokens.icon.brand */.I6.icon.brand,";}}&:active{background-color:transparent;color:",p/* .colorTokens.text.subdued */.I6.text.subdued,";}}")},outlined:{primary:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;box-shadow:inset 0px 0px 0px 1px ",p/* .colorTokens.stroke.brand */.I6.stroke.brand,";color:",p/* .colorTokens.text.brand */.I6.text.brand,";svg{color:",p/* .colorTokens.icon.brand */.I6.icon.brand,";}",O.outlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{color:",p/* .colorTokens.text.white */.I6.text.white,";svg{color:",p/* .colorTokens.icon.white */.I6.icon.white,";}}}"),secondary:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;box-shadow:inset 0px 0px 0px 1px ",p/* .colorTokens.stroke.brand */.I6.stroke.brand,";color:",p/* .colorTokens.text.brand */.I6.text.brand,";svg{color:",p/* .colorTokens.icon.brand */.I6.icon.brand,";}",O.outlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.action.secondary.hover */.I6.action.secondary.hover,";}}"),tertiary:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;",O.outlined,";"),danger:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;border:1px solid ",p/* .colorTokens.stroke.danger */.I6.stroke.danger,";",O.outlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.background.status.errorFail */.I6.background.status.errorFail,";}}"),WP:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;border:1px solid ",p/* .colorTokens.action.primary.wp */.I6.action.primary.wp,";color:",p/* .colorTokens.action.primary.wp */.I6.action.primary.wp,";svg{color:",p/* .colorTokens.icon.wp */.I6.icon.wp,";}",O.outlined,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{background-color:",p/* .colorTokens.action.primary.wp_hover */.I6.action.primary.wp_hover,";color:",p/* .colorTokens.text.white */.I6.text.white,";svg{color:",p/* .colorTokens.icon.white */.I6.icon.white,";}}}"),text:/*#__PURE__*/(0,i/* .css */.AH)("background-color:transparent;border:none;color:",p/* .colorTokens.text.primary */.I6.text.primary,";",O.text,";&:not(:disabled):not([aria-disabled='true']){&:hover,&:focus{color:",p/* .colorTokens.text.brand */.I6.text.brand,";}}"),none:/*#__PURE__*/(0,i/* .css */.AH)()},size:{regular:/*#__PURE__*/(0,i/* .css */.AH)("padding:",p/* .spacing["8"] */.YK["8"]," ",p/* .spacing["32"] */.YK["32"],";",h/* .typography.caption */.I.caption("medium"),";color:",p/* .colorTokens.text.white */.I6.text.white,";min-height:40px;"),large:/*#__PURE__*/(0,i/* .css */.AH)("padding:",p/* .spacing["12"] */.YK["12"]," ",p/* .spacing["40"] */.YK["40"],";",h/* .typography.body */.I.body("medium"),";color:",p/* .colorTokens.text.white */.I6.text.white,";min-height:48px;"),small:/*#__PURE__*/(0,i/* .css */.AH)("padding:",p/* .spacing["6"] */.YK["6"]," ",p/* .spacing["16"] */.YK["16"],";",h/* .typography.small */.I.small("medium"),";color:",p/* .colorTokens.text.white */.I6.text.white,";min-height:32px;")},isIconOnly:{true:/*#__PURE__*/(0,i/* .css */.AH)("aspect-ratio:1 / 1;&[data-size='regular']{padding:",p/* .spacing["8"] */.YK["8"],";width:40px;}&[data-size='large']{padding:",p/* .spacing["12"] */.YK["12"],";width:48px;}&[data-size='small']{padding:",p/* .spacing["6"] */.YK["6"],";width:32px;}"),false:/*#__PURE__*/(0,i/* .css */.AH)()},isLoading:{true:/*#__PURE__*/(0,i/* .css */.AH)("opacity:0.8;cursor:wait;"),false:/*#__PURE__*/(0,i/* .css */.AH)()},iconWrapper:{left:/*#__PURE__*/(0,i/* .css */.AH)("order:-1;"),right:/*#__PURE__*/(0,i/* .css */.AH)("order:1;")},buttonContent:e=>{var{loading:t,disabled:r,isIconOnly:n}=e;return/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.display.flex */.x.display.flex(),";align-items:center;",n&&"justify-content: center;"," ",t&&!r&&(0,i/* .css */.AH)(y()))},buttonIcon:e=>{var{iconPosition:t,loading:r,hasChildren:n=true}=e;return/*#__PURE__*/(0,i/* .css */.AH)("display:grid;place-items:center;margin-right:",p/* .spacing["4"] */.YK["4"],";",t==="right"&&(0,i/* .css */.AH)(_(),p/* .spacing["4"] */.YK["4"])," ",r&&(0,i/* .css */.AH)(x())," ",!n&&(0,i/* .css */.AH)(w()))},spinner:/*#__PURE__*/(0,i/* .css */.AH)("position:absolute;visibility:visible;display:flex;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);& svg{animation:",E," 1s linear infinite;}")};var I=g({variants:{size:{regular:S.size.regular,large:S.size.large,small:S.size.small},isLoading:{true:S.isLoading.true,false:S.isLoading.false},iconOnly:{true:S.isIconOnly.true,false:S.isIconOnly.false},variant:{primary:S.variant.primary,secondary:S.variant.secondary,tertiary:S.variant.tertiary,danger:S.variant.danger,WP:S.variant.WP,text:S.variant.text},outlined:{primary:S.outlined.primary,secondary:S.outlined.secondary,tertiary:S.outlined.tertiary,danger:S.outlined.danger,WP:S.outlined.WP,text:S.outlined.text,none:S.outlined.none}},defaultVariants:{variant:"primary",outlined:"none",size:"regular",isLoading:"false",iconOnly:"false"}},S.base);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/config.ts
var M=r(336);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/controls/Show.tsx
var C=r(406);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/public/images/production-error.webp
const T=r.p+"images/production-error-24158233.webp";// CONCATENATED MODULE: ../tutor/assets/src/js/v3/public/images/production-error-2x.webp
const Y=r.p+"images/production-error-2x-dc6519df.webp";// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/ErrorBoundaryProd.tsx
class R extends a.Component{static getDerivedStateFromError(){return{hasError:true}}componentDidCatch(e,t){// eslint-disable-next-line no-console
console.error(e,t)}render(){if(this.state.hasError){return/*#__PURE__*/(0,n/* .jsx */.Y)("div",{css:P.container,children:/*#__PURE__*/(0,n/* .jsxs */.FD)("div",{css:P.productionErrorWrapper,children:[/*#__PURE__*/(0,n/* .jsxs */.FD)("div",{css:P.productionErrorHeader,children:[/*#__PURE__*/(0,n/* .jsx */.Y)("img",{src:T,srcSet:"".concat(Y," 2x"),alt:(0,s.__)("Error","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)("h5",{css:h/* .typography.heading5 */.I.heading5("medium"),children:(0,s.__)("Oops! Something went wrong","tutor-pro")}),/*#__PURE__*/(0,n/* .jsxs */.FD)("div",{css:P.instructions,children:[/*#__PURE__*/(0,n/* .jsx */.Y)("p",{children:(0,s.__)("Try the following steps to resolve the issue:","tutor-pro")}),/*#__PURE__*/(0,n/* .jsxs */.FD)("ul",{children:[/*#__PURE__*/(0,n/* .jsx */.Y)("li",{children:(0,s.__)("Refresh the page.","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)("li",{children:(0,s.__)("Clear your browser cache.","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)(C/* ["default"] */.A,{when:M/* .tutorConfig.tutor_pro_url */.P.tutor_pro_url,children:/*#__PURE__*/(0,n/* .jsx */.Y)("li",{children:(0,s.__)("Ensure the Free and Pro plugins are on the same version.","tutor-pro")})})]})]})]}),/*#__PURE__*/(0,n/* .jsxs */.FD)("div",{css:P.productionFooter,children:[/*#__PURE__*/(0,n/* .jsx */.Y)("div",{children:/*#__PURE__*/(0,n/* .jsx */.Y)(A,{variant:"secondary",icon:/*#__PURE__*/(0,n/* .jsx */.Y)(d/* ["default"] */.A,{name:"refresh",height:24,width:24}),onClick:()=>window.location.reload(),children:(0,s.__)("Reload","tutor-pro")})}),/*#__PURE__*/(0,n/* .jsxs */.FD)("div",{css:P.support,children:[/*#__PURE__*/(0,n/* .jsx */.Y)("span",{children:(0,s.__)("Still having trouble?","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)("span",{children:(0,s.__)("Contact","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)("a",{href:M/* ["default"].TUTOR_SUPPORT_PAGE_URL */.A.TUTOR_SUPPORT_PAGE_URL,children:(0,s.__)("Support","tutor-pro")}),/*#__PURE__*/(0,n/* .jsx */.Y)("span",{children:(0,s.__)("for assistance.","tutor-pro")})]})]})]})})}return this.props.children}constructor(e){super(e);this.state={hasError:false}}}/* export default */const D=R;var P={container:/*#__PURE__*/(0,i/* .css */.AH)("width:100%;height:auto;display:flex;justify-content:center;align-items:center;"),productionErrorWrapper:/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.display.flex */.x.display.flex("column"),";gap:",p/* .spacing["20"] */.YK["20"],";max-width:500px;width:100%;"),productionErrorHeader:/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.display.flex */.x.display.flex("column"),";align-items:center;padding:",p/* .spacing["32"] */.YK["32"],";background:",p/* .colorTokens.background.white */.I6.background.white,";border-radius:",p/* .borderRadius["12"] */.Vq["12"],";box-shadow:0px -4px 0px 0px #ff0000;gap:",p/* .spacing["16"] */.YK["16"],";h5{text-align:center;}img{height:104px;width:101px;object-position:center;object-fit:contain;}"),instructions:/*#__PURE__*/(0,i/* .css */.AH)("width:100%;max-width:333px;p{width:100%;",h/* .typography.caption */.I.caption(),";margin-bottom:",p/* .spacing["4"] */.YK["4"],";}ul{padding-left:",p/* .spacing["16"] */.YK["16"],";li{",h/* .typography.caption */.I.caption(),";color:",p/* .colorTokens.text.title */.I6.text.title,";list-style:unset;margin-bottom:",p/* .spacing["2"] */.YK["2"],";&::marker{color:",p/* .colorTokens.icon["default"] */.I6.icon["default"],";}}}"),productionFooter:/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.display.flex */.x.display.flex("column"),";align-items:center;gap:",p/* .spacing["12"] */.YK["12"],";"),support:/*#__PURE__*/(0,i/* .css */.AH)(b/* .styleUtils.flexCenter */.x.flexCenter("row"),";text-align:center;flex-wrap:wrap;gap:",p/* .spacing["4"] */.YK["4"],";",h/* .typography.caption */.I.caption(),";color:",p/* .colorTokens.text.title */.I6.text.title,";a{color:",p/* .colorTokens.text.brand */.I6.text.brand,";text-decoration:none;}")}},336:function(e,t,r){"use strict";r.d(t,{A:()=>c,P:()=>i});/* eslint-disable @typescript-eslint/no-explicit-any */var n,a;var o={ID:0,ajaxurl:"",site_url:"",home_url:"",site_title:"",base_path:"",tutor_url:"",tutor_pro_url:"",dashboard_url:"",nonce_key:"",_tutor_nonce:"",loading_icon_url:"",placeholder_img_src:"",enable_lesson_classic_editor:"",tutor_frontend_dashboard_url:"",backend_course_list_url:"",backend_bundle_list_url:"",frontend_course_list_url:"",frontend_bundle_list_url:"",wp_date_format:"",wp_rest_nonce:"",is_admin:"",is_admin_bar_showing:"",max_upload_size:"",content_change_event:"",is_tutor_course_edit:"",assignment_max_file_allowed:"",current_page:"",quiz_answer_display_time:"",is_ssl:"",course_list_page_url:"",course_post_type:"",local:"",tutor_pn_vapid_key:"",tutor_pn_client_id:"",tutor_pn_subscription_saved:"",difficulty_levels:[],supported_video_sources:[],edd_products:[],bp_groups:[],timezones:{},addons_data:[],kids_icons_registry:[],is_kids_mode:false,user_preferences:{auto_play_next:false,contrast:"",font_scale:1,learning_mood:"modern",motion_effects:"auto",theme:"light",vision:"normal"},is_legacy_learning_mode:false,current_user:{data:{id:"",user_login:"",user_pass:"",user_nicename:"",user_email:"",user_url:"",user_registered:"",user_activation_key:"",user_status:"",display_name:""},caps:{},cap_key:"",roles:[],allcaps:{},filter:null},settings:{learning_mode:"",monetize_by:"tutor",enable_course_marketplace:"off",course_permalink_base:"",supported_video_sources:"",enrollment_expiry_enabled:"off",enable_q_and_a_on_course:"off",instructor_can_delete_course:"off",instructor_can_change_course_author:"off",instructor_can_manage_co_instructors:"off",chatgpt_enable:"off",course_builder_logo_url:"",chatgpt_key_exist:false,hide_admin_bar_for_users:"off",enable_redirect_on_course_publish_from_frontend:"off",instructor_can_publish_course:"off",youtube_api_key_exist:false,membership_only_mode:false,enable_tax:false,enable_individual_tax_control:false,is_tax_included_in_price:false,pagination_per_page:10,has_active_membership_plans:false},tutor_currency:{symbol:"",currency:"",position:"",thousand_separator:"",decimal_separator:"",no_of_decimal:""},visibility_control:{course_builder:{}}};var i=window._tutorobject||o;window.ajaxurl=i.ajaxurl;var s={TUTOR_SITE_URL:i.site_url,WP_AJAX_BASE_URL:i.ajaxurl,WP_API_BASE_URL:"".concat(((n=window.wpApiSettings)===null||n===void 0?void 0:n.root)||"").concat(((a=window.wpApiSettings)===null||a===void 0?void 0:a.versionString)||""),VIDEO_SOURCES_SETTINGS_URL:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor_settings&tab_page=course#field_supported_video_sources"),MONETIZATION_SETTINGS_URL:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor_settings&tab_page=monetization"),TUTOR_PRICING_PAGE:"https://tutorlms.com/pricing/",TUTOR_ADDONS_PAGE:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor-addons"),CHATGPT_PLATFORM_URL:"https://platform.openai.com/account/api-keys",TUTOR_MY_COURSES_PAGE_URL:"".concat(i.tutor_frontend_dashboard_url,"/my-courses"),TUTOR_SUPPORT_PAGE_URL:"https://tutorlms.com/support",TUTOR_SUBSCRIPTIONS_PAGE:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor-subscriptions"),TUTOR_ENROLLMENTS_PAGE:"".concat(i.site_url,"/wp-admin/admin.php?page=enrollments"),TUTOR_COUPONS_PAGE:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor_coupons"),TUTOR_IMPORT_EXPORT_PAGE:"".concat(i.site_url,"/wp-admin/admin.php?page=tutor-tools&sub_page=import_export")};/* export default */const c=s},461:function(e,t,r){"use strict";r.d(t,{V8:()=>m,vN:()=>_,yl:()=>x});/* import */var n=r(470);/* import */var a=/*#__PURE__*/r.n(n);/* import */var o=r(764);var i=/* unused pure expression or super */null&&5*1024*1024;var s=/* unused pure expression or super */null&&["image/jpeg","image/png","image/gif"];var c=10;var u=10;var l=48;var f=7;var d=3;var p="/product";var h="/category";var v="/tag";var m=document.dir==="rtl";var g="32px";var b="46px";var y=window.innerWidth;var _={isAboveDesktop:y>=o/* .DesktopBreakpoint */.cH,isAboveTablet:y>=o/* .TabletBreakpoint */.uh,isAboveMobile:y>=o/* .MobileBreakpoint */.G2,isAboveSmallMobile:y>=o/* .SmallMobileBreakpoint */.PB};var x={HEADER_HEIGHT:56,MARGIN_TOP:88,BASIC_MODAL_HEADER_HEIGHT:50,BASIC_MODAL_MAX_WIDTH:1218};var w=/* unused pure expression or super */null&&{MIN_NOTEBOOK_HEIGHT:430,MIN_NOTEBOOK_WIDTH:360,NOTEBOOK_HEADER:50};var k=/* unused pure expression or super */null&&{ADMINISTRATOR:"administrator",TUTOR_INSTRUCTOR:"tutor_instructor",SUBSCRIBER:"subscriber"};var A=/*#__PURE__*//* unused pure expression or super */null&&function(e){e["notebook"]="tutor_course_builder_notebook";return e}({});var E=/*#__PURE__*//* unused pure expression or super */null&&function(e){e["day"]="dd";e["month"]="MMM";e["year"]="yyyy";e["yearMonthDay"]="yyyy-LL-dd";e["monthDayYear"]="MMM dd, yyyy";e["hoursMinutes"]="hh:mm a";e["yearMonthDayHourMinuteSecond"]="yyyy-MM-dd hh:mm:ss";e["yearMonthDayHourMinuteSecond24H"]="yyyy-MM-dd HH:mm:ss";e["monthDayYearHoursMinutes"]="MMM dd, yyyy, hh:mm a";e["localMonthDayYearHoursMinutes"]="PPp";e["activityDate"]="MMM dd, yyyy hh:mm aa";e["validityDate"]="dd MMMM yyyy";e["dayMonthYear"]="do MMMM, yyyy";return e}({});var O=/*#__PURE__*//* unused pure expression or super */null&&function(e){e["COURSE_BUNDLE"]="course-bundle";e["SUBSCRIPTION"]="subscription";e["SOCIAL_LOGIN"]="social-login";e["CONTENT_DRIP"]="content-drip";e["TUTOR_MULTI_INSTRUCTORS"]="tutor-multi-instructors";e["TUTOR_ASSIGNMENTS"]="tutor-assignments";e["TUTOR_COURSE_PREVIEW"]="tutor-course-preview";e["TUTOR_COURSE_ATTACHMENTS"]="tutor-course-attachments";e["TUTOR_GOOGLE_MEET_INTEGRATION"]="google-meet";e["TUTOR_REPORT"]="tutor-report";e["EMAIL"]="tutor-email";e["CALENDAR"]="calendar";e["NOTIFICATIONS"]="tutor-notifications";e["GOOGLE_CLASSROOM_INTEGRATION"]="google-classroom";e["TUTOR_ZOOM_INTEGRATION"]="tutor-zoom";e["QUIZ_EXPORT_IMPORT"]="quiz-import-export";e["ENROLLMENT"]="enrollments";e["TUTOR_CERTIFICATE"]="tutor-certificate";e["GRADEBOOK"]="gradebook";e["TUTOR_PREREQUISITES"]="tutor-prerequisites";e["BUDDYPRESS"]="buddypress";e["WOOCOMMERCE_SUBSCRIPTIONS"]="wc-subscriptions";e["PAID_MEMBERSHIPS_PRO"]="pmpro";e["RESTRICT_CONTENT_PRO"]="restrict-content-pro";e["WEGLOT"]="tutor-weglot";e["WPML_MULTILINGUAL_CMS"]="tutor-wpml";e["H5P_INTEGRATION"]="h5p";e["CONTENT_BANK"]="content-bank";return e}({});var S=/* unused pure expression or super */null&&{YOUTUBE:/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,VIMEO:/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/,// eslint-disable-next-line no-useless-escape
EXTERNAL_URL:/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,SHORTCODE:/^\[.*\]$/};var I=[{label:(0,n.__)("Public","tutor-pro"),value:"publish"},{label:(0,n.__)("Password Protected","tutor-pro"),value:"password_protected"},{label:(0,n.__)("Private","tutor-pro"),value:"private"}];var M={COURSE_BUILDER:{BASICS:{FEATURED_IMAGE:"course_builder.basics_featured_image",INTRO_VIDEO:"course_builder.basics_intro_video",SCHEDULING_OPTIONS:"course_builder.basics_scheduling_options",PRICING_OPTIONS:"course_builder.basics_pricing_options",CATEGORIES:"course_builder.basics_categories",TAGS:"course_builder.basics_tags",AUTHOR:"course_builder.basics_author",INSTRUCTORS:"course_builder.basics_instructors",OPTIONS:{GENERAL:"course_builder.basics_options_general",CONTENT_DRIP:"course_builder.basics_options_content_drip",ENROLLMENT:"course_builder.basics_options_enrollment"}},CURRICULUM:{LESSON:{FEATURED_IMAGE:"course_builder.curriculum_lesson_featured_image",VIDEO:"course_builder.curriculum_lesson_video",VIDEO_PLAYBACK_TIME:"course_builder.curriculum_lesson_video_playback_time",EXERCISE_FILES:"course_builder.curriculum_lesson_exercise_files",LESSON_PREVIEW:"course_builder.curriculum_lesson_lesson_preview"}},ADDITIONAL:{COURSE_BENEFITS:"course_builder.additional_course_benefits",COURSE_TARGET_AUDIENCE:"course_builder.additional_course_target_audience",TOTAL_COURSE_DURATION:"course_builder.additional_total_course_duration",COURSE_MATERIALS_INCLUDES:"course_builder.additional_course_material_includes",COURSE_REQUIREMENTS:"course_builder.additional_course_requirements",CERTIFICATES:"course_builder.additional_certificate",ATTACHMENTS:"course_builder.additional_attachments",SCHEDULE_LIVE_CLASS:"course_builder.additional_schedule_live_class"}}};var C=/* unused pure expression or super */null&&{NEW:"new",UPDATE:"update",NO_CHANGE:"no_change"};var T=/* unused pure expression or super */null&&{name:"checkbox",// eslint-disable-next-line @typescript-eslint/no-explicit-any
value:"",onChange:()=>{},onBlur:()=>{},ref:()=>{}};var Y=/* unused pure expression or super */null&&{invalid:false,isTouched:false,isDirty:false,isValidating:false,error:undefined}},764:function(e,t,r){"use strict";r.d(t,{EA:()=>_,G2:()=>g,I6:()=>s,J:()=>u,K_:()=>f,PB:()=>m,Vq:()=>h,Wy:()=>l,YK:()=>c,cH:()=>y,fE:()=>v,iL:()=>x,mw:()=>i,r7:()=>p,uh:()=>b});var n=64;var a=355;var o=56;var i={inter:"'Inter', sans-serif;",roboto:"'Roboto', sans-serif;",sfProDisplay:"'SF Pro Display', sans-serif;"};var s={brand:{blue:"#0049f8",black:"#092844"},ai:{gradient_1:"linear-gradient(73.09deg, #FF9645 18.05%, #FF6471 30.25%, #CF6EBD 55.42%, #A477D1 71.66%, #3E64DE 97.9%)",gradient_1_rtl:"linear-gradient(73.09deg, #3E64DE 97.9%, #A477D1 28.34%, #CF6EBD 44.58%, #FF6471 69.75%, #FF9645 81.95%)",gradient_2:"linear-gradient(71.97deg, #FF9645 18.57%, #FF6471 63.71%, #CF6EBD 87.71%, #9B62D4 107.71%, #3E64DE 132.85%)",gradient_2_rtl:"linear-gradient(71.97deg, #3E64DE -67.15%, #9B62D4 -92.29%, #CF6EBD 87.71%, #FF6471 36.29%, #FF9645 81.43%)"},text:{primary:"#212327",title:"#41454f",subdued:"#5b616f",hints:"#767c8e",disable:"#a4a8b2",white:"#ffffff",brand:"#3a62e0",success:"#239c46",warning:"#bd7e00",error:"#f44337",status:{processing:"#007a66",pending:"#a8710d",failed:"#cc1213",completed:"#097336",onHold:"#ac0640",cancelled:"#6f7073",primary:"#3e64de"},wp:"#2271b1",magicAi:"#484F66",ai:{purple:"#9D50FF",gradient:"linear-gradient(73.09deg, #FF9645 18.05%, #FF6471 30.25%, #CF6EBD 55.42%, #A477D1 71.66%, #3E64DE 97.9%)"}},surface:{tutor:"#ffffff",wordpress:"#f1f1f1",navbar:"#F5F5F5",courseBuilder:"#F8F8F8"},background:{brand:"#3e64de",white:"#ffffff",black:"#000000",default:"#f4f6f9",hover:"#f5f6fa",active:"#f0f1f5",disable:"#ebecf0",modal:"#161616",dark10:"#212327",dark20:"#31343b",dark30:"#41454f",null:"#ffffff",success:{fill30:"#F5FBF7",fill40:"#E5F5EB"},warning:{fill40:"#FDF4E3"},status:{success:"#e5f5eb",warning:"#fdf4e3",drip:"#e9edfb",onHold:"#fae8ef",processing:"#e5f9f6",errorFail:"#ffebeb",cancelled:"#eceef2",refunded:"#e5f5f5"},magicAi:{default:"#FBF6FF",skeleton:"#FEF4FF",8:"rgba(201, 132, 254, 0.08)"}},icon:{default:"#9197a8",hover:"#4b505c",subdued:"#7e838f",hints:"#b6b9c2",disable:{default:"#b8bdcc",background:"#cbced6",muted:"#dedede"},white:"#ffffff",brand:"#446ef5",wp:"#007cba",error:"#f55e53",warning:"#ffb505",success:"#22a848",drop:"#4761b8",processing:"#00a388"},stroke:{default:"#c3c5cb",hover:"#9095a3",bold:"#41454f",disable:"#dcdfe5",divider:"#e0e2ea",border:"#cdcfd5",white:"#ffffff",brand:"#577fff",neutral:"#7391f0",success:{default:"#4eba6d",fill70:"#6AC088"},warning:"#f5ba63",danger:"#ff9f99",status:{success:"#c8e5d2",warning:"#fae5c5",processing:"#c3e5e0",onHold:"#f1c1d2",cancelled:"#e1e1e8",refunded:"#ccebea",fail:"#fdd9d7"},magicAi:"#C984FE"},border:{neutral:"#C8C8C8",tertiary:"#F5F5F5"},action:{primary:{default:"#3e64de",hover:"#3a5ccc",focus:"#00cceb",active:"#3453b8",disable:"#e3e6eb",wp:"#2271b1",wp_hover:"#135e96"},secondary:{default:"#e9edfb",hover:"#d6dffa",active:"#d0d9f2",gray:"#f0f1f1"},outline:{default:"#ffffff",hover:"#e9edfb",active:"#e1e7fa",disable:"#cacfe0"}},wordpress:{primary:"#2271b1",primaryLight:"#007cba",hoverShape:"#7faee6",sidebarChildText:"#4ea2e6",childBg:"#2d3337",mainBg:"#1e2327",text:"#b5bcc2"},design:{dark:"#1a1b1e",grey:"#41454f",white:"#ffffff",brand:"#3e64de",success:"#24a148",warning:"#ed9700",error:"#f44337"},primary:{main:"#3e64de",100:"#28408e",90:"#395bca",80:"#6180e4",70:"#95aaed",60:"#bdcaf1",50:"#d2dbf5",40:"#e9edfb",30:"#f6f8fd"},color:{black:{main:"#212327",100:"#0b0c0e",90:"#1a1b1e",80:"#31343b",70:"#41454f",60:"#5b616f",50:"#727889",40:"#9ca0ac",30:"#b4b7c0",20:"#c0c3cb",10:"#cdcfd5",8:"#e3e6eb",5:"#eff1f6",3:"#f4f6f9",2:"#fcfcfd",0:"#ffffff"},danger:{main:"#f44337",100:"#c62828",90:"#e53935",80:"#ef5350",70:"#e57373",60:"#fbb4af",50:"#fdd9d7",40:"#feeceb",30:"#fff7f7"},success:{main:"#24a148",100:"#075a2a",90:"#007a38",80:"#3aaa5a",70:"#6ac088",60:"#99d4ae",50:"#cbe9d5",40:"#e5f5eb",30:"#f5fbf7"},warning:{main:"#ed9700",100:"#895800",90:"#e08e00",80:"#f3a33c",70:"#f5ba63",60:"#f9d093",50:"#fce7c7",40:"#fdf4e3",30:"#fefbf4"}},bg:{gray20:"#e3e5eb",white:"#ffffff",error:"#f46363",success:"#24a148",light:"#f9fafc",brand:"#E6ECFF"},ribbon:{red:"linear-gradient(to bottom, #ee0014 0%,#c10010 12.23%,#ee0014 100%)",orange:"linear-gradient(to bottom, #ff7c02 0%,#df6c00 12.23%,#f78010 100%)",green:"linear-gradient(to bottom, #02ff49 0%,#00bb35 12.23%,#04ca3c 100%)",blue:"linear-gradient(to bottom, #0267ff 3.28%,#004bbb 12.23%,#0453ca 100%)"},additionals:{lightMint:"#ebfffb",lightPurple:"#f4e8f8",lightRed:"#ffebeb",lightYellow:"#fffaeb",lightCoffee:"#fcf4ee",lightPurple2:"#f7ebfe",lightBlue:"#edf1fd"}};var c={0:"0",2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px",56:"56px",64:"64px",72:"72px",96:"96px",128:"128px",256:"256px",512:"512px"};var u={10:"0.625rem",11:"0.688rem",12:"0.75rem",13:"0.813rem",14:"0.875rem",15:"0.938rem",16:"1rem",18:"1.125rem",20:"1.25rem",24:"1.5rem",28:"1.75rem",30:"1.875rem",32:"2rem",36:"2.25rem",40:"2.5rem",48:"3rem",56:"3.5rem",60:"3.75rem",64:"4rem",80:"5rem"};var l={thin:100,extraLight:200,light:300,regular:400,medium:500,semiBold:600,bold:700,extraBold:800,black:900};var f={12:"0.5rem",14:"0.75rem",15:"0.90rem",16:"1rem",18:"1.125rem",20:"1.25rem",21:"1.313rem",22:"1.375rem",24:"1.5rem",26:"1.625rem",28:"1.75rem",32:"2rem",30:"1.875rem",34:"2.125rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",48:"3rem",56:"3.5rem",58:"3.625rem",64:"4rem",70:"4.375rem",81:"5.063rem"};var d=/* unused pure expression or super */null&&{tight:"-0.05em",normal:"0",wide:"0.05em",extraWide:"0.1em"};var p={focus:"0px 0px 0px 0px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(0, 73, 248, 0.9)",button:"0px 1px 0.25px rgba(17, 18, 19, 0.08), inset 0px -1px 0.25px rgba(17, 18, 19, 0.24)",combinedButton:"0px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -1px 0px #bcbfc3, inset 1px 0px 0px #bbbfc3, inset 0px 1px 0px #bbbfc3",combinedButtonExtend:"0px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -1px 0px #bcbfc3, inset 1px 0px 0px #bbbfc3, inset 0px 1px 0px #bbbfc3, inset -1px 0px 0px #bbbfc3",insetButtonPressed:"inset 0px 2px 0px rgba(17, 18, 19, 0.08)",card:"0px 2px 1px rgba(17, 18, 19, 0.05), 0px 0px 1px rgba(17, 18, 19, 0.25)",popover:"0px 6px 22px rgba(17, 18, 19, 0.08), 0px 4px 10px rgba(17, 18, 19, 0.1)",modal:"0px 0px 2px rgba(17, 18, 19, 0.2), 0px 30px 72px rgba(17, 18, 19, 0.2)",base:"0px 1px 3px rgba(17, 18, 19, 0.15)",input:"0px 1px 0px rgba(17, 18, 19, 0.05)",switch:"0px 2px 4px 0px #0000002A",tabs:"inset 0px -1px 0px #dbdcdf",dividerTop:"inset 0px 1px 0px #E4E5E7",underline:"0px 1px 0px #C9CBCF",drag:"3px 7px 8px 0px #00000014",dropList:"0px 6px 20px 0px rgba(28, 49, 104, 0.1)",notebook:"0 0 4px 0 rgba(0, 30, 43, 0.16)",scrollable:"0px -2px 2px 0px #00000014",footer:"0px 1px 0px 0px #E4E5E7 inset"};var h={2:"2px",4:"4px",5:"5px",6:"6px",8:"8px",10:"10px",12:"12px",14:"14px",20:"20px",24:"24px",30:"30px",40:"40px",50:"50px",54:"54px",circle:"50%",card:"8px",min:"4px",input:"6px"};var v={negative:-1,positive:1,dropdown:2,level:0,sidebar:9,header:10,footer:10,modal:25,notebook:1e5,highest:99999,toast:100001};var m=480;var g=782;var b=992;var y=1280;var _={smallMobile:"@media(max-width: ".concat(m,"px)"),mobile:"@media(max-width: ".concat(g,"px)"),smallTablet:"@media(max-width: ".concat(b-1,"px)"),tablet:"@media(max-width: ".concat(y-1,"px)"),desktop:"@media(min-width: ".concat(y,"px)")};var x=1006},983:function(e,t,r){"use strict";r.d(t,{I:()=>o});/* import */var n=r(757);/* import */var a=r(764);var o={heading1:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["80"] */.J["80"],";line-height:",a/* .lineHeight["81"] */.K_["81"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},heading2:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["60"] */.J["60"],";line-height:",a/* .lineHeight["70"] */.K_["70"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},heading3:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["40"] */.J["40"],";line-height:",a/* .lineHeight["48"] */.K_["48"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},heading4:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["30"] */.J["30"],";line-height:",a/* .lineHeight["40"] */.K_["40"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},heading5:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["24"] */.J["24"],";line-height:",a/* .lineHeight["34"] */.K_["34"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},heading6:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["20"] */.J["20"],";line-height:",a/* .lineHeight["30"] */.K_["30"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},body:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["16"] */.J["16"],";line-height:",a/* .lineHeight["26"] */.K_["26"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},caption:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["15"] */.J["15"],";line-height:",a/* .lineHeight["24"] */.K_["24"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},small:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["13"] */.J["13"],";line-height:",a/* .lineHeight["18"] */.K_["18"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")},tiny:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"regular";return/*#__PURE__*/(0,n/* .css */.AH)("font-size:",a/* .fontSize["11"] */.J["11"],";line-height:",a/* .lineHeight["16"] */.K_["16"],";color:",a/* .colorTokens.text.primary */.I6.text.primary,";font-weight:",a/* .fontWeight */.Wy[e],";font-family:",a/* .fontFamily.inter */.mw.inter,";")}}},612:function(e,t,r){"use strict";r.d(t,{J:()=>c,j:()=>u});/* import */var n=r(25);/* import */var a=r(594);/* import */var o=/*#__PURE__*/r.n(a);var i={supportKidsIcon:false};var s=/*#__PURE__*/o().createContext(i);var c=()=>(0,a.useContext)(s);var u=e=>{var{children:t,supportKidsIcon:r=false}=e;return/*#__PURE__*/(0,n/* .jsx */.Y)(s.Provider,{value:{supportKidsIcon:r},children:t})}},406:function(e,t,r){"use strict";r.d(t,{A:()=>i});/* import */var n=r(638);var a=e=>{return(0,n/* .isDefined */.O9)(e)&&!!e};var o=e=>{var{when:t,children:r,fallback:n=null}=e;var o=a(t);if(o){return typeof r==="function"?r(t):r}return n};/* export default */const i=o},958:function(e,t,r){"use strict";r.d(t,{v:()=>l,x:()=>f});/* import */var n=r(690);/* import */var a=r(757);/* import */var o=r(764);/* import */var i=r(983);function s(){var e=(0,n._)(["\n      flex-direction: column;\n    "]);s=function t(){return e};return e}function c(){var e=(0,n._)(["\n      background-color: ",";\n    "]);c=function t(){return e};return e}function u(){var e=(0,n._)(["\n      cursor: grabbing;\n    "]);u=function t(){return e};return e}var l=()=>/*#__PURE__*/(0,a/* .css */.AH)("body.tutor-backend-tutor-content-bank{@media screen and (max-width:600px){#wpadminbar{position:fixed;}}}*,::after,::before{box-sizing:border-box;}html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;font-family:",o/* .fontFamily.inter */.mw.inter,";height:100%;}main{display:block;}h1{font-size:2em;margin:0.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;&:hover{color:inherit;}}li{list-style:none;margin:0;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;}button::-moz-focus-inner,[type='button']::-moz-focus-inner,[type='reset']::-moz-focus-inner,[type='submit']::-moz-focus-inner{border-style:none;padding:0;}button:-moz-focusring,[type='button']:-moz-focusring,[type='reset']:-moz-focusring,[type='submit']:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;height:auto;}[type='checkbox'],[type='radio']{box-sizing:border-box;padding:0;}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}[type='search']::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}:is(h1,h2,h3,h4,h5,h6,p){padding:0;margin:0;text-transform:unset;}table{th{text-align:-webkit-match-parent;}}");var f={centeredFlex:/*#__PURE__*/(0,a/* .css */.AH)("display:flex;justify-content:center;align-items:center;width:100%;height:100%;"),flexCenter:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"row";return/*#__PURE__*/(0,a/* .css */.AH)("display:flex;justify-content:center;align-items:center;flex-direction:row;",e==="column"&&(0,a/* .css */.AH)(s()))},boxReset:/*#__PURE__*/(0,a/* .css */.AH)("padding:0;"),ulReset:/*#__PURE__*/(0,a/* .css */.AH)("list-style:none;padding:0;margin:0;"),resetButton:/*#__PURE__*/(0,a/* .css */.AH)("background:none;border:none;outline:none;box-shadow:none;padding:0;margin:0;text-align:inherit;font-family:",o/* .fontFamily.inter */.mw.inter,";cursor:pointer;"),cardInnerSection:/*#__PURE__*/(0,a/* .css */.AH)("padding:",o/* .spacing["20"] */.YK["20"]," ",o/* .spacing["20"] */.YK["20"]," ",o/* .spacing["24"] */.YK["24"]," ",o/* .spacing["20"] */.YK["20"],";display:flex;flex-direction:column;gap:",o/* .spacing["24"] */.YK["24"],";"),fieldGroups:e=>/*#__PURE__*/(0,a/* .css */.AH)("display:flex;flex-direction:column;gap:",o/* .spacing */.YK[e],";"),titleAliasWrapper:/*#__PURE__*/(0,a/* .css */.AH)("display:flex;flex-direction:column;gap:",o/* .spacing["12"] */.YK["12"],";"),inlineSwitch:/*#__PURE__*/(0,a/* .css */.AH)("display:flex;justify-content:space-between;align-items:center;"),overflowYAuto:/*#__PURE__*/(0,a/* .css */.AH)("overflow-y:auto;scrollbar-gutter:stable;::-webkit-scrollbar{background-color:",o/* .colorTokens.primary["40"] */.I6.primary["40"],";width:3px;}::-webkit-scrollbar-thumb{background-color:",o/* .colorTokens.design.brand */.I6.design.brand,";border-radius:",o/* .borderRadius["30"] */.Vq["30"],";}"),overflowXAuto:/*#__PURE__*/(0,a/* .css */.AH)("overflow-x:auto;scrollbar-gutter:stable;::-webkit-scrollbar{background-color:",o/* .colorTokens.primary["40"] */.I6.primary["40"],";height:3px;}::-webkit-scrollbar-thumb{background-color:",o/* .colorTokens.design.brand */.I6.design.brand,";border-radius:",o/* .borderRadius["30"] */.Vq["30"],";}"),textEllipsis:/*#__PURE__*/(0,a/* .css */.AH)("text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"),container:/*#__PURE__*/(0,a/* .css */.AH)("width:",o/* .containerMaxWidth */.iL,"px;margin:0 auto;"),display:{flex:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"row";return/*#__PURE__*/(0,a/* .css */.AH)("display:flex;flex-direction:",e,";")},inlineFlex:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"row";return/*#__PURE__*/(0,a/* .css */.AH)("display:inline-flex;flex-direction:",e,";")},none:/*#__PURE__*/(0,a/* .css */.AH)("display:none;"),block:/*#__PURE__*/(0,a/* .css */.AH)("display:block;"),inlineBlock:/*#__PURE__*/(0,a/* .css */.AH)("display:inline-block;")},text:{ellipsis:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return/*#__PURE__*/(0,a/* .css */.AH)("white-space:normal;display:-webkit-box;-webkit-line-clamp:",e,";-webkit-box-orient:vertical;overflow:hidden;-webkit-box-pack:end;")},align:{center:/*#__PURE__*/(0,a/* .css */.AH)("text-align:center;"),left:/*#__PURE__*/(0,a/* .css */.AH)("text-align:left;"),right:/*#__PURE__*/(0,a/* .css */.AH)("text-align:right;"),justify:/*#__PURE__*/(0,a/* .css */.AH)("text-align:justify;")}},inputFocus:/*#__PURE__*/(0,a/* .css */.AH)("box-shadow:none;border-color:",o/* .colorTokens.stroke["default"] */.I6.stroke["default"],";outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;"),dateAndTimeWrapper:/*#__PURE__*/(0,a/* .css */.AH)("display:grid;grid-template-columns:5.5fr 4.5fr;border-radius:",o/* .borderRadius["6"] */.Vq["6"],";position:relative;&::before{content:'';position:absolute;top:0;left:0;right:0;height:40px;outline:2px solid transparent;outline-offset:1px;border-radius:",o/* .borderRadius["6"] */.Vq["6"],";pointer-events:none;z-index:1;transition:outline-color 0.2s ease-in-out;}&:focus-within::before{outline-color:",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";}> div{&:first-of-type{input{border-top-right-radius:0;border-bottom-right-radius:0;&:focus{box-shadow:none;outline:none;}}}&:last-of-type{input{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none;&:focus{box-shadow:none;outline:none;}}}}"),inputCurrencyStyle:/*#__PURE__*/(0,a/* .css */.AH)("font-size:",o/* .fontSize["18"] */.J["18"],";color:",o/* .colorTokens.icon.subdued */.I6.icon.subdued,";"),crossButton:/*#__PURE__*/(0,a/* .css */.AH)("border:none;outline:none;padding:0;margin:0;text-align:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:",o/* .borderRadius.circle */.Vq.circle,";background:",o/* .colorTokens.background.white */.I6.background.white,";transition:opacity 0.3s ease-in-out;svg{color:",o/* .colorTokens.icon["default"] */.I6.icon["default"],";transition:color 0.3s ease-in-out;}:hover{svg{color:",o/* .colorTokens.icon.hover */.I6.icon.hover,";}}:focus{box-shadow:",o/* .shadow.focus */.r7.focus,";}"),aiGradientText:/*#__PURE__*/(0,a/* .css */.AH)("background:",o/* .colorTokens.text.ai.gradient */.I6.text.ai.gradient,";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"),actionButton:/*#__PURE__*/(0,a/* .css */.AH)("background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;color:",o/* .colorTokens.icon["default"] */.I6.icon["default"],";display:flex;cursor:pointer;transition:color 0.3s ease-in-out;:hover:not(:disabled),:focus:not(:disabled),:active:not(:disabled){background:none;color:",o/* .colorTokens.icon.brand */.I6.icon.brand,";}:disabled{color:",o/* .colorTokens.icon.disable.background */.I6.icon.disable.background,";cursor:not-allowed;}:focus-visible{outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;border-radius:",o/* .borderRadius["2"] */.Vq["2"],";}"),backButton:/*#__PURE__*/(0,a/* .css */.AH)("background-color:transparent;width:32px;height:32px;padding:0;margin:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid ",o/* .colorTokens.border.neutral */.I6.border.neutral,";border-radius:",o/* .borderRadius["4"] */.Vq["4"],";outline:none;color:",o/* .colorTokens.icon["default"] */.I6.icon["default"],";transition:color 0.3s ease-in-out;cursor:pointer;:hover{color:",o/* .colorTokens.icon.hover */.I6.icon.hover,";}&:focus-visible{outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;}"),optionCheckButton:/*#__PURE__*/(0,a/* .css */.AH)("background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;font-family:",o/* .fontFamily.inter */.mw.inter,";cursor:pointer;height:32px;width:32px;border-radius:",o/* .borderRadius.circle */.Vq.circle,";opacity:0;:focus-visible{outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";}"),optionCounter:e=>{var{isEditing:t,isSelected:r=false}=e;return/*#__PURE__*/(0,a/* .css */.AH)("height:",o/* .spacing["24"] */.YK["24"],";width:",o/* .spacing["24"] */.YK["24"],";border-radius:",o/* .borderRadius.min */.Vq.min,";",i/* .typography.caption */.I.caption("medium"),";color:",o/* .colorTokens.text.subdued */.I6.text.subdued,";background-color:",o/* .colorTokens.background["default"] */.I6.background["default"],";text-align:center;",r&&!t&&(0,a/* .css */.AH)(c(),o/* .colorTokens.bg.white */.I6.bg.white))},optionDragButton:e=>{var{isOverlay:t}=e;return/*#__PURE__*/(0,a/* .css */.AH)("background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;font-family:",o/* .fontFamily.inter */.mw.inter,";cursor:grab;display:flex;align-items:center;justify-content:center;transform:rotate(90deg);color:",o/* .colorTokens.icon["default"] */.I6.icon["default"],";cursor:grab;place-self:center center;border-radius:",o/* .borderRadius["2"] */.Vq["2"],";&:focus,&:active,&:hover{background:none;color:",o/* .colorTokens.icon["default"] */.I6.icon["default"],";}:focus-visible{outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;}",t&&(0,a/* .css */.AH)(u()))},optionInputWrapper:/*#__PURE__*/(0,a/* .css */.AH)("display:flex;flex-direction:column;width:100%;gap:",o/* .spacing["12"] */.YK["12"],";input,textarea{background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;font-family:",o/* .fontFamily.inter */.mw.inter,";",i/* .typography.caption */.I.caption(),";flex:1;color:",o/* .colorTokens.text.subdued */.I6.text.subdued,";padding:",o/* .spacing["4"] */.YK["4"]," ",o/* .spacing["10"] */.YK["10"],";border:1px solid ",o/* .colorTokens.stroke["default"] */.I6.stroke["default"],";border-radius:",o/* .borderRadius["6"] */.Vq["6"],";resize:vertical;cursor:text;&:focus{box-shadow:none;border-color:",o/* .colorTokens.stroke["default"] */.I6.stroke["default"],";outline:2px solid ",o/* .colorTokens.stroke.brand */.I6.stroke.brand,";outline-offset:1px;}}"),objectFit:function(){var{fit:e,position:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fit:"cover",position:"center"};return/*#__PURE__*/(0,a/* .css */.AH)("object-fit:",e,";object-position:",t,";")},inputClearButton:/*#__PURE__*/(0,a/* .css */.AH)("position:absolute;top:50%;right:",o/* .spacing["4"] */.YK["4"],";transform:translateY(-50%);background-color:",o/* .colorTokens.background.white */.I6.background.white,";border-radius:",o/* .borderRadius["2"] */.Vq["2"],";&:not(:disabled):not([aria-disabled='true']):hover,&:not(:disabled):not([aria-disabled='true']):focus{background-color:",o/* .colorTokens.background.hover */.I6.background.hover,";}")}},638:function(e,t,r){"use strict";r.d(t,{$X:()=>d,Et:()=>u,Gv:()=>f,Kg:()=>i,Lm:()=>l,O9:()=>o});var n=(e,t)=>{return t in e};var a=e=>{return e.isAxiosError};var o=e=>{return e!==undefined&&e!==null};function i(e){return typeof e==="string"||e instanceof String}function s(e){return!!e&&Array.isArray(e)&&(!e.length||typeof e[0]!=="object")}function c(e){return s(e)&&(!e.length||typeof e[0]==="string"||e[0]instanceof String)}function u(e){return typeof e==="number"||e instanceof Number}function l(e){return typeof e==="boolean"||e instanceof Boolean}function f(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var d=e=>{return e instanceof Blob||e instanceof File};var p=/* unused pure expression or super */null&&{NEW:"new",UPDATE:"update",NO_CHANGE:"no_change"}},927:function(e,t,r){"use strict";// EXPORTS
r.d(t,{Co:()=>/* binding */B,Ak:()=>/* binding */A,lQ:()=>/* binding */y});// UNUSED EXPORTS: covertSecondsToHMS, getCategoryLeftBarHeight, getFileExtensionFromName, getRandom, getObjectEntries, assertIsDefined, getValueInArray, makeFirstCharacterUpperCase, isAddonEnabled, convertToGMT, extractIdOnly, decodeHtmlEntities, parseNumberOnly, mapInBetween, determinePostStatus, throttle, normalizeLineEndings, formatSubscriptionRepeatUnit, jsonParse, objectToQueryParams, hasDuplicateEntries, arrayRange, convertToSlug, convertGMTtoLocalDate, formatSeconds, findSlotFields, wait, fetchImageUrlAsBase64, arrayIntersect, copyToClipboard, getObjectValues, formatBytes, generateCouponCode, range, isFileOrBlob, moveTo, convertToErrorMessage, transformParams, formatReadAbleBytesToBytes, generateTree
// EXTERNAL MODULE: external "wp.i18n"
var n=r(470);// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/native.js
const a=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);/* export default */const o={randomUUID:a};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/rng.js
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
let i;const s=new Uint8Array(16);function c(){// lazy load so that environments that need to polyfill have a chance to do so
if(!i){// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
i=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!i){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return i(s)};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js
/**
 * Convert array of 16 byte values to UUID string format of the form:
 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 */const u=[];for(let e=0;e<256;++e){u.push((e+256).toString(16).slice(1))}function l(e,t=0){// Note: Be careful editing this code!  It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]}function f(e,t=0){const r=l(e,t);// Consistency check for valid UUID.  If this throws, it's likely due to one
// of the following:
// - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields
if(!validate(r)){throw TypeError("Stringified UUID is invalid")}return r}/* export default */const d=/* unused pure expression or super */null&&f;// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js
function p(e,t,r){if(o.randomUUID&&!t&&!e){return o.randomUUID()}e=e||{};const n=e.random||(e.rng||c)();// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
n[6]=n[6]&15|64;n[8]=n[8]&63|128;// Copy bytes to buffer, if provided
if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=n[e]}return t}return l(n)}/* export default */const h=p;// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/config.ts
var v=r(336);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/constants.ts
var m=r(461);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/types.ts
var g=r(638);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/utils/util.ts
function b(e,t){if(e===undefined||e===null){throw new Error(t)}}var y=()=>{};var _=e=>Array.from(Array(e).keys());var x=(e,t)=>Array.from({length:t-e},(t,r)=>r+e);var w=e=>{return e instanceof Blob||e instanceof File};var k=e=>{return Array.isArray(e)?e:e?[e]:[]};// Generate unique id
var A=()=>h();// Generate coupon code
var E=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;var t=e;var r="MSOP0123456789ABCDEFGHNRVUKYTJLZXIW";var n="";while(t--){n+=r[Math.random()*35|0]}return n};// Useful for mock api call
var O=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Promise(t=>setTimeout(t,e))};/**
 * Move one array item from one index to another index
 * (don't change the original array) instead return a new one.
 *
 * @param arr Array
 * @param fromIndex Number
 * @param toIndex Number
 * @returns new Array
 */var S=(e,t,r)=>{var n=[...e];var a=t;var o=r;if(t<0){a=e.length+t}if(t>=0&&t<e.length){if(r<0){o=e.length+r}var[i]=n.splice(a,1);if(i){n.splice(o,0,i)}}return n};var I=e=>{var t=e.split(".");var r=t.pop();return r?".".concat(r):""};var M=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:true;var n={};for(var a of e){var o,i;var s=t(a);s=r?s:s.toString().toLowerCase();(o=n)[i=s]||(o[i]=0);n[s]++;var c=n[s];if(c&&c>1){return true}}return false};var C=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;var n=new Set(e.map(e=>e.id));var a=e.filter(e=>{if(r.has(e.id)){return false}if(t===0){return e.parent===0||!n.has(e.parent)}return e.parent===t});return a.reduce((t,n)=>{r.add(n.id);var a=C(e,n.id,r);return[...t,_object_spread_props(_object_spread({},n),{children:a})]},[])};var T=(e,t)=>{var r="0";if(!e){r="100%"}else if(e&&t>0){if(t>1){r="".concat(23+32*(t-1),"px")}else{r="23px"}}return r};var Y=e=>{var t,r;var n=((t=e.sort)===null||t===void 0?void 0:t.direction)==="desc"?"-":"";return _object_spread({limit:e.limit,offset:e.offset,sort:((r=e.sort)===null||r===void 0?void 0:r.property)&&"".concat(n).concat(e.sort.property)},e.filter)};var R=(e,t)=>Math.floor(Math.random()*(t-e))+e;var D=(e,t,r,n,a)=>{return(e-t)*(a-n)/(r-t)+n};var P=e=>{return e.map(e=>e.id)};var $=(e,t)=>{var r=new Set(e);var n=new Set(t);var a=[];for(var o of r){if(n.has(o)){a.push(o)}}return a};var F=e=>{if(!e)return e;var t=e.charAt(0).toUpperCase();var r=e.slice(1);return"".concat(t).concat(r)};var H=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;if(!e||e<=1){return __("0 Bytes","tutor-pro")}var r=1024;var n=Math.max(0,t);var a=[__("Bytes","tutor-pro"),__("KB","tutor-pro"),__("MB","tutor-pro"),__("GB","tutor-pro"),__("TB","tutor-pro"),__("PB","tutor-pro"),__("EB","tutor-pro"),__("ZB","tutor-pro"),__("YB","tutor-pro")];var o=Math.floor(Math.log(e)/Math.log(r));return"".concat(Number.parseFloat((e/r**o).toFixed(n))," ").concat(a[o])};var N=e=>{if(!e||typeof e!=="string"){return 0}var[t,r]=e.split(" ");var n=parseFloat(t);var a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var o=a.indexOf(r);if(o===-1){return 0}return n*1024**o};var z=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;return e.replace(r?t?/[^0-9-]/g:/[^0-9]/g:t?/[^0-9.-]/g:/[^0-9.]/g,"").replace(/(?!^)-/g,"").replace(r?/\./g:/(\..*)\./g,"$1")};var j=(e,t)=>{var r=false;return function n(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++){a[o]=arguments[o]}if(!r){e.apply(this,a);r=true;setTimeout(()=>{r=false},t)}}};var L=e=>{return JSON.parse(e)};var U=e=>{var t=Math.floor(e/3600).toString().padStart(2,"0");var r=Math.floor(e%3600/60).toString().padStart(2,"0");var n=Math.floor(e%60);if(t==="00"){return"".concat(r,":").concat(n," mins")}return"".concat(t,":").concat(r,":").concat(n," hrs")};var B=e=>{if(!(0,g/* .isDefined */.O9)(e)||!(0,g/* .isObject */.Gv)(e)){return[]}return Object.keys(e)};var K=e=>{return Object.values(e)};var W=e=>{return Object.entries(e)};function V(e){var t=new URLSearchParams;for(var r in e){if(r in e){t.append(r,e[r])}}return t.toString()}var q=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DateFormats.yearMonthDayHourMinuteSecond24H;var r=e.getTimezoneOffset();var n=addMinutes(e,r);return format(n,t)};var G=e=>{var t=new Date(e);var r=t.getTimezoneOffset();return addMinutes(t,-r)};var Q=e=>{return(e||"").replace(/\r\n/g,"\n")};var J=e=>{return new Promise((t,r)=>{if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(e).then(()=>t()).catch(e=>r(e))}else{var n=document.createElement("textarea");n.value=e;document.body.appendChild(n);n.select();try{// if navigator.clipboard is not available, use document.execCommand('copy')
document.execCommand("copy");t()}catch(e){r(e)}finally{document.body.removeChild(n);// Clean up
}}})};var X=e=>{if(!e||!e.response||!e.response.data){return __("Something went wrong","tutor-pro")}var t=e.response.data.message;if(e.response.data.status_code===422&&e.response.data.data){t=e.response.data.data[Object.keys(e.response.data.data)[0]]}return t||__("Something went wrong","tutor-pro")};var Z=e=>_async_to_generator(function*(){try{var t=yield fetch(e);var r=yield t.blob();var n=new FileReader;return new Promise((e,t)=>{n.readAsDataURL(r);n.onload=()=>e(n.result);n.onerror=e=>t(e)})}catch(e){throw new Error("Failed to fetch and convert image: ".concat(e))}})();var ee=(e,t)=>{if(e==="trash"){return"trash"}if(t==="private"){return"private"}if(e==="future"){return"future"}if(t==="password_protected"&&e!=="draft"){return"publish"}return e};var et=e=>{var t;return!!((t=tutorConfig.addons_data.find(t=>t.base_name===e))===null||t===void 0?void 0:t.is_enabled)};var er=e=>{if(!e||typeof e!=="string"){return""}return e.normalize("NFKD")// Normalize accented characters into base forms + diacritics
.replace(/[\u0300-\u036f]/g,"")// Remove combining diacritical marks
.toLowerCase()// Remove special characters !~@#$%^&*(){}[]|\;:"',./?
// Remove characters that are NOT:
// - Basic Latin letters and numbers (a-z, 0-9)
// - Spaces and hyphens
// - Latin Extended (À-ž, etc.)
// - Greek and Coptic (Α-ω)
// - Cyrillic (А-я)
// - Hebrew (א-ת)
// - Arabic (ا-ي)
// - Devanagari (Hindi)
// - Thai
// - Tamil
// - Georgian
// - Hangul Jamo (Korean building blocks)
// - Hiragana (Japanese)
// - Katakana (Japanese)
// - CJK Unified Ideographs (Chinese/Japanese/Korean characters)
// - Hangul Syllables (Korean)
// - Hangul Compatibility Jamo
// - Hangul Jamo Extended-A
// - Hangul Jamo Extended-B
.replace(/[^a-z0-9\s\-\u00C0-\u024F\u0370-\u03FF\u0400-\u04FF\u0590-\u05FF\u0600-\u06FF\u0900-\u097F\u0E00-\u0E7F\u0B80-\u0BFF\u10A0-\u10FF\u1100-\u11FF\u3130-\u318F\u3040-\u309F\u30A0-\u30FF\u4E00-\u9FFF\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF]/g,"").replace(/\s+/g,"-")// Replace multiple spaces with single dash
.replace(/-+/g,"-")// Replace multiple dashes with single dash
.replace(/^-+|-+$/g,"")// Remove leading and trailing dashes
};var en=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var n=[];t.forEach(e=>{if(e.slotKey){e.fields[e.slotKey].forEach(e=>{n.push(e.name)})}else{Object.keys(e.fields).forEach(t=>{e.fields[t].forEach(e=>{n.push(e.name)})})}});return n};var ea=e=>{var t=new DOMParser;var r=t.parseFromString(e,"text/html");return r.body.textContent||""};var eo=e=>{var{unit:t="hour",value:r,useLySuffix:n=false,capitalize:a=true,showSingular:o=false}=e;if(t==="until_cancellation"){var i=__("Until Cancellation","tutor-pro");return a?ei(i):i}var s={hour:{// translators: %d: number of hours
plural:__("%d hours","tutor-pro"),// translators: %d: number of hours
singular:__("%d hour","tutor-pro"),suffix:__("hourly","tutor-pro"),base:__("hour","tutor-pro")},day:{// translators: %d: number of days
plural:__("%d days","tutor-pro"),// translators: %d: number of days
singular:__("%d day","tutor-pro"),suffix:__("daily","tutor-pro"),base:__("day","tutor-pro")},week:{// translators: %d is the number of weeks
plural:__("%d weeks","tutor-pro"),// translators: %d is the number of weeks
singular:__("%d week","tutor-pro"),suffix:__("weekly","tutor-pro"),base:__("week","tutor-pro")},month:{// translators: %d is the number of months
plural:__("%d months","tutor-pro"),// translators: %d is the number of months
singular:__("%d month","tutor-pro"),suffix:__("monthly","tutor-pro"),base:__("month","tutor-pro")},year:{// translators: %d is the number of years
plural:__("%d years","tutor-pro"),// translators: %d is the number of years
singular:__("%d year","tutor-pro"),suffix:__("yearly","tutor-pro"),base:__("year","tutor-pro")}};if(!s[t]){return""}var c="";if(r>1){c=sprintf(s[t].plural,r)}else if(o){c=sprintf(s[t].singular,r)}else if(n){c=s[t].suffix}else{c=s[t].base}return a?ei(c):c};var ei=e=>{return e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")};var es=e=>{var t=Math.floor(e/3600);var r=Math.floor(e%3600/60);var n=e%60;return{hours:t,minutes:r,seconds:n}}},594:function(e){"use strict";e.exports=React},206:function(e){"use strict";e.exports=ReactDOM},470:function(e){"use strict";e.exports=wp.i18n},33:function(e,t,r){"use strict";// EXPORTS
r.d(t,{_:()=>/* binding */a});// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_define_property.js
function n(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else e[t]=r;return e};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread.js
function a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var a=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))}a.forEach(function(t){n(e,t,r[t])})}return e}},303:function(e,t,r){"use strict";r.d(t,{_:()=>a});function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}r.push.apply(r,n)}return r}function a(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else{n(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}},473:function(e,t,r){"use strict";// EXPORTS
r.d(t,{_:()=>/* binding */a});// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_without_properties_loose.js
function n(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var a,o;for(o=0;o<n.length;o++){a=n[o];if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_without_properties.js
function a(e,t){if(e==null)return{};var r=n(e,t);var a,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){a=i[o];if(t.indexOf(a)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,a))continue;r[a]=e[a]}}return r}},690:function(e,t,r){"use strict";r.d(t,{_:()=>n});function n(e,t){if(!t)t=e.slice(0);return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}}};// The module cache
var t={};// The require function
function r(n){// Check if module is in cache
var a=t[n];if(a!==undefined){return a.exports}// Create a new module (and put it into the cache)
var o=t[n]={exports:{}};// Execute the module function
e[n].call(o.exports,o,o.exports,r);// Return the exports of the module
return o.exports}// webpack/runtime/compat_get_default_export
(()=>{// getDefaultExport function for compatibility with non-ESM modules
r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;r.d(t,{a:t});return t}})();// webpack/runtime/define_property_getters
(()=>{r.d=(e,t)=>{for(var n in t){if(r.o(t,n)&&!r.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();// webpack/runtime/global
(()=>{r.g=(()=>{if(typeof globalThis==="object")return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window==="object")return window}})()})();// webpack/runtime/has_own_property
(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();// webpack/runtime/rspack_version
(()=>{r.rv=()=>"1.6.5"})();// webpack/runtime/auto_public_path
(()=>{var e;if(r.g.importScripts)e=r.g.location+"";var t=r.g.document;if(!e&&t){// Technically we could use `document.currentScript instanceof window.HTMLScriptElement`,
// but an attacker could try to inject `<script>HTMLScriptElement = HTMLImageElement</script>`
// and use `<img name="currentScript" src="https://attacker.controlled.server/"></img>`
if(t.currentScript&&t.currentScript.tagName.toUpperCase()==="SCRIPT")e=t.currentScript.src;if(!e){var n=t.getElementsByTagName("script");if(n.length){var a=n.length-1;while(a>-1&&(!e||!/^http(s?):/.test(e)))e=n[a--].src}}}// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration",
// or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.',
if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");r.p=e})();// webpack/runtime/rspack_unique_id
(()=>{r.ruid="bundler=rspack@1.6.5"})();var n={};// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
(()=>{"use strict";// EXTERNAL MODULE: ./node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.1_react@18.3.1/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js
var e=r(25);// EXTERNAL MODULE: external "React"
var t=r(594);var n=/*#__PURE__*/r.n(t);// EXTERNAL MODULE: ./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js
var a=r(576);// EXTERNAL MODULE: ./node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.1_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js
var o=r(757);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/styles.ts
var i=r(764);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/atoms/LoadingSpinner.tsx
var s=/*#__PURE__*/(0,o/* .keyframes */.i7)("0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}");var c=/*#__PURE__*/(0,o/* .keyframes */.i7)("0%{stroke-dashoffset:180;transform:rotate(0deg);}50%{stroke-dashoffset:",180/4,";transform:rotate(135deg);}100%{stroke-dashoffset:180;transform:rotate(360deg);}");var u=/*#__PURE__*/(0,o/* .keyframes */.i7)("	0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}");var l={fullscreen:/*#__PURE__*/(0,o/* .css */.AH)("display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;"),loadingOverlay:/*#__PURE__*/(0,o/* .css */.AH)("position:absolute;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;justify-content:center;"),loadingSection:/*#__PURE__*/(0,o/* .css */.AH)("width:100%;height:100px;display:flex;justify-content:center;align-items:center;"),svg:/*#__PURE__*/(0,o/* .css */.AH)("animation:",s," 1.4s linear infinite;"),spinnerPath:/*#__PURE__*/(0,o/* .css */.AH)("stroke-dasharray:180;stroke-dashoffset:0;transform-origin:center;animation:",c," 1.4s linear infinite;"),spinGradient:/*#__PURE__*/(0,o/* .css */.AH)("transition:transform;transform-origin:center;animation:",u," 1s infinite linear;")};var f=t=>{var{size:r=30,color:n=i/* .colorTokens.icon.disable["default"] */.I6.icon.disable["default"]}=t;return/*#__PURE__*/(0,e/* .jsx */.Y)("svg",{width:r,height:r,css:l.svg,viewBox:"0 0 86 86",xmlns:"http://www.w3.org/2000/svg",children:/*#__PURE__*/(0,e/* .jsx */.Y)("circle",{css:l.spinnerPath,fill:"none",stroke:n,strokeWidth:"6",strokeLinecap:"round",cx:"43",cy:"43",r:"30"})})};var d=()=>{return/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:l.loadingOverlay,children:/*#__PURE__*/(0,e/* .jsx */.Y)(f,{})})};var p=()=>{return /*#__PURE__*/_jsx("div",{css:l.loadingSection,children:/*#__PURE__*/_jsx(f,{})})};var h=()=>{return /*#__PURE__*/_jsx("div",{css:l.fullscreen,children:/*#__PURE__*/_jsx(f,{})})};var v=e=>{var{size:t=24}=e;return /*#__PURE__*/_jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/*#__PURE__*/_jsx("path",{d:"M12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36628 6.91131 3.68509 8.55585C3.0039 10.2004 2.82567 12.01 3.17294 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89472 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12",stroke:"url(#paint0_linear_2402_3559)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",css:l.spinGradient}),/*#__PURE__*/_jsx("defs",{children:/*#__PURE__*/_jsxs("linearGradient",{id:"paint0_linear_2402_3559",x1:"4.50105",y1:"12",x2:"21.6571",y2:"6.7847",gradientUnits:"userSpaceOnUse",children:[/*#__PURE__*/_jsx("stop",{stopColor:"#FF9645"}),/*#__PURE__*/_jsx("stop",{offset:"0.152804",stopColor:"#FF6471"}),/*#__PURE__*/_jsx("stop",{offset:"0.467993",stopColor:"#CF6EBD"}),/*#__PURE__*/_jsx("stop",{offset:"0.671362",stopColor:"#A477D1"}),/*#__PURE__*/_jsx("stop",{offset:"1",stopColor:"#3E64DE"})]})})]})};/* export default */const m=/* unused pure expression or super */null&&f;// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/ErrorBoundary.tsx
var g;if(false){}else{// eslint-disable-next-line @typescript-eslint/no-require-imports
g=r(735)/* ["default"] */.A}var b=t=>{var{children:r}=t;return/*#__PURE__*/(0,e/* .jsx */.Y)(g,{children:r})};/* export default */const y=b;// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread.js + 1 modules
var _=r(33);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread_props.js
var x=r(303);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_tagged_template_literal.js
var w=r(690);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_without_properties.js + 1 modules
var k=r(473);// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/react-use-measure@2.1.7_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-use-measure/dist/index.js
function A(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}function E({debounce:e,scroll:r,polyfill:n,offsetSize:a}={debounce:0,scroll:!1,offsetSize:!1}){const o=n||(typeof window=="undefined"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,s]=(0,t.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=(0,t.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i,orientationHandler:null}),u=e?typeof e=="number"?e:e.scroll:null,l=e?typeof e=="number"?e:e.resize:null,f=(0,t.useRef)(!1);(0,t.useEffect)(()=>(f.current=!0,()=>void(f.current=!1)));const[d,p,h]=(0,t.useMemo)(()=>{const e=()=>{if(!c.current.element)return;const{left:e,top:t,width:r,height:n,bottom:o,right:i,x:u,y:l}=c.current.element.getBoundingClientRect(),d={left:e,top:t,width:r,height:n,bottom:o,right:i,x:u,y:l};c.current.element instanceof HTMLElement&&a&&(d.height=c.current.element.offsetHeight,d.width=c.current.element.offsetWidth),Object.freeze(d),f.current&&!C(c.current.lastBounds,d)&&s(c.current.lastBounds=d)};return[e,l?A(e,l):e,u?A(e,u):e]},[s,a,u,l]);function v(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",h,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null),c.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",c.current.orientationHandler))}function m(){c.current.element&&(c.current.resizeObserver=new o(h),c.current.resizeObserver.observe(c.current.element),r&&c.current.scrollContainers&&c.current.scrollContainers.forEach(e=>e.addEventListener("scroll",h,{capture:!0,passive:!0})),c.current.orientationHandler=()=>{h()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",c.current.orientationHandler))}const g=e=>{!e||e===c.current.element||(v(),c.current.element=e,c.current.scrollContainers=I(e),m())};return S(h,!!r),O(p),(0,t.useEffect)(()=>{v(),m()},[r,h,p]),(0,t.useEffect)(()=>v,[]),[g,i,d]}function O(e){(0,t.useEffect)(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function S(e,r){(0,t.useEffect)(()=>{if(r){const t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[e,r])}function I(e){const t=[];if(!e||e===document.body)return t;const{overflow:r,overflowX:n,overflowY:a}=window.getComputedStyle(e);return[r,n,a].some(e=>e==="auto"||e==="scroll")&&t.push(e),[...t,...I(e.parentElement)]}const M=["x","y","top","bottom","left","right","width","height"],C=(e,t)=>M.every(r=>e[r]===t[r]);//# sourceMappingURL=index.js.map
;// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@react-spring+rafz@9.7.5/node_modules/@react-spring/rafz/dist/react-spring_rafz.modern.mjs
// src/index.ts
var T=q();var Y=e=>U(e,T);var R=q();Y.write=e=>U(e,R);var D=q();Y.onStart=e=>U(e,D);var P=q();Y.onFrame=e=>U(e,P);var $=q();Y.onFinish=e=>U(e,$);var F=[];Y.setTimeout=(e,t)=>{const r=Y.now()+t;const n=()=>{const e=F.findIndex(e=>e.cancel==n);if(~e)F.splice(e,1);j-=~e?1:0};const a={time:r,handler:e,cancel:n};F.splice(H(r),0,a);j+=1;B();return a};var H=e=>~(~F.findIndex(t=>t.time>e)||~F.length);Y.cancel=e=>{D.delete(e);P.delete(e);$.delete(e);T.delete(e);R.delete(e)};Y.sync=e=>{L=true;Y.batchedUpdates(e);L=false};Y.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e;Y.onStart(r)}n.handler=e;n.cancel=()=>{D.delete(r);t=null};return n};var N=typeof window!="undefined"?window.requestAnimationFrame:// eslint-disable-next-line @typescript-eslint/no-empty-function
()=>{};Y.use=e=>N=e;Y.now=typeof performance!="undefined"?()=>performance.now():Date.now;Y.batchedUpdates=e=>e();Y.catch=console.error;Y.frameLoop="always";Y.advance=()=>{if(Y.frameLoop!=="demand"){console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand")}else{V()}};var z=-1;var j=0;var L=false;function U(e,t){if(L){t.delete(e);e(0)}else{t.add(e);B()}}function B(){if(z<0){z=0;if(Y.frameLoop!=="demand"){N(W)}}}function K(){z=-1}function W(){if(~z){N(W);Y.batchedUpdates(V)}}function V(){const e=z;z=Y.now();const t=H(z);if(t){G(F.splice(0,t),e=>e.handler());j-=t}if(!j){K();return}D.flush();T.flush(e?Math.min(64,z-e):16.667);P.flush();R.flush();$.flush()}function q(){let e=/* @__PURE__ */new Set;let t=e;return{add(r){j+=t==e&&!e.has(r)?1:0;e.add(r)},delete(r){j-=t==e&&e.has(r)?1:0;return e.delete(r)},flush(r){if(t.size){e=/* @__PURE__ */new Set;j-=t.size;G(t,t=>t(r)&&e.add(t));j+=e.size;t=e}}}}function G(e,t){e.forEach(e=>{try{t(e)}catch(e){Y.catch(e)}})}var Q=/* unused pure expression or super */null&&{/** The number of pending tasks */count(){return j},/** Whether there's a raf update loop running */isRunning(){return z>=0},/** Clear internal state. Never call from update loop! */clear(){z=-1;F=[];D=q();T=q();P=q();R=q();$=q();j=0}};//# sourceMappingURL=react-spring_rafz.modern.mjs.map
;// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@react-spring+shared@9.7.5_react@18.3.1/node_modules/@react-spring/shared/dist/react-spring_shared.modern.mjs
var J=Object.defineProperty;var X=(e,t)=>{for(var r in t)J(e,r,{get:t[r],enumerable:true})};// src/globals.ts
var Z={};X(Z,{assign:()=>ev,colors:()=>ed,createStringInterpolator:()=>el,skipAnimation:()=>ep,to:()=>ef,willAdvance:()=>eh});// src/helpers.ts
function ee(){}var et=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:true,configurable:true});var er={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e==="function",str:e=>typeof e==="string",num:e=>typeof e==="number",und:e=>e===void 0};function en(e,t){if(er.arr(e)){if(!er.arr(t)||e.length!==t.length)return false;for(let r=0;r<e.length;r++){if(e[r]!==t[r])return false}return true}return e===t}var ea=(e,t)=>e.forEach(t);function eo(e,t,r){if(er.arr(e)){for(let n=0;n<e.length;n++){t.call(r,e[n],`${n}`)}return}for(const n in e){if(e.hasOwnProperty(n)){t.call(r,e[n],n)}}}var ei=e=>er.und(e)?[]:er.arr(e)?e:[e];function es(e,t){if(e.size){const r=Array.from(e);e.clear();ea(r,t)}}var ec=(e,...t)=>es(e,e=>e(...t));var eu=()=>typeof window==="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);// src/globals.ts
var el;var ef;var ed=null;var ep=false;var eh=ee;var ev=e=>{if(e.to)ef=e.to;if(e.now)Y.now=e.now;if(e.colors!==void 0)ed=e.colors;if(e.skipAnimation!=null)ep=e.skipAnimation;if(e.createStringInterpolator)el=e.createStringInterpolator;if(e.requestAnimationFrame)Y.use(e.requestAnimationFrame);if(e.batchedUpdates)Y.batchedUpdates=e.batchedUpdates;if(e.willAdvance)eh=e.willAdvance;if(e.frameLoop)Y.frameLoop=e.frameLoop};// src/FrameLoop.ts
var em=/* @__PURE__ */new Set;var eg=[];var eb=[];var ey=0;var e_={get idle(){return!em.size&&!eg.length},/** Advance the given animation on every frame until idle. */start(e){if(ey>e.priority){em.add(e);Y.onStart(ex)}else{ew(e);Y(eA)}},/** Advance all animations by the given time. */advance:eA,/** Call this when an animation's priority changes. */sort(e){if(ey){Y.onFrame(()=>e_.sort(e))}else{const t=eg.indexOf(e);if(~t){eg.splice(t,1);ek(e)}}},/**
   * Clear all animations. For testing purposes.
   *
   * ☠️ Never call this from within the frameloop.
   */clear(){eg=[];em.clear()}};function ex(){em.forEach(ew);em.clear();Y(eA)}function ew(e){if(!eg.includes(e))ek(e)}function ek(e){eg.splice(eE(eg,t=>t.priority>e.priority),0,e)}function eA(e){const t=eb;for(let r=0;r<eg.length;r++){const n=eg[r];ey=n.priority;if(!n.idle){eh(n);n.advance(e);if(!n.idle){t.push(n)}}}ey=0;eb=eg;eb.length=0;eg=t;return eg.length>0}function eE(e,t){const r=e.findIndex(t);return r<0?e.length:r}// src/clamp.ts
var eO=(e,t,r)=>Math.min(Math.max(r,e),t);// src/colors.ts
var eS={transparent:0,aliceblue:0xf0f8ffff,antiquewhite:0xfaebd7ff,aqua:0xffffff,aquamarine:0x7fffd4ff,azure:0xf0ffffff,beige:0xf5f5dcff,bisque:0xffe4c4ff,black:255,blanchedalmond:0xffebcdff,blue:65535,blueviolet:0x8a2be2ff,brown:0xa52a2aff,burlywood:0xdeb887ff,burntsienna:0xea7e5dff,cadetblue:0x5f9ea0ff,chartreuse:0x7fff00ff,chocolate:0xd2691eff,coral:0xff7f50ff,cornflowerblue:0x6495edff,cornsilk:0xfff8dcff,crimson:0xdc143cff,cyan:0xffffff,darkblue:35839,darkcyan:9145343,darkgoldenrod:0xb8860bff,darkgray:0xa9a9a9ff,darkgreen:6553855,darkgrey:0xa9a9a9ff,darkkhaki:0xbdb76bff,darkmagenta:0x8b008bff,darkolivegreen:0x556b2fff,darkorange:0xff8c00ff,darkorchid:0x9932ccff,darkred:0x8b0000ff,darksalmon:0xe9967aff,darkseagreen:0x8fbc8fff,darkslateblue:0x483d8bff,darkslategray:0x2f4f4fff,darkslategrey:0x2f4f4fff,darkturquoise:0xced1ff,darkviolet:0x9400d3ff,deeppink:0xff1493ff,deepskyblue:0xbfffff,dimgray:0x696969ff,dimgrey:0x696969ff,dodgerblue:0x1e90ffff,firebrick:0xb22222ff,floralwhite:0xfffaf0ff,forestgreen:0x228b22ff,fuchsia:0xff00ffff,gainsboro:0xdcdcdcff,ghostwhite:0xf8f8ffff,gold:0xffd700ff,goldenrod:0xdaa520ff,gray:0x808080ff,green:8388863,greenyellow:0xadff2fff,grey:0x808080ff,honeydew:0xf0fff0ff,hotpink:0xff69b4ff,indianred:0xcd5c5cff,indigo:0x4b0082ff,ivory:0xfffff0ff,khaki:0xf0e68cff,lavender:0xe6e6faff,lavenderblush:0xfff0f5ff,lawngreen:0x7cfc00ff,lemonchiffon:0xfffacdff,lightblue:0xadd8e6ff,lightcoral:0xf08080ff,lightcyan:0xe0ffffff,lightgoldenrodyellow:0xfafad2ff,lightgray:0xd3d3d3ff,lightgreen:0x90ee90ff,lightgrey:0xd3d3d3ff,lightpink:0xffb6c1ff,lightsalmon:0xffa07aff,lightseagreen:0x20b2aaff,lightskyblue:0x87cefaff,lightslategray:0x778899ff,lightslategrey:0x778899ff,lightsteelblue:0xb0c4deff,lightyellow:0xffffe0ff,lime:0xff00ff,limegreen:0x32cd32ff,linen:0xfaf0e6ff,magenta:0xff00ffff,maroon:0x800000ff,mediumaquamarine:0x66cdaaff,mediumblue:52735,mediumorchid:0xba55d3ff,mediumpurple:0x9370dbff,mediumseagreen:0x3cb371ff,mediumslateblue:0x7b68eeff,mediumspringgreen:0xfa9aff,mediumturquoise:0x48d1ccff,mediumvioletred:0xc71585ff,midnightblue:0x191970ff,mintcream:0xf5fffaff,mistyrose:0xffe4e1ff,moccasin:0xffe4b5ff,navajowhite:0xffdeadff,navy:33023,oldlace:0xfdf5e6ff,olive:0x808000ff,olivedrab:0x6b8e23ff,orange:0xffa500ff,orangered:0xff4500ff,orchid:0xda70d6ff,palegoldenrod:0xeee8aaff,palegreen:0x98fb98ff,paleturquoise:0xafeeeeff,palevioletred:0xdb7093ff,papayawhip:0xffefd5ff,peachpuff:0xffdab9ff,peru:0xcd853fff,pink:0xffc0cbff,plum:0xdda0ddff,powderblue:0xb0e0e6ff,purple:0x800080ff,rebeccapurple:0x663399ff,red:0xff0000ff,rosybrown:0xbc8f8fff,royalblue:0x4169e1ff,saddlebrown:0x8b4513ff,salmon:0xfa8072ff,sandybrown:0xf4a460ff,seagreen:0x2e8b57ff,seashell:0xfff5eeff,sienna:0xa0522dff,silver:0xc0c0c0ff,skyblue:0x87ceebff,slateblue:0x6a5acdff,slategray:0x708090ff,slategrey:0x708090ff,snow:0xfffafaff,springgreen:0xff7fff,steelblue:0x4682b4ff,tan:0xd2b48cff,teal:8421631,thistle:0xd8bfd8ff,tomato:0xff6347ff,turquoise:0x40e0d0ff,violet:0xee82eeff,wheat:0xf5deb3ff,white:0xffffffff,whitesmoke:0xf5f5f5ff,yellow:0xffff00ff,yellowgreen:0x9acd32ff};// src/colorMatchers.ts
var eI="[-+]?\\d*\\.?\\d+";var eM=eI+"%";function eC(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var eT=new RegExp("rgb"+eC(eI,eI,eI));var eY=new RegExp("rgba"+eC(eI,eI,eI,eI));var eR=new RegExp("hsl"+eC(eI,eM,eM));var eD=new RegExp("hsla"+eC(eI,eM,eM,eI));var eP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;var e$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;var eF=/^#([0-9a-fA-F]{6})$/;var eH=/^#([0-9a-fA-F]{8})$/;// src/normalizeColor.ts
function eN(e){let t;if(typeof e==="number"){return e>>>0===e&&e>=0&&e<=0xffffffff?e:null}if(t=eF.exec(e))return parseInt(t[1]+"ff",16)>>>0;if(ed&&ed[e]!==void 0){return ed[e]}if(t=eT.exec(e)){return(eL(t[1])<<24|// r
eL(t[2])<<16|// g
eL(t[3])<<8|// b
255)>>>// a
0}if(t=eY.exec(e)){return(eL(t[1])<<24|// r
eL(t[2])<<16|// g
eL(t[3])<<8|// b
eB(t[4]))>>>// a
0}if(t=eP.exec(e)){return parseInt(t[1]+t[1]+// r
t[2]+t[2]+// g
t[3]+t[3]+// b
"ff",// a
16)>>>0}if(t=eH.exec(e))return parseInt(t[1],16)>>>0;if(t=e$.exec(e)){return parseInt(t[1]+t[1]+// r
t[2]+t[2]+// g
t[3]+t[3]+// b
t[4]+t[4],// a
16)>>>0}if(t=eR.exec(e)){return(ej(eU(t[1]),// h
eK(t[2]),// s
eK(t[3]))|255)>>>// a
0}if(t=eD.exec(e)){return(ej(eU(t[1]),// h
eK(t[2]),// s
eK(t[3]))|eB(t[4]))>>>// a
0}return null}function ez(e,t,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return e+(t-e)*6*r;if(r<1/2)return t;if(r<2/3)return e+(t-e)*(2/3-r)*6;return e}function ej(e,t,r){const n=r<.5?r*(1+t):r+t-r*t;const a=2*r-n;const o=ez(a,n,e+1/3);const i=ez(a,n,e);const s=ez(a,n,e-1/3);return Math.round(o*255)<<24|Math.round(i*255)<<16|Math.round(s*255)<<8}function eL(e){const t=parseInt(e,10);if(t<0)return 0;if(t>255)return 255;return t}function eU(e){const t=parseFloat(e);return(t%360+360)%360/360}function eB(e){const t=parseFloat(e);if(t<0)return 0;if(t>1)return 255;return Math.round(t*255)}function eK(e){const t=parseFloat(e);if(t<0)return 0;if(t>100)return 1;return t/100}// src/colorToRgba.ts
function eW(e){let t=eN(e);if(t===null)return e;t=t||0;const r=(t&0xff000000)>>>24;const n=(t&0xff0000)>>>16;const a=(t&65280)>>>8;const o=(t&255)/255;return`rgba(${r}, ${n}, ${a}, ${o})`}// src/createInterpolator.ts
var eV=(e,t,r)=>{if(er.fun(e)){return e}if(er.arr(e)){return eV({range:e,output:t,extrapolate:r})}if(er.str(e.output[0])){return el(e)}const n=e;const a=n.output;const o=n.range||[0,1];const i=n.extrapolateLeft||n.extrapolate||"extend";const s=n.extrapolateRight||n.extrapolate||"extend";const c=n.easing||(e=>e);return e=>{const t=eG(e,o);return eq(e,o[t],o[t+1],a[t],a[t+1],c,i,s,n.map)}};function eq(e,t,r,n,a,o,i,s,c){let u=c?c(e):e;if(u<t){if(i==="identity")return u;else if(i==="clamp")u=t}if(u>r){if(s==="identity")return u;else if(s==="clamp")u=r}if(n===a)return n;if(t===r)return e<=t?n:a;if(t===-Infinity)u=-u;else if(r===Infinity)u=u-t;else u=(u-t)/(r-t);u=o(u);if(n===-Infinity)u=-u;else if(a===Infinity)u=u+n;else u=u*(a-n)+n;return u}function eG(e,t){for(var r=1;r<t.length-1;++r)if(t[r]>=e)break;return r-1}// src/easings.ts
var eQ=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e;const a=t==="end"?Math.floor(n):Math.ceil(n);return eO(0,1,a/e)};var eJ=1.70158;var eX=eJ*1.525;var eZ=eJ+1;var e0=2*Math.PI/3;var e1=2*Math.PI/4.5;var e2=e=>{const t=7.5625;const r=2.75;if(e<1/r){return t*e*e}else if(e<2/r){return t*(e-=1.5/r)*e+.75}else if(e<2.5/r){return t*(e-=2.25/r)*e+.9375}else{return t*(e-=2.625/r)*e+.984375}};var e6={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>eZ*e*e*e-eJ*e*e,easeOutBack:e=>1+eZ*Math.pow(e-1,3)+eJ*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((eX+1)*2*e-eX)/2:(Math.pow(2*e-2,2)*((eX+1)*(e*2-2)+eX)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*e0),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*e0)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*e1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*e1)/2+1,easeInBounce:e=>1-e2(1-e),easeOutBounce:e2,easeInOutBounce:e=>e<.5?(1-e2(1-2*e))/2:(1+e2(2*e-1))/2,steps:eQ};// src/fluids.ts
var e5=Symbol.for("FluidValue.get");var e4=Symbol.for("FluidValue.observers");var e3=e=>Boolean(e&&e[e5]);var e8=e=>e&&e[e5]?e[e5]():e;var e9=e=>e[e4]||null;function e7(e,t){if(e.eventObserved){e.eventObserved(t)}else{e(t)}}function te(e,t){const r=e[e4];if(r){r.forEach(e=>{e7(e,t)})}}var tt=class{constructor(e){if(!e&&!(e=this.get)){throw Error("Unknown getter")}tr(this,e)}};e5,e4;var tr=(e,t)=>to(e,e5,t);function tn(e,t){if(e[e5]){let r=e[e4];if(!r){to(e,e4,r=/* @__PURE__ */new Set)}if(!r.has(t)){r.add(t);if(e.observerAdded){e.observerAdded(r.size,t)}}}return t}function ta(e,t){const r=e[e4];if(r&&r.has(t)){const n=r.size-1;if(n){r.delete(t)}else{e[e4]=null}if(e.observerRemoved){e.observerRemoved(n,t)}}}var to=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:true,configurable:true});// src/regexs.ts
var ti=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;var ts=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;var tc=new RegExp(`(${ti.source})(%|[a-z]+)`,"i");var tu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi;var tl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;// src/variableToRgba.ts
var tf=e=>{const[t,r]=td(e);if(!t||eu()){return e}const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n){return n.trim()}else if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(t){return t}else{return e}}else if(r&&tl.test(r)){return tf(r)}else if(r){return r}return e};var td=e=>{const t=tl.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};// src/stringInterpolation.ts
var tp;var th=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`;var tv=e=>{if(!tp)tp=ed?// match color names, ignore partial matches
new RegExp(`(${Object.keys(ed).join("|")})(?!\\w)`,"g"):// never match
/^\b$/;const t=e.output.map(e=>{return e8(e).replace(tl,tf).replace(ts,eW).replace(tp,eW)});const r=t.map(e=>e.match(ti).map(Number));const n=r[0].map((e,t)=>r.map(e=>{if(!(t in e)){throw Error('The arity of each "output" value must be equal')}return e[t]}));const a=n.map(t=>eV({...e,output:t}));return e=>{const r=!tc.test(t[0])&&t.find(e=>tc.test(e))?.replace(ti,"");let n=0;return t[0].replace(ti,()=>`${a[n++](e)}${r||""}`).replace(tu,th)}};// src/deprecations.ts
var tm="react-spring: ";var tg=e=>{const t=e;let r=false;if(typeof t!="function"){throw new TypeError(`${tm}once requires a function parameter`)}return(...e)=>{if(!r){t(...e);r=true}}};var tb=tg(console.warn);function ty(){tb(`${tm}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var t_=tg(console.warn);function tx(){t_(`${tm}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}// src/isAnimatedString.ts
function tw(e){return er.str(e)&&(e[0]=="#"||/\d/.test(e)||// Do not identify a CSS variable as an AnimatedString if its SSR
!eu()&&tl.test(e)||e in(ed||{}))}// src/dom-events/scroll/index.ts
// src/dom-events/resize/resizeElement.ts
var tk;var tA=/* @__PURE__ */new WeakMap;var tE=e=>e.forEach(({target:e,contentRect:t})=>{return tA.get(e)?.forEach(e=>e(t))});function tO(e,t){if(!tk){if(typeof ResizeObserver!=="undefined"){tk=new ResizeObserver(tE)}}let r=tA.get(t);if(!r){r=/* @__PURE__ */new Set;tA.set(t,r)}r.add(e);if(tk){tk.observe(t)}return()=>{const r=tA.get(t);if(!r)return;r.delete(e);if(!r.size&&tk){tk.unobserve(t)}}}// src/dom-events/resize/resizeWindow.ts
var tS=/* @__PURE__ */new Set;var tI;var tM=()=>{const e=()=>{tS.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};window.addEventListener("resize",e);return()=>{window.removeEventListener("resize",e)}};var tC=e=>{tS.add(e);if(!tI){tI=tM()}return()=>{tS.delete(e);if(!tS.size&&tI){tI();tI=void 0}}};// src/dom-events/resize/index.ts
var tT=(e,{container:t=document.documentElement}={})=>{if(t===document.documentElement){return tC(e)}else{return tO(e,t)}};// src/progress.ts
var tY=(e,t,r)=>t-e===0?1:(r-e)/(t-e);// src/dom-events/scroll/ScrollHandler.ts
var tR=/* unused pure expression or super */null&&{x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};var tD=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0});this.updateAxis=e=>{const t=this.info[e];const{length:r,position:n}=tR[e];t.current=this.container[`scroll${n}`];t.scrollLength=this.container[`scroll${r}`]-this.container[`client${r}`];t.progress=tY(0,t.scrollLength,t.current)};this.update=()=>{this.updateAxis("x");this.updateAxis("y")};this.sendEvent=()=>{this.callback(this.info)};this.advance=()=>{this.update();this.sendEvent()};this.callback=e;this.container=t;this.info={time:0,x:this.createAxis(),y:this.createAxis()}}};// src/dom-events/scroll/index.ts
var tP=/* @__PURE__ */new WeakMap;var t$=/* @__PURE__ */new WeakMap;var tF=/* @__PURE__ */new WeakMap;var tH=e=>e===document.documentElement?window:e;var tN=(e,{container:t=document.documentElement}={})=>{let r=tF.get(t);if(!r){r=/* @__PURE__ */new Set;tF.set(t,r)}const n=new tD(e,t);r.add(n);if(!tP.has(t)){const e=()=>{r?.forEach(e=>e.advance());return true};tP.set(t,e);const n=tH(t);window.addEventListener("resize",e,{passive:true});if(t!==document.documentElement){t$.set(t,tT(e,{container:t}))}n.addEventListener("scroll",e,{passive:true})}const a=tP.get(t);raf3(a);return()=>{raf3.cancel(a);const e=tF.get(t);if(!e)return;e.delete(n);if(e.size)return;const r=tP.get(t);tP.delete(t);if(r){tH(t).removeEventListener("scroll",r);window.removeEventListener("resize",r);t$.get(t)?.()}}};// src/hooks/useConstant.ts
function tz(e){const t=useRef(null);if(t.current===null){t.current=e()}return t.current}// src/hooks/useForceUpdate.ts
// src/hooks/useIsMounted.ts
// src/hooks/useIsomorphicLayoutEffect.ts
var tj=eu()?t.useEffect:t.useLayoutEffect;// src/hooks/useIsMounted.ts
var tL=()=>{const e=(0,t.useRef)(false);tj(()=>{e.current=true;return()=>{e.current=false}},[]);return e};// src/hooks/useForceUpdate.ts
function tU(){const e=(0,t.useState)()[1];const r=tL();return()=>{if(r.current){e(Math.random())}}}// src/hooks/useMemoOne.ts
function tB(e,r){const[n]=(0,t.useState)(()=>({inputs:r,result:e()}));const a=(0,t.useRef)();const o=a.current;let i=o;if(i){const t=Boolean(r&&i.inputs&&tK(r,i.inputs));if(!t){i={inputs:r,result:e()}}}else{i=n}(0,t.useEffect)(()=>{a.current=i;if(o==n){n.inputs=n.result=void 0}},[i]);return i.result}function tK(e,t){if(e.length!==t.length){return false}for(let r=0;r<e.length;r++){if(e[r]!==t[r]){return false}}return true}// src/hooks/useOnce.ts
var tW=e=>(0,t.useEffect)(e,tV);var tV=[];// src/hooks/usePrev.ts
function tq(e){const r=(0,t.useRef)();(0,t.useEffect)(()=>{r.current=e});return r.current}// src/hooks/useReducedMotion.ts
var tG=()=>{const[e,t]=useState3(null);tj(()=>{const e=window.matchMedia("(prefers-reduced-motion)");const r=e=>{t(e.matches);ev({skipAnimation:e.matches})};r(e);if(e.addEventListener){e.addEventListener("change",r)}else{e.addListener(r)}return()=>{if(e.removeEventListener){e.removeEventListener("change",r)}else{e.removeListener(r)}}},[]);return e};// src/index.ts
//# sourceMappingURL=react-spring_shared.modern.mjs.map
;// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@react-spring+animated@9.7.5_react@18.3.1/node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs
// src/Animated.ts
var tQ=Symbol.for("Animated:node");var tJ=e=>!!e&&e[tQ]===e;var tX=e=>e&&e[tQ];var tZ=(e,t)=>et(e,tQ,t);var t0=e=>e&&e[tQ]&&e[tQ].getPayload();var t1=class{constructor(){tZ(this,this)}/** Get every `AnimatedValue` used by this node. */getPayload(){return this.payload||[]}};// src/AnimatedValue.ts
var t2=class extends t1{constructor(e){super();this._value=e;this.done=true;this.durationProgress=0;if(er.num(this._value)){this.lastPosition=this._value}}/** @internal */static create(e){return new t2(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){if(er.num(e)){this.lastPosition=e;if(t){e=Math.round(e/t)*t;if(this.done){this.lastPosition=e}}}if(this._value===e){return false}this._value=e;return true}reset(){const{done:e}=this;this.done=false;if(er.num(this._value)){this.elapsedTime=0;this.durationProgress=0;this.lastPosition=this._value;if(e)this.lastVelocity=null;this.v0=null}}};// src/AnimatedString.ts
var t6=class extends t2{constructor(e){super(0);this._string=null;this._toString=eV({output:[e,e]})}/** @internal */static create(e){return new t6(e)}getValue(){const e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(er.str(e)){if(e==this._string){return false}this._string=e;this._value=1}else if(super.setValue(e)){this._string=null}else{return false}return true}reset(e){if(e){this._toString=eV({output:[this.getValue(),e]})}this._value=0;super.reset()}};// src/AnimatedArray.ts
// src/AnimatedObject.ts
// src/context.ts
var t5={dependencies:null};// src/AnimatedObject.ts
var t4=class extends t1{constructor(e){super();this.source=e;this.setValue(e)}getValue(e){const t={};eo(this.source,(r,n)=>{if(tJ(r)){t[n]=r.getValue(e)}else if(e3(r)){t[n]=e8(r)}else if(!e){t[n]=r}});return t}/** Replace the raw object data */setValue(e){this.source=e;this.payload=this._makePayload(e)}reset(){if(this.payload){ea(this.payload,e=>e.reset())}}/** Create a payload set. */_makePayload(e){if(e){const t=/* @__PURE__ */new Set;eo(e,this._addToPayload,t);return Array.from(t)}}/** Add to a payload set. */_addToPayload(e){if(t5.dependencies&&e3(e)){t5.dependencies.add(e)}const t=t0(e);if(t){ea(t,e=>this.add(e))}}};// src/AnimatedArray.ts
var t3=class extends t4{constructor(e){super(e)}/** @internal */static create(e){return new t3(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();if(e.length==t.length){return t.map((t,r)=>t.setValue(e[r])).some(Boolean)}super.setValue(e.map(t8));return true}};function t8(e){const t=tw(e)?t6:t2;return t.create(e)}// src/getAnimatedType.ts
function t9(e){const t=tX(e);return t?t.constructor:er.arr(e)?t3:tw(e)?t6:t2}// src/createHost.ts
// src/withAnimated.tsx
var t7=(e,r)=>{const n=// Function components must use "forwardRef" to avoid being
// re-rendered on every animation frame.
!er.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,t.forwardRef)((a,o)=>{const i=(0,t.useRef)(null);const s=n&&// eslint-disable-next-line react-hooks/rules-of-hooks
(0,t.useCallback)(e=>{i.current=rr(o,e)},[o]);const[c,u]=rt(a,r);const l=tU();const f=()=>{const e=i.current;if(n&&!e){return}const t=e?r.applyAnimatedValues(e,c.getValue(true)):false;if(t===false){l()}};const d=new re(f,u);const p=(0,t.useRef)();tj(()=>{p.current=d;ea(u,e=>tn(e,d));return()=>{if(p.current){ea(p.current.deps,e=>ta(e,p.current));Y.cancel(p.current.update)}}});(0,t.useEffect)(f,[]);tW(()=>()=>{const e=p.current;ea(e.deps,t=>ta(t,e))});const h=r.getComponentProps(c.getValue());return /* @__PURE__ */t.createElement(e,{...h,ref:s})})};var re=class{constructor(e,t){this.update=e;this.deps=t}eventObserved(e){if(e.type=="change"){Y.write(this.update)}}};function rt(e,t){const r=/* @__PURE__ */new Set;t5.dependencies=r;if(e.style)e={...e,style:t.createAnimatedStyle(e.style)};e=new t4(e);t5.dependencies=null;return[e,r]}function rr(e,t){if(e){if(er.fun(e))e(t);else e.current=t}return t}// src/createHost.ts
var rn=Symbol.for("AnimatedComponent");var ra=(e,{applyAnimatedValues:t=()=>false,createAnimatedStyle:r=e=>new t4(e),getComponentProps:n=e=>e}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n};const o=e=>{const t=ro(e)||"Anonymous";if(er.str(e)){e=o[e]||(o[e]=t7(e,a))}else{e=e[rn]||(e[rn]=t7(e,a))}e.displayName=`Animated(${t})`;return e};eo(e,(t,r)=>{if(er.arr(e)){r=ro(t)}o[r]=o(t)});return{animated:o}};var ro=e=>er.str(e)?e:e&&er.str(e.displayName)?e.displayName:er.fun(e)&&e.name||null;//# sourceMappingURL=react-spring_animated.modern.mjs.map
;// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@react-spring+core@9.7.5_react@18.3.1/node_modules/@react-spring/core/dist/react-spring_core.modern.mjs
// src/hooks/useChain.ts
// src/helpers.ts
function ri(e,...t){return er.fun(e)?e(...t):e}var rs=(e,t)=>e===true||!!(t&&e&&(er.fun(e)?e(t):ei(e).includes(t)));var rc=(e,t)=>er.obj(e)?t&&e[t]:e;var ru=(e,t)=>e.default===true?e[t]:e.default?e.default[t]:void 0;var rl=e=>e;var rf=(e,t=rl)=>{let r=rd;if(e.default&&e.default!==true){e=e.default;r=Object.keys(e)}const n={};for(const a of r){const r=t(e[a],a);if(!er.und(r)){n[a]=r}}return n};var rd=["config","onProps","onStart","onChange","onPause","onResume","onRest"];var rp={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,// Transition props
items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,// Internal props
keys:1,callId:1,parentId:1};function rh(e){const t={};let r=0;eo(e,(e,n)=>{if(!rp[n]){t[n]=e;r++}});if(r){return t}}function rv(e){const t=rh(e);if(t){const r={to:t};eo(e,(e,n)=>n in t||(r[n]=e));return r}return{...e}}function rm(e){e=e8(e);return er.arr(e)?e.map(rm):tw(e)?Z.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rg(e){for(const t in e)return true;return false}function rb(e){return er.fun(e)||er.arr(e)&&er.obj(e[0])}function ry(e,t){e.ref?.delete(e);t?.delete(e)}function r_(e,t){if(t&&e.ref!==t){e.ref?.delete(e);t.add(e);e.ref=t}}// src/hooks/useChain.ts
function rx(e,t,r=1e3){useIsomorphicLayoutEffect(()=>{if(t){let n=0;each(e,(e,a)=>{const o=e.current;if(o.length){let i=r*t[a];if(isNaN(i))i=n;else n=i;each(o,e=>{each(e.queue,e=>{const t=e.delay;e.delay=e=>i+ri(t||0,e)})});e.start()}})}else{let t=Promise.resolve();each(e,e=>{const r=e.current;if(r.length){const n=r.map(e=>{const t=e.queue;e.queue=[];return t});t=t.then(()=>{each(r,(e,t)=>each(n[t]||[],t=>e.queue.push(t)));return Promise.all(e.start())})}})}})}// src/hooks/useSpring.ts
// src/hooks/useSprings.ts
// src/SpringValue.ts
// src/AnimationConfig.ts
// src/constants.ts
var rw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};// src/AnimationConfig.ts
var rk={...rw.default,mass:1,damping:1,easing:e6.linear,clamp:false};var rA=class{constructor(){/**
     * The initial velocity of one or more values.
     *
     * @default 0
     */this.velocity=0;Object.assign(this,rk)}};function rE(e,t,r){if(r){r={...r};rO(r,t);t={...r,...t}}rO(e,t);Object.assign(e,t);for(const t in rk){if(e[t]==null){e[t]=rk[t]}}let{frequency:n,damping:a}=e;const{mass:o}=e;if(!er.und(n)){if(n<.01)n=.01;if(a<0)a=0;e.tension=Math.pow(2*Math.PI/n,2)*o;e.friction=4*Math.PI*a*o/n}return e}function rO(e,t){if(!er.und(t.decay)){e.duration=void 0}else{const r=!er.und(t.tension)||!er.und(t.friction);if(r||!er.und(t.frequency)||!er.und(t.damping)||!er.und(t.mass)){e.duration=void 0;e.decay=void 0}if(r){e.frequency=void 0}}}// src/Animation.ts
var rS=[];var rI=class{constructor(){this.changed=false;this.values=rS;this.toValues=null;this.fromValues=rS;this.config=new rA;this.immediate=false}};// src/scheduleProps.ts
function rM(e,{key:t,props:r,defaultProps:n,state:a,actions:o}){return new Promise((i,s)=>{let c;let u;let l=rs(r.cancel??n?.cancel,t);if(l){p()}else{if(!er.und(r.pause)){a.paused=rs(r.pause,t)}let e=n?.pause;if(e!==true){e=a.paused||rs(e,t)}c=ri(r.delay||0,t);if(e){a.resumeQueue.add(d);o.pause()}else{o.resume();d()}}function f(){a.resumeQueue.add(d);a.timeouts.delete(u);u.cancel();c=u.time-Y.now()}function d(){if(c>0&&!Z.skipAnimation){a.delayed=true;u=Y.setTimeout(p,c);a.pauseQueue.add(f);a.timeouts.add(u)}else{p()}}function p(){if(a.delayed){a.delayed=false}a.pauseQueue.delete(f);a.timeouts.delete(u);if(e<=(a.cancelId||0)){l=true}try{o.start({...r,callId:e,cancel:l},i)}catch(e){s(e)}}})}// src/runAsync.ts
// src/AnimationResult.ts
var rC=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?rR(e.get()):t.every(e=>e.noop)?rT(e.get()):rY(e.get(),t.every(e=>e.finished));var rT=e=>({value:e,noop:true,finished:true,cancelled:false});var rY=(e,t,r=false)=>({value:e,finished:t,cancelled:r});var rR=e=>({value:e,cancelled:true,finished:false});// src/runAsync.ts
function rD(e,t,r,n){const{callId:a,parentId:o,onRest:i}=t;const{asyncTo:s,promise:c}=r;if(!o&&e===s&&!t.reset){return c}return r.promise=(async()=>{r.asyncId=a;r.asyncTo=e;const u=rf(t,(e,t)=>// The `onRest` prop is only called when the `runAsync` promise is resolved.
    t==="onRest"?void 0:e);let l;let f;const d=new Promise((e,t)=>(l=e,f=t));const p=e=>{const t=// The `cancel` prop or `stop` method was used.
a<=(r.cancelId||0)&&rR(n)||// The async `to` prop was replaced.
a!==r.asyncId&&rY(n,false);if(t){e.result=t;f(e);throw e}};const h=(e,t)=>{const o=new r$;const i=new rF;return(async()=>{if(Z.skipAnimation){rP(r);i.result=rY(n,false);f(i);throw i}p(o);const s=er.obj(e)?{...e}:{...t,to:e};s.parentId=a;eo(u,(e,t)=>{if(er.und(s[t])){s[t]=e}});const c=await n.start(s);p(o);if(r.paused){await new Promise(e=>{r.resumeQueue.add(e)})}return c})()};let v;if(Z.skipAnimation){rP(r);return rY(n,false)}try{let t;if(er.arr(e)){t=(async e=>{for(const t of e){await h(t)}})(e)}else{t=Promise.resolve(e(h,n.stop.bind(n)))}await Promise.all([t.then(l),d]);v=rY(n.get(),true,false)}catch(e){if(e instanceof r$){v=e.result}else if(e instanceof rF){v=e.result}else{throw e}}finally{if(a==r.asyncId){r.asyncId=o;r.asyncTo=o?s:void 0;r.promise=o?c:void 0}}if(er.fun(i)){Y.batchedUpdates(()=>{i(v,n,n.item)})}return v})()}function rP(e,t){es(e.timeouts,e=>e.cancel());e.pauseQueue.clear();e.resumeQueue.clear();e.asyncId=e.asyncTo=e.promise=void 0;if(t)e.cancelId=t}var r$=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}};var rF=class extends Error{constructor(){super("SkipAnimationSignal")}};// src/FrameValue.ts
var rH=e=>e instanceof rz;var rN=1;var rz=class extends tt{constructor(){super(...arguments);this.id=rN++;this._priority=0}get priority(){return this._priority}set priority(e){if(this._priority!=e){this._priority=e;this._onPriorityChange(e)}}/** Get the current value */get(){const e=tX(this);return e&&e.getValue()}/** Create a spring that maps our value to another value */to(...e){return Z.to(this,e)}/** @deprecated Use the `to` method instead. */interpolate(...e){ty();return Z.to(this,e)}toJSON(){return this.get()}observerAdded(e){if(e==1)this._attach()}observerRemoved(e){if(e==0)this._detach()}/** Called when the first child is added. */_attach(){}/** Called when the last child is removed. */_detach(){}/** Tell our children about our new value */_onChange(e,t=false){te(this,{type:"change",parent:this,value:e,idle:t})}/** Tell our children about our new priority */_onPriorityChange(e){if(!this.idle){e_.sort(this)}te(this,{type:"priority",parent:this,priority:e})}};// src/SpringPhase.ts
var rj=Symbol.for("SpringPhase");var rL=1;var rU=2;var rB=4;var rK=e=>(e[rj]&rL)>0;var rW=e=>(e[rj]&rU)>0;var rV=e=>(e[rj]&rB)>0;var rq=(e,t)=>t?e[rj]|=rU|rL:e[rj]&=~rU;var rG=(e,t)=>t?e[rj]|=rB:e[rj]&=~rB;// src/SpringValue.ts
var rQ=class extends rz{constructor(e,t){super();/** The animation state */this.animation=new rI;/** Some props have customizable default values */this.defaultProps={};/** The state for `runAsync` calls */this._state={paused:false,delayed:false,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set};/** The promise resolvers of pending `start` calls */this._pendingCalls=/* @__PURE__ */new Set;/** The counter for tracking `scheduleProps` calls */this._lastCallId=0;/** The last `scheduleProps` call that changed the `to` prop */this._lastToId=0;this._memoizedDuration=0;if(!er.und(e)||!er.und(t)){const r=er.obj(e)?{...e}:{...t,from:e};if(er.und(r.default)){r.default=true}this.start(r)}}/** Equals true when not advancing on each frame. */get idle(){return!(rW(this)||this._state.asyncTo)||rV(this)}get goal(){return e8(this.animation.to)}get velocity(){const e=tX(this);return e instanceof t2?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}/**
   * When true, this value has been animated at least once.
   */get hasAnimated(){return rK(this)}/**
   * When true, this value has an unfinished animation,
   * which is either active or paused.
   */get isAnimating(){return rW(this)}/**
   * When true, all current and future animations are paused.
   */get isPaused(){return rV(this)}/**
   *
   *
   */get isDelayed(){return this._state.delayed}/** Advance the current animation by a number of milliseconds */advance(e){let t=true;let r=false;const n=this.animation;let{toValues:a}=n;const{config:o}=n;const i=t0(n.to);if(!i&&e3(n.to)){a=ei(e8(n.to))}n.values.forEach((s,c)=>{if(s.done)return;const u=// Animated strings always go from 0 to 1.
s.constructor==t6?1:i?i[c].lastPosition:a[c];let l=n.immediate;let f=u;if(!l){f=s.lastPosition;if(o.tension<=0){s.done=true;return}let t=s.elapsedTime+=e;const r=n.fromValues[c];const a=s.v0!=null?s.v0:s.v0=er.arr(o.velocity)?o.velocity[c]:o.velocity;let i;const d=o.precision||(r==u?.005:Math.min(1,Math.abs(u-r)*.001));if(!er.und(o.duration)){let n=1;if(o.duration>0){if(this._memoizedDuration!==o.duration){this._memoizedDuration=o.duration;if(s.durationProgress>0){s.elapsedTime=o.duration*s.durationProgress;t=s.elapsedTime+=e}}n=(o.progress||0)+t/this._memoizedDuration;n=n>1?1:n<0?0:n;s.durationProgress=n}f=r+o.easing(n)*(u-r);i=(f-s.lastPosition)/e;l=n==1}else if(o.decay){const e=o.decay===true?.998:o.decay;const n=Math.exp(-(1-e)*t);f=r+a/(1-e)*(1-n);l=Math.abs(s.lastPosition-f)<=d;i=a*n}else{i=s.lastVelocity==null?a:s.lastVelocity;const t=o.restVelocity||d/10;const n=o.clamp?0:o.bounce;const c=!er.und(n);const p=r==u?s.v0>0:r<u;let h;let v=false;const m=1;const g=Math.ceil(e/m);for(let e=0;e<g;++e){h=Math.abs(i)>t;if(!h){l=Math.abs(u-f)<=d;if(l){break}}if(c){v=f==u||f>u==p;if(v){i=-i*n;f=u}}const e=-o.tension*1e-6*(f-u);const r=-o.friction*.001*i;const a=(e+r)/o.mass;i=i+a*m;f=f+i*m}}s.lastVelocity=i;if(Number.isNaN(f)){console.warn(`Got NaN while animating:`,this);l=true}}if(i&&!i[c].done){l=false}if(l){s.done=true}else{t=false}if(s.setValue(f,o.round)){r=true}});const s=tX(this);const c=s.getValue();if(t){const e=e8(n.to);if((c!==e||r)&&!o.decay){s.setValue(e);this._onChange(e)}else if(r&&o.decay){this._onChange(c)}this._stop()}else if(r){this._onChange(c)}}/** Set the current value, while stopping the current animation */set(e){Y.batchedUpdates(()=>{this._stop();this._focus(e);this._set(e)});return this}/**
   * Freeze the active animation in time, as well as any updates merged
   * before `resume` is called.
   */pause(){this._update({pause:true})}/** Resume the animation if paused. */resume(){this._update({pause:false})}/** Skip to the end of the current animation. */finish(){if(rW(this)){const{to:e,config:t}=this.animation;Y.batchedUpdates(()=>{this._onStart();if(!t.decay){this._set(e,false)}this._stop()})}return this}/** Push props into the pending queue. */update(e){const t=this.queue||(this.queue=[]);t.push(e);return this}start(e,t){let r;if(!er.und(e)){r=[er.obj(e)?e:{...t,to:e}]}else{r=this.queue||[];this.queue=[]}return Promise.all(r.map(e=>{const t=this._update(e);return t})).then(e=>rC(this,e))}/**
   * Stop the current animation, and cancel any delayed updates.
   *
   * Pass `true` to call `onRest` with `cancelled: true`.
   */stop(e){const{to:t}=this.animation;this._focus(this.get());rP(this._state,e&&this._lastCallId);Y.batchedUpdates(()=>this._stop(t,e));return this}/** Restart the animation. */reset(){this._update({reset:true})}/** @internal */eventObserved(e){if(e.type=="change"){this._start()}else if(e.type=="priority"){this.priority=e.priority+1}}/**
   * Parse the `to` and `from` range from the given `props` object.
   *
   * This also ensures the initial value is available to animated components
   * during the render phase.
   */_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=er.obj(r)?r[t]:r;if(r==null||rb(r)){r=void 0}n=er.obj(n)?n[t]:n;if(n==null){n=void 0}const a={to:r,from:n};if(!rK(this)){if(e.reverse)[r,n]=[n,r];n=e8(n);if(!er.und(n)){this._set(n)}else if(!tX(this)){this._set(r)}}return a}/** Every update is processed by this method before merging. */_update({...e},t){const{key:r,defaultProps:n}=this;if(e.default)Object.assign(n,rf(e,(e,t)=>/^on/.test(t)?rc(e,r):e));r6(this,e,"onProps");r5(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this)){throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?")}const o=this._state;return rM(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{if(!rV(this)){rG(this,true);ec(o.pauseQueue);r5(this,"onPause",rY(this,rJ(this,this.animation.to)),this)}},resume:()=>{if(rV(this)){rG(this,false);if(rW(this)){this._resume()}ec(o.resumeQueue);r5(this,"onResume",rY(this,rJ(this,this.animation.to)),this)}},start:this._merge.bind(this,a)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){const t=rX(e);if(t){return this._update(t,true)}}return r})}/** Merge props into the current animation */_merge(e,t,r){if(t.cancel){this.stop(true);return r(rR(this))}const n=!er.und(e.to);const a=!er.und(e.from);if(n||a){if(t.callId>this._lastToId){this._lastToId=t.callId}else{return r(rR(this))}}const{key:o,defaultProps:i,animation:s}=this;const{to:c,from:u}=s;let{to:l=c,from:f=u}=e;if(a&&!n&&(!t.default||er.und(l))){l=f}if(t.reverse)[l,f]=[f,l];const d=!en(f,u);if(d){s.from=f}f=e8(f);const p=!en(l,c);if(p){this._focus(l)}const h=rb(t.to);const{config:v}=s;const{decay:m,velocity:g}=v;if(n||a){v.velocity=0}if(t.config&&!h){rE(v,ri(t.config,o),// Avoid calling the same "config" prop twice.
t.config!==i.config?ri(i.config,o):void 0)}let b=tX(this);if(!b||er.und(l)){return r(rY(this,true))}const y=// When `reset` is undefined, the `from` prop implies `reset: true`,
// except for declarative updates. When `reset` is defined, there
// must exist a value to animate from.
er.und(t.reset)?a&&!t.default:!er.und(f)&&rs(t.reset,o);const _=y?f:this.get();const x=rm(l);const w=er.num(x)||er.arr(x)||tw(x);const k=!h&&(!w||rs(i.immediate||t.immediate,o));if(p){const e=t9(l);if(e!==b.constructor){if(k){b=this._set(x)}else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}const A=b.constructor;let E=e3(l);let O=false;if(!E){const e=y||!rK(this)&&d;if(p||e){O=en(rm(_),x);E=!O}if(!en(s.immediate,k)&&!k||!en(v.decay,m)||!en(v.velocity,g)){E=true}}if(O&&rW(this)){if(s.changed&&!y){E=true}else if(!E){this._stop(c)}}if(!h){if(E||e3(c)){s.values=b.getPayload();s.toValues=e3(l)?null:A==t6?[1]:ei(x)}if(s.immediate!=k){s.immediate=k;if(!k&&!y){this._set(c)}}if(E){const{onRest:e}=s;ea(r2,e=>r6(this,t,e));const n=rY(this,rJ(this,c));ec(this._pendingCalls,n);this._pendingCalls.add(r);if(s.changed)Y.batchedUpdates(()=>{s.changed=!y;e?.(n,this);if(y){ri(i.onRest,n)}else{s.onStart?.(n,this)}})}}if(y){this._set(_)}if(h){r(rD(t.to,t,this._state,this))}else if(E){this._start()}else if(rW(this)&&!p){this._pendingCalls.add(r)}else{r(rT(_))}}/** Update the `animation.to` value, which might be a `FluidValue` */_focus(e){const t=this.animation;if(e!==t.to){if(e9(this)){this._detach()}t.to=e;if(e9(this)){this._attach()}}}_attach(){let e=0;const{to:t}=this.animation;if(e3(t)){tn(t,this);if(rH(t)){e=t.priority+1}}this.priority=e}_detach(){const{to:e}=this.animation;if(e3(e)){ta(e,this)}}/**
   * Update the current value from outside the frameloop,
   * and return the `Animated` node.
   */_set(e,t=true){const r=e8(e);if(!er.und(r)){const e=tX(this);if(!e||!en(r,e.getValue())){const n=t9(r);if(!e||e.constructor!=n){tZ(this,n.create(r))}else{e.setValue(r)}if(e){Y.batchedUpdates(()=>{this._onChange(r,t)})}}}return tX(this)}_onStart(){const e=this.animation;if(!e.changed){e.changed=true;r5(this,"onStart",rY(this,rJ(this,e.to)),this)}}_onChange(e,t){if(!t){this._onStart();ri(this.animation.onChange,e,this)}ri(this.defaultProps.onChange,e,this);super._onChange(e,t)}// This method resets the animation state (even if already animating) to
// ensure the latest from/to range is used, and it also ensures this spring
// is added to the frameloop.
_start(){const e=this.animation;tX(this).reset(e8(e.to));if(!e.immediate){e.fromValues=e.values.map(e=>e.lastPosition)}if(!rW(this)){rq(this,true);if(!rV(this)){this._resume()}}}_resume(){if(Z.skipAnimation){this.finish()}else{e_.start(this)}}/**
   * Exit the frameloop and notify `onRest` listeners.
   *
   * Always wrap `_stop` calls with `batchedUpdates`.
   */_stop(e,t){if(rW(this)){rq(this,false);const r=this.animation;ea(r.values,e=>{e.done=true});if(r.toValues){r.onChange=r.onPause=r.onResume=void 0}te(this,{type:"idle",parent:this});const n=t?rR(this.get()):rY(this.get(),rJ(this,e??r.to));ec(this._pendingCalls,n);if(r.changed){r.changed=false;r5(this,"onRest",n,this)}}}};function rJ(e,t){const r=rm(t);const n=rm(e.get());return en(n,r)}function rX(e,t=e.loop,r=e.to){const n=ri(t);if(n){const a=n!==true&&rv(n);const o=(a||e).reverse;const i=!a||a.reset;return rZ({...e,loop:t,// Avoid updating default props when looping.
default:false,// Never loop the `pause` prop.
pause:void 0,// For the "reverse" prop to loop as expected, the "to" prop
// must be undefined. The "reverse" prop is ignored when the
// "to" prop is an array or function.
to:!o||rb(r)?r:void 0,// Ignore the "from" prop except on reset.
from:i?e.from:void 0,reset:i,// The "loop" prop can return a "useSpring" props object to
// override any of the original props.
...a})}}function rZ(e){const{to:t,from:r}=e=rv(e);const n=/* @__PURE__ */new Set;if(er.obj(t))r1(t,n);if(er.obj(r))r1(r,n);e.keys=n.size?Array.from(n):null;return e}function r0(e){const t=rZ(e);if(er.und(t.default)){t.default=rf(t)}return t}function r1(e,t){eo(e,(e,r)=>e!=null&&t.add(r))}var r2=["onStart","onRest","onChange","onPause","onResume"];function r6(e,t,r){e.animation[r]=t[r]!==ru(t,r)?rc(t[r],e.key):void 0}function r5(e,t,...r){e.animation[t]?.(...r);e.defaultProps[t]?.(...r)}// src/Controller.ts
var r4=["onStart","onChange","onRest"];var r3=1;var r8=class{constructor(e,t){this.id=r3++;/** The animated values */this.springs={};/** The queue of props passed to the `update` method. */this.queue=[];/** The counter for tracking `scheduleProps` calls */this._lastAsyncId=0;/** The values currently being animated */this._active=/* @__PURE__ */new Set;/** The values that changed recently */this._changed=/* @__PURE__ */new Set;/** Equals false when `onStart` listeners can be called */this._started=false;/** State used by the `runAsync` function */this._state={paused:false,pauseQueue:/* @__PURE__ */new Set,resumeQueue:/* @__PURE__ */new Set,timeouts:/* @__PURE__ */new Set};/** The event queues that are flushed once per frame maximum */this._events={onStart:/* @__PURE__ */new Map,onChange:/* @__PURE__ */new Map,onRest:/* @__PURE__ */new Map};this._onFrame=this._onFrame.bind(this);if(t){this._flush=t}if(e){this.start({default:true,...e})}}/**
   * Equals `true` when no spring values are in the frameloop, and
   * no async animation is currently active.
   */get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>{return e.idle&&!e.isDelayed&&!e.isPaused})}get item(){return this._item}set item(e){this._item=e}/** Get the current values of our springs */get(){const e={};this.each((t,r)=>e[r]=t.get());return e}/** Set the current values without animating. */set(e){for(const t in e){const r=e[t];if(!er.und(r)){this.springs[t].set(r)}}}/** Push an update onto the queue of each value. */update(e){if(e){this.queue.push(rZ(e))}return this}/**
   * Start the queued animations for every spring, and resolve the returned
   * promise once all queued animations have finished or been cancelled.
   *
   * When you pass a queue (instead of nothing), that queue is used instead of
   * the queued animations added with the `update` method, which are left alone.
   */start(e){let{queue:t}=this;if(e){t=ei(e).map(rZ)}else{this.queue=[]}if(this._flush){return this._flush(this,t)}na(this,t);return r9(this,t)}/** @internal */stop(e,t){if(e!==!!e){t=e}if(t){const r=this.springs;ea(ei(t),t=>r[t].stop(!!e))}else{rP(this._state,this._lastAsyncId);this.each(t=>t.stop(!!e))}return this}/** Freeze the active animation in time */pause(e){if(er.und(e)){this.start({pause:true})}else{const t=this.springs;ea(ei(e),e=>t[e].pause())}return this}/** Resume the animation if paused. */resume(e){if(er.und(e)){this.start({pause:false})}else{const t=this.springs;ea(ei(e),e=>t[e].resume())}return this}/** Call a function once per spring value */each(e){eo(this.springs,e)}/** @internal Called at the end of every animation frame */_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events;const n=this._active.size>0;const a=this._changed.size>0;if(n&&!this._started||a&&!this._started){this._started=true;es(e,([e,t])=>{t.value=this.get();e(t,this,this._item)})}const o=!n&&this._started;const i=a||o&&r.size?this.get():null;if(a&&t.size){es(t,([e,t])=>{t.value=i;e(t,this,this._item)})}if(o){this._started=false;es(r,([e,t])=>{t.value=i;e(t,this,this._item)})}}/** @internal */eventObserved(e){if(e.type=="change"){this._changed.add(e.parent);if(!e.idle){this._active.add(e.parent)}}else if(e.type=="idle"){this._active.delete(e.parent)}else return;Y.onFrame(this._onFrame)}};function r9(e,t){return Promise.all(t.map(t=>r7(e,t))).then(t=>rC(e,t))}async function r7(e,t,r){const{keys:n,to:a,from:o,loop:i,onRest:s,onResolve:c}=t;const u=er.obj(t.default)&&t.default;if(i){t.loop=false}if(a===false)t.to=null;if(o===false)t.from=null;const l=er.arr(a)||er.fun(a)?a:void 0;if(l){t.to=void 0;t.onRest=void 0;if(u){u.onRest=void 0}}else{ea(r4,r=>{const n=t[r];if(er.fun(n)){const a=e["_events"][r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);if(r){if(!e)r.finished=false;if(t)r.cancelled=true}else{a.set(n,{value:null,finished:e||false,cancelled:t||false})}};if(u){u[r]=t[r]}}})}const f=e["_state"];if(t.pause===!f.paused){f.paused=t.pause;ec(t.pause?f.pauseQueue:f.resumeQueue)}else if(f.paused){t.pause=true}const d=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t));const p=t.cancel===true||ru(t,"cancel")===true;if(l||p&&f.asyncId){d.push(rM(++e["_lastAsyncId"],{props:t,state:f,actions:{pause:ee,resume:ee,start(t,r){if(p){rP(f,e["_lastAsyncId"]);r(rR(e))}else{t.onRest=s;r(rD(l,t,f,e))}}}}))}if(f.paused){await new Promise(e=>{f.resumeQueue.add(e)})}const h=rC(e,await Promise.all(d));if(i&&h.finished&&!(r&&h.noop)){const r=rX(t,i,a);if(r){na(e,[r]);return r7(e,r,true)}}if(c){Y.batchedUpdates(()=>c(h,e,e.item))}return h}function ne(e,t){const r={...e.springs};if(t){ea(ei(t),e=>{if(er.und(e.keys)){e=rZ(e)}if(!er.obj(e.to)){e={...e,to:void 0}}nn(r,e,e=>{return nr(e)})})}nt(e,r);return r}function nt(e,t){eo(t,(t,r)=>{if(!e.springs[r]){e.springs[r]=t;tn(t,e)}})}function nr(e,t){const r=new rQ;r.key=e;if(t){tn(r,t)}return r}function nn(e,t,r){if(t.keys){ea(t.keys,n=>{const a=e[n]||(e[n]=r(n));a["_prepareNode"](t)})}}function na(e,t){ea(t,t=>{nn(e.springs,t,t=>{return nr(t,e)})})}// src/SpringContext.tsx
var no=({children:e,...r})=>{const n=(0,t.useContext)(ni);const a=r.pause||!!n.pause,o=r.immediate||!!n.immediate;r=tB(()=>({pause:a,immediate:o}),[a,o]);const{Provider:i}=ni;return /* @__PURE__ */t.createElement(i,{value:r},e)};var ni=ns(no,{});no.Provider=ni.Provider;no.Consumer=ni.Consumer;function ns(e,r){Object.assign(e,t.createContext(r));e.Provider._context=e;e.Consumer._context=e;return e}// src/SpringRef.ts
var nc=()=>{const e=[];const t=function(t){tx();const n=[];ea(e,(e,a)=>{if(er.und(t)){n.push(e.start())}else{const o=r(t,e,a);if(o){n.push(e.start(o))}}});return n};t.current=e;t.add=function(t){if(!e.includes(t)){e.push(t)}};t.delete=function(t){const r=e.indexOf(t);if(~r)e.splice(r,1)};t.pause=function(){ea(e,e=>e.pause(...arguments));return this};t.resume=function(){ea(e,e=>e.resume(...arguments));return this};t.set=function(t){ea(e,(e,r)=>{const n=er.fun(t)?t(r,e):t;if(n){e.set(n)}})};t.start=function(t){const r=[];ea(e,(e,n)=>{if(er.und(t)){r.push(e.start())}else{const a=this._getProps(t,e,n);if(a){r.push(e.start(a))}}});return r};t.stop=function(){ea(e,e=>e.stop(...arguments));return this};t.update=function(t){ea(e,(e,r)=>e.update(this._getProps(t,e,r)));return this};const r=function(e,t,r){return er.fun(e)?e(r,t):e};t._getProps=r;return t};// src/hooks/useSprings.ts
function nu(e,r,n){const a=er.fun(r)&&r;if(a&&!n)n=[];const o=(0,t.useMemo)(()=>a||arguments.length==3?nc():void 0,[]);const i=(0,t.useRef)(0);const s=tU();const c=(0,t.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const r=ne(e,t);const n=i.current>0&&!c.queue.length&&!Object.keys(r).some(t=>!e.springs[t]);return n?r9(e,t):new Promise(n=>{nt(e,r);c.queue.push(()=>{n(r9(e,t))});s()})}}),[]);const u=(0,t.useRef)([...c.ctrls]);const l=[];const f=tq(e)||0;(0,t.useMemo)(()=>{ea(u.current.slice(e,f),e=>{ry(e,o);e.stop(true)});u.current.length=e;d(f,e)},[e]);(0,t.useMemo)(()=>{d(0,Math.min(f,e))},n);function d(e,t){for(let n=e;n<t;n++){const e=u.current[n]||(u.current[n]=new r8(null,c.flush));const t=a?a(n,e):r[n];if(t){l[n]=r0(t)}}}const p=u.current.map((e,t)=>ne(e,l[t]));const h=(0,t.useContext)(no);const v=tq(h);const m=h!==v&&rg(h);tj(()=>{i.current++;c.ctrls=u.current;const{queue:e}=c;if(e.length){c.queue=[];ea(e,e=>e())}ea(u.current,(e,t)=>{o?.add(e);if(m){e.start({default:h})}const r=l[t];if(r){r_(e,r.ref);if(e.ref){e.queue.push(r)}else{e.start(r)}}})});tW(()=>()=>{ea(c.ctrls,e=>e.stop(true))});const g=p.map(e=>({...e}));return o?[g,o]:g}// src/hooks/useSpring.ts
function nl(e,t){const r=er.fun(e);const[[n],a]=nu(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[n,a]:n}// src/hooks/useSpringRef.ts
var nf=()=>nc();var nd=()=>useState(nf)[0];// src/hooks/useSpringValue.ts
var np=(e,t)=>{const r=useConstant(()=>new rQ(e,t));useOnce2(()=>()=>{r.stop()});return r};// src/hooks/useTrail.ts
function nh(e,t,r){const n=is10.fun(t)&&t;if(n&&!r)r=[];let a=true;let o=void 0;const i=nu(e,(e,r)=>{const i=n?n(e,r):t;o=i.ref;a=a&&i.reverse;return i},// Ensure the props function is called when no deps exist.
// This works around the 3 argument rule.
r||[{}]);useIsomorphicLayoutEffect3(()=>{each6(i[1].current,(e,t)=>{const r=i[1].current[t+(a?1:-1)];r_(e,o);if(e.ref){if(r){e.update({to:r.springs})}return}if(r){e.start({to:r.springs})}else{e.start()}})},r);if(n||arguments.length==3){const e=o??i[1];e["_getProps"]=(t,r,n)=>{const a=is10.fun(t)?t(n,r):t;if(a){const t=e.current[n+(a.reverse?1:-1)];if(t)a.to=t.springs;return a}};return i}return i[0]}// src/hooks/useTransition.tsx
function nv(e,r,n){const a=er.fun(r)&&r;const{reset:o,sort:i,trail:s=0,expires:c=true,exitBeforeEnter:u=false,onDestroyed:l,ref:f,config:d}=a?a():r;const p=(0,t.useMemo)(()=>a||arguments.length==3?nc():void 0,[]);const h=ei(e);const v=[];const m=(0,t.useRef)(null);const g=o?null:m.current;tj(()=>{m.current=v});tW(()=>{ea(v,e=>{p?.add(e.ctrl);e.ctrl.ref=p});return()=>{ea(m.current,e=>{if(e.expired){clearTimeout(e.expirationId)}ry(e.ctrl,p);e.ctrl.stop(true)})}});const b=ng(h,a?a():r,g);const y=o&&m.current||[];tj(()=>ea(y,({ctrl:e,item:t,key:r})=>{ry(e,p);ri(l,t,r)}));const _=[];if(g)ea(g,(e,t)=>{if(e.expired){clearTimeout(e.expirationId);y.push(e)}else{t=_[t]=b.indexOf(e.key);if(~t)v[t]=e}});ea(h,(e,t)=>{if(!v[t]){v[t]={key:b[t],item:e,phase:"mount"/* MOUNT */,ctrl:new r8};v[t].ctrl.item=e}});if(_.length){let e=-1;const{leave:t}=a?a():r;ea(_,(r,n)=>{const a=g[n];if(~r){e=v.indexOf(a);v[e]={...a,item:h[r]}}else if(t){v.splice(++e,0,a)}})}if(er.fun(i)){v.sort((e,t)=>i(e.item,t.item))}let x=-s;const w=tU();const k=rf(r);const A=/* @__PURE__ */new Map;const E=(0,t.useRef)(/* @__PURE__ */new Map);const O=(0,t.useRef)(false);ea(v,(e,t)=>{const n=e.key;const o=e.phase;const i=a?a():r;let l;let p;const h=ri(i.delay||0,n);if(o=="mount"/* MOUNT */){l=i.enter;p="enter"/* ENTER */}else{const e=b.indexOf(n)<0;if(o!="leave"/* LEAVE */){if(e){l=i.leave;p="leave"/* LEAVE */}else if(l=i.update){p="update"/* UPDATE */}else return}else if(!e){l=i.enter;p="enter"/* ENTER */}else return}l=ri(l,e.item,t);l=er.obj(l)?rv(l):{to:l};if(!l.config){const r=d||k.config;l.config=ri(r,e.item,t,p)}x+=s;const v={...k,// we need to add our props.delay value you here.
delay:h+x,ref:f,immediate:i.immediate,// This prevents implied resets.
reset:false,// Merge any phase-specific props.
...l};if(p=="enter"/* ENTER */&&er.und(v.from)){const n=a?a():r;const o=er.und(n.initial)||g?n.from:n.initial;v.from=ri(o,e.item,t)}const{onResolve:y}=v;v.onResolve=e=>{ri(y,e);const t=m.current;const r=t.find(e=>e.key===n);if(!r)return;if(e.cancelled&&r.phase!="update"/* UPDATE */){return}if(r.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if(r.phase=="leave"/* LEAVE */){const t=ri(c,r.item);if(t!==false){const n=t===true?0:t;r.expired=true;if(!e&&n>0){if(n<=0x7fffffff)r.expirationId=setTimeout(w,n);return}}}if(e&&t.some(e=>e.expired)){E.current.delete(r);if(u){O.current=true}w()}}};const _=ne(e.ctrl,v);if(p==="leave"/* LEAVE */&&u){E.current.set(e,{phase:p,springs:_,payload:v})}else{A.set(e,{phase:p,springs:_,payload:v})}});const S=(0,t.useContext)(no);const I=tq(S);const M=S!==I&&rg(S);tj(()=>{if(M){ea(v,e=>{e.ctrl.start({default:S})})}},[S]);ea(A,(e,t)=>{if(E.current.size){const e=v.findIndex(e=>e.key===t.key);v.splice(e,1)}});tj(()=>{ea(E.current.size?E.current:A,({phase:e,payload:t},r)=>{const{ctrl:n}=r;r.phase=e;p?.add(n);if(M&&e=="enter"/* ENTER */){n.start({default:S})}if(t){r_(n,t.ref);if((n.ref||p)&&!O.current){n.update(t)}else{n.start(t);if(O.current){O.current=false}}}})},o?void 0:n);const C=e=>/* @__PURE__ */t.createElement(t.Fragment,null,v.map((r,n)=>{const{springs:a}=A.get(r)||r.ctrl;const o=e({...a},r.item,r,n);return o&&o.type?/* @__PURE__ */t.createElement(o.type,{...o.props,key:er.str(r.key)||er.num(r.key)?r.key:r.ctrl.id,ref:o.ref}):o}));return p?[C,p]:C}var nm=1;function ng(e,{key:t,keys:r=t},n){if(r===null){const t=/* @__PURE__ */new Set;return e.map(e=>{const r=n&&n.find(r=>r.item===e&&r.phase!=="leave"/* LEAVE */&&!t.has(r));if(r){t.add(r);return r.key}return nm++})}return er.und(r)?e:er.fun(r)?e.map(r):ei(r)}// src/hooks/useScroll.ts
var nb=({container:e,...t}={})=>{const[r,n]=nl(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);useIsomorphicLayoutEffect5(()=>{const t=onScroll(({x:e,y:t})=>{n.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{each8(Object.values(r),e=>e.stop());t()}},[]);return r};// src/hooks/useResize.ts
var ny=({container:e,...t})=>{const[r,n]=nl(()=>({width:0,height:0,...t}),[]);useIsomorphicLayoutEffect6(()=>{const t=onResize(({width:e,height:t})=>{n.start({width:e,height:t,immediate:r.width.get()===0||r.height.get()===0})},{container:e?.current||void 0});return()=>{each9(Object.values(r),e=>e.stop());t()}},[]);return r};// src/hooks/useInView.ts
var n_=/* unused pure expression or super */null&&{any:0,all:1};function nx(e,t){const[r,n]=useState2(false);const a=useRef3();const o=is12.fun(e)&&e;const i=o?o():{};const{to:s={},from:c={},...u}=i;const l=o?t:e;const[f,d]=nl(()=>({from:c,...u}),[]);useIsomorphicLayoutEffect7(()=>{const e=a.current;const{root:t,once:o,amount:i="any",...u}=l??{};if(!e||o&&r||typeof IntersectionObserver==="undefined")return;const f=/* @__PURE__ */new WeakMap;const p=()=>{if(s){d.start(s)}n(true);const e=()=>{if(c){d.start(c)}n(false)};return o?void 0:e};const h=e=>{e.forEach(e=>{const t=f.get(e.target);if(e.isIntersecting===Boolean(t)){return}if(e.isIntersecting){const t=p();if(is12.fun(t)){f.set(e.target,t)}else{v.unobserve(e.target)}}else if(t){t();f.delete(e.target)}})};const v=new IntersectionObserver(h,{root:t&&t.current||void 0,threshold:typeof i==="number"||Array.isArray(i)?i:n_[i],...u});v.observe(e);return()=>v.unobserve(e)},[l]);if(o){return[a,f]}return[a,r]}// src/components/Spring.tsx
function nw({children:e,...t}){return e(nl(t))}// src/components/Trail.tsx
function nk({items:e,children:t,...r}){const n=nh(e.length,r);return e.map((e,r)=>{const a=t(e,r);return is13.fun(a)?a(n[r]):a})}// src/components/Transition.tsx
function nA({items:e,children:t,...r}){return nv(e,r)(t)}// src/interpolate.ts
// src/Interpolation.ts
var nE=class extends rz{constructor(e,t){super();this.source=e;/** Equals false when in the frameloop */this.idle=true;/** The inputs which are currently animating */this._active=/* @__PURE__ */new Set;this.calc=eV(...t);const r=this._get();const n=t9(r);tZ(this,n.create(r))}advance(e){const t=this._get();const r=this.get();if(!en(t,r)){tX(this).setValue(t);this._onChange(t,this.idle)}if(!this.idle&&nS(this._active)){nI(this)}}_get(){const e=er.arr(this.source)?this.source.map(e8):ei(e8(this.source));return this.calc(...e)}_start(){if(this.idle&&!nS(this._active)){this.idle=false;ea(t0(this),e=>{e.done=false});if(Z.skipAnimation){Y.batchedUpdates(()=>this.advance());nI(this)}else{e_.start(this)}}}// Observe our sources only when we're observed.
_attach(){let e=1;ea(ei(this.source),t=>{if(e3(t)){tn(t,this)}if(rH(t)){if(!t.idle){this._active.add(t)}e=Math.max(e,t.priority+1)}});this.priority=e;this._start()}// Stop observing our sources once we have no observers.
_detach(){ea(ei(this.source),e=>{if(e3(e)){ta(e,this)}});this._active.clear();nI(this)}/** @internal */eventObserved(e){if(e.type=="change"){if(e.idle){this.advance()}else{this._active.add(e.parent);this._start()}}else if(e.type=="idle"){this._active.delete(e.parent)}else if(e.type=="priority"){this.priority=ei(this.source).reduce((e,t)=>Math.max(e,(rH(t)?t.priority:0)+1),0)}}};function nO(e){return e.idle!==false}function nS(e){return!e.size||Array.from(e).every(nO)}function nI(e){if(!e.idle){e.idle=true;ea(t0(e),e=>{e.done=true});te(e,{type:"idle",parent:e})}}// src/interpolate.ts
var nM=(e,...t)=>new nE(e,t);var nC=(e,...t)=>(deprecateInterpolate2(),new nE(e,t));// src/globals.ts
Z.assign({createStringInterpolator:tv,to:(e,t)=>new nE(e,t)});var nT=e_.advance;// src/index.ts
//# sourceMappingURL=react-spring_core.modern.mjs.map
// EXTERNAL MODULE: external "ReactDOM"
var nY=r(206);// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@react-spring+web@9.7.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-spring/web/dist/react-spring_web.modern.mjs
// src/index.ts
// src/applyAnimatedValues.ts
var nR=/^--/;function nD(e,t){if(t==null||typeof t==="boolean"||t==="")return"";if(typeof t==="number"&&t!==0&&!nR.test(e)&&!(nF.hasOwnProperty(e)&&nF[e]))return t+"px";return(""+t).trim()}var nP={};function n$(e,t){if(!e.nodeType||!e.setAttribute){return false}const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter";const{className:n,style:a,children:o,scrollTop:i,scrollLeft:s,viewBox:c,...u}=t;const l=Object.values(u);const f=Object.keys(u).map(t=>r||e.hasAttribute(t)?t:nP[t]||(nP[t]=t.replace(/([A-Z])/g,// Attributes are written in dash case
    e=>"-"+e.toLowerCase())));if(o!==void 0){e.textContent=o}for(const t in a){if(a.hasOwnProperty(t)){const r=nD(t,a[t]);if(nR.test(t)){e.style.setProperty(t,r)}else{e.style[t]=r}}}f.forEach((t,r)=>{e.setAttribute(t,l[r])});if(n!==void 0){e.className=n}if(i!==void 0){e.scrollTop=i}if(s!==void 0){e.scrollLeft=s}if(c!==void 0){e.setAttribute("viewBox",c)}}var nF={animationIterationCount:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,columns:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridRowEnd:true,gridRowSpan:true,gridRowStart:true,gridColumn:true,gridColumnEnd:true,gridColumnSpan:true,gridColumnStart:true,fontWeight:true,lineClamp:true,lineHeight:true,opacity:true,order:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,// SVG-related properties
fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};var nH=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1);var nN=["Webkit","Ms","Moz","O"];nF=Object.keys(nF).reduce((e,t)=>{nN.forEach(r=>e[nH(r,t)]=e[t]);return e},nF);// src/AnimatedStyle.ts
var nz=/^(matrix|translate|scale|rotate|skew)/;var nj=/^(translate)/;var nL=/^(rotate|skew)/;var nU=(e,t)=>er.num(e)&&e!==0?e+t:e;var nB=(e,t)=>er.arr(e)?e.every(e=>nB(e,t)):er.num(e)?e===t:parseFloat(e)===t;var nK=class extends t4{constructor({x:e,y:t,z:r,...n}){const a=[];const o=[];if(e||t||r){a.push([e||0,t||0,r||0]);o.push(e=>[`translate3d(${e.map(e=>nU(e,"px")).join(",")})`,// prettier-ignore
    nB(e,0)])}eo(n,(e,t)=>{if(t==="transform"){a.push([e||""]);o.push(e=>[e,e===""])}else if(nz.test(t)){delete n[t];if(er.und(e))return;const r=nj.test(t)?"px":nL.test(t)?"deg":"";a.push(ei(e));o.push(t==="rotate3d"?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${nU(a,r)})`,nB(a,0)]:e=>[`${t}(${e.map(e=>nU(e,r)).join(",")})`,nB(e,t.startsWith("scale")?1:0)])}});if(a.length){n.transform=new nW(a,o)}super(n)}};var nW=class extends tt{constructor(e,t){super();this.inputs=e;this.transforms=t;this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="";let t=true;ea(this.inputs,(r,n)=>{const a=e8(r[0]);const[o,i]=this.transforms[n](er.arr(a)?a:r.map(e8));e+=" "+o;t=t&&i});return t?"none":e}// Start observing our inputs once we have an observer.
observerAdded(e){if(e==1)ea(this.inputs,e=>ea(e,e=>e3(e)&&tn(e,this)))}// Stop observing our inputs once we have no observers.
observerRemoved(e){if(e==0)ea(this.inputs,e=>ea(e,e=>e3(e)&&ta(e,this)))}eventObserved(e){if(e.type=="change"){this._value=null}te(this,e)}};// src/primitives.ts
var nV=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr",// SVG
"circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];// src/index.ts
Z.assign({batchedUpdates:nY.unstable_batchedUpdates,createStringInterpolator:tv,colors:eS});var nq=ra(nV,{applyAnimatedValues:n$,createAnimatedStyle:e=>new nK(e),// eslint-disable-next-line @typescript-eslint/no-unused-vars
getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r});var nG=nq.animated;//# sourceMappingURL=react-spring_web.modern.mjs.map
;// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/hooks/useAnimation.tsx
var nQ=/*#__PURE__*/function(e){e[e["slideDown"]=0]="slideDown";e[e["slideUp"]=1]="slideUp";e[e["slideLeft"]=2]="slideLeft";e[e["slideRight"]=3]="slideRight";e[e["collapseExpand"]=4]="collapseExpand";e[e["zoomIn"]=5]="zoomIn";e[e["zoomOut"]=6]="zoomOut";e[e["fadeIn"]=7]="fadeIn";e[e["sidebar"]=8]="sidebar";return e}({});var nJ=100;var nX=e=>{var{data:t,animationType:r=4,slideThreshold:n=20,animationDuration:a=150,minOpacity:o=0,maxOpacity:i=1,easing:s=e6.easeInOutQuad,debounceMeasure:c=false,keys:u}=e;var l=Array.isArray(t)?t.length>0:!!t;var[f,d]=E({debounce:c?a+nJ:0});var p=nl({from:{height:0,opacity:o,y:0},to:{height:l?d.height:0,opacity:l?i:o,y:l?0:n*-1},config:{duration:a,easing:s}});var h=nl({from:{x:0},to:{x:l?0:n*-1},config:{duration:a,easing:s}});var v={x:0,y:0};switch(r){case 0:v.y=n*-1;v.x=0;break;case 1:v.y=n;v.x=0;break;case 2:v.x=n;v.y=0;break;case 3:v.x=n*-1;v.y=0;break}var m=nv(t,{keys:u||(e=>{return e}),from:(0,_._)({opacity:o},v,r===5&&{transform:"scale(0.8)"},r===6&&{transform:"scale(1.2)"},r===7&&{opacity:0}),enter:(0,_._)({opacity:i,x:0,y:0},r===5&&{transform:"scale(1)"},r===6&&{transform:"scale(1)"},r===7&&{opacity:1}),leave:(0,_._)({opacity:o},v,r===5&&{transform:"scale(0.8)"},r===6&&{transform:"scale(1.2)"},r===7&&{opacity:0}),config:{duration:a,easing:s}});return{animationStyle:r===8?h:p,ref:f,transitions:m}};var nZ=t=>{var{children:r,style:n,hideOnOverflow:a=true}=t,o=(0,k._)(t,["children","style","hideOnOverflow"]);return/*#__PURE__*/(0,e/* .jsx */.Y)(nG.div,(0,x._)((0,_._)({},o),{style:(0,x._)((0,_._)({},n),{overflow:a?"hidden":"initial"}),children:r}))};// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/util.ts + 4 modules
var n0=r(927);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/modals/Modal.tsx
function n1(){var e=(0,w._)(["\n      background: linear-gradient(\n        73.09deg,\n        rgba(255, 150, 69, 0.4) 18.05%,\n        rgba(255, 100, 113, 0.4) 30.25%,\n        rgba(207, 110, 189, 0.4) 55.42%,\n        rgba(164, 119, 209, 0.4) 71.66%,\n        rgba(62, 100, 222, 0.4) 97.9%\n      );\n      opacity: 1;\n      backdrop-filter: blur(10px);\n    "]);n1=function t(){return e};return e}var n2={backdrop:e=>{var{magicAi:t=false}=e;return/*#__PURE__*/(0,o/* .css */.AH)("position:fixed;background-color:",i/* .colorTokens.background.modal */.I6.background.modal,";opacity:0.7;inset:0;z-index:",i/* .zIndex.negative */.fE.negative,";",t&&(0,o/* .css */.AH)(n1()))},container:/*#__PURE__*/(0,o/* .css */.AH)("z-index:",i/* .zIndex.highest */.fE.highest,";position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;")};var n6=/*#__PURE__*/n().createContext({showModal:()=>Promise.resolve({action:"CLOSE"}),closeModal:n0/* .noop */.lQ,updateModal:n0/* .noop */.lQ,hasModalOnStack:false});var n5=()=>(0,t.useContext)(n6);var n4=r=>{var{children:a}=r;var[o,s]=(0,t.useState)({modals:[]});var c=(0,t.useCallback)(e=>{var{component:t,props:r,closeOnOutsideClick:n=false,closeOnEscape:a=true,isMagicAi:o=false,depthIndex:c=i/* .zIndex.modal */.fE.modal,id:u}=e;return new Promise(e=>{s(i=>(0,x._)((0,_._)({},i),{modals:[...i.modals,{component:t,props:r,resolve:e,closeOnOutsideClick:n,closeOnEscape:a,id:u||(0,n0/* .nanoid */.Ak)(),depthIndex:c,isMagicAi:o}]}))})},[]);var u=(0,t.useCallback)(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{action:"CLOSE"};s(t=>{var r=t.modals[t.modals.length-1];r===null||r===void 0?void 0:r.resolve(e);return(0,x._)((0,_._)({},t),{modals:t.modals.slice(0,t.modals.length-1)})})},[]);var l=(0,t.useCallback)((e,t)=>{s(r=>{var n=r.modals.findIndex(t=>t.id===e);if(n===-1)return r;var a=[...r.modals];var o=a[n];a[n]=(0,x._)((0,_._)({},o),{props:(0,_._)({},o.props,t)});return(0,x._)((0,_._)({},r),{modals:a})})},[]);var{transitions:f}=nX({keys:e=>e.id,data:o.modals,animationType:nQ.slideUp,animationDuration:250});var d=(0,t.useMemo)(()=>{return o.modals.length>0},[o.modals]);(0,t.useEffect)(()=>{var e=e=>{var t;var r=document.querySelectorAll(".tutor-portal-popover");var n=!!document.body.classList.contains("modal-open");if(e.key==="Escape"&&((t=o.modals[o.modals.length-1])===null||t===void 0?void 0:t.closeOnEscape)&&!r.length&&!n){u({action:"CLOSE"})}};if(o.modals.length>0){document.addEventListener("keydown",e,true)}return()=>{document.removeEventListener("keydown",e,true)};// eslint-disable-next-line react-hooks/exhaustive-deps
},[o.modals.length,u]);return/*#__PURE__*/(0,e/* .jsxs */.FD)(n6.Provider,{value:{showModal:c,closeModal:u,updateModal:l,hasModalOnStack:d},children:[a,f((t,r,a,o)=>{return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{"data-cy":"tutor-modal",css:[n2.container,{zIndex:r.depthIndex||i/* .zIndex.modal */.fE.modal+o}],children:[/*#__PURE__*/(0,e/* .jsx */.Y)(nZ,{style:(0,x._)((0,_._)({},t),{width:"100%"}),hideOnOverflow:false,children:/*#__PURE__*/n().createElement(r.component,(0,x._)((0,_._)({},r.props),{closeModal:u}))}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:n2.backdrop({magicAi:r.isMagicAi}),onKeyUp:n0/* .noop */.lQ,tabIndex:-1,// This is not ideal to attach a click event on a non-interactive element like div,
// but in this case we have to do it.
onClick:()=>{if(r.closeOnOutsideClick){u({action:"CLOSE"})}}})]},r.id)})]})};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@emotion+sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
var n3=false;/*

Based off glamor's StyleSheet, thanks Sunil ❤️

high performance StyleSheet for css-in-js systems

- uses multiple style tags behind the scenes for millions of rules
- uses `insertRule` for appending in production for *much* faster performance

// usage

import { StyleSheet } from '@emotion/sheet'

let styleSheet = new StyleSheet({ key: '', container: document.head })

styleSheet.insert('#box { border: 1px solid red; }')
- appends a css rule into the stylesheet

styleSheet.flush()
- empties the stylesheet of all its contents

*/function n8(e){if(e.sheet){return e.sheet}// this weirdness brought to you by firefox
/* istanbul ignore next */for(var t=0;t<document.styleSheets.length;t++){if(document.styleSheets[t].ownerNode===e){return document.styleSheets[t]}}// this function should always return with a value
// TS can't understand it though so we make it stop complaining here
return undefined}function n9(e){var t=document.createElement("style");t.setAttribute("data-emotion",e.key);if(e.nonce!==undefined){t.setAttribute("nonce",e.nonce)}t.appendChild(document.createTextNode(""));t.setAttribute("data-s","");return t}var n7=/*#__PURE__*/function(){// Using Node instead of HTMLElement since container may be a ShadowRoot
function e(e){var t=this;this._insertTag=function(e){var r;if(t.tags.length===0){if(t.insertionPoint){r=t.insertionPoint.nextSibling}else if(t.prepend){r=t.container.firstChild}else{r=t.before}}else{r=t.tags[t.tags.length-1].nextSibling}t.container.insertBefore(e,r);t.tags.push(e)};this.isSpeedy=e.speedy===undefined?!n3:e.speedy;this.tags=[];this.ctr=0;this.nonce=e.nonce;// key is the value of the data-emotion attribute, it's used to identify different sheets
this.key=e.key;this.container=e.container;this.prepend=e.prepend;this.insertionPoint=e.insertionPoint;this.before=null}var t=e.prototype;t.hydrate=function e(e){e.forEach(this._insertTag)};t.insert=function e(e){// the max length is how many rules we have per style tag, it's 65000 in speedy mode
// it's 1 in dev because we insert source maps that map a single rule to a location
// and you can only have one source map per style tag
if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(n9(this))}var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=n8(t);try{// this is the ultrafast version, works across browsers
// the big drawback is that the css won't be editable in devtools
r.insertRule(e,r.cssRules.length)}catch(e){}}else{t.appendChild(document.createTextNode(e))}this.ctr++};t.flush=function e(){this.tags.forEach(function(e){var t;return(t=e.parentNode)==null?void 0:t.removeChild(e)});this.tags=[];this.ctr=0};return e}();// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
/**
 * @param {number}
 * @return {number}
 */var ae=Math.abs;/**
 * @param {number}
 * @return {string}
 */var at=String.fromCharCode;/**
 * @param {object}
 * @return {object}
 */var ar=Object.assign;/**
 * @param {string} value
 * @param {number} length
 * @return {number}
 */function an(e,t){return ac(e,0)^45?(((t<<2^ac(e,0))<<2^ac(e,1))<<2^ac(e,2))<<2^ac(e,3):0}/**
 * @param {string} value
 * @return {string}
 */function aa(e){return e.trim()}/**
 * @param {string} value
 * @param {RegExp} pattern
 * @return {string?}
 */function ao(e,t){return(e=t.exec(e))?e[0]:e}/**
 * @param {string} value
 * @param {(string|RegExp)} pattern
 * @param {string} replacement
 * @return {string}
 */function ai(e,t,r){return e.replace(t,r)}/**
 * @param {string} value
 * @param {string} search
 * @return {number}
 */function as(e,t){return e.indexOf(t)}/**
 * @param {string} value
 * @param {number} index
 * @return {number}
 */function ac(e,t){return e.charCodeAt(t)|0}/**
 * @param {string} value
 * @param {number} begin
 * @param {number} end
 * @return {string}
 */function au(e,t,r){return e.slice(t,r)}/**
 * @param {string} value
 * @return {number}
 */function al(e){return e.length}/**
 * @param {any[]} value
 * @return {number}
 */function af(e){return e.length}/**
 * @param {any} value
 * @param {any[]} array
 * @return {any}
 */function ad(e,t){return t.push(e),e}/**
 * @param {string[]} array
 * @param {function} callback
 * @return {string}
 */function ap(e,t){return e.map(t).join("")};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
var ah=1;var av=1;var am=0;var ag=0;var ab=0;var ay="";/**
 * @param {string} value
 * @param {object | null} root
 * @param {object | null} parent
 * @param {string} type
 * @param {string[] | string} props
 * @param {object[] | string} children
 * @param {number} length
 */function a_(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:ah,column:av,length:i,return:""}}/**
 * @param {object} root
 * @param {object} props
 * @return {object}
 */function ax(e,t){return ar(a_("",null,null,"",null,null,0),e,{length:-e.length},t)}/**
 * @return {number}
 */function aw(){return ab}/**
 * @return {number}
 */function ak(){ab=ag>0?ac(ay,--ag):0;if(av--,ab===10)av=1,ah--;return ab}/**
 * @return {number}
 */function aA(){ab=ag<am?ac(ay,ag++):0;if(av++,ab===10)av=1,ah++;return ab}/**
 * @return {number}
 */function aE(){return ac(ay,ag)}/**
 * @return {number}
 */function aO(){return ag}/**
 * @param {number} begin
 * @param {number} end
 * @return {string}
 */function aS(e,t){return au(ay,e,t)}/**
 * @param {number} type
 * @return {number}
 */function aI(e){switch(e){// \0 \t \n \r \s whitespace token
case 0:case 9:case 10:case 13:case 32:return 5;// ! + , / > @ ~ isolate token
case 33:case 43:case 44:case 47:case 62:case 64:case 126:// ; { } breakpoint token
case 59:case 123:case 125:return 4;// : accompanied token
case 58:return 3;// " ' ( [ opening delimit token
case 34:case 39:case 40:case 91:return 2;// ) ] closing delimit token
case 41:case 93:return 1}return 0}/**
 * @param {string} value
 * @return {any[]}
 */function aM(e){return ah=av=1,am=al(ay=e),ag=0,[]}/**
 * @param {any} value
 * @return {any}
 */function aC(e){return ay="",e}/**
 * @param {number} type
 * @return {string}
 */function aT(e){return aa(aS(ag-1,a$(e===91?e+2:e===40?e+1:e)))}/**
 * @param {string} value
 * @return {string[]}
 */function aY(e){return aC(aD(aM(e)))}/**
 * @param {number} type
 * @return {string}
 */function aR(e){while(ab=aE())if(ab<33)aA();else break;return aI(e)>2||aI(ab)>3?"":" "}/**
 * @param {string[]} children
 * @return {string[]}
 */function aD(e){while(aA())switch(aI(ab)){case 0:append(aH(ag-1),e);break;case 2:append(aT(ab),e);break;default:append(from(ab),e)}return e}/**
 * @param {number} index
 * @param {number} count
 * @return {string}
 */function aP(e,t){while(--t&&aA())// not 0-9 A-F a-f
if(ab<48||ab>102||ab>57&&ab<65||ab>70&&ab<97)break;return aS(e,aO()+(t<6&&aE()==32&&aA()==32))}/**
 * @param {number} type
 * @return {number}
 */function a$(e){while(aA())switch(ab){// ] ) " '
case e:return ag;// " '
case 34:case 39:if(e!==34&&e!==39)a$(ab);break;// (
case 40:if(e===41)a$(e);break;// \
case 92:aA();break}return ag}/**
 * @param {number} type
 * @param {number} index
 * @return {number}
 */function aF(e,t){while(aA())// //
if(e+ab===47+10)break;else if(e+ab===42+42&&aE()===47)break;return"/*"+aS(t,ag-1)+"*"+at(e===47?e:aA())}/**
 * @param {number} index
 * @return {string}
 */function aH(e){while(!aI(aE()))aA();return aS(e,ag)};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
var aN="-ms-";var az="-moz-";var aj="-webkit-";var aL="comm";var aU="rule";var aB="decl";var aK="@page";var aW="@media";var aV="@import";var aq="@charset";var aG="@viewport";var aQ="@supports";var aJ="@document";var aX="@namespace";var aZ="@keyframes";var a0="@font-face";var a1="@counter-style";var a2="@font-feature-values";var a6="@layer";// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
/**
 * @param {object[]} children
 * @param {function} callback
 * @return {string}
 */function a5(e,t){var r="";var n=af(e);for(var a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 * @param {function} callback
 * @return {string}
 */function a4(e,t,r,n){switch(e.type){case a6:if(e.children.length)break;case aV:case aB:return e.return=e.return||e.value;case aL:return"";case aZ:return e.return=e.value+"{"+a5(e.children,n)+"}";case aU:e.value=e.props.join(",")}return al(r=a5(e.children,n))?e.return=e.value+"{"+r+"}":""};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
/**
 * @param {function[]} collection
 * @return {function}
 */function a3(e){var t=af(e);return function(r,n,a,o){var i="";for(var s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}/**
 * @param {function} callback
 * @return {function}
 */function a8(e){return function(t){if(!t.root){if(t=t.return)e(t)}}}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 * @param {function} callback
 */function a9(e,t,r,n){if(e.length>-1){if(!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,r);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],n);case RULESET:if(e.length)return combine(e.props,function(t){switch(match(t,/(::plac\w+|:read-\w+)/)){// :read-(only|write)
case":read-only":case":read-write":return serialize([copy(e,{props:[replace(t,/:(read-\w+)/,":"+MOZ+"$1")]})],n);// :placeholder
case"::placeholder":return serialize([copy(e,{props:[replace(t,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,MS+"input-$1")]})],n)}return""})}}}/**
 * @param {object} element
 * @param {number} index
 * @param {object[]} children
 */function a7(e){switch(e.type){case RULESET:e.props=e.props.map(function(t){return combine(tokenize(t),function(t,r,n){switch(charat(t,0)){// \f
case 12:return substr(t,1,strlen(t));// \0 ( + > ~
case 0:case 40:case 43:case 62:case 126:return t;// :
case 58:if(n[++r]==="global")n[r]="",n[++r]="\f"+substr(n[r],r=1,-1);// \s
case 32:return r===1?"":t;default:switch(r){case 0:e=t;return sizeof(n)>1?"":t;case r=sizeof(n)-1:case 2:return r===2?t+e+e:t+e;default:return t}}})})}};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
/**
 * @param {string} value
 * @return {object[]}
 */function oe(e){return aC(ot("",null,null,null,[""],e=aM(e),0,[0],e))}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {string[]} rule
 * @param {string[]} rules
 * @param {string[]} rulesets
 * @param {number[]} pseudo
 * @param {number[]} points
 * @param {string[]} declarations
 * @return {object}
 */function ot(e,t,r,n,a,o,i,s,c){var u=0;var l=0;var f=i;var d=0;var p=0;var h=0;var v=1;var m=1;var g=1;var b=0;var y="";var _=a;var x=o;var w=n;var k=y;while(m)switch(h=b,b=aA()){// (
case 40:if(h!=108&&ac(k,f-1)==58){if(as(k+=ai(aT(b),"&","&\f"),"&\f")!=-1)g=-1;break}// " ' [
case 34:case 39:case 91:k+=aT(b);break;// \t \n \r \s
case 9:case 10:case 13:case 32:k+=aR(h);break;// \
case 92:k+=aP(aO()-1,7);continue;// /
case 47:switch(aE()){case 42:case 47:ad(on(aF(aA(),aO()),t,r),c);break;default:k+="/"}break;// {
case 123*v:s[u++]=al(k)*g;// } ; \0
case 125*v:case 59:case 0:switch(b){// \0 }
case 0:case 125:m=0;// ;
case 59+l:if(g==-1)k=ai(k,/\f/g,"");if(p>0&&al(k)-f)ad(p>32?oa(k+";",n,r,f-1):oa(ai(k," ","")+";",n,r,f-2),c);break;// @ ;
case 59:k+=";";// { rule/at-rule
default:ad(w=or(k,t,r,u,l,a,s,y,_=[],x=[],f),o);if(b===123)if(l===0)ot(k,t,w,w,_,o,f,s,x);else switch(d===99&&ac(k,3)===110?100:d){// d l m s
case 100:case 108:case 109:case 115:ot(e,w,w,n&&ad(or(e,w,w,0,0,a,s,y,a,_=[],f),x),a,x,f,s,n?_:x);break;default:ot(k,w,w,w,[""],x,0,s,x)}}u=l=p=0,v=g=1,y=k="",f=i;break;// :
case 58:f=1+al(k),p=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&ak()==125)continue}switch(k+=at(b),b*v){// &
case 38:g=l>0?1:(k+="\f",-1);break;// ,
case 44:s[u++]=(al(k)-1)*g,g=1;break;// @
case 64:// -
if(aE()===45)k+=aT(aA());d=aE(),l=f=al(y=k+=aH(aO())),b++;break;// -
case 45:if(h===45&&al(k)==2)v=0}}return o}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {number} index
 * @param {number} offset
 * @param {string[]} rules
 * @param {number[]} points
 * @param {string} type
 * @param {string[]} props
 * @param {string[]} children
 * @param {number} length
 * @return {object}
 */function or(e,t,r,n,a,o,i,s,c,u,l){var f=a-1;var d=a===0?o:[""];var p=af(d);for(var h=0,v=0,m=0;h<n;++h)for(var g=0,b=au(e,f+1,f=ae(v=i[h])),y=e;g<p;++g)if(y=aa(v>0?d[g]+" "+b:ai(b,/&\f/g,d[g])))c[m++]=y;return a_(e,t,r,a===0?aU:s,c,u,l)}/**
 * @param {number} value
 * @param {object} root
 * @param {object?} parent
 * @return {object}
 */function on(e,t,r){return a_(e,t,r,aL,at(aw()),au(e,2,-2),0)}/**
 * @param {string} value
 * @param {object} root
 * @param {object?} parent
 * @param {number} length
 * @return {object}
 */function oa(e,t,r,n){return a_(e,t,r,aB,au(e,0,n),au(e,n+1,-1),n)};// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@emotion+cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
var oo=function e(e,t,r){var n=0;var a=0;while(true){n=a;a=aE();// &\f
if(n===38&&a===12){t[r]=1}if(aI(a)){break}aA()}return aS(e,ag)};var oi=function e(e,t){// pretend we've started with a comma
var r=-1;var n=44;do{switch(aI(n)){case 0:// &\f
if(n===38&&aE()===12){// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
// and when it should just concatenate the outer and inner selectors
// it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
t[r]=1}e[r]+=oo(ag-1,t,r);break;case 2:e[r]+=aT(n);break;case 4:// comma
if(n===44){// colon
e[++r]=aE()===58?"&\f":"";t[r]=e[r].length;break}// fallthrough
default:e[r]+=at(n)}}while(n=aA())return e};var os=function e(e,t){return aC(oi(aM(e),t))};// WeakSet would be more appropriate, but only WeakMap is supported in IE11
var oc=/* #__PURE__ */new WeakMap;var ou=function e(e){if(e.type!=="rule"||!e.parent||// positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
e.length<1){return}var t=e.value;var r=e.parent;var n=e.column===r.column&&e.line===r.line;while(r.type!=="rule"){r=r.parent;if(!r)return}// short-circuit for the simplest case
if(e.props.length===1&&t.charCodeAt(0)!==58&&!oc.get(r)){return}// if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
// then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
if(n){return}oc.set(e,true);var a=[];var o=os(t,a);var i=r.props;for(var s=0,c=0;s<o.length;s++){for(var u=0;u<i.length;u++,c++){e.props[c]=a[s]?o[s].replace(/&\f/g,i[u]):i[u]+" "+o[s]}}};var ol=function e(e){if(e.type==="decl"){var t=e.value;if(t.charCodeAt(0)===108&&// charcode for b
t.charCodeAt(2)===98){// this ignores label
e["return"]="";e.value=""}}};/* eslint-disable no-fallthrough */function of(e,t){switch(an(e,t)){// color-adjust
case 5103:return aj+"print-"+e+e;// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return aj+e+e;// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:case 4246:case 4810:case 6968:case 2756:return aj+e+az+e+aN+e+e;// flex, flex-direction
case 6828:case 4268:return aj+e+aN+e+e;// order
case 6165:return aj+e+aN+"flex-"+e+e;// align-items
case 5187:return aj+e+ai(e,/(\w+).+(:[^]+)/,aj+"box-$1$2"+aN+"flex-$1$2")+e;// align-self
case 5443:return aj+e+aN+"flex-item-"+ai(e,/flex-|-self/,"")+e;// align-content
case 4675:return aj+e+aN+"flex-line-pack"+ai(e,/align-content|flex-|-self/,"")+e;// flex-shrink
case 5548:return aj+e+aN+ai(e,"shrink","negative")+e;// flex-basis
case 5292:return aj+e+aN+ai(e,"basis","preferred-size")+e;// flex-grow
case 6060:return aj+"box-"+ai(e,"-grow","")+aj+e+aN+ai(e,"grow","positive")+e;// transition
case 4554:return aj+ai(e,/([^-])(transform)/g,"$1"+aj+"$2")+e;// cursor
case 6187:return ai(ai(ai(e,/(zoom-|grab)/,aj+"$1"),/(image-set)/,aj+"$1"),e,"")+e;// background, background-image
case 5495:case 3959:return ai(e,/(image-set\([^]*)/,aj+"$1"+"$`$1");// justify-content
case 4968:return ai(ai(e,/(.+:)(flex-)?(.*)/,aj+"box-pack:$3"+aN+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+aj+e+e;// (margin|padding)-inline-(start|end)
case 4095:case 3583:case 4068:case 2532:return ai(e,/(.+)-inline(.+)/,aj+"$1$2")+e;// (min|max)?(width|height|inline-size|block-size)
case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:// stretch, max-content, min-content, fill-available
if(al(e)-1-t>6)switch(ac(e,t+1)){// (m)ax-content, (m)in-content
case 109:// -
if(ac(e,t+4)!==45)break;// (f)ill-available, (f)it-content
case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+aj+"$2-$3"+"$1"+az+(ac(e,t+3)==108?"$3":"$2-$3"))+e;// (s)tretch
case 115:return~as(e,"stretch")?of(ai(e,"stretch","fill-available"),t)+e:e}break;// position: sticky
case 4949:// (s)ticky?
if(ac(e,t+1)!==115)break;// display: (flex|inline-flex)
case 6444:switch(ac(e,al(e)-3-(~as(e,"!important")&&10))){// stic(k)y
case 107:return ai(e,":",":"+aj)+e;// (inline-)?fl(e)x
case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+aj+(ac(e,14)===45?"inline-":"")+"box$3"+"$1"+aj+"$2$3"+"$1"+aN+"$2box$3")+e}break;// writing-mode
case 5936:switch(ac(e,t+11)){// vertical-l(r)
case 114:return aj+e+aN+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;// vertical-r(l)
case 108:return aj+e+aN+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;// horizontal(-)tb
case 45:return aj+e+aN+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return aj+e+aN+e+e}return e}var od=function e(e,t,r,n){if(e.length>-1){if(!e["return"])switch(e.type){case aB:e["return"]=of(e.value,e.length);break;case aZ:return a5([ax(e,{value:ai(e.value,"@","@"+aj)})],n);case aU:if(e.length)return ap(e.props,function(t){switch(ao(t,/(::plac\w+|:read-\w+)/)){// :read-(only|write)
case":read-only":case":read-write":return a5([ax(e,{props:[ai(t,/:(read-\w+)/,":"+az+"$1")]})],n);// :placeholder
case"::placeholder":return a5([ax(e,{props:[ai(t,/:(plac\w+)/,":"+aj+"input-$1")]}),ax(e,{props:[ai(t,/:(plac\w+)/,":"+az+"$1")]}),ax(e,{props:[ai(t,/:(plac\w+)/,aN+"input-$1")]})],n)}return""})}}};var op=[od];var oh=function e(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");// get SSRed styles out of the way of React's hydration
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
// note this very very intentionally targets all style elements regardless of the key to ensure
// that creating a cache works inside of render of a React component
Array.prototype.forEach.call(r,function(e){// we want to only move elements which have a space in the data-emotion attribute value
// because that indicates that it is an Emotion 11 server-side rendered style elements
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
// will not result in the Emotion 10 styles being destroyed
var t=e.getAttribute("data-emotion");if(t.indexOf(" ")===-1){return}document.head.appendChild(e);e.setAttribute("data-s","")})}var n=e.stylisPlugins||op;var a={};var o;var i=[];{o=e.container||document.head;Array.prototype.forEach.call(// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){var t=e.getAttribute("data-emotion").split(" ");for(var r=1;r<t.length;r++){a[t[r]]=true}i.push(e)})}var s;var c=[ou,ol];{var u;var l=[a4,a8(function(e){u.insert(e)})];var f=a3(c.concat(n,l));var d=function e(e){return a5(oe(e),f)};s=function e(e,t,r,n){u=r;d(e?e+"{"+t.styles+"}":t.styles);if(n){p.inserted[t.name]=true}}}var p={key:t,sheet:new n7({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:s};p.sheet.hydrate(i);return p};// EXTERNAL MODULE: ./node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.1_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
var ov=r(517);// EXTERNAL MODULE: ../tutor/node_modules/.pnpm/cssjanus@2.3.0/node_modules/cssjanus/src/cssjanus.js
var om=r(234);var og=/*#__PURE__*/r.n(om);// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/stylis-plugin-rtl@2.1.1_stylis@4.2.0/node_modules/stylis-plugin-rtl/dist/stylis-rtl.js
function ob(e,t,r){switch(e.type){case aV:case aB:case aL:return e.return=e.return||e.value;case aU:{e.value=Array.isArray(e.props)?e.props.join(","):e.props;if(Array.isArray(e.children)){e.children.forEach(function(e){if(e.type===aL)e.children=e.value})}}}var n=a5(Array.prototype.concat(e.children),ob);return al(n)?e.return=e.value+"{"+n+"}":""}function oy(e,t,r,n){if(e.type===aZ||e.type===aQ||e.type===aU&&(!e.parent||e.parent.type===aW||e.parent.type===aU)){var a=og().transform(ob(e,t,r));e.children=a?oe(a)[0].children:[];e.return=""}}// stable identifier that will not be dropped by minification unless the whole module
// is unused
Object.defineProperty(oy,"name",{value:"stylisRTLPlugin"});/* export default */const o_=oy;//# sourceMappingURL=stylis-rtl.js.map
// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/constants.ts
var ox=r(461);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/RTLProvider.tsx
var ow=oh({stylisPlugins:[o_],key:"rtl"});var ok=t=>{var{children:r}=t;if(ox/* .isRTL */.V8){return/*#__PURE__*/(0,e/* .jsx */.Y)(ov.C,{value:ow,children:r})}return/*#__PURE__*/(0,e/* .jsx */.Y)(e/* .Fragment */.FK,{children:r})};/* export default */const oA=ok;// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/contexts/SVGIconConfigContext.tsx
var oE=r(612);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/style-utils.ts
var oO=r(958);// CONCATENATED MODULE: ../tutor/node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_async_to_generator.js
function oS(e,t,r,n,a,o,i){try{var s=e[o](i);var c=s.value}catch(e){r(e);return}if(s.done)t(c);else Promise.resolve(c).then(n,a)}function oI(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(e){oS(o,n,a,i,s,"next",e)}function s(e){oS(o,n,a,i,s,"throw",e)}i(undefined)})}}// EXTERNAL MODULE: external "wp.i18n"
var oM=r(470);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/config.ts
var oC=r(336);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/utils/types.ts
var oT=r(638);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/utils/form.ts
var oY=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce((r,n)=>{var a=e[n];if(typeof a==="object"&&!isPrimitivesArray(a)&&!isFileOrBlob(a)){return _object_spread({},r,oY(_object_spread({},a),"".concat(t).concat(n,".")))}return _object_spread_props(_object_spread({},r),{["".concat(t).concat(n)]:a})},{})};var oR=(e,t)=>{var r=e;if(r.status===404||r.status===403||r.status===500){return{nonFieldErrors:["Unexpected error!"]}}var n=oY(t);var a=oY(r.data);var{non_field_errors:o}=a,i=_object_without_properties(a,["non_field_errors"]);var s=isStringArray(o)?o:[];for(var c of Object.keys(i)){if(!(c in n)){var u=a[c];if(isStringArray(u)){s.push(...u)}}}return{nonFieldErrors:s.map(translateBeErrorMessage),fieldErrors:Object.keys(a).filter(e=>e in n).reduce((e,t)=>{var r=a[t];if(isStringArray(r)){return _object_spread_props(_object_spread({},e),{[t]:r.map(translateBeErrorMessage)})}return e},{})}};var oD=(e,t,r)=>{if(!isAxiosError(e)||!e.response){throw e}var{fieldErrors:n,nonFieldErrors:a}=oR(e.response,r);if(a===null||a===void 0?void 0:a.length){t.setSubmitError(a[0])}if(n){for(var o of Object.keys(n)){var i=n[o];if(i.length>0){t.setError(o,{message:i[0]})}}}};var oP=(e,t)=>{return r=>_async_to_generator(function*(){e.setSubmitError(undefined);try{yield t(r)}catch(t){oD(t,e,r)}})()};var o$=(e,t)=>{var r=function(t){var r=e[t];if(Array.isArray(r)){r.forEach((e,r)=>{if((0,oT/* .isFileOrBlob */.$X)(e)||(0,oT/* .isString */.Kg)(e)){n.append("".concat(t,"[").concat(r,"]"),e)}else if((0,oT/* .isBoolean */.Lm)(e)||(0,oT/* .isNumber */.Et)(e)){n.append("".concat(t,"[").concat(r,"]"),e.toString())}else if(typeof e==="object"&&e!==null){n.append("".concat(t,"[").concat(r,"]"),JSON.stringify(e))}else{n.append("".concat(t,"[").concat(r,"]"),e)}})}else{if((0,oT/* .isFileOrBlob */.$X)(r)||(0,oT/* .isString */.Kg)(r)){n.append(t,r)}else if((0,oT/* .isBoolean */.Lm)(r)){n.append(t,r.toString())}else if((0,oT/* .isNumber */.Et)(r)){n.append(t,"".concat(r))}else if(typeof r==="object"&&r!==null){n.append(t,JSON.stringify(r))}else{n.append(t,r)}}};var n=new FormData;for(var a of Object.keys(e))r(a);n.append("_method",t.toUpperCase());return n};var oF=e=>{var t={};for(var r in e){var n=e[r];if(!isDefined(n)){t[r]="null"}else if(isBoolean(n)){t[r]=n===true?"true":"false"}else{t[r]=n}}return t};// CONCATENATED MODULE: ../tutor/assets/core/ts/utils/api.ts
function oH(e,t,r){return oI(function*(){var n=yield fetch(e,{method:t,body:r,credentials:"same-origin"});var a=yield n.text();var o;try{o=JSON.parse(a)}catch(e){if(!n.ok){throw new Error("HTTP ".concat(n.status))}return a}var i=o;// JsonResponse trait shape: { status_code, message, data }
// Non-2xx HTTP status means error.
if(!n.ok){var s=typeof(i===null||i===void 0?void 0:i.message)==="string"?i.message:"HTTP ".concat(n.status);throw new Error(s)}// wp_send_json_error shape: { success: false, data }
// Always returns HTTP 200, so we have to inspect the payload.
if((i===null||i===void 0?void 0:i.success)===false){var c;var u=typeof(i===null||i===void 0?void 0:i.data)==="string"?i.data:typeof(i===null||i===void 0?void 0:(c=i.data)===null||c===void 0?void 0:c.message)==="string"?i.data.message:(0,oM.__)("Something went wrong","tutor");throw new Error(u)}return o})()}function oN(e){return oH(e,"GET")}/**
 * WordPress admin-ajax.php POST helper
 */function oz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oH(oC/* ["default"].WP_AJAX_BASE_URL */.A.WP_AJAX_BASE_URL,"POST",o$((0,x._)((0,_._)({},t),{action:e,[oC/* .tutorConfig.nonce_key */.P.nonce_key]:oC/* .tutorConfig._tutor_nonce */.P._tutor_nonce}),"POST"))}/**
 * Generic form POST helper (page submits / quiz / redirects)
 */function oj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oH(e,"POST",convertToFormData(_object_spread_props(_object_spread({},t),{_tutor_nonce:tutorConfig._tutor_nonce}),"POST"))};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/services/calendar.ts
var oL=e=>{return oz("get_calendar_materials",{year:e.year,month:e.month})};var oU=e=>{var[r,n]=(0,t.useState)(undefined);var[a,o]=(0,t.useState)(false);(0,t.useEffect)(()=>{if(!e.year||!e.month)return;o(true);oL(e).then(n).finally(()=>o(false));// eslint-disable-next-line react-hooks/exhaustive-deps
},[e.year,e.month]);return{data:r,isLoading:a}};// EXTERNAL MODULE: ./node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
var oB=r(287);var oK=/*#__PURE__*/r.n(oB);// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/utils/index.ts
var oW=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;var n=oK()(new Date(e,t)).startOf("month");var a=n.endOf("month");// Walk back to the start of the week containing the first day of the month
var o=n;while(o.day()!==r){o=o.subtract(1,"day")}// Walk forward to the end of the week containing the last day of the month
var i=(r+6)%7;var s=a;while(s.day()!==i){s=s.add(1,"day")}var c=[];var u=o;while(!u.isAfter(s)){c.push(u.toDate());u=u.add(1,"day")}return c};var oV=e=>{var t={lesson:{name:"lesson",color:i/* .colorTokens.icon["default"] */.I6.icon["default"]},tutor_quiz:{name:"quiz",color:i/* .colorTokens.design.warning */.I6.design.warning},tutor_assignments:{name:"assignment",color:i/* .colorTokens.icon.processing */.I6.icon.processing},tutor_zoom_meeting:{name:"zoomColorize",color:""},"tutor-google-meet":{name:"googleMeetColorize",color:""}};return t[e]};/**
 *
 * @param response Calender events from api response
 * @param search Search string
 * @returns Converted events with date as key and array of events as value
 */var oq=(e,t)=>{var r=e.data.response;var n=r.reduce((e,r)=>{if(t!==""){if(r.post_title.toLowerCase().includes(t.toLowerCase())){e[r.post_date]=[...e[r.post_date]||[],r]}}else{if(r.post_type==="tutor_zoom_meeting"){e[r.zm_start_date]=[...e[r.zm_start_date]||[],r]}else if(r.post_type==="tutor-google-meet"){e[r.meta_info.gm_start_date]=[...e[r.meta_info.gm_start_date]||[],r]}else if(r.post_type==="tutor_quiz"||r.post_type==="lesson"||r.post_type==="tutor_assignments"){if(typeof r.meta_info.unlock_date==="string"){e[r.meta_info.unlock_date]=[...e[r.meta_info.unlock_date]||[],r]}else if(oK()(r.meta_info.expire_date).isValid()){e[r.meta_info.expire_date]=[...e[r.meta_info.expire_date]||[],r]}else{e[r.post_date]=[...e[r.post_date]||[],r]}}}return e},{});return n};var oG=e=>{if(["tutor_zoom_meeting","tutor-google-meet"].includes(e.post_type)){return e.meta_info.start_datetime||e.meta_info.expire_date||""}else if(e.post_type==="tutor_assignments"){var t=typeof e.meta_info.unlock_date==="string"?e.meta_info.unlock_date:"";var r=e.meta_info.expire_date||"";if(t){var n=oK()(t);if(n.isValid()&&n.valueOf()>Date.now()){return t}if(oK()(r).isValid()){return r}return t}return r}else if(e.post_type==="lesson"||e.post_type==="tutor_quiz"){return typeof e.meta_info.unlock_date==="string"?e.meta_info.unlock_date:""}return""};var oQ=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"time";if(!oK()(e).isValid()){return e}// @ts-ignore
var{getSettings:r,dateI18n:n}=wp.date;var a;return n((a=r().formats[t])!==null&&a!==void 0?a:r().formats.time,e,Intl.DateTimeFormat().resolvedOptions().timeZone)};var oJ=e=>{if(!dayjs(e).isValid()){return e}// @ts-ignore
var{humanTimeDiff:t}=wp.date;return t(e,new Date)};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/context/CalendarContext.tsx
var oX=/*#__PURE__*/(0,t.createContext)({currentMonth:0,currentYear:0,search:"",updateCurrentMonth:()=>{},updateCurrentYear:()=>{},updateSearch:()=>{},events:{}});var oZ=()=>(0,t.useContext)(oX);var o0=r=>{var{children:n}=r;var[a,o]=(0,t.useState)(new Date().getMonth());var[i,s]=(0,t.useState)(new Date().getFullYear());var[c,u]=(0,t.useState)({});var[l,f]=(0,t.useState)("");var d=oU({year:i,month:a});var p=e=>{if(e<0){o(11);s(e=>e-1)}else if(e>11){o(0);s(e=>e+1)}else{o(e)}};(0,t.useEffect)(()=>{if(!d.isLoading&&d.data){var e=oq(d.data,l);u(e)}},[d.data,d.isLoading,l]);return/*#__PURE__*/(0,e/* .jsx */.Y)(oX.Provider,{value:{currentMonth:a,currentYear:i,search:l,updateCurrentMonth:p,updateCurrentYear:s,updateSearch:f,events:c},children:n})};// CONCATENATED MODULE: ./node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_tagged_template_literal.js
function o1(e,t){if(!t)t=e.slice(0);return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/atoms/SVGIcon.tsx
var o2=r(485);// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/controls/Show.tsx
var o6=r(406);// CONCATENATED MODULE: external "wp.date"
const o5=wp.date;// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/controls/For.tsx
var o4=e=>{var{each:t,children:r,fallback:n=null}=e;if(t.length===0){return n}return t.map((e,t)=>{return r(e,t)})};/* export default */const o3=o4;// CONCATENATED MODULE: ../tutor/assets/core/ts/date-formats.ts
/**
 * Date format constants compatible with dayjs
 * These formats replace date-fns formats for dayjs compatibility
 */var o8=/*#__PURE__*/function(e){e["day"]="DD";e["month"]="MMM";e["year"]="YYYY";e["yearMonthDay"]="YYYY-MM-DD";e["monthDayYear"]="MMM DD, YYYY";e["hoursMinutes"]="hh:mm A";e["yearMonthDayHourMinuteSecond"]="YYYY-MM-DD hh:mm:ss";e["yearMonthDayHourMinuteSecond24H"]="YYYY-MM-DD HH:mm:ss";e["monthDayYearHoursMinutes"]="MMM DD, YYYY, hh:mm A";e["localMonthDayYearHoursMinutes"]="MMM DD, YYYY hh:mm A";e["activityDate"]="MMM DD, YYYY at hh:mm A";e["validityDate"]="DD MMMM YYYY";e["dayMonthYear"]="MMMM D, YYYY";return e}({});// CONCATENATED MODULE: ./node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_define_property.js
function o9(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else e[t]=r;return e};// CONCATENATED MODULE: ./node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread.js
function o7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))}n.forEach(function(t){o9(e,t,r[t])})}return e};// CONCATENATED MODULE: ./node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_object_spread_props.js
function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}r.push.apply(r,n)}return r}function it(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors)Object.defineProperties(e,Object.getOwnPropertyDescriptors(t));else{ie(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e};// CONCATENATED MODULE: ../tutor/assets/core/ts/constant.ts
var ir={TAB_CHANGE:"tutor-tab-change",MODAL_OPEN:"tutor-modal-open",MODAL_UPDATE:"tutor-modal-update",MODAL_CLOSE:"tutor-modal-close",MODAL_CLOSED:"tutor-modal-closed",TOAST_SHOW:"tutor-toast-show",TOAST_CLEAR:"tutor-toast-clear",FORM_REGISTER:"tutor-form-register",FORM_UNREGISTER:"tutor-form-unregister",FORM_STATE_CHANGE:"tutor-form-state-change",FORM_RESET:"tutor-form-reset",WP_EDITOR_FOCUS:"wp-editor-focus",TUTOR_PLAYER_READY:"tutor-player-ready",COMMENT_REPLIED:"tutor:comment:replied",LESSON_PLAYER_READY:"tutorLessonPlayerReady",QUIZ_TIME_EXPIRED:"tutor-quiz-time-expired",QUIZ_ABANDON_REQUESTED:"tutor-quiz-abandon-requested",QUIZ_ATTEMPT_COMPLETED:"tutor-quiz-attempt-completed",CONTENT_CHANGED:"tutor_content_changed_event"};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/Event.tsx
function ia(){var e=o1(["\n      padding: "," ",";\n    "]);ia=function t(){return e};return e}function io(){var e=o1(["\n        background-color: var(--tutor-actions-success-primary);\n      "]);io=function t(){return e};return e}function ii(){var e=o1(["\n        background-color: var(--tutor-surface-brand-primary);\n      "]);ii=function t(){return e};return e}function is(){var e=o1(["\n        background-color: var(--tutor-actions-warning-primary);\n      "]);is=function t(){return e};return e}function ic(){var e=o1(["\n      ","\n\n      ","\n\n      ","\n    "]);ic=function t(){return e};return e}function iu(){var e=o1(["\n      background-color: var(--tutor-actions-critical-secondary);\n    "]);iu=function t(){return e};return e}function il(){var e=o1(["\n      &:focus-visible {\n        outline: 2px solid var(--tutor-color-brand, #3e64de);\n        outline-offset: 1px;\n      }\n    "]);il=function t(){return e};return e}function id(){var e=o1(["\n      &:hover {\n        background-color: var(--tutor-tab-l3-hover);\n        div {\n          color: var(--tutor-text-primary);\n        }\n      }\n\n      &:focus-visible {\n        outline: 2px solid var(--tutor-color-brand, #3e64de);\n        outline-offset: 1px;\n      }\n    "]);id=function t(){return e};return e}var ip=r=>{var{postType:n,title:a,date:i,placedOn:s="grid",url:c="#",isExpired:u=false}=r;var l=oV(n);var f=c==="#"?"span":"a";var d=e=>{if(e.key===" "||f==="span"&&e.key==="Enter"){e.preventDefault();e.currentTarget.click()}};(0,t.useEffect)(()=>{window.dispatchEvent(new CustomEvent(ir.CONTENT_CHANGED))},[]);return/*#__PURE__*/(0,e/* .jsx */.Y)(f,it(o7({css:iv.wrapper({placedOn:s,isExpired:u,postType:n}),className:"tutor-flex tutor-gap-1 tutor-items-center tutor-rounded-full"},c!=="#"&&{href:c},["popover","modal"].includes(s)&&{tabIndex:0,"data-grid-event":""}),{onKeyDown:d,children:/*#__PURE__*/(0,e/* .jsxs */.FD)(o6/* ["default"] */.A,{when:ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile||s!=="grid",children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{"data-type":n,name:l.name,width:16,height:16,style:/*#__PURE__*/(0,o/* .css */.AH)("color:",l.color,";")}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:iv.title({isExpired:u}),className:"".concat(s==="modal"?"tutor-p2":"tutor-p3"," tutor-flex-1"),children:[u&&"".concat((0,oM.__)("Expired: ","tutor-pro")),s==="grid"?"...":a]}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:iv.time({isExpired:u}),className:"".concat(s==="modal"?"tutor-p2":"tutor-p3"," tutor-text-secondary tutor-shrink-0 tutor-truncate"),"data-utc-datetime":i,children:/*#__PURE__*/(0,e/* .jsx */.Y)("span",{"data-utc-datetime-time":true,children:i})})]})}))};/* export default */const ih=ip;var iv={wrapper:e=>{var{placedOn:t="modal",isExpired:r=false,postType:n="lesson"}=e;return/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.resetButton */.x.resetButton,"    text-decoration:none;background-color:var(--tutor-tab-l3);padding:",i/* .spacing["2"] */.YK["2"]," ",i/* .spacing["4"] */.YK["4"],";transition:background-color 0.2s ease-in-out;",t==="modal"&&(0,o/* .css */.AH)(ia(),i/* .spacing["4"] */.YK["4"],i/* .spacing["4"] */.YK["4"])," ",t=="grid"&&!ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile&&(0,o/* .css */.AH)(ic(),["lesson","tutor_assignments","tutor-quiz"].includes(n)&&(0,o/* .css */.AH)(io()),"tutor_zoom_meeting"===n&&(0,o/* .css */.AH)(ii()),"tutor-google-meet"===n&&(0,o/* .css */.AH)(is()))," ",r&&(0,o/* .css */.AH)(iu()),"    svg{flex-shrink:0;}",["popover","modal"].includes(t)&&(0,o/* .css */.AH)(il())," ",!r&&(0,o/* .css */.AH)(id()))},title:e=>{var{isExpired:t=false}=e;return/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.text.ellipsis */.x.text.ellipsis(1),"    color:",t?"var(--tutor-text-critical)":"var(--tutor-text-primary)",";")},time:e=>{var{isExpired:t=false}=e;return/*#__PURE__*/(0,o/* .css */.AH)("color:",t?"var(--tutor-text-critical)":"var(--tutor-text-primary)",";")}};// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/FocusTrap.tsx
var im=e=>{var{children:r,blurPrevious:n=false}=e;var a=(0,t.useRef)(null);var o=(0,t.useRef)(null);(0,t.useEffect)(()=>{var e=a.current;if(!e){return}o.current=document.activeElement;if(n&&o.current&&o.current!==document.body){o.current.blur()}var t=e=>{if(!e||!e.isConnected){return false}var t=getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"&&!e.hidden&&e.offsetParent!==null};var r=()=>{var r='a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])';return Array.from(e.querySelectorAll(r)).filter(e=>{return!e.hasAttribute("disabled")&&t(e)})};var i=()=>{var t=document.querySelectorAll('[data-focus-trap="true"]');return t.length>0&&t[t.length-1]===e};var s=t=>{if(!i()||t.key!=="Tab"){return}var n=r();if(n.length===0){return}var a=n[0];var o=n[n.length-1];var s=document.activeElement;if(!e.contains(s)&&document.body!==s){t.preventDefault();a.focus();return}if(t.shiftKey&&s===a){t.preventDefault();o.focus();return}if(!t.shiftKey&&s===o){t.preventDefault();a.focus();return}};document.addEventListener("keydown",s,true);return()=>{document.removeEventListener("keydown",s,true);if(o.current&&t(o.current)){o.current.focus()}};// eslint-disable-next-line react-hooks/exhaustive-deps
},[]);return/*#__PURE__*/(0,t.cloneElement)(t.Children.only(r),{ref:a,"data-focus-trap":"true",tabIndex:-1})};/* export default */const ig=im;// EXTERNAL MODULE: ../tutor/assets/src/js/v3/shared/config/typography.ts
var ib=r(983);// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/hooks/useScrollLock.ts
var iy=null;var i_=[];var ix=null;var iw=()=>{if(iy!==null)return iy;var e=document.createElement("div");e.style.visibility="hidden";e.style.overflow="scroll";e.style.width="100px";document.body.appendChild(e);var t=document.createElement("div");t.style.width="100%";e.appendChild(t);iy=e.offsetWidth-t.offsetWidth;document.body.removeChild(e);return iy};var ik=()=>{if(ix){return}var e=iw();var t=window.innerWidth>document.documentElement.clientWidth;ix={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight};document.body.style.overflow="hidden";if(t&&e>0){var r=parseInt(window.getComputedStyle(document.body).paddingRight||"0",10);document.body.style.paddingRight="".concat(r+e,"px")}};var iA=()=>{if(!ix){return}document.body.style.overflow=ix.overflow;document.body.style.paddingRight=ix.paddingRight;ix=null};var iE=()=>{var e=Symbol("scroll-lock");i_.push(e);if(i_.length===1){ik()}return e};var iO=new Set;var iS=e=>{var t=i_.indexOf(e);if(t===-1){return}i_.splice(t,1);iO.delete(e);if(i_.length===0&&iO.size===0){iA()}};var iI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:true;var r=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(!e){if(r.current){iS(r.current);r.current=null}return}r.current=iE();return()=>{if(r.current){var e=r.current;r.current=null;iO.add(e);requestAnimationFrame(()=>{iS(e)})}}},[e])};// CONCATENATED MODULE: ../tutor/assets/src/js/v3/shared/components/modals/BasicModalWrapper.tsx
function iM(){var e=(0,w._)(["\n      max-width: 100vw;\n      width: 100vw;\n      height: 95vh;\n    "]);iM=function t(){return e};return e}function iC(){var e=(0,w._)(["\n      position: absolute;\n      right: ",";\n      top: ",";\n    "]);iC=function t(){return e};return e}function iT(){var e=(0,w._)(["\n      height: calc(100% - ","px);\n    "]);iT=function t(){return e};return e}var iY=t=>{var{children:r,onClose:n,title:a,subtitle:o,icon:i,entireHeader:s,actions:c,fullScreen:u,modalStyle:l,maxWidth:f=ox/* .modal.BASIC_MODAL_MAX_WIDTH */.yl.BASIC_MODAL_MAX_WIDTH,isCloseAble:d=true,blurTriggerElement:p=true}=t;iI();return/*#__PURE__*/(0,e/* .jsx */.Y)(ig,{blurPrevious:p,children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:[iD.container({isFullScreen:u}),l],style:{maxWidth:"".concat(f,"px")},children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:iD.header({hasEntireHeader:!!s}),children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:!s,fallback:s,children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:iD.headerContent,children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:iD.iconWithTitle,children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:i,children:i}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:a,children:/*#__PURE__*/(0,e/* .jsx */.Y)("p",{css:iD.title,children:a})})]}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:o,children:/*#__PURE__*/(0,e/* .jsx */.Y)("span",{css:iD.subtitle,children:o})})]})}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:iD.actionsWrapper({hasEntireHeader:!!s}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:c,fallback:/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:d,children:/*#__PURE__*/(0,e/* .jsx */.Y)("button",{"data-cy":"close-modal",type:"button",css:iD.closeButton,onClick:n,children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:"timesThin",width:24,height:24})})}),children:c})})]}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:iD.content({isFullScreen:u}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(y,{children:r})})]})})};/* export default */const iR=iY;var iD={container:e=>{var{isFullScreen:t}=e;return/*#__PURE__*/(0,o/* .css */.AH)("position:relative;background:",i/* .colorTokens.background.white */.I6.background.white,";box-shadow:",i/* .shadow.modal */.r7.modal,";border-radius:",i/* .borderRadius["10"] */.Vq["10"],";overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",t&&(0,o/* .css */.AH)(iM())," ",i/* .Breakpoint.smallTablet */.EA.smallTablet,"{width:90%;}")},header:e=>{var{hasEntireHeader:t}=e;return/*#__PURE__*/(0,o/* .css */.AH)("display:flex;align-items:center;justify-content:space-between;width:100%;height:",!t?"".concat(ox/* .modal.BASIC_MODAL_HEADER_HEIGHT */.yl.BASIC_MODAL_HEADER_HEIGHT,"px"):"auto",";background:",i/* .colorTokens.background.white */.I6.background.white,";border-bottom:",!t?"1px solid ".concat(i/* .colorTokens.stroke.divider */.I6.stroke.divider):"none",";padding-inline:",i/* .spacing["16"] */.YK["16"],";")},headerContent:/*#__PURE__*/(0,o/* .css */.AH)("place-self:center start;display:inline-flex;align-items:center;gap:",i/* .spacing["12"] */.YK["12"],";"),iconWithTitle:/*#__PURE__*/(0,o/* .css */.AH)("display:inline-flex;align-items:center;gap:",i/* .spacing["4"] */.YK["4"],";color:",i/* .colorTokens.icon["default"] */.I6.icon["default"],";"),title:/*#__PURE__*/(0,o/* .css */.AH)(ib/* .typography.body */.I.body("medium"),";color:",i/* .colorTokens.text.title */.I6.text.title,";"),subtitle:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.text.ellipsis */.x.text.ellipsis(1)," ",ib/* .typography.caption */.I.caption(),";color:",i/* .colorTokens.text.hints */.I6.text.hints,";"),actionsWrapper:e=>{var{hasEntireHeader:t}=e;return/*#__PURE__*/(0,o/* .css */.AH)("place-self:center end;display:inline-flex;gap:",i/* .spacing["16"] */.YK["16"],";",t&&(0,o/* .css */.AH)(iC(),i/* .spacing["16"] */.YK["16"],i/* .spacing["16"] */.YK["16"]))},closeButton:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.resetButton */.x.resetButton,";display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:",i/* .borderRadius.circle */.Vq.circle,";background:",i/* .colorTokens.background.white */.I6.background.white,";&:focus,&:active,&:hover{background:",i/* .colorTokens.background.white */.I6.background.white,";}svg{color:",i/* .colorTokens.icon["default"] */.I6.icon["default"],";transition:color 0.3s ease-in-out;}:hover{svg{color:",i/* .colorTokens.icon.hover */.I6.icon.hover,";}}:focus{box-shadow:",i/* .shadow.focus */.r7.focus,";}"),content:e=>{var{isFullScreen:t}=e;return/*#__PURE__*/(0,o/* .css */.AH)("background-color:",i/* .colorTokens.background.white */.I6.background.white,";overflow-y:auto;max-height:90vh;",t&&(0,o/* .css */.AH)(iT(),ox/* .modal.BASIC_MODAL_HEADER_HEIGHT */.yl.BASIC_MODAL_HEADER_HEIGHT))}};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/modals/EventsModal.tsx
var iP=t=>{var{date:r,events:n,closeModal:a}=t;var o=(0,o5.format)("j",r);var i=(0,o5.format)("l",r);var s=/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{"data-title":true,className:"tutor-flex tutor-items-center tutor-gap-2 tutor-mt-2",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-h5 tutor-text-semibold",children:o}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-h5 tutor-font-regular",children:i})]});return/*#__PURE__*/(0,e/* .jsxs */.FD)(iR,{entireHeader:s,onClose:a,maxWidth:340,modalStyle:iF.wrapper,isCloseAble:false,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("button",{css:iF.crossBtn,className:"tutor-btn tutor-btn-ghost tutor-btn-x-small tutor-btn-icon tutor-surface-l1",onClick:()=>{a()},children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:"cross",width:16,height:16})}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-flex tutor-flex-column tutor-gap-4 tutor-pt-4 tutor-px-6 tutor-surface-l1",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:n,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(ih,{title:t.post_title,postType:t.post_type,date:oG(t),url:t.guid,isExpired:t.meta_info.is_expired,placedOn:"modal"})})})]})};/* export default */const i$=iP;var iF={wrapper:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex("column"),";background-color:var(--tutor-surface-l1);padding-block:",i/* .spacing["16"] */.YK["16"],";div:has([data-title]){background-color:var(--tutor-surface-l1);}"),crossBtn:/*#__PURE__*/(0,o/* .css */.AH)("position:absolute;top:",i/* .spacing["16"] */.YK["16"],";right:",i/* .spacing["16"] */.YK["16"],";&:focus-visible{outline:2px solid var(--tutor-color-brand,#3e64de);outline-offset:1px;}")};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/Days.tsx
var iH=ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile?1:2;var iN=t=>{var{date:r}=t;var{currentMonth:n,events:a}=oZ();var{showModal:o}=n5();var i=oK()(r).isSame(new Date,"day");var s=r.getMonth()===n;var c=(0,o5.format)("j",r);var u;var l=(u=a[oK()(r).format(o8.yearMonthDay)])!==null&&u!==void 0?u:[];var f=l.slice(0,iH);var d=l.length-iH;var p=d>0;var h=()=>{o({component:i$,closeOnOutsideClick:true,props:{date:r,events:l}})};var v=e=>{if(e.target!==e.currentTarget){return}if(e.key==="Enter"||e.key===" "){e.preventDefault();if(!ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile&&l.length>0){h()}}};var m=l.length>0?(0,oM.sprintf)((0,oM.__)("%1$s, %2$d events","tutor-pro"),(0,o5.format)("F j, Y",r),l.length):(0,o5.format)("F j, Y",r);return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:ij.wrapper,className:"tutor-calendar-day tutor-border-r tutor-border-b tutor-border-brand-secondary tutor-surface-brand-tertiary tutor-p-4",tabIndex:!ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile&&l.length>0?0:undefined,role:"gridcell","aria-label":m,onKeyDown:v,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-p2 tutor-flex tutor-justify-end tutor-items-center tutor-gap-2 tutor-sm-text-tiny ".concat(!s?"tutor-text-subdued":""),children:/*#__PURE__*/(0,e/* .jsxs */.FD)(o6/* ["default"] */.A,{when:i,fallback:c,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{css:ij.today,className:"tutor-p-2 tutor-rounded-full tutor-text-primary-inverse tutor-shrink-0",children:c}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-sm-hidden",children:(0,o5.format)("M",r)})]})}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-flex tutor-flex-column tutor-gap-2 tutor-mt-4",onClick:()=>{// Only trigger on mobile
if(!ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile&&l.length>0){h()}},children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:f,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(ih,{title:t.post_title,postType:t.post_type,date:oG(t),isExpired:t.meta_info.is_expired})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:p&&ox/* .CURRENT_VIEWPORT.isAboveMobile */.vN.isAboveMobile,children:/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:ij.moreButton,children:(0,oM.sprintf)((0,oM.__)("%d more","tutor-pro"),d)})})]}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:f.length>0,children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{"data-popover":true,css:ij.popover,className:"tutor-surface-l1 tutor-border tutor-rounded-2xl tutor-p-6 tutor-flex tutor-flex-column",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-h5 tutor-font-semibold tutor-text-right",children:c}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-flex tutor-flex-column tutor-gap-2 tutor-mt-4",children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:f,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(ih,{title:t.post_title,postType:t.post_type,date:oG(t),url:t.guid,isExpired:t.meta_info.is_expired,placedOn:"popover"})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:p,children:/*#__PURE__*/(0,e/* .jsx */.Y)("button",{css:ij.moreButton,className:"tutor-rounded-full",onClick:h,children:(0,oM.sprintf)((0,oM.__)("%d more","tutor-pro"),d)})})]})]})})]})};/* export default */const iz=iN;var ij={wrapper:/*#__PURE__*/(0,o/* .css */.AH)("position:relative;height:96px;[data-popover]{display:block;opacity:0;pointer-events:none;transition:opacity 0.15s ease-in-out;}&:nth-of-type(7n){border-right:none;}&:nth-last-of-type(-n + 7){border-bottom:none;}&:not(:nth-of-type(7n + 1)){background-color:transparent;}&:first-of-type{border-top-left-radius:8px;}&:nth-last-of-type(7){border-bottom-left-radius:8px;}&:hover,&:focus-within{[data-popover]{opacity:1;pointer-events:auto;}}",i/* .Breakpoint.mobile */.EA.mobile,"{height:72px;padding-inline:",i/* .spacing["6"] */.YK["6"],";> * a{pointer-events:none;}[data-popover]{display:none !important;}}"),today:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.flexCenter */.x.flexCenter(),"    width:24px;height:24px;background-color:var(--tutor-actions-critical-primary);"),popover:/*#__PURE__*/(0,o/* .css */.AH)("position:absolute;z-index:",i/* .zIndex.modal */.fE.modal,";top:50%;left:50%;transform:translate(-50%,-50%);width:146px;height:120px;"),moreButton:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.resetButton */.x.resetButton,";background-color:transparent;color:var(--tutor-text-primary);padding:",i/* .spacing["2"] */.YK["2"]," ",i/* .spacing["4"] */.YK["4"],";transition:background-color 0.2s ease-in-out;&:hover{background-color:var(--tutor-tab-l3-hover);",oO/* .styleUtils.text.ellipsis */.x.text.ellipsis(1),"}&:focus-visible{outline:2px solid var(--tutor-color-brand,#3e64de);outline-offset:2px;}")};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/CalendarGrid.tsx
var iL=()=>{var{currentMonth:t,currentYear:r}=oZ();var n=(0,o5.getSettings)().l10n.startOfWeek;var a=oW(r,t,n);return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-flex tutor-flex-column",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:iB.weekDays,children:/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:a.slice(0,7),children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-text-secondary tutor-p2 tutor-flex tutor-items-center tutor-justify-end tutor-sm-text-tiny",children:(0,o5.format)("D",t)},t.toISOString())})}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:iB.grid,className:"tutor-calendar-grid tutor-border tutor-border-brand-secondary",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:a,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(iz,{date:t},t.toISOString())})})]})};/* export default */const iU=iL;var iB={wrapper:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex("column"),";gap:",i/* .spacing["16"] */.YK["16"],";"),weekDays:/*#__PURE__*/(0,o/* .css */.AH)("height:36px;display:grid;grid-template-columns:repeat(7,1fr);"),grid:/*#__PURE__*/(0,o/* .css */.AH)("display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:1fr;border-radius:",i/* .borderRadius["8"] */.Vq["8"],";align-items:stretch;> *{min-width:0;}")};// CONCATENATED MODULE: ./assets/images/illustrations/calendar-empty.svg
var iK,iW,iV,iq,iG;function iQ(){return iQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iQ.apply(null,arguments)}var iJ=function e(e){return /*#__PURE__*/t.createElement("svg",iQ({xmlns:"http://www.w3.org/2000/svg",width:96,height:96,fill:"none"},e),iK||(iK=/*#__PURE__*/t.createElement("ellipse",{cx:48,cy:78.215,fill:"var(--tutor-visual-gray-2, #ececed)",rx:21,ry:3})),iW||(iW=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-2, #ececed)",stroke:"var(--tutor-visual-gray-3, #cecfd2)",strokeDasharray:"2.65 2.65",strokeWidth:.66,d:"M28.037 65.215a4 4 0 0 1-4-4v-36a4 4 0 0 1 4-4h40a4 4 0 0 1 4 4v36a4 4 0 0 1-4 4z"})),iV||(iV=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-3, #cecfd2)",d:"M23.832 25.4a4 4 0 0 1 4-4h40.336a4 4 0 0 1 4 4v8.247H23.832zm11.121-8.62a1.994 1.994 0 0 1 3.988 0v2.34h-3.988zm11.051 0a1.994 1.994 0 0 1 3.988 0v2.34h-3.988zm11.051 0a1.994 1.994 0 0 1 3.988 0v2.34h-3.988z"})),iq||(iq=/*#__PURE__*/t.createElement("path",{stroke:"var(--tutor-visual-gray-3, #cecfd2)",strokeDasharray:"2.65 2.65",strokeWidth:.66,d:"M28.697 33.647H67.38"})),iG||(iG=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-3, #cecfd2)",d:"M30.673 40.248h7.564v6.66h-7.564zm13.564 0h7.564v6.66h-7.564zm13.565 0h7.564v6.66h-7.564zm-27.168 9.549h7.564v6.66h-7.564zm13.564 0h7.564v6.66h-7.564zm13.565 0h7.564v6.66h-7.564z"})))};/* export default */const iX=iJ;// CONCATENATED MODULE: ./assets/images/illustrations/kids/calendar-empty.svg
var iZ,i0,i1,i2,i6,i5;function i4(){return i4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i4.apply(null,arguments)}var i3=function e(e){return /*#__PURE__*/t.createElement("svg",i4({xmlns:"http://www.w3.org/2000/svg",width:97,height:96,fill:"none"},e),iZ||(iZ=/*#__PURE__*/t.createElement("ellipse",{cx:48,cy:78.215,fill:"var(--tutor-visual-gray-2, #ececed)",rx:24.283,ry:3.476})),i0||(i0=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-2, #ececed)",stroke:"var(--tutor-visual-gray-3, #cecfd2)",strokeDasharray:"2.65 2.65",strokeWidth:.66,d:"M28.037 65.215a4 4 0 0 1-4-4v-36a4 4 0 0 1 4-4h40a4 4 0 0 1 4 4v36a4 4 0 0 1-4 4z"})),i1||(i1=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-3, #cecfd2)",d:"M23.832 25.4a4 4 0 0 1 4-4h40.336a4 4 0 0 1 4 4v8.247H23.832zm11.121-8.62a1.994 1.994 0 0 1 3.988 0v2.34h-3.988zm11.051 0a1.994 1.994 0 0 1 3.988 0v2.34h-3.988zm11.051 0a1.994 1.994 0 0 1 3.988 0v2.34h-3.988z"})),i2||(i2=/*#__PURE__*/t.createElement("path",{stroke:"var(--tutor-visual-gray-3, #cecfd2)",strokeDasharray:"2.65 2.65",strokeWidth:.66,d:"M28.697 33.647H67.38"})),i6||(i6=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-3, #cecfd2)",d:"M36.193 40.248c-.756 0-1.41.443-1.737 1.09a1.95 1.95 0 0 0-1.738-1.09c-1.084 0-1.963.91-1.963 2.028 0 1.12.673 2.145 1.542 2.987.868.843 2.159 1.645 2.159 1.645s1.248-.789 2.158-1.645c.972-.912 1.542-1.864 1.542-2.987s-.879-2.028-1.963-2.028m10.761.862c.474-.85.711-1.275 1.066-1.275.354 0 .59.425 1.065 1.276l.123.22c.135.242.202.363.307.442s.236.11.498.169l.238.054c.92.208 1.38.312 1.49.665.11.351-.204.719-.832 1.453l-.162.19c-.178.208-.268.312-.308.441-.04.13-.027.268 0 .547l.025.253c.095.98.142 1.47-.144 1.687-.287.217-.718.019-1.58-.378l-.223-.103c-.245-.113-.368-.169-.498-.169s-.252.056-.497.17l-.223.102c-.862.397-1.293.595-1.58.378-.286-.218-.239-.707-.144-1.687l.025-.253c.027-.279.04-.418 0-.547s-.13-.233-.308-.441l-.162-.19c-.628-.734-.942-1.101-.832-1.453s.57-.457 1.49-.665l.239-.054c.261-.06.392-.089.497-.169s.172-.2.307-.442zm10.848-.862h7.564v6.66h-7.564zm-27.168 9.549h7.564v6.66h-7.564zm13.564 0h7.564v6.66h-7.564zm16.399 1.135c.422-.757.633-1.135.948-1.135s.526.378.948 1.135l.11.196c.12.215.18.322.272.393.094.071.21.098.443.15l.212.048c.82.186 1.229.278 1.326.592s-.182.64-.74 1.292l-.145.17c-.158.185-.238.278-.273.392-.036.115-.024.239 0 .486l.022.226c.084.871.127 1.307-.129 1.5-.255.194-.638.017-1.405-.336l-.199-.09c-.218-.102-.326-.151-.442-.151s-.224.05-.442.15l-.199.091c-.767.353-1.15.53-1.405.337-.255-.194-.213-.63-.129-1.501l.022-.225c.024-.248.036-.372 0-.486-.035-.115-.115-.208-.273-.393l-.145-.17c-.558-.652-.837-.979-.74-1.292s.507-.407 1.326-.592l.212-.048c.233-.052.35-.079.443-.15s.153-.178.273-.393z"})),i5||(i5=/*#__PURE__*/t.createElement("path",{fill:"var(--tutor-visual-gray-2, #ececed)",d:"M1.513 78.729c.851.17 2.659.35 5.189.34 1.813-.007 5.751-.34 6.062-.83.18-.36-.602-.8-.772-.83-.698-.127-1.134-.142-1.836-.196-.25-.019-.5-.014-.751-.014-.111 0-.33.045-.33.045s.194-.115.3-.15c.202-.068.388-.162.586-.24.745-.299 1.527-.544 2.237-.932.27-.147.547-.488.255-.78-.241-.242-.64-.152-.946-.09-.698.139-1.388.461-2.034.762l-.038.018c-.36.168-.961.57-.961.57s.652-.644.69-.69c.159-.187.366-.327.526-.51.126-.144.24-.286.376-.421.357-.357 1.592-1.63.48-1.907-.333-.083-.725.117-1.02.24-.837.349-1.372 1.139-1.878 1.847-.18.253-.35.55-.405.856-.022.119-.06.24-.06.36v-.3c0-.206-.018-.41-.03-.615-.05-.854-.15-1.65-.42-2.463-.085-.253-.128-.728-.496-.676-.354.05-.555.476-.661.766-.195.537-.347 2.312.045 3.769a18 18 0 0 0-.84-1.006c-.338-.371-.65-.784-1.037-1.111-.278-.236-.602-.395-.886-.616-.31-.24-.715-.542-1.111-.315-.517.295.073.906.285 1.17.48.6.995 1.238 1.562 1.758.31.284.696.5.99.796.031.03-.068-.052-.104-.075a4 4 0 0 1-.255-.18c-.25-.195-.494-.384-.751-.571a6 6 0 0 0-2.298-.976c-.24-.044-.597-.138-.826 0-.32.192.148.599.286.69.656.438 1.098.866 1.82 1.187l1.273.57s-.98-.263-1.051-.284c-.732-.22-1.255-.286-2.012-.286-.214 0-.704.225-.618.57.107.427 1.067.67 1.465.75m77.517 5.068c1.284.257 4.01.53 7.825.513 2.734-.011 8.674-.513 9.142-1.25.273-.546-.907-1.207-1.165-1.254-1.051-.191-1.709-.213-2.768-.294-.376-.03-.754-.023-1.132-.023-.168 0-.498.068-.498.068s.292-.173.453-.226c.305-.102.585-.243.883-.363 1.123-.449 2.303-.82 3.374-1.404.407-.222.825-.736.385-1.177-.364-.364-.965-.228-1.427-.136-1.053.21-2.094.696-3.067 1.15l-.058.028c-.543.253-1.45.86-1.45.86s.984-.972 1.043-1.042c.238-.281.55-.493.792-.77.189-.216.362-.43.566-.634.54-.539 2.4-2.457.725-2.876-.503-.125-1.094.177-1.54.363-1.26.525-2.068 1.717-2.83 2.785-.273.381-.528.83-.612 1.29-.033.18-.09.363-.09.544v-.453c0-.31-.028-.618-.046-.928-.076-1.287-.225-2.487-.634-3.714-.127-.382-.192-1.098-.747-1.019-.533.076-.837.717-.997 1.155-.294.81-.523 3.488.068 5.684a26 26 0 0 0-1.268-1.517c-.509-.56-.98-1.183-1.562-1.676-.42-.355-.908-.595-1.337-.928-.467-.364-1.078-.817-1.675-.476-.78.446.11 1.367.43 1.766.724.905 1.5 1.867 2.355 2.65.467.428 1.05.755 1.495 1.2.046.046-.105-.077-.159-.113a6 6 0 0 1-.385-.272 44 44 0 0 0-1.132-.86c-.96-.698-2.293-1.26-3.465-1.472-.361-.066-.9-.207-1.245 0-.482.289.222.903.43 1.041.99.66 1.656 1.306 2.744 1.79l1.92.86s-1.478-.397-1.584-.428c-1.104-.332-1.894-.433-3.035-.433-.323 0-1.061.34-.931.86.16.645 1.61 1.011 2.21 1.131"})))};/* export default */const i8=i3;// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/CoursePreviewTrigger.tsx
var i9={capture:true,passive:true};var i7=300;var se=100;var st=r=>{var{courseInfo:n}=r;var a=(0,t.useRef)(null);var o=(0,t.useRef)(null);var i=(0,t.useRef)(null);var s=(0,t.useRef)(null);var[c,u]=(0,t.useState)(false);var[l,f]=(0,t.useState)({top:0,left:0});var d=Boolean(n===null||n===void 0?void 0:n.title);var p=()=>{if(o.current){window.clearTimeout(o.current);o.current=null}};var h=()=>{if(i.current){window.clearTimeout(i.current);i.current=null}};var v=()=>{var e=a.current;var t=s.current;if(!e||!t){return}var r=e.getBoundingClientRect();var n=t.getBoundingClientRect();var o=window.innerHeight;var i=window.innerWidth;var c=4;var u=r.bottom+c;var l=r.left;if(u+n.height>o&&r.top>n.height+c){u=r.top-n.height-c}if(l+n.width>i-8){l=Math.max(8,i-n.width-8)}f({top:u,left:l})};var m=()=>{if(!d){return}p();h();o.current=window.setTimeout(()=>{u(true);o.current=null},i7)};var g=()=>{p();h();i.current=window.setTimeout(()=>{var e,t;if(!((e=s.current)===null||e===void 0?void 0:e.matches(":hover"))&&!((t=a.current)===null||t===void 0?void 0:t.matches(":hover"))){u(false)}i.current=null},se)};(0,t.useEffect)(()=>{if(!c){return}var e=window.requestAnimationFrame(()=>{v()});var t=()=>{v()};window.addEventListener("scroll",t,i9);window.addEventListener("resize",t);return()=>{window.cancelAnimationFrame(e);window.removeEventListener("scroll",t,i9);window.removeEventListener("resize",t)}},[c]);(0,t.useEffect)(()=>{return()=>{p();h()}},[]);return/*#__PURE__*/(0,e/* .jsxs */.FD)(e/* .Fragment */.FK,{children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{ref:a,className:"tutor-upcoming-lesson-card-course-name tutor-preview-trigger",onMouseEnter:m,onMouseLeave:g,children:/*#__PURE__*/(0,e/* .jsx */.Y)("span",{tabIndex:0,css:sn.courseTrigger,className:"tutor-preview-trigger-text",onFocus:m,onBlur:g,children:(n===null||n===void 0?void 0:n.title)||""})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:d,children:/*#__PURE__*/(0,e/* .jsx */.Y)("div",{ref:s,className:"tutor-popover tutor-preview-card",css:sn.previewCard({isOpen:c}),style:{top:l.top,left:l.left},onMouseEnter:p,onMouseLeave:g,children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-preview-card-content",children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:!!(n===null||n===void 0?void 0:n.thumbnail),children:/*#__PURE__*/(0,e/* .jsx */.Y)("img",{src:(n===null||n===void 0?void 0:n.thumbnail)||"",alt:(n===null||n===void 0?void 0:n.title)||"",className:"tutor-preview-card-thumbnail"})}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-preview-card-body",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("h4",{className:"tutor-preview-card-title",children:/*#__PURE__*/(0,e/* .jsx */.Y)("a",{href:(n===null||n===void 0?void 0:n.post_link)||"#",target:"_blank",rel:"noreferrer",children:(n===null||n===void 0?void 0:n.title)||""})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:!!(n===null||n===void 0?void 0:n.author),children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-preview-card-instructor",children:[(0,oM.__)("by ","tutor-pro"),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:!!(n===null||n===void 0?void 0:n.author_url),fallback:/*#__PURE__*/(0,e/* .jsx */.Y)("span",{children:(n===null||n===void 0?void 0:n.author)||""}),children:/*#__PURE__*/(0,e/* .jsx */.Y)("a",{href:(n===null||n===void 0?void 0:n.author_url)||"#",target:"_blank",rel:"noreferrer",children:(n===null||n===void 0?void 0:n.author)||""})})]})})]})]})})})]})};/* export default */const sr=st;var sn={courseTrigger:/*#__PURE__*/(0,o/* .css */.AH)("font-style:italic;text-decoration:underline dashed var(--tutor-border-hover);text-underline-offset:4px;color:var(--tutor-text-secondary);cursor:pointer;outline:none;&:focus-visible{outline:2px solid var(--tutor-color-brand,#3e64de);outline-offset:2px;border-radius:4px;}"),previewCard:e=>{var{isOpen:t=false}=e;return/*#__PURE__*/(0,o/* .css */.AH)("position:fixed;z-index:1060;visibility:",t?"visible":"hidden",";pointer-events:",t?"auto":"none",";opacity:",t?1:0,";transform:",t?"translateY(0)":"translateY(-8px)",";transition:opacity 0.2s ease,transform 0.2s ease,visibility 0s linear ",t?"0s":"0.2s",";")}};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/EventCard.tsx
function sa(){var e=o1(["\n      padding-inline: ",";\n      padding-block: ",";\n      background-color: var(--tutor-actions-critical-secondary);\n\n      span {\n        color: var(--tutor-text-critical);\n      }\n    "]);sa=function t(){return e};return e}var so=r=>{var{event:n,date:a}=r;var i,s;var c=oG(n);var u=oQ(c,"date");var l=oQ(c,"time");var f=c?oK()(c):null;var d=(f===null||f===void 0?void 0:f.isValid())?f.toDate():a;var p=oK()().isSame(d,"day");var h=oV(n.post_type);var v=n===null||n===void 0?void 0:n.course_info;var m=n.guid||"";var g={tutor_zoom_meeting:(0,oM.__)("Live Session","tutor-pro"),tutor_assignments:(0,oM.__)("Assignment","tutor-pro"),"tutor-google-meet":(0,oM.__)("Live Session","tutor-pro"),lesson:(0,oM.__)("Lesson","tutor-pro"),tutor_quiz:(0,oM.__)("Quiz","tutor-pro")};(0,t.useEffect)(()=>{window.dispatchEvent(new CustomEvent(ir.CONTENT_CHANGED))},[]);return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:ss.card,className:"tutor-upcoming-lesson-card",children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-upcoming-lesson-card-header",children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-upcoming-lesson-card-meta","data-utc-datetime":c,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-upcoming-lesson-card-icon",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:"calendar2",width:16,height:16})}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",it(o7({className:"tutor-upcoming-lesson-card-date"},!p&&{"data-utc-datetime-date":""}),{children:p?(0,oM.__)("Today","tutor-pro"):u})),/*#__PURE__*/(0,e/* .jsxs */.FD)(o6/* ["default"] */.A,{when:u!==(0,oM.__)("No Limit","tutor-pro"),children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-upcoming-lesson-card-separator",children:"•"}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-upcoming-lesson-card-time","data-utc-datetime-time":true,children:l})]})]}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:ss.liveTag,className:"tutor-upcoming-lesson-card-live-tag",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:ss.badge({isExpired:(n===null||n===void 0?void 0:(i=n.meta_info)===null||i===void 0?void 0:i.is_expired)||false}),className:"tutor-event-badge",children:/*#__PURE__*/(0,e/* .jsxs */.FD)(o6/* ["default"] */.A,{when:!(n===null||n===void 0?void 0:(s=n.meta_info)===null||s===void 0?void 0:s.is_expired),fallback:/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-event-badge-text",children:(0,oM.__)("Expired","tutor-pro")}),children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-event-badge-icon",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:h.name,width:16,height:16,style:/*#__PURE__*/(0,o/* .css */.AH)("color:",h.color,";")})}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-event-badge-text",children:g[n.post_type]})]})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:!!m,children:/*#__PURE__*/(0,e/* .jsx */.Y)("a",{href:m,className:"tutor-btn tutor-btn-primary tutor-btn-x-small tutor-upcoming-lesson-card-action",css:ss.action,children:(0,oM.__)("Open","tutor-pro")})})]})]}),/*#__PURE__*/(0,e/* .jsx */.Y)("a",{tabIndex:-1,css:ss.title,href:m||"#",className:"tutor-upcoming-lesson-card-title",children:n.post_title}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-upcoming-lesson-card-course",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-upcoming-lesson-card-course-label",children:(0,oM.__)("Course: ","tutor-pro")}),/*#__PURE__*/(0,e/* .jsx */.Y)(sr,{courseInfo:v})]})]})};/* export default */const si=so;var ss={card:/*#__PURE__*/(0,o/* .css */.AH)("@media (hover:hover){&:hover .tutor-event-badge,&:focus-within .tutor-event-badge{opacity:0;transform:translateX(-4px);pointer-events:none;}&:hover .tutor-upcoming-lesson-card-action,&:focus-within .tutor-upcoming-lesson-card-action{opacity:1;transform:translateX(0);pointer-events:auto;}}"),title:/*#__PURE__*/(0,o/* .css */.AH)("text-decoration:none;color:var(--tutor-text-primary);outline:none;",i/* .Breakpoint.mobile */.EA.mobile,"{color:var(--tutor-text-brand);}"),liveTag:/*#__PURE__*/(0,o/* .css */.AH)("display:flex;align-items:center;gap:",i/* .spacing["8"] */.YK["8"],";"),action:/*#__PURE__*/(0,o/* .css */.AH)("opacity:0;transform:translateX(4px);pointer-events:none;transition:opacity 160ms ease,transform 160ms ease;"),badge:e=>{var{isExpired:t=false}=e;return/*#__PURE__*/(0,o/* .css */.AH)("border-radius:1000px;transition:opacity 160ms ease,transform 160ms ease;",t&&(0,o/* .css */.AH)(sa(),i/* .spacing["8"] */.YK["8"],i/* .spacing["0"] */.YK["0"]))}};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/CalendarList.tsx
var sc=String(oC/* .tutorConfig.is_kids_mode */.P.is_kids_mode)==="1";var su=t=>{var{hasSearch:r}=t;var n=r?(0,oM.__)("No Results Found!","tutor-pro"):(0,oM.__)("Your Schedule is Clear","tutor-pro");var a=r?(0,oM.__)("No results found for the search term.","tutor-pro"):(0,oM.__)("You have no upcoming classes or deadlines right now. ","tutor-pro");return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-px-9 tutor-py-10 tutor-flex-center-col",children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:sc,fallback:/*#__PURE__*/(0,e/* .jsx */.Y)(iX,{}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(i8,{})}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-small tutor-text-subdued tutor-mt-4",children:n}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-tiny tutor-text-subdued tutor-mt-2 tutor-mb-0",children:a})]})};var sl=()=>{var{events:t,search:r,updateSearch:n}=oZ();var a=Object.keys(t).length;return/*#__PURE__*/(0,e/* .jsxs */.FD)(e/* .Fragment */.FK,{children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-flex tutor-flex-column tutor-gap-5 tutor-px-6 tutor-pb-6 tutor-sm-px-5",children:/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-input-field",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("input",{type:"text",id:"name",value:r,placeholder:(0,oM.__)("Search","tutor-pro"),className:"tutor-input tutor-input-content-left tutor-input-content-clear",disabled:!r&&a===0,onChange:e=>n(e.target.value)}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-input-content tutor-input-content-left",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:"search",width:20,height:20})}),/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:r,children:/*#__PURE__*/(0,e/* .jsx */.Y)("button",{type:"button",className:"tutor-input-clear-button","aria-label":(0,oM.__)("Clear input","tutor-pro"),onClick:()=>n(""),children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:"cross",width:16,height:16})})})]})}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-flex tutor-flex-column tutor-gap-5 tutor-border-t tutor-p-6 tutor-sm-p-5",children:/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:a>0,fallback:/*#__PURE__*/(0,e/* .jsx */.Y)(su,{hasSearch:!!r}),children:Object.entries(t).map(t=>{var[r,n]=t;return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-flex tutor-flex-column tutor-gap-3",children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-p2 tutor-text-secondary",children:(0,o5.format)("F j, Y",new Date(r))}),/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:n,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(si,{event:t,date:new Date(t.post_date)},t.ID)})]},r)})})})]})};/* export default */const sf=sl;// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/components/Tabs.tsx
var sd=e=>{var t=new URL(window.location.href);t.searchParams.set("tab",e);window.history.replaceState({},"",t.toString())};var sp=r=>{var{tabs:n,activeTab:a,onChange:o}=r;(0,t.useEffect)(()=>{var e=new URL(window.location.href);var t=e.searchParams.get("tab");if(t){o===null||o===void 0?void 0:o(t)}sd(a||t||"");// eslint-disable-next-line react-hooks/exhaustive-deps
},[]);return/*#__PURE__*/(0,e/* .jsx */.Y)("div",{className:"tutor-calendar-tabs tutor-nav tutor-nav-small tutor-nav-primary",css:sv.wrapper,children:/*#__PURE__*/(0,e/* .jsx */.Y)(o3,{each:n,children:t=>/*#__PURE__*/(0,e/* .jsxs */.FD)("button",{className:"tutor-nav-item  ".concat(t.value===a?"active":""),onClick:()=>{sd(t.value);o===null||o===void 0?void 0:o(t.value)},children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:t.icon,children:t=>/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:t,width:20,height:20})}),t.label]})})})};/* export default */const sh=sp;var sv={wrapper:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex(),"    gap:",i/* .spacing["4"] */.YK["4"],";",i/* .Breakpoint.mobile */.EA.mobile,"{border:1px solid var(--tutor-border-idle);background-color:var(--tutor-surface-l1);padding:",i/* .spacing["4"] */.YK["4"],";border-radius:",i/* .borderRadius["12"] */.Vq["12"],";width:100%;.tutor-tabs-tab{",oO/* .styleUtils.flexCenter */.x.flexCenter(),";flex:1;}}")};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/layout/Main.tsx
function sm(){var e=o1(["\n      padding: 0;\n    "]);sm=function t(){return e};return e}function sg(){var e=o1(["\n        padding: 0;\n      "]);sg=function t(){return e};return e}function sb(){var e=o1(["\n      padding: "," "," 0 ",";\n\n      "," {\n        padding: "," "," 0 ",";\n      }\n    "]);sb=function t(){return e};return e}function sy(){var e=o1(["\n        margin-top: ",";\n      "]);sy=function t(){return e};return e}var s_=[{value:"calendar",label:(0,oM.__)("Calendar View","tutor-pro"),icon:"calendar2"},{value:"list",label:(0,oM.__)("List View","tutor-pro"),icon:"list"}];var sx=()=>{var r=new URL(window.location.href);var n=r.searchParams.get("tab")||"calendar";var[a,o]=(0,t.useState)(n);var{currentMonth:i,currentYear:s,updateCurrentMonth:c,updateCurrentYear:u,updateSearch:l}=oZ();// @ts-ignore
var{format:f}=wp.date;var d=f("F",new Date(s,i));var p=f("Y",new Date(s,i));var h=()=>{var e=new Date().getMonth();var t=new Date().getFullYear();c(e);u(t)};var v=e=>{o(e);l("")};return/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-calendar",css:sk.wrapper,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:sk.tabs,children:/*#__PURE__*/(0,e/* .jsx */.Y)(sh,{tabs:s_,activeTab:a,onChange:v})}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-calendar-content",css:sk.calendar({activeTab:a}),children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:sk.header({activeTab:a}),children:[/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{css:sk.monthAndYear,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-h3 tutor-sm-text-h4 tutor-font-semibold",children:d}),/*#__PURE__*/(0,e/* .jsx */.Y)("span",{className:"tutor-h3 tutor-sm-text-h4 tutor-font-regular",children:p})]}),/*#__PURE__*/(0,e/* .jsxs */.FD)("div",{className:"tutor-calendar-actions",css:sk.actions,children:[/*#__PURE__*/(0,e/* .jsx */.Y)("button",{className:"tutor-btn tutor-btn-secondary tutor-btn-x-small tutor-btn-icon",onClick:()=>c(i-1),"aria-label":(0,oM.__)("Previous month","tutor-pro"),children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:(0,oM.isRTL)()?"chevronRight":"chevronLeft",width:16,height:16})}),/*#__PURE__*/(0,e/* .jsx */.Y)("button",{className:"tutor-btn tutor-btn-secondary tutor-btn-x-small",onClick:h,children:(0,oM.__)("This Month","tutor-pro")}),/*#__PURE__*/(0,e/* .jsx */.Y)("button",{className:"tutor-btn tutor-btn-secondary tutor-btn-x-small tutor-btn-icon",onClick:()=>c(i+1),"aria-label":(0,oM.__)("Next month","tutor-pro"),children:/*#__PURE__*/(0,e/* .jsx */.Y)(o2/* ["default"] */.A,{name:(0,oM.isRTL)()?"chevronLeft":"chevronRight",width:16,height:16})})]})]}),/*#__PURE__*/(0,e/* .jsx */.Y)("div",{css:sk.content({activeTab:a}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(o6/* ["default"] */.A,{when:a==="calendar",fallback:/*#__PURE__*/(0,e/* .jsx */.Y)(sf,{}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(iU,{})})})]})]})};/* export default */const sw=sx;var sk={wrapper:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex("column"),";background-color:var(--tutor-surface-l1);border:1px solid var(--tutor-border-idle);border-radius:",i/* .borderRadius["12"] */.Vq["12"],";",i/* .Breakpoint.mobile */.EA.mobile,"{border:none;border-radius:0;background-color:transparent;gap:",i/* .spacing["16"] */.YK["16"],";}"),tabs:/*#__PURE__*/(0,o/* .css */.AH)("padding:",i/* .spacing["12"] */.YK["12"]," ",i/* .spacing["16"] */.YK["16"],";border-bottom:1px solid var(--tutor-border-idle);",i/* .Breakpoint.mobile */.EA.mobile,"{border:none;padding:0;}"),calendar:e=>{var{activeTab:t="calendar"}=e;return/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex("column"),";padding:",i/* .spacing["16"] */.YK["16"],";",t!=="calendar"&&(0,o/* .css */.AH)(sm())," ",i/* .Breakpoint.mobile */.EA.mobile,"{border:1px solid var(--tutor-border-idle);background-color:var(--tutor-surface-l1);padding:",i/* .spacing["12"] */.YK["12"],";border-radius:",i/* .borderRadius["12"] */.Vq["12"],";",t!=="calendar"&&(0,o/* .css */.AH)(sg()),"}")},header:e=>{var{activeTab:t="calendar"}=e;return/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex(),";justify-content:space-between;align-items:center;",t!=="calendar"&&(0,o/* .css */.AH)(sb(),i/* .spacing["16"] */.YK["16"],i/* .spacing["16"] */.YK["16"],i/* .spacing["16"] */.YK["16"],i/* .Breakpoint.mobile */.EA.mobile,i/* .spacing["12"] */.YK["12"],i/* .spacing["12"] */.YK["12"],i/* .spacing["12"] */.YK["12"]))},monthAndYear:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex(),";gap:",i/* .spacing["6"] */.YK["6"],";"),actions:/*#__PURE__*/(0,o/* .css */.AH)(oO/* .styleUtils.display.flex */.x.display.flex(),";gap:",i/* .spacing["4"] */.YK["4"],";"),content:e=>{var{activeTab:t="calendar"}=e;return/*#__PURE__*/(0,o/* .css */.AH)("margin-top:",i/* .spacing["16"] */.YK["16"],";",i/* .Breakpoint.mobile */.EA.mobile,"{",t!=="calendar"&&(0,o/* .css */.AH)(sy(),i/* .spacing["12"] */.YK["12"]),"}")}};// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar/layout/App.tsx
var sA=()=>{return/*#__PURE__*/(0,e/* .jsx */.Y)(oA,{children:/*#__PURE__*/(0,e/* .jsx */.Y)(oE/* .SVGIconConfigProvider */.j,{supportKidsIcon:true,children:/*#__PURE__*/(0,e/* .jsx */.Y)(n4,{children:/*#__PURE__*/(0,e/* .jsxs */.FD)(o0,{children:[/*#__PURE__*/(0,e/* .jsx */.Y)(o/* .Global */.mL,{styles:[(0,oO/* .createGlobalCss */.v)()]}),/*#__PURE__*/(0,e/* .jsx */.Y)(sw,{})]})})})})};/* export default */const sE=sA;// CONCATENATED MODULE: ./addons/calendar/assets/src/js/calendar.tsx
var sO=a.createRoot(document.getElementById("tutor_calendar_wrapper"));sO.render(/*#__PURE__*/(0,e/* .jsx */.Y)(n().StrictMode,{children:/*#__PURE__*/(0,e/* .jsx */.Y)(y,{children:/*#__PURE__*/(0,e/* .jsx */.Y)(t.Suspense,{fallback:/*#__PURE__*/(0,e/* .jsx */.Y)(d,{}),children:/*#__PURE__*/(0,e/* .jsx */.Y)(sE,{})})})}))})()})();